2 # From configure.in Revision: 1.1.1.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames=${tagnames+${tagnames},}CXX
705 tagnames=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev/null 6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix=/usr/local
719 ac_config_libobj_dir=.
725 SHELL=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file="src/apps/sctp_darn.c"
735 ac_unique_file="config.h.in"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
822 INSTALL_STRIP_PROGRAM
879 ac_precious_vars='build_alias
896 # Initialize some variables set by options.
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name=s,x,x,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE}'
933 infodir='${datarootdir}/info'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 # Accept the important Cygnus configure options, so we can diagnose typos.
960 case $ac_dashdash$ac_option in
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
982 cache_file=config.cache ;;
984 -datadir | --datadir | --datadi | --datad)
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1005 -docdir | --docdir | --docdi | --doc | --do)
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1186 -site=* | --site=* | --sit=*)
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
1231 # Obsolete; use --with-x.
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1279 # Be sure to have absolute directory names.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val=\$$ac_var
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1299 target=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures this package to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 if test -n "$ac_init_help"; then
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1485 --with-tags[=TAGS] include additional configurations [automatic]
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1496 CXX C++ compiler command
1497 CXXFLAGS C++ compiler flags
1498 CXXCPP C++ preprocessor
1499 F77 Fortran 77 compiler command
1500 FFLAGS Fortran 77 compiler flags
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" || continue
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1566 generated by GNU Autoconf 2.61
1568 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1569 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1579 It was created by $as_me, which was
1580 generated by GNU Autoconf 2.61. Invocation command line was
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1602 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1605 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1606 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1607 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 echo "PATH: $as_dir"
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_must_keep_next=false
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657 if test $ac_must_keep_next = true; then
1658 ac_must_keep_next=false # Got value, back to normal.
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 -* ) ac_must_keep_next=true ;;
1672 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log. We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1696 # The following way of writing the cache mishandles newlines in values,
1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699 eval ac_val=\$$ac_var
1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 _ | IFS | as_nl) ;; #(
1708 *) $as_unset $ac_var ;;
1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1733 for ac_var in $ac_subst_vars
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1743 if test -n "$ac_subst_files"; then
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1750 for ac_var in $ac_subst_files
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1761 if test -s confdefs.h; then
1771 test "$ac_signal" != 0 &&
1772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
1775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 for ac_signal in 1 2 13 15; do
1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1787 # Predefined preprocessor variables.
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817 set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
1827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1875 echo "$as_me: former value: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1877 echo "$as_me: current value: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925 for ac_dir in bin "$srcdir"/bin; do
1926 if test -f "$ac_dir/install-sh"; then
1928 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 elif test -f "$ac_dir/install.sh"; then
1932 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 elif test -f "$ac_dir/shtool"; then
1936 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 if test -z "$ac_aux_dir"; then
1941 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in bin \"$srcdir\"/bin" >&5
1942 echo "$as_me: error: cannot find install-sh or install.sh in bin \"$srcdir\"/bin" >&2;}
1943 { (exit 1); exit 1; }; }
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955 am__api_version="1.9"
1956 # Find a good install program. We prefer a C program (faster),
1957 # so one script is as good as another. But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 # Account for people who put trailing slashes in PATH elements.
1982 ./ | .// | /cC/* | \
1983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1987 # OSF1 and SCO ODT 3.0 have their own names for install.
1988 # Don't use installbsd from OSF since it installs stuff as root
1990 for ac_prog in ginstall scoinst install; do
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993 if test $ac_prog = install &&
1994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995 # AIX install. It has an incompatible calling convention.
1997 elif test $ac_prog = install &&
1998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999 # program-specific install script used by HP pwplus--don't use.
2002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2015 if test "${ac_cv_path_install+set}" = set; then
2016 INSTALL=$ac_cv_path_install
2018 # As a last resort, use the slow shell script. Don't cache a
2019 # value for INSTALL within a source directory, because that will
2020 # break other packages using the cache if that directory is
2021 # removed, or if the value is a relative name.
2022 INSTALL=$ac_install_sh
2025 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2026 echo "${ECHO_T}$INSTALL" >&6; }
2028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029 # It thinks the first close brace ends the variable substitution.
2030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2040 echo timestamp > conftest.file
2041 # Do `set' in a subshell so we don't clobber the current shell's
2042 # arguments. Must try -L first in case configure is actually a
2043 # symlink; some systems play weird games with the mod time of symlinks
2044 # (eg FreeBSD returns the mod time of the symlink's containing
2047 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048 if test "$*" = "X"; then
2050 set X `ls -t $srcdir/configure conftest.file`
2053 if test "$*" != "X $srcdir/configure conftest.file" \
2054 && test "$*" != "X conftest.file $srcdir/configure"; then
2056 # If neither matched, then we have a broken ls. This can happen
2057 # if, for instance, CONFIG_SHELL is bash and it inherits a
2058 # broken ls alias from the environment. This has actually
2059 # happened. Such a system could not be considered "sane".
2060 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2061 alias in your environment" >&5
2062 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2063 alias in your environment" >&2;}
2064 { (exit 1); exit 1; }; }
2067 test "$2" = conftest.file
2073 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074 Check your system clock" >&5
2075 echo "$as_me: error: newly created file is older than distributed files!
2076 Check your system clock" >&2;}
2077 { (exit 1); exit 1; }; }
2079 { echo "$as_me:$LINENO: result: yes" >&5
2080 echo "${ECHO_T}yes" >&6; }
2081 test "$program_prefix" != NONE &&
2082 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083 # Use a double $ so make ignores it.
2084 test "$program_suffix" != NONE &&
2085 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086 # Double any \ or $. echo might interpret backslashes.
2087 # By default was `s,x,x', remove it if useless.
2088 cat <<\_ACEOF >conftest.sed
2089 s/[\\$]/&&/g;s/;s,x,x,$//
2091 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2094 # expand $ac_aux_dir to an absolute path
2095 am_aux_dir=`cd $ac_aux_dir && pwd`
2097 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098 # Use eval to expand $SHELL
2099 if eval "$MISSING --run true"; then
2100 am_missing_run="$MISSING --run "
2103 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2107 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2108 # We used to keeping the `.' as first argument, in order to
2109 # allow $(mkdir_p) to be used without argument. As in
2110 # $(mkdir_p) $(somedir)
2111 # where $(somedir) is conditionally defined. However this is wrong
2113 # 1. if the package is installed by a user who cannot write `.'
2114 # make install will fail,
2115 # 2. the above comment should most certainly read
2116 # $(mkdir_p) $(DESTDIR)$(somedir)
2117 # so it does not work when $(somedir) is undefined and
2118 # $(DESTDIR) is not.
2119 # To support the latter case, we have to write
2120 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2121 # so the `.' trick is pointless.
2122 mkdir_p='mkdir -p --'
2124 # On NextStep and OpenStep, the `mkdir' command does not
2125 # recognize any option. It will interpret all options as
2126 # directories to create, and then abort because `.' already
2128 for d in ./-p ./--version;
2130 test -d $d && rmdir $d
2132 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2133 if test -f "$ac_aux_dir/mkinstalldirs"; then
2134 mkdir_p='$(mkinstalldirs)'
2136 mkdir_p='$(install_sh) -d'
2140 for ac_prog in gawk mawk nawk awk
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_AWK+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$AWK"; then
2150 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 ac_cv_prog_AWK="$ac_prog"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 if test -n "$AWK"; then
2171 { echo "$as_me:$LINENO: result: $AWK" >&5
2172 echo "${ECHO_T}$AWK" >&6; }
2174 { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2179 test -n "$AWK" && break
2182 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2183 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2184 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2185 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 cat >conftest.make <<\_ACEOF
2191 @echo '@@@%%%=$(MAKE)=@@@%%%'
2193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2196 eval ac_cv_prog_make_${ac_make}_set=yes;;
2198 eval ac_cv_prog_make_${ac_make}_set=no;;
2202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2203 { echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6; }
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 SET_MAKE="MAKE=${MAKE-make}"
2212 rm -rf .tst 2>/dev/null
2213 mkdir .tst 2>/dev/null
2214 if test -d .tst; then
2219 rmdir .tst 2>/dev/null
2221 # test to see if srcdir already configured
2222 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2223 test -f $srcdir/config.status; then
2224 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2225 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2226 { (exit 1); exit 1; }; }
2229 # test whether we have cygpath
2230 if test -z "$CYGPATH_W"; then
2231 if (cygpath --version) >/dev/null 2>/dev/null; then
2232 CYGPATH_W='cygpath -w'
2239 # Define the identity of the package.
2240 PACKAGE=lksctp-tools
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE "$PACKAGE"
2249 cat >>confdefs.h <<_ACEOF
2250 #define VERSION "$VERSION"
2253 # Some tools Automake needs.
2255 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2258 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2261 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2264 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2267 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2269 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2271 # Installed binaries are usually stripped using `strip' when the user
2272 # run `make install-strip'. However `strip' might not be the right
2273 # tool to use in cross-compilation environments, therefore Automake
2274 # will honor the `STRIP' environment variable to overrule this program.
2275 if test "$cross_compiling" != no; then
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}strip; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_STRIP+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 if test -n "$STRIP"; then
2285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 STRIP=$ac_cv_prog_STRIP
2305 if test -n "$STRIP"; then
2306 { echo "$as_me:$LINENO: result: $STRIP" >&5
2307 echo "${ECHO_T}$STRIP" >&6; }
2309 { echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6; }
2315 if test -z "$ac_cv_prog_STRIP"; then
2317 # Extract the first word of "strip", so it can be a program name with args.
2318 set dummy strip; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 if test -n "$ac_ct_STRIP"; then
2325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_ac_ct_STRIP="strip"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2345 if test -n "$ac_ct_STRIP"; then
2346 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2347 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2353 if test "x$ac_ct_STRIP" = x; then
2356 case $cross_compiling:$ac_tool_warned in
2358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2359 whose name does not start with the host triplet. If you think this
2360 configuration is useful to you, please write to autoconf@gnu.org." >&5
2361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2362 whose name does not start with the host triplet. If you think this
2363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2364 ac_tool_warned=yes ;;
2369 STRIP="$ac_cv_prog_STRIP"
2373 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2375 # We need awk for the "check" target. The system "awk" is bad on
2377 # Always define AMTAR for backward compatibility.
2379 AMTAR=${AMTAR-"${am_missing_run}tar"}
2381 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2388 ac_config_headers="$ac_config_headers config.h"
2393 for ac_prog in gawk mawk nawk awk
2395 # Extract the first word of "$ac_prog", so it can be a program name with args.
2396 set dummy $ac_prog; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_AWK+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$AWK"; then
2403 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_AWK="$ac_prog"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$AWK"; then
2424 { echo "$as_me:$LINENO: result: $AWK" >&5
2425 echo "${ECHO_T}$AWK" >&6; }
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2432 test -n "$AWK" && break
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 if test -n "$CC"; then
2470 { echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6; }
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2479 if test -z "$ac_cv_prog_CC"; then
2481 # Extract the first word of "gcc", so it can be a program name with args.
2482 set dummy gcc; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test -n "$ac_ct_CC"; then
2489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_CC="gcc"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2509 if test -n "$ac_ct_CC"; then
2510 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2511 echo "${ECHO_T}$ac_ct_CC" >&6; }
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2517 if test "x$ac_ct_CC" = x; then
2520 case $cross_compiling:$ac_tool_warned in
2522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&5
2525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet. If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528 ac_tool_warned=yes ;;
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}cc; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="${ac_tool_prefix}cc"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$CC"; then
2567 { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2577 if test -z "$CC"; then
2578 # Extract the first word of "cc", so it can be a program name with args.
2579 set dummy cc; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597 ac_prog_rejected=yes
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2623 if test -n "$CC"; then
2624 { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 { echo "$as_me:$LINENO: result: $CC" >&5
2667 echo "${ECHO_T}$CC" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2674 test -n "$CC" && break
2677 if test -z "$CC"; then
2679 for ac_prog in cl.exe
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711 echo "${ECHO_T}$ac_ct_CC" >&6; }
2713 { echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6; }
2718 test -n "$ac_ct_CC" && break
2721 if test "x$ac_ct_CC" = x; then
2724 case $cross_compiling:$ac_tool_warned in
2726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet. If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&5
2729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2730 whose name does not start with the host triplet. If you think this
2731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2732 ac_tool_warned=yes ;;
2741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&5
2743 echo "$as_me: error: no acceptable C compiler found in \$PATH
2744 See \`config.log' for more details." >&2;}
2745 { (exit 1); exit 1; }; }
2747 # Provide some information about the compiler.
2748 echo "$as_me:$LINENO: checking for C compiler version" >&5
2749 ac_compiler=`set X $ac_compile; echo $2`
2750 { (ac_try="$ac_compiler --version >&5"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler --version >&5") 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760 { (ac_try="$ac_compiler -v >&5"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -v >&5") 2>&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
2770 { (ac_try="$ac_compiler -V >&5"
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compiler -V >&5") 2>&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2781 cat >conftest.$ac_ext <<_ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2796 ac_clean_files_save=$ac_clean_files
2797 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2798 # Try to create an executable without -o first, disregard a.out.
2799 # It will help us diagnose broken compilers, and finding out an intuition
2801 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2802 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2803 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2805 # List of possible output files, starting from the most likely.
2806 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2807 # only as a last resort. b.out is created by i960 compilers.
2808 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2810 # The IRIX 6 linker writes into existing files which may not be
2811 # executable, retaining their permissions. Remove them first so a
2812 # subsequent execution test works.
2814 for ac_file in $ac_files
2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2823 if { (ac_try="$ac_link_default"
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_link_default") 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; then
2833 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2834 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2835 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2836 # so that the user can short-circuit this test for compilers unknown to
2838 for ac_file in $ac_files ''
2840 test -f "$ac_file" || continue
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2845 # We found the default executable, but exeext='' is most
2849 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 # We set ac_cv_exeext here because the later test for it is not
2854 # safe: cross compilers may not add the suffix if given an `-o'
2855 # argument, so we may need to know it at that point already.
2856 # Even if this section looks crufty: it has the advantage of
2863 test "$ac_cv_exeext" = no && ac_cv_exeext=
2869 { echo "$as_me:$LINENO: result: $ac_file" >&5
2870 echo "${ECHO_T}$ac_file" >&6; }
2871 if test -z "$ac_file"; then
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2875 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C compiler cannot create executables
2878 See \`config.log' for more details." >&2;}
2879 { (exit 77); exit 77; }; }
2882 ac_exeext=$ac_cv_exeext
2884 # Check that the compiler produces executables we can run. If not, either
2885 # the compiler is broken, or we cross compile.
2886 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2887 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2888 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2889 # If not cross compiling, check that we can run a simple program.
2890 if test "$cross_compiling" != yes; then
2891 if { ac_try='./$ac_file'
2892 { (case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_try") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 if test "$cross_compiling" = maybe; then
2906 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2916 { echo "$as_me:$LINENO: result: yes" >&5
2917 echo "${ECHO_T}yes" >&6; }
2919 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2920 ac_clean_files=$ac_clean_files_save
2921 # Check that the compiler produces executables we can run. If not, either
2922 # the compiler is broken, or we cross compile.
2923 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2924 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2925 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2926 echo "${ECHO_T}$cross_compiling" >&6; }
2928 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2929 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2930 if { (ac_try="$ac_link"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_link") 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; then
2940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2941 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2942 # work properly (i.e., refer to `conftest.exe'), while it won't with
2944 for ac_file in conftest.exe conftest conftest.*; do
2945 test -f "$ac_file" || continue
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2957 See \`config.log' for more details." >&2;}
2958 { (exit 1); exit 1; }; }
2961 rm -f conftest$ac_cv_exeext
2962 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2963 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2965 rm -f conftest.$ac_ext
2966 EXEEXT=$ac_cv_exeext
2968 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2970 if test "${ac_cv_objext+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2988 rm -f conftest.o conftest.obj
2989 if { (ac_try="$ac_compile"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 for ac_file in conftest.o conftest.obj conftest.*; do
3000 test -f "$ac_file" || continue;
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3003 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3018 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3020 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3021 echo "${ECHO_T}$ac_cv_objext" >&6; }
3022 OBJEXT=$ac_cv_objext
3024 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3025 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3026 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3056 grep -v '^ *+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3076 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3078 GCC=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CFLAGS=${CFLAGS+set}
3080 ac_save_CFLAGS=$CFLAGS
3081 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3082 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_cc_g+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 ac_save_c_werror_flag=$ac_c_werror_flag
3087 ac_c_werror_flag=yes
3090 cat >conftest.$ac_ext <<_ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compile") 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } && {
3119 test -z "$ac_c_werror_flag" ||
3120 test ! -s conftest.err
3121 } && test -s conftest.$ac_objext; then
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 ac_c_werror_flag=$ac_save_c_werror_flag
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3218 if test "$ac_test_CFLAGS" = set; then
3219 CFLAGS=$ac_save_CFLAGS
3220 elif test $ac_cv_prog_cc_g = yes; then
3221 if test "$GCC" = yes; then
3227 if test "$GCC" = yes; then
3233 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3234 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3235 if test "${ac_cv_prog_cc_c89+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 ac_cv_prog_cc_c89=no
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3248 #include <sys/types.h>
3249 #include <sys/stat.h>
3250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3251 struct buf { int x; };
3252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3253 static char *e (p, i)
3259 static char *f (char * (*g) (char **, int), char **p, ...)
3264 s = g (p, va_arg (v,int));
3269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3270 function prototypes and stuff, but not '\xHH' hex character constants.
3271 These don't provoke an error unfortunately, instead are silently treated
3272 as 'x'. The following induces an error, until -std is added to get
3273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3274 array size at least. It's necessary to write '\x00'==0 to get something
3275 that's true only with -std. */
3276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3279 inside strings and character constants. */
3281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3283 int test (int i, double x);
3284 struct s1 {int (*f) (int a);};
3285 struct s2 {int (*f) (double a);};
3286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3300 CC="$ac_save_CC $ac_arg"
3301 rm -f conftest.$ac_objext
3302 if { (ac_try="$ac_compile"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 ac_cv_prog_cc_c89=$ac_arg
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 rm -f conftest.$ac_ext
3334 case "x$ac_cv_prog_cc_c89" in
3336 { echo "$as_me:$LINENO: result: none needed" >&5
3337 echo "${ECHO_T}none needed" >&6; } ;;
3339 { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3342 CC="$CC $ac_cv_prog_cc_c89"
3343 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 DEPDIR="${am__leading_dot}deps"
3355 ac_config_commands="$ac_config_commands depfiles"
3358 am_make=${MAKE-make}
3359 cat > confinc << 'END'
3364 # If we don't find an include directive, just comment out the code.
3365 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3366 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3370 # First try GNU make style include.
3371 echo "include confinc" > confmf
3372 # We grep out `Entering directory' and `Leaving directory'
3373 # messages which can occur if `w' ends up in MAKEFLAGS.
3374 # In particular we don't look at `^make:' because GNU make might
3375 # be invoked under some other name (usually "gmake"), in which
3376 # case it prints its new name instead of `make'.
3377 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3382 # Now try BSD make style include.
3383 if test "$am__include" = "#"; then
3384 echo '.include "confinc"' > confmf
3385 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3386 am__include=.include
3393 { echo "$as_me:$LINENO: result: $_am_result" >&5
3394 echo "${ECHO_T}$_am_result" >&6; }
3395 rm -f confinc confmf
3397 # Check whether --enable-dependency-tracking was given.
3398 if test "${enable_dependency_tracking+set}" = set; then
3399 enableval=$enable_dependency_tracking;
3402 if test "x$enable_dependency_tracking" != xno; then
3403 am_depcomp="$ac_aux_dir/depcomp"
3408 if test "x$enable_dependency_tracking" != xno; then
3419 depcc="$CC" am_compiler_list=
3421 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3422 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3423 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3427 # We make a subdir and do the tests there. Otherwise we can end up
3428 # making bogus files that we don't know about and never remove. For
3429 # instance it was reported that on HP-UX the gcc test will end up
3430 # making a dummy file named `D' -- because `-MD' means `put the output
3433 # Copy depcomp to subdir because otherwise we won't find it if we're
3434 # using a relative directory.
3435 cp "$am_depcomp" conftest.dir
3437 # We will build objects and dependencies in a subdirectory because
3438 # it helps to detect inapplicable dependency modes. For instance
3439 # both Tru64's cc and ICC support -MD to output dependencies as a
3440 # side effect of compilation, but ICC will put the dependencies in
3441 # the current directory while Tru64 will put them in the object
3445 am_cv_CC_dependencies_compiler_type=none
3446 if test "$am_compiler_list" = ""; then
3447 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3449 for depmode in $am_compiler_list; do
3450 # Setup a source with many dependencies, because some compilers
3451 # like to wrap large dependency lists on column 80 (with \), and
3452 # we should not choose a depcomp mode which is confused by this.
3454 # We need to recreate these files for each test, as the compiler may
3455 # overwrite some of them when testing with obscure command lines.
3456 # This happens at least with the AIX C compiler.
3458 for i in 1 2 3 4 5 6; do
3459 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3460 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3461 # Solaris 8's {/usr,}/bin/sh.
3462 touch sub/conftst$i.h
3464 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3468 # after this tag, mechanisms are not by side-effect, so they'll
3469 # only be used when explicitly requested
3470 if test "x$enable_dependency_tracking" = xyes; then
3478 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3479 # mode. It turns out that the SunPro C++ compiler does not properly
3480 # handle `-M -o', and we need to detect this.
3481 if depmode=$depmode \
3482 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3483 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3484 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3485 >/dev/null 2>conftest.err &&
3486 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3487 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3488 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3489 # icc doesn't choke on unknown options, it will just issue warnings
3490 # or remarks (even with -Werror). So we grep stderr for any message
3491 # that says an option was ignored or not supported.
3492 # When given -MP, icc 7.0 and 7.1 complain thusly:
3493 # icc: Command line warning: ignoring option '-M'; no argument required
3494 # The diagnosis changed in icc 8.0:
3495 # icc: Command line remark: option '-MP' not supported
3496 if (grep 'ignoring option' conftest.err ||
3497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3498 am_cv_CC_dependencies_compiler_type=$depmode
3507 am_cv_CC_dependencies_compiler_type=none
3511 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3512 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3513 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3518 test "x$enable_dependency_tracking" != xno \
3519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3521 am__fastdepCC_FALSE='#'
3523 am__fastdepCC_TRUE='#'
3524 am__fastdepCC_FALSE=
3528 # Find a good install program. We prefer a C program (faster),
3529 # so one script is as good as another. But avoid the broken or
3530 # incompatible versions:
3531 # SysV /etc/install, /usr/sbin/install
3532 # SunOS /usr/etc/install
3533 # IRIX /sbin/install
3535 # AmigaOS /C/install, which installs bootblocks on floppy discs
3536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3539 # OS/2's system install, which has a completely different semantic
3540 # ./install, which can be erroneously created by make from ./install.sh.
3541 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3543 if test -z "$INSTALL"; then
3544 if test "${ac_cv_path_install+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 test -z "$as_dir" && as_dir=.
3552 # Account for people who put trailing slashes in PATH elements.
3554 ./ | .// | /cC/* | \
3555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3556 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3559 # OSF1 and SCO ODT 3.0 have their own names for install.
3560 # Don't use installbsd from OSF since it installs stuff as root
3562 for ac_prog in ginstall scoinst install; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3565 if test $ac_prog = install &&
3566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567 # AIX install. It has an incompatible calling convention.
3569 elif test $ac_prog = install &&
3570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # program-specific install script used by HP pwplus--don't use.
3574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3587 if test "${ac_cv_path_install+set}" = set; then
3588 INSTALL=$ac_cv_path_install
3590 # As a last resort, use the slow shell script. Don't cache a
3591 # value for INSTALL within a source directory, because that will
3592 # break other packages using the cache if that directory is
3593 # removed, or if the value is a relative name.
3594 INSTALL=$ac_install_sh
3597 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3598 echo "${ECHO_T}$INSTALL" >&6; }
3600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601 # It thinks the first close brace ends the variable substitution.
3602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3608 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3609 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3611 if test "$LN_S" = "ln -s"; then
3612 { echo "$as_me:$LINENO: result: yes" >&5
3613 echo "${ECHO_T}yes" >&6; }
3615 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3616 echo "${ECHO_T}no, using $LN_S" >&6; }
3620 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3621 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3622 if test "${ac_cv_search_strerror+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 ac_func_search_save_LIBS=$LIBS
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3633 /* Override any GCC internal prototype to avoid an error.
3634 Use char because int might match the return type of a GCC
3635 builtin and then its argument prototype would still apply. */
3648 for ac_lib in '' cposix; do
3649 if test -z "$ac_lib"; then
3650 ac_res="none required"
3653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3655 rm -f conftest.$ac_objext conftest$ac_exeext
3656 if { (ac_try="$ac_link"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_link") 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest$ac_exeext &&
3672 $as_test_x conftest$ac_exeext; then
3673 ac_cv_search_strerror=$ac_res
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3683 if test "${ac_cv_search_strerror+set}" = set; then
3687 if test "${ac_cv_search_strerror+set}" = set; then
3690 ac_cv_search_strerror=no
3693 LIBS=$ac_func_search_save_LIBS
3695 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3696 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3697 ac_res=$ac_cv_search_strerror
3698 if test "$ac_res" != no; then
3699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3706 # Check whether --enable-shared was given.
3707 if test "${enable_shared+set}" = set; then
3708 enableval=$enable_shared; p=${PACKAGE-default}
3710 yes) enable_shared=yes ;;
3711 no) enable_shared=no ;;
3714 # Look at the argument we got. We use all the common list separators.
3715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716 for pkg in $enableval; do
3718 if test "X$pkg" = "X$p"; then
3730 # Check whether --enable-static was given.
3731 if test "${enable_static+set}" = set; then
3732 enableval=$enable_static; p=${PACKAGE-default}
3734 yes) enable_static=yes ;;
3735 no) enable_static=no ;;
3738 # Look at the argument we got. We use all the common list separators.
3739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3740 for pkg in $enableval; do
3742 if test "X$pkg" = "X$p"; then
3754 # Check whether --enable-fast-install was given.
3755 if test "${enable_fast_install+set}" = set; then
3756 enableval=$enable_fast_install; p=${PACKAGE-default}
3758 yes) enable_fast_install=yes ;;
3759 no) enable_fast_install=no ;;
3761 enable_fast_install=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
3767 enable_fast_install=yes
3774 enable_fast_install=yes
3778 # Make sure we can run config.sub.
3779 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3780 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3781 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3782 { (exit 1); exit 1; }; }
3784 { echo "$as_me:$LINENO: checking build system type" >&5
3785 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3786 if test "${ac_cv_build+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_build_alias=$build_alias
3790 test "x$ac_build_alias" = x &&
3791 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3792 test "x$ac_build_alias" = x &&
3793 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3794 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3795 { (exit 1); exit 1; }; }
3796 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3797 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3798 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3799 { (exit 1); exit 1; }; }
3802 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3803 echo "${ECHO_T}$ac_cv_build" >&6; }
3804 case $ac_cv_build in
3806 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3807 echo "$as_me: error: invalid value of canonical build" >&2;}
3808 { (exit 1); exit 1; }; };;
3811 ac_save_IFS=$IFS; IFS='-'
3817 # Remember, the first character of IFS is used to create $*,
3818 # except with old shells:
3821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3824 { echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3826 if test "${ac_cv_host+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test "x$host_alias" = x; then
3830 ac_cv_host=$ac_cv_build
3832 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3833 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3834 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3835 { (exit 1); exit 1; }; }
3839 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3840 echo "${ECHO_T}$ac_cv_host" >&6; }
3843 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3844 echo "$as_me: error: invalid value of canonical host" >&2;}
3845 { (exit 1); exit 1; }; };;
3848 ac_save_IFS=$IFS; IFS='-'
3854 # Remember, the first character of IFS is used to create $*,
3855 # except with old shells:
3858 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3861 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3862 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3863 if test "${lt_cv_path_SED+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 # Loop through the user's path and test for sed and gsed.
3867 # Then use that list of sed's as ones to test for truncation.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir=.
3873 for lt_ac_prog in sed gsed; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3876 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3884 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3885 # along with /bin/sed that truncates output.
3886 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3887 test ! -f $lt_ac_sed && continue
3888 cat /dev/null > conftest.in
3890 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3891 # Check for GNU sed and select it if it is found.
3892 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3893 lt_cv_path_SED=$lt_ac_sed
3897 cat conftest.in conftest.in >conftest.tmp
3898 mv conftest.tmp conftest.in
3899 cp conftest.in conftest.nl
3901 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3902 cmp -s conftest.out conftest.nl || break
3903 # 10000 chars as input seems more than enough
3904 test $lt_ac_count -gt 10 && break
3905 lt_ac_count=`expr $lt_ac_count + 1`
3906 if test $lt_ac_count -gt $lt_ac_max; then
3907 lt_ac_max=$lt_ac_count
3908 lt_cv_path_SED=$lt_ac_sed
3917 { echo "$as_me:$LINENO: result: $SED" >&5
3918 echo "${ECHO_T}$SED" >&6; }
3920 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3921 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3922 if test "${ac_cv_path_GREP+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 # Extract the first word of "grep ggrep" to use in msg output
3926 if test -z "$GREP"; then
3927 set dummy grep ggrep; ac_prog_name=$2
3928 if test "${ac_cv_path_GREP+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 ac_path_GREP_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937 test -z "$as_dir" && as_dir=.
3938 for ac_prog in grep ggrep; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3942 # Check for GNU ac_path_GREP and select it if it is found.
3943 # Check for GNU $ac_path_GREP
3944 case `"$ac_path_GREP" --version 2>&1` in
3946 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3949 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 echo 'GREP' >> "conftest.nl"
3956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958 ac_count=`expr $ac_count + 1`
3959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_GREP="$ac_path_GREP"
3962 ac_path_GREP_max=$ac_count
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 $ac_path_GREP_found && break 3
3981 GREP="$ac_cv_path_GREP"
3982 if test -z "$GREP"; then
3983 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985 { (exit 1); exit 1; }; }
3989 ac_cv_path_GREP=$GREP
3994 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3995 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3996 GREP="$ac_cv_path_GREP"
3999 { echo "$as_me:$LINENO: checking for egrep" >&5
4000 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4001 if test "${ac_cv_path_EGREP+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005 then ac_cv_path_EGREP="$GREP -E"
4007 # Extract the first word of "egrep" to use in msg output
4008 if test -z "$EGREP"; then
4009 set dummy egrep; ac_prog_name=$2
4010 if test "${ac_cv_path_EGREP+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 ac_path_EGREP_found=false
4014 # Loop through the user's path and test for each of PROGNAME-LIST
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019 test -z "$as_dir" && as_dir=.
4020 for ac_prog in egrep; do
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4023 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4024 # Check for GNU ac_path_EGREP and select it if it is found.
4025 # Check for GNU $ac_path_EGREP
4026 case `"$ac_path_EGREP" --version 2>&1` in
4028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4031 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4034 cat "conftest.in" "conftest.in" >"conftest.tmp"
4035 mv "conftest.tmp" "conftest.in"
4036 cp "conftest.in" "conftest.nl"
4037 echo 'EGREP' >> "conftest.nl"
4038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4040 ac_count=`expr $ac_count + 1`
4041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4042 # Best one so far, save it but keep looking for a better one
4043 ac_cv_path_EGREP="$ac_path_EGREP"
4044 ac_path_EGREP_max=$ac_count
4046 # 10*(2^10) chars as input seems more than enough
4047 test $ac_count -gt 10 && break
4049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 $ac_path_EGREP_found && break 3
4063 EGREP="$ac_cv_path_EGREP"
4064 if test -z "$EGREP"; then
4065 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4066 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4067 { (exit 1); exit 1; }; }
4071 ac_cv_path_EGREP=$EGREP
4077 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4078 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4079 EGREP="$ac_cv_path_EGREP"
4083 # Check whether --with-gnu-ld was given.
4084 if test "${with_gnu_ld+set}" = set; then
4085 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4091 if test "$GCC" = yes; then
4092 # Check if gcc -print-prog-name=ld gives a path.
4093 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4094 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4097 # gcc leaves a trailing carriage return which upsets mingw
4098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4103 # Accept absolute paths.
4105 re_direlt='/[^/][^/]*/\.\./'
4106 # Canonicalize the pathname of ld
4107 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4108 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4109 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4111 test -z "$LD" && LD="$ac_prog"
4114 # If it fails, then pretend we aren't using GCC.
4118 # If it is relative, then search for the first ld in PATH.
4122 elif test "$with_gnu_ld" = yes; then
4123 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4124 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4126 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4127 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4129 if test "${lt_cv_path_LD+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -z "$LD"; then
4133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4134 for ac_dir in $PATH; do
4136 test -z "$ac_dir" && ac_dir=.
4137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4138 lt_cv_path_LD="$ac_dir/$ac_prog"
4139 # Check to see if the program is GNU ld. I'd rather use --version,
4140 # but apparently some variants of GNU ld only accept -v.
4141 # Break only if it was the GNU/non-GNU ld that we prefer.
4142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4143 *GNU* | *'with BFD'*)
4144 test "$with_gnu_ld" != no && break
4147 test "$with_gnu_ld" != yes && break
4154 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4159 if test -n "$LD"; then
4160 { echo "$as_me:$LINENO: result: $LD" >&5
4161 echo "${ECHO_T}$LD" >&6; }
4163 { echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6; }
4166 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4167 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4168 { (exit 1); exit 1; }; }
4169 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4170 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4171 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4175 case `$LD -v 2>&1 </dev/null` in
4176 *GNU* | *'with BFD'*)
4177 lt_cv_prog_gnu_ld=yes
4180 lt_cv_prog_gnu_ld=no
4184 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4185 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4186 with_gnu_ld=$lt_cv_prog_gnu_ld
4189 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4190 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4191 if test "${lt_cv_ld_reload_flag+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 lt_cv_ld_reload_flag='-r'
4196 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4197 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4198 reload_flag=$lt_cv_ld_reload_flag
4199 case $reload_flag in
4201 *) reload_flag=" $reload_flag" ;;
4203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4206 if test "$GCC" = yes; then
4207 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4209 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4214 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4215 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4216 if test "${lt_cv_path_NM+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 if test -n "$NM"; then
4220 # Let the user override the test.
4223 lt_nm_to_check="${ac_tool_prefix}nm"
4224 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4225 lt_nm_to_check="$lt_nm_to_check nm"
4227 for lt_tmp_nm in $lt_nm_to_check; do
4228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4231 test -z "$ac_dir" && ac_dir=.
4232 tmp_nm="$ac_dir/$lt_tmp_nm"
4233 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4234 # Check to see if the nm accepts a BSD-compat flag.
4235 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4236 # nm: unknown option "B" ignored
4237 # Tru64's nm complains that /dev/null is an invalid object file
4238 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4239 */dev/null* | *'Invalid file or object type'*)
4240 lt_cv_path_NM="$tmp_nm -B"
4244 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4246 lt_cv_path_NM="$tmp_nm -p"
4250 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4251 continue # so that we can try to find one that supports BSD flags
4260 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4263 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4264 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4267 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4268 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4269 if test "${lt_cv_deplibs_check_method+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 lt_cv_file_magic_cmd='$MAGIC_CMD'
4273 lt_cv_file_magic_test_file=
4274 lt_cv_deplibs_check_method='unknown'
4275 # Need to set the preceding variable on all platforms that support
4276 # interlibrary dependencies.
4277 # 'none' -- dependencies not supported.
4278 # `unknown' -- same as none, but documents that we really don't know.
4279 # 'pass_all' -- all dependencies passed with no checks.
4280 # 'test_compile' -- check by making test program.
4281 # 'file_magic [[regex]]' -- check by looking for files in library path
4282 # which responds to the $file_magic_cmd with a given extended regex.
4283 # If you have `file' or equivalent on your system and you're not sure
4284 # whether `pass_all' will *always* work, you probably want this one.
4288 lt_cv_deplibs_check_method=pass_all
4292 lt_cv_deplibs_check_method=pass_all
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4297 lt_cv_file_magic_cmd='/usr/bin/file -L'
4298 lt_cv_file_magic_test_file=/shlib/libc.so
4302 # func_win32_libid is a shell function defined in ltmain.sh
4303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4304 lt_cv_file_magic_cmd='func_win32_libid'
4308 # Base MSYS/MinGW do not provide the 'file' command needed by
4309 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4310 # unless we find 'file', for example because we are cross-compiling.
4311 if ( file / ) >/dev/null 2>&1; then
4312 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4313 lt_cv_file_magic_cmd='func_win32_libid'
4315 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4316 lt_cv_file_magic_cmd='$OBJDUMP -f'
4320 darwin* | rhapsody*)
4321 lt_cv_deplibs_check_method=pass_all
4324 freebsd* | dragonfly*)
4325 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4328 # Not sure whether the presence of OpenBSD here was a mistake.
4329 # Let's accept both of them until this is cleared up.
4330 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4336 lt_cv_deplibs_check_method=pass_all
4341 lt_cv_deplibs_check_method=pass_all
4344 hpux10.20* | hpux11*)
4345 lt_cv_file_magic_cmd=/usr/bin/file
4348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4352 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]'
4353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4367 irix5* | irix6* | nonstopux*)
4369 *-32|*"-32 ") libmagic=32-bit;;
4370 *-n32|*"-n32 ") libmagic=N32;;
4371 *-64|*"-64 ") libmagic=64-bit;;
4372 *) libmagic=never-match;;
4374 lt_cv_deplibs_check_method=pass_all
4377 # This must be Linux ELF.
4378 linux* | k*bsd*-gnu)
4379 lt_cv_deplibs_check_method=pass_all
4382 netbsd* | netbsdelf*-gnu)
4383 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4392 lt_cv_file_magic_cmd=/usr/bin/file
4393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4397 lt_cv_deplibs_check_method=unknown
4401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4408 osf3* | osf4* | osf5*)
4409 lt_cv_deplibs_check_method=pass_all
4413 lt_cv_deplibs_check_method=pass_all
4417 lt_cv_deplibs_check_method=pass_all
4421 case $host_vendor in
4423 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]'
4424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4427 lt_cv_deplibs_check_method=pass_all
4430 lt_cv_file_magic_cmd='/bin/file'
4431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4434 lt_cv_file_magic_cmd='/bin/file'
4435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4436 lt_cv_file_magic_test_file=/lib/libc.so
4439 lt_cv_deplibs_check_method=pass_all
4442 lt_cv_deplibs_check_method=pass_all
4447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4448 lt_cv_deplibs_check_method=pass_all
4453 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4454 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4455 file_magic_cmd=$lt_cv_file_magic_cmd
4456 deplibs_check_method=$lt_cv_deplibs_check_method
4457 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4462 # If no C compiler was specified, use CC.
4465 # If no C compiler flags were specified, use CFLAGS.
4466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4468 # Allow CC to be a program name with arguments.
4471 # Check whether --enable-libtool-lock was given.
4472 if test "${enable_libtool_lock+set}" = set; then
4473 enableval=$enable_libtool_lock;
4476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4478 # Some flags need to be propagated to the compiler or linker for good
4482 # Find out which ABI we are using.
4483 echo 'int i;' > conftest.$ac_ext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; then
4489 case `/usr/bin/file conftest.$ac_objext` in
4501 # Find out which ABI we are using.
4502 echo '#line 4502 "configure"' > conftest.$ac_ext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; then
4508 if test "$lt_cv_prog_gnu_ld" = yes; then
4509 case `/usr/bin/file conftest.$ac_objext` in
4511 LD="${LD-ld} -melf32bsmip"
4514 LD="${LD-ld} -melf32bmipn32"
4517 LD="${LD-ld} -melf64bmip"
4521 case `/usr/bin/file conftest.$ac_objext` in
4537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4538 s390*-*linux*|sparc*-*linux*)
4539 # Find out which ABI we are using.
4540 echo 'int i;' > conftest.$ac_ext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; then
4546 case `/usr/bin/file conftest.o` in
4549 x86_64-*kfreebsd*-gnu)
4550 LD="${LD-ld} -m elf_i386_fbsd"
4553 LD="${LD-ld} -m elf_i386"
4555 ppc64-*linux*|powerpc64-*linux*)
4556 LD="${LD-ld} -m elf32ppclinux"
4559 LD="${LD-ld} -m elf_s390"
4562 LD="${LD-ld} -m elf32_sparc"
4568 x86_64-*kfreebsd*-gnu)
4569 LD="${LD-ld} -m elf_x86_64_fbsd"
4572 LD="${LD-ld} -m elf_x86_64"
4574 ppc*-*linux*|powerpc*-*linux*)
4575 LD="${LD-ld} -m elf64ppc"
4578 LD="${LD-ld} -m elf64_s390"
4581 LD="${LD-ld} -m elf64_sparc"
4591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4592 SAVE_CFLAGS="$CFLAGS"
4593 CFLAGS="$CFLAGS -belf"
4594 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4595 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4596 if test "${lt_cv_cc_needs_belf+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 cat >conftest.$ac_ext <<_ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4620 rm -f conftest.$ac_objext conftest$ac_exeext
4621 if { (ac_try="$ac_link"
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_link") 2>conftest.er1
4629 grep -v '^ *+' conftest.er1 >conftest.err
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && {
4634 test -z "$ac_c_werror_flag" ||
4635 test ! -s conftest.err
4636 } && test -s conftest$ac_exeext &&
4637 $as_test_x conftest$ac_exeext; then
4638 lt_cv_cc_needs_belf=yes
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 lt_cv_cc_needs_belf=no
4646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4647 conftest$ac_exeext conftest.$ac_ext
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4656 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4657 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4659 CFLAGS="$SAVE_CFLAGS"
4663 # Find out which ABI we are using.
4664 echo 'int i;' > conftest.$ac_ext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; then
4670 case `/usr/bin/file conftest.o` in
4672 case $lt_cv_prog_gnu_ld in
4673 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4689 need_locks="$enable_libtool_lock"
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4703 if test -z "$CPP"; then
4704 if test "${ac_cv_prog_CPP+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 # Double quotes because CPP needs to be expanded
4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4711 for ac_c_preproc_warn_flag in '' yes
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4726 # include <limits.h>
4728 # include <assert.h>
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null && {
4745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 # Broken: fails on valid input.
4757 rm -f conftest.err conftest.$ac_ext
4759 # OK, works on sane cases. Now check whether nonexistent headers
4760 # can be detected and how.
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #include <ac_nonexistent.h>
4769 if { (ac_try="$ac_cpp conftest.$ac_ext"
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } >/dev/null && {
4782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4785 # Broken: success on invalid input.
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 # Passes both tests.
4796 rm -f conftest.err conftest.$ac_ext
4799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4800 rm -f conftest.err conftest.$ac_ext
4801 if $ac_preproc_ok; then
4813 { echo "$as_me:$LINENO: result: $CPP" >&5
4814 echo "${ECHO_T}$CPP" >&6; }
4816 for ac_c_preproc_warn_flag in '' yes
4818 # Use a header file that comes with gcc, so configuring glibc
4819 # with a fresh cross-compiler works.
4820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821 # <limits.h> exists even on freestanding compilers.
4822 # On the NeXT, cc -E runs the code through the compiler's parser,
4823 # not just through cpp. "Syntax error" is here to catch this case.
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4831 # include <limits.h>
4833 # include <assert.h>
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 # Broken: fails on valid input.
4862 rm -f conftest.err conftest.$ac_ext
4864 # OK, works on sane cases. Now check whether nonexistent headers
4865 # can be detected and how.
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <ac_nonexistent.h>
4874 if { (ac_try="$ac_cpp conftest.$ac_ext"
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } >/dev/null && {
4887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4890 # Broken: success on invalid input.
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4896 # Passes both tests.
4901 rm -f conftest.err conftest.$ac_ext
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then
4909 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details." >&5
4911 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&2;}
4913 { (exit 1); exit 1; }; }
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4924 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4925 if test "${ac_cv_header_stdc+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4947 rm -f conftest.$ac_objext
4948 if { (ac_try="$ac_compile"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_compile") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest.$ac_objext; then
4964 ac_cv_header_stdc=yes
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_cv_header_stdc=no
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 if test $ac_cv_header_stdc = yes; then
4975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "memchr" >/dev/null 2>&1; then
4989 ac_cv_header_stdc=no
4995 if test $ac_cv_header_stdc = yes; then
4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 $EGREP "free" >/dev/null 2>&1; then
5010 ac_cv_header_stdc=no
5016 if test $ac_cv_header_stdc = yes; then
5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018 if test "$cross_compiling" = yes; then
5021 cat >conftest.$ac_ext <<_ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5029 #if ((' ' & 0x0FF) == 0x020)
5030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5033 # define ISLOWER(c) \
5034 (('a' <= (c) && (c) <= 'i') \
5035 || ('j' <= (c) && (c) <= 'r') \
5036 || ('s' <= (c) && (c) <= 'z'))
5037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5045 for (i = 0; i < 256; i++)
5046 if (XOR (islower (i), ISLOWER (i))
5047 || toupper (i) != TOUPPER (i))
5052 rm -f conftest$ac_exeext
5053 if { (ac_try="$ac_link"
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_link") 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5063 { (case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_try") 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5074 echo "$as_me: program exited with status $ac_status" >&5
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_cv_header_stdc=no
5081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5087 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5088 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5089 if test $ac_cv_header_stdc = yes; then
5091 cat >>confdefs.h <<\_ACEOF
5092 #define STDC_HEADERS 1
5097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5108 inttypes.h stdint.h unistd.h
5110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5124 #include <$ac_header>
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5143 eval "$as_ac_Header=yes"
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 eval "$as_ac_Header=no"
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_res=`eval echo '${'$as_ac_Header'}'`
5154 { echo "$as_me:$LINENO: result: $ac_res" >&5
5155 echo "${ECHO_T}$ac_res" >&6; }
5156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5157 cat >>confdefs.h <<_ACEOF
5158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5167 for ac_header in dlfcn.h
5169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 ac_res=`eval echo '${'$as_ac_Header'}'`
5177 { echo "$as_me:$LINENO: result: $ac_res" >&5
5178 echo "${ECHO_T}$ac_res" >&6; }
5180 # Is the header compilable?
5181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 $ac_includes_default
5190 #include <$ac_header>
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5209 ac_header_compiler=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_header_compiler=no
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5219 echo "${ECHO_T}$ac_header_compiler" >&6; }
5221 # Is the header present?
5222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 #include <$ac_header>
5232 if { (ac_try="$ac_cpp conftest.$ac_ext"
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } >/dev/null && {
5245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5248 ac_header_preproc=yes
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_header_preproc=no
5256 rm -f conftest.err conftest.$ac_ext
5257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5258 echo "${ECHO_T}$ac_header_preproc" >&6; }
5260 # So? What about this header?
5261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5267 ac_header_preproc=yes
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 eval "$as_ac_Header=\$ac_header_preproc"
5292 ac_res=`eval echo '${'$as_ac_Header'}'`
5293 { echo "$as_me:$LINENO: result: $ac_res" >&5
5294 echo "${ECHO_T}$ac_res" >&6; }
5297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 ac_cpp='$CXXCPP $CPPFLAGS'
5308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311 if test -z "$CXX"; then
5312 if test -n "$CCC"; then
5315 if test -n "$ac_tool_prefix"; then
5316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322 if test "${ac_cv_prog_CXX+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if test -n "$CXX"; then
5326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 if test -n "$CXX"; then
5347 { echo "$as_me:$LINENO: result: $CXX" >&5
5348 echo "${ECHO_T}$CXX" >&6; }
5350 { echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6; }
5355 test -n "$CXX" && break
5358 if test -z "$CXX"; then
5360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5362 # Extract the first word of "$ac_prog", so it can be a program name with args.
5363 set dummy $ac_prog; ac_word=$2
5364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -n "$ac_ct_CXX"; then
5370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_ac_ct_CXX="$ac_prog"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390 if test -n "$ac_ct_CXX"; then
5391 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5392 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5394 { echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6; }
5399 test -n "$ac_ct_CXX" && break
5402 if test "x$ac_ct_CXX" = x; then
5405 case $cross_compiling:$ac_tool_warned in
5407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5408 whose name does not start with the host triplet. If you think this
5409 configuration is useful to you, please write to autoconf@gnu.org." >&5
5410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5411 whose name does not start with the host triplet. If you think this
5412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5413 ac_tool_warned=yes ;;
5421 # Provide some information about the compiler.
5422 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5423 ac_compiler=`set X $ac_compile; echo $2`
5424 { (ac_try="$ac_compiler --version >&5"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compiler --version >&5") 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }
5434 { (ac_try="$ac_compiler -v >&5"
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compiler -v >&5") 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }
5444 { (ac_try="$ac_compiler -V >&5"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_compiler -V >&5") 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }
5455 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5456 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5457 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 cat >conftest.$ac_ext <<_ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5508 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5509 GXX=`test $ac_compiler_gnu = yes && echo yes`
5510 ac_test_CXXFLAGS=${CXXFLAGS+set}
5511 ac_save_CXXFLAGS=$CXXFLAGS
5512 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5513 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_cxx_g+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5518 ac_cxx_werror_flag=yes
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_cxx_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_cv_prog_cxx_g=yes
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5583 grep -v '^ *+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_cxx_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_cxx_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_cv_prog_cxx_g=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5649 if test "$ac_test_CXXFLAGS" = set; then
5650 CXXFLAGS=$ac_save_CXXFLAGS
5651 elif test $ac_cv_prog_cxx_g = yes; then
5652 if test "$GXX" = yes; then
5658 if test "$GXX" = yes; then
5665 ac_cpp='$CXXCPP $CPPFLAGS'
5666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5670 depcc="$CXX" am_compiler_list=
5672 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5673 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5674 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5678 # We make a subdir and do the tests there. Otherwise we can end up
5679 # making bogus files that we don't know about and never remove. For
5680 # instance it was reported that on HP-UX the gcc test will end up
5681 # making a dummy file named `D' -- because `-MD' means `put the output
5684 # Copy depcomp to subdir because otherwise we won't find it if we're
5685 # using a relative directory.
5686 cp "$am_depcomp" conftest.dir
5688 # We will build objects and dependencies in a subdirectory because
5689 # it helps to detect inapplicable dependency modes. For instance
5690 # both Tru64's cc and ICC support -MD to output dependencies as a
5691 # side effect of compilation, but ICC will put the dependencies in
5692 # the current directory while Tru64 will put them in the object
5696 am_cv_CXX_dependencies_compiler_type=none
5697 if test "$am_compiler_list" = ""; then
5698 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5700 for depmode in $am_compiler_list; do
5701 # Setup a source with many dependencies, because some compilers
5702 # like to wrap large dependency lists on column 80 (with \), and
5703 # we should not choose a depcomp mode which is confused by this.
5705 # We need to recreate these files for each test, as the compiler may
5706 # overwrite some of them when testing with obscure command lines.
5707 # This happens at least with the AIX C compiler.
5709 for i in 1 2 3 4 5 6; do
5710 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5711 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5712 # Solaris 8's {/usr,}/bin/sh.
5713 touch sub/conftst$i.h
5715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5719 # after this tag, mechanisms are not by side-effect, so they'll
5720 # only be used when explicitly requested
5721 if test "x$enable_dependency_tracking" = xyes; then
5729 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5730 # mode. It turns out that the SunPro C++ compiler does not properly
5731 # handle `-M -o', and we need to detect this.
5732 if depmode=$depmode \
5733 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5735 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5736 >/dev/null 2>conftest.err &&
5737 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5738 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5739 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5740 # icc doesn't choke on unknown options, it will just issue warnings
5741 # or remarks (even with -Werror). So we grep stderr for any message
5742 # that says an option was ignored or not supported.
5743 # When given -MP, icc 7.0 and 7.1 complain thusly:
5744 # icc: Command line warning: ignoring option '-M'; no argument required
5745 # The diagnosis changed in icc 8.0:
5746 # icc: Command line remark: option '-MP' not supported
5747 if (grep 'ignoring option' conftest.err ||
5748 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5749 am_cv_CXX_dependencies_compiler_type=$depmode
5758 am_cv_CXX_dependencies_compiler_type=none
5762 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5763 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5764 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5769 test "x$enable_dependency_tracking" != xno \
5770 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5771 am__fastdepCXX_TRUE=
5772 am__fastdepCXX_FALSE='#'
5774 am__fastdepCXX_TRUE='#'
5775 am__fastdepCXX_FALSE=
5781 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5782 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5783 (test "X$CXX" != "Xg++"))) ; then
5785 ac_cpp='$CXXCPP $CPPFLAGS'
5786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5790 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5791 if test -z "$CXXCPP"; then
5792 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 # Double quotes because CXXCPP needs to be expanded
5796 for CXXCPP in "$CXX -E" "/lib/cpp"
5799 for ac_cxx_preproc_warn_flag in '' yes
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 # include <limits.h>
5816 # include <assert.h>
5820 if { (ac_try="$ac_cpp conftest.$ac_ext"
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 grep -v '^ *+' conftest.er1 >conftest.err
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null && {
5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5834 test ! -s conftest.err
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 # Broken: fails on valid input.
5845 rm -f conftest.err conftest.$ac_ext
5847 # OK, works on sane cases. Now check whether nonexistent headers
5848 # can be detected and how.
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <ac_nonexistent.h>
5857 if { (ac_try="$ac_cpp conftest.$ac_ext"
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } >/dev/null && {
5870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5873 # Broken: success on invalid input.
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 # Passes both tests.
5884 rm -f conftest.err conftest.$ac_ext
5887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5888 rm -f conftest.err conftest.$ac_ext
5889 if $ac_preproc_ok; then
5894 ac_cv_prog_CXXCPP=$CXXCPP
5897 CXXCPP=$ac_cv_prog_CXXCPP
5899 ac_cv_prog_CXXCPP=$CXXCPP
5901 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5902 echo "${ECHO_T}$CXXCPP" >&6; }
5904 for ac_cxx_preproc_warn_flag in '' yes
5906 # Use a header file that comes with gcc, so configuring glibc
5907 # with a fresh cross-compiler works.
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 # <limits.h> exists even on freestanding compilers.
5910 # On the NeXT, cc -E runs the code through the compiler's parser,
5911 # not just through cpp. "Syntax error" is here to catch this case.
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5919 # include <limits.h>
5921 # include <assert.h>
5925 if { (ac_try="$ac_cpp conftest.$ac_ext"
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null && {
5938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5939 test ! -s conftest.err
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 # Broken: fails on valid input.
5950 rm -f conftest.err conftest.$ac_ext
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 #include <ac_nonexistent.h>
5962 if { (ac_try="$ac_cpp conftest.$ac_ext"
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } >/dev/null && {
5975 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5976 test ! -s conftest.err
5978 # Broken: success on invalid input.
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 # Passes both tests.
5989 rm -f conftest.err conftest.$ac_ext
5992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5993 rm -f conftest.err conftest.$ac_ext
5994 if $ac_preproc_ok; then
5997 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5998 See \`config.log' for more details." >&5
5999 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&2;}
6001 { (exit 1); exit 1; }; }
6005 ac_cpp='$CXXCPP $CPPFLAGS'
6006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6014 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6015 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6017 if test -n "$ac_tool_prefix"; then
6018 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024 if test "${ac_cv_prog_F77+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$F77"; then
6028 ac_cv_prog_F77="$F77" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 if test -n "$F77"; then
6049 { echo "$as_me:$LINENO: result: $F77" >&5
6050 echo "${ECHO_T}$F77" >&6; }
6052 { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6057 test -n "$F77" && break
6060 if test -z "$F77"; then
6062 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 if test -n "$ac_ct_F77"; then
6072 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_ac_ct_F77="$ac_prog"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6092 if test -n "$ac_ct_F77"; then
6093 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6094 echo "${ECHO_T}$ac_ct_F77" >&6; }
6096 { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6101 test -n "$ac_ct_F77" && break
6104 if test "x$ac_ct_F77" = x; then
6107 case $cross_compiling:$ac_tool_warned in
6109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6110 whose name does not start with the host triplet. If you think this
6111 configuration is useful to you, please write to autoconf@gnu.org." >&5
6112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6113 whose name does not start with the host triplet. If you think this
6114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6115 ac_tool_warned=yes ;;
6122 # Provide some information about the compiler.
6123 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6124 ac_compiler=`set X $ac_compile; echo $2`
6125 { (ac_try="$ac_compiler --version >&5"
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compiler --version >&5") 2>&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }
6135 { (ac_try="$ac_compiler -v >&5"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compiler -v >&5") 2>&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }
6145 { (ac_try="$ac_compiler -V >&5"
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compiler -V >&5") 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }
6157 # If we don't use `.F' as extension, the preprocessor is not run on the
6158 # input file. (Note that this only needs to work for GNU compilers.)
6161 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6162 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6163 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 cat >conftest.$ac_ext <<_ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_compile") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_f77_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest.$ac_objext; then
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6203 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6204 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6206 ac_test_FFLAGS=${FFLAGS+set}
6207 ac_save_FFLAGS=$FFLAGS
6209 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6210 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_f77_g+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 cat >conftest.$ac_ext <<_ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6229 grep -v '^ *+' conftest.er1 >conftest.err
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && {
6234 test -z "$ac_f77_werror_flag" ||
6235 test ! -s conftest.err
6236 } && test -s conftest.$ac_objext; then
6237 ac_cv_prog_f77_g=yes
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6249 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6250 if test "$ac_test_FFLAGS" = set; then
6251 FFLAGS=$ac_save_FFLAGS
6252 elif test $ac_cv_prog_f77_g = yes; then
6253 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6259 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6266 G77=`test $ac_compiler_gnu = yes && echo yes`
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6275 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6276 # find the maximum length of command line arguments
6277 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6278 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6279 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 # On DJGPP, this test can blow up pretty badly due to problems in libc
6288 # (any single argument exceeding 2000 bytes causes a buffer overrun
6289 # during glob expansion). Even if it were fixed, the result of this
6290 # check would be larger than it should be.
6291 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6295 # Under GNU Hurd, this test is not required because there is
6296 # no limit to the length of command line arguments.
6297 # Libtool will interpret -1 as no limit whatsoever
6298 lt_cv_sys_max_cmd_len=-1;
6302 # On Win9x/ME, this test blows up -- it succeeds, but takes
6303 # about 5 minutes as the teststring grows exponentially.
6304 # Worse, since 9x/ME are not pre-emptively multitasking,
6305 # you end up with a "frozen" computer, even though with patience
6306 # the test eventually succeeds (with a max line length of 256k).
6307 # Instead, let's just punt: use the minimum linelength reported by
6308 # all of the supported platforms: 8192 (on NT/2K/XP).
6309 lt_cv_sys_max_cmd_len=8192;
6313 # On AmigaOS with pdksh, this test takes hours, literally.
6314 # So we just punt and use a minimum line length of 8192.
6315 lt_cv_sys_max_cmd_len=8192;
6318 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6319 # This has been around since 386BSD, at least. Likely further.
6320 if test -x /sbin/sysctl; then
6321 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6322 elif test -x /usr/sbin/sysctl; then
6323 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6325 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6327 # And add a safety zone
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6333 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6334 lt_cv_sys_max_cmd_len=196608
6338 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6339 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6340 # nice to cause kernel panics so lets avoid the loop below.
6341 # First set a reasonable default.
6342 lt_cv_sys_max_cmd_len=16384
6344 if test -x /sbin/sysconfig; then
6345 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6346 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6351 lt_cv_sys_max_cmd_len=102400
6353 sysv5* | sco5v6* | sysv4.2uw2*)
6354 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6355 if test -n "$kargmax"; then
6356 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6358 lt_cv_sys_max_cmd_len=32768
6362 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6363 if test -n "$lt_cv_sys_max_cmd_len"; then
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6369 = "XX$teststring") >/dev/null 2>&1 &&
6370 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6371 lt_cv_sys_max_cmd_len=$new_result &&
6372 test $i != 17 # 1/2 MB should be enough
6375 teststring=$teststring$teststring
6378 # Add a significant safety factor because C++ compilers can tack on massive
6379 # amounts of additional arguments before passing them to the linker.
6380 # It appears as though 1/2 is a usable value.
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6388 if test -n $lt_cv_sys_max_cmd_len ; then
6389 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6390 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6392 { echo "$as_me:$LINENO: result: none" >&5
6393 echo "${ECHO_T}none" >&6; }
6400 # Check for command to grab the raw symbol name followed by C symbol from nm.
6401 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6402 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6403 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 # These are sane defaults that work on at least a few old systems.
6408 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6410 # Character class describing NM global symbol codes.
6411 symcode='[BCDEGRST]'
6413 # Regexp to match symbols that can be accessed directly from C.
6414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6416 # Transform an extracted symbol line into a proper C declaration
6417 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6419 # Transform an extracted symbol line into symbol name and symbol address
6420 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'"
6422 # Define system-specific variables.
6427 cygwin* | mingw* | pw32*)
6428 symcode='[ABCDGISTW]'
6430 hpux*) # Its linker distinguishes data from code symbols
6431 if test "$host_cpu" = ia64; then
6432 symcode='[ABCDEGRST]'
6434 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6435 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'"
6437 linux* | k*bsd*-gnu)
6438 if test "$host_cpu" = ia64; then
6439 symcode='[ABCDGIRSTW]'
6440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6441 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'"
6445 symcode='[BCDEGRST]'
6448 symcode='[BCDEGQRST]'
6459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6467 # Handle CRLF in mingw tool chain
6471 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6475 # If we're using GNU nm, then use its standard symbol codes.
6476 case `$NM -V 2>&1` in
6477 *GNU* | *'with BFD'*)
6478 symcode='[ABCDGIRSTW]' ;;
6481 # Try without a prefix undercore, then with it.
6482 for ac_symprfx in "" "_"; do
6484 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6485 symxfrm="\\1 $ac_symprfx\\2 \\2"
6487 # Write the raw and C identifiers.
6488 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6490 # Check to see that the pipe works correctly.
6494 cat > conftest.$ac_ext <<EOF
6499 void nm_test_func(){}
6503 int main(){nm_test_var='a';nm_test_func();return(0);}
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; then
6511 # Now try to grab the symbols.
6513 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && test -s "$nlist"; then
6518 # Try sorting and uniquifying the output.
6519 if sort "$nlist" | uniq > "$nlist"T; then
6520 mv -f "$nlist"T "$nlist"
6525 # Make sure that we snagged all the symbols we need.
6526 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6527 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6528 cat <<EOF > conftest.$ac_ext
6534 # Now generate the symbol file.
6535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6537 cat <<EOF >> conftest.$ac_ext
6538 #if defined (__STDC__) && __STDC__
6539 # define lt_ptr_t void *
6541 # define lt_ptr_t char *
6545 /* The mapping between symbol names and symbols. */
6550 lt_preloaded_symbols[] =
6553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6554 cat <<\EOF >> conftest.$ac_ext
6562 # Now try linking the two files.
6563 mv conftest.$ac_objext conftstm.$ac_objext
6564 lt_save_LIBS="$LIBS"
6565 lt_save_CFLAGS="$CFLAGS"
6566 LIBS="conftstm.$ac_objext"
6567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6575 LIBS="$lt_save_LIBS"
6576 CFLAGS="$lt_save_CFLAGS"
6578 echo "cannot find nm_test_func in $nlist" >&5
6581 echo "cannot find nm_test_var in $nlist" >&5
6584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6587 echo "$progname: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6590 rm -rf conftest* conftst*
6592 # Do not use the global_symbol_pipe unless it works.
6593 if test "$pipe_works" = yes; then
6596 lt_cv_sys_global_symbol_pipe=
6602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6603 lt_cv_sys_global_symbol_to_cdecl=
6605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6606 { echo "$as_me:$LINENO: result: failed" >&5
6607 echo "${ECHO_T}failed" >&6; }
6609 { echo "$as_me:$LINENO: result: ok" >&5
6610 echo "${ECHO_T}ok" >&6; }
6613 { echo "$as_me:$LINENO: checking for objdir" >&5
6614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6615 if test "${lt_cv_objdir+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 rm -f .libs 2>/dev/null
6619 mkdir .libs 2>/dev/null
6620 if test -d .libs; then
6623 # MS-DOS does not allow filenames that begin with a dot.
6626 rmdir .libs 2>/dev/null
6628 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6630 objdir=$lt_cv_objdir
6638 # AIX sometimes has problems with the GCC collect2 program. For some
6639 # reason, if we set the COLLECT_NAMES environment variable, the problems
6640 # vanish in a puff of smoke.
6641 if test "X${COLLECT_NAMES+set}" != Xset; then
6643 export COLLECT_NAMES
6648 # Sed substitution that helps us do robust quoting. It backslashifies
6649 # metacharacters that are still active within double-quoted strings.
6650 Xsed='sed -e 1s/^X//'
6651 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6653 # Same as above, but do not quote variable references.
6654 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6656 # Sed substitution to delay expansion of an escaped shell variable in a
6657 # double_quote_subst'ed string.
6658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6660 # Sed substitution to avoid accidental globbing in evaled expressions
6661 no_glob_subst='s/\*/\\\*/g'
6667 default_ofile=libtool
6668 can_build_shared=yes
6670 # All known linkers require a `.a' archive for static linking (except MSVC,
6671 # which needs '.lib').
6673 ltmain="$ac_aux_dir/ltmain.sh"
6674 ofile="$default_ofile"
6675 with_gnu_ld="$lt_cv_prog_gnu_ld"
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}ar; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_prog_AR+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 if test -n "$AR"; then
6686 ac_cv_prog_AR="$AR" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_AR="${ac_tool_prefix}ar"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 if test -n "$AR"; then
6707 { echo "$as_me:$LINENO: result: $AR" >&5
6708 echo "${ECHO_T}$AR" >&6; }
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6716 if test -z "$ac_cv_prog_AR"; then
6718 # Extract the first word of "ar", so it can be a program name with args.
6719 set dummy ar; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$ac_ct_AR"; then
6726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_ac_ct_AR="ar"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6746 if test -n "$ac_ct_AR"; then
6747 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6748 echo "${ECHO_T}$ac_ct_AR" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6754 if test "x$ac_ct_AR" = x; then
6757 case $cross_compiling:$ac_tool_warned in
6759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&5
6762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6765 ac_tool_warned=yes ;;
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_RANLIB+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 if test -n "$RANLIB"; then
6782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6804 echo "${ECHO_T}$RANLIB" >&6; }
6806 { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813 ac_ct_RANLIB=$RANLIB
6814 # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$ac_ct_RANLIB"; then
6822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_RANLIB="ranlib"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6842 if test -n "$ac_ct_RANLIB"; then
6843 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6844 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6850 if test "x$ac_ct_RANLIB" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6863 RANLIB=$ac_ct_RANLIB
6866 RANLIB="$ac_cv_prog_RANLIB"
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}strip; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_prog_STRIP+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 if test -n "$STRIP"; then
6878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 STRIP=$ac_cv_prog_STRIP
6898 if test -n "$STRIP"; then
6899 { echo "$as_me:$LINENO: result: $STRIP" >&5
6900 echo "${ECHO_T}$STRIP" >&6; }
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6908 if test -z "$ac_cv_prog_STRIP"; then
6910 # Extract the first word of "strip", so it can be a program name with args.
6911 set dummy strip; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 if test -n "$ac_ct_STRIP"; then
6918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_STRIP="strip"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6938 if test -n "$ac_ct_STRIP"; then
6939 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6940 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6946 if test "x$ac_ct_STRIP" = x; then
6949 case $cross_compiling:$ac_tool_warned in
6951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet. If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&5
6954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet. If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6957 ac_tool_warned=yes ;;
6962 STRIP="$ac_cv_prog_STRIP"
6967 old_CFLAGS="$CFLAGS"
6969 # Set sane defaults for various variables
6970 test -z "$AR" && AR=ar
6971 test -z "$AR_FLAGS" && AR_FLAGS=cru
6972 test -z "$AS" && AS=as
6973 test -z "$CC" && CC=cc
6974 test -z "$LTCC" && LTCC=$CC
6975 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6976 test -z "$DLLTOOL" && DLLTOOL=dlltool
6977 test -z "$LD" && LD=ld
6978 test -z "$LN_S" && LN_S="ln -s"
6979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6980 test -z "$NM" && NM=nm
6981 test -z "$SED" && SED=sed
6982 test -z "$OBJDUMP" && OBJDUMP=objdump
6983 test -z "$RANLIB" && RANLIB=:
6984 test -z "$STRIP" && STRIP=:
6985 test -z "$ac_objext" && ac_objext=o
6987 # Determine commands to create old-style static archives.
6988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6989 old_postinstall_cmds='chmod 644 $oldlib'
6990 old_postuninstall_cmds=
6992 if test -n "$RANLIB"; then
6995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7001 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7004 for cc_temp in $compiler""; do
7006 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7007 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7012 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7015 # Only perform the check for file, if the check method requires it
7016 case $deplibs_check_method in
7018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7019 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7020 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7029 lt_save_MAGIC_CMD="$MAGIC_CMD"
7030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7032 for ac_dir in $ac_dummy; do
7034 test -z "$ac_dir" && ac_dir=.
7035 if test -f $ac_dir/${ac_tool_prefix}file; then
7036 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7037 if test -n "$file_magic_test_file"; then
7038 case $deplibs_check_method in
7040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7043 $EGREP "$file_magic_regex" > /dev/null; then
7048 *** Warning: the command libtool uses to detect shared libraries,
7049 *** $file_magic_cmd, produces output that libtool cannot recognize.
7050 *** The result is that libtool may fail to recognize shared libraries
7051 *** as such. This will affect the creation of libtool libraries that
7052 *** depend on shared libraries, but programs linked with such libtool
7053 *** libraries will work regardless of this problem. Nevertheless, you
7054 *** may want to report the problem to your system manager and/or to
7055 *** bug-libtool@gnu.org
7065 MAGIC_CMD="$lt_save_MAGIC_CMD"
7070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071 if test -n "$MAGIC_CMD"; then
7072 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7073 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7079 if test -z "$lt_cv_path_MAGIC_CMD"; then
7080 if test -n "$ac_tool_prefix"; then
7081 { echo "$as_me:$LINENO: checking for file" >&5
7082 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7083 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7091 lt_save_MAGIC_CMD="$MAGIC_CMD"
7092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7094 for ac_dir in $ac_dummy; do
7096 test -z "$ac_dir" && ac_dir=.
7097 if test -f $ac_dir/file; then
7098 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7099 if test -n "$file_magic_test_file"; then
7100 case $deplibs_check_method in
7102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7105 $EGREP "$file_magic_regex" > /dev/null; then
7110 *** Warning: the command libtool uses to detect shared libraries,
7111 *** $file_magic_cmd, produces output that libtool cannot recognize.
7112 *** The result is that libtool may fail to recognize shared libraries
7113 *** as such. This will affect the creation of libtool libraries that
7114 *** depend on shared libraries, but programs linked with such libtool
7115 *** libraries will work regardless of this problem. Nevertheless, you
7116 *** may want to report the problem to your system manager and/or to
7117 *** bug-libtool@gnu.org
7127 MAGIC_CMD="$lt_save_MAGIC_CMD"
7132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7133 if test -n "$MAGIC_CMD"; then
7134 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7135 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7152 rhapsody* | darwin*)
7153 if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 if test -n "$DSYMUTIL"; then
7162 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7182 if test -n "$DSYMUTIL"; then
7183 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7184 echo "${ECHO_T}$DSYMUTIL" >&6; }
7186 { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7192 if test -z "$ac_cv_prog_DSYMUTIL"; then
7193 ac_ct_DSYMUTIL=$DSYMUTIL
7194 # Extract the first word of "dsymutil", so it can be a program name with args.
7195 set dummy dsymutil; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 if test -n "$ac_ct_DSYMUTIL"; then
7202 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7222 if test -n "$ac_ct_DSYMUTIL"; then
7223 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7224 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7230 if test "x$ac_ct_DSYMUTIL" = x; then
7233 case $cross_compiling:$ac_tool_warned in
7235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7236 whose name does not start with the host triplet. If you think this
7237 configuration is useful to you, please write to autoconf@gnu.org." >&5
7238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet. If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7241 ac_tool_warned=yes ;;
7243 DSYMUTIL=$ac_ct_DSYMUTIL
7246 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 if test -n "$NMEDIT"; then
7258 ac_cv_prog_NMEDIT="$NMEDIT" # 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 NMEDIT=$ac_cv_prog_NMEDIT
7278 if test -n "$NMEDIT"; then
7279 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7280 echo "${ECHO_T}$NMEDIT" >&6; }
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7288 if test -z "$ac_cv_prog_NMEDIT"; then
7289 ac_ct_NMEDIT=$NMEDIT
7290 # Extract the first word of "nmedit", so it can be a program name with args.
7291 set dummy nmedit; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 if test -n "$ac_ct_NMEDIT"; then
7298 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7318 if test -n "$ac_ct_NMEDIT"; then
7319 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7320 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7322 { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7326 if test "x$ac_ct_NMEDIT" = x; then
7329 case $cross_compiling:$ac_tool_warned in
7331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet. If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7339 NMEDIT=$ac_ct_NMEDIT
7342 NMEDIT="$ac_cv_prog_NMEDIT"
7346 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7347 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7348 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 lt_cv_apple_cc_single_mod=no
7352 if test -z "${LT_MULTI_MODULE}"; then
7353 # By default we will add the -single_module flag. You can override
7354 # by either setting the environment variable LT_MULTI_MODULE
7355 # non-empty at configure time, or by adding -multi_module to the
7357 echo "int foo(void){return 1;}" > conftest.c
7358 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7359 -dynamiclib ${wl}-single_module conftest.c
7360 if test -f libconftest.dylib; then
7361 lt_cv_apple_cc_single_mod=yes
7362 rm -rf libconftest.dylib*
7367 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7368 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7369 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7370 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7371 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 lt_cv_ld_exported_symbols_list=no
7375 save_LDFLAGS=$LDFLAGS
7376 echo "_main" > conftest.sym
7377 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (ac_try="$ac_link"
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_link") 2>conftest.er1
7402 grep -v '^ *+' conftest.er1 >conftest.err
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_c_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest$ac_exeext &&
7410 $as_test_x conftest$ac_exeext; then
7411 lt_cv_ld_exported_symbols_list=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 lt_cv_ld_exported_symbols_list=no
7419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7420 conftest$ac_exeext conftest.$ac_ext
7421 LDFLAGS="$save_LDFLAGS"
7424 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7425 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7427 rhapsody* | darwin1.[0123])
7428 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7430 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 # if running on 10.5 or later, the deployment target defaults
7433 # to the OS version, if on x86, and 10.4, the deployment
7434 # target defaults to 10.4. Don't you love it?
7435 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7436 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7437 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7439 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7445 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7446 _lt_dar_single_mod='$single_module'
7448 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7449 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7451 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7453 if test "$DSYMUTIL" != ":"; then
7454 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7465 # Check whether --enable-libtool-lock was given.
7466 if test "${enable_libtool_lock+set}" = set; then
7467 enableval=$enable_libtool_lock;
7470 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7473 # Check whether --with-pic was given.
7474 if test "${with_pic+set}" = set; then
7475 withval=$with_pic; pic_mode="$withval"
7480 test -z "$pic_mode" && pic_mode=default
7482 # Use C for the default configuration in the libtool script
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492 # Source file extension for C test sources.
7495 # Object file extension for compiled C test sources.
7499 # Code to be used in simple compile tests
7500 lt_simple_compile_test_code="int some_variable = 0;"
7502 # Code to be used in simple link tests
7503 lt_simple_link_test_code='int main(){return(0);}'
7506 # If no C compiler was specified, use CC.
7509 # If no C compiler flags were specified, use CFLAGS.
7510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7512 # Allow CC to be a program name with arguments.
7516 # save warnings/boilerplate of simple test code
7517 ac_outfile=conftest.$ac_objext
7518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7520 _lt_compiler_boilerplate=`cat conftest.err`
7523 ac_outfile=conftest.$ac_objext
7524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7526 _lt_linker_boilerplate=`cat conftest.err`
7531 lt_prog_compiler_no_builtin_flag=
7533 if test "$GCC" = yes; then
7534 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7537 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7538 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7539 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 lt_cv_prog_compiler_rtti_exceptions=no
7543 ac_outfile=conftest.$ac_objext
7544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7545 lt_compiler_flag="-fno-rtti -fno-exceptions"
7546 # Insert the option either (1) after the last *FLAGS variable, or
7547 # (2) before a word containing "conftest.", or (3) at the end.
7548 # Note that $ac_compile itself does not contain backslashes and begins
7549 # with a dollar sign (not a hyphen), so the echo should work correctly.
7550 # The option is referenced via a variable to avoid confusing sed.
7551 lt_compile=`echo "$ac_compile" | $SED \
7552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7554 -e 's:$: $lt_compiler_flag:'`
7555 (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
7556 (eval "$lt_compile" 2>conftest.err)
7558 cat conftest.err >&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 if (exit $ac_status) && test -s "$ac_outfile"; then
7561 # The compiler can only warn and ignore the option if not recognized
7562 # So say no if there are warnings other than the usual output.
7563 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7566 lt_cv_prog_compiler_rtti_exceptions=yes
7572 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7573 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7575 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7576 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7583 lt_prog_compiler_wl=
7584 lt_prog_compiler_pic=
7585 lt_prog_compiler_static=
7587 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7590 if test "$GCC" = yes; then
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_static='-static'
7596 # All AIX code is PIC.
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 now supports IA64 processor
7599 lt_prog_compiler_static='-Bstatic'
7604 # FIXME: we need at least 68020 code to build shared libraries, but
7605 # adding the `-m68020' flag to GCC prevents building anything better,
7607 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7611 # PIC is the default for these OSes.
7614 mingw* | cygwin* | pw32* | os2*)
7615 # This hack is so that the source file can tell whether it is being
7616 # built for inclusion in a dll (and should export symbols for example).
7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618 # (--disable-auto-import) libraries
7619 lt_prog_compiler_pic='-DDLL_EXPORT'
7622 darwin* | rhapsody*)
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 lt_prog_compiler_pic='-fno-common'
7629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7630 # Instead, we relocate shared libraries at runtime.
7634 # Just because we use GCC doesn't mean we suddenly get shared libraries
7635 # on systems that don't support them.
7636 lt_prog_compiler_can_build_shared=no
7641 if test -d /usr/nec; then
7642 lt_prog_compiler_pic=-Kconform_pic
7647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7654 lt_prog_compiler_pic='-fPIC'
7660 lt_prog_compiler_pic='-fPIC'
7664 # PORTME Check for flag to pass linker flags through the system compiler.
7667 lt_prog_compiler_wl='-Wl,'
7668 if test "$host_cpu" = ia64; then
7669 # AIX 5 now supports IA64 processor
7670 lt_prog_compiler_static='-Bstatic'
7672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7676 # PIC is the default on this platform
7677 # Common symbols not allowed in MH_DYLIB files
7678 case $cc_basename in
7680 lt_prog_compiler_pic='-qnocommon'
7681 lt_prog_compiler_wl='-Wl,'
7686 mingw* | cygwin* | pw32* | os2*)
7687 # This hack is so that the source file can tell whether it is being
7688 # built for inclusion in a dll (and should export symbols for example).
7689 lt_prog_compiler_pic='-DDLL_EXPORT'
7692 hpux9* | hpux10* | hpux11*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7701 lt_prog_compiler_pic='+Z'
7704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7705 lt_prog_compiler_static='${wl}-a ${wl}archive'
7708 irix5* | irix6* | nonstopux*)
7709 lt_prog_compiler_wl='-Wl,'
7710 # PIC (with -KPIC) is the default.
7711 lt_prog_compiler_static='-non_shared'
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-Bstatic'
7719 linux* | k*bsd*-gnu)
7720 case $cc_basename in
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-static'
7726 pgcc* | pgf77* | pgf90* | pgf95*)
7727 # Portland Group compilers (*not* the Pentium gcc compiler,
7728 # which looks to be a dead project)
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-fpic'
7731 lt_prog_compiler_static='-Bstatic'
7734 lt_prog_compiler_wl='-Wl,'
7735 # All Alpha code is PIC.
7736 lt_prog_compiler_static='-non_shared'
7739 case `$CC -V 2>&1 | sed 5q` in
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_wl='-Wl,'
7747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748 lt_prog_compiler_pic='-KPIC'
7749 lt_prog_compiler_static='-Bstatic'
7750 lt_prog_compiler_wl=''
7757 osf3* | osf4* | osf5*)
7758 lt_prog_compiler_wl='-Wl,'
7759 # All OSF/1 code is PIC.
7760 lt_prog_compiler_static='-non_shared'
7764 lt_prog_compiler_static='-non_shared'
7768 lt_prog_compiler_pic='-KPIC'
7769 lt_prog_compiler_static='-Bstatic'
7770 case $cc_basename in
7772 lt_prog_compiler_wl='-Qoption ld ';;
7774 lt_prog_compiler_wl='-Wl,';;
7779 lt_prog_compiler_wl='-Qoption ld '
7780 lt_prog_compiler_pic='-PIC'
7781 lt_prog_compiler_static='-Bstatic'
7784 sysv4 | sysv4.2uw2* | sysv4.3*)
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_pic='-KPIC'
7787 lt_prog_compiler_static='-Bstatic'
7791 if test -d /usr/nec ;then
7792 lt_prog_compiler_pic='-Kconform_pic'
7793 lt_prog_compiler_static='-Bstatic'
7797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_can_build_shared=no
7809 lt_prog_compiler_pic='-pic'
7810 lt_prog_compiler_static='-Bstatic'
7814 lt_prog_compiler_can_build_shared=no
7819 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7820 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7823 # Check to make sure the PIC flag actually works.
7825 if test -n "$lt_prog_compiler_pic"; then
7827 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7828 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7829 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 lt_cv_prog_compiler_pic_works=no
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7836 # Insert the option either (1) after the last *FLAGS variable, or
7837 # (2) before a word containing "conftest.", or (3) at the end.
7838 # Note that $ac_compile itself does not contain backslashes and begins
7839 # with a dollar sign (not a hyphen), so the echo should work correctly.
7840 # The option is referenced via a variable to avoid confusing sed.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
7845 (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846 (eval "$lt_compile" 2>conftest.err)
7848 cat conftest.err >&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 if (exit $ac_status) && test -s "$ac_outfile"; then
7851 # The compiler can only warn and ignore the option if not recognized
7852 # So say no if there are warnings other than the usual output.
7853 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856 lt_cv_prog_compiler_pic_works=yes
7862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7863 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7865 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7866 case $lt_prog_compiler_pic in
7868 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7871 lt_prog_compiler_pic=
7872 lt_prog_compiler_can_build_shared=no
7877 # For platforms which do not support PIC, -DPIC is meaningless:
7879 lt_prog_compiler_pic=
7882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7887 # Check to make sure the static flag actually works.
7889 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7890 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7891 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7892 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 lt_cv_prog_compiler_static_works=no
7896 save_LDFLAGS="$LDFLAGS"
7897 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7898 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7900 # The linker can only warn and ignore the option if not recognized
7901 # So say no if there are warnings
7902 if test -s conftest.err; then
7903 # Append any errors to the config.log.
7904 cat conftest.err 1>&5
7905 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907 if diff conftest.exp conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_static_works=yes
7911 lt_cv_prog_compiler_static_works=yes
7915 LDFLAGS="$save_LDFLAGS"
7918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7919 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7921 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7924 lt_prog_compiler_static=
7928 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 lt_cv_prog_compiler_c_o=no
7934 $rm -r conftest 2>/dev/null
7938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7940 lt_compiler_flag="-o out/conftest2.$ac_objext"
7941 # Insert the option either (1) after the last *FLAGS variable, or
7942 # (2) before a word containing "conftest.", or (3) at the end.
7943 # Note that $ac_compile itself does not contain backslashes and begins
7944 # with a dollar sign (not a hyphen), so the echo should work correctly.
7945 lt_compile=`echo "$ac_compile" | $SED \
7946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7948 -e 's:$: $lt_compiler_flag:'`
7949 (eval echo "\"\$as_me:7949: $lt_compile\"" >&5)
7950 (eval "$lt_compile" 2>out/conftest.err)
7952 cat out/conftest.err >&5
7953 echo "$as_me:7953: \$? = $ac_status" >&5
7954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7956 # The compiler can only warn and ignore the option if not recognized
7957 # So say no if there are warnings
7958 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7961 lt_cv_prog_compiler_c_o=yes
7966 # SGI C++ compiler will create directory out/ii_files/ for
7967 # template instantiation
7968 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7969 $rm out/* && rmdir out
7975 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7979 hard_links="nottested"
7980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7981 # do not overwrite the value of need_locks provided by the user
7982 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7988 ln conftest.a conftest.b 2>&5 || hard_links=no
7989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990 { echo "$as_me:$LINENO: result: $hard_links" >&5
7991 echo "${ECHO_T}$hard_links" >&6; }
7992 if test "$hard_links" = no; then
7993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8001 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8005 allow_undefined_flag=
8006 enable_shared_with_static_runtimes=no
8008 archive_expsym_cmds=
8009 old_archive_From_new_cmds=
8010 old_archive_from_expsyms_cmds=
8011 export_dynamic_flag_spec=
8012 whole_archive_flag_spec=
8013 thread_safe_flag_spec=
8014 hardcode_libdir_flag_spec=
8015 hardcode_libdir_flag_spec_ld=
8016 hardcode_libdir_separator=
8019 hardcode_shlibpath_var=unsupported
8020 link_all_deplibs=unknown
8021 hardcode_automatic=no
8024 always_export_symbols=no
8025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8026 # include_expsyms should be a list of space-separated symbols to be *always*
8027 # included in the symbol list
8029 # exclude_expsyms can be an extended regexp of symbols to exclude
8030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8032 # as well as any symbol that contains `d'.
8033 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8035 # platforms (ab)use it in PIC code, but their linkers get confused if
8036 # the symbol is explicitly referenced. Since portable code cannot
8037 # rely on this symbol name, it's probably fine to never include it in
8038 # preloaded symbol tables.
8039 # Exclude shared library initialization/finalization symbols.
8040 extract_expsyms_cmds=
8041 # Just being paranoid about ensuring that cc_basename is set.
8042 for cc_temp in $compiler""; do
8044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8053 cygwin* | mingw* | pw32*)
8054 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8055 # When not using gcc, we currently assume that we are using
8056 # Microsoft Visual C++.
8057 if test "$GCC" != yes; then
8062 # we just hope/assume this is gcc and not c89 (= MSVC++)
8071 if test "$with_gnu_ld" = yes; then
8072 # If archive_cmds runs LD, not CC, wlarc should be empty
8075 # Set some defaults for GNU ld with shared library support. These
8076 # are reset later if shared libraries are not supported. Putting them
8077 # here allows them to be overridden if necessary.
8078 runpath_var=LD_RUN_PATH
8079 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8080 export_dynamic_flag_spec='${wl}--export-dynamic'
8081 # ancient GNU ld didn't support --whole-archive et. al.
8082 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8083 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8085 whole_archive_flag_spec=
8087 supports_anon_versioning=no
8088 case `$LD -v 2>/dev/null` in
8089 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8090 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8091 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8092 *\ 2.11.*) ;; # other 2.11 versions
8093 *) supports_anon_versioning=yes ;;
8096 # See if GNU ld supports shared libraries.
8099 # On AIX/PPC, the GNU linker is very broken
8100 if test "$host_cpu" != ia64; then
8104 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8105 *** to be unable to reliably create shared libraries on AIX.
8106 *** Therefore, libtool is disabling shared libraries support. If you
8107 *** really care for shared libraries, you may want to modify your PATH
8108 *** so that a non-GNU linker is found, and then restart.
8115 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)'
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_minus_L=yes
8119 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8120 # that the semantics of dynamic libraries on AmigaOS, at least up
8121 # to version 4, is to share data among multiple programs linked
8122 # with the same dynamic library. Since this doesn't match the
8123 # behavior of shared libraries on other platforms, we can't use
8129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8130 allow_undefined_flag=unsupported
8131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8132 # support --undefined. This deserves some investigation. FIXME
8133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8139 cygwin* | mingw* | pw32*)
8140 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8141 # as there is no search path for DLLs.
8142 hardcode_libdir_flag_spec='-L$libdir'
8143 allow_undefined_flag=unsupported
8144 always_export_symbols=no
8145 enable_shared_with_static_runtimes=yes
8146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8148 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8150 # If the export-symbols file already is a .def file (1st line
8151 # is EXPORTS), use it as is; otherwise, prepend...
8152 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8153 cp $export_symbols $output_objdir/$soname.def;
8155 echo EXPORTS > $output_objdir/$soname.def;
8156 cat $export_symbols >> $output_objdir/$soname.def;
8158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166 hardcode_shlibpath_var=no
8167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8168 export_dynamic_flag_spec='${wl}-E'
8169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8170 # Instead, shared libraries are loaded at an image base (0x10000000 by
8171 # default) and relocated if they conflict, which is a slow very memory
8172 # consuming and fragmenting process. To avoid this, we pick a random,
8173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8176 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'
8179 gnu* | linux* | k*bsd*-gnu)
8180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8182 case $cc_basename,$host_cpu in
8183 pgcc*) # Portland Group C compiler
8184 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'
8185 tmp_addflag=' $pic_flag'
8187 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8188 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'
8189 tmp_addflag=' $pic_flag -Mnomain' ;;
8190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8191 tmp_addflag=' -i_dynamic' ;;
8192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8193 tmp_addflag=' -i_dynamic -nofor_main' ;;
8194 ifc* | ifort*) # Intel Fortran compiler
8195 tmp_addflag=' -nofor_main' ;;
8197 case `$CC -V 2>&1 | sed 5q` in
8198 *Sun\ C*) # Sun C 5.9
8199 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8200 tmp_sharedflag='-G' ;;
8201 *Sun\ F*) # Sun Fortran 8.3
8202 tmp_sharedflag='-G' ;;
8204 tmp_sharedflag='-shared' ;;
8206 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208 if test $supports_anon_versioning = yes; then
8209 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8211 $echo "local: *; };" >> $output_objdir/$libname.ver~
8212 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8220 netbsd* | netbsdelf*-gnu)
8221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8222 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8235 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8236 *** create shared libraries on Solaris systems. Therefore, libtool
8237 *** is disabling shared libraries support. We urge you to upgrade GNU
8238 *** binutils to release 2.9.1 or newer. Another option is to modify
8239 *** your PATH or compiler configuration so that the native linker is
8240 *** used, and then restart.
8243 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8252 case `$LD -v 2>&1` in
8253 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8257 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8258 *** reliably create shared libraries on SCO systems. Therefore, libtool
8259 *** is disabling shared libraries support. We urge you to upgrade GNU
8260 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8261 *** your PATH or compiler configuration so that the native linker is
8262 *** used, and then restart.
8267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8268 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282 hardcode_shlibpath_var=no
8286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295 if test "$ld_shlibs" = no; then
8297 hardcode_libdir_flag_spec=
8298 export_dynamic_flag_spec=
8299 whole_archive_flag_spec=
8302 # PORTME fill in a description of your system's linker (not GNU ld)
8305 allow_undefined_flag=unsupported
8306 always_export_symbols=yes
8307 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'
8308 # Note: this linker hardcodes the directories in LIBPATH if there
8309 # are no directories specified by -L.
8310 hardcode_minus_L=yes
8311 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8312 # Neither direct hardcoding nor static linking is supported with a
8314 hardcode_direct=unsupported
8319 if test "$host_cpu" = ia64; then
8320 # On IA64, the linker does run time linking by default, so we don't
8321 # have to do anything special.
8322 aix_use_runtimelinking=no
8323 exp_sym_flag='-Bexport'
8326 # If we're using GNU nm, then we don't want the "-C" option.
8327 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8329 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'
8331 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'
8333 aix_use_runtimelinking=no
8335 # Test if we are trying to use run time linking or normal
8336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8337 # need to do runtime linking.
8338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8339 for ld_flag in $LDFLAGS; do
8340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8341 aix_use_runtimelinking=yes
8348 exp_sym_flag='-bexport'
8349 no_entry_flag='-bnoentry'
8352 # When large executables or shared objects are built, AIX ld can
8353 # have problems creating the table of contents. If linking a library
8354 # or program results in "error TOC overflow" add -mminimal-toc to
8355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8360 hardcode_libdir_separator=':'
8361 link_all_deplibs=yes
8363 if test "$GCC" = yes; then
8364 case $host_os in aix4.[012]|aix4.[012].*)
8365 # We only want to do this on AIX 4.2 and lower, the check
8366 # below for broken collect2 doesn't work under 4.3+
8367 collect2name=`${CC} -print-prog-name=collect2`
8368 if test -f "$collect2name" && \
8369 strings "$collect2name" | grep resolve_lib_name >/dev/null
8371 # We have reworked collect2
8374 # We have old collect2
8375 hardcode_direct=unsupported
8376 # It fails to find uninstalled libraries when the uninstalled
8377 # path is not listed in the libpath. Setting hardcode_minus_L
8378 # to unsupported forces relinking
8379 hardcode_minus_L=yes
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_libdir_separator=
8385 shared_flag='-shared'
8386 if test "$aix_use_runtimelinking" = yes; then
8387 shared_flag="$shared_flag "'${wl}-G'
8391 if test "$host_cpu" = ia64; then
8392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8393 # chokes on -Wl,-G. The following line is correct:
8396 if test "$aix_use_runtimelinking" = yes; then
8397 shared_flag='${wl}-G'
8399 shared_flag='${wl}-bM:SRE'
8404 # It seems that -bexpall does not export symbols beginning with
8405 # underscore (_), so it is better to generate a list of symbols to export.
8406 always_export_symbols=yes
8407 if test "$aix_use_runtimelinking" = yes; then
8408 # Warning - without using the other runtime loading flags (-brtl),
8409 # -berok will link without error, but may produce a broken library.
8410 allow_undefined_flag='-berok'
8411 # Determine the default libpath from the value encoded in an empty executable.
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_link") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest$ac_exeext &&
8444 $as_test_x conftest$ac_exeext; then
8446 lt_aix_libpath_sed='
8447 /Import File Strings/,/^$/ {
8453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8454 # Check for a 64-bit object if we didn't find anything.
8455 if test -z "$aix_libpath"; then
8456 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466 conftest$ac_exeext conftest.$ac_ext
8467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8470 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"
8472 if test "$host_cpu" = ia64; then
8473 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8474 allow_undefined_flag="-z nodefs"
8475 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"
8477 # Determine the default libpath from the value encoded in an empty executable.
8478 cat >conftest.$ac_ext <<_ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_link") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext &&
8510 $as_test_x conftest$ac_exeext; then
8512 lt_aix_libpath_sed='
8513 /Import File Strings/,/^$/ {
8519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8520 # Check for a 64-bit object if we didn't find anything.
8521 if test -z "$aix_libpath"; then
8522 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8532 conftest$ac_exeext conftest.$ac_ext
8533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8536 # Warning - without using the other run time loading flags,
8537 # -berok will link without error, but may produce a broken library.
8538 no_undefined_flag=' ${wl}-bernotok'
8539 allow_undefined_flag=' ${wl}-berok'
8540 # Exported symbols can be pulled into shared objects from archives
8541 whole_archive_flag_spec='$convenience'
8542 archive_cmds_need_lc=yes
8543 # This is similar to how AIX traditionally builds its shared libraries.
8544 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'
8550 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)'
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 hardcode_minus_L=yes
8553 # see comment about different semantics on the GNU ld section
8558 export_dynamic_flag_spec=-rdynamic
8561 cygwin* | mingw* | pw32*)
8562 # When not using gcc, we currently assume that we are using
8563 # Microsoft Visual C++.
8564 # hardcode_libdir_flag_spec is actually meaningless, as there is
8565 # no search path for DLLs.
8566 hardcode_libdir_flag_spec=' '
8567 allow_undefined_flag=unsupported
8568 # Tell ltmain to make .lib files, not .a files.
8570 # Tell ltmain to make .dll files, not .so files.
8572 # FIXME: Setting linknames here is a bad hack.
8573 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8574 # The linker will automatically build a .lib file if we build a DLL.
8575 old_archive_From_new_cmds='true'
8576 # FIXME: Should let the user specify the lib program.
8577 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8578 fix_srcfile_path='`cygpath -w "$srcfile"`'
8579 enable_shared_with_static_runtimes=yes
8582 darwin* | rhapsody*)
8584 rhapsody* | darwin1.[012])
8585 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8588 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8589 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8591 case ${MACOSX_DEPLOYMENT_TARGET} in
8593 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8596 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8602 archive_cmds_need_lc=no
8604 hardcode_automatic=yes
8605 hardcode_shlibpath_var=unsupported
8606 whole_archive_flag_spec=''
8607 link_all_deplibs=yes
8608 if test "$GCC" = yes ; then
8609 output_verbose_link_cmd='echo'
8610 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8611 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8612 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8613 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8615 case $cc_basename in
8617 output_verbose_link_cmd='echo'
8618 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8619 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8621 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8622 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}'
8632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_libdir_flag_spec='-L$libdir'
8634 hardcode_shlibpath_var=no
8641 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8642 # support. Future versions do this automatically, but an explicit c++rt0.o
8643 # does not break anything, and helps significantly (at the cost of a little
8646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8647 hardcode_libdir_flag_spec='-R$libdir'
8649 hardcode_shlibpath_var=no
8652 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8656 hardcode_minus_L=yes
8657 hardcode_shlibpath_var=no
8660 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8661 freebsd* | dragonfly*)
8662 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8663 hardcode_libdir_flag_spec='-R$libdir'
8665 hardcode_shlibpath_var=no
8669 if test "$GCC" = yes; then
8670 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'
8672 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'
8674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8675 hardcode_libdir_separator=:
8678 # hardcode_minus_L: Not really in the search PATH,
8679 # but as the default location of the library.
8680 hardcode_minus_L=yes
8681 export_dynamic_flag_spec='${wl}-E'
8685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8686 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8690 if test "$with_gnu_ld" = no; then
8691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8692 hardcode_libdir_separator=:
8695 export_dynamic_flag_spec='${wl}-E'
8697 # hardcode_minus_L: Not really in the search PATH,
8698 # but as the default location of the library.
8699 hardcode_minus_L=yes
8704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8707 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729 if test "$with_gnu_ld" = no; then
8730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8731 hardcode_libdir_separator=:
8735 hardcode_libdir_flag_spec_ld='+b $libdir'
8737 hardcode_shlibpath_var=no
8741 export_dynamic_flag_spec='${wl}-E'
8743 # hardcode_minus_L: Not really in the search PATH,
8744 # but as the default location of the library.
8745 hardcode_minus_L=yes
8751 irix5* | irix6* | nonstopux*)
8752 if test "$GCC" = yes; then
8753 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'
8755 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'
8756 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8759 hardcode_libdir_separator=:
8760 link_all_deplibs=yes
8763 netbsd* | netbsdelf*-gnu)
8764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8767 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8769 hardcode_libdir_flag_spec='-R$libdir'
8771 hardcode_shlibpath_var=no
8775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 hardcode_libdir_separator=:
8779 hardcode_shlibpath_var=no
8783 if test -f /usr/libexec/ld.so; then
8785 hardcode_shlibpath_var=no
8786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8790 export_dynamic_flag_spec='${wl}-E'
8793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_libdir_flag_spec='-R$libdir'
8798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8809 hardcode_libdir_flag_spec='-L$libdir'
8810 hardcode_minus_L=yes
8811 allow_undefined_flag=unsupported
8812 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'
8813 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8817 if test "$GCC" = yes; then
8818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819 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'
8821 allow_undefined_flag=' -expect_unresolved \*'
8822 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'
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 hardcode_libdir_separator=:
8828 osf4* | osf5*) # as osf3* with the addition of -msym flag
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831 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'
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834 allow_undefined_flag=' -expect_unresolved \*'
8835 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'
8836 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8837 $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'
8839 # Both c and cxx compiler support -rpath directly
8840 hardcode_libdir_flag_spec='-rpath $libdir'
8842 hardcode_libdir_separator=:
8846 no_undefined_flag=' -z text'
8847 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8858 hardcode_libdir_flag_spec='-R$libdir'
8859 hardcode_shlibpath_var=no
8861 solaris2.[0-5] | solaris2.[0-5].*) ;;
8863 # The compiler driver will combine and reorder linker options,
8864 # but understands `-z linker_flag'. GCC discards it without `$wl',
8865 # but is careful enough not to reorder.
8866 # Supported since Solaris 2.6 (maybe 2.5.1?)
8867 if test "$GCC" = yes; then
8868 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8870 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8874 link_all_deplibs=yes
8878 if test "x$host_vendor" = xsequent; then
8879 # Use $CC to link under sequent, because it throws in some extra .o
8880 # files that make .init and .fini sections work.
8881 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8885 hardcode_libdir_flag_spec='-L$libdir'
8887 hardcode_minus_L=yes
8888 hardcode_shlibpath_var=no
8892 case $host_vendor in
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_direct=yes # is this really true???
8898 ## LD is ld it makes a PLAMLIB
8899 ## CC just makes a GrossModule.
8900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8901 reload_cmds='$CC -r -o $output$reload_objs'
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8909 runpath_var='LD_RUN_PATH'
8910 hardcode_shlibpath_var=no
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_shlibpath_var=no
8916 export_dynamic_flag_spec='-Bexport'
8920 if test -d /usr/nec; then
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_shlibpath_var=no
8923 runpath_var=LD_RUN_PATH
8924 hardcode_runpath_var=yes
8929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8930 no_undefined_flag='${wl}-z,text'
8931 archive_cmds_need_lc=no
8932 hardcode_shlibpath_var=no
8933 runpath_var='LD_RUN_PATH'
8935 if test "$GCC" = yes; then
8936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 sysv5* | sco3.2v5* | sco5v6*)
8945 # Note: We can NOT use -z defs as we might desire, because we do not
8946 # link with -lc, and that would cause any symbols used from libc to
8947 # always be unresolved, which means just about no library would
8948 # ever link correctly. If we're not using GNU ld we use -z text
8949 # though, which does catch some bad symbols but isn't as heavy-handed
8951 no_undefined_flag='${wl}-z,text'
8952 allow_undefined_flag='${wl}-z,nodefs'
8953 archive_cmds_need_lc=no
8954 hardcode_shlibpath_var=no
8955 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8956 hardcode_libdir_separator=':'
8957 link_all_deplibs=yes
8958 export_dynamic_flag_spec='${wl}-Bexport'
8959 runpath_var='LD_RUN_PATH'
8961 if test "$GCC" = yes; then
8962 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_libdir_flag_spec='-L$libdir'
8973 hardcode_shlibpath_var=no
8982 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8983 echo "${ECHO_T}$ld_shlibs" >&6; }
8984 test "$ld_shlibs" = no && can_build_shared=no
8987 # Do we need to explicitly link libc?
8989 case "x$archive_cmds_need_lc" in
8991 # Assume -lc should be added
8992 archive_cmds_need_lc=yes
8994 if test "$enable_shared" = yes && test "$GCC" = yes; then
8995 case $archive_cmds in
8997 # FIXME: we may have to deal with multi-command sequences.
9000 # Test whether the compiler implicitly links with -lc since on some
9001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9002 # to ld, don't add -lc before -lgcc.
9003 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9004 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } 2>conftest.err; then
9015 libobjs=conftest.$ac_objext
9017 wl=$lt_prog_compiler_wl
9018 pic_flag=$lt_prog_compiler_pic
9024 lt_save_allow_undefined_flag=$allow_undefined_flag
9025 allow_undefined_flag=
9026 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9027 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }
9032 archive_cmds_need_lc=no
9034 archive_cmds_need_lc=yes
9036 allow_undefined_flag=$lt_save_allow_undefined_flag
9038 cat conftest.err 1>&5
9041 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9042 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9049 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9050 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9052 libname_spec='lib$name'
9060 shlibpath_overrides_runpath=unknown
9062 dynamic_linker="$host_os ld.so"
9063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9065 if test "$GCC" = yes; then
9067 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9068 *) lt_awk_arg="/^libraries:/" ;;
9070 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9071 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9072 # if the path contains ";" then we assume it to be the separator
9073 # otherwise default to the standard path separator (i.e. ":") - it is
9074 # assumed that no part of a normal pathname contains ";" but that should
9075 # okay in the real world where ";" in dirpaths is itself problematic.
9076 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9078 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9080 # Ok, now we have the path, separated by spaces, we can step through it
9081 # and add multilib dir if necessary.
9082 lt_tmp_lt_search_path_spec=
9083 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9084 for lt_sys_path in $lt_search_path_spec; do
9085 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9086 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9088 test -d "$lt_sys_path" && \
9089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9092 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9093 BEGIN {RS=" "; FS="/|\n";} {
9096 for (lt_i = NF; lt_i > 0; lt_i--) {
9097 if ($lt_i != "" && $lt_i != ".") {
9098 if ($lt_i == "..") {
9101 if (lt_count == 0) {
9102 lt_foo="/" $lt_i lt_foo;
9109 if (lt_foo != "") { lt_freq[lt_foo]++; }
9110 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9112 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9116 need_lib_prefix=unknown
9117 hardcode_into_libs=no
9119 # when you set need_version to no, make sure it does not cause -set_version
9120 # flags to be left without arguments
9121 need_version=unknown
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9127 shlibpath_var=LIBPATH
9129 # AIX 3 has no versioning support, so we append a major version to the name.
9130 soname_spec='${libname}${release}${shared_ext}$major'
9137 hardcode_into_libs=yes
9138 if test "$host_cpu" = ia64; then
9139 # AIX 5 supports IA64
9140 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9141 shlibpath_var=LD_LIBRARY_PATH
9143 # With GCC up to 2.95.x, collect2 would create an import file
9144 # for dependence libraries. The import file would start with
9145 # the line `#! .'. This would cause the generated library to
9146 # depend on `.', always an invalid library. This was fixed in
9147 # development snapshots of GCC prior to 3.0.
9149 aix4 | aix4.[01] | aix4.[01].*)
9150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9152 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9160 # soname into executable. Probably we can add versioning support to
9161 # collect2, so additional links can be useful in future.
9162 if test "$aix_use_runtimelinking" = yes; then
9163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9164 # instead of lib<name>.a to let people know that these are not
9165 # typical AIX shared libraries.
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 # We preserve .a as extension for shared libraries through AIX4.2
9169 # and later when we are not doing run time linking.
9170 library_names_spec='${libname}${release}.a $libname.a'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9173 shlibpath_var=LIBPATH
9178 library_names_spec='$libname.ixlibrary $libname.a'
9179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9180 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'
9184 library_names_spec='${libname}${shared_ext}'
9185 dynamic_linker="$host_os ld.so"
9186 shlibpath_var=LIBRARY_PATH
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9198 # the default ld.so.conf also contains /usr/contrib/lib and
9199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9200 # libtool to hard-code these into programs
9203 cygwin* | mingw* | pw32*)
9204 version_type=windows
9209 case $GCC,$host_os in
9210 yes,cygwin* | yes,mingw* | yes,pw32*)
9211 library_names_spec='$libname.dll.a'
9212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9213 postinstall_cmds='base_file=`basename \${file}`~
9214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9215 dldir=$destdir/`dirname \$dlpath`~
9216 test -d \$dldir || mkdir -p \$dldir~
9217 $install_prog $dir/$dlname \$dldir/$dlname~
9218 chmod a+x \$dldir/$dlname'
9219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9220 dlpath=$dir/\$dldll~
9222 shlibpath_overrides_runpath=yes
9226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9228 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9231 # MinGW DLLs use traditional 'lib' prefix
9232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9235 # It is most probably a Windows format PATH printed by
9236 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9237 # path with ; separators, and with drive letters. We can handle the
9238 # drive letters (cygwin fileutils understands them), so leave them,
9239 # especially as we might pass files found there to a mingw objdump,
9240 # which wouldn't understand a cygwinified path. Ahh.
9241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9247 # pw32 DLLs use 'pw' prefix rather than 'lib'
9248 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9257 dynamic_linker='Win32 ld.exe'
9258 # FIXME: first we should search . and the directory the executable is in
9262 darwin* | rhapsody*)
9263 dynamic_linker="$host_os dyld"
9267 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9268 soname_spec='${libname}${release}${major}$shared_ext'
9269 shlibpath_overrides_runpath=yes
9270 shlibpath_var=DYLD_LIBRARY_PATH
9271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9274 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9290 freebsd* | dragonfly*)
9291 # DragonFly does not have aout. When/if they implement a new
9292 # versioning mechanism, adjust this.
9293 if test -x /usr/bin/objformat; then
9294 objformat=`/usr/bin/objformat`
9297 freebsd[123]*) objformat=aout ;;
9301 version_type=freebsd-$objformat
9302 case $version_type in
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9313 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9318 freebsd3.[01]* | freebsdelf3.[01]*)
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9324 shlibpath_overrides_runpath=no
9325 hardcode_into_libs=yes
9327 *) # from 4.6 on, and DragonFly
9328 shlibpath_overrides_runpath=yes
9329 hardcode_into_libs=yes
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 hardcode_into_libs=yes
9344 hpux9* | hpux10* | hpux11*)
9345 # Give a soname corresponding to the major version so that dld.sl refuses to
9346 # link against other versions.
9353 hardcode_into_libs=yes
9354 dynamic_linker="$host_os dld.so"
9355 shlibpath_var=LD_LIBRARY_PATH
9356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 if test "X$HPUX_IA64_MODE" = X32; then
9360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9368 hardcode_into_libs=yes
9369 dynamic_linker="$host_os dld.sl"
9370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9379 dynamic_linker="$host_os dld.sl"
9380 shlibpath_var=SHLIB_PATH
9381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9387 postinstall_cmds='chmod 555 $lib'
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 shlibpath_overrides_runpath=no
9399 hardcode_into_libs=yes
9402 irix5* | irix6* | nonstopux*)
9404 nonstopux*) version_type=nonstopux ;;
9406 if test "$lt_cv_prog_gnu_ld" = yes; then
9414 soname_spec='${libname}${release}${shared_ext}$major'
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9417 irix5* | nonstopux*)
9421 case $LD in # libtool.m4 will add one of these switches to LD
9422 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9423 libsuff= shlibsuff= libmagic=32-bit;;
9424 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9425 libsuff=32 shlibsuff=N32 libmagic=N32;;
9426 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9427 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9428 *) libsuff= shlibsuff= libmagic=never-match;;
9432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9433 shlibpath_overrides_runpath=no
9434 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9435 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9436 hardcode_into_libs=yes
9439 # No shared lib support for Linux oldld, aout, or coff.
9440 linux*oldld* | linux*aout* | linux*coff*)
9444 # This must be Linux ELF.
9445 linux* | k*bsd*-gnu)
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=no
9454 # This implies no fast_install, which is unacceptable.
9455 # Some rework will be needed to allow for fast_install
9456 # before this can be enabled.
9457 hardcode_into_libs=yes
9459 # Append ld.so.conf contents to the search path
9460 if test -f /etc/ld.so.conf; then
9461 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9462 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9465 # We used to test for /lib/ld.so.1 and disable shared libraries on
9466 # powerpc, because MkLinux only supported shared libraries with the
9467 # GNU dynamic linker. Since this was broken with cross compilers,
9468 # most powerpc-linux boxes support dynamic linking these days and
9469 # people can always --disable-shared, the test was removed, and we
9470 # assume the GNU/Linux dynamic linker is in use.
9471 dynamic_linker='GNU/Linux ld.so'
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 shlibpath_overrides_runpath=no
9482 hardcode_into_libs=yes
9483 dynamic_linker='NetBSD ld.elf_so'
9490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9493 dynamic_linker='NetBSD (a.out) ld.so'
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 dynamic_linker='NetBSD ld.elf_so'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 shlibpath_overrides_runpath=yes
9501 hardcode_into_libs=yes
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 shlibpath_overrides_runpath=yes
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes
9523 sys_lib_dlsearch_path_spec="/usr/lib"
9525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9527 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9528 *) need_version=no ;;
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535 openbsd2.[89] | openbsd2.[89].*)
9536 shlibpath_overrides_runpath=no
9539 shlibpath_overrides_runpath=yes
9543 shlibpath_overrides_runpath=yes
9548 libname_spec='$name'
9551 library_names_spec='$libname${shared_ext} $libname.a'
9552 dynamic_linker='OS/2 ld.exe'
9553 shlibpath_var=LIBPATH
9556 osf3* | osf4* | osf5*)
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 shlibpath_overrides_runpath=yes
9579 hardcode_into_libs=yes
9580 # ldd complains unless libraries are executable
9581 postinstall_cmds='chmod +x $lib'
9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9588 shlibpath_var=LD_LIBRARY_PATH
9589 shlibpath_overrides_runpath=yes
9590 if test "$with_gnu_ld" = yes; then
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 case $host_vendor in
9603 shlibpath_overrides_runpath=no
9605 export_dynamic_flag_spec='${wl}-Blargedynsym'
9606 runpath_var=LD_RUN_PATH
9614 shlibpath_overrides_runpath=no
9615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9621 if test -d /usr/nec ;then
9623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9624 soname_spec='$libname${shared_ext}.$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9630 version_type=freebsd-elf
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 hardcode_into_libs=yes
9637 if test "$with_gnu_ld" = yes; then
9638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9639 shlibpath_overrides_runpath=no
9641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9642 shlibpath_overrides_runpath=yes
9645 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9649 sys_lib_dlsearch_path_spec='/usr/lib'
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9656 shlibpath_var=LD_LIBRARY_PATH
9663 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9664 echo "${ECHO_T}$dynamic_linker" >&6; }
9665 test "$dynamic_linker" = no && can_build_shared=no
9667 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9673 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9683 if test "$GCC" = yes; then
9684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9687 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9688 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9690 if test -n "$hardcode_libdir_flag_spec" || \
9691 test -n "$runpath_var" || \
9692 test "X$hardcode_automatic" = "Xyes" ; then
9694 # We can hardcode non-existant directories.
9695 if test "$hardcode_direct" != no &&
9696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9697 # have to relink, otherwise we might link with an installed library
9698 # when we should be linking with a yet-to-be-installed one
9699 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9700 test "$hardcode_minus_L" != no; then
9701 # Linking always hardcodes the temporary library directory.
9702 hardcode_action=relink
9704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9705 hardcode_action=immediate
9708 # We cannot hardcode anything, or else we can only hardcode existing
9710 hardcode_action=unsupported
9712 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9713 echo "${ECHO_T}$hardcode_action" >&6; }
9715 if test "$hardcode_action" = relink; then
9716 # Fast installation is not supported
9717 enable_fast_install=no
9718 elif test "$shlibpath_overrides_runpath" = yes ||
9719 test "$enable_shared" = no; then
9720 # Fast installation is not necessary
9721 enable_fast_install=needless
9726 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9727 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9728 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9729 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9730 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9731 { echo "$as_me:$LINENO: result: yes" >&5
9732 echo "${ECHO_T}yes" >&6; }
9734 # FIXME - insert some real tests, host_os isn't really good enough
9737 if test -n "$STRIP" ; then
9738 striplib="$STRIP -x"
9739 old_striplib="$STRIP -S"
9740 { echo "$as_me:$LINENO: result: yes" >&5
9741 echo "${ECHO_T}yes" >&6; }
9743 { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9748 { echo "$as_me:$LINENO: result: no" >&5
9749 echo "${ECHO_T}no" >&6; }
9754 if test "x$enable_dlopen" != xyes; then
9755 enable_dlopen=unknown
9756 enable_dlopen_self=unknown
9757 enable_dlopen_self_static=unknown
9764 lt_cv_dlopen="load_add_on"
9766 lt_cv_dlopen_self=yes
9770 lt_cv_dlopen="LoadLibrary"
9775 lt_cv_dlopen="dlopen"
9780 # if libdl is installed we need to link against it
9781 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 ac_check_lib_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_lib_dl_dlopen=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_lib_dl_dlopen=no
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9842 if test $ac_cv_lib_dl_dlopen = yes; then
9843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9848 lt_cv_dlopen_self=yes
9855 { echo "$as_me:$LINENO: checking for shl_load" >&5
9856 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9857 if test "${ac_cv_func_shl_load+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9868 #define shl_load innocuous_shl_load
9870 /* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char shl_load (); below.
9872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9873 <limits.h> exists even on freestanding compilers. */
9876 # include <limits.h>
9878 # include <assert.h>
9883 /* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined __stub_shl_load || defined __stub___shl_load
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_link") 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && {
9919 test -z "$ac_c_werror_flag" ||
9920 test ! -s conftest.err
9921 } && test -s conftest$ac_exeext &&
9922 $as_test_x conftest$ac_exeext; then
9923 ac_cv_func_shl_load=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_func_shl_load=no
9931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9932 conftest$ac_exeext conftest.$ac_ext
9934 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9935 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9936 if test $ac_cv_func_shl_load = yes; then
9937 lt_cv_dlopen="shl_load"
9939 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9940 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9941 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 ac_check_lib_save_LIBS=$LIBS
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9953 /* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest$ac_exeext &&
9985 $as_test_x conftest$ac_exeext; then
9986 ac_cv_lib_dld_shl_load=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_cv_lib_dld_shl_load=no
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995 conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9999 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10000 if test $ac_cv_lib_dld_shl_load = yes; then
10001 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10003 { echo "$as_me:$LINENO: checking for dlopen" >&5
10004 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10005 if test "${ac_cv_func_dlopen+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.$ac_ext <<_ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10016 #define dlopen innocuous_dlopen
10018 /* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char dlopen (); below.
10020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021 <limits.h> exists even on freestanding compilers. */
10024 # include <limits.h>
10026 # include <assert.h>
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10038 /* The GNU C library defines this for functions which it implements
10039 to always fail with ENOSYS. Some functions are actually named
10040 something starting with __ and the normal name is an alias. */
10041 #if defined __stub_dlopen || defined __stub___dlopen
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext &&
10070 $as_test_x conftest$ac_exeext; then
10071 ac_cv_func_dlopen=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_func_dlopen=no
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10082 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10084 if test $ac_cv_func_dlopen = yes; then
10085 lt_cv_dlopen="dlopen"
10087 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10088 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 ac_check_lib_save_LIBS=$LIBS
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10101 /* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_link") 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } && {
10130 test -z "$ac_c_werror_flag" ||
10131 test ! -s conftest.err
10132 } && test -s conftest$ac_exeext &&
10133 $as_test_x conftest$ac_exeext; then
10134 ac_cv_lib_dl_dlopen=yes
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 ac_cv_lib_dl_dlopen=no
10142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10143 conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10146 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10147 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10148 if test $ac_cv_lib_dl_dlopen = yes; then
10149 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10151 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lsvld $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest$ac_exeext &&
10197 $as_test_x conftest$ac_exeext; then
10198 ac_cv_lib_svld_dlopen=yes
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_cv_lib_svld_dlopen=no
10206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10210 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10211 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10212 if test $ac_cv_lib_svld_dlopen = yes; then
10213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10215 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10216 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10217 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 ac_check_lib_save_LIBS=$LIBS
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10229 /* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10239 return dld_link ();
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (ac_try="$ac_link"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_link") 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } && {
10258 test -z "$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 } && test -s conftest$ac_exeext &&
10261 $as_test_x conftest$ac_exeext; then
10262 ac_cv_lib_dld_dld_link=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_dld_dld_link=no
10270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10276 if test $ac_cv_lib_dld_dld_link = yes; then
10277 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10298 if test "x$lt_cv_dlopen" != xno; then
10304 case $lt_cv_dlopen in
10306 save_CPPFLAGS="$CPPFLAGS"
10307 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10309 save_LDFLAGS="$LDFLAGS"
10310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10313 LIBS="$lt_cv_dlopen_libs $LIBS"
10315 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10316 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10317 if test "${lt_cv_dlopen_self+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 if test "$cross_compiling" = yes; then :
10321 lt_cv_dlopen_self=cross
10323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10324 lt_status=$lt_dlunknown
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10326 "configure"
10327 #include "confdefs.h"
10336 # define LT_DLGLOBAL RTLD_GLOBAL
10339 # define LT_DLGLOBAL DL_GLOBAL
10341 # define LT_DLGLOBAL 0
10345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10346 find out it does not work in some platform. */
10347 #ifndef LT_DLLAZY_OR_NOW
10349 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10352 # define LT_DLLAZY_OR_NOW DL_LAZY
10355 # define LT_DLLAZY_OR_NOW RTLD_NOW
10358 # define LT_DLLAZY_OR_NOW DL_NOW
10360 # define LT_DLLAZY_OR_NOW 0
10368 extern "C" void exit (int);
10371 void fnord() { int i=42;}
10374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10375 int status = $lt_dlunknown;
10379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10380 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10381 /* dlclose (self); */
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10394 (./conftest; exit; ) >&5 2>/dev/null
10396 case x$lt_status in
10397 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10398 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10399 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10402 # compilation failed
10403 lt_cv_dlopen_self=no
10410 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10411 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10413 if test "x$lt_cv_dlopen_self" = xyes; then
10414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10415 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10416 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10417 if test "${lt_cv_dlopen_self_static+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 if test "$cross_compiling" = yes; then :
10421 lt_cv_dlopen_self_static=cross
10423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10424 lt_status=$lt_dlunknown
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10426 "configure"
10427 #include "confdefs.h"
10436 # define LT_DLGLOBAL RTLD_GLOBAL
10439 # define LT_DLGLOBAL DL_GLOBAL
10441 # define LT_DLGLOBAL 0
10445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10446 find out it does not work in some platform. */
10447 #ifndef LT_DLLAZY_OR_NOW
10449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10452 # define LT_DLLAZY_OR_NOW DL_LAZY
10455 # define LT_DLLAZY_OR_NOW RTLD_NOW
10458 # define LT_DLLAZY_OR_NOW DL_NOW
10460 # define LT_DLLAZY_OR_NOW 0
10468 extern "C" void exit (int);
10471 void fnord() { int i=42;}
10474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10475 int status = $lt_dlunknown;
10479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10480 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10481 /* dlclose (self); */
10489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10490 (eval $ac_link) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10494 (./conftest; exit; ) >&5 2>/dev/null
10496 case x$lt_status in
10497 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10498 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10499 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10502 # compilation failed
10503 lt_cv_dlopen_self_static=no
10510 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10511 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10514 CPPFLAGS="$save_CPPFLAGS"
10515 LDFLAGS="$save_LDFLAGS"
10520 case $lt_cv_dlopen_self in
10521 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10522 *) enable_dlopen_self=unknown ;;
10525 case $lt_cv_dlopen_self_static in
10526 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10527 *) enable_dlopen_self_static=unknown ;;
10532 # Report which library types will actually be built
10533 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10534 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10535 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10536 echo "${ECHO_T}$can_build_shared" >&6; }
10538 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10539 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10540 test "$can_build_shared" = "no" && enable_shared=no
10542 # On AIX, shared libraries and static libraries use the same namespace, and
10543 # are all built from PIC.
10546 test "$enable_shared" = yes && enable_static=no
10547 if test -n "$RANLIB"; then
10548 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10549 postinstall_cmds='$RANLIB $lib'
10554 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10555 test "$enable_shared" = yes && enable_static=no
10559 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10560 echo "${ECHO_T}$enable_shared" >&6; }
10562 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10563 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10564 # Make sure either enable_shared or enable_static is yes.
10565 test "$enable_shared" = yes || enable_static=yes
10566 { echo "$as_me:$LINENO: result: $enable_static" >&5
10567 echo "${ECHO_T}$enable_static" >&6; }
10569 # The else clause should only fire when bootstrapping the
10570 # libtool distribution, otherwise you forgot to ship ltmain.sh
10571 # with your package, and you will get complaints that there are
10572 # no rules to generate ltmain.sh.
10573 if test -f "$ltmain"; then
10574 # See if we are running on zsh, and set the options which allow our commands through
10575 # without removal of \ escapes.
10576 if test -n "${ZSH_VERSION+set}" ; then
10577 setopt NO_GLOB_SUBST
10579 # Now quote all the things that may contain metacharacters while being
10580 # careful not to overquote the AC_SUBSTed values. We take copies of the
10581 # variables and quote the copies for generation of the libtool script.
10582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10586 deplibs_check_method reload_flag reload_cmds need_locks \
10587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10588 lt_cv_sys_global_symbol_to_c_name_address \
10589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10590 old_postinstall_cmds old_postuninstall_cmds \
10594 lt_prog_compiler_wl \
10595 lt_prog_compiler_pic \
10596 lt_prog_compiler_static \
10597 lt_prog_compiler_no_builtin_flag \
10598 export_dynamic_flag_spec \
10599 thread_safe_flag_spec \
10600 whole_archive_flag_spec \
10601 enable_shared_with_static_runtimes \
10603 old_archive_from_new_cmds \
10608 compiler_lib_search_path \
10609 compiler_lib_search_dirs \
10611 archive_expsym_cmds \
10613 postuninstall_cmds \
10614 old_archive_from_expsyms_cmds \
10615 allow_undefined_flag \
10616 no_undefined_flag \
10617 export_symbols_cmds \
10618 hardcode_libdir_flag_spec \
10619 hardcode_libdir_flag_spec_ld \
10620 hardcode_libdir_separator \
10621 hardcode_automatic \
10623 module_expsym_cmds \
10624 lt_cv_prog_compiler_c_o \
10627 include_expsyms; do
10630 old_archive_cmds | \
10631 old_archive_from_new_cmds | \
10633 archive_expsym_cmds | \
10635 module_expsym_cmds | \
10636 old_archive_from_expsyms_cmds | \
10637 export_symbols_cmds | \
10638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10639 postinstall_cmds | postuninstall_cmds | \
10640 old_postinstall_cmds | old_postuninstall_cmds | \
10641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10642 # Double-quote double-evaled strings.
10643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10652 *'\$0 --fallback-echo"')
10653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10657 cfgfile="${ofile}T"
10658 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10660 { echo "$as_me:$LINENO: creating $ofile" >&5
10661 echo "$as_me: creating $ofile" >&6;}
10663 cat <<__EOF__ >> "$cfgfile"
10666 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10667 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10671 # Free Software Foundation, Inc.
10673 # This file is part of GNU Libtool:
10674 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10676 # This program is free software; you can redistribute it and/or modify
10677 # it under the terms of the GNU General Public License as published by
10678 # the Free Software Foundation; either version 2 of the License, or
10679 # (at your option) any later version.
10681 # This program is distributed in the hope that it will be useful, but
10682 # WITHOUT ANY WARRANTY; without even the implied warranty of
10683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10684 # General Public License for more details.
10686 # You should have received a copy of the GNU General Public License
10687 # along with this program; if not, write to the Free Software
10688 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10690 # As a special exception to the GNU General Public License, if you
10691 # distribute this file as part of a program that contains a
10692 # configuration script generated by Autoconf, you may include it under
10693 # the same distribution terms that you use for the rest of that program.
10695 # A sed program that does not truncate output.
10698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10699 Xsed="$SED -e 1s/^X//"
10701 # The HP-UX ksh and POSIX shell print the target directory to stdout
10702 # if CDPATH is set.
10703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10705 # The names of the tagged configurations supported by this script.
10708 # ### BEGIN LIBTOOL CONFIG
10710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10712 # Shell to use when invoking shell scripts.
10715 # Whether or not to build shared libraries.
10716 build_libtool_libs=$enable_shared
10718 # Whether or not to build static libraries.
10719 build_old_libs=$enable_static
10721 # Whether or not to add -lc for building shared libraries.
10722 build_libtool_need_lc=$archive_cmds_need_lc
10724 # Whether or not to disallow shared libs when runtime libs are static
10725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10727 # Whether or not to optimize for fast installation.
10728 fast_install=$enable_fast_install
10731 host_alias=$host_alias
10735 # The build system.
10736 build_alias=$build_alias
10740 # An echo program that does not interpret backslashes.
10745 AR_FLAGS=$lt_AR_FLAGS
10750 # LTCC compiler flags.
10751 LTCFLAGS=$lt_LTCFLAGS
10753 # A language-specific compiler.
10756 # Is the compiler the GNU C compiler?
10762 # The linker used to build libraries.
10765 # Whether we need hard or soft links.
10768 # A BSD-compatible nm program.
10771 # A symbol stripping program
10774 # Used to examine libraries when file_magic_cmd begins "file"
10775 MAGIC_CMD=$MAGIC_CMD
10777 # Used on cygwin: DLL creation program.
10780 # Used on cygwin: object dumper.
10783 # Used on cygwin: assembler.
10786 # The name of the directory that contains temporary libtool files.
10789 # How to create reloadable object files.
10790 reload_flag=$lt_reload_flag
10791 reload_cmds=$lt_reload_cmds
10793 # How to pass a linker flag through the compiler.
10794 wl=$lt_lt_prog_compiler_wl
10796 # Object file suffix (normally "o").
10797 objext="$ac_objext"
10799 # Old archive suffix (normally "a").
10802 # Shared library suffix (normally ".so").
10803 shrext_cmds='$shrext_cmds'
10805 # Executable file suffix (normally "").
10808 # Additional compiler flags for building library objects.
10809 pic_flag=$lt_lt_prog_compiler_pic
10812 # What is the maximum length of a command?
10813 max_cmd_len=$lt_cv_sys_max_cmd_len
10815 # Does compiler simultaneously support -c and -o options?
10816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10818 # Must we lock files when doing compilation?
10819 need_locks=$lt_need_locks
10821 # Do we need the lib prefix for modules?
10822 need_lib_prefix=$need_lib_prefix
10824 # Do we need a version for libraries?
10825 need_version=$need_version
10827 # Whether dlopen is supported.
10828 dlopen_support=$enable_dlopen
10830 # Whether dlopen of programs is supported.
10831 dlopen_self=$enable_dlopen_self
10833 # Whether dlopen of statically linked programs is supported.
10834 dlopen_self_static=$enable_dlopen_self_static
10836 # Compiler flag to prevent dynamic linking.
10837 link_static_flag=$lt_lt_prog_compiler_static
10839 # Compiler flag to turn off builtin functions.
10840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10842 # Compiler flag to allow reflexive dlopens.
10843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10845 # Compiler flag to generate shared objects directly from archives.
10846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10848 # Compiler flag to generate thread-safe objects.
10849 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10851 # Library versioning type.
10852 version_type=$version_type
10854 # Format of library name prefix.
10855 libname_spec=$lt_libname_spec
10857 # List of archive names. First name is the real one, the rest are links.
10858 # The last name is the one that the linker finds with -lNAME.
10859 library_names_spec=$lt_library_names_spec
10861 # The coded name of the library, if different from the real name.
10862 soname_spec=$lt_soname_spec
10864 # Commands used to build and install an old-style archive.
10866 old_archive_cmds=$lt_old_archive_cmds
10867 old_postinstall_cmds=$lt_old_postinstall_cmds
10868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10870 # Create an old-style archive from a shared archive.
10871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10873 # Create a temporary old-style archive to link instead of a shared archive.
10874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10876 # Commands used to build and install a shared archive.
10877 archive_cmds=$lt_archive_cmds
10878 archive_expsym_cmds=$lt_archive_expsym_cmds
10879 postinstall_cmds=$lt_postinstall_cmds
10880 postuninstall_cmds=$lt_postuninstall_cmds
10882 # Commands used to build a loadable module (assumed same as above if empty)
10883 module_cmds=$lt_module_cmds
10884 module_expsym_cmds=$lt_module_expsym_cmds
10886 # Commands to strip libraries.
10887 old_striplib=$lt_old_striplib
10888 striplib=$lt_striplib
10890 # Dependencies to place before the objects being linked to create a
10892 predep_objects=$lt_predep_objects
10894 # Dependencies to place after the objects being linked to create a
10896 postdep_objects=$lt_postdep_objects
10898 # Dependencies to place before the objects being linked to create a
10900 predeps=$lt_predeps
10902 # Dependencies to place after the objects being linked to create a
10904 postdeps=$lt_postdeps
10906 # The directories searched by this compiler when creating a shared
10908 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10910 # The library search path used internally by the compiler when linking
10911 # a shared library.
10912 compiler_lib_search_path=$lt_compiler_lib_search_path
10914 # Method to check whether dependent libraries are shared objects.
10915 deplibs_check_method=$lt_deplibs_check_method
10917 # Command to use when deplibs_check_method == file_magic.
10918 file_magic_cmd=$lt_file_magic_cmd
10920 # Flag that allows shared libraries with undefined symbols to be built.
10921 allow_undefined_flag=$lt_allow_undefined_flag
10923 # Flag that forces no undefined symbols.
10924 no_undefined_flag=$lt_no_undefined_flag
10926 # Commands used to finish a libtool library installation in a directory.
10927 finish_cmds=$lt_finish_cmds
10929 # Same as above, but a single script fragment to be evaled but not shown.
10930 finish_eval=$lt_finish_eval
10932 # Take the output of nm and produce a listing of raw symbols and C names.
10933 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10935 # Transform the output of nm in a proper C declaration
10936 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10938 # Transform the output of nm in a C name address pair
10939 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10941 # This is the shared library runtime path variable.
10942 runpath_var=$runpath_var
10944 # This is the shared library path variable.
10945 shlibpath_var=$shlibpath_var
10947 # Is shlibpath searched before the hard-coded library search path?
10948 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10950 # How to hardcode a shared library path into an executable.
10951 hardcode_action=$hardcode_action
10953 # Whether we should hardcode library paths into libraries.
10954 hardcode_into_libs=$hardcode_into_libs
10956 # Flag to hardcode \$libdir into a binary during linking.
10957 # This must work even if \$libdir does not exist.
10958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10960 # If ld is used when linking, flag to hardcode \$libdir into
10961 # a binary during linking. This must work even if \$libdir does
10963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10965 # Whether we need a single -rpath flag with a separated argument.
10966 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10968 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10969 # resulting binary.
10970 hardcode_direct=$hardcode_direct
10972 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10973 # resulting binary.
10974 hardcode_minus_L=$hardcode_minus_L
10976 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10977 # the resulting binary.
10978 hardcode_shlibpath_var=$hardcode_shlibpath_var
10980 # Set to yes if building a shared library automatically hardcodes DIR into the library
10981 # and all subsequent libraries and executables linked against it.
10982 hardcode_automatic=$hardcode_automatic
10984 # Variables whose values should be saved in libtool wrapper scripts and
10985 # restored at relink time.
10986 variables_saved_for_relink="$variables_saved_for_relink"
10988 # Whether libtool must link a program against all its dependency libraries.
10989 link_all_deplibs=$link_all_deplibs
10991 # Compile-time system search path for libraries
10992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10994 # Run-time system search path for libraries
10995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10997 # Fix the shell variable \$srcfile for the compiler.
10998 fix_srcfile_path=$lt_fix_srcfile_path
11000 # Set to yes if exported symbols are required.
11001 always_export_symbols=$always_export_symbols
11003 # The commands to list exported symbols.
11004 export_symbols_cmds=$lt_export_symbols_cmds
11006 # The commands to extract the exported symbol list from a shared archive.
11007 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11009 # Symbols that should not be listed in the preloaded symbols.
11010 exclude_expsyms=$lt_exclude_expsyms
11012 # Symbols that must always be exported.
11013 include_expsyms=$lt_include_expsyms
11015 # ### END LIBTOOL CONFIG
11022 cat <<\EOF >> "$cfgfile"
11024 # AIX sometimes has problems with the GCC collect2 program. For some
11025 # reason, if we set the COLLECT_NAMES environment variable, the problems
11026 # vanish in a puff of smoke.
11027 if test "X${COLLECT_NAMES+set}" != Xset; then
11029 export COLLECT_NAMES
11035 # We use sed instead of cat because bash on DJGPP gets confused if
11036 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11037 # text mode, it properly converts lines to CR/LF. This bash problem
11038 # is reportedly fixed, but why not run on old versions too?
11039 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11041 mv -f "$cfgfile" "$ofile" || \
11042 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11046 # If there is no Makefile yet, we rely on a make rule to execute
11047 # `config.status --recheck' to rerun these tests and create the
11048 # libtool script then.
11049 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11050 if test -f "$ltmain_in"; then
11051 test -f Makefile && make "$ltmain"
11057 ac_cpp='$CPP $CPPFLAGS'
11058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11065 # Check whether --with-tags was given.
11066 if test "${with_tags+set}" = set; then
11067 withval=$with_tags; tagnames="$withval"
11071 if test -f "$ltmain" && test -n "$tagnames"; then
11072 if test ! -f "${ofile}"; then
11073 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11074 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11077 if test -z "$LTCC"; then
11078 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11079 if test -z "$LTCC"; then
11080 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11081 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11084 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11087 if test -z "$LTCFLAGS"; then
11088 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11091 # Extract list of available tagged configurations in $ofile.
11092 # Note that this assumes the entire list is on one line.
11093 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11096 for tagname in $tagnames; do
11098 # Check whether tagname contains only valid characters
11099 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11101 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11102 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11103 { (exit 1); exit 1; }; }
11107 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11109 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11110 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11111 { (exit 1); exit 1; }; }
11114 # Update the list of available tags.
11115 if test -n "$tagname"; then
11116 echo appending configuration tag \"$tagname\" to $ofile
11120 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11121 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11122 (test "X$CXX" != "Xg++"))) ; then
11124 ac_cpp='$CXXCPP $CPPFLAGS'
11125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11132 archive_cmds_need_lc_CXX=no
11133 allow_undefined_flag_CXX=
11134 always_export_symbols_CXX=no
11135 archive_expsym_cmds_CXX=
11136 export_dynamic_flag_spec_CXX=
11137 hardcode_direct_CXX=no
11138 hardcode_libdir_flag_spec_CXX=
11139 hardcode_libdir_flag_spec_ld_CXX=
11140 hardcode_libdir_separator_CXX=
11141 hardcode_minus_L_CXX=no
11142 hardcode_shlibpath_var_CXX=unsupported
11143 hardcode_automatic_CXX=no
11145 module_expsym_cmds_CXX=
11146 link_all_deplibs_CXX=unknown
11147 old_archive_cmds_CXX=$old_archive_cmds
11148 no_undefined_flag_CXX=
11149 whole_archive_flag_spec_CXX=
11150 enable_shared_with_static_runtimes_CXX=no
11152 # Dependencies to place before and after the object being linked:
11153 predep_objects_CXX=
11154 postdep_objects_CXX=
11157 compiler_lib_search_path_CXX=
11158 compiler_lib_search_dirs_CXX=
11160 # Source file extension for C++ test sources.
11163 # Object file extension for compiled C++ test sources.
11167 # Code to be used in simple compile tests
11168 lt_simple_compile_test_code="int some_variable = 0;"
11170 # Code to be used in simple link tests
11171 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11175 # If no C compiler was specified, use CC.
11178 # If no C compiler flags were specified, use CFLAGS.
11179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11181 # Allow CC to be a program name with arguments.
11185 # save warnings/boilerplate of simple test code
11186 ac_outfile=conftest.$ac_objext
11187 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11189 _lt_compiler_boilerplate=`cat conftest.err`
11192 ac_outfile=conftest.$ac_objext
11193 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11195 _lt_linker_boilerplate=`cat conftest.err`
11199 # Allow CC to be a program name with arguments.
11204 lt_save_with_gnu_ld=$with_gnu_ld
11205 lt_save_path_LD=$lt_cv_path_LD
11206 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11207 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11209 $as_unset lt_cv_prog_gnu_ld
11211 if test -n "${lt_cv_path_LDCXX+set}"; then
11212 lt_cv_path_LD=$lt_cv_path_LDCXX
11214 $as_unset lt_cv_path_LD
11216 test -z "${LDCXX+set}" || LD=$LDCXX
11220 for cc_temp in $compiler""; do
11222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11231 # We don't want -fno-exception wen compiling C++ code, so set the
11232 # no_builtin_flag separately
11233 if test "$GXX" = yes; then
11234 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11236 lt_prog_compiler_no_builtin_flag_CXX=
11239 if test "$GXX" = yes; then
11240 # Set up default GNU C++ configuration
11243 # Check whether --with-gnu-ld was given.
11244 if test "${with_gnu_ld+set}" = set; then
11245 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11251 if test "$GCC" = yes; then
11252 # Check if gcc -print-prog-name=ld gives a path.
11253 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11257 # gcc leaves a trailing carriage return which upsets mingw
11258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11263 # Accept absolute paths.
11265 re_direlt='/[^/][^/]*/\.\./'
11266 # Canonicalize the pathname of ld
11267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11271 test -z "$LD" && LD="$ac_prog"
11274 # If it fails, then pretend we aren't using GCC.
11278 # If it is relative, then search for the first ld in PATH.
11279 with_gnu_ld=unknown
11282 elif test "$with_gnu_ld" = yes; then
11283 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11286 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11289 if test "${lt_cv_path_LD+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 if test -z "$LD"; then
11293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11294 for ac_dir in $PATH; do
11296 test -z "$ac_dir" && ac_dir=.
11297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11298 lt_cv_path_LD="$ac_dir/$ac_prog"
11299 # Check to see if the program is GNU ld. I'd rather use --version,
11300 # but apparently some variants of GNU ld only accept -v.
11301 # Break only if it was the GNU/non-GNU ld that we prefer.
11302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11303 *GNU* | *'with BFD'*)
11304 test "$with_gnu_ld" != no && break
11307 test "$with_gnu_ld" != yes && break
11314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11318 LD="$lt_cv_path_LD"
11319 if test -n "$LD"; then
11320 { echo "$as_me:$LINENO: result: $LD" >&5
11321 echo "${ECHO_T}$LD" >&6; }
11323 { echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6; }
11326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11328 { (exit 1); exit 1; }; }
11329 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11335 case `$LD -v 2>&1 </dev/null` in
11336 *GNU* | *'with BFD'*)
11337 lt_cv_prog_gnu_ld=yes
11340 lt_cv_prog_gnu_ld=no
11344 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11346 with_gnu_ld=$lt_cv_prog_gnu_ld
11350 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11351 # archiving commands below assume that GNU ld is being used.
11352 if test "$with_gnu_ld" = yes; then
11353 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11354 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'
11356 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11359 # If archive_cmds runs LD, not CC, wlarc should be empty
11360 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11361 # investigate it a little bit more. (MM)
11364 # ancient GNU ld didn't support --whole-archive et. al.
11365 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11366 grep 'no-whole-archive' > /dev/null; then
11367 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11369 whole_archive_flag_spec_CXX=
11375 # A generic and very simple default shared library creation
11376 # command for GNU C++ for the case where it uses the native
11377 # linker, instead of GNU ld. If possible, this setting should
11378 # overridden to take advantage of the native linker features on
11379 # the platform it is being used on.
11380 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11383 # Commands to make compiler produce verbose output that lists
11384 # what "hidden" libraries, object files and flags are used when
11385 # linking a shared library.
11386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11394 # PORTME: fill in a description of your system's C++ link characteristics
11395 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11400 # FIXME: insert proper C++ library support
11404 if test "$host_cpu" = ia64; then
11405 # On IA64, the linker does run time linking by default, so we don't
11406 # have to do anything special.
11407 aix_use_runtimelinking=no
11408 exp_sym_flag='-Bexport'
11411 aix_use_runtimelinking=no
11413 # Test if we are trying to use run time linking or normal
11414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11415 # need to do runtime linking.
11416 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11417 for ld_flag in $LDFLAGS; do
11420 aix_use_runtimelinking=yes
11428 exp_sym_flag='-bexport'
11429 no_entry_flag='-bnoentry'
11432 # When large executables or shared objects are built, AIX ld can
11433 # have problems creating the table of contents. If linking a library
11434 # or program results in "error TOC overflow" add -mminimal-toc to
11435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11438 archive_cmds_CXX=''
11439 hardcode_direct_CXX=yes
11440 hardcode_libdir_separator_CXX=':'
11441 link_all_deplibs_CXX=yes
11443 if test "$GXX" = yes; then
11444 case $host_os in aix4.[012]|aix4.[012].*)
11445 # We only want to do this on AIX 4.2 and lower, the check
11446 # below for broken collect2 doesn't work under 4.3+
11447 collect2name=`${CC} -print-prog-name=collect2`
11448 if test -f "$collect2name" && \
11449 strings "$collect2name" | grep resolve_lib_name >/dev/null
11451 # We have reworked collect2
11454 # We have old collect2
11455 hardcode_direct_CXX=unsupported
11456 # It fails to find uninstalled libraries when the uninstalled
11457 # path is not listed in the libpath. Setting hardcode_minus_L
11458 # to unsupported forces relinking
11459 hardcode_minus_L_CXX=yes
11460 hardcode_libdir_flag_spec_CXX='-L$libdir'
11461 hardcode_libdir_separator_CXX=
11465 shared_flag='-shared'
11466 if test "$aix_use_runtimelinking" = yes; then
11467 shared_flag="$shared_flag "'${wl}-G'
11471 if test "$host_cpu" = ia64; then
11472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11473 # chokes on -Wl,-G. The following line is correct:
11476 if test "$aix_use_runtimelinking" = yes; then
11477 shared_flag='${wl}-G'
11479 shared_flag='${wl}-bM:SRE'
11484 # It seems that -bexpall does not export symbols beginning with
11485 # underscore (_), so it is better to generate a list of symbols to export.
11486 always_export_symbols_CXX=yes
11487 if test "$aix_use_runtimelinking" = yes; then
11488 # Warning - without using the other runtime loading flags (-brtl),
11489 # -berok will link without error, but may produce a broken library.
11490 allow_undefined_flag_CXX='-berok'
11491 # Determine the default libpath from the value encoded in an empty executable.
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_link") 2>conftest.er1
11516 grep -v '^ *+' conftest.er1 >conftest.err
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && {
11521 test -z "$ac_cxx_werror_flag" ||
11522 test ! -s conftest.err
11523 } && test -s conftest$ac_exeext &&
11524 $as_test_x conftest$ac_exeext; then
11526 lt_aix_libpath_sed='
11527 /Import File Strings/,/^$/ {
11533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11534 # Check for a 64-bit object if we didn't find anything.
11535 if test -z "$aix_libpath"; then
11536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11546 conftest$ac_exeext conftest.$ac_ext
11547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11549 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11551 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"
11553 if test "$host_cpu" = ia64; then
11554 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11555 allow_undefined_flag_CXX="-z nodefs"
11556 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"
11558 # Determine the default libpath from the value encoded in an empty executable.
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (ac_try="$ac_link"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_link") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && {
11588 test -z "$ac_cxx_werror_flag" ||
11589 test ! -s conftest.err
11590 } && test -s conftest$ac_exeext &&
11591 $as_test_x conftest$ac_exeext; then
11593 lt_aix_libpath_sed='
11594 /Import File Strings/,/^$/ {
11600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11601 # Check for a 64-bit object if we didn't find anything.
11602 if test -z "$aix_libpath"; then
11603 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11613 conftest$ac_exeext conftest.$ac_ext
11614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11616 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11617 # Warning - without using the other run time loading flags,
11618 # -berok will link without error, but may produce a broken library.
11619 no_undefined_flag_CXX=' ${wl}-bernotok'
11620 allow_undefined_flag_CXX=' ${wl}-berok'
11621 # Exported symbols can be pulled into shared objects from archives
11622 whole_archive_flag_spec_CXX='$convenience'
11623 archive_cmds_need_lc_CXX=yes
11624 # This is similar to how AIX traditionally builds its shared libraries.
11625 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'
11631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11632 allow_undefined_flag_CXX=unsupported
11633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11634 # support --undefined. This deserves some investigation. FIXME
11635 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11642 case $cc_basename in
11644 # FIXME: insert proper C++ library support
11650 cygwin* | mingw* | pw32*)
11651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11652 # as there is no search path for DLLs.
11653 hardcode_libdir_flag_spec_CXX='-L$libdir'
11654 allow_undefined_flag_CXX=unsupported
11655 always_export_symbols_CXX=no
11656 enable_shared_with_static_runtimes_CXX=yes
11658 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11659 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'
11660 # If the export-symbols file already is a .def file (1st line
11661 # is EXPORTS), use it as is; otherwise, prepend...
11662 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11663 cp $export_symbols $output_objdir/$soname.def;
11665 echo EXPORTS > $output_objdir/$soname.def;
11666 cat $export_symbols >> $output_objdir/$soname.def;
11668 $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'
11673 darwin* | rhapsody*)
11674 archive_cmds_need_lc_CXX=no
11675 hardcode_direct_CXX=no
11676 hardcode_automatic_CXX=yes
11677 hardcode_shlibpath_var_CXX=unsupported
11678 whole_archive_flag_spec_CXX=''
11679 link_all_deplibs_CXX=yes
11680 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11681 if test "$GXX" = yes ; then
11682 output_verbose_link_cmd='echo'
11683 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11684 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11685 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11686 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11687 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11688 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11689 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11692 case $cc_basename in
11694 output_verbose_link_cmd='echo'
11695 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11696 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11698 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11699 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}'
11709 case $cc_basename in
11711 # FIXME: insert proper C++ library support
11715 # Green Hills C++ Compiler
11716 # FIXME: insert proper C++ library support
11720 # FIXME: insert proper C++ library support
11726 # C++ shared libraries reported to be fairly broken before switch to ELF
11730 archive_cmds_need_lc_CXX=no
11732 freebsd* | dragonfly*)
11733 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11741 hardcode_libdir_separator_CXX=:
11742 export_dynamic_flag_spec_CXX='${wl}-E'
11743 hardcode_direct_CXX=yes
11744 hardcode_minus_L_CXX=yes # Not in the search PATH,
11745 # but as the default
11746 # location of the library.
11748 case $cc_basename in
11750 # FIXME: insert proper C++ library support
11754 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'
11755 # Commands to make compiler produce verbose output that lists
11756 # what "hidden" libraries, object files and flags are used when
11757 # linking a shared library.
11759 # There doesn't appear to be a way to prevent this compiler from
11760 # explicitly linking system object files so we need to strip them
11761 # from the output so that they don't get included in the library
11763 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'
11766 if test "$GXX" = yes; then
11767 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'
11769 # FIXME: insert proper C++ library support
11776 if test $with_gnu_ld = no; then
11777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11778 hardcode_libdir_separator_CXX=:
11783 export_dynamic_flag_spec_CXX='${wl}-E'
11789 hardcode_direct_CXX=no
11790 hardcode_shlibpath_var_CXX=no
11793 hardcode_direct_CXX=yes
11794 hardcode_minus_L_CXX=yes # Not in the search PATH,
11795 # but as the default
11796 # location of the library.
11800 case $cc_basename in
11802 # FIXME: insert proper C++ library support
11808 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11811 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11821 # There doesn't appear to be a way to prevent this compiler from
11822 # explicitly linking system object files so we need to strip them
11823 # from the output so that they don't get included in the library
11825 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'
11828 if test "$GXX" = yes; then
11829 if test $with_gnu_ld = no; then
11832 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11835 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11838 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'
11843 # FIXME: insert proper C++ library support
11850 hardcode_direct_CXX=no
11851 hardcode_shlibpath_var_CXX=no
11852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11853 export_dynamic_flag_spec_CXX='${wl}-E'
11854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11855 # Instead, shared libraries are loaded at an image base (0x10000000 by
11856 # default) and relocated if they conflict, which is a slow very memory
11857 # consuming and fragmenting process. To avoid this, we pick a random,
11858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11860 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'
11861 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'
11864 case $cc_basename in
11867 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'
11869 # Archives containing C++ object files must be created using
11870 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11871 # necessary to make sure instantiated templates are included
11873 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11876 if test "$GXX" = yes; then
11877 if test "$with_gnu_ld" = no; then
11878 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'
11880 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'
11883 link_all_deplibs_CXX=yes
11886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11887 hardcode_libdir_separator_CXX=:
11889 linux* | k*bsd*-gnu)
11890 case $cc_basename in
11892 # Kuck and Associates, Inc. (KAI) C++ Compiler
11894 # KCC will only create a shared library if the output file
11895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11896 # to its proper name (with version) after linking.
11897 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'
11898 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'
11899 # Commands to make compiler produce verbose output that lists
11900 # what "hidden" libraries, object files and flags are used when
11901 # linking a shared library.
11903 # There doesn't appear to be a way to prevent this compiler from
11904 # explicitly linking system object files so we need to strip them
11905 # from the output so that they don't get included in the library
11907 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'
11909 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11912 # Archives containing C++ object files must be created using
11913 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11914 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11919 # version 8.0 and above of icpc choke on multiply defined symbols
11920 # if we add $predep_objects and $postdep_objects, however 7.1 and
11921 # earlier do not add the objects themselves.
11922 case `$CC -V 2>&1` in
11924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925 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'
11927 *) # Version 8.0 or newer
11930 ia64*) tmp_idyn=' -i_dynamic';;
11932 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11933 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'
11936 archive_cmds_need_lc_CXX=no
11937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11939 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11942 # Portland Group C++ compiler
11943 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11944 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'
11946 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948 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'
11952 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11953 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'
11955 runpath_var=LD_RUN_PATH
11956 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11957 hardcode_libdir_separator_CXX=:
11959 # Commands to make compiler produce verbose output that lists
11960 # what "hidden" libraries, object files and flags are used when
11961 # linking a shared library.
11963 # There doesn't appear to be a way to prevent this compiler from
11964 # explicitly linking system object files so we need to strip them
11965 # from the output so that they don't get included in the library
11967 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'
11970 case `$CC -V 2>&1 | sed 5q` in
11973 no_undefined_flag_CXX=' -zdefs'
11974 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11975 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11976 hardcode_libdir_flag_spec_CXX='-R$libdir'
11977 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11979 # Not sure whether something based on
11980 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11982 output_verbose_link_cmd='echo'
11984 # Archives containing C++ object files must be created using
11985 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11986 # necessary to make sure instantiated templates are included
11988 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11995 # FIXME: insert proper C++ library support
11999 # FIXME: insert proper C++ library support
12003 case $cc_basename in
12005 # FIXME: insert proper C++ library support
12009 # FIXME: insert proper C++ library support
12014 netbsd* | netbsdelf*-gnu)
12015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12016 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12018 hardcode_libdir_flag_spec_CXX='-R$libdir'
12019 hardcode_direct_CXX=yes
12020 hardcode_shlibpath_var_CXX=no
12022 # Workaround some broken pre-1.5 toolchains
12023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12026 # C++ shared libraries are fairly broken
12030 if test -f /usr/libexec/ld.so; then
12031 hardcode_direct_CXX=yes
12032 hardcode_shlibpath_var_CXX=no
12033 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12036 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12037 export_dynamic_flag_spec_CXX='${wl}-E'
12038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12040 output_verbose_link_cmd='echo'
12046 case $cc_basename in
12048 # Kuck and Associates, Inc. (KAI) C++ Compiler
12050 # KCC will only create a shared library if the output file
12051 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12052 # to its proper name (with version) after linking.
12053 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'
12055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056 hardcode_libdir_separator_CXX=:
12058 # Archives containing C++ object files must be created using
12059 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12064 # Rational C++ 2.4.1
12065 # FIXME: insert proper C++ library support
12069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12070 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'
12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12073 hardcode_libdir_separator_CXX=:
12075 # Commands to make compiler produce verbose output that lists
12076 # what "hidden" libraries, object files and flags are used when
12077 # linking a shared library.
12079 # There doesn't appear to be a way to prevent this compiler from
12080 # explicitly linking system object files so we need to strip them
12081 # from the output so that they don't get included in the library
12083 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'
12086 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12088 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'
12090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12091 hardcode_libdir_separator_CXX=:
12093 # Commands to make compiler produce verbose output that lists
12094 # what "hidden" libraries, object files and flags are used when
12095 # linking a shared library.
12096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12099 # FIXME: insert proper C++ library support
12106 case $cc_basename in
12108 # Kuck and Associates, Inc. (KAI) C++ Compiler
12110 # KCC will only create a shared library if the output file
12111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12112 # to its proper name (with version) after linking.
12113 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'
12115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12116 hardcode_libdir_separator_CXX=:
12118 # Archives containing C++ object files must be created using
12119 # the KAI C++ compiler.
12120 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12123 # Rational C++ 2.4.1
12124 # FIXME: insert proper C++ library support
12128 allow_undefined_flag_CXX=' -expect_unresolved \*'
12129 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'
12130 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12131 echo "-hidden">> $lib.exp~
12132 $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~
12135 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12136 hardcode_libdir_separator_CXX=:
12138 # Commands to make compiler produce verbose output that lists
12139 # what "hidden" libraries, object files and flags are used when
12140 # linking a shared library.
12142 # There doesn't appear to be a way to prevent this compiler from
12143 # explicitly linking system object files so we need to strip them
12144 # from the output so that they don't get included in the library
12146 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'
12149 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12151 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'
12153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12154 hardcode_libdir_separator_CXX=:
12156 # Commands to make compiler produce verbose output that lists
12157 # what "hidden" libraries, object files and flags are used when
12158 # linking a shared library.
12159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12162 # FIXME: insert proper C++ library support
12169 # FIXME: insert proper C++ library support
12173 case $cc_basename in
12176 # FIXME: insert proper C++ library support
12181 # FIXME: insert proper C++ library support
12185 # FIXME: insert proper C++ library support
12191 case $cc_basename in
12193 # Sun C++ 4.2, 5.x and Centerline C++
12194 archive_cmds_need_lc_CXX=yes
12195 no_undefined_flag_CXX=' -zdefs'
12196 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12198 $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'
12200 hardcode_libdir_flag_spec_CXX='-R$libdir'
12201 hardcode_shlibpath_var_CXX=no
12203 solaris2.[0-5] | solaris2.[0-5].*) ;;
12205 # The compiler driver will combine and reorder linker options,
12206 # but understands `-z linker_flag'.
12207 # Supported since Solaris 2.6 (maybe 2.5.1?)
12208 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12211 link_all_deplibs_CXX=yes
12213 output_verbose_link_cmd='echo'
12215 # Archives containing C++ object files must be created using
12216 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12217 # necessary to make sure instantiated templates are included
12219 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12222 # Green Hills C++ Compiler
12223 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12225 # The C++ compiler must be used to create the archive.
12226 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12229 # GNU C++ compiler with Solaris linker
12230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12231 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12232 if $CC --version | grep -v '^2\.7' > /dev/null; then
12233 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12234 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12235 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12237 # Commands to make compiler produce verbose output that lists
12238 # what "hidden" libraries, object files and flags are used when
12239 # linking a shared library.
12240 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12242 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12244 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12246 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12248 # Commands to make compiler produce verbose output that lists
12249 # what "hidden" libraries, object files and flags are used when
12250 # linking a shared library.
12251 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12254 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12256 solaris2.[0-5] | solaris2.[0-5].*) ;;
12258 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12266 no_undefined_flag_CXX='${wl}-z,text'
12267 archive_cmds_need_lc_CXX=no
12268 hardcode_shlibpath_var_CXX=no
12269 runpath_var='LD_RUN_PATH'
12271 case $cc_basename in
12273 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12274 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12277 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12278 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12282 sysv5* | sco3.2v5* | sco5v6*)
12283 # Note: We can NOT use -z defs as we might desire, because we do not
12284 # link with -lc, and that would cause any symbols used from libc to
12285 # always be unresolved, which means just about no library would
12286 # ever link correctly. If we're not using GNU ld we use -z text
12287 # though, which does catch some bad symbols but isn't as heavy-handed
12289 # For security reasons, it is highly recommended that you always
12290 # use absolute paths for naming shared libraries, and exclude the
12291 # DT_RUNPATH tag from executables and libraries. But doing so
12292 # requires that you compile everything twice, which is a pain.
12293 # So that behaviour is only enabled if SCOABSPATH is set to a
12294 # non-empty value in the environment. Most likely only useful for
12295 # creating official distributions of packages.
12296 # This is a hack until libtool officially supports absolute path
12297 # names for shared libraries.
12298 no_undefined_flag_CXX='${wl}-z,text'
12299 allow_undefined_flag_CXX='${wl}-z,nodefs'
12300 archive_cmds_need_lc_CXX=no
12301 hardcode_shlibpath_var_CXX=no
12302 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12303 hardcode_libdir_separator_CXX=':'
12304 link_all_deplibs_CXX=yes
12305 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12306 runpath_var='LD_RUN_PATH'
12308 case $cc_basename in
12310 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12314 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 case $cc_basename in
12322 # NonStop-UX NCC 3.20
12323 # FIXME: insert proper C++ library support
12327 # FIXME: insert proper C++ library support
12333 # FIXME: insert proper C++ library support
12337 # FIXME: insert proper C++ library support
12341 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12342 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12343 test "$ld_shlibs_CXX" = no && can_build_shared=no
12348 cat > conftest.$ac_ext <<EOF
12352 Foo (void) { a = 0; }
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; then
12363 # Parse the compiler output and extract the necessary
12364 # objects, libraries and library flags.
12366 # Sentinel used to keep track of whether or not we are before
12367 # the conftest object file.
12368 pre_test_object_deps_done=no
12370 # The `*' in the case matches for architectures that use `case' in
12371 # $output_verbose_cmd can trigger glob expansion during the loop
12372 # eval without this substitution.
12373 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12375 for p in `eval $output_verbose_link_cmd`; do
12379 # Some compilers place space between "-{L,R}" and the path.
12380 # Remove the space.
12381 if test $p = "-L" \
12382 || test $p = "-R"; then
12389 if test "$pre_test_object_deps_done" = no; then
12392 # Internal compiler library paths should come after those
12393 # provided the user. The postdeps already come after the
12394 # user supplied libs so there is no need to process them.
12395 if test -z "$compiler_lib_search_path_CXX"; then
12396 compiler_lib_search_path_CXX="${prev}${p}"
12398 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12401 # The "-l" case would never come before the object being
12402 # linked, so don't bother handling this case.
12405 if test -z "$postdeps_CXX"; then
12406 postdeps_CXX="${prev}${p}"
12408 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12414 # This assumes that the test object file only shows up
12415 # once in the compiler output.
12416 if test "$p" = "conftest.$objext"; then
12417 pre_test_object_deps_done=yes
12421 if test "$pre_test_object_deps_done" = no; then
12422 if test -z "$predep_objects_CXX"; then
12423 predep_objects_CXX="$p"
12425 predep_objects_CXX="$predep_objects_CXX $p"
12428 if test -z "$postdep_objects_CXX"; then
12429 postdep_objects_CXX="$p"
12431 postdep_objects_CXX="$postdep_objects_CXX $p"
12436 *) ;; # Ignore the rest.
12444 echo "libtool.m4: error: problem compiling CXX test program"
12447 $rm -f confest.$objext
12449 compiler_lib_search_dirs_CXX=
12450 if test -n "$compiler_lib_search_path_CXX"; then
12451 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12454 # PORTME: override above test on systems where it is broken
12457 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12458 # hack all around it, let's just trust "g++" to DTRT.
12459 predep_objects_CXX=
12460 postdep_objects_CXX=
12465 case `$CC -V 2>&1 | sed 5q` in
12469 # The more standards-conforming stlport4 library is
12470 # incompatible with the Cstd library. Avoid specifying
12471 # it if it's in CXXFLAGS. Ignore libCrun as
12472 # -library=stlport4 depends on it.
12473 case " $CXX $CXXFLAGS " in
12474 *" -library=stlport4 "*)
12475 solaris_use_stlport4=yes
12478 if test "$solaris_use_stlport4" != yes; then
12479 postdeps_CXX='-library=Cstd -library=Crun'
12486 case $cc_basename in
12488 # The more standards-conforming stlport4 library is
12489 # incompatible with the Cstd library. Avoid specifying
12490 # it if it's in CXXFLAGS. Ignore libCrun as
12491 # -library=stlport4 depends on it.
12492 case " $CXX $CXXFLAGS " in
12493 *" -library=stlport4 "*)
12494 solaris_use_stlport4=yes
12498 # Adding this requires a known-good setup of shared libraries for
12499 # Sun compiler versions before 5.6, else PIC objects from an old
12500 # archive will be linked into the output, leading to subtle bugs.
12501 if test "$solaris_use_stlport4" != yes; then
12502 postdeps_CXX='-library=Cstd -library=Crun'
12509 case " $postdeps_CXX " in
12510 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12513 lt_prog_compiler_wl_CXX=
12514 lt_prog_compiler_pic_CXX=
12515 lt_prog_compiler_static_CXX=
12517 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12520 # C++ specific cases for pic, static, wl, etc.
12521 if test "$GXX" = yes; then
12522 lt_prog_compiler_wl_CXX='-Wl,'
12523 lt_prog_compiler_static_CXX='-static'
12527 # All AIX code is PIC.
12528 if test "$host_cpu" = ia64; then
12529 # AIX 5 now supports IA64 processor
12530 lt_prog_compiler_static_CXX='-Bstatic'
12534 # FIXME: we need at least 68020 code to build shared libraries, but
12535 # adding the `-m68020' flag to GCC prevents building anything better,
12537 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12539 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12540 # PIC is the default for these OSes.
12542 mingw* | cygwin* | os2* | pw32*)
12543 # This hack is so that the source file can tell whether it is being
12544 # built for inclusion in a dll (and should export symbols for example).
12545 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12546 # (--disable-auto-import) libraries
12547 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12549 darwin* | rhapsody*)
12550 # PIC is the default on this platform
12551 # Common symbols not allowed in MH_DYLIB files
12552 lt_prog_compiler_pic_CXX='-fno-common'
12555 # DJGPP does not support shared libraries at all
12556 lt_prog_compiler_pic_CXX=
12559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12560 # Instead, we relocate shared libraries at runtime.
12563 if test -d /usr/nec; then
12564 lt_prog_compiler_pic_CXX=-Kconform_pic
12568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12569 # not for PA HP-UX.
12574 lt_prog_compiler_pic_CXX='-fPIC'
12579 lt_prog_compiler_pic_CXX='-fPIC'
12585 # All AIX code is PIC.
12586 if test "$host_cpu" = ia64; then
12587 # AIX 5 now supports IA64 processor
12588 lt_prog_compiler_static_CXX='-Bstatic'
12590 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12594 case $cc_basename in
12596 # Green Hills C++ Compiler
12597 # _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"
12602 # PIC is the default on this platform
12603 # Common symbols not allowed in MH_DYLIB files
12604 case $cc_basename in
12606 lt_prog_compiler_pic_CXX='-qnocommon'
12607 lt_prog_compiler_wl_CXX='-Wl,'
12612 case $cc_basename in
12614 lt_prog_compiler_pic_CXX='-KPIC'
12617 # Green Hills C++ Compiler
12618 lt_prog_compiler_pic_CXX='-pic'
12624 freebsd* | dragonfly*)
12625 # FreeBSD uses GNU C++
12627 hpux9* | hpux10* | hpux11*)
12628 case $cc_basename in
12630 lt_prog_compiler_wl_CXX='-Wl,'
12631 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12632 if test "$host_cpu" != ia64; then
12633 lt_prog_compiler_pic_CXX='+Z'
12637 lt_prog_compiler_wl_CXX='-Wl,'
12638 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12644 lt_prog_compiler_pic_CXX='+Z'
12653 # This is c89, which is MS Visual C++ (no shared libs)
12654 # Anyone wants to do a port?
12656 irix5* | irix6* | nonstopux*)
12657 case $cc_basename in
12659 lt_prog_compiler_wl_CXX='-Wl,'
12660 lt_prog_compiler_static_CXX='-non_shared'
12661 # CC pic flag -KPIC is the default.
12667 linux* | k*bsd*-gnu)
12668 case $cc_basename in
12671 lt_prog_compiler_wl_CXX='--backend -Wl,'
12672 lt_prog_compiler_pic_CXX='-fPIC'
12676 lt_prog_compiler_wl_CXX='-Wl,'
12677 lt_prog_compiler_pic_CXX='-KPIC'
12678 lt_prog_compiler_static_CXX='-static'
12681 # Portland Group C++ compiler.
12682 lt_prog_compiler_wl_CXX='-Wl,'
12683 lt_prog_compiler_pic_CXX='-fpic'
12684 lt_prog_compiler_static_CXX='-Bstatic'
12688 # Make sure the PIC flag is empty. It appears that all Alpha
12689 # Linux and Compaq Tru64 Unix objects are PIC.
12690 lt_prog_compiler_pic_CXX=
12691 lt_prog_compiler_static_CXX='-non_shared'
12694 case `$CC -V 2>&1 | sed 5q` in
12697 lt_prog_compiler_pic_CXX='-KPIC'
12698 lt_prog_compiler_static_CXX='-Bstatic'
12699 lt_prog_compiler_wl_CXX='-Qoption ld '
12710 case $cc_basename in
12712 lt_prog_compiler_pic_CXX='-W c,exportall'
12718 netbsd* | netbsdelf*-gnu)
12720 osf3* | osf4* | osf5*)
12721 case $cc_basename in
12723 lt_prog_compiler_wl_CXX='--backend -Wl,'
12726 # Rational C++ 2.4.1
12727 lt_prog_compiler_pic_CXX='-pic'
12730 # Digital/Compaq C++
12731 lt_prog_compiler_wl_CXX='-Wl,'
12732 # Make sure the PIC flag is empty. It appears that all Alpha
12733 # Linux and Compaq Tru64 Unix objects are PIC.
12734 lt_prog_compiler_pic_CXX=
12735 lt_prog_compiler_static_CXX='-non_shared'
12744 case $cc_basename in
12746 # Sun C++ 4.2, 5.x and Centerline C++
12747 lt_prog_compiler_pic_CXX='-KPIC'
12748 lt_prog_compiler_static_CXX='-Bstatic'
12749 lt_prog_compiler_wl_CXX='-Qoption ld '
12752 # Green Hills C++ Compiler
12753 lt_prog_compiler_pic_CXX='-PIC'
12760 case $cc_basename in
12763 lt_prog_compiler_pic_CXX='-pic'
12764 lt_prog_compiler_static_CXX='-Bstatic'
12768 lt_prog_compiler_pic_CXX='-pic'
12775 case $cc_basename in
12777 # NonStop-UX NCC 3.20
12778 lt_prog_compiler_pic_CXX='-KPIC'
12784 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12785 case $cc_basename in
12787 lt_prog_compiler_wl_CXX='-Wl,'
12788 lt_prog_compiler_pic_CXX='-KPIC'
12789 lt_prog_compiler_static_CXX='-Bstatic'
12796 lt_prog_compiler_can_build_shared_CXX=no
12801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12802 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12805 # Check to make sure the PIC flag actually works.
12807 if test -n "$lt_prog_compiler_pic_CXX"; then
12809 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12811 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 lt_cv_prog_compiler_pic_works_CXX=no
12815 ac_outfile=conftest.$ac_objext
12816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12817 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12818 # Insert the option either (1) after the last *FLAGS variable, or
12819 # (2) before a word containing "conftest.", or (3) at the end.
12820 # Note that $ac_compile itself does not contain backslashes and begins
12821 # with a dollar sign (not a hyphen), so the echo should work correctly.
12822 # The option is referenced via a variable to avoid confusing sed.
12823 lt_compile=`echo "$ac_compile" | $SED \
12824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826 -e 's:$: $lt_compiler_flag:'`
12827 (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
12828 (eval "$lt_compile" 2>conftest.err)
12830 cat conftest.err >&5
12831 echo "$as_me:12831: \$? = $ac_status" >&5
12832 if (exit $ac_status) && test -s "$ac_outfile"; then
12833 # The compiler can only warn and ignore the option if not recognized
12834 # So say no if there are warnings other than the usual output.
12835 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12838 lt_cv_prog_compiler_pic_works_CXX=yes
12844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12845 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12847 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12848 case $lt_prog_compiler_pic_CXX in
12850 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12853 lt_prog_compiler_pic_CXX=
12854 lt_prog_compiler_can_build_shared_CXX=no
12859 # For platforms which do not support PIC, -DPIC is meaningless:
12861 lt_prog_compiler_pic_CXX=
12864 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12869 # Check to make sure the static flag actually works.
12871 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12872 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12873 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12874 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 lt_cv_prog_compiler_static_works_CXX=no
12878 save_LDFLAGS="$LDFLAGS"
12879 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12880 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12881 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12882 # The linker can only warn and ignore the option if not recognized
12883 # So say no if there are warnings
12884 if test -s conftest.err; then
12885 # Append any errors to the config.log.
12886 cat conftest.err 1>&5
12887 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889 if diff conftest.exp conftest.er2 >/dev/null; then
12890 lt_cv_prog_compiler_static_works_CXX=yes
12893 lt_cv_prog_compiler_static_works_CXX=yes
12897 LDFLAGS="$save_LDFLAGS"
12900 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12901 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12903 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12906 lt_prog_compiler_static_CXX=
12910 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12911 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12912 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 lt_cv_prog_compiler_c_o_CXX=no
12916 $rm -r conftest 2>/dev/null
12920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12922 lt_compiler_flag="-o out/conftest2.$ac_objext"
12923 # Insert the option either (1) after the last *FLAGS variable, or
12924 # (2) before a word containing "conftest.", or (3) at the end.
12925 # Note that $ac_compile itself does not contain backslashes and begins
12926 # with a dollar sign (not a hyphen), so the echo should work correctly.
12927 lt_compile=`echo "$ac_compile" | $SED \
12928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12930 -e 's:$: $lt_compiler_flag:'`
12931 (eval echo "\"\$as_me:12931: $lt_compile\"" >&5)
12932 (eval "$lt_compile" 2>out/conftest.err)
12934 cat out/conftest.err >&5
12935 echo "$as_me:12935: \$? = $ac_status" >&5
12936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12938 # The compiler can only warn and ignore the option if not recognized
12939 # So say no if there are warnings
12940 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12943 lt_cv_prog_compiler_c_o_CXX=yes
12948 # SGI C++ compiler will create directory out/ii_files/ for
12949 # template instantiation
12950 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12951 $rm out/* && rmdir out
12957 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12958 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12961 hard_links="nottested"
12962 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12963 # do not overwrite the value of need_locks provided by the user
12964 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12965 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12970 ln conftest.a conftest.b 2>&5 || hard_links=no
12971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12972 { echo "$as_me:$LINENO: result: $hard_links" >&5
12973 echo "${ECHO_T}$hard_links" >&6; }
12974 if test "$hard_links" = no; then
12975 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12976 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12983 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12984 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12989 # If we're using GNU nm, then we don't want the "-C" option.
12990 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12991 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12992 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'
12994 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'
12998 export_symbols_cmds_CXX="$ltdll_cmds"
13001 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'
13003 linux* | k*bsd*-gnu)
13004 link_all_deplibs_CXX=no
13007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13010 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13012 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13013 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13014 test "$ld_shlibs_CXX" = no && can_build_shared=no
13017 # Do we need to explicitly link libc?
13019 case "x$archive_cmds_need_lc_CXX" in
13021 # Assume -lc should be added
13022 archive_cmds_need_lc_CXX=yes
13024 if test "$enable_shared" = yes && test "$GCC" = yes; then
13025 case $archive_cmds_CXX in
13027 # FIXME: we may have to deal with multi-command sequences.
13030 # Test whether the compiler implicitly links with -lc since on some
13031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13032 # to ld, don't add -lc before -lgcc.
13033 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } 2>conftest.err; then
13045 libobjs=conftest.$ac_objext
13047 wl=$lt_prog_compiler_wl_CXX
13048 pic_flag=$lt_prog_compiler_pic_CXX
13054 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13055 allow_undefined_flag_CXX=
13056 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13057 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }
13062 archive_cmds_need_lc_CXX=no
13064 archive_cmds_need_lc_CXX=yes
13066 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13068 cat conftest.err 1>&5
13071 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13072 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13079 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13080 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13081 library_names_spec=
13082 libname_spec='lib$name'
13086 postuninstall_cmds=
13090 shlibpath_overrides_runpath=unknown
13092 dynamic_linker="$host_os ld.so"
13093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13095 need_lib_prefix=unknown
13096 hardcode_into_libs=no
13098 # when you set need_version to no, make sure it does not cause -set_version
13099 # flags to be left without arguments
13100 need_version=unknown
13105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13106 shlibpath_var=LIBPATH
13108 # AIX 3 has no versioning support, so we append a major version to the name.
13109 soname_spec='${libname}${release}${shared_ext}$major'
13116 hardcode_into_libs=yes
13117 if test "$host_cpu" = ia64; then
13118 # AIX 5 supports IA64
13119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13120 shlibpath_var=LD_LIBRARY_PATH
13122 # With GCC up to 2.95.x, collect2 would create an import file
13123 # for dependence libraries. The import file would start with
13124 # the line `#! .'. This would cause the generated library to
13125 # depend on `.', always an invalid library. This was fixed in
13126 # development snapshots of GCC prior to 3.0.
13128 aix4 | aix4.[01] | aix4.[01].*)
13129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13131 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13134 can_build_shared=no
13138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13139 # soname into executable. Probably we can add versioning support to
13140 # collect2, so additional links can be useful in future.
13141 if test "$aix_use_runtimelinking" = yes; then
13142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13143 # instead of lib<name>.a to let people know that these are not
13144 # typical AIX shared libraries.
13145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 # We preserve .a as extension for shared libraries through AIX4.2
13148 # and later when we are not doing run time linking.
13149 library_names_spec='${libname}${release}.a $libname.a'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13152 shlibpath_var=LIBPATH
13157 library_names_spec='$libname.ixlibrary $libname.a'
13158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13159 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'
13163 library_names_spec='${libname}${shared_ext}'
13164 dynamic_linker="$host_os ld.so"
13165 shlibpath_var=LIBRARY_PATH
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13174 shlibpath_var=LD_LIBRARY_PATH
13175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13177 # the default ld.so.conf also contains /usr/contrib/lib and
13178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13179 # libtool to hard-code these into programs
13182 cygwin* | mingw* | pw32*)
13183 version_type=windows
13188 case $GCC,$host_os in
13189 yes,cygwin* | yes,mingw* | yes,pw32*)
13190 library_names_spec='$libname.dll.a'
13191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13192 postinstall_cmds='base_file=`basename \${file}`~
13193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13194 dldir=$destdir/`dirname \$dlpath`~
13195 test -d \$dldir || mkdir -p \$dldir~
13196 $install_prog $dir/$dlname \$dldir/$dlname~
13197 chmod a+x \$dldir/$dlname'
13198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13199 dlpath=$dir/\$dldll~
13201 shlibpath_overrides_runpath=yes
13205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13206 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13207 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13210 # MinGW DLLs use traditional 'lib' prefix
13211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13213 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13214 # It is most probably a Windows format PATH printed by
13215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13216 # path with ; separators, and with drive letters. We can handle the
13217 # drive letters (cygwin fileutils understands them), so leave them,
13218 # especially as we might pass files found there to a mingw objdump,
13219 # which wouldn't understand a cygwinified path. Ahh.
13220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13226 # pw32 DLLs use 'pw' prefix rather than 'lib'
13227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13236 dynamic_linker='Win32 ld.exe'
13237 # FIXME: first we should search . and the directory the executable is in
13241 darwin* | rhapsody*)
13242 dynamic_linker="$host_os dyld"
13243 version_type=darwin
13246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13247 soname_spec='${libname}${release}${major}$shared_ext'
13248 shlibpath_overrides_runpath=yes
13249 shlibpath_var=DYLD_LIBRARY_PATH
13250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13260 soname_spec='${libname}${release}${shared_ext}$major'
13261 shlibpath_var=LD_LIBRARY_PATH
13268 freebsd* | dragonfly*)
13269 # DragonFly does not have aout. When/if they implement a new
13270 # versioning mechanism, adjust this.
13271 if test -x /usr/bin/objformat; then
13272 objformat=`/usr/bin/objformat`
13275 freebsd[123]*) objformat=aout ;;
13276 *) objformat=elf ;;
13279 version_type=freebsd-$objformat
13280 case $version_type in
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13291 shlibpath_var=LD_LIBRARY_PATH
13294 shlibpath_overrides_runpath=yes
13296 freebsd3.[01]* | freebsdelf3.[01]*)
13297 shlibpath_overrides_runpath=yes
13298 hardcode_into_libs=yes
13300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13302 shlibpath_overrides_runpath=no
13303 hardcode_into_libs=yes
13305 *) # from 4.6 on, and DragonFly
13306 shlibpath_overrides_runpath=yes
13307 hardcode_into_libs=yes
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13317 soname_spec='${libname}${release}${shared_ext}$major'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 hardcode_into_libs=yes
13322 hpux9* | hpux10* | hpux11*)
13323 # Give a soname corresponding to the major version so that dld.sl refuses to
13324 # link against other versions.
13331 hardcode_into_libs=yes
13332 dynamic_linker="$host_os dld.so"
13333 shlibpath_var=LD_LIBRARY_PATH
13334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336 soname_spec='${libname}${release}${shared_ext}$major'
13337 if test "X$HPUX_IA64_MODE" = X32; then
13338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13346 hardcode_into_libs=yes
13347 dynamic_linker="$host_os dld.sl"
13348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13357 dynamic_linker="$host_os dld.sl"
13358 shlibpath_var=SHLIB_PATH
13359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13365 postinstall_cmds='chmod 555 $lib'
13372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13373 soname_spec='${libname}${release}${shared_ext}$major'
13374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 shlibpath_overrides_runpath=no
13377 hardcode_into_libs=yes
13380 irix5* | irix6* | nonstopux*)
13382 nonstopux*) version_type=nonstopux ;;
13384 if test "$lt_cv_prog_gnu_ld" = yes; then
13392 soname_spec='${libname}${release}${shared_ext}$major'
13393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13395 irix5* | nonstopux*)
13396 libsuff= shlibsuff=
13399 case $LD in # libtool.m4 will add one of these switches to LD
13400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13401 libsuff= shlibsuff= libmagic=32-bit;;
13402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13403 libsuff=32 shlibsuff=N32 libmagic=N32;;
13404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13406 *) libsuff= shlibsuff= libmagic=never-match;;
13410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13411 shlibpath_overrides_runpath=no
13412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13414 hardcode_into_libs=yes
13417 # No shared lib support for Linux oldld, aout, or coff.
13418 linux*oldld* | linux*aout* | linux*coff*)
13422 # This must be Linux ELF.
13423 linux* | k*bsd*-gnu)
13427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13428 soname_spec='${libname}${release}${shared_ext}$major'
13429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=no
13432 # This implies no fast_install, which is unacceptable.
13433 # Some rework will be needed to allow for fast_install
13434 # before this can be enabled.
13435 hardcode_into_libs=yes
13437 # Append ld.so.conf contents to the search path
13438 if test -f /etc/ld.so.conf; then
13439 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13443 # We used to test for /lib/ld.so.1 and disable shared libraries on
13444 # powerpc, because MkLinux only supported shared libraries with the
13445 # GNU dynamic linker. Since this was broken with cross compilers,
13446 # most powerpc-linux boxes support dynamic linking these days and
13447 # people can always --disable-shared, the test was removed, and we
13448 # assume the GNU/Linux dynamic linker is in use.
13449 dynamic_linker='GNU/Linux ld.so'
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13457 soname_spec='${libname}${release}${shared_ext}$major'
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=no
13460 hardcode_into_libs=yes
13461 dynamic_linker='NetBSD ld.elf_so'
13468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13471 dynamic_linker='NetBSD (a.out) ld.so'
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13474 soname_spec='${libname}${release}${shared_ext}$major'
13475 dynamic_linker='NetBSD ld.elf_so'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13479 hardcode_into_libs=yes
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 shlibpath_overrides_runpath=yes
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 shlibpath_overrides_runpath=yes
13501 sys_lib_dlsearch_path_spec="/usr/lib"
13503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13506 *) need_version=no ;;
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13513 openbsd2.[89] | openbsd2.[89].*)
13514 shlibpath_overrides_runpath=no
13517 shlibpath_overrides_runpath=yes
13521 shlibpath_overrides_runpath=yes
13526 libname_spec='$name'
13529 library_names_spec='$libname${shared_ext} $libname.a'
13530 dynamic_linker='OS/2 ld.exe'
13531 shlibpath_var=LIBPATH
13534 osf3* | osf4* | osf5*)
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554 soname_spec='${libname}${release}${shared_ext}$major'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=yes
13557 hardcode_into_libs=yes
13558 # ldd complains unless libraries are executable
13559 postinstall_cmds='chmod +x $lib'
13564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 shlibpath_overrides_runpath=yes
13568 if test "$with_gnu_ld" = yes; then
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 case $host_vendor in
13581 shlibpath_overrides_runpath=no
13583 export_dynamic_flag_spec='${wl}-Blargedynsym'
13584 runpath_var=LD_RUN_PATH
13592 shlibpath_overrides_runpath=no
13593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13599 if test -d /usr/nec ;then
13601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13602 soname_spec='$libname${shared_ext}.$major'
13603 shlibpath_var=LD_LIBRARY_PATH
13607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13608 version_type=freebsd-elf
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13612 soname_spec='${libname}${release}${shared_ext}$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 hardcode_into_libs=yes
13615 if test "$with_gnu_ld" = yes; then
13616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13617 shlibpath_overrides_runpath=no
13619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13620 shlibpath_overrides_runpath=yes
13623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13627 sys_lib_dlsearch_path_spec='/usr/lib'
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13642 echo "${ECHO_T}$dynamic_linker" >&6; }
13643 test "$dynamic_linker" = no && can_build_shared=no
13645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13658 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13661 if test "$GCC" = yes; then
13662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13665 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13666 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13667 hardcode_action_CXX=
13668 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13669 test -n "$runpath_var_CXX" || \
13670 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13672 # We can hardcode non-existant directories.
13673 if test "$hardcode_direct_CXX" != no &&
13674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13675 # have to relink, otherwise we might link with an installed library
13676 # when we should be linking with a yet-to-be-installed one
13677 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13678 test "$hardcode_minus_L_CXX" != no; then
13679 # Linking always hardcodes the temporary library directory.
13680 hardcode_action_CXX=relink
13682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13683 hardcode_action_CXX=immediate
13686 # We cannot hardcode anything, or else we can only hardcode existing
13688 hardcode_action_CXX=unsupported
13690 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13691 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13693 if test "$hardcode_action_CXX" = relink; then
13694 # Fast installation is not supported
13695 enable_fast_install=no
13696 elif test "$shlibpath_overrides_runpath" = yes ||
13697 test "$enable_shared" = no; then
13698 # Fast installation is not necessary
13699 enable_fast_install=needless
13703 # The else clause should only fire when bootstrapping the
13704 # libtool distribution, otherwise you forgot to ship ltmain.sh
13705 # with your package, and you will get complaints that there are
13706 # no rules to generate ltmain.sh.
13707 if test -f "$ltmain"; then
13708 # See if we are running on zsh, and set the options which allow our commands through
13709 # without removal of \ escapes.
13710 if test -n "${ZSH_VERSION+set}" ; then
13711 setopt NO_GLOB_SUBST
13713 # Now quote all the things that may contain metacharacters while being
13714 # careful not to overquote the AC_SUBSTed values. We take copies of the
13715 # variables and quote the copies for generation of the libtool script.
13716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13720 deplibs_check_method reload_flag reload_cmds need_locks \
13721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13722 lt_cv_sys_global_symbol_to_c_name_address \
13723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13724 old_postinstall_cmds old_postuninstall_cmds \
13728 lt_prog_compiler_wl_CXX \
13729 lt_prog_compiler_pic_CXX \
13730 lt_prog_compiler_static_CXX \
13731 lt_prog_compiler_no_builtin_flag_CXX \
13732 export_dynamic_flag_spec_CXX \
13733 thread_safe_flag_spec_CXX \
13734 whole_archive_flag_spec_CXX \
13735 enable_shared_with_static_runtimes_CXX \
13736 old_archive_cmds_CXX \
13737 old_archive_from_new_cmds_CXX \
13738 predep_objects_CXX \
13739 postdep_objects_CXX \
13742 compiler_lib_search_path_CXX \
13743 compiler_lib_search_dirs_CXX \
13745 archive_expsym_cmds_CXX \
13746 postinstall_cmds_CXX \
13747 postuninstall_cmds_CXX \
13748 old_archive_from_expsyms_cmds_CXX \
13749 allow_undefined_flag_CXX \
13750 no_undefined_flag_CXX \
13751 export_symbols_cmds_CXX \
13752 hardcode_libdir_flag_spec_CXX \
13753 hardcode_libdir_flag_spec_ld_CXX \
13754 hardcode_libdir_separator_CXX \
13755 hardcode_automatic_CXX \
13757 module_expsym_cmds_CXX \
13758 lt_cv_prog_compiler_c_o_CXX \
13759 fix_srcfile_path_CXX \
13760 exclude_expsyms_CXX \
13761 include_expsyms_CXX; do
13764 old_archive_cmds_CXX | \
13765 old_archive_from_new_cmds_CXX | \
13766 archive_cmds_CXX | \
13767 archive_expsym_cmds_CXX | \
13768 module_cmds_CXX | \
13769 module_expsym_cmds_CXX | \
13770 old_archive_from_expsyms_cmds_CXX | \
13771 export_symbols_cmds_CXX | \
13772 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13773 postinstall_cmds | postuninstall_cmds | \
13774 old_postinstall_cmds | old_postuninstall_cmds | \
13775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13776 # Double-quote double-evaled strings.
13777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13786 *'\$0 --fallback-echo"')
13787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13793 cat <<__EOF__ >> "$cfgfile"
13794 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13798 # Shell to use when invoking shell scripts.
13801 # Whether or not to build shared libraries.
13802 build_libtool_libs=$enable_shared
13804 # Whether or not to build static libraries.
13805 build_old_libs=$enable_static
13807 # Whether or not to add -lc for building shared libraries.
13808 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13810 # Whether or not to disallow shared libs when runtime libs are static
13811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13813 # Whether or not to optimize for fast installation.
13814 fast_install=$enable_fast_install
13817 host_alias=$host_alias
13821 # The build system.
13822 build_alias=$build_alias
13826 # An echo program that does not interpret backslashes.
13831 AR_FLAGS=$lt_AR_FLAGS
13836 # LTCC compiler flags.
13837 LTCFLAGS=$lt_LTCFLAGS
13839 # A language-specific compiler.
13840 CC=$lt_compiler_CXX
13842 # Is the compiler the GNU C compiler?
13848 # The linker used to build libraries.
13851 # Whether we need hard or soft links.
13854 # A BSD-compatible nm program.
13857 # A symbol stripping program
13860 # Used to examine libraries when file_magic_cmd begins "file"
13861 MAGIC_CMD=$MAGIC_CMD
13863 # Used on cygwin: DLL creation program.
13866 # Used on cygwin: object dumper.
13869 # Used on cygwin: assembler.
13872 # The name of the directory that contains temporary libtool files.
13875 # How to create reloadable object files.
13876 reload_flag=$lt_reload_flag
13877 reload_cmds=$lt_reload_cmds
13879 # How to pass a linker flag through the compiler.
13880 wl=$lt_lt_prog_compiler_wl_CXX
13882 # Object file suffix (normally "o").
13883 objext="$ac_objext"
13885 # Old archive suffix (normally "a").
13888 # Shared library suffix (normally ".so").
13889 shrext_cmds='$shrext_cmds'
13891 # Executable file suffix (normally "").
13894 # Additional compiler flags for building library objects.
13895 pic_flag=$lt_lt_prog_compiler_pic_CXX
13898 # What is the maximum length of a command?
13899 max_cmd_len=$lt_cv_sys_max_cmd_len
13901 # Does compiler simultaneously support -c and -o options?
13902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13904 # Must we lock files when doing compilation?
13905 need_locks=$lt_need_locks
13907 # Do we need the lib prefix for modules?
13908 need_lib_prefix=$need_lib_prefix
13910 # Do we need a version for libraries?
13911 need_version=$need_version
13913 # Whether dlopen is supported.
13914 dlopen_support=$enable_dlopen
13916 # Whether dlopen of programs is supported.
13917 dlopen_self=$enable_dlopen_self
13919 # Whether dlopen of statically linked programs is supported.
13920 dlopen_self_static=$enable_dlopen_self_static
13922 # Compiler flag to prevent dynamic linking.
13923 link_static_flag=$lt_lt_prog_compiler_static_CXX
13925 # Compiler flag to turn off builtin functions.
13926 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13928 # Compiler flag to allow reflexive dlopens.
13929 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13931 # Compiler flag to generate shared objects directly from archives.
13932 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13934 # Compiler flag to generate thread-safe objects.
13935 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13937 # Library versioning type.
13938 version_type=$version_type
13940 # Format of library name prefix.
13941 libname_spec=$lt_libname_spec
13943 # List of archive names. First name is the real one, the rest are links.
13944 # The last name is the one that the linker finds with -lNAME.
13945 library_names_spec=$lt_library_names_spec
13947 # The coded name of the library, if different from the real name.
13948 soname_spec=$lt_soname_spec
13950 # Commands used to build and install an old-style archive.
13952 old_archive_cmds=$lt_old_archive_cmds_CXX
13953 old_postinstall_cmds=$lt_old_postinstall_cmds
13954 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13956 # Create an old-style archive from a shared archive.
13957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13959 # Create a temporary old-style archive to link instead of a shared archive.
13960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13962 # Commands used to build and install a shared archive.
13963 archive_cmds=$lt_archive_cmds_CXX
13964 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13965 postinstall_cmds=$lt_postinstall_cmds
13966 postuninstall_cmds=$lt_postuninstall_cmds
13968 # Commands used to build a loadable module (assumed same as above if empty)
13969 module_cmds=$lt_module_cmds_CXX
13970 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13972 # Commands to strip libraries.
13973 old_striplib=$lt_old_striplib
13974 striplib=$lt_striplib
13976 # Dependencies to place before the objects being linked to create a
13978 predep_objects=$lt_predep_objects_CXX
13980 # Dependencies to place after the objects being linked to create a
13982 postdep_objects=$lt_postdep_objects_CXX
13984 # Dependencies to place before the objects being linked to create a
13986 predeps=$lt_predeps_CXX
13988 # Dependencies to place after the objects being linked to create a
13990 postdeps=$lt_postdeps_CXX
13992 # The directories searched by this compiler when creating a shared
13994 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13996 # The library search path used internally by the compiler when linking
13997 # a shared library.
13998 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14000 # Method to check whether dependent libraries are shared objects.
14001 deplibs_check_method=$lt_deplibs_check_method
14003 # Command to use when deplibs_check_method == file_magic.
14004 file_magic_cmd=$lt_file_magic_cmd
14006 # Flag that allows shared libraries with undefined symbols to be built.
14007 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14009 # Flag that forces no undefined symbols.
14010 no_undefined_flag=$lt_no_undefined_flag_CXX
14012 # Commands used to finish a libtool library installation in a directory.
14013 finish_cmds=$lt_finish_cmds
14015 # Same as above, but a single script fragment to be evaled but not shown.
14016 finish_eval=$lt_finish_eval
14018 # Take the output of nm and produce a listing of raw symbols and C names.
14019 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14021 # Transform the output of nm in a proper C declaration
14022 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14024 # Transform the output of nm in a C name address pair
14025 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14027 # This is the shared library runtime path variable.
14028 runpath_var=$runpath_var
14030 # This is the shared library path variable.
14031 shlibpath_var=$shlibpath_var
14033 # Is shlibpath searched before the hard-coded library search path?
14034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14036 # How to hardcode a shared library path into an executable.
14037 hardcode_action=$hardcode_action_CXX
14039 # Whether we should hardcode library paths into libraries.
14040 hardcode_into_libs=$hardcode_into_libs
14042 # Flag to hardcode \$libdir into a binary during linking.
14043 # This must work even if \$libdir does not exist.
14044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14046 # If ld is used when linking, flag to hardcode \$libdir into
14047 # a binary during linking. This must work even if \$libdir does
14049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14051 # Whether we need a single -rpath flag with a separated argument.
14052 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14054 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14055 # resulting binary.
14056 hardcode_direct=$hardcode_direct_CXX
14058 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14059 # resulting binary.
14060 hardcode_minus_L=$hardcode_minus_L_CXX
14062 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14063 # the resulting binary.
14064 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14066 # Set to yes if building a shared library automatically hardcodes DIR into the library
14067 # and all subsequent libraries and executables linked against it.
14068 hardcode_automatic=$hardcode_automatic_CXX
14070 # Variables whose values should be saved in libtool wrapper scripts and
14071 # restored at relink time.
14072 variables_saved_for_relink="$variables_saved_for_relink"
14074 # Whether libtool must link a program against all its dependency libraries.
14075 link_all_deplibs=$link_all_deplibs_CXX
14077 # Compile-time system search path for libraries
14078 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14080 # Run-time system search path for libraries
14081 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14083 # Fix the shell variable \$srcfile for the compiler.
14084 fix_srcfile_path=$lt_fix_srcfile_path
14086 # Set to yes if exported symbols are required.
14087 always_export_symbols=$always_export_symbols_CXX
14089 # The commands to list exported symbols.
14090 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14092 # The commands to extract the exported symbol list from a shared archive.
14093 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14095 # Symbols that should not be listed in the preloaded symbols.
14096 exclude_expsyms=$lt_exclude_expsyms_CXX
14098 # Symbols that must always be exported.
14099 include_expsyms=$lt_include_expsyms_CXX
14101 # ### END LIBTOOL TAG CONFIG: $tagname
14107 # If there is no Makefile yet, we rely on a make rule to execute
14108 # `config.status --recheck' to rerun these tests and create the
14109 # libtool script then.
14110 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14111 if test -f "$ltmain_in"; then
14112 test -f Makefile && make "$ltmain"
14118 ac_cpp='$CPP $CPPFLAGS'
14119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14127 with_gnu_ldcxx=$with_gnu_ld
14128 with_gnu_ld=$lt_save_with_gnu_ld
14129 lt_cv_path_LDCXX=$lt_cv_path_LD
14130 lt_cv_path_LD=$lt_save_path_LD
14131 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14132 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14140 if test -n "$F77" && test "X$F77" != "Xno"; then
14143 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14144 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14148 archive_cmds_need_lc_F77=no
14149 allow_undefined_flag_F77=
14150 always_export_symbols_F77=no
14151 archive_expsym_cmds_F77=
14152 export_dynamic_flag_spec_F77=
14153 hardcode_direct_F77=no
14154 hardcode_libdir_flag_spec_F77=
14155 hardcode_libdir_flag_spec_ld_F77=
14156 hardcode_libdir_separator_F77=
14157 hardcode_minus_L_F77=no
14158 hardcode_automatic_F77=no
14160 module_expsym_cmds_F77=
14161 link_all_deplibs_F77=unknown
14162 old_archive_cmds_F77=$old_archive_cmds
14163 no_undefined_flag_F77=
14164 whole_archive_flag_spec_F77=
14165 enable_shared_with_static_runtimes_F77=no
14167 # Source file extension for f77 test sources.
14170 # Object file extension for compiled f77 test sources.
14174 # Code to be used in simple compile tests
14175 lt_simple_compile_test_code="\
14181 # Code to be used in simple link tests
14182 lt_simple_link_test_code="\
14187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14189 # If no C compiler was specified, use CC.
14192 # If no C compiler flags were specified, use CFLAGS.
14193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14195 # Allow CC to be a program name with arguments.
14199 # save warnings/boilerplate of simple test code
14200 ac_outfile=conftest.$ac_objext
14201 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14203 _lt_compiler_boilerplate=`cat conftest.err`
14206 ac_outfile=conftest.$ac_objext
14207 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14209 _lt_linker_boilerplate=`cat conftest.err`
14213 # Allow CC to be a program name with arguments.
14218 for cc_temp in $compiler""; do
14220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14229 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14230 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14231 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14232 echo "${ECHO_T}$can_build_shared" >&6; }
14234 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14235 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14236 test "$can_build_shared" = "no" && enable_shared=no
14238 # On AIX, shared libraries and static libraries use the same namespace, and
14239 # are all built from PIC.
14242 test "$enable_shared" = yes && enable_static=no
14243 if test -n "$RANLIB"; then
14244 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14245 postinstall_cmds='$RANLIB $lib'
14249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14250 test "$enable_shared" = yes && enable_static=no
14254 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14255 echo "${ECHO_T}$enable_shared" >&6; }
14257 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14258 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14259 # Make sure either enable_shared or enable_static is yes.
14260 test "$enable_shared" = yes || enable_static=yes
14261 { echo "$as_me:$LINENO: result: $enable_static" >&5
14262 echo "${ECHO_T}$enable_static" >&6; }
14267 lt_prog_compiler_wl_F77=
14268 lt_prog_compiler_pic_F77=
14269 lt_prog_compiler_static_F77=
14271 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14274 if test "$GCC" = yes; then
14275 lt_prog_compiler_wl_F77='-Wl,'
14276 lt_prog_compiler_static_F77='-static'
14280 # All AIX code is PIC.
14281 if test "$host_cpu" = ia64; then
14282 # AIX 5 now supports IA64 processor
14283 lt_prog_compiler_static_F77='-Bstatic'
14288 # FIXME: we need at least 68020 code to build shared libraries, but
14289 # adding the `-m68020' flag to GCC prevents building anything better,
14291 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14295 # PIC is the default for these OSes.
14298 mingw* | cygwin* | pw32* | os2*)
14299 # This hack is so that the source file can tell whether it is being
14300 # built for inclusion in a dll (and should export symbols for example).
14301 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14302 # (--disable-auto-import) libraries
14303 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14306 darwin* | rhapsody*)
14307 # PIC is the default on this platform
14308 # Common symbols not allowed in MH_DYLIB files
14309 lt_prog_compiler_pic_F77='-fno-common'
14313 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14314 # Instead, we relocate shared libraries at runtime.
14318 # Just because we use GCC doesn't mean we suddenly get shared libraries
14319 # on systems that don't support them.
14320 lt_prog_compiler_can_build_shared_F77=no
14325 if test -d /usr/nec; then
14326 lt_prog_compiler_pic_F77=-Kconform_pic
14331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14332 # not for PA HP-UX.
14338 lt_prog_compiler_pic_F77='-fPIC'
14344 lt_prog_compiler_pic_F77='-fPIC'
14348 # PORTME Check for flag to pass linker flags through the system compiler.
14351 lt_prog_compiler_wl_F77='-Wl,'
14352 if test "$host_cpu" = ia64; then
14353 # AIX 5 now supports IA64 processor
14354 lt_prog_compiler_static_F77='-Bstatic'
14356 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14360 # PIC is the default on this platform
14361 # Common symbols not allowed in MH_DYLIB files
14362 case $cc_basename in
14364 lt_prog_compiler_pic_F77='-qnocommon'
14365 lt_prog_compiler_wl_F77='-Wl,'
14370 mingw* | cygwin* | pw32* | os2*)
14371 # This hack is so that the source file can tell whether it is being
14372 # built for inclusion in a dll (and should export symbols for example).
14373 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14376 hpux9* | hpux10* | hpux11*)
14377 lt_prog_compiler_wl_F77='-Wl,'
14378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14379 # not for PA HP-UX.
14385 lt_prog_compiler_pic_F77='+Z'
14388 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14389 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14392 irix5* | irix6* | nonstopux*)
14393 lt_prog_compiler_wl_F77='-Wl,'
14394 # PIC (with -KPIC) is the default.
14395 lt_prog_compiler_static_F77='-non_shared'
14399 lt_prog_compiler_pic_F77='-KPIC'
14400 lt_prog_compiler_static_F77='-Bstatic'
14403 linux* | k*bsd*-gnu)
14404 case $cc_basename in
14406 lt_prog_compiler_wl_F77='-Wl,'
14407 lt_prog_compiler_pic_F77='-KPIC'
14408 lt_prog_compiler_static_F77='-static'
14410 pgcc* | pgf77* | pgf90* | pgf95*)
14411 # Portland Group compilers (*not* the Pentium gcc compiler,
14412 # which looks to be a dead project)
14413 lt_prog_compiler_wl_F77='-Wl,'
14414 lt_prog_compiler_pic_F77='-fpic'
14415 lt_prog_compiler_static_F77='-Bstatic'
14418 lt_prog_compiler_wl_F77='-Wl,'
14419 # All Alpha code is PIC.
14420 lt_prog_compiler_static_F77='-non_shared'
14423 case `$CC -V 2>&1 | sed 5q` in
14426 lt_prog_compiler_pic_F77='-KPIC'
14427 lt_prog_compiler_static_F77='-Bstatic'
14428 lt_prog_compiler_wl_F77='-Wl,'
14431 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14432 lt_prog_compiler_pic_F77='-KPIC'
14433 lt_prog_compiler_static_F77='-Bstatic'
14434 lt_prog_compiler_wl_F77=''
14441 osf3* | osf4* | osf5*)
14442 lt_prog_compiler_wl_F77='-Wl,'
14443 # All OSF/1 code is PIC.
14444 lt_prog_compiler_static_F77='-non_shared'
14448 lt_prog_compiler_static_F77='-non_shared'
14452 lt_prog_compiler_pic_F77='-KPIC'
14453 lt_prog_compiler_static_F77='-Bstatic'
14454 case $cc_basename in
14455 f77* | f90* | f95*)
14456 lt_prog_compiler_wl_F77='-Qoption ld ';;
14458 lt_prog_compiler_wl_F77='-Wl,';;
14463 lt_prog_compiler_wl_F77='-Qoption ld '
14464 lt_prog_compiler_pic_F77='-PIC'
14465 lt_prog_compiler_static_F77='-Bstatic'
14468 sysv4 | sysv4.2uw2* | sysv4.3*)
14469 lt_prog_compiler_wl_F77='-Wl,'
14470 lt_prog_compiler_pic_F77='-KPIC'
14471 lt_prog_compiler_static_F77='-Bstatic'
14475 if test -d /usr/nec ;then
14476 lt_prog_compiler_pic_F77='-Kconform_pic'
14477 lt_prog_compiler_static_F77='-Bstatic'
14481 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14482 lt_prog_compiler_wl_F77='-Wl,'
14483 lt_prog_compiler_pic_F77='-KPIC'
14484 lt_prog_compiler_static_F77='-Bstatic'
14488 lt_prog_compiler_wl_F77='-Wl,'
14489 lt_prog_compiler_can_build_shared_F77=no
14493 lt_prog_compiler_pic_F77='-pic'
14494 lt_prog_compiler_static_F77='-Bstatic'
14498 lt_prog_compiler_can_build_shared_F77=no
14503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14504 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14507 # Check to make sure the PIC flag actually works.
14509 if test -n "$lt_prog_compiler_pic_F77"; then
14511 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14512 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14513 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 lt_cv_prog_compiler_pic_works_F77=no
14517 ac_outfile=conftest.$ac_objext
14518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14519 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14520 # Insert the option either (1) after the last *FLAGS variable, or
14521 # (2) before a word containing "conftest.", or (3) at the end.
14522 # Note that $ac_compile itself does not contain backslashes and begins
14523 # with a dollar sign (not a hyphen), so the echo should work correctly.
14524 # The option is referenced via a variable to avoid confusing sed.
14525 lt_compile=`echo "$ac_compile" | $SED \
14526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14528 -e 's:$: $lt_compiler_flag:'`
14529 (eval echo "\"\$as_me:14529: $lt_compile\"" >&5)
14530 (eval "$lt_compile" 2>conftest.err)
14532 cat conftest.err >&5
14533 echo "$as_me:14533: \$? = $ac_status" >&5
14534 if (exit $ac_status) && test -s "$ac_outfile"; then
14535 # The compiler can only warn and ignore the option if not recognized
14536 # So say no if there are warnings other than the usual output.
14537 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14540 lt_cv_prog_compiler_pic_works_F77=yes
14546 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14547 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14549 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14550 case $lt_prog_compiler_pic_F77 in
14552 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14555 lt_prog_compiler_pic_F77=
14556 lt_prog_compiler_can_build_shared_F77=no
14561 # For platforms which do not support PIC, -DPIC is meaningless:
14563 lt_prog_compiler_pic_F77=
14566 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14571 # Check to make sure the static flag actually works.
14573 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14574 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14575 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14576 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 lt_cv_prog_compiler_static_works_F77=no
14580 save_LDFLAGS="$LDFLAGS"
14581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14582 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14584 # The linker can only warn and ignore the option if not recognized
14585 # So say no if there are warnings
14586 if test -s conftest.err; then
14587 # Append any errors to the config.log.
14588 cat conftest.err 1>&5
14589 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591 if diff conftest.exp conftest.er2 >/dev/null; then
14592 lt_cv_prog_compiler_static_works_F77=yes
14595 lt_cv_prog_compiler_static_works_F77=yes
14599 LDFLAGS="$save_LDFLAGS"
14602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14603 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14605 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14608 lt_prog_compiler_static_F77=
14612 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14613 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14614 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 lt_cv_prog_compiler_c_o_F77=no
14618 $rm -r conftest 2>/dev/null
14622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624 lt_compiler_flag="-o out/conftest2.$ac_objext"
14625 # Insert the option either (1) after the last *FLAGS variable, or
14626 # (2) before a word containing "conftest.", or (3) at the end.
14627 # Note that $ac_compile itself does not contain backslashes and begins
14628 # with a dollar sign (not a hyphen), so the echo should work correctly.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>out/conftest.err)
14636 cat out/conftest.err >&5
14637 echo "$as_me:14637: \$? = $ac_status" >&5
14638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14640 # The compiler can only warn and ignore the option if not recognized
14641 # So say no if there are warnings
14642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645 lt_cv_prog_compiler_c_o_F77=yes
14650 # SGI C++ compiler will create directory out/ii_files/ for
14651 # template instantiation
14652 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14653 $rm out/* && rmdir out
14659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14660 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14663 hard_links="nottested"
14664 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14665 # do not overwrite the value of need_locks provided by the user
14666 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14667 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14672 ln conftest.a conftest.b 2>&5 || hard_links=no
14673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14674 { echo "$as_me:$LINENO: result: $hard_links" >&5
14675 echo "${ECHO_T}$hard_links" >&6; }
14676 if test "$hard_links" = no; then
14677 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14678 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14685 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14686 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14689 allow_undefined_flag_F77=
14690 enable_shared_with_static_runtimes_F77=no
14692 archive_expsym_cmds_F77=
14693 old_archive_From_new_cmds_F77=
14694 old_archive_from_expsyms_cmds_F77=
14695 export_dynamic_flag_spec_F77=
14696 whole_archive_flag_spec_F77=
14697 thread_safe_flag_spec_F77=
14698 hardcode_libdir_flag_spec_F77=
14699 hardcode_libdir_flag_spec_ld_F77=
14700 hardcode_libdir_separator_F77=
14701 hardcode_direct_F77=no
14702 hardcode_minus_L_F77=no
14703 hardcode_shlibpath_var_F77=unsupported
14704 link_all_deplibs_F77=unknown
14705 hardcode_automatic_F77=no
14707 module_expsym_cmds_F77=
14708 always_export_symbols_F77=no
14709 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14710 # include_expsyms should be a list of space-separated symbols to be *always*
14711 # included in the symbol list
14712 include_expsyms_F77=
14713 # exclude_expsyms can be an extended regexp of symbols to exclude
14714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14716 # as well as any symbol that contains `d'.
14717 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14719 # platforms (ab)use it in PIC code, but their linkers get confused if
14720 # the symbol is explicitly referenced. Since portable code cannot
14721 # rely on this symbol name, it's probably fine to never include it in
14722 # preloaded symbol tables.
14723 # Exclude shared library initialization/finalization symbols.
14724 extract_expsyms_cmds=
14725 # Just being paranoid about ensuring that cc_basename is set.
14726 for cc_temp in $compiler""; do
14728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14737 cygwin* | mingw* | pw32*)
14738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14739 # When not using gcc, we currently assume that we are using
14740 # Microsoft Visual C++.
14741 if test "$GCC" != yes; then
14746 # we just hope/assume this is gcc and not c89 (= MSVC++)
14755 if test "$with_gnu_ld" = yes; then
14756 # If archive_cmds runs LD, not CC, wlarc should be empty
14759 # Set some defaults for GNU ld with shared library support. These
14760 # are reset later if shared libraries are not supported. Putting them
14761 # here allows them to be overridden if necessary.
14762 runpath_var=LD_RUN_PATH
14763 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14764 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14765 # ancient GNU ld didn't support --whole-archive et. al.
14766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14767 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14769 whole_archive_flag_spec_F77=
14771 supports_anon_versioning=no
14772 case `$LD -v 2>/dev/null` in
14773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14776 *\ 2.11.*) ;; # other 2.11 versions
14777 *) supports_anon_versioning=yes ;;
14780 # See if GNU ld supports shared libraries.
14783 # On AIX/PPC, the GNU linker is very broken
14784 if test "$host_cpu" != ia64; then
14788 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14789 *** to be unable to reliably create shared libraries on AIX.
14790 *** Therefore, libtool is disabling shared libraries support. If you
14791 *** really care for shared libraries, you may want to modify your PATH
14792 *** so that a non-GNU linker is found, and then restart.
14799 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)'
14800 hardcode_libdir_flag_spec_F77='-L$libdir'
14801 hardcode_minus_L_F77=yes
14803 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14804 # that the semantics of dynamic libraries on AmigaOS, at least up
14805 # to version 4, is to share data among multiple programs linked
14806 # with the same dynamic library. Since this doesn't match the
14807 # behavior of shared libraries on other platforms, we can't use
14813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814 allow_undefined_flag_F77=unsupported
14815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14816 # support --undefined. This deserves some investigation. FIXME
14817 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823 cygwin* | mingw* | pw32*)
14824 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14825 # as there is no search path for DLLs.
14826 hardcode_libdir_flag_spec_F77='-L$libdir'
14827 allow_undefined_flag_F77=unsupported
14828 always_export_symbols_F77=no
14829 enable_shared_with_static_runtimes_F77=yes
14830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14834 # If the export-symbols file already is a .def file (1st line
14835 # is EXPORTS), use it as is; otherwise, prepend...
14836 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14837 cp $export_symbols $output_objdir/$soname.def;
14839 echo EXPORTS > $output_objdir/$soname.def;
14840 cat $export_symbols >> $output_objdir/$soname.def;
14842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14849 hardcode_direct_F77=no
14850 hardcode_shlibpath_var_F77=no
14851 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14852 export_dynamic_flag_spec_F77='${wl}-E'
14853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14854 # Instead, shared libraries are loaded at an image base (0x10000000 by
14855 # default) and relocated if they conflict, which is a slow very memory
14856 # consuming and fragmenting process. To avoid this, we pick a random,
14857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14859 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'
14860 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'
14863 gnu* | linux* | k*bsd*-gnu)
14864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14866 case $cc_basename,$host_cpu in
14867 pgcc*) # Portland Group C compiler
14868 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'
14869 tmp_addflag=' $pic_flag'
14871 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14872 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'
14873 tmp_addflag=' $pic_flag -Mnomain' ;;
14874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14875 tmp_addflag=' -i_dynamic' ;;
14876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14877 tmp_addflag=' -i_dynamic -nofor_main' ;;
14878 ifc* | ifort*) # Intel Fortran compiler
14879 tmp_addflag=' -nofor_main' ;;
14881 case `$CC -V 2>&1 | sed 5q` in
14882 *Sun\ C*) # Sun C 5.9
14883 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14884 tmp_sharedflag='-G' ;;
14885 *Sun\ F*) # Sun Fortran 8.3
14886 tmp_sharedflag='-G' ;;
14888 tmp_sharedflag='-shared' ;;
14890 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 if test $supports_anon_versioning = yes; then
14893 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14895 $echo "local: *; };" >> $output_objdir/$libname.ver~
14896 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14898 link_all_deplibs_F77=no
14904 netbsd* | netbsdelf*-gnu)
14905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14906 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14909 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14915 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14920 *** create shared libraries on Solaris systems. Therefore, libtool
14921 *** is disabling shared libraries support. We urge you to upgrade GNU
14922 *** binutils to release 2.9.1 or newer. Another option is to modify
14923 *** your PATH or compiler configuration so that the native linker is
14924 *** used, and then restart.
14927 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14928 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14936 case `$LD -v 2>&1` in
14937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14942 *** reliably create shared libraries on SCO systems. Therefore, libtool
14943 *** is disabling shared libraries support. We urge you to upgrade GNU
14944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14945 *** your PATH or compiler configuration so that the native linker is
14946 *** used, and then restart.
14951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14952 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14953 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14954 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14963 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14965 hardcode_direct_F77=yes
14966 hardcode_shlibpath_var_F77=no
14970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14971 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14979 if test "$ld_shlibs_F77" = no; then
14981 hardcode_libdir_flag_spec_F77=
14982 export_dynamic_flag_spec_F77=
14983 whole_archive_flag_spec_F77=
14986 # PORTME fill in a description of your system's linker (not GNU ld)
14989 allow_undefined_flag_F77=unsupported
14990 always_export_symbols_F77=yes
14991 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'
14992 # Note: this linker hardcodes the directories in LIBPATH if there
14993 # are no directories specified by -L.
14994 hardcode_minus_L_F77=yes
14995 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14996 # Neither direct hardcoding nor static linking is supported with a
14998 hardcode_direct_F77=unsupported
15003 if test "$host_cpu" = ia64; then
15004 # On IA64, the linker does run time linking by default, so we don't
15005 # have to do anything special.
15006 aix_use_runtimelinking=no
15007 exp_sym_flag='-Bexport'
15010 # If we're using GNU nm, then we don't want the "-C" option.
15011 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15012 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15013 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'
15015 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'
15017 aix_use_runtimelinking=no
15019 # Test if we are trying to use run time linking or normal
15020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15021 # need to do runtime linking.
15022 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15023 for ld_flag in $LDFLAGS; do
15024 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15025 aix_use_runtimelinking=yes
15032 exp_sym_flag='-bexport'
15033 no_entry_flag='-bnoentry'
15036 # When large executables or shared objects are built, AIX ld can
15037 # have problems creating the table of contents. If linking a library
15038 # or program results in "error TOC overflow" add -mminimal-toc to
15039 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15040 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15042 archive_cmds_F77=''
15043 hardcode_direct_F77=yes
15044 hardcode_libdir_separator_F77=':'
15045 link_all_deplibs_F77=yes
15047 if test "$GCC" = yes; then
15048 case $host_os in aix4.[012]|aix4.[012].*)
15049 # We only want to do this on AIX 4.2 and lower, the check
15050 # below for broken collect2 doesn't work under 4.3+
15051 collect2name=`${CC} -print-prog-name=collect2`
15052 if test -f "$collect2name" && \
15053 strings "$collect2name" | grep resolve_lib_name >/dev/null
15055 # We have reworked collect2
15058 # We have old collect2
15059 hardcode_direct_F77=unsupported
15060 # It fails to find uninstalled libraries when the uninstalled
15061 # path is not listed in the libpath. Setting hardcode_minus_L
15062 # to unsupported forces relinking
15063 hardcode_minus_L_F77=yes
15064 hardcode_libdir_flag_spec_F77='-L$libdir'
15065 hardcode_libdir_separator_F77=
15069 shared_flag='-shared'
15070 if test "$aix_use_runtimelinking" = yes; then
15071 shared_flag="$shared_flag "'${wl}-G'
15075 if test "$host_cpu" = ia64; then
15076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15077 # chokes on -Wl,-G. The following line is correct:
15080 if test "$aix_use_runtimelinking" = yes; then
15081 shared_flag='${wl}-G'
15083 shared_flag='${wl}-bM:SRE'
15088 # It seems that -bexpall does not export symbols beginning with
15089 # underscore (_), so it is better to generate a list of symbols to export.
15090 always_export_symbols_F77=yes
15091 if test "$aix_use_runtimelinking" = yes; then
15092 # Warning - without using the other runtime loading flags (-brtl),
15093 # -berok will link without error, but may produce a broken library.
15094 allow_undefined_flag_F77='-berok'
15095 # Determine the default libpath from the value encoded in an empty executable.
15096 cat >conftest.$ac_ext <<_ACEOF
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_link") 2>conftest.er1
15110 grep -v '^ *+' conftest.er1 >conftest.err
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && {
15115 test -z "$ac_f77_werror_flag" ||
15116 test ! -s conftest.err
15117 } && test -s conftest$ac_exeext &&
15118 $as_test_x conftest$ac_exeext; then
15120 lt_aix_libpath_sed='
15121 /Import File Strings/,/^$/ {
15127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15128 # Check for a 64-bit object if we didn't find anything.
15129 if test -z "$aix_libpath"; then
15130 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15140 conftest$ac_exeext conftest.$ac_ext
15141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15143 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15144 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"
15146 if test "$host_cpu" = ia64; then
15147 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15148 allow_undefined_flag_F77="-z nodefs"
15149 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"
15151 # Determine the default libpath from the value encoded in an empty executable.
15152 cat >conftest.$ac_ext <<_ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_link") 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_f77_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext &&
15174 $as_test_x conftest$ac_exeext; then
15176 lt_aix_libpath_sed='
15177 /Import File Strings/,/^$/ {
15183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15184 # Check for a 64-bit object if we didn't find anything.
15185 if test -z "$aix_libpath"; then
15186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196 conftest$ac_exeext conftest.$ac_ext
15197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15199 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15200 # Warning - without using the other run time loading flags,
15201 # -berok will link without error, but may produce a broken library.
15202 no_undefined_flag_F77=' ${wl}-bernotok'
15203 allow_undefined_flag_F77=' ${wl}-berok'
15204 # Exported symbols can be pulled into shared objects from archives
15205 whole_archive_flag_spec_F77='$convenience'
15206 archive_cmds_need_lc_F77=yes
15207 # This is similar to how AIX traditionally builds its shared libraries.
15208 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'
15214 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)'
15215 hardcode_libdir_flag_spec_F77='-L$libdir'
15216 hardcode_minus_L_F77=yes
15217 # see comment about different semantics on the GNU ld section
15222 export_dynamic_flag_spec_F77=-rdynamic
15225 cygwin* | mingw* | pw32*)
15226 # When not using gcc, we currently assume that we are using
15227 # Microsoft Visual C++.
15228 # hardcode_libdir_flag_spec is actually meaningless, as there is
15229 # no search path for DLLs.
15230 hardcode_libdir_flag_spec_F77=' '
15231 allow_undefined_flag_F77=unsupported
15232 # Tell ltmain to make .lib files, not .a files.
15234 # Tell ltmain to make .dll files, not .so files.
15236 # FIXME: Setting linknames here is a bad hack.
15237 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15238 # The linker will automatically build a .lib file if we build a DLL.
15239 old_archive_From_new_cmds_F77='true'
15240 # FIXME: Should let the user specify the lib program.
15241 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15242 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15243 enable_shared_with_static_runtimes_F77=yes
15246 darwin* | rhapsody*)
15248 rhapsody* | darwin1.[012])
15249 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15252 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15253 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15255 case ${MACOSX_DEPLOYMENT_TARGET} in
15257 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15260 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15266 archive_cmds_need_lc_F77=no
15267 hardcode_direct_F77=no
15268 hardcode_automatic_F77=yes
15269 hardcode_shlibpath_var_F77=unsupported
15270 whole_archive_flag_spec_F77=''
15271 link_all_deplibs_F77=yes
15272 if test "$GCC" = yes ; then
15273 output_verbose_link_cmd='echo'
15274 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15275 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15276 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15277 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15279 case $cc_basename in
15281 output_verbose_link_cmd='echo'
15282 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15283 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15284 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15285 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15286 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}'
15296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15297 hardcode_libdir_flag_spec_F77='-L$libdir'
15298 hardcode_shlibpath_var_F77=no
15305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15306 # support. Future versions do this automatically, but an explicit c++rt0.o
15307 # does not break anything, and helps significantly (at the cost of a little
15310 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15311 hardcode_libdir_flag_spec_F77='-R$libdir'
15312 hardcode_direct_F77=yes
15313 hardcode_shlibpath_var_F77=no
15316 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15318 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15319 hardcode_direct_F77=yes
15320 hardcode_minus_L_F77=yes
15321 hardcode_shlibpath_var_F77=no
15324 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15325 freebsd* | dragonfly*)
15326 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15327 hardcode_libdir_flag_spec_F77='-R$libdir'
15328 hardcode_direct_F77=yes
15329 hardcode_shlibpath_var_F77=no
15333 if test "$GCC" = yes; then
15334 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'
15336 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'
15338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15339 hardcode_libdir_separator_F77=:
15340 hardcode_direct_F77=yes
15342 # hardcode_minus_L: Not really in the search PATH,
15343 # but as the default location of the library.
15344 hardcode_minus_L_F77=yes
15345 export_dynamic_flag_spec_F77='${wl}-E'
15349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15350 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='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15354 if test "$with_gnu_ld" = no; then
15355 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15356 hardcode_libdir_separator_F77=:
15358 hardcode_direct_F77=yes
15359 export_dynamic_flag_spec_F77='${wl}-E'
15361 # hardcode_minus_L: Not really in the search PATH,
15362 # but as the default location of the library.
15363 hardcode_minus_L_F77=yes
15368 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15371 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15374 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15377 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15383 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15386 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15389 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15393 if test "$with_gnu_ld" = no; then
15394 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15395 hardcode_libdir_separator_F77=:
15399 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15400 hardcode_direct_F77=no
15401 hardcode_shlibpath_var_F77=no
15404 hardcode_direct_F77=yes
15405 export_dynamic_flag_spec_F77='${wl}-E'
15407 # hardcode_minus_L: Not really in the search PATH,
15408 # but as the default location of the library.
15409 hardcode_minus_L_F77=yes
15415 irix5* | irix6* | nonstopux*)
15416 if test "$GCC" = yes; then
15417 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'
15419 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'
15420 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15423 hardcode_libdir_separator_F77=:
15424 link_all_deplibs_F77=yes
15427 netbsd* | netbsdelf*-gnu)
15428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15429 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15431 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15433 hardcode_libdir_flag_spec_F77='-R$libdir'
15434 hardcode_direct_F77=yes
15435 hardcode_shlibpath_var_F77=no
15439 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15440 hardcode_direct_F77=yes
15441 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15442 hardcode_libdir_separator_F77=:
15443 hardcode_shlibpath_var_F77=no
15447 if test -f /usr/libexec/ld.so; then
15448 hardcode_direct_F77=yes
15449 hardcode_shlibpath_var_F77=no
15450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15453 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15454 export_dynamic_flag_spec_F77='${wl}-E'
15457 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459 hardcode_libdir_flag_spec_F77='-R$libdir'
15462 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15473 hardcode_libdir_flag_spec_F77='-L$libdir'
15474 hardcode_minus_L_F77=yes
15475 allow_undefined_flag_F77=unsupported
15476 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'
15477 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15481 if test "$GCC" = yes; then
15482 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15483 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'
15485 allow_undefined_flag_F77=' -expect_unresolved \*'
15486 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'
15488 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15489 hardcode_libdir_separator_F77=:
15492 osf4* | osf5*) # as osf3* with the addition of -msym flag
15493 if test "$GCC" = yes; then
15494 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15495 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'
15496 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15498 allow_undefined_flag_F77=' -expect_unresolved \*'
15499 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'
15500 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~
15501 $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'
15503 # Both c and cxx compiler support -rpath directly
15504 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15506 hardcode_libdir_separator_F77=:
15510 no_undefined_flag_F77=' -z text'
15511 if test "$GCC" = yes; then
15513 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15515 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15518 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15520 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15522 hardcode_libdir_flag_spec_F77='-R$libdir'
15523 hardcode_shlibpath_var_F77=no
15525 solaris2.[0-5] | solaris2.[0-5].*) ;;
15527 # The compiler driver will combine and reorder linker options,
15528 # but understands `-z linker_flag'. GCC discards it without `$wl',
15529 # but is careful enough not to reorder.
15530 # Supported since Solaris 2.6 (maybe 2.5.1?)
15531 if test "$GCC" = yes; then
15532 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15534 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15538 link_all_deplibs_F77=yes
15542 if test "x$host_vendor" = xsequent; then
15543 # Use $CC to link under sequent, because it throws in some extra .o
15544 # files that make .init and .fini sections work.
15545 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15547 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_libdir_flag_spec_F77='-L$libdir'
15550 hardcode_direct_F77=yes
15551 hardcode_minus_L_F77=yes
15552 hardcode_shlibpath_var_F77=no
15556 case $host_vendor in
15558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_direct_F77=yes # is this really true???
15562 ## LD is ld it makes a PLAMLIB
15563 ## CC just makes a GrossModule.
15564 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15565 reload_cmds_F77='$CC -r -o $output$reload_objs'
15566 hardcode_direct_F77=no
15569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15573 runpath_var='LD_RUN_PATH'
15574 hardcode_shlibpath_var_F77=no
15578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_shlibpath_var_F77=no
15580 export_dynamic_flag_spec_F77='-Bexport'
15584 if test -d /usr/nec; then
15585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586 hardcode_shlibpath_var_F77=no
15587 runpath_var=LD_RUN_PATH
15588 hardcode_runpath_var=yes
15593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15594 no_undefined_flag_F77='${wl}-z,text'
15595 archive_cmds_need_lc_F77=no
15596 hardcode_shlibpath_var_F77=no
15597 runpath_var='LD_RUN_PATH'
15599 if test "$GCC" = yes; then
15600 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 sysv5* | sco3.2v5* | sco5v6*)
15609 # Note: We can NOT use -z defs as we might desire, because we do not
15610 # link with -lc, and that would cause any symbols used from libc to
15611 # always be unresolved, which means just about no library would
15612 # ever link correctly. If we're not using GNU ld we use -z text
15613 # though, which does catch some bad symbols but isn't as heavy-handed
15615 no_undefined_flag_F77='${wl}-z,text'
15616 allow_undefined_flag_F77='${wl}-z,nodefs'
15617 archive_cmds_need_lc_F77=no
15618 hardcode_shlibpath_var_F77=no
15619 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15620 hardcode_libdir_separator_F77=':'
15621 link_all_deplibs_F77=yes
15622 export_dynamic_flag_spec_F77='${wl}-Bexport'
15623 runpath_var='LD_RUN_PATH'
15625 if test "$GCC" = yes; then
15626 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636 hardcode_libdir_flag_spec_F77='-L$libdir'
15637 hardcode_shlibpath_var_F77=no
15646 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15647 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15648 test "$ld_shlibs_F77" = no && can_build_shared=no
15651 # Do we need to explicitly link libc?
15653 case "x$archive_cmds_need_lc_F77" in
15655 # Assume -lc should be added
15656 archive_cmds_need_lc_F77=yes
15658 if test "$enable_shared" = yes && test "$GCC" = yes; then
15659 case $archive_cmds_F77 in
15661 # FIXME: we may have to deal with multi-command sequences.
15664 # Test whether the compiler implicitly links with -lc since on some
15665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15666 # to ld, don't add -lc before -lgcc.
15667 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15668 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } 2>conftest.err; then
15679 libobjs=conftest.$ac_objext
15681 wl=$lt_prog_compiler_wl_F77
15682 pic_flag=$lt_prog_compiler_pic_F77
15688 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15689 allow_undefined_flag_F77=
15690 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15691 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }
15696 archive_cmds_need_lc_F77=no
15698 archive_cmds_need_lc_F77=yes
15700 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15702 cat conftest.err 1>&5
15705 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15706 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15713 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15714 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15715 library_names_spec=
15716 libname_spec='lib$name'
15720 postuninstall_cmds=
15724 shlibpath_overrides_runpath=unknown
15726 dynamic_linker="$host_os ld.so"
15727 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15729 need_lib_prefix=unknown
15730 hardcode_into_libs=no
15732 # when you set need_version to no, make sure it does not cause -set_version
15733 # flags to be left without arguments
15734 need_version=unknown
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15740 shlibpath_var=LIBPATH
15742 # AIX 3 has no versioning support, so we append a major version to the name.
15743 soname_spec='${libname}${release}${shared_ext}$major'
15750 hardcode_into_libs=yes
15751 if test "$host_cpu" = ia64; then
15752 # AIX 5 supports IA64
15753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15754 shlibpath_var=LD_LIBRARY_PATH
15756 # With GCC up to 2.95.x, collect2 would create an import file
15757 # for dependence libraries. The import file would start with
15758 # the line `#! .'. This would cause the generated library to
15759 # depend on `.', always an invalid library. This was fixed in
15760 # development snapshots of GCC prior to 3.0.
15762 aix4 | aix4.[01] | aix4.[01].*)
15763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15765 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15768 can_build_shared=no
15772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15773 # soname into executable. Probably we can add versioning support to
15774 # collect2, so additional links can be useful in future.
15775 if test "$aix_use_runtimelinking" = yes; then
15776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15777 # instead of lib<name>.a to let people know that these are not
15778 # typical AIX shared libraries.
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 # We preserve .a as extension for shared libraries through AIX4.2
15782 # and later when we are not doing run time linking.
15783 library_names_spec='${libname}${release}.a $libname.a'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LIBPATH
15791 library_names_spec='$libname.ixlibrary $libname.a'
15792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15793 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'
15797 library_names_spec='${libname}${shared_ext}'
15798 dynamic_linker="$host_os ld.so"
15799 shlibpath_var=LIBRARY_PATH
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 soname_spec='${libname}${release}${shared_ext}$major'
15807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15811 # the default ld.so.conf also contains /usr/contrib/lib and
15812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15813 # libtool to hard-code these into programs
15816 cygwin* | mingw* | pw32*)
15817 version_type=windows
15822 case $GCC,$host_os in
15823 yes,cygwin* | yes,mingw* | yes,pw32*)
15824 library_names_spec='$libname.dll.a'
15825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15826 postinstall_cmds='base_file=`basename \${file}`~
15827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15828 dldir=$destdir/`dirname \$dlpath`~
15829 test -d \$dldir || mkdir -p \$dldir~
15830 $install_prog $dir/$dlname \$dldir/$dlname~
15831 chmod a+x \$dldir/$dlname'
15832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15833 dlpath=$dir/\$dldll~
15835 shlibpath_overrides_runpath=yes
15839 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15840 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15841 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15844 # MinGW DLLs use traditional 'lib' prefix
15845 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15846 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15847 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15848 # It is most probably a Windows format PATH printed by
15849 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15850 # path with ; separators, and with drive letters. We can handle the
15851 # drive letters (cygwin fileutils understands them), so leave them,
15852 # especially as we might pass files found there to a mingw objdump,
15853 # which wouldn't understand a cygwinified path. Ahh.
15854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15860 # pw32 DLLs use 'pw' prefix rather than 'lib'
15861 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15870 dynamic_linker='Win32 ld.exe'
15871 # FIXME: first we should search . and the directory the executable is in
15875 darwin* | rhapsody*)
15876 dynamic_linker="$host_os dyld"
15877 version_type=darwin
15880 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15881 soname_spec='${libname}${release}${major}$shared_ext'
15882 shlibpath_overrides_runpath=yes
15883 shlibpath_var=DYLD_LIBRARY_PATH
15884 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15902 freebsd* | dragonfly*)
15903 # DragonFly does not have aout. When/if they implement a new
15904 # versioning mechanism, adjust this.
15905 if test -x /usr/bin/objformat; then
15906 objformat=`/usr/bin/objformat`
15909 freebsd[123]*) objformat=aout ;;
15910 *) objformat=elf ;;
15913 version_type=freebsd-$objformat
15914 case $version_type in
15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15925 shlibpath_var=LD_LIBRARY_PATH
15928 shlibpath_overrides_runpath=yes
15930 freebsd3.[01]* | freebsdelf3.[01]*)
15931 shlibpath_overrides_runpath=yes
15932 hardcode_into_libs=yes
15934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15936 shlibpath_overrides_runpath=no
15937 hardcode_into_libs=yes
15939 *) # from 4.6 on, and DragonFly
15940 shlibpath_overrides_runpath=yes
15941 hardcode_into_libs=yes
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 shlibpath_var=LD_LIBRARY_PATH
15953 hardcode_into_libs=yes
15956 hpux9* | hpux10* | hpux11*)
15957 # Give a soname corresponding to the major version so that dld.sl refuses to
15958 # link against other versions.
15965 hardcode_into_libs=yes
15966 dynamic_linker="$host_os dld.so"
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 if test "X$HPUX_IA64_MODE" = X32; then
15972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15980 hardcode_into_libs=yes
15981 dynamic_linker="$host_os dld.sl"
15982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15991 dynamic_linker="$host_os dld.sl"
15992 shlibpath_var=SHLIB_PATH
15993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15999 postinstall_cmds='chmod 555 $lib'
16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 shlibpath_overrides_runpath=no
16011 hardcode_into_libs=yes
16014 irix5* | irix6* | nonstopux*)
16016 nonstopux*) version_type=nonstopux ;;
16018 if test "$lt_cv_prog_gnu_ld" = yes; then
16026 soname_spec='${libname}${release}${shared_ext}$major'
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 irix5* | nonstopux*)
16030 libsuff= shlibsuff=
16033 case $LD in # libtool.m4 will add one of these switches to LD
16034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16035 libsuff= shlibsuff= libmagic=32-bit;;
16036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16037 libsuff=32 shlibsuff=N32 libmagic=N32;;
16038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16040 *) libsuff= shlibsuff= libmagic=never-match;;
16044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16045 shlibpath_overrides_runpath=no
16046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16048 hardcode_into_libs=yes
16051 # No shared lib support for Linux oldld, aout, or coff.
16052 linux*oldld* | linux*aout* | linux*coff*)
16056 # This must be Linux ELF.
16057 linux* | k*bsd*-gnu)
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 shlibpath_overrides_runpath=no
16066 # This implies no fast_install, which is unacceptable.
16067 # Some rework will be needed to allow for fast_install
16068 # before this can be enabled.
16069 hardcode_into_libs=yes
16071 # Append ld.so.conf contents to the search path
16072 if test -f /etc/ld.so.conf; then
16073 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16077 # We used to test for /lib/ld.so.1 and disable shared libraries on
16078 # powerpc, because MkLinux only supported shared libraries with the
16079 # GNU dynamic linker. Since this was broken with cross compilers,
16080 # most powerpc-linux boxes support dynamic linking these days and
16081 # people can always --disable-shared, the test was removed, and we
16082 # assume the GNU/Linux dynamic linker is in use.
16083 dynamic_linker='GNU/Linux ld.so'
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16091 soname_spec='${libname}${release}${shared_ext}$major'
16092 shlibpath_var=LD_LIBRARY_PATH
16093 shlibpath_overrides_runpath=no
16094 hardcode_into_libs=yes
16095 dynamic_linker='NetBSD ld.elf_so'
16102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16105 dynamic_linker='NetBSD (a.out) ld.so'
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16109 dynamic_linker='NetBSD ld.elf_so'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=yes
16113 hardcode_into_libs=yes
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=yes
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=yes
16135 sys_lib_dlsearch_path_spec="/usr/lib"
16137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16140 *) need_version=no ;;
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16147 openbsd2.[89] | openbsd2.[89].*)
16148 shlibpath_overrides_runpath=no
16151 shlibpath_overrides_runpath=yes
16155 shlibpath_overrides_runpath=yes
16160 libname_spec='$name'
16163 library_names_spec='$libname${shared_ext} $libname.a'
16164 dynamic_linker='OS/2 ld.exe'
16165 shlibpath_var=LIBPATH
16168 osf3* | osf4* | osf5*)
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 shlibpath_var=LD_LIBRARY_PATH
16175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 shlibpath_var=LD_LIBRARY_PATH
16190 shlibpath_overrides_runpath=yes
16191 hardcode_into_libs=yes
16192 # ldd complains unless libraries are executable
16193 postinstall_cmds='chmod +x $lib'
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=yes
16202 if test "$with_gnu_ld" = yes; then
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 case $host_vendor in
16215 shlibpath_overrides_runpath=no
16217 export_dynamic_flag_spec='${wl}-Blargedynsym'
16218 runpath_var=LD_RUN_PATH
16226 shlibpath_overrides_runpath=no
16227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16233 if test -d /usr/nec ;then
16235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16236 soname_spec='$libname${shared_ext}.$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16242 version_type=freebsd-elf
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 hardcode_into_libs=yes
16249 if test "$with_gnu_ld" = yes; then
16250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16251 shlibpath_overrides_runpath=no
16253 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16254 shlibpath_overrides_runpath=yes
16257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16261 sys_lib_dlsearch_path_spec='/usr/lib'
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 shlibpath_var=LD_LIBRARY_PATH
16275 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16276 echo "${ECHO_T}$dynamic_linker" >&6; }
16277 test "$dynamic_linker" = no && can_build_shared=no
16279 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16285 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16286 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16295 if test "$GCC" = yes; then
16296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16299 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16301 hardcode_action_F77=
16302 if test -n "$hardcode_libdir_flag_spec_F77" || \
16303 test -n "$runpath_var_F77" || \
16304 test "X$hardcode_automatic_F77" = "Xyes" ; then
16306 # We can hardcode non-existant directories.
16307 if test "$hardcode_direct_F77" != no &&
16308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16309 # have to relink, otherwise we might link with an installed library
16310 # when we should be linking with a yet-to-be-installed one
16311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16312 test "$hardcode_minus_L_F77" != no; then
16313 # Linking always hardcodes the temporary library directory.
16314 hardcode_action_F77=relink
16316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16317 hardcode_action_F77=immediate
16320 # We cannot hardcode anything, or else we can only hardcode existing
16322 hardcode_action_F77=unsupported
16324 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16325 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16327 if test "$hardcode_action_F77" = relink; then
16328 # Fast installation is not supported
16329 enable_fast_install=no
16330 elif test "$shlibpath_overrides_runpath" = yes ||
16331 test "$enable_shared" = no; then
16332 # Fast installation is not necessary
16333 enable_fast_install=needless
16337 # The else clause should only fire when bootstrapping the
16338 # libtool distribution, otherwise you forgot to ship ltmain.sh
16339 # with your package, and you will get complaints that there are
16340 # no rules to generate ltmain.sh.
16341 if test -f "$ltmain"; then
16342 # See if we are running on zsh, and set the options which allow our commands through
16343 # without removal of \ escapes.
16344 if test -n "${ZSH_VERSION+set}" ; then
16345 setopt NO_GLOB_SUBST
16347 # Now quote all the things that may contain metacharacters while being
16348 # careful not to overquote the AC_SUBSTed values. We take copies of the
16349 # variables and quote the copies for generation of the libtool script.
16350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16354 deplibs_check_method reload_flag reload_cmds need_locks \
16355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16356 lt_cv_sys_global_symbol_to_c_name_address \
16357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16358 old_postinstall_cmds old_postuninstall_cmds \
16362 lt_prog_compiler_wl_F77 \
16363 lt_prog_compiler_pic_F77 \
16364 lt_prog_compiler_static_F77 \
16365 lt_prog_compiler_no_builtin_flag_F77 \
16366 export_dynamic_flag_spec_F77 \
16367 thread_safe_flag_spec_F77 \
16368 whole_archive_flag_spec_F77 \
16369 enable_shared_with_static_runtimes_F77 \
16370 old_archive_cmds_F77 \
16371 old_archive_from_new_cmds_F77 \
16372 predep_objects_F77 \
16373 postdep_objects_F77 \
16376 compiler_lib_search_path_F77 \
16377 compiler_lib_search_dirs_F77 \
16379 archive_expsym_cmds_F77 \
16380 postinstall_cmds_F77 \
16381 postuninstall_cmds_F77 \
16382 old_archive_from_expsyms_cmds_F77 \
16383 allow_undefined_flag_F77 \
16384 no_undefined_flag_F77 \
16385 export_symbols_cmds_F77 \
16386 hardcode_libdir_flag_spec_F77 \
16387 hardcode_libdir_flag_spec_ld_F77 \
16388 hardcode_libdir_separator_F77 \
16389 hardcode_automatic_F77 \
16391 module_expsym_cmds_F77 \
16392 lt_cv_prog_compiler_c_o_F77 \
16393 fix_srcfile_path_F77 \
16394 exclude_expsyms_F77 \
16395 include_expsyms_F77; do
16398 old_archive_cmds_F77 | \
16399 old_archive_from_new_cmds_F77 | \
16400 archive_cmds_F77 | \
16401 archive_expsym_cmds_F77 | \
16402 module_cmds_F77 | \
16403 module_expsym_cmds_F77 | \
16404 old_archive_from_expsyms_cmds_F77 | \
16405 export_symbols_cmds_F77 | \
16406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16407 postinstall_cmds | postuninstall_cmds | \
16408 old_postinstall_cmds | old_postuninstall_cmds | \
16409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16410 # Double-quote double-evaled strings.
16411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16420 *'\$0 --fallback-echo"')
16421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16427 cat <<__EOF__ >> "$cfgfile"
16428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16432 # Shell to use when invoking shell scripts.
16435 # Whether or not to build shared libraries.
16436 build_libtool_libs=$enable_shared
16438 # Whether or not to build static libraries.
16439 build_old_libs=$enable_static
16441 # Whether or not to add -lc for building shared libraries.
16442 build_libtool_need_lc=$archive_cmds_need_lc_F77
16444 # Whether or not to disallow shared libs when runtime libs are static
16445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16447 # Whether or not to optimize for fast installation.
16448 fast_install=$enable_fast_install
16451 host_alias=$host_alias
16455 # The build system.
16456 build_alias=$build_alias
16460 # An echo program that does not interpret backslashes.
16465 AR_FLAGS=$lt_AR_FLAGS
16470 # LTCC compiler flags.
16471 LTCFLAGS=$lt_LTCFLAGS
16473 # A language-specific compiler.
16474 CC=$lt_compiler_F77
16476 # Is the compiler the GNU C compiler?
16482 # The linker used to build libraries.
16485 # Whether we need hard or soft links.
16488 # A BSD-compatible nm program.
16491 # A symbol stripping program
16494 # Used to examine libraries when file_magic_cmd begins "file"
16495 MAGIC_CMD=$MAGIC_CMD
16497 # Used on cygwin: DLL creation program.
16500 # Used on cygwin: object dumper.
16503 # Used on cygwin: assembler.
16506 # The name of the directory that contains temporary libtool files.
16509 # How to create reloadable object files.
16510 reload_flag=$lt_reload_flag
16511 reload_cmds=$lt_reload_cmds
16513 # How to pass a linker flag through the compiler.
16514 wl=$lt_lt_prog_compiler_wl_F77
16516 # Object file suffix (normally "o").
16517 objext="$ac_objext"
16519 # Old archive suffix (normally "a").
16522 # Shared library suffix (normally ".so").
16523 shrext_cmds='$shrext_cmds'
16525 # Executable file suffix (normally "").
16528 # Additional compiler flags for building library objects.
16529 pic_flag=$lt_lt_prog_compiler_pic_F77
16532 # What is the maximum length of a command?
16533 max_cmd_len=$lt_cv_sys_max_cmd_len
16535 # Does compiler simultaneously support -c and -o options?
16536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16538 # Must we lock files when doing compilation?
16539 need_locks=$lt_need_locks
16541 # Do we need the lib prefix for modules?
16542 need_lib_prefix=$need_lib_prefix
16544 # Do we need a version for libraries?
16545 need_version=$need_version
16547 # Whether dlopen is supported.
16548 dlopen_support=$enable_dlopen
16550 # Whether dlopen of programs is supported.
16551 dlopen_self=$enable_dlopen_self
16553 # Whether dlopen of statically linked programs is supported.
16554 dlopen_self_static=$enable_dlopen_self_static
16556 # Compiler flag to prevent dynamic linking.
16557 link_static_flag=$lt_lt_prog_compiler_static_F77
16559 # Compiler flag to turn off builtin functions.
16560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16562 # Compiler flag to allow reflexive dlopens.
16563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16565 # Compiler flag to generate shared objects directly from archives.
16566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16568 # Compiler flag to generate thread-safe objects.
16569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16571 # Library versioning type.
16572 version_type=$version_type
16574 # Format of library name prefix.
16575 libname_spec=$lt_libname_spec
16577 # List of archive names. First name is the real one, the rest are links.
16578 # The last name is the one that the linker finds with -lNAME.
16579 library_names_spec=$lt_library_names_spec
16581 # The coded name of the library, if different from the real name.
16582 soname_spec=$lt_soname_spec
16584 # Commands used to build and install an old-style archive.
16586 old_archive_cmds=$lt_old_archive_cmds_F77
16587 old_postinstall_cmds=$lt_old_postinstall_cmds
16588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16590 # Create an old-style archive from a shared archive.
16591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16593 # Create a temporary old-style archive to link instead of a shared archive.
16594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16596 # Commands used to build and install a shared archive.
16597 archive_cmds=$lt_archive_cmds_F77
16598 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16599 postinstall_cmds=$lt_postinstall_cmds
16600 postuninstall_cmds=$lt_postuninstall_cmds
16602 # Commands used to build a loadable module (assumed same as above if empty)
16603 module_cmds=$lt_module_cmds_F77
16604 module_expsym_cmds=$lt_module_expsym_cmds_F77
16606 # Commands to strip libraries.
16607 old_striplib=$lt_old_striplib
16608 striplib=$lt_striplib
16610 # Dependencies to place before the objects being linked to create a
16612 predep_objects=$lt_predep_objects_F77
16614 # Dependencies to place after the objects being linked to create a
16616 postdep_objects=$lt_postdep_objects_F77
16618 # Dependencies to place before the objects being linked to create a
16620 predeps=$lt_predeps_F77
16622 # Dependencies to place after the objects being linked to create a
16624 postdeps=$lt_postdeps_F77
16626 # The directories searched by this compiler when creating a shared
16628 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16630 # The library search path used internally by the compiler when linking
16631 # a shared library.
16632 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16634 # Method to check whether dependent libraries are shared objects.
16635 deplibs_check_method=$lt_deplibs_check_method
16637 # Command to use when deplibs_check_method == file_magic.
16638 file_magic_cmd=$lt_file_magic_cmd
16640 # Flag that allows shared libraries with undefined symbols to be built.
16641 allow_undefined_flag=$lt_allow_undefined_flag_F77
16643 # Flag that forces no undefined symbols.
16644 no_undefined_flag=$lt_no_undefined_flag_F77
16646 # Commands used to finish a libtool library installation in a directory.
16647 finish_cmds=$lt_finish_cmds
16649 # Same as above, but a single script fragment to be evaled but not shown.
16650 finish_eval=$lt_finish_eval
16652 # Take the output of nm and produce a listing of raw symbols and C names.
16653 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16655 # Transform the output of nm in a proper C declaration
16656 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16658 # Transform the output of nm in a C name address pair
16659 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16661 # This is the shared library runtime path variable.
16662 runpath_var=$runpath_var
16664 # This is the shared library path variable.
16665 shlibpath_var=$shlibpath_var
16667 # Is shlibpath searched before the hard-coded library search path?
16668 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16670 # How to hardcode a shared library path into an executable.
16671 hardcode_action=$hardcode_action_F77
16673 # Whether we should hardcode library paths into libraries.
16674 hardcode_into_libs=$hardcode_into_libs
16676 # Flag to hardcode \$libdir into a binary during linking.
16677 # This must work even if \$libdir does not exist.
16678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16680 # If ld is used when linking, flag to hardcode \$libdir into
16681 # a binary during linking. This must work even if \$libdir does
16683 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16685 # Whether we need a single -rpath flag with a separated argument.
16686 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16688 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16689 # resulting binary.
16690 hardcode_direct=$hardcode_direct_F77
16692 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16693 # resulting binary.
16694 hardcode_minus_L=$hardcode_minus_L_F77
16696 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16697 # the resulting binary.
16698 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16700 # Set to yes if building a shared library automatically hardcodes DIR into the library
16701 # and all subsequent libraries and executables linked against it.
16702 hardcode_automatic=$hardcode_automatic_F77
16704 # Variables whose values should be saved in libtool wrapper scripts and
16705 # restored at relink time.
16706 variables_saved_for_relink="$variables_saved_for_relink"
16708 # Whether libtool must link a program against all its dependency libraries.
16709 link_all_deplibs=$link_all_deplibs_F77
16711 # Compile-time system search path for libraries
16712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16714 # Run-time system search path for libraries
16715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16717 # Fix the shell variable \$srcfile for the compiler.
16718 fix_srcfile_path=$lt_fix_srcfile_path
16720 # Set to yes if exported symbols are required.
16721 always_export_symbols=$always_export_symbols_F77
16723 # The commands to list exported symbols.
16724 export_symbols_cmds=$lt_export_symbols_cmds_F77
16726 # The commands to extract the exported symbol list from a shared archive.
16727 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16729 # Symbols that should not be listed in the preloaded symbols.
16730 exclude_expsyms=$lt_exclude_expsyms_F77
16732 # Symbols that must always be exported.
16733 include_expsyms=$lt_include_expsyms_F77
16735 # ### END LIBTOOL TAG CONFIG: $tagname
16741 # If there is no Makefile yet, we rely on a make rule to execute
16742 # `config.status --recheck' to rerun these tests and create the
16743 # libtool script then.
16744 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16745 if test -f "$ltmain_in"; then
16746 test -f Makefile && make "$ltmain"
16752 ac_cpp='$CPP $CPPFLAGS'
16753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16765 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16768 # Source file extension for Java test sources.
16771 # Object file extension for compiled Java test sources.
16775 # Code to be used in simple compile tests
16776 lt_simple_compile_test_code="class foo {}"
16778 # Code to be used in simple link tests
16779 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16783 # If no C compiler was specified, use CC.
16786 # If no C compiler flags were specified, use CFLAGS.
16787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16789 # Allow CC to be a program name with arguments.
16793 # save warnings/boilerplate of simple test code
16794 ac_outfile=conftest.$ac_objext
16795 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16797 _lt_compiler_boilerplate=`cat conftest.err`
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16803 _lt_linker_boilerplate=`cat conftest.err`
16807 # Allow CC to be a program name with arguments.
16812 for cc_temp in $compiler""; do
16814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16820 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16823 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16824 archive_cmds_need_lc_GCJ=no
16826 old_archive_cmds_GCJ=$old_archive_cmds
16829 lt_prog_compiler_no_builtin_flag_GCJ=
16831 if test "$GCC" = yes; then
16832 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16835 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 lt_cv_prog_compiler_rtti_exceptions=no
16841 ac_outfile=conftest.$ac_objext
16842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16843 lt_compiler_flag="-fno-rtti -fno-exceptions"
16844 # Insert the option either (1) after the last *FLAGS variable, or
16845 # (2) before a word containing "conftest.", or (3) at the end.
16846 # Note that $ac_compile itself does not contain backslashes and begins
16847 # with a dollar sign (not a hyphen), so the echo should work correctly.
16848 # The option is referenced via a variable to avoid confusing sed.
16849 lt_compile=`echo "$ac_compile" | $SED \
16850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16852 -e 's:$: $lt_compiler_flag:'`
16853 (eval echo "\"\$as_me:16853: $lt_compile\"" >&5)
16854 (eval "$lt_compile" 2>conftest.err)
16856 cat conftest.err >&5
16857 echo "$as_me:16857: \$? = $ac_status" >&5
16858 if (exit $ac_status) && test -s "$ac_outfile"; then
16859 # The compiler can only warn and ignore the option if not recognized
16860 # So say no if there are warnings other than the usual output.
16861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16864 lt_cv_prog_compiler_rtti_exceptions=yes
16870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16871 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16874 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16881 lt_prog_compiler_wl_GCJ=
16882 lt_prog_compiler_pic_GCJ=
16883 lt_prog_compiler_static_GCJ=
16885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16888 if test "$GCC" = yes; then
16889 lt_prog_compiler_wl_GCJ='-Wl,'
16890 lt_prog_compiler_static_GCJ='-static'
16894 # All AIX code is PIC.
16895 if test "$host_cpu" = ia64; then
16896 # AIX 5 now supports IA64 processor
16897 lt_prog_compiler_static_GCJ='-Bstatic'
16902 # FIXME: we need at least 68020 code to build shared libraries, but
16903 # adding the `-m68020' flag to GCC prevents building anything better,
16905 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16909 # PIC is the default for these OSes.
16912 mingw* | cygwin* | pw32* | os2*)
16913 # This hack is so that the source file can tell whether it is being
16914 # built for inclusion in a dll (and should export symbols for example).
16915 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16916 # (--disable-auto-import) libraries
16920 darwin* | rhapsody*)
16921 # PIC is the default on this platform
16922 # Common symbols not allowed in MH_DYLIB files
16923 lt_prog_compiler_pic_GCJ='-fno-common'
16927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16928 # Instead, we relocate shared libraries at runtime.
16932 # Just because we use GCC doesn't mean we suddenly get shared libraries
16933 # on systems that don't support them.
16934 lt_prog_compiler_can_build_shared_GCJ=no
16939 if test -d /usr/nec; then
16940 lt_prog_compiler_pic_GCJ=-Kconform_pic
16945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16946 # not for PA HP-UX.
16952 lt_prog_compiler_pic_GCJ='-fPIC'
16958 lt_prog_compiler_pic_GCJ='-fPIC'
16962 # PORTME Check for flag to pass linker flags through the system compiler.
16965 lt_prog_compiler_wl_GCJ='-Wl,'
16966 if test "$host_cpu" = ia64; then
16967 # AIX 5 now supports IA64 processor
16968 lt_prog_compiler_static_GCJ='-Bstatic'
16970 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16974 # PIC is the default on this platform
16975 # Common symbols not allowed in MH_DYLIB files
16976 case $cc_basename in
16978 lt_prog_compiler_pic_GCJ='-qnocommon'
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16984 mingw* | cygwin* | pw32* | os2*)
16985 # This hack is so that the source file can tell whether it is being
16986 # built for inclusion in a dll (and should export symbols for example).
16990 hpux9* | hpux10* | hpux11*)
16991 lt_prog_compiler_wl_GCJ='-Wl,'
16992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16993 # not for PA HP-UX.
16999 lt_prog_compiler_pic_GCJ='+Z'
17002 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17003 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17006 irix5* | irix6* | nonstopux*)
17007 lt_prog_compiler_wl_GCJ='-Wl,'
17008 # PIC (with -KPIC) is the default.
17009 lt_prog_compiler_static_GCJ='-non_shared'
17013 lt_prog_compiler_pic_GCJ='-KPIC'
17014 lt_prog_compiler_static_GCJ='-Bstatic'
17017 linux* | k*bsd*-gnu)
17018 case $cc_basename in
17020 lt_prog_compiler_wl_GCJ='-Wl,'
17021 lt_prog_compiler_pic_GCJ='-KPIC'
17022 lt_prog_compiler_static_GCJ='-static'
17024 pgcc* | pgf77* | pgf90* | pgf95*)
17025 # Portland Group compilers (*not* the Pentium gcc compiler,
17026 # which looks to be a dead project)
17027 lt_prog_compiler_wl_GCJ='-Wl,'
17028 lt_prog_compiler_pic_GCJ='-fpic'
17029 lt_prog_compiler_static_GCJ='-Bstatic'
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17033 # All Alpha code is PIC.
17034 lt_prog_compiler_static_GCJ='-non_shared'
17037 case `$CC -V 2>&1 | sed 5q` in
17040 lt_prog_compiler_pic_GCJ='-KPIC'
17041 lt_prog_compiler_static_GCJ='-Bstatic'
17042 lt_prog_compiler_wl_GCJ='-Wl,'
17045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17046 lt_prog_compiler_pic_GCJ='-KPIC'
17047 lt_prog_compiler_static_GCJ='-Bstatic'
17048 lt_prog_compiler_wl_GCJ=''
17055 osf3* | osf4* | osf5*)
17056 lt_prog_compiler_wl_GCJ='-Wl,'
17057 # All OSF/1 code is PIC.
17058 lt_prog_compiler_static_GCJ='-non_shared'
17062 lt_prog_compiler_static_GCJ='-non_shared'
17066 lt_prog_compiler_pic_GCJ='-KPIC'
17067 lt_prog_compiler_static_GCJ='-Bstatic'
17068 case $cc_basename in
17069 f77* | f90* | f95*)
17070 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17072 lt_prog_compiler_wl_GCJ='-Wl,';;
17077 lt_prog_compiler_wl_GCJ='-Qoption ld '
17078 lt_prog_compiler_pic_GCJ='-PIC'
17079 lt_prog_compiler_static_GCJ='-Bstatic'
17082 sysv4 | sysv4.2uw2* | sysv4.3*)
17083 lt_prog_compiler_wl_GCJ='-Wl,'
17084 lt_prog_compiler_pic_GCJ='-KPIC'
17085 lt_prog_compiler_static_GCJ='-Bstatic'
17089 if test -d /usr/nec ;then
17090 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17091 lt_prog_compiler_static_GCJ='-Bstatic'
17095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17096 lt_prog_compiler_wl_GCJ='-Wl,'
17097 lt_prog_compiler_pic_GCJ='-KPIC'
17098 lt_prog_compiler_static_GCJ='-Bstatic'
17102 lt_prog_compiler_wl_GCJ='-Wl,'
17103 lt_prog_compiler_can_build_shared_GCJ=no
17107 lt_prog_compiler_pic_GCJ='-pic'
17108 lt_prog_compiler_static_GCJ='-Bstatic'
17112 lt_prog_compiler_can_build_shared_GCJ=no
17117 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17118 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17121 # Check to make sure the PIC flag actually works.
17123 if test -n "$lt_prog_compiler_pic_GCJ"; then
17125 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17127 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 lt_cv_prog_compiler_pic_works_GCJ=no
17131 ac_outfile=conftest.$ac_objext
17132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17133 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17134 # Insert the option either (1) after the last *FLAGS variable, or
17135 # (2) before a word containing "conftest.", or (3) at the end.
17136 # Note that $ac_compile itself does not contain backslashes and begins
17137 # with a dollar sign (not a hyphen), so the echo should work correctly.
17138 # The option is referenced via a variable to avoid confusing sed.
17139 lt_compile=`echo "$ac_compile" | $SED \
17140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17142 -e 's:$: $lt_compiler_flag:'`
17143 (eval echo "\"\$as_me:17143: $lt_compile\"" >&5)
17144 (eval "$lt_compile" 2>conftest.err)
17146 cat conftest.err >&5
17147 echo "$as_me:17147: \$? = $ac_status" >&5
17148 if (exit $ac_status) && test -s "$ac_outfile"; then
17149 # The compiler can only warn and ignore the option if not recognized
17150 # So say no if there are warnings other than the usual output.
17151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17154 lt_cv_prog_compiler_pic_works_GCJ=yes
17160 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17161 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17163 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17164 case $lt_prog_compiler_pic_GCJ in
17166 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17169 lt_prog_compiler_pic_GCJ=
17170 lt_prog_compiler_can_build_shared_GCJ=no
17175 # For platforms which do not support PIC, -DPIC is meaningless:
17177 lt_prog_compiler_pic_GCJ=
17180 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17185 # Check to make sure the static flag actually works.
17187 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17188 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17189 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17190 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 lt_cv_prog_compiler_static_works_GCJ=no
17194 save_LDFLAGS="$LDFLAGS"
17195 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17196 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17198 # The linker can only warn and ignore the option if not recognized
17199 # So say no if there are warnings
17200 if test -s conftest.err; then
17201 # Append any errors to the config.log.
17202 cat conftest.err 1>&5
17203 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17205 if diff conftest.exp conftest.er2 >/dev/null; then
17206 lt_cv_prog_compiler_static_works_GCJ=yes
17209 lt_cv_prog_compiler_static_works_GCJ=yes
17213 LDFLAGS="$save_LDFLAGS"
17216 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17217 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17219 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17222 lt_prog_compiler_static_GCJ=
17226 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17227 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17228 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 lt_cv_prog_compiler_c_o_GCJ=no
17232 $rm -r conftest 2>/dev/null
17236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17238 lt_compiler_flag="-o out/conftest2.$ac_objext"
17239 # Insert the option either (1) after the last *FLAGS variable, or
17240 # (2) before a word containing "conftest.", or (3) at the end.
17241 # Note that $ac_compile itself does not contain backslashes and begins
17242 # with a dollar sign (not a hyphen), so the echo should work correctly.
17243 lt_compile=`echo "$ac_compile" | $SED \
17244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17246 -e 's:$: $lt_compiler_flag:'`
17247 (eval echo "\"\$as_me:17247: $lt_compile\"" >&5)
17248 (eval "$lt_compile" 2>out/conftest.err)
17250 cat out/conftest.err >&5
17251 echo "$as_me:17251: \$? = $ac_status" >&5
17252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17254 # The compiler can only warn and ignore the option if not recognized
17255 # So say no if there are warnings
17256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17259 lt_cv_prog_compiler_c_o_GCJ=yes
17264 # SGI C++ compiler will create directory out/ii_files/ for
17265 # template instantiation
17266 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17267 $rm out/* && rmdir out
17273 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17274 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17277 hard_links="nottested"
17278 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17279 # do not overwrite the value of need_locks provided by the user
17280 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17281 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17286 ln conftest.a conftest.b 2>&5 || hard_links=no
17287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17288 { echo "$as_me:$LINENO: result: $hard_links" >&5
17289 echo "${ECHO_T}$hard_links" >&6; }
17290 if test "$hard_links" = no; then
17291 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17292 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17299 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17300 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17303 allow_undefined_flag_GCJ=
17304 enable_shared_with_static_runtimes_GCJ=no
17306 archive_expsym_cmds_GCJ=
17307 old_archive_From_new_cmds_GCJ=
17308 old_archive_from_expsyms_cmds_GCJ=
17309 export_dynamic_flag_spec_GCJ=
17310 whole_archive_flag_spec_GCJ=
17311 thread_safe_flag_spec_GCJ=
17312 hardcode_libdir_flag_spec_GCJ=
17313 hardcode_libdir_flag_spec_ld_GCJ=
17314 hardcode_libdir_separator_GCJ=
17315 hardcode_direct_GCJ=no
17316 hardcode_minus_L_GCJ=no
17317 hardcode_shlibpath_var_GCJ=unsupported
17318 link_all_deplibs_GCJ=unknown
17319 hardcode_automatic_GCJ=no
17321 module_expsym_cmds_GCJ=
17322 always_export_symbols_GCJ=no
17323 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17324 # include_expsyms should be a list of space-separated symbols to be *always*
17325 # included in the symbol list
17326 include_expsyms_GCJ=
17327 # exclude_expsyms can be an extended regexp of symbols to exclude
17328 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17329 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17330 # as well as any symbol that contains `d'.
17331 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17332 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17333 # platforms (ab)use it in PIC code, but their linkers get confused if
17334 # the symbol is explicitly referenced. Since portable code cannot
17335 # rely on this symbol name, it's probably fine to never include it in
17336 # preloaded symbol tables.
17337 # Exclude shared library initialization/finalization symbols.
17338 extract_expsyms_cmds=
17339 # Just being paranoid about ensuring that cc_basename is set.
17340 for cc_temp in $compiler""; do
17342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17348 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17351 cygwin* | mingw* | pw32*)
17352 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17353 # When not using gcc, we currently assume that we are using
17354 # Microsoft Visual C++.
17355 if test "$GCC" != yes; then
17360 # we just hope/assume this is gcc and not c89 (= MSVC++)
17369 if test "$with_gnu_ld" = yes; then
17370 # If archive_cmds runs LD, not CC, wlarc should be empty
17373 # Set some defaults for GNU ld with shared library support. These
17374 # are reset later if shared libraries are not supported. Putting them
17375 # here allows them to be overridden if necessary.
17376 runpath_var=LD_RUN_PATH
17377 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17378 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17379 # ancient GNU ld didn't support --whole-archive et. al.
17380 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17381 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17383 whole_archive_flag_spec_GCJ=
17385 supports_anon_versioning=no
17386 case `$LD -v 2>/dev/null` in
17387 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17388 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17389 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17390 *\ 2.11.*) ;; # other 2.11 versions
17391 *) supports_anon_versioning=yes ;;
17394 # See if GNU ld supports shared libraries.
17397 # On AIX/PPC, the GNU linker is very broken
17398 if test "$host_cpu" != ia64; then
17402 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17403 *** to be unable to reliably create shared libraries on AIX.
17404 *** Therefore, libtool is disabling shared libraries support. If you
17405 *** really care for shared libraries, you may want to modify your PATH
17406 *** so that a non-GNU linker is found, and then restart.
17413 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)'
17414 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17415 hardcode_minus_L_GCJ=yes
17417 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17418 # that the semantics of dynamic libraries on AmigaOS, at least up
17419 # to version 4, is to share data among multiple programs linked
17420 # with the same dynamic library. Since this doesn't match the
17421 # behavior of shared libraries on other platforms, we can't use
17427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17428 allow_undefined_flag_GCJ=unsupported
17429 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17430 # support --undefined. This deserves some investigation. FIXME
17431 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17437 cygwin* | mingw* | pw32*)
17438 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17439 # as there is no search path for DLLs.
17440 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17441 allow_undefined_flag_GCJ=unsupported
17442 always_export_symbols_GCJ=no
17443 enable_shared_with_static_runtimes_GCJ=yes
17444 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17446 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17447 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17448 # If the export-symbols file already is a .def file (1st line
17449 # is EXPORTS), use it as is; otherwise, prepend...
17450 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17451 cp $export_symbols $output_objdir/$soname.def;
17453 echo EXPORTS > $output_objdir/$soname.def;
17454 cat $export_symbols >> $output_objdir/$soname.def;
17456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17463 hardcode_direct_GCJ=no
17464 hardcode_shlibpath_var_GCJ=no
17465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17466 export_dynamic_flag_spec_GCJ='${wl}-E'
17467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17468 # Instead, shared libraries are loaded at an image base (0x10000000 by
17469 # default) and relocated if they conflict, which is a slow very memory
17470 # consuming and fragmenting process. To avoid this, we pick a random,
17471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17472 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17473 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'
17474 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'
17477 gnu* | linux* | k*bsd*-gnu)
17478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17480 case $cc_basename,$host_cpu in
17481 pgcc*) # Portland Group C compiler
17482 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'
17483 tmp_addflag=' $pic_flag'
17485 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17486 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'
17487 tmp_addflag=' $pic_flag -Mnomain' ;;
17488 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17489 tmp_addflag=' -i_dynamic' ;;
17490 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17491 tmp_addflag=' -i_dynamic -nofor_main' ;;
17492 ifc* | ifort*) # Intel Fortran compiler
17493 tmp_addflag=' -nofor_main' ;;
17495 case `$CC -V 2>&1 | sed 5q` in
17496 *Sun\ C*) # Sun C 5.9
17497 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17498 tmp_sharedflag='-G' ;;
17499 *Sun\ F*) # Sun Fortran 8.3
17500 tmp_sharedflag='-G' ;;
17502 tmp_sharedflag='-shared' ;;
17504 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506 if test $supports_anon_versioning = yes; then
17507 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17509 $echo "local: *; };" >> $output_objdir/$libname.ver~
17510 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17512 link_all_deplibs_GCJ=no
17518 netbsd* | netbsdelf*-gnu)
17519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17520 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17523 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17524 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17529 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17533 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17534 *** create shared libraries on Solaris systems. Therefore, libtool
17535 *** is disabling shared libraries support. We urge you to upgrade GNU
17536 *** binutils to release 2.9.1 or newer. Another option is to modify
17537 *** your PATH or compiler configuration so that the native linker is
17538 *** used, and then restart.
17541 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17550 case `$LD -v 2>&1` in
17551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17555 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17556 *** reliably create shared libraries on SCO systems. Therefore, libtool
17557 *** is disabling shared libraries support. We urge you to upgrade GNU
17558 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17559 *** your PATH or compiler configuration so that the native linker is
17560 *** used, and then restart.
17565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17566 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17567 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17568 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17577 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17579 hardcode_direct_GCJ=yes
17580 hardcode_shlibpath_var_GCJ=no
17584 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17585 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17586 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17593 if test "$ld_shlibs_GCJ" = no; then
17595 hardcode_libdir_flag_spec_GCJ=
17596 export_dynamic_flag_spec_GCJ=
17597 whole_archive_flag_spec_GCJ=
17600 # PORTME fill in a description of your system's linker (not GNU ld)
17603 allow_undefined_flag_GCJ=unsupported
17604 always_export_symbols_GCJ=yes
17605 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'
17606 # Note: this linker hardcodes the directories in LIBPATH if there
17607 # are no directories specified by -L.
17608 hardcode_minus_L_GCJ=yes
17609 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17610 # Neither direct hardcoding nor static linking is supported with a
17612 hardcode_direct_GCJ=unsupported
17617 if test "$host_cpu" = ia64; then
17618 # On IA64, the linker does run time linking by default, so we don't
17619 # have to do anything special.
17620 aix_use_runtimelinking=no
17621 exp_sym_flag='-Bexport'
17624 # If we're using GNU nm, then we don't want the "-C" option.
17625 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17626 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17627 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'
17629 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'
17631 aix_use_runtimelinking=no
17633 # Test if we are trying to use run time linking or normal
17634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17635 # need to do runtime linking.
17636 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17637 for ld_flag in $LDFLAGS; do
17638 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17639 aix_use_runtimelinking=yes
17646 exp_sym_flag='-bexport'
17647 no_entry_flag='-bnoentry'
17650 # When large executables or shared objects are built, AIX ld can
17651 # have problems creating the table of contents. If linking a library
17652 # or program results in "error TOC overflow" add -mminimal-toc to
17653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17656 archive_cmds_GCJ=''
17657 hardcode_direct_GCJ=yes
17658 hardcode_libdir_separator_GCJ=':'
17659 link_all_deplibs_GCJ=yes
17661 if test "$GCC" = yes; then
17662 case $host_os in aix4.[012]|aix4.[012].*)
17663 # We only want to do this on AIX 4.2 and lower, the check
17664 # below for broken collect2 doesn't work under 4.3+
17665 collect2name=`${CC} -print-prog-name=collect2`
17666 if test -f "$collect2name" && \
17667 strings "$collect2name" | grep resolve_lib_name >/dev/null
17669 # We have reworked collect2
17672 # We have old collect2
17673 hardcode_direct_GCJ=unsupported
17674 # It fails to find uninstalled libraries when the uninstalled
17675 # path is not listed in the libpath. Setting hardcode_minus_L
17676 # to unsupported forces relinking
17677 hardcode_minus_L_GCJ=yes
17678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679 hardcode_libdir_separator_GCJ=
17683 shared_flag='-shared'
17684 if test "$aix_use_runtimelinking" = yes; then
17685 shared_flag="$shared_flag "'${wl}-G'
17689 if test "$host_cpu" = ia64; then
17690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17691 # chokes on -Wl,-G. The following line is correct:
17694 if test "$aix_use_runtimelinking" = yes; then
17695 shared_flag='${wl}-G'
17697 shared_flag='${wl}-bM:SRE'
17702 # It seems that -bexpall does not export symbols beginning with
17703 # underscore (_), so it is better to generate a list of symbols to export.
17704 always_export_symbols_GCJ=yes
17705 if test "$aix_use_runtimelinking" = yes; then
17706 # Warning - without using the other runtime loading flags (-brtl),
17707 # -berok will link without error, but may produce a broken library.
17708 allow_undefined_flag_GCJ='-berok'
17709 # Determine the default libpath from the value encoded in an empty executable.
17710 cat >conftest.$ac_ext <<_ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest$ac_exeext &&
17742 $as_test_x conftest$ac_exeext; then
17744 lt_aix_libpath_sed='
17745 /Import File Strings/,/^$/ {
17751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17752 # Check for a 64-bit object if we didn't find anything.
17753 if test -z "$aix_libpath"; then
17754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764 conftest$ac_exeext conftest.$ac_ext
17765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17767 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17768 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17770 if test "$host_cpu" = ia64; then
17771 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17772 allow_undefined_flag_GCJ="-z nodefs"
17773 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17775 # Determine the default libpath from the value encoded in an empty executable.
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_link") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest$ac_exeext &&
17808 $as_test_x conftest$ac_exeext; then
17810 lt_aix_libpath_sed='
17811 /Import File Strings/,/^$/ {
17817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17818 # Check for a 64-bit object if we didn't find anything.
17819 if test -z "$aix_libpath"; then
17820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830 conftest$ac_exeext conftest.$ac_ext
17831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17833 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17834 # Warning - without using the other run time loading flags,
17835 # -berok will link without error, but may produce a broken library.
17836 no_undefined_flag_GCJ=' ${wl}-bernotok'
17837 allow_undefined_flag_GCJ=' ${wl}-berok'
17838 # Exported symbols can be pulled into shared objects from archives
17839 whole_archive_flag_spec_GCJ='$convenience'
17840 archive_cmds_need_lc_GCJ=yes
17841 # This is similar to how AIX traditionally builds its shared libraries.
17842 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'
17848 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)'
17849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17850 hardcode_minus_L_GCJ=yes
17851 # see comment about different semantics on the GNU ld section
17856 export_dynamic_flag_spec_GCJ=-rdynamic
17859 cygwin* | mingw* | pw32*)
17860 # When not using gcc, we currently assume that we are using
17861 # Microsoft Visual C++.
17862 # hardcode_libdir_flag_spec is actually meaningless, as there is
17863 # no search path for DLLs.
17864 hardcode_libdir_flag_spec_GCJ=' '
17865 allow_undefined_flag_GCJ=unsupported
17866 # Tell ltmain to make .lib files, not .a files.
17868 # Tell ltmain to make .dll files, not .so files.
17870 # FIXME: Setting linknames here is a bad hack.
17871 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17872 # The linker will automatically build a .lib file if we build a DLL.
17873 old_archive_From_new_cmds_GCJ='true'
17874 # FIXME: Should let the user specify the lib program.
17875 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17876 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17877 enable_shared_with_static_runtimes_GCJ=yes
17880 darwin* | rhapsody*)
17882 rhapsody* | darwin1.[012])
17883 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17886 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17887 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17889 case ${MACOSX_DEPLOYMENT_TARGET} in
17891 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17894 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17900 archive_cmds_need_lc_GCJ=no
17901 hardcode_direct_GCJ=no
17902 hardcode_automatic_GCJ=yes
17903 hardcode_shlibpath_var_GCJ=unsupported
17904 whole_archive_flag_spec_GCJ=''
17905 link_all_deplibs_GCJ=yes
17906 if test "$GCC" = yes ; then
17907 output_verbose_link_cmd='echo'
17908 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17909 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17910 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17911 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17913 case $cc_basename in
17915 output_verbose_link_cmd='echo'
17916 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17917 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17919 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17920 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17932 hardcode_shlibpath_var_GCJ=no
17939 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17940 # support. Future versions do this automatically, but an explicit c++rt0.o
17941 # does not break anything, and helps significantly (at the cost of a little
17944 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17945 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17946 hardcode_direct_GCJ=yes
17947 hardcode_shlibpath_var_GCJ=no
17950 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17952 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17953 hardcode_direct_GCJ=yes
17954 hardcode_minus_L_GCJ=yes
17955 hardcode_shlibpath_var_GCJ=no
17958 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17959 freebsd* | dragonfly*)
17960 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17961 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17962 hardcode_direct_GCJ=yes
17963 hardcode_shlibpath_var_GCJ=no
17967 if test "$GCC" = yes; then
17968 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'
17970 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'
17972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17973 hardcode_libdir_separator_GCJ=:
17974 hardcode_direct_GCJ=yes
17976 # hardcode_minus_L: Not really in the search PATH,
17977 # but as the default location of the library.
17978 hardcode_minus_L_GCJ=yes
17979 export_dynamic_flag_spec_GCJ='${wl}-E'
17983 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17984 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17986 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17988 if test "$with_gnu_ld" = no; then
17989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17990 hardcode_libdir_separator_GCJ=:
17992 hardcode_direct_GCJ=yes
17993 export_dynamic_flag_spec_GCJ='${wl}-E'
17995 # hardcode_minus_L: Not really in the search PATH,
17996 # but as the default location of the library.
17997 hardcode_minus_L_GCJ=yes
18002 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18005 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18008 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18017 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18020 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18023 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18027 if test "$with_gnu_ld" = no; then
18028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18029 hardcode_libdir_separator_GCJ=:
18033 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18034 hardcode_direct_GCJ=no
18035 hardcode_shlibpath_var_GCJ=no
18038 hardcode_direct_GCJ=yes
18039 export_dynamic_flag_spec_GCJ='${wl}-E'
18041 # hardcode_minus_L: Not really in the search PATH,
18042 # but as the default location of the library.
18043 hardcode_minus_L_GCJ=yes
18049 irix5* | irix6* | nonstopux*)
18050 if test "$GCC" = yes; then
18051 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'
18053 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'
18054 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18056 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18057 hardcode_libdir_separator_GCJ=:
18058 link_all_deplibs_GCJ=yes
18061 netbsd* | netbsdelf*-gnu)
18062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18063 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18065 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18067 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18068 hardcode_direct_GCJ=yes
18069 hardcode_shlibpath_var_GCJ=no
18073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18074 hardcode_direct_GCJ=yes
18075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18076 hardcode_libdir_separator_GCJ=:
18077 hardcode_shlibpath_var_GCJ=no
18081 if test -f /usr/libexec/ld.so; then
18082 hardcode_direct_GCJ=yes
18083 hardcode_shlibpath_var_GCJ=no
18084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18085 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18086 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18088 export_dynamic_flag_spec_GCJ='${wl}-E'
18091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18092 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18093 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18096 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18107 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18108 hardcode_minus_L_GCJ=yes
18109 allow_undefined_flag_GCJ=unsupported
18110 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'
18111 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18115 if test "$GCC" = yes; then
18116 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18117 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'
18119 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18120 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'
18122 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18123 hardcode_libdir_separator_GCJ=:
18126 osf4* | osf5*) # as osf3* with the addition of -msym flag
18127 if test "$GCC" = yes; then
18128 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18129 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'
18130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18132 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18133 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'
18134 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~
18135 $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'
18137 # Both c and cxx compiler support -rpath directly
18138 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18140 hardcode_libdir_separator_GCJ=:
18144 no_undefined_flag_GCJ=' -z text'
18145 if test "$GCC" = yes; then
18147 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18149 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18152 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18157 hardcode_shlibpath_var_GCJ=no
18159 solaris2.[0-5] | solaris2.[0-5].*) ;;
18161 # The compiler driver will combine and reorder linker options,
18162 # but understands `-z linker_flag'. GCC discards it without `$wl',
18163 # but is careful enough not to reorder.
18164 # Supported since Solaris 2.6 (maybe 2.5.1?)
18165 if test "$GCC" = yes; then
18166 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18168 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18172 link_all_deplibs_GCJ=yes
18176 if test "x$host_vendor" = xsequent; then
18177 # Use $CC to link under sequent, because it throws in some extra .o
18178 # files that make .init and .fini sections work.
18179 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18181 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18183 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18184 hardcode_direct_GCJ=yes
18185 hardcode_minus_L_GCJ=yes
18186 hardcode_shlibpath_var_GCJ=no
18190 case $host_vendor in
18192 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18193 hardcode_direct_GCJ=yes # is this really true???
18196 ## LD is ld it makes a PLAMLIB
18197 ## CC just makes a GrossModule.
18198 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18199 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18200 hardcode_direct_GCJ=no
18203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18207 runpath_var='LD_RUN_PATH'
18208 hardcode_shlibpath_var_GCJ=no
18212 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18213 hardcode_shlibpath_var_GCJ=no
18214 export_dynamic_flag_spec_GCJ='-Bexport'
18218 if test -d /usr/nec; then
18219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220 hardcode_shlibpath_var_GCJ=no
18221 runpath_var=LD_RUN_PATH
18222 hardcode_runpath_var=yes
18227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18228 no_undefined_flag_GCJ='${wl}-z,text'
18229 archive_cmds_need_lc_GCJ=no
18230 hardcode_shlibpath_var_GCJ=no
18231 runpath_var='LD_RUN_PATH'
18233 if test "$GCC" = yes; then
18234 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18235 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18237 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18238 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18242 sysv5* | sco3.2v5* | sco5v6*)
18243 # Note: We can NOT use -z defs as we might desire, because we do not
18244 # link with -lc, and that would cause any symbols used from libc to
18245 # always be unresolved, which means just about no library would
18246 # ever link correctly. If we're not using GNU ld we use -z text
18247 # though, which does catch some bad symbols but isn't as heavy-handed
18249 no_undefined_flag_GCJ='${wl}-z,text'
18250 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18251 archive_cmds_need_lc_GCJ=no
18252 hardcode_shlibpath_var_GCJ=no
18253 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18254 hardcode_libdir_separator_GCJ=':'
18255 link_all_deplibs_GCJ=yes
18256 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18257 runpath_var='LD_RUN_PATH'
18259 if test "$GCC" = yes; then
18260 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18261 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18263 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18264 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18271 hardcode_shlibpath_var_GCJ=no
18280 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18281 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18282 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18285 # Do we need to explicitly link libc?
18287 case "x$archive_cmds_need_lc_GCJ" in
18289 # Assume -lc should be added
18290 archive_cmds_need_lc_GCJ=yes
18292 if test "$enable_shared" = yes && test "$GCC" = yes; then
18293 case $archive_cmds_GCJ in
18295 # FIXME: we may have to deal with multi-command sequences.
18298 # Test whether the compiler implicitly links with -lc since on some
18299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18300 # to ld, don't add -lc before -lgcc.
18301 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307 (eval $ac_compile) 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } 2>conftest.err; then
18313 libobjs=conftest.$ac_objext
18315 wl=$lt_prog_compiler_wl_GCJ
18316 pic_flag=$lt_prog_compiler_pic_GCJ
18322 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18323 allow_undefined_flag_GCJ=
18324 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18325 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }
18330 archive_cmds_need_lc_GCJ=no
18332 archive_cmds_need_lc_GCJ=yes
18334 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18336 cat conftest.err 1>&5
18339 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18340 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18347 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18349 library_names_spec=
18350 libname_spec='lib$name'
18354 postuninstall_cmds=
18358 shlibpath_overrides_runpath=unknown
18360 dynamic_linker="$host_os ld.so"
18361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18363 need_lib_prefix=unknown
18364 hardcode_into_libs=no
18366 # when you set need_version to no, make sure it does not cause -set_version
18367 # flags to be left without arguments
18368 need_version=unknown
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18374 shlibpath_var=LIBPATH
18376 # AIX 3 has no versioning support, so we append a major version to the name.
18377 soname_spec='${libname}${release}${shared_ext}$major'
18384 hardcode_into_libs=yes
18385 if test "$host_cpu" = ia64; then
18386 # AIX 5 supports IA64
18387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18388 shlibpath_var=LD_LIBRARY_PATH
18390 # With GCC up to 2.95.x, collect2 would create an import file
18391 # for dependence libraries. The import file would start with
18392 # the line `#! .'. This would cause the generated library to
18393 # depend on `.', always an invalid library. This was fixed in
18394 # development snapshots of GCC prior to 3.0.
18396 aix4 | aix4.[01] | aix4.[01].*)
18397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18399 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18402 can_build_shared=no
18406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18407 # soname into executable. Probably we can add versioning support to
18408 # collect2, so additional links can be useful in future.
18409 if test "$aix_use_runtimelinking" = yes; then
18410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18411 # instead of lib<name>.a to let people know that these are not
18412 # typical AIX shared libraries.
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18415 # We preserve .a as extension for shared libraries through AIX4.2
18416 # and later when we are not doing run time linking.
18417 library_names_spec='${libname}${release}.a $libname.a'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18420 shlibpath_var=LIBPATH
18425 library_names_spec='$libname.ixlibrary $libname.a'
18426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18427 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'
18431 library_names_spec='${libname}${shared_ext}'
18432 dynamic_linker="$host_os ld.so"
18433 shlibpath_var=LIBRARY_PATH
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440 soname_spec='${libname}${release}${shared_ext}$major'
18441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18442 shlibpath_var=LD_LIBRARY_PATH
18443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18445 # the default ld.so.conf also contains /usr/contrib/lib and
18446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18447 # libtool to hard-code these into programs
18450 cygwin* | mingw* | pw32*)
18451 version_type=windows
18456 case $GCC,$host_os in
18457 yes,cygwin* | yes,mingw* | yes,pw32*)
18458 library_names_spec='$libname.dll.a'
18459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18460 postinstall_cmds='base_file=`basename \${file}`~
18461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18462 dldir=$destdir/`dirname \$dlpath`~
18463 test -d \$dldir || mkdir -p \$dldir~
18464 $install_prog $dir/$dlname \$dldir/$dlname~
18465 chmod a+x \$dldir/$dlname'
18466 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18467 dlpath=$dir/\$dldll~
18469 shlibpath_overrides_runpath=yes
18473 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18474 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18475 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18478 # MinGW DLLs use traditional 'lib' prefix
18479 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18480 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18481 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18482 # It is most probably a Windows format PATH printed by
18483 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18484 # path with ; separators, and with drive letters. We can handle the
18485 # drive letters (cygwin fileutils understands them), so leave them,
18486 # especially as we might pass files found there to a mingw objdump,
18487 # which wouldn't understand a cygwinified path. Ahh.
18488 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18494 # pw32 DLLs use 'pw' prefix rather than 'lib'
18495 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18504 dynamic_linker='Win32 ld.exe'
18505 # FIXME: first we should search . and the directory the executable is in
18509 darwin* | rhapsody*)
18510 dynamic_linker="$host_os dyld"
18511 version_type=darwin
18514 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18515 soname_spec='${libname}${release}${major}$shared_ext'
18516 shlibpath_overrides_runpath=yes
18517 shlibpath_var=DYLD_LIBRARY_PATH
18518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18528 soname_spec='${libname}${release}${shared_ext}$major'
18529 shlibpath_var=LD_LIBRARY_PATH
18536 freebsd* | dragonfly*)
18537 # DragonFly does not have aout. When/if they implement a new
18538 # versioning mechanism, adjust this.
18539 if test -x /usr/bin/objformat; then
18540 objformat=`/usr/bin/objformat`
18543 freebsd[123]*) objformat=aout ;;
18544 *) objformat=elf ;;
18547 version_type=freebsd-$objformat
18548 case $version_type in
18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18559 shlibpath_var=LD_LIBRARY_PATH
18562 shlibpath_overrides_runpath=yes
18564 freebsd3.[01]* | freebsdelf3.[01]*)
18565 shlibpath_overrides_runpath=yes
18566 hardcode_into_libs=yes
18568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18570 shlibpath_overrides_runpath=no
18571 hardcode_into_libs=yes
18573 *) # from 4.6 on, and DragonFly
18574 shlibpath_overrides_runpath=yes
18575 hardcode_into_libs=yes
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18585 soname_spec='${libname}${release}${shared_ext}$major'
18586 shlibpath_var=LD_LIBRARY_PATH
18587 hardcode_into_libs=yes
18590 hpux9* | hpux10* | hpux11*)
18591 # Give a soname corresponding to the major version so that dld.sl refuses to
18592 # link against other versions.
18599 hardcode_into_libs=yes
18600 dynamic_linker="$host_os dld.so"
18601 shlibpath_var=LD_LIBRARY_PATH
18602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604 soname_spec='${libname}${release}${shared_ext}$major'
18605 if test "X$HPUX_IA64_MODE" = X32; then
18606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18614 hardcode_into_libs=yes
18615 dynamic_linker="$host_os dld.sl"
18616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18625 dynamic_linker="$host_os dld.sl"
18626 shlibpath_var=SHLIB_PATH
18627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18632 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18633 postinstall_cmds='chmod 555 $lib'
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18643 shlibpath_var=LD_LIBRARY_PATH
18644 shlibpath_overrides_runpath=no
18645 hardcode_into_libs=yes
18648 irix5* | irix6* | nonstopux*)
18650 nonstopux*) version_type=nonstopux ;;
18652 if test "$lt_cv_prog_gnu_ld" = yes; then
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18663 irix5* | nonstopux*)
18664 libsuff= shlibsuff=
18667 case $LD in # libtool.m4 will add one of these switches to LD
18668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18669 libsuff= shlibsuff= libmagic=32-bit;;
18670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18671 libsuff=32 shlibsuff=N32 libmagic=N32;;
18672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18674 *) libsuff= shlibsuff= libmagic=never-match;;
18678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18679 shlibpath_overrides_runpath=no
18680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18682 hardcode_into_libs=yes
18685 # No shared lib support for Linux oldld, aout, or coff.
18686 linux*oldld* | linux*aout* | linux*coff*)
18690 # This must be Linux ELF.
18691 linux* | k*bsd*-gnu)
18695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18696 soname_spec='${libname}${release}${shared_ext}$major'
18697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 shlibpath_overrides_runpath=no
18700 # This implies no fast_install, which is unacceptable.
18701 # Some rework will be needed to allow for fast_install
18702 # before this can be enabled.
18703 hardcode_into_libs=yes
18705 # Append ld.so.conf contents to the search path
18706 if test -f /etc/ld.so.conf; then
18707 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18708 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18711 # We used to test for /lib/ld.so.1 and disable shared libraries on
18712 # powerpc, because MkLinux only supported shared libraries with the
18713 # GNU dynamic linker. Since this was broken with cross compilers,
18714 # most powerpc-linux boxes support dynamic linking these days and
18715 # people can always --disable-shared, the test was removed, and we
18716 # assume the GNU/Linux dynamic linker is in use.
18717 dynamic_linker='GNU/Linux ld.so'
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 shlibpath_var=LD_LIBRARY_PATH
18727 shlibpath_overrides_runpath=no
18728 hardcode_into_libs=yes
18729 dynamic_linker='NetBSD ld.elf_so'
18736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18739 dynamic_linker='NetBSD (a.out) ld.so'
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18742 soname_spec='${libname}${release}${shared_ext}$major'
18743 dynamic_linker='NetBSD ld.elf_so'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 shlibpath_overrides_runpath=yes
18747 hardcode_into_libs=yes
18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=yes
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762 soname_spec='${libname}${release}${shared_ext}$major'
18763 shlibpath_var=LD_LIBRARY_PATH
18764 shlibpath_overrides_runpath=yes
18769 sys_lib_dlsearch_path_spec="/usr/lib"
18771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18773 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18774 *) need_version=no ;;
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18781 openbsd2.[89] | openbsd2.[89].*)
18782 shlibpath_overrides_runpath=no
18785 shlibpath_overrides_runpath=yes
18789 shlibpath_overrides_runpath=yes
18794 libname_spec='$name'
18797 library_names_spec='$libname${shared_ext} $libname.a'
18798 dynamic_linker='OS/2 ld.exe'
18799 shlibpath_var=LIBPATH
18802 osf3* | osf4* | osf5*)
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808 shlibpath_var=LD_LIBRARY_PATH
18809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 shlibpath_overrides_runpath=yes
18825 hardcode_into_libs=yes
18826 # ldd complains unless libraries are executable
18827 postinstall_cmds='chmod +x $lib'
18832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18833 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 shlibpath_overrides_runpath=yes
18836 if test "$with_gnu_ld" = yes; then
18844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845 soname_spec='${libname}${release}${shared_ext}$major'
18846 shlibpath_var=LD_LIBRARY_PATH
18847 case $host_vendor in
18849 shlibpath_overrides_runpath=no
18851 export_dynamic_flag_spec='${wl}-Blargedynsym'
18852 runpath_var=LD_RUN_PATH
18860 shlibpath_overrides_runpath=no
18861 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18867 if test -d /usr/nec ;then
18869 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18870 soname_spec='$libname${shared_ext}.$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18876 version_type=freebsd-elf
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18880 soname_spec='${libname}${release}${shared_ext}$major'
18881 shlibpath_var=LD_LIBRARY_PATH
18882 hardcode_into_libs=yes
18883 if test "$with_gnu_ld" = yes; then
18884 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18885 shlibpath_overrides_runpath=no
18887 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18888 shlibpath_overrides_runpath=yes
18891 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18895 sys_lib_dlsearch_path_spec='/usr/lib'
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 shlibpath_var=LD_LIBRARY_PATH
18909 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18910 echo "${ECHO_T}$dynamic_linker" >&6; }
18911 test "$dynamic_linker" = no && can_build_shared=no
18913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18919 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18920 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18926 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18929 if test "$GCC" = yes; then
18930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18933 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18934 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18935 hardcode_action_GCJ=
18936 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18937 test -n "$runpath_var_GCJ" || \
18938 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18940 # We can hardcode non-existant directories.
18941 if test "$hardcode_direct_GCJ" != no &&
18942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18943 # have to relink, otherwise we might link with an installed library
18944 # when we should be linking with a yet-to-be-installed one
18945 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18946 test "$hardcode_minus_L_GCJ" != no; then
18947 # Linking always hardcodes the temporary library directory.
18948 hardcode_action_GCJ=relink
18950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18951 hardcode_action_GCJ=immediate
18954 # We cannot hardcode anything, or else we can only hardcode existing
18956 hardcode_action_GCJ=unsupported
18958 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18959 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18961 if test "$hardcode_action_GCJ" = relink; then
18962 # Fast installation is not supported
18963 enable_fast_install=no
18964 elif test "$shlibpath_overrides_runpath" = yes ||
18965 test "$enable_shared" = no; then
18966 # Fast installation is not necessary
18967 enable_fast_install=needless
18971 # The else clause should only fire when bootstrapping the
18972 # libtool distribution, otherwise you forgot to ship ltmain.sh
18973 # with your package, and you will get complaints that there are
18974 # no rules to generate ltmain.sh.
18975 if test -f "$ltmain"; then
18976 # See if we are running on zsh, and set the options which allow our commands through
18977 # without removal of \ escapes.
18978 if test -n "${ZSH_VERSION+set}" ; then
18979 setopt NO_GLOB_SUBST
18981 # Now quote all the things that may contain metacharacters while being
18982 # careful not to overquote the AC_SUBSTed values. We take copies of the
18983 # variables and quote the copies for generation of the libtool script.
18984 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18986 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18987 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18988 deplibs_check_method reload_flag reload_cmds need_locks \
18989 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18990 lt_cv_sys_global_symbol_to_c_name_address \
18991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18992 old_postinstall_cmds old_postuninstall_cmds \
18996 lt_prog_compiler_wl_GCJ \
18997 lt_prog_compiler_pic_GCJ \
18998 lt_prog_compiler_static_GCJ \
18999 lt_prog_compiler_no_builtin_flag_GCJ \
19000 export_dynamic_flag_spec_GCJ \
19001 thread_safe_flag_spec_GCJ \
19002 whole_archive_flag_spec_GCJ \
19003 enable_shared_with_static_runtimes_GCJ \
19004 old_archive_cmds_GCJ \
19005 old_archive_from_new_cmds_GCJ \
19006 predep_objects_GCJ \
19007 postdep_objects_GCJ \
19010 compiler_lib_search_path_GCJ \
19011 compiler_lib_search_dirs_GCJ \
19013 archive_expsym_cmds_GCJ \
19014 postinstall_cmds_GCJ \
19015 postuninstall_cmds_GCJ \
19016 old_archive_from_expsyms_cmds_GCJ \
19017 allow_undefined_flag_GCJ \
19018 no_undefined_flag_GCJ \
19019 export_symbols_cmds_GCJ \
19020 hardcode_libdir_flag_spec_GCJ \
19021 hardcode_libdir_flag_spec_ld_GCJ \
19022 hardcode_libdir_separator_GCJ \
19023 hardcode_automatic_GCJ \
19025 module_expsym_cmds_GCJ \
19026 lt_cv_prog_compiler_c_o_GCJ \
19027 fix_srcfile_path_GCJ \
19028 exclude_expsyms_GCJ \
19029 include_expsyms_GCJ; do
19032 old_archive_cmds_GCJ | \
19033 old_archive_from_new_cmds_GCJ | \
19034 archive_cmds_GCJ | \
19035 archive_expsym_cmds_GCJ | \
19036 module_cmds_GCJ | \
19037 module_expsym_cmds_GCJ | \
19038 old_archive_from_expsyms_cmds_GCJ | \
19039 export_symbols_cmds_GCJ | \
19040 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19041 postinstall_cmds | postuninstall_cmds | \
19042 old_postinstall_cmds | old_postuninstall_cmds | \
19043 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19044 # Double-quote double-evaled strings.
19045 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19054 *'\$0 --fallback-echo"')
19055 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19061 cat <<__EOF__ >> "$cfgfile"
19062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19066 # Shell to use when invoking shell scripts.
19069 # Whether or not to build shared libraries.
19070 build_libtool_libs=$enable_shared
19072 # Whether or not to build static libraries.
19073 build_old_libs=$enable_static
19075 # Whether or not to add -lc for building shared libraries.
19076 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19078 # Whether or not to disallow shared libs when runtime libs are static
19079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19081 # Whether or not to optimize for fast installation.
19082 fast_install=$enable_fast_install
19085 host_alias=$host_alias
19089 # The build system.
19090 build_alias=$build_alias
19094 # An echo program that does not interpret backslashes.
19099 AR_FLAGS=$lt_AR_FLAGS
19104 # LTCC compiler flags.
19105 LTCFLAGS=$lt_LTCFLAGS
19107 # A language-specific compiler.
19108 CC=$lt_compiler_GCJ
19110 # Is the compiler the GNU C compiler?
19116 # The linker used to build libraries.
19119 # Whether we need hard or soft links.
19122 # A BSD-compatible nm program.
19125 # A symbol stripping program
19128 # Used to examine libraries when file_magic_cmd begins "file"
19129 MAGIC_CMD=$MAGIC_CMD
19131 # Used on cygwin: DLL creation program.
19134 # Used on cygwin: object dumper.
19137 # Used on cygwin: assembler.
19140 # The name of the directory that contains temporary libtool files.
19143 # How to create reloadable object files.
19144 reload_flag=$lt_reload_flag
19145 reload_cmds=$lt_reload_cmds
19147 # How to pass a linker flag through the compiler.
19148 wl=$lt_lt_prog_compiler_wl_GCJ
19150 # Object file suffix (normally "o").
19151 objext="$ac_objext"
19153 # Old archive suffix (normally "a").
19156 # Shared library suffix (normally ".so").
19157 shrext_cmds='$shrext_cmds'
19159 # Executable file suffix (normally "").
19162 # Additional compiler flags for building library objects.
19163 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19166 # What is the maximum length of a command?
19167 max_cmd_len=$lt_cv_sys_max_cmd_len
19169 # Does compiler simultaneously support -c and -o options?
19170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19172 # Must we lock files when doing compilation?
19173 need_locks=$lt_need_locks
19175 # Do we need the lib prefix for modules?
19176 need_lib_prefix=$need_lib_prefix
19178 # Do we need a version for libraries?
19179 need_version=$need_version
19181 # Whether dlopen is supported.
19182 dlopen_support=$enable_dlopen
19184 # Whether dlopen of programs is supported.
19185 dlopen_self=$enable_dlopen_self
19187 # Whether dlopen of statically linked programs is supported.
19188 dlopen_self_static=$enable_dlopen_self_static
19190 # Compiler flag to prevent dynamic linking.
19191 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19193 # Compiler flag to turn off builtin functions.
19194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19196 # Compiler flag to allow reflexive dlopens.
19197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19199 # Compiler flag to generate shared objects directly from archives.
19200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19202 # Compiler flag to generate thread-safe objects.
19203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19205 # Library versioning type.
19206 version_type=$version_type
19208 # Format of library name prefix.
19209 libname_spec=$lt_libname_spec
19211 # List of archive names. First name is the real one, the rest are links.
19212 # The last name is the one that the linker finds with -lNAME.
19213 library_names_spec=$lt_library_names_spec
19215 # The coded name of the library, if different from the real name.
19216 soname_spec=$lt_soname_spec
19218 # Commands used to build and install an old-style archive.
19220 old_archive_cmds=$lt_old_archive_cmds_GCJ
19221 old_postinstall_cmds=$lt_old_postinstall_cmds
19222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19224 # Create an old-style archive from a shared archive.
19225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19227 # Create a temporary old-style archive to link instead of a shared archive.
19228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19230 # Commands used to build and install a shared archive.
19231 archive_cmds=$lt_archive_cmds_GCJ
19232 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19233 postinstall_cmds=$lt_postinstall_cmds
19234 postuninstall_cmds=$lt_postuninstall_cmds
19236 # Commands used to build a loadable module (assumed same as above if empty)
19237 module_cmds=$lt_module_cmds_GCJ
19238 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19240 # Commands to strip libraries.
19241 old_striplib=$lt_old_striplib
19242 striplib=$lt_striplib
19244 # Dependencies to place before the objects being linked to create a
19246 predep_objects=$lt_predep_objects_GCJ
19248 # Dependencies to place after the objects being linked to create a
19250 postdep_objects=$lt_postdep_objects_GCJ
19252 # Dependencies to place before the objects being linked to create a
19254 predeps=$lt_predeps_GCJ
19256 # Dependencies to place after the objects being linked to create a
19258 postdeps=$lt_postdeps_GCJ
19260 # The directories searched by this compiler when creating a shared
19262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19264 # The library search path used internally by the compiler when linking
19265 # a shared library.
19266 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19268 # Method to check whether dependent libraries are shared objects.
19269 deplibs_check_method=$lt_deplibs_check_method
19271 # Command to use when deplibs_check_method == file_magic.
19272 file_magic_cmd=$lt_file_magic_cmd
19274 # Flag that allows shared libraries with undefined symbols to be built.
19275 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19277 # Flag that forces no undefined symbols.
19278 no_undefined_flag=$lt_no_undefined_flag_GCJ
19280 # Commands used to finish a libtool library installation in a directory.
19281 finish_cmds=$lt_finish_cmds
19283 # Same as above, but a single script fragment to be evaled but not shown.
19284 finish_eval=$lt_finish_eval
19286 # Take the output of nm and produce a listing of raw symbols and C names.
19287 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19289 # Transform the output of nm in a proper C declaration
19290 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19292 # Transform the output of nm in a C name address pair
19293 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19295 # This is the shared library runtime path variable.
19296 runpath_var=$runpath_var
19298 # This is the shared library path variable.
19299 shlibpath_var=$shlibpath_var
19301 # Is shlibpath searched before the hard-coded library search path?
19302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19304 # How to hardcode a shared library path into an executable.
19305 hardcode_action=$hardcode_action_GCJ
19307 # Whether we should hardcode library paths into libraries.
19308 hardcode_into_libs=$hardcode_into_libs
19310 # Flag to hardcode \$libdir into a binary during linking.
19311 # This must work even if \$libdir does not exist.
19312 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19314 # If ld is used when linking, flag to hardcode \$libdir into
19315 # a binary during linking. This must work even if \$libdir does
19317 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19319 # Whether we need a single -rpath flag with a separated argument.
19320 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19322 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19323 # resulting binary.
19324 hardcode_direct=$hardcode_direct_GCJ
19326 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19327 # resulting binary.
19328 hardcode_minus_L=$hardcode_minus_L_GCJ
19330 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19331 # the resulting binary.
19332 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19334 # Set to yes if building a shared library automatically hardcodes DIR into the library
19335 # and all subsequent libraries and executables linked against it.
19336 hardcode_automatic=$hardcode_automatic_GCJ
19338 # Variables whose values should be saved in libtool wrapper scripts and
19339 # restored at relink time.
19340 variables_saved_for_relink="$variables_saved_for_relink"
19342 # Whether libtool must link a program against all its dependency libraries.
19343 link_all_deplibs=$link_all_deplibs_GCJ
19345 # Compile-time system search path for libraries
19346 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19348 # Run-time system search path for libraries
19349 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19351 # Fix the shell variable \$srcfile for the compiler.
19352 fix_srcfile_path=$lt_fix_srcfile_path
19354 # Set to yes if exported symbols are required.
19355 always_export_symbols=$always_export_symbols_GCJ
19357 # The commands to list exported symbols.
19358 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19360 # The commands to extract the exported symbol list from a shared archive.
19361 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19363 # Symbols that should not be listed in the preloaded symbols.
19364 exclude_expsyms=$lt_exclude_expsyms_GCJ
19366 # Symbols that must always be exported.
19367 include_expsyms=$lt_include_expsyms_GCJ
19369 # ### END LIBTOOL TAG CONFIG: $tagname
19375 # If there is no Makefile yet, we rely on a make rule to execute
19376 # `config.status --recheck' to rerun these tests and create the
19377 # libtool script then.
19378 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19379 if test -f "$ltmain_in"; then
19380 test -f Makefile && make "$ltmain"
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401 # Source file extension for RC test sources.
19404 # Object file extension for compiled RC test sources.
19408 # Code to be used in simple compile tests
19409 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19411 # Code to be used in simple link tests
19412 lt_simple_link_test_code="$lt_simple_compile_test_code"
19414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19416 # If no C compiler was specified, use CC.
19419 # If no C compiler flags were specified, use CFLAGS.
19420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19422 # Allow CC to be a program name with arguments.
19426 # save warnings/boilerplate of simple test code
19427 ac_outfile=conftest.$ac_objext
19428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19430 _lt_compiler_boilerplate=`cat conftest.err`
19433 ac_outfile=conftest.$ac_objext
19434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19436 _lt_linker_boilerplate=`cat conftest.err`
19440 # Allow CC to be a program name with arguments.
19445 for cc_temp in $compiler""; do
19447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19455 lt_cv_prog_compiler_c_o_RC=yes
19457 # The else clause should only fire when bootstrapping the
19458 # libtool distribution, otherwise you forgot to ship ltmain.sh
19459 # with your package, and you will get complaints that there are
19460 # no rules to generate ltmain.sh.
19461 if test -f "$ltmain"; then
19462 # See if we are running on zsh, and set the options which allow our commands through
19463 # without removal of \ escapes.
19464 if test -n "${ZSH_VERSION+set}" ; then
19465 setopt NO_GLOB_SUBST
19467 # Now quote all the things that may contain metacharacters while being
19468 # careful not to overquote the AC_SUBSTed values. We take copies of the
19469 # variables and quote the copies for generation of the libtool script.
19470 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19472 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19473 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19474 deplibs_check_method reload_flag reload_cmds need_locks \
19475 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19476 lt_cv_sys_global_symbol_to_c_name_address \
19477 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19478 old_postinstall_cmds old_postuninstall_cmds \
19482 lt_prog_compiler_wl_RC \
19483 lt_prog_compiler_pic_RC \
19484 lt_prog_compiler_static_RC \
19485 lt_prog_compiler_no_builtin_flag_RC \
19486 export_dynamic_flag_spec_RC \
19487 thread_safe_flag_spec_RC \
19488 whole_archive_flag_spec_RC \
19489 enable_shared_with_static_runtimes_RC \
19490 old_archive_cmds_RC \
19491 old_archive_from_new_cmds_RC \
19492 predep_objects_RC \
19493 postdep_objects_RC \
19496 compiler_lib_search_path_RC \
19497 compiler_lib_search_dirs_RC \
19499 archive_expsym_cmds_RC \
19500 postinstall_cmds_RC \
19501 postuninstall_cmds_RC \
19502 old_archive_from_expsyms_cmds_RC \
19503 allow_undefined_flag_RC \
19504 no_undefined_flag_RC \
19505 export_symbols_cmds_RC \
19506 hardcode_libdir_flag_spec_RC \
19507 hardcode_libdir_flag_spec_ld_RC \
19508 hardcode_libdir_separator_RC \
19509 hardcode_automatic_RC \
19511 module_expsym_cmds_RC \
19512 lt_cv_prog_compiler_c_o_RC \
19513 fix_srcfile_path_RC \
19514 exclude_expsyms_RC \
19515 include_expsyms_RC; do
19518 old_archive_cmds_RC | \
19519 old_archive_from_new_cmds_RC | \
19520 archive_cmds_RC | \
19521 archive_expsym_cmds_RC | \
19523 module_expsym_cmds_RC | \
19524 old_archive_from_expsyms_cmds_RC | \
19525 export_symbols_cmds_RC | \
19526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19527 postinstall_cmds | postuninstall_cmds | \
19528 old_postinstall_cmds | old_postuninstall_cmds | \
19529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19530 # Double-quote double-evaled strings.
19531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19540 *'\$0 --fallback-echo"')
19541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19547 cat <<__EOF__ >> "$cfgfile"
19548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19552 # Shell to use when invoking shell scripts.
19555 # Whether or not to build shared libraries.
19556 build_libtool_libs=$enable_shared
19558 # Whether or not to build static libraries.
19559 build_old_libs=$enable_static
19561 # Whether or not to add -lc for building shared libraries.
19562 build_libtool_need_lc=$archive_cmds_need_lc_RC
19564 # Whether or not to disallow shared libs when runtime libs are static
19565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19567 # Whether or not to optimize for fast installation.
19568 fast_install=$enable_fast_install
19571 host_alias=$host_alias
19575 # The build system.
19576 build_alias=$build_alias
19580 # An echo program that does not interpret backslashes.
19585 AR_FLAGS=$lt_AR_FLAGS
19590 # LTCC compiler flags.
19591 LTCFLAGS=$lt_LTCFLAGS
19593 # A language-specific compiler.
19596 # Is the compiler the GNU C compiler?
19602 # The linker used to build libraries.
19605 # Whether we need hard or soft links.
19608 # A BSD-compatible nm program.
19611 # A symbol stripping program
19614 # Used to examine libraries when file_magic_cmd begins "file"
19615 MAGIC_CMD=$MAGIC_CMD
19617 # Used on cygwin: DLL creation program.
19620 # Used on cygwin: object dumper.
19623 # Used on cygwin: assembler.
19626 # The name of the directory that contains temporary libtool files.
19629 # How to create reloadable object files.
19630 reload_flag=$lt_reload_flag
19631 reload_cmds=$lt_reload_cmds
19633 # How to pass a linker flag through the compiler.
19634 wl=$lt_lt_prog_compiler_wl_RC
19636 # Object file suffix (normally "o").
19637 objext="$ac_objext"
19639 # Old archive suffix (normally "a").
19642 # Shared library suffix (normally ".so").
19643 shrext_cmds='$shrext_cmds'
19645 # Executable file suffix (normally "").
19648 # Additional compiler flags for building library objects.
19649 pic_flag=$lt_lt_prog_compiler_pic_RC
19652 # What is the maximum length of a command?
19653 max_cmd_len=$lt_cv_sys_max_cmd_len
19655 # Does compiler simultaneously support -c and -o options?
19656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19658 # Must we lock files when doing compilation?
19659 need_locks=$lt_need_locks
19661 # Do we need the lib prefix for modules?
19662 need_lib_prefix=$need_lib_prefix
19664 # Do we need a version for libraries?
19665 need_version=$need_version
19667 # Whether dlopen is supported.
19668 dlopen_support=$enable_dlopen
19670 # Whether dlopen of programs is supported.
19671 dlopen_self=$enable_dlopen_self
19673 # Whether dlopen of statically linked programs is supported.
19674 dlopen_self_static=$enable_dlopen_self_static
19676 # Compiler flag to prevent dynamic linking.
19677 link_static_flag=$lt_lt_prog_compiler_static_RC
19679 # Compiler flag to turn off builtin functions.
19680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19682 # Compiler flag to allow reflexive dlopens.
19683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19685 # Compiler flag to generate shared objects directly from archives.
19686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19688 # Compiler flag to generate thread-safe objects.
19689 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19691 # Library versioning type.
19692 version_type=$version_type
19694 # Format of library name prefix.
19695 libname_spec=$lt_libname_spec
19697 # List of archive names. First name is the real one, the rest are links.
19698 # The last name is the one that the linker finds with -lNAME.
19699 library_names_spec=$lt_library_names_spec
19701 # The coded name of the library, if different from the real name.
19702 soname_spec=$lt_soname_spec
19704 # Commands used to build and install an old-style archive.
19706 old_archive_cmds=$lt_old_archive_cmds_RC
19707 old_postinstall_cmds=$lt_old_postinstall_cmds
19708 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19710 # Create an old-style archive from a shared archive.
19711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19713 # Create a temporary old-style archive to link instead of a shared archive.
19714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19716 # Commands used to build and install a shared archive.
19717 archive_cmds=$lt_archive_cmds_RC
19718 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19719 postinstall_cmds=$lt_postinstall_cmds
19720 postuninstall_cmds=$lt_postuninstall_cmds
19722 # Commands used to build a loadable module (assumed same as above if empty)
19723 module_cmds=$lt_module_cmds_RC
19724 module_expsym_cmds=$lt_module_expsym_cmds_RC
19726 # Commands to strip libraries.
19727 old_striplib=$lt_old_striplib
19728 striplib=$lt_striplib
19730 # Dependencies to place before the objects being linked to create a
19732 predep_objects=$lt_predep_objects_RC
19734 # Dependencies to place after the objects being linked to create a
19736 postdep_objects=$lt_postdep_objects_RC
19738 # Dependencies to place before the objects being linked to create a
19740 predeps=$lt_predeps_RC
19742 # Dependencies to place after the objects being linked to create a
19744 postdeps=$lt_postdeps_RC
19746 # The directories searched by this compiler when creating a shared
19748 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19750 # The library search path used internally by the compiler when linking
19751 # a shared library.
19752 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19754 # Method to check whether dependent libraries are shared objects.
19755 deplibs_check_method=$lt_deplibs_check_method
19757 # Command to use when deplibs_check_method == file_magic.
19758 file_magic_cmd=$lt_file_magic_cmd
19760 # Flag that allows shared libraries with undefined symbols to be built.
19761 allow_undefined_flag=$lt_allow_undefined_flag_RC
19763 # Flag that forces no undefined symbols.
19764 no_undefined_flag=$lt_no_undefined_flag_RC
19766 # Commands used to finish a libtool library installation in a directory.
19767 finish_cmds=$lt_finish_cmds
19769 # Same as above, but a single script fragment to be evaled but not shown.
19770 finish_eval=$lt_finish_eval
19772 # Take the output of nm and produce a listing of raw symbols and C names.
19773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19775 # Transform the output of nm in a proper C declaration
19776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19778 # Transform the output of nm in a C name address pair
19779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19781 # This is the shared library runtime path variable.
19782 runpath_var=$runpath_var
19784 # This is the shared library path variable.
19785 shlibpath_var=$shlibpath_var
19787 # Is shlibpath searched before the hard-coded library search path?
19788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19790 # How to hardcode a shared library path into an executable.
19791 hardcode_action=$hardcode_action_RC
19793 # Whether we should hardcode library paths into libraries.
19794 hardcode_into_libs=$hardcode_into_libs
19796 # Flag to hardcode \$libdir into a binary during linking.
19797 # This must work even if \$libdir does not exist.
19798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19800 # If ld is used when linking, flag to hardcode \$libdir into
19801 # a binary during linking. This must work even if \$libdir does
19803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19805 # Whether we need a single -rpath flag with a separated argument.
19806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19808 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19809 # resulting binary.
19810 hardcode_direct=$hardcode_direct_RC
19812 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19813 # resulting binary.
19814 hardcode_minus_L=$hardcode_minus_L_RC
19816 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19817 # the resulting binary.
19818 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19820 # Set to yes if building a shared library automatically hardcodes DIR into the library
19821 # and all subsequent libraries and executables linked against it.
19822 hardcode_automatic=$hardcode_automatic_RC
19824 # Variables whose values should be saved in libtool wrapper scripts and
19825 # restored at relink time.
19826 variables_saved_for_relink="$variables_saved_for_relink"
19828 # Whether libtool must link a program against all its dependency libraries.
19829 link_all_deplibs=$link_all_deplibs_RC
19831 # Compile-time system search path for libraries
19832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19834 # Run-time system search path for libraries
19835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19837 # Fix the shell variable \$srcfile for the compiler.
19838 fix_srcfile_path=$lt_fix_srcfile_path
19840 # Set to yes if exported symbols are required.
19841 always_export_symbols=$always_export_symbols_RC
19843 # The commands to list exported symbols.
19844 export_symbols_cmds=$lt_export_symbols_cmds_RC
19846 # The commands to extract the exported symbol list from a shared archive.
19847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19849 # Symbols that should not be listed in the preloaded symbols.
19850 exclude_expsyms=$lt_exclude_expsyms_RC
19852 # Symbols that must always be exported.
19853 include_expsyms=$lt_include_expsyms_RC
19855 # ### END LIBTOOL TAG CONFIG: $tagname
19861 # If there is no Makefile yet, we rely on a make rule to execute
19862 # `config.status --recheck' to rerun these tests and create the
19863 # libtool script then.
19864 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19865 if test -f "$ltmain_in"; then
19866 test -f Makefile && make "$ltmain"
19872 ac_cpp='$CPP $CPPFLAGS'
19873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19883 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19884 { (exit 1); exit 1; }; }
19888 # Append the new tag name to the list of available tags.
19889 if test -n "$tagname" ; then
19890 available_tags="$available_tags $tagname"
19896 # Now substitute the updated list of available tags.
19897 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19898 mv "${ofile}T" "$ofile"
19902 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19903 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19904 { (exit 1); exit 1; }; }
19910 # This can be used to rebuild libtool when needed
19911 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19913 # Always use our own libtool.
19914 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19916 # Prevent multiple expansion
19939 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19940 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19941 if test "${ac_cv_header_stdc+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <stdlib.h>
19951 #include <stdarg.h>
19952 #include <string.h>
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_compile") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest.$ac_objext; then
19980 ac_cv_header_stdc=yes
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 ac_cv_header_stdc=no
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990 if test $ac_cv_header_stdc = yes; then
19991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <string.h>
20001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20002 $EGREP "memchr" >/dev/null 2>&1; then
20005 ac_cv_header_stdc=no
20011 if test $ac_cv_header_stdc = yes; then
20012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 #include <stdlib.h>
20022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20023 $EGREP "free" >/dev/null 2>&1; then
20026 ac_cv_header_stdc=no
20032 if test $ac_cv_header_stdc = yes; then
20033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20034 if test "$cross_compiling" = yes; then
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20044 #include <stdlib.h>
20045 #if ((' ' & 0x0FF) == 0x020)
20046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20049 # define ISLOWER(c) \
20050 (('a' <= (c) && (c) <= 'i') \
20051 || ('j' <= (c) && (c) <= 'r') \
20052 || ('s' <= (c) && (c) <= 'z'))
20053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20061 for (i = 0; i < 256; i++)
20062 if (XOR (islower (i), ISLOWER (i))
20063 || toupper (i) != TOUPPER (i))
20068 rm -f conftest$ac_exeext
20069 if { (ac_try="$ac_link"
20070 case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_link") 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079 { (case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_try") 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20090 echo "$as_me: program exited with status $ac_status" >&5
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ( exit $ac_status )
20095 ac_cv_header_stdc=no
20097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20103 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20104 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20105 if test $ac_cv_header_stdc = yes; then
20107 cat >>confdefs.h <<\_ACEOF
20108 #define STDC_HEADERS 1
20113 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20114 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20115 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #include <sys/types.h>
20125 #include <sys/wait.h>
20126 #ifndef WEXITSTATUS
20127 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20130 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20138 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest.$ac_objext; then
20160 ac_cv_header_sys_wait_h=yes
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_cv_header_sys_wait_h=no
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20171 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20172 if test $ac_cv_header_sys_wait_h = yes; then
20174 cat >>confdefs.h <<\_ACEOF
20175 #define HAVE_SYS_WAIT_H 1
20193 for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h
20195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 ac_res=`eval echo '${'$as_ac_Header'}'`
20203 { echo "$as_me:$LINENO: result: $ac_res" >&5
20204 echo "${ECHO_T}$ac_res" >&6; }
20206 # Is the header compilable?
20207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 $ac_includes_default
20216 #include <$ac_header>
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_compile") 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest.$ac_objext; then
20235 ac_header_compiler=yes
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20240 ac_header_compiler=no
20243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20245 echo "${ECHO_T}$ac_header_compiler" >&6; }
20247 # Is the header present?
20248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 #include <$ac_header>
20258 if { (ac_try="$ac_cpp conftest.$ac_ext"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } >/dev/null && {
20271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20274 ac_header_preproc=yes
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 ac_header_preproc=no
20282 rm -f conftest.err conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20284 echo "${ECHO_T}$ac_header_preproc" >&6; }
20286 # So? What about this header?
20287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20293 ac_header_preproc=yes
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 eval "$as_ac_Header=\$ac_header_preproc"
20318 ac_res=`eval echo '${'$as_ac_Header'}'`
20319 { echo "$as_me:$LINENO: result: $ac_res" >&5
20320 echo "${ECHO_T}$ac_res" >&6; }
20323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20324 cat >>confdefs.h <<_ACEOF
20325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20333 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20334 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20335 if test "${ac_cv_c_const+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20348 /* FIXME: Include the comments suggested by Paul. */
20349 #ifndef __cplusplus
20350 /* Ultrix mips cc rejects this. */
20351 typedef int charset[2];
20353 /* SunOS 4.1.1 cc rejects this. */
20354 char const *const *pcpcc;
20356 /* NEC SVR4.0.2 mips cc rejects this. */
20357 struct point {int x, y;};
20358 static struct point const zero = {0,0};
20359 /* AIX XL C 1.02.0.0 rejects this.
20360 It does not let you subtract one const X* pointer from another in
20361 an arm of an if-expression whose if-part is not a constant
20363 const char *g = "string";
20364 pcpcc = &g + (g ? g-g : 0);
20365 /* HPUX 7.0 cc rejects these. */
20367 ppc = (char**) pcpcc;
20368 pcpcc = (char const *const *) ppc;
20369 { /* SCO 3.2v4 cc rejects this. */
20371 char const *s = 0 ? (char *) 0 : (char const *) 0;
20376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20377 int x[] = {25, 17};
20378 const int *foo = &x[0];
20381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20382 typedef const int *iptr;
20386 { /* AIX XL C 1.02.0.0 rejects this saying
20387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20388 struct s { int j; const int *ap[3]; };
20389 struct s *b; b->j = 5;
20391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20392 const int foo = 10;
20393 if (!foo) return 0;
20395 return !cs[0] && !zero.x;
20402 rm -f conftest.$ac_objext
20403 if { (ac_try="$ac_compile"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_compile") 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest.$ac_objext; then
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20429 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20430 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20431 if test $ac_cv_c_const = no; then
20433 cat >>confdefs.h <<\_ACEOF
20439 { echo "$as_me:$LINENO: checking for inline" >&5
20440 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20441 if test "${ac_cv_c_inline+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 for ac_kw in inline __inline__ __inline; do
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 #ifndef __cplusplus
20454 static $ac_kw foo_t static_foo () {return 0; }
20455 $ac_kw foo_t foo () {return 0; }
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 ac_cv_c_inline=$ac_kw
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 test "$ac_cv_c_inline" != no && break
20489 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20490 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20493 case $ac_cv_c_inline in
20496 case $ac_cv_c_inline in
20498 *) ac_val=$ac_cv_c_inline;;
20500 cat >>confdefs.h <<_ACEOF
20501 #ifndef __cplusplus
20502 #define inline $ac_val
20508 { echo "$as_me:$LINENO: checking for size_t" >&5
20509 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20510 if test "${ac_cv_type_size_t+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20520 typedef size_t ac__type_new_;
20524 if ((ac__type_new_ *) 0)
20526 if (sizeof (ac__type_new_))
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest.$ac_objext; then
20549 ac_cv_type_size_t=yes
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 ac_cv_type_size_t=no
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20560 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20561 if test $ac_cv_type_size_t = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define size_t unsigned int
20571 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20573 if test "${ac_cv_header_time+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 #include <sys/types.h>
20583 #include <sys/time.h>
20589 if ((struct tm *) 0)
20595 rm -f conftest.$ac_objext
20596 if { (ac_try="$ac_compile"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_compile") 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest.$ac_objext; then
20612 ac_cv_header_time=yes
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_cv_header_time=no
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20623 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20624 if test $ac_cv_header_time = yes; then
20626 cat >>confdefs.h <<\_ACEOF
20627 #define TIME_WITH_SYS_TIME 1
20632 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20633 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20634 if test "${ac_cv_struct_tm+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20637 cat >conftest.$ac_ext <<_ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 #include <sys/types.h>
20650 int *p = &tm.tm_sec;
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
20673 ac_cv_struct_tm=time.h
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_cv_struct_tm=sys/time.h
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20683 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20684 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20685 if test $ac_cv_struct_tm = sys/time.h; then
20687 cat >>confdefs.h <<\_ACEOF
20688 #define TM_IN_SYS_TIME 1
20693 { echo "$as_me:$LINENO: checking for working volatile" >&5
20694 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20695 if test "${ac_cv_c_volatile+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20710 int * volatile y = (int *) 0;
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest.$ac_objext; then
20733 ac_cv_c_volatile=yes
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ac_cv_c_volatile=no
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20743 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20744 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
20745 if test $ac_cv_c_volatile = no; then
20747 cat >>confdefs.h <<\_ACEOF
20754 # Checks for library functions.
20756 for ac_header in stdlib.h
20758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 ac_res=`eval echo '${'$as_ac_Header'}'`
20766 { echo "$as_me:$LINENO: result: $ac_res" >&5
20767 echo "${ECHO_T}$ac_res" >&6; }
20769 # Is the header compilable?
20770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20772 cat >conftest.$ac_ext <<_ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20778 $ac_includes_default
20779 #include <$ac_header>
20781 rm -f conftest.$ac_objext
20782 if { (ac_try="$ac_compile"
20783 case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_compile") 2>conftest.er1
20790 grep -v '^ *+' conftest.er1 >conftest.err
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } && {
20795 test -z "$ac_c_werror_flag" ||
20796 test ! -s conftest.err
20797 } && test -s conftest.$ac_objext; then
20798 ac_header_compiler=yes
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_header_compiler=no
20806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20808 echo "${ECHO_T}$ac_header_compiler" >&6; }
20810 # Is the header present?
20811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20813 cat >conftest.$ac_ext <<_ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20819 #include <$ac_header>
20821 if { (ac_try="$ac_cpp conftest.$ac_ext"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } >/dev/null && {
20834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20837 ac_header_preproc=yes
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_header_preproc=no
20845 rm -f conftest.err conftest.$ac_ext
20846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20847 echo "${ECHO_T}$ac_header_preproc" >&6; }
20849 # So? What about this header?
20850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20856 ac_header_preproc=yes
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 eval "$as_ac_Header=\$ac_header_preproc"
20881 ac_res=`eval echo '${'$as_ac_Header'}'`
20882 { echo "$as_me:$LINENO: result: $ac_res" >&5
20883 echo "${ECHO_T}$ac_res" >&6; }
20886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20887 cat >>confdefs.h <<_ACEOF
20888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20895 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20896 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
20897 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20900 if test "$cross_compiling" = yes; then
20901 ac_cv_func_malloc_0_nonnull=no
20903 cat >conftest.$ac_ext <<_ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20910 # include <stdlib.h>
20918 return ! malloc (0);
20923 rm -f conftest$ac_exeext
20924 if { (ac_try="$ac_link"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_link") 2>&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_func_malloc_0_nonnull=yes
20945 echo "$as_me: program exited with status $ac_status" >&5
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ( exit $ac_status )
20950 ac_cv_func_malloc_0_nonnull=no
20952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20957 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20958 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20959 if test $ac_cv_func_malloc_0_nonnull = yes; then
20961 cat >>confdefs.h <<\_ACEOF
20962 #define HAVE_MALLOC 1
20966 cat >>confdefs.h <<\_ACEOF
20967 #define HAVE_MALLOC 0
20970 case " $LIBOBJS " in
20971 *" malloc.$ac_objext "* ) ;;
20972 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20977 cat >>confdefs.h <<\_ACEOF
20978 #define malloc rpl_malloc
20985 { echo "$as_me:$LINENO: checking for working memcmp" >&5
20986 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
20987 if test "${ac_cv_func_memcmp_working+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 if test "$cross_compiling" = yes; then
20991 ac_cv_func_memcmp_working=no
20993 cat >conftest.$ac_ext <<_ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 $ac_includes_default
21004 /* Some versions of memcmp are not 8-bit clean. */
21005 char c0 = '\100', c1 = '\200', c2 = '\201';
21006 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21009 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21010 or more and with at least one buffer not starting on a 4-byte boundary.
21011 William Lewis provided this test program. */
21016 for (i = 0; i < 4; i++)
21020 strcpy (a, "--------01111111");
21021 strcpy (b, "--------10000000");
21022 if (memcmp (a, b, 16) >= 0)
21032 rm -f conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 ac_cv_func_memcmp_working=yes
21054 echo "$as_me: program exited with status $ac_status" >&5
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ( exit $ac_status )
21059 ac_cv_func_memcmp_working=no
21061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21066 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21067 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21068 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21069 *" memcmp.$ac_objext "* ) ;;
21070 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21076 for ac_header in stdlib.h
21078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 ac_res=`eval echo '${'$as_ac_Header'}'`
21086 { echo "$as_me:$LINENO: result: $ac_res" >&5
21087 echo "${ECHO_T}$ac_res" >&6; }
21089 # Is the header compilable?
21090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21099 #include <$ac_header>
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest.$ac_objext; then
21118 ac_header_compiler=yes
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_header_compiler=no
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21128 echo "${ECHO_T}$ac_header_compiler" >&6; }
21130 # Is the header present?
21131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 #include <$ac_header>
21141 if { (ac_try="$ac_cpp conftest.$ac_ext"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } >/dev/null && {
21154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21157 ac_header_preproc=yes
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_header_preproc=no
21165 rm -f conftest.err conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21167 echo "${ECHO_T}$ac_header_preproc" >&6; }
21169 # So? What about this header?
21170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21176 ac_header_preproc=yes
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21199 eval "$as_ac_Header=\$ac_header_preproc"
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21215 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21216 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
21217 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 if test "$cross_compiling" = yes; then
21221 ac_cv_func_realloc_0_nonnull=no
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21230 # include <stdlib.h>
21238 return ! realloc (0, 0);
21243 rm -f conftest$ac_exeext
21244 if { (ac_try="$ac_link"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_link") 2>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21254 { (case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_try") 2>&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 ac_cv_func_realloc_0_nonnull=yes
21265 echo "$as_me: program exited with status $ac_status" >&5
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ( exit $ac_status )
21270 ac_cv_func_realloc_0_nonnull=no
21272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21277 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21278 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21279 if test $ac_cv_func_realloc_0_nonnull = yes; then
21281 cat >>confdefs.h <<\_ACEOF
21282 #define HAVE_REALLOC 1
21286 cat >>confdefs.h <<\_ACEOF
21287 #define HAVE_REALLOC 0
21290 case " $LIBOBJS " in
21291 *" realloc.$ac_objext "* ) ;;
21292 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
21297 cat >>confdefs.h <<\_ACEOF
21298 #define realloc rpl_realloc
21307 for ac_header in sys/select.h sys/socket.h
21309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317 { echo "$as_me:$LINENO: result: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21320 # Is the header compilable?
21321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 $ac_includes_default
21330 #include <$ac_header>
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_header_compiler=yes
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_header_compiler=no
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21359 echo "${ECHO_T}$ac_header_compiler" >&6; }
21361 # Is the header present?
21362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 #include <$ac_header>
21372 if { (ac_try="$ac_cpp conftest.$ac_ext"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21380 grep -v '^ *+' conftest.er1 >conftest.err
21382 cat conftest.err >&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } >/dev/null && {
21385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21386 test ! -s conftest.err
21388 ac_header_preproc=yes
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ac_header_preproc=no
21396 rm -f conftest.err conftest.$ac_ext
21397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21398 echo "${ECHO_T}$ac_header_preproc" >&6; }
21400 # So? What about this header?
21401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21407 ac_header_preproc=yes
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21430 eval "$as_ac_Header=\$ac_header_preproc"
21432 ac_res=`eval echo '${'$as_ac_Header'}'`
21433 { echo "$as_me:$LINENO: result: $ac_res" >&5
21434 echo "${ECHO_T}$ac_res" >&6; }
21437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21446 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
21447 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
21448 if test "${ac_cv_func_select_args+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21452 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21453 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 $ac_includes_default
21461 #ifdef HAVE_SYS_SELECT_H
21462 # include <sys/select.h>
21464 #ifdef HAVE_SYS_SOCKET_H
21465 # include <sys/socket.h>
21471 extern int select ($ac_arg1,
21472 $ac_arg234, $ac_arg234, $ac_arg234,
21478 rm -f conftest.$ac_objext
21479 if { (ac_try="$ac_compile"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_compile") 2>conftest.er1
21487 grep -v '^ *+' conftest.er1 >conftest.err
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest.$ac_objext; then
21495 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507 # Provide a safe default value.
21508 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21511 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21512 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
21513 ac_save_IFS=$IFS; IFS=','
21514 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21518 cat >>confdefs.h <<_ACEOF
21519 #define SELECT_TYPE_ARG1 $1
21523 cat >>confdefs.h <<_ACEOF
21524 #define SELECT_TYPE_ARG234 ($2)
21528 cat >>confdefs.h <<_ACEOF
21529 #define SELECT_TYPE_ARG5 ($3)
21534 { echo "$as_me:$LINENO: checking for function prototypes" >&5
21535 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
21536 if test "$ac_cv_prog_cc_c89" != no; then
21537 { echo "$as_me:$LINENO: result: yes" >&5
21538 echo "${ECHO_T}yes" >&6; }
21540 cat >>confdefs.h <<\_ACEOF
21541 #define PROTOTYPES 1
21545 cat >>confdefs.h <<\_ACEOF
21546 #define __PROTOTYPES 1
21550 { echo "$as_me:$LINENO: result: no" >&5
21551 echo "${ECHO_T}no" >&6; }
21554 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
21555 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
21556 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 ac_cv_func_setvbuf_reversed=no
21560 cat >conftest.$ac_ext <<_ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21568 int (setvbuf) (FILE *, int, char *, size_t);
21573 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
21578 rm -f conftest.$ac_objext conftest$ac_exeext
21579 if { (ac_try="$ac_link"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_link") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest$ac_exeext &&
21595 $as_test_x conftest$ac_exeext; then
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21604 int (setvbuf) (FILE *, int, char *, size_t);
21609 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621 (eval "$ac_link") 2>conftest.er1
21623 grep -v '^ *+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && {
21628 test -z "$ac_c_werror_flag" ||
21629 test ! -s conftest.err
21630 } && test -s conftest$ac_exeext &&
21631 $as_test_x conftest$ac_exeext; then
21632 # It compiles and links either way, so it must not be declared
21633 # with a prototype and most likely this is a K&R C compiler.
21635 if test "$cross_compiling" = yes; then
21636 : # Assume setvbuf is not reversed when cross-compiling.
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21644 $ac_includes_default
21648 /* This call has the arguments reversed.
21649 A reversed system may check and see that the address of buf
21650 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21652 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
21655 return 0; /* Non-reversed systems SEGV here. */
21660 rm -f conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671 { (case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_try") 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_func_setvbuf_reversed=yes
21682 echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 ac_cv_func_setvbuf_reversed=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21700 conftest$ac_exeext conftest.$ac_ext
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21709 conftest$ac_exeext conftest.$ac_ext
21711 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
21712 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
21713 if test $ac_cv_func_setvbuf_reversed = yes; then
21715 cat >>confdefs.h <<\_ACEOF
21716 #define SETVBUF_REVERSED 1
21722 for ac_func in vprintf
21724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 cat >conftest.$ac_ext <<_ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21738 #define $ac_func innocuous_$ac_func
21740 /* System header to define __stub macros and hopefully few prototypes,
21741 which can conflict with char $ac_func (); below.
21742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21743 <limits.h> exists even on freestanding compilers. */
21746 # include <limits.h>
21748 # include <assert.h>
21753 /* Override any GCC internal prototype to avoid an error.
21754 Use char because int might match the return type of a GCC
21755 builtin and then its argument prototype would still apply. */
21760 /* The GNU C library defines this for functions which it implements
21761 to always fail with ENOSYS. Some functions are actually named
21762 something starting with __ and the normal name is an alias. */
21763 #if defined __stub_$ac_func || defined __stub___$ac_func
21770 return $ac_func ();
21775 rm -f conftest.$ac_objext conftest$ac_exeext
21776 if { (ac_try="$ac_link"
21777 case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_link") 2>conftest.er1
21784 grep -v '^ *+' conftest.er1 >conftest.err
21786 cat conftest.err >&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } && {
21789 test -z "$ac_c_werror_flag" ||
21790 test ! -s conftest.err
21791 } && test -s conftest$ac_exeext &&
21792 $as_test_x conftest$ac_exeext; then
21793 eval "$as_ac_var=yes"
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 eval "$as_ac_var=no"
21801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21802 conftest$ac_exeext conftest.$ac_ext
21804 ac_res=`eval echo '${'$as_ac_var'}'`
21805 { echo "$as_me:$LINENO: result: $ac_res" >&5
21806 echo "${ECHO_T}$ac_res" >&6; }
21807 if test `eval echo '${'$as_ac_var'}'` = yes; then
21808 cat >>confdefs.h <<_ACEOF
21809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21812 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21813 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21814 if test "${ac_cv_func__doprnt+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 cat >conftest.$ac_ext <<_ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21825 #define _doprnt innocuous__doprnt
21827 /* System header to define __stub macros and hopefully few prototypes,
21828 which can conflict with char _doprnt (); below.
21829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21830 <limits.h> exists even on freestanding compilers. */
21833 # include <limits.h>
21835 # include <assert.h>
21840 /* Override any GCC internal prototype to avoid an error.
21841 Use char because int might match the return type of a GCC
21842 builtin and then its argument prototype would still apply. */
21847 /* The GNU C library defines this for functions which it implements
21848 to always fail with ENOSYS. Some functions are actually named
21849 something starting with __ and the normal name is an alias. */
21850 #if defined __stub__doprnt || defined __stub____doprnt
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (ac_try="$ac_link"
21864 case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_link") 2>conftest.er1
21871 grep -v '^ *+' conftest.er1 >conftest.err
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && {
21876 test -z "$ac_c_werror_flag" ||
21877 test ! -s conftest.err
21878 } && test -s conftest$ac_exeext &&
21879 $as_test_x conftest$ac_exeext; then
21880 ac_cv_func__doprnt=yes
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 ac_cv_func__doprnt=no
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21891 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21892 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21893 if test $ac_cv_func__doprnt = yes; then
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_DOPRNT 1
21916 for ac_func in bzero gethostbyname gettimeofday memmove memset select socket strchr strerror strtol strtoul
21918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21932 #define $ac_func innocuous_$ac_func
21934 /* System header to define __stub macros and hopefully few prototypes,
21935 which can conflict with char $ac_func (); below.
21936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21937 <limits.h> exists even on freestanding compilers. */
21940 # include <limits.h>
21942 # include <assert.h>
21947 /* Override any GCC internal prototype to avoid an error.
21948 Use char because int might match the return type of a GCC
21949 builtin and then its argument prototype would still apply. */
21954 /* The GNU C library defines this for functions which it implements
21955 to always fail with ENOSYS. Some functions are actually named
21956 something starting with __ and the normal name is an alias. */
21957 #if defined __stub_$ac_func || defined __stub___$ac_func
21964 return $ac_func ();
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_link") 2>conftest.er1
21978 grep -v '^ *+' conftest.er1 >conftest.err
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } && {
21983 test -z "$ac_c_werror_flag" ||
21984 test ! -s conftest.err
21985 } && test -s conftest$ac_exeext &&
21986 $as_test_x conftest$ac_exeext; then
21987 eval "$as_ac_var=yes"
21989 echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21992 eval "$as_ac_var=no"
21995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21996 conftest$ac_exeext conftest.$ac_ext
21998 ac_res=`eval echo '${'$as_ac_var'}'`
21999 { echo "$as_me:$LINENO: result: $ac_res" >&5
22000 echo "${ECHO_T}$ac_res" >&6; }
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22010 ac_config_files="$ac_config_files lksctp-tools.spec Makefile bin/Makefile man/Makefile src/Makefile src/apps/Makefile src/func_tests/Makefile src/include/Makefile src/include/netinet/Makefile src/lib/Makefile src/testlib/Makefile src/withsctp/Makefile doc/Makefile"
22012 cat >confcache <<\_ACEOF
22013 # This file is a shell script that caches the results of configure
22014 # tests run on this system so they can be shared between configure
22015 # scripts and configure runs, see configure's option --config-cache.
22016 # It is not useful on other systems. If it contains results you don't
22017 # want to keep, you may remove or edit it.
22019 # config.status only pays attention to the cache file if you give it
22020 # the --recheck option to rerun configure.
22022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22024 # following values.
22028 # The following way of writing the cache mishandles newlines in values,
22029 # but we know of no workaround that is simple, portable, and efficient.
22030 # So, we kill variables containing newlines.
22031 # Ultrix sh set writes to stderr and can't be redirected directly,
22032 # and sets the high bit in the cache file unless we assign to the vars.
22034 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22035 eval ac_val=\$$ac_var
22039 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22040 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22043 _ | IFS | as_nl) ;; #(
22044 *) $as_unset $ac_var ;;
22050 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22051 *${as_nl}ac_space=\ *)
22052 # `set' does not quote correctly, so add quotes (double-quote
22053 # substitution turns \\\\ into \\, and sed turns \\ into \).
22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22059 # `set' quotes correctly as required by POSIX, so do not add quotes.
22060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22073 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22074 if test -w "$cache_file"; then
22075 test "x$cache_file" != "x/dev/null" &&
22076 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22077 echo "$as_me: updating cache $cache_file" >&6;}
22078 cat confcache >$cache_file
22080 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22081 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22087 # Let make expand exec_prefix.
22088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22090 DEFS=-DHAVE_CONFIG_H
22094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22095 # 1. Remove the extension, and $U if already installed.
22096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22097 ac_i=`echo "$ac_i" | sed "$ac_script"`
22098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22099 # will be set to the directory where LIBOBJS objects are built.
22100 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22101 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22103 LIBOBJS=$ac_libobjs
22105 LTLIBOBJS=$ac_ltlibobjs
22108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22109 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22110 Usually this means the macro was only invoked conditionally." >&5
22111 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22112 Usually this means the macro was only invoked conditionally." >&2;}
22113 { (exit 1); exit 1; }; }
22115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22116 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22117 Usually this means the macro was only invoked conditionally." >&5
22118 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22119 Usually this means the macro was only invoked conditionally." >&2;}
22120 { (exit 1); exit 1; }; }
22122 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22123 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22124 Usually this means the macro was only invoked conditionally." >&5
22125 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22126 Usually this means the macro was only invoked conditionally." >&2;}
22127 { (exit 1); exit 1; }; }
22130 : ${CONFIG_STATUS=./config.status}
22131 ac_clean_files_save=$ac_clean_files
22132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22133 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22134 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22135 cat >$CONFIG_STATUS <<_ACEOF
22137 # Generated by $as_me.
22138 # Run this file to recreate the current configuration.
22139 # Compiler output produced by configure, useful for debugging
22140 # configure, is in config.log if it exists.
22143 ac_cs_recheck=false
22145 SHELL=\${CONFIG_SHELL-$SHELL}
22148 cat >>$CONFIG_STATUS <<\_ACEOF
22149 ## --------------------- ##
22150 ## M4sh Initialization. ##
22151 ## --------------------- ##
22153 # Be more Bourne compatible
22154 DUALCASE=1; export DUALCASE # for MKS sh
22155 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22158 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22159 # is contrary to our usage. Disable this feature.
22160 alias -g '${1+"$@"}'='"$@"'
22161 setopt NO_GLOB_SUBST
22163 case `(set -o) 2>/dev/null` in
22164 *posix*) set -o posix ;;
22173 # Avoid depending upon Character Ranges.
22174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22177 as_cr_digits='0123456789'
22178 as_cr_alnum=$as_cr_Letters$as_cr_digits
22180 # The user is always right.
22181 if test "${PATH_SEPARATOR+set}" != set; then
22182 echo "#! /bin/sh" >conf$$.sh
22183 echo "exit 0" >>conf$$.sh
22185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22193 # Support unset when possible.
22194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22202 # We need space, tab and new line, in precisely that order. Quoting is
22203 # there to prevent editors from complaining about space-tab.
22204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22205 # splitting by setting IFS to empty value.)
22210 # Find who we are. Look in the path if we contain no directory separator.
22212 *[\\/]* ) as_myself=$0 ;;
22213 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22214 for as_dir in $PATH
22217 test -z "$as_dir" && as_dir=.
22218 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22224 # We did not find ourselves, most probably we were run as `sh COMMAND'
22225 # in which case we are not to be found in the path.
22226 if test "x$as_myself" = x; then
22229 if test ! -f "$as_myself"; then
22230 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22231 { (exit 1); exit 1; }
22234 # Work around bugs in pre-3.0 UWIN ksh.
22235 for as_var in ENV MAIL MAILPATH
22236 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22244 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22245 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22246 LC_TELEPHONE LC_TIME
22248 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22249 eval $as_var=C; export $as_var
22251 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22255 # Required to use basename.
22256 if expr a : '\(a\)' >/dev/null 2>&1 &&
22257 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22263 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22264 as_basename=basename
22270 # Name of the executable.
22271 as_me=`$as_basename -- "$0" ||
22272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22273 X"$0" : 'X\(//\)$' \| \
22274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22276 sed '/^.*\/\([^/][^/]*\)\/*$/{
22295 as_lineno_1=$LINENO
22296 as_lineno_2=$LINENO
22297 test "x$as_lineno_1" != "x$as_lineno_2" &&
22298 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22301 # uniformly replaced by the line number. The first 'sed' inserts a
22302 # line-number line after each line using $LINENO; the second 'sed'
22303 # does the real work. The second script uses 'N' to pair each
22304 # line-number line with the line containing $LINENO, and appends
22305 # trailing '-' during substitution so that $LINENO is not a special
22306 # case at line end.
22307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22308 # scripts with optimization help from Paolo Bonzini. Blame Lee
22309 # E. McMahon (1931-1989) for sed's syntax. :-)
22321 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22324 ' >$as_me.lineno &&
22325 chmod +x "$as_me.lineno" ||
22326 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22327 { (exit 1); exit 1; }; }
22329 # Don't try to exec as it changes $[0], causing all sort of problems
22330 # (the dirname of $[0] is not the place where we might find the
22331 # original and so on. Autoconf is especially sensitive to this).
22332 . "./$as_me.lineno"
22333 # Exit status is that of the last command.
22338 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22344 ECHO_C= ECHO_N= ECHO_T=
22345 case `echo -n x` in
22347 case `echo 'x\c'` in
22348 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22355 if expr a : '\(a\)' >/dev/null 2>&1 &&
22356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22362 rm -f conf$$ conf$$.exe conf$$.file
22363 if test -d conf$$.dir; then
22364 rm -f conf$$.dir/conf$$.file
22370 if ln -s conf$$.file conf$$ 2>/dev/null; then
22372 # ... but there are two gotchas:
22373 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22374 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22375 # In both cases, we have to default to `cp -p'.
22376 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22378 elif ln conf$$.file conf$$ 2>/dev/null; then
22383 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22384 rmdir conf$$.dir 2>/dev/null
22386 if mkdir -p . 2>/dev/null; then
22389 test -d ./-p && rmdir ./-p
22393 if test -x / >/dev/null 2>&1; then
22394 as_test_x='test -x'
22396 if ls -dL / >/dev/null 2>&1; then
22403 if test -d "$1"; then
22409 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22410 ???[sx]*):;;*)false;;esac;fi
22414 as_executable_p=$as_test_x
22416 # Sed expression to map a string onto a valid CPP name.
22417 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22419 # Sed expression to map a string onto a valid variable name.
22420 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22425 # Save the log message, to keep $[0] and so on meaningful, and to
22426 # report actual input values of CONFIG_FILES etc. instead of their
22427 # values after options handling.
22429 This file was extended by $as_me, which was
22430 generated by GNU Autoconf 2.61. Invocation command line was
22432 CONFIG_FILES = $CONFIG_FILES
22433 CONFIG_HEADERS = $CONFIG_HEADERS
22434 CONFIG_LINKS = $CONFIG_LINKS
22435 CONFIG_COMMANDS = $CONFIG_COMMANDS
22438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22443 cat >>$CONFIG_STATUS <<_ACEOF
22444 # Files that config.status was made for.
22445 config_files="$ac_config_files"
22446 config_headers="$ac_config_headers"
22447 config_commands="$ac_config_commands"
22451 cat >>$CONFIG_STATUS <<\_ACEOF
22453 \`$as_me' instantiates files from templates according to the
22454 current configuration.
22456 Usage: $0 [OPTIONS] [FILE]...
22458 -h, --help print this help, then exit
22459 -V, --version print version number and configuration settings, then exit
22460 -q, --quiet do not print progress messages
22461 -d, --debug don't remove temporary files
22462 --recheck update $as_me by reconfiguring in the same conditions
22463 --file=FILE[:TEMPLATE]
22464 instantiate the configuration file FILE
22465 --header=FILE[:TEMPLATE]
22466 instantiate the configuration header FILE
22468 Configuration files:
22471 Configuration headers:
22474 Configuration commands:
22477 Report bugs to <bug-autoconf@gnu.org>."
22480 cat >>$CONFIG_STATUS <<_ACEOF
22483 configured by $0, generated by GNU Autoconf 2.61,
22484 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22486 Copyright (C) 2006 Free Software Foundation, Inc.
22487 This config.status script is free software; the Free Software Foundation
22488 gives unlimited permission to copy, distribute and modify it."
22495 cat >>$CONFIG_STATUS <<\_ACEOF
22496 # If no file are specified by the user, then we need to provide default
22497 # value. By we need to know if files were specified by the user.
22503 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22504 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22515 # Handling of the options.
22516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22518 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22519 echo "$ac_cs_version"; exit ;;
22520 --debug | --debu | --deb | --de | --d | -d )
22522 --file | --fil | --fi | --f )
22524 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22525 ac_need_defaults=false;;
22526 --header | --heade | --head | --hea )
22528 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22529 ac_need_defaults=false;;
22531 # Conflict between --help and --header
22532 { echo "$as_me: error: ambiguous option: $1
22533 Try \`$0 --help' for more information." >&2
22534 { (exit 1); exit 1; }; };;
22535 --help | --hel | -h )
22536 echo "$ac_cs_usage"; exit ;;
22537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22541 # This is an error.
22542 -*) { echo "$as_me: error: unrecognized option: $1
22543 Try \`$0 --help' for more information." >&2
22544 { (exit 1); exit 1; }; } ;;
22546 *) ac_config_targets="$ac_config_targets $1"
22547 ac_need_defaults=false ;;
22553 ac_configure_extra_args=
22555 if $ac_cs_silent; then
22557 ac_configure_extra_args="$ac_configure_extra_args --silent"
22561 cat >>$CONFIG_STATUS <<_ACEOF
22562 if \$ac_cs_recheck; then
22563 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22564 CONFIG_SHELL=$SHELL
22565 export CONFIG_SHELL
22566 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575 ## Running $as_me. ##
22581 cat >>$CONFIG_STATUS <<_ACEOF
22585 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22589 cat >>$CONFIG_STATUS <<\_ACEOF
22591 # Handling of arguments.
22592 for ac_config_target in $ac_config_targets
22594 case $ac_config_target in
22595 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22596 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22597 "lksctp-tools.spec") CONFIG_FILES="$CONFIG_FILES lksctp-tools.spec" ;;
22598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22599 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
22600 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22601 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22602 "src/apps/Makefile") CONFIG_FILES="$CONFIG_FILES src/apps/Makefile" ;;
22603 "src/func_tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/func_tests/Makefile" ;;
22604 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
22605 "src/include/netinet/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/netinet/Makefile" ;;
22606 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22607 "src/testlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/testlib/Makefile" ;;
22608 "src/withsctp/Makefile") CONFIG_FILES="$CONFIG_FILES src/withsctp/Makefile" ;;
22609 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22613 { (exit 1); exit 1; }; };;
22618 # If the user did not use the arguments to specify the items to instantiate,
22619 # then the envvar interface is used. Set only those that are not.
22620 # We use the long form for the default assignment because of an extremely
22621 # bizarre bug on SunOS 4.1.3.
22622 if $ac_need_defaults; then
22623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22628 # Have a temporary directory for convenience. Make it in the build tree
22629 # simply because there is no reason against having it here, and in addition,
22630 # creating and moving files from /tmp can sometimes cause problems.
22631 # Hook for its removal unless debugging.
22632 # Note that there is a small window in which the directory will not be cleaned:
22633 # after its creation but before its name has been assigned to `$tmp'.
22637 trap 'exit_status=$?
22638 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22640 trap '{ (exit 1); exit 1; }' 1 2 13 15
22642 # Create a (secure) tmp directory for tmp files.
22645 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22646 test -n "$tmp" && test -d "$tmp"
22649 tmp=./conf$$-$RANDOM
22650 (umask 077 && mkdir "$tmp")
22653 echo "$me: cannot create a temporary directory in ." >&2
22654 { (exit 1); exit 1; }
22658 # Set up the sed scripts for CONFIG_FILES section.
22661 # No need to generate the scripts if there are no CONFIG_FILES.
22662 # This happens for instance when ./config.status config.h
22663 if test -n "$CONFIG_FILES"; then
22670 for ac_last_try in false false false false false :; do
22671 cat >conf$$subs.sed <<_ACEOF
22672 SHELL!$SHELL$ac_delim
22673 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22674 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22675 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22676 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22677 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22678 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22679 exec_prefix!$exec_prefix$ac_delim
22680 prefix!$prefix$ac_delim
22681 program_transform_name!$program_transform_name$ac_delim
22682 bindir!$bindir$ac_delim
22683 sbindir!$sbindir$ac_delim
22684 libexecdir!$libexecdir$ac_delim
22685 datarootdir!$datarootdir$ac_delim
22686 datadir!$datadir$ac_delim
22687 sysconfdir!$sysconfdir$ac_delim
22688 sharedstatedir!$sharedstatedir$ac_delim
22689 localstatedir!$localstatedir$ac_delim
22690 includedir!$includedir$ac_delim
22691 oldincludedir!$oldincludedir$ac_delim
22692 docdir!$docdir$ac_delim
22693 infodir!$infodir$ac_delim
22694 htmldir!$htmldir$ac_delim
22695 dvidir!$dvidir$ac_delim
22696 pdfdir!$pdfdir$ac_delim
22697 psdir!$psdir$ac_delim
22698 libdir!$libdir$ac_delim
22699 localedir!$localedir$ac_delim
22700 mandir!$mandir$ac_delim
22701 DEFS!$DEFS$ac_delim
22702 ECHO_C!$ECHO_C$ac_delim
22703 ECHO_N!$ECHO_N$ac_delim
22704 ECHO_T!$ECHO_T$ac_delim
22705 LIBS!$LIBS$ac_delim
22706 build_alias!$build_alias$ac_delim
22707 host_alias!$host_alias$ac_delim
22708 target_alias!$target_alias$ac_delim
22709 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22710 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22711 INSTALL_DATA!$INSTALL_DATA$ac_delim
22712 CYGPATH_W!$CYGPATH_W$ac_delim
22713 PACKAGE!$PACKAGE$ac_delim
22714 VERSION!$VERSION$ac_delim
22715 ACLOCAL!$ACLOCAL$ac_delim
22716 AUTOCONF!$AUTOCONF$ac_delim
22717 AUTOMAKE!$AUTOMAKE$ac_delim
22718 AUTOHEADER!$AUTOHEADER$ac_delim
22719 MAKEINFO!$MAKEINFO$ac_delim
22720 install_sh!$install_sh$ac_delim
22721 STRIP!$STRIP$ac_delim
22722 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22723 mkdir_p!$mkdir_p$ac_delim
22725 SET_MAKE!$SET_MAKE$ac_delim
22726 am__leading_dot!$am__leading_dot$ac_delim
22727 AMTAR!$AMTAR$ac_delim
22728 am__tar!$am__tar$ac_delim
22729 am__untar!$am__untar$ac_delim
22731 CFLAGS!$CFLAGS$ac_delim
22732 LDFLAGS!$LDFLAGS$ac_delim
22733 CPPFLAGS!$CPPFLAGS$ac_delim
22734 ac_ct_CC!$ac_ct_CC$ac_delim
22735 EXEEXT!$EXEEXT$ac_delim
22736 OBJEXT!$OBJEXT$ac_delim
22737 DEPDIR!$DEPDIR$ac_delim
22738 am__include!$am__include$ac_delim
22739 am__quote!$am__quote$ac_delim
22740 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22741 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22742 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22743 CCDEPMODE!$CCDEPMODE$ac_delim
22744 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22745 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22746 LN_S!$LN_S$ac_delim
22747 build!$build$ac_delim
22748 build_cpu!$build_cpu$ac_delim
22749 build_vendor!$build_vendor$ac_delim
22750 build_os!$build_os$ac_delim
22751 host!$host$ac_delim
22752 host_cpu!$host_cpu$ac_delim
22753 host_vendor!$host_vendor$ac_delim
22754 host_os!$host_os$ac_delim
22756 GREP!$GREP$ac_delim
22757 EGREP!$EGREP$ac_delim
22758 ECHO!$ECHO$ac_delim
22760 RANLIB!$RANLIB$ac_delim
22761 DSYMUTIL!$DSYMUTIL$ac_delim
22762 NMEDIT!$NMEDIT$ac_delim
22765 CXXFLAGS!$CXXFLAGS$ac_delim
22766 ac_ct_CXX!$ac_ct_CXX$ac_delim
22767 CXXDEPMODE!$CXXDEPMODE$ac_delim
22768 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22771 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22773 elif $ac_last_try; then
22774 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22775 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22776 { (exit 1); exit 1; }; }
22778 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22782 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22783 if test -n "$ac_eof"; then
22784 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22785 ac_eof=`expr $ac_eof + 1`
22788 cat >>$CONFIG_STATUS <<_ACEOF
22789 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22793 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22794 s/^/s,@/; s/!/@,|#_!!_#|/
22797 s/'"$ac_delim"'$/,g/; t
22799 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22800 ' >>$CONFIG_STATUS <conf$$subs.sed
22801 rm -f conf$$subs.sed
22802 cat >>$CONFIG_STATUS <<_ACEOF
22808 for ac_last_try in false false false false false :; do
22809 cat >conf$$subs.sed <<_ACEOF
22810 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22811 CXXCPP!$CXXCPP$ac_delim
22813 FFLAGS!$FFLAGS$ac_delim
22814 ac_ct_F77!$ac_ct_F77$ac_delim
22815 LIBTOOL!$LIBTOOL$ac_delim
22816 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22817 LIBOBJS!$LIBOBJS$ac_delim
22818 LTLIBOBJS!$LTLIBOBJS$ac_delim
22821 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22823 elif $ac_last_try; then
22824 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22826 { (exit 1); exit 1; }; }
22828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22832 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22833 if test -n "$ac_eof"; then
22834 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22835 ac_eof=`expr $ac_eof + 1`
22838 cat >>$CONFIG_STATUS <<_ACEOF
22839 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22844 s/^/s,@/; s/!/@,|#_!!_#|/
22847 s/'"$ac_delim"'$/,g/; t
22849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22850 ' >>$CONFIG_STATUS <conf$$subs.sed
22851 rm -f conf$$subs.sed
22852 cat >>$CONFIG_STATUS <<_ACEOF
22859 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22860 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22861 # trailing colons and then remove the whole line if VPATH becomes empty
22862 # (actually we leave an empty line to preserve line numbers).
22863 if test "x$srcdir" = x.; then
22864 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22865 s/:*\$(srcdir):*/:/
22866 s/:*\${srcdir}:*/:/
22868 s/^\([^=]*=[ ]*\):*/\1/
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875 fi # test -n "$CONFIG_FILES"
22878 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22881 :[FHLC]) ac_mode=$ac_tag; continue;;
22883 case $ac_mode$ac_tag in
22885 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22886 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22887 { (exit 1); exit 1; }; };;
22888 :[FH]-) ac_tag=-:-;;
22889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22906 -) ac_f="$tmp/stdin";;
22907 *) # Look for the file first in the build tree, then in the source tree
22908 # (if the path is not absolute). The absolute path cannot be DOS-style,
22909 # because $ac_f cannot contain `:'.
22913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22915 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22916 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22917 { (exit 1); exit 1; }; };;
22919 ac_file_inputs="$ac_file_inputs $ac_f"
22922 # Let's still pretend it is `configure' which instantiates (i.e., don't
22923 # use $as_me), people would be surprised to read:
22924 # /* config.h. Generated by config.status. */
22925 configure_input="Generated from "`IFS=:
22926 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22927 if test x"$ac_file" != x-; then
22928 configure_input="$ac_file. $configure_input"
22929 { echo "$as_me:$LINENO: creating $ac_file" >&5
22930 echo "$as_me: creating $ac_file" >&6;}
22934 *:-:* | *:-) cat >"$tmp/stdin";;
22939 ac_dir=`$as_dirname -- "$ac_file" ||
22940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22941 X"$ac_file" : 'X\(//\)[^/]' \| \
22942 X"$ac_file" : 'X\(//\)$' \| \
22943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22949 /^X\(\/\/\)[^/].*/{
22964 -*) as_dir=./$as_dir;;
22966 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22970 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22971 *) as_qdir=$as_dir;;
22973 as_dirs="'$as_qdir' $as_dirs"
22974 as_dir=`$as_dirname -- "$as_dir" ||
22975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22976 X"$as_dir" : 'X\(//\)[^/]' \| \
22977 X"$as_dir" : 'X\(//\)$' \| \
22978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22984 /^X\(\/\/\)[^/].*/{
22997 test -d "$as_dir" && break
22999 test -z "$as_dirs" || eval "mkdir $as_dirs"
23000 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23001 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23002 { (exit 1); exit 1; }; }; }
23006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23009 # A ".." for each directory in $ac_dir_suffix.
23010 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23011 case $ac_top_builddir_sub in
23012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23016 ac_abs_top_builddir=$ac_pwd
23017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23018 # for backward compatibility:
23019 ac_top_builddir=$ac_top_build_prefix
23022 .) # We are building in place.
23024 ac_top_srcdir=$ac_top_builddir_sub
23025 ac_abs_top_srcdir=$ac_pwd ;;
23026 [\\/]* | ?:[\\/]* ) # Absolute name.
23027 ac_srcdir=$srcdir$ac_dir_suffix;
23028 ac_top_srcdir=$srcdir
23029 ac_abs_top_srcdir=$srcdir ;;
23030 *) # Relative name.
23031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23032 ac_top_srcdir=$ac_top_build_prefix$srcdir
23033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23050 cat >>$CONFIG_STATUS <<\_ACEOF
23051 # If the template does not know about datarootdir, expand it.
23052 # FIXME: This hack should be removed a few years after 2.60.
23053 ac_datarootdir_hack=; ac_datarootdir_seen=
23055 case `sed -n '/datarootdir/ {
23064 ' $ac_file_inputs` in
23065 *datarootdir*) ac_datarootdir_seen=yes;;
23066 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23067 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23068 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23070 cat >>$CONFIG_STATUS <<_ACEOF
23071 ac_datarootdir_hack='
23072 s&@datadir@&$datadir&g
23073 s&@docdir@&$docdir&g
23074 s&@infodir@&$infodir&g
23075 s&@localedir@&$localedir&g
23076 s&@mandir@&$mandir&g
23077 s&\\\${datarootdir}&$datarootdir&g' ;;
23081 # Neutralize VPATH when `$srcdir' = `.'.
23082 # Shell code in configure.ac might set extrasub.
23083 # FIXME: do we really want to maintain this feature?
23084 cat >>$CONFIG_STATUS <<_ACEOF
23088 cat >>$CONFIG_STATUS <<\_ACEOF
23090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23091 s&@configure_input@&$configure_input&;t t
23092 s&@top_builddir@&$ac_top_builddir_sub&;t t
23093 s&@srcdir@&$ac_srcdir&;t t
23094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23095 s&@top_srcdir@&$ac_top_srcdir&;t t
23096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23097 s&@builddir@&$ac_builddir&;t t
23098 s&@abs_builddir@&$ac_abs_builddir&;t t
23099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23100 s&@INSTALL@&$ac_INSTALL&;t t
23101 $ac_datarootdir_hack
23102 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23105 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23107 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23108 which seems to be undefined. Please make sure it is defined." >&5
23109 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23110 which seems to be undefined. Please make sure it is defined." >&2;}
23114 -) cat "$tmp/out"; rm -f "$tmp/out";;
23115 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23124 # Transform confdefs.h into a sed script `conftest.defines', that
23125 # substitutes the proper values into config.h.in to produce config.h.
23126 rm -f conftest.defines conftest.tail
23127 # First, append a space to every undef/define line, to ease matching.
23128 echo 's/$/ /' >conftest.defines
23129 # Then, protect against being on the right side of a sed subst, or in
23130 # an unquoted here document, in config.status. If some macros were
23131 # called several times there might be several #defines for the same
23132 # symbol, which is useless. But do not sort them, since the last
23133 # AC_DEFINE must be honored.
23134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23135 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23136 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23137 # PARAMS is the parameter list in the macro definition--in most cases, it's
23138 # just an empty string.
23139 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23140 ac_dB='\\)[ (].*,\\1define\\2'
23148 s/^[ ]*#[ ]*define[ ][ ]*//
23153 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23154 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23155 ' >>conftest.defines
23157 # Remove the space that was appended to ease matching.
23158 # Then replace #undef with comments. This is necessary, for
23159 # example, in the case of _POSIX_SOURCE, which is predefined and required
23160 # on some systems where configure will not decide to define it.
23161 # (The regexp can be short, since the line contains either #define or #undef.)
23163 s,^[ #]*u.*,/* & */,' >>conftest.defines
23165 # Break up conftest.defines:
23166 ac_max_sed_lines=50
23168 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23169 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23170 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23172 ac_in='$ac_file_inputs'
23173 ac_out='"$tmp/out1"'
23174 ac_nxt='"$tmp/out2"'
23178 # Write a here document:
23179 cat >>$CONFIG_STATUS <<_ACEOF
23180 # First, check the format of the line:
23181 cat >"\$tmp/defines.sed" <<\\CEOF
23182 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23183 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23187 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23189 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23190 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23191 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23192 grep . conftest.tail >/dev/null || break
23193 rm -f conftest.defines
23194 mv conftest.tail conftest.defines
23196 rm -f conftest.defines conftest.tail
23198 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23200 if test x"$ac_file" != x-; then
23201 echo "/* $configure_input */" >"$tmp/config.h"
23202 cat "$ac_result" >>"$tmp/config.h"
23203 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23204 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23205 echo "$as_me: $ac_file is unchanged" >&6;}
23208 mv "$tmp/config.h" $ac_file
23211 echo "/* $configure_input */"
23215 # Compute $ac_file's index in $config_headers.
23217 for _am_header in $config_headers :; do
23218 case $_am_header in
23219 $ac_file | $ac_file:* )
23222 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23225 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23226 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23227 X$ac_file : 'X\(//\)[^/]' \| \
23228 X$ac_file : 'X\(//\)$' \| \
23229 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23235 /^X\(\/\/\)[^/].*/{
23247 s/.*/./; q'`/stamp-h$_am_stamp_count
23250 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23251 echo "$as_me: executing $ac_file commands" >&6;}
23256 case $ac_file$ac_mode in
23257 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23258 # Strip MF so we end up with the name of the file.
23259 mf=`echo "$mf" | sed -e 's/:.*$//'`
23260 # Check whether this is an Automake generated Makefile or not.
23261 # We used to match only the files named `Makefile.in', but
23262 # some people rename them; so instead we look at the file content.
23263 # Grep'ing the first line is not enough: some people post-process
23264 # each Makefile.in and add a new line on top of each file to say so.
23265 # So let's grep whole file.
23266 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23267 dirpart=`$as_dirname -- "$mf" ||
23268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23269 X"$mf" : 'X\(//\)[^/]' \| \
23270 X"$mf" : 'X\(//\)$' \| \
23271 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23277 /^X\(\/\/\)[^/].*/{
23293 # Extract the definition of DEPDIR, am__include, and am__quote
23294 # from the Makefile without running `make'.
23295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23296 test -z "$DEPDIR" && continue
23297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23298 test -z "am__include" && continue
23299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23300 # When using ansi2knr, U may be empty or an underscore; expand it
23301 U=`sed -n 's/^U = //p' < "$mf"`
23302 # Find all dependency output files, they are included files with
23303 # $(DEPDIR) in their names. We invoke sed twice because it is the
23304 # simplest approach to changing $(DEPDIR) to its actual value in the
23306 for file in `sed -n "
23307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23309 # Make sure the directory exists.
23310 test -f "$dirpart/$file" && continue
23311 fdir=`$as_dirname -- "$file" ||
23312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23313 X"$file" : 'X\(//\)[^/]' \| \
23314 X"$file" : 'X\(//\)$' \| \
23315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23321 /^X\(\/\/\)[^/].*/{
23334 { as_dir=$dirpart/$fdir
23336 -*) as_dir=./$as_dir;;
23338 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23342 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23343 *) as_qdir=$as_dir;;
23345 as_dirs="'$as_qdir' $as_dirs"
23346 as_dir=`$as_dirname -- "$as_dir" ||
23347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23348 X"$as_dir" : 'X\(//\)[^/]' \| \
23349 X"$as_dir" : 'X\(//\)$' \| \
23350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23356 /^X\(\/\/\)[^/].*/{
23369 test -d "$as_dir" && break
23371 test -z "$as_dirs" || eval "mkdir $as_dirs"
23372 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23373 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23374 { (exit 1); exit 1; }; }; }
23375 # echo "creating $dirpart/$file"
23376 echo '# dummy' > "$dirpart/$file"
23385 { (exit 0); exit 0; }
23387 chmod +x $CONFIG_STATUS
23388 ac_clean_files=$ac_clean_files_save
23391 # configure is writing to config.log, and then calls config.status.
23392 # config.status does its own redirection, appending to config.log.
23393 # Unfortunately, on DOS this fails, as config.log is still kept open
23394 # by configure, so config.status won't be able to write to it; its
23395 # output is simply discarded. So we exec the FD to /dev/null,
23396 # effectively closing config.log, so it can be properly (re)opened and
23397 # appended to by config.status. When coming back to configure, we
23398 # need to make the FD available again.
23399 if test "$no_create" != yes; then
23401 ac_config_status_args=
23402 test "$silent" = yes &&
23403 ac_config_status_args="$ac_config_status_args --quiet"
23405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23408 # would make configure fail if this is the last instruction.
23409 $ac_cs_success || { (exit 1); exit 1; }