2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#47 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for OpenBSM 1.1alpha4.
6 # Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='OpenBSM'
731 PACKAGE_TARNAME='openbsm'
732 PACKAGE_VERSION='1.1alpha4'
733 PACKAGE_STRING='OpenBSM 1.1alpha4'
734 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
736 ac_unique_file="bin/auditreduce/auditreduce.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
784 program_transform_name
813 MAINTAINER_MODE_FALSE
815 USE_NATIVE_INCLUDES_TRUE
816 USE_NATIVE_INCLUDES_FALSE
863 INSTALL_STRIP_PROGRAM
884 HAVE_AUDIT_SYSCALLS_TRUE
885 HAVE_AUDIT_SYSCALLS_FALSE
890 ac_precious_vars='build_alias
907 # Initialize some variables set by options.
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name=s,x,x,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
965 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014 eval enable_$ac_feature=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033 eval enable_$ac_feature=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1197 -site=* | --site=* | --sit=*)
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1224 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261 { (exit 1); exit 1; }; }
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269 { (exit 1); exit 1; }; }
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 { echo "$as_me: error: missing argument to $ac_option" >&2
1287 { (exit 1); exit 1; }; }
1290 # Be sure to have absolute directory names.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302 { (exit 1); exit 1; }; }
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used." >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 { echo "$as_me: error: Working directory cannot be determined" >&2
1333 { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 { echo "$as_me: error: pwd does not report name of working directory" >&2
1336 { (exit 1); exit 1; }; }
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$0" : 'X\(//\)[^/]' \| \
1346 X"$0" : 'X\(//\)$' \| \
1347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376 { (exit 1); exit 1; }; }
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381 { (exit 1); exit 1; }; }
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures OpenBSM 1.1alpha4 to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of OpenBSM 1.1alpha4:";;
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-maintainer-mode enable make rules and dependencies not useful
1485 (and sometimes confusing) to the casual installer
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-dependency-tracking speeds up one-time build
1492 --enable-dependency-tracking do not reject slow dependency extractors
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-native-includes Use the system native include files instead of those
1498 included with openbsm.
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1502 --with-tags[=TAGS] include additional configurations [automatic]
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 F77 Fortran 77 compiler command
1517 FFLAGS Fortran 77 compiler flags
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1522 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1583 OpenBSM configure 1.1alpha4
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by OpenBSM $as_me 1.1alpha4, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 ac_header_list="$ac_header_list sys/time.h"
1871 ac_header_list="$ac_header_list unistd.h"
1872 ac_func_list="$ac_func_list alarm"
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 for ac_dir in config "$srcdir"/config; do
1957 if test -f "$ac_dir/install-sh"; then
1959 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 elif test -f "$ac_dir/install.sh"; then
1963 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 elif test -f "$ac_dir/shtool"; then
1967 ac_install_sh="$ac_aux_dir/shtool install -c"
1971 if test -z "$ac_aux_dir"; then
1972 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1974 { (exit 1); exit 1; }; }
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1986 ac_config_headers="$ac_config_headers config/config.h"
1988 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1989 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1990 # Check whether --enable-maintainer-mode was given.
1991 if test "${enable_maintainer_mode+set}" = set; then
1992 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1994 USE_MAINTAINER_MODE=no
1997 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1998 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1999 if test $USE_MAINTAINER_MODE = yes; then
2000 MAINTAINER_MODE_TRUE=
2001 MAINTAINER_MODE_FALSE='#'
2003 MAINTAINER_MODE_TRUE='#'
2004 MAINTAINER_MODE_FALSE=
2007 MAINT=$MAINTAINER_MODE_TRUE
2011 # --with-native-includes forces the use of the system bsm headers.
2013 # Check whether --with-native-includes was given.
2014 if test "${with_native_includes+set}" = set; then
2015 withval=$with_native_includes;
2017 cat >>confdefs.h <<\_ACEOF
2018 #define USE_NATIVE_INCLUDES
2021 use_native_includes=true
2024 use_native_includes=false
2027 if $use_native_includes; then
2028 USE_NATIVE_INCLUDES_TRUE=
2029 USE_NATIVE_INCLUDES_FALSE='#'
2031 USE_NATIVE_INCLUDES_TRUE='#'
2032 USE_NATIVE_INCLUDES_FALSE=
2038 # Extract the first word of "$ac_prog", so it can be a program name with args.
2039 set dummy $ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_path_MIG+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2057 ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 if test -n "$MIG"; then
2070 { echo "$as_me:$LINENO: result: $MIG" >&5
2071 echo "${ECHO_T}$MIG" >&6; }
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2078 test -n "$MIG" && break
2082 # Checks for programs.
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 if test -n "$CC"; then
2118 { echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6; }
2121 { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2127 if test -z "$ac_cv_prog_CC"; then
2129 # Extract the first word of "gcc", so it can be a program name with args.
2130 set dummy gcc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_ac_ct_CC="gcc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2165 if test "x$ac_ct_CC" = x; then
2168 case $cross_compiling:$ac_tool_warned in
2170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2171 whose name does not start with the host triplet. If you think this
2172 configuration is useful to you, please write to autoconf@gnu.org." >&5
2173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet. If you think this
2175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2176 ac_tool_warned=yes ;;
2184 if test -z "$CC"; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_CC="${ac_tool_prefix}cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2225 if test -z "$CC"; then
2226 # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245 ac_prog_rejected=yes
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 if test $ac_prog_rejected = yes; then
2257 # We found a bogon in the path, so make sure we never use it.
2258 set dummy $ac_cv_prog_CC
2260 if test $# != 0; then
2261 # We chose a different compiler from the bogus one.
2262 # However, it has the same basename, so the bogon will be chosen
2263 # first if we set CC to just the basename; use the full file name.
2265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2271 if test -n "$CC"; then
2272 { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 for ac_prog in cl.exe
2285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 if test -n "$CC"; then
2314 { echo "$as_me:$LINENO: result: $CC" >&5
2315 echo "${ECHO_T}$CC" >&6; }
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2322 test -n "$CC" && break
2325 if test -z "$CC"; then
2327 for ac_prog in cl.exe
2329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$ac_ct_CC"; then
2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_ac_ct_CC="$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6; }
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2366 test -n "$ac_ct_CC" && break
2369 if test "x$ac_ct_CC" = x; then
2372 case $cross_compiling:$ac_tool_warned in
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2389 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2395 # Provide some information about the compiler.
2396 echo "$as_me:$LINENO: checking for C compiler version" >&5
2397 ac_compiler=`set X $ac_compile; echo $2`
2398 { (ac_try="$ac_compiler --version >&5"
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_compiler --version >&5") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }
2408 { (ac_try="$ac_compiler -v >&5"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compiler -v >&5") 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }
2418 { (ac_try="$ac_compiler -V >&5"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compiler -V >&5") 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2449 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2453 # List of possible output files, starting from the most likely.
2454 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2455 # only as a last resort. b.out is created by i960 compilers.
2456 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2458 # The IRIX 6 linker writes into existing files which may not be
2459 # executable, retaining their permissions. Remove them first so a
2460 # subsequent execution test works.
2462 for ac_file in $ac_files
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2471 if { (ac_try="$ac_link_default"
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_link_default") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2483 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2484 # so that the user can short-circuit this test for compilers unknown to
2486 for ac_file in $ac_files ''
2488 test -f "$ac_file" || continue
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2493 # We found the default executable, but exeext='' is most
2497 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2499 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 # We set ac_cv_exeext here because the later test for it is not
2502 # safe: cross compilers may not add the suffix if given an `-o'
2503 # argument, so we may need to know it at that point already.
2504 # Even if this section looks crufty: it has the advantage of
2511 test "$ac_cv_exeext" = no && ac_cv_exeext=
2517 { echo "$as_me:$LINENO: result: $ac_file" >&5
2518 echo "${ECHO_T}$ac_file" >&6; }
2519 if test -z "$ac_file"; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&2;}
2527 { (exit 77); exit 77; }; }
2530 ac_exeext=$ac_cv_exeext
2532 # Check that the compiler produces executables we can run. If not, either
2533 # the compiler is broken, or we cross compile.
2534 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2535 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2536 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2537 # If not cross compiling, check that we can run a simple program.
2538 if test "$cross_compiling" != yes; then
2539 if { ac_try='./$ac_file'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 if test "$cross_compiling" = maybe; then
2554 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2555 If you meant to cross compile, use \`--host'.
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot run C compiled programs.
2558 If you meant to cross compile, use \`--host'.
2559 See \`config.log' for more details." >&2;}
2560 { (exit 1); exit 1; }; }
2564 { echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6; }
2567 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2568 ac_clean_files=$ac_clean_files_save
2569 # Check that the compiler produces executables we can run. If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2572 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2573 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2574 echo "${ECHO_T}$cross_compiling" >&6; }
2576 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2577 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2578 if { (ac_try="$ac_link"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_link") 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
2588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2590 # work properly (i.e., refer to `conftest.exe'), while it won't with
2592 for ac_file in conftest.exe conftest conftest.*; do
2593 test -f "$ac_file" || continue
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest$ac_cv_exeext
2610 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2611 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2613 rm -f conftest.$ac_ext
2614 EXEEXT=$ac_cv_exeext
2616 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2617 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2618 if test "${ac_cv_objext+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2636 rm -f conftest.o conftest.obj
2637 if { (ac_try="$ac_compile"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; then
2647 for ac_file in conftest.o conftest.obj conftest.*; do
2648 test -f "$ac_file" || continue;
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2668 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 echo "${ECHO_T}$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2672 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2724 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2726 GCC=`test $ac_compiler_gnu = yes && echo yes`
2727 ac_test_CFLAGS=${CFLAGS+set}
2728 ac_save_CFLAGS=$CFLAGS
2729 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2730 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_cc_g+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 ac_save_c_werror_flag=$ac_c_werror_flag
2735 ac_c_werror_flag=yes
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2753 rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compile") 2>conftest.er1
2762 grep -v '^ *+' conftest.er1 >conftest.err
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } && {
2767 test -z "$ac_c_werror_flag" ||
2768 test ! -s conftest.err
2769 } && test -s conftest.$ac_objext; then
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compile") 2>conftest.er1
2800 grep -v '^ *+' conftest.er1 >conftest.err
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && {
2805 test -z "$ac_c_werror_flag" ||
2806 test ! -s conftest.err
2807 } && test -s conftest.$ac_objext; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 ac_c_werror_flag=$ac_save_c_werror_flag
2815 cat >conftest.$ac_ext <<_ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2830 rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compile") 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } && {
2844 test -z "$ac_c_werror_flag" ||
2845 test ! -s conftest.err
2846 } && test -s conftest.$ac_objext; then
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2864 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2865 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2866 if test "$ac_test_CFLAGS" = set; then
2867 CFLAGS=$ac_save_CFLAGS
2868 elif test $ac_cv_prog_cc_g = yes; then
2869 if test "$GCC" = yes; then
2875 if test "$GCC" = yes; then
2881 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2882 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_cc_c89+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 ac_cv_prog_cc_c89=no
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2896 #include <sys/types.h>
2897 #include <sys/stat.h>
2898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2899 struct buf { int x; };
2900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2901 static char *e (p, i)
2907 static char *f (char * (*g) (char **, int), char **p, ...)
2912 s = g (p, va_arg (v,int));
2917 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2918 function prototypes and stuff, but not '\xHH' hex character constants.
2919 These don't provoke an error unfortunately, instead are silently treated
2920 as 'x'. The following induces an error, until -std is added to get
2921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2922 array size at least. It's necessary to write '\x00'==0 to get something
2923 that's true only with -std. */
2924 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2926 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2927 inside strings and character constants. */
2929 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2931 int test (int i, double x);
2932 struct s1 {int (*f) (int a);};
2933 struct s2 {int (*f) (double a);};
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2945 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2948 CC="$ac_save_CC $ac_arg"
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } && {
2963 test -z "$ac_c_werror_flag" ||
2964 test ! -s conftest.err
2965 } && test -s conftest.$ac_objext; then
2966 ac_cv_prog_cc_c89=$ac_arg
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f core conftest.err conftest.$ac_objext
2975 test "x$ac_cv_prog_cc_c89" != "xno" && break
2977 rm -f conftest.$ac_ext
2982 case "x$ac_cv_prog_cc_c89" in
2984 { echo "$as_me:$LINENO: result: none needed" >&5
2985 echo "${ECHO_T}none needed" >&6; } ;;
2987 { echo "$as_me:$LINENO: result: unsupported" >&5
2988 echo "${ECHO_T}unsupported" >&6; } ;;
2990 CC="$CC $ac_cv_prog_cc_c89"
2991 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2992 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 # Find a good install program. We prefer a C program (faster),
3003 # so one script is as good as another. But avoid the broken or
3004 # incompatible versions:
3005 # SysV /etc/install, /usr/sbin/install
3006 # SunOS /usr/etc/install
3007 # IRIX /sbin/install
3009 # AmigaOS /C/install, which installs bootblocks on floppy discs
3010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3013 # OS/2's system install, which has a completely different semantic
3014 # ./install, which can be erroneously created by make from ./install.sh.
3015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3017 if test -z "$INSTALL"; then
3018 if test "${ac_cv_path_install+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 # Account for people who put trailing slashes in PATH elements.
3028 ./ | .// | /cC/* | \
3029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3030 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3033 # OSF1 and SCO ODT 3.0 have their own names for install.
3034 # Don't use installbsd from OSF since it installs stuff as root
3036 for ac_prog in ginstall scoinst install; do
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3039 if test $ac_prog = install &&
3040 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041 # AIX install. It has an incompatible calling convention.
3043 elif test $ac_prog = install &&
3044 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045 # program-specific install script used by HP pwplus--don't use.
3048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL=$ac_cv_path_install
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL=$ac_install_sh
3071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3072 echo "${ECHO_T}$INSTALL" >&6; }
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082 # Check whether --enable-shared was given.
3083 if test "${enable_shared+set}" = set; then
3084 enableval=$enable_shared; p=${PACKAGE-default}
3086 yes) enable_shared=yes ;;
3087 no) enable_shared=no ;;
3090 # Look at the argument we got. We use all the common list separators.
3091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3092 for pkg in $enableval; do
3094 if test "X$pkg" = "X$p"; then
3106 # Check whether --enable-static was given.
3107 if test "${enable_static+set}" = set; then
3108 enableval=$enable_static; p=${PACKAGE-default}
3110 yes) enable_static=yes ;;
3111 no) enable_static=no ;;
3114 # Look at the argument we got. We use all the common list separators.
3115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3116 for pkg in $enableval; do
3118 if test "X$pkg" = "X$p"; then
3130 # Check whether --enable-fast-install was given.
3131 if test "${enable_fast_install+set}" = set; then
3132 enableval=$enable_fast_install; p=${PACKAGE-default}
3134 yes) enable_fast_install=yes ;;
3135 no) enable_fast_install=no ;;
3137 enable_fast_install=no
3138 # Look at the argument we got. We use all the common list separators.
3139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3140 for pkg in $enableval; do
3142 if test "X$pkg" = "X$p"; then
3143 enable_fast_install=yes
3150 enable_fast_install=yes
3154 # Make sure we can run config.sub.
3155 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3156 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3157 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3158 { (exit 1); exit 1; }; }
3160 { echo "$as_me:$LINENO: checking build system type" >&5
3161 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3162 if test "${ac_cv_build+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_build_alias=$build_alias
3166 test "x$ac_build_alias" = x &&
3167 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x &&
3169 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3170 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3171 { (exit 1); exit 1; }; }
3172 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3173 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3174 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3175 { (exit 1); exit 1; }; }
3178 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3179 echo "${ECHO_T}$ac_cv_build" >&6; }
3180 case $ac_cv_build in
3182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3183 echo "$as_me: error: invalid value of canonical build" >&2;}
3184 { (exit 1); exit 1; }; };;
3187 ac_save_IFS=$IFS; IFS='-'
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3200 { echo "$as_me:$LINENO: checking host system type" >&5
3201 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3202 if test "${ac_cv_host+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test "x$host_alias" = x; then
3206 ac_cv_host=$ac_cv_build
3208 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3211 { (exit 1); exit 1; }; }
3215 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3216 echo "${ECHO_T}$ac_cv_host" >&6; }
3219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3220 echo "$as_me: error: invalid value of canonical host" >&2;}
3221 { (exit 1); exit 1; }; };;
3224 ac_save_IFS=$IFS; IFS='-'
3230 # Remember, the first character of IFS is used to create $*,
3231 # except with old shells:
3234 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3237 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3238 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3239 if test "${lt_cv_path_SED+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 # Loop through the user's path and test for sed and gsed.
3243 # Then use that list of sed's as ones to test for truncation.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for lt_ac_prog in sed gsed; do
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3252 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3260 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3261 # along with /bin/sed that truncates output.
3262 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3263 test ! -f $lt_ac_sed && continue
3264 cat /dev/null > conftest.in
3266 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3267 # Check for GNU sed and select it if it is found.
3268 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3269 lt_cv_path_SED=$lt_ac_sed
3273 cat conftest.in conftest.in >conftest.tmp
3274 mv conftest.tmp conftest.in
3275 cp conftest.in conftest.nl
3277 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3278 cmp -s conftest.out conftest.nl || break
3279 # 10000 chars as input seems more than enough
3280 test $lt_ac_count -gt 10 && break
3281 lt_ac_count=`expr $lt_ac_count + 1`
3282 if test $lt_ac_count -gt $lt_ac_max; then
3283 lt_ac_max=$lt_ac_count
3284 lt_cv_path_SED=$lt_ac_sed
3293 { echo "$as_me:$LINENO: result: $SED" >&5
3294 echo "${ECHO_T}$SED" >&6; }
3296 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3297 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3298 if test "${ac_cv_path_GREP+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 # Extract the first word of "grep ggrep" to use in msg output
3302 if test -z "$GREP"; then
3303 set dummy grep ggrep; ac_prog_name=$2
3304 if test "${ac_cv_path_GREP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 ac_path_GREP_found=false
3308 # Loop through the user's path and test for each of PROGNAME-LIST
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3313 test -z "$as_dir" && as_dir=.
3314 for ac_prog in grep ggrep; do
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3317 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3318 # Check for GNU ac_path_GREP and select it if it is found.
3319 # Check for GNU $ac_path_GREP
3320 case `"$ac_path_GREP" --version 2>&1` in
3322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3325 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3328 cat "conftest.in" "conftest.in" >"conftest.tmp"
3329 mv "conftest.tmp" "conftest.in"
3330 cp "conftest.in" "conftest.nl"
3331 echo 'GREP' >> "conftest.nl"
3332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3334 ac_count=`expr $ac_count + 1`
3335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3336 # Best one so far, save it but keep looking for a better one
3337 ac_cv_path_GREP="$ac_path_GREP"
3338 ac_path_GREP_max=$ac_count
3340 # 10*(2^10) chars as input seems more than enough
3341 test $ac_count -gt 10 && break
3343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3347 $ac_path_GREP_found && break 3
3357 GREP="$ac_cv_path_GREP"
3358 if test -z "$GREP"; then
3359 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3360 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3361 { (exit 1); exit 1; }; }
3365 ac_cv_path_GREP=$GREP
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3372 GREP="$ac_cv_path_GREP"
3375 { echo "$as_me:$LINENO: checking for egrep" >&5
3376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3377 if test "${ac_cv_path_EGREP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3381 then ac_cv_path_EGREP="$GREP -E"
3383 # Extract the first word of "egrep" to use in msg output
3384 if test -z "$EGREP"; then
3385 set dummy egrep; ac_prog_name=$2
3386 if test "${ac_cv_path_EGREP+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 ac_path_EGREP_found=false
3390 # Loop through the user's path and test for each of PROGNAME-LIST
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3395 test -z "$as_dir" && as_dir=.
3396 for ac_prog in egrep; do
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3400 # Check for GNU ac_path_EGREP and select it if it is found.
3401 # Check for GNU $ac_path_EGREP
3402 case `"$ac_path_EGREP" --version 2>&1` in
3404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3410 cat "conftest.in" "conftest.in" >"conftest.tmp"
3411 mv "conftest.tmp" "conftest.in"
3412 cp "conftest.in" "conftest.nl"
3413 echo 'EGREP' >> "conftest.nl"
3414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3416 ac_count=`expr $ac_count + 1`
3417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3418 # Best one so far, save it but keep looking for a better one
3419 ac_cv_path_EGREP="$ac_path_EGREP"
3420 ac_path_EGREP_max=$ac_count
3422 # 10*(2^10) chars as input seems more than enough
3423 test $ac_count -gt 10 && break
3425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3429 $ac_path_EGREP_found && break 3
3439 EGREP="$ac_cv_path_EGREP"
3440 if test -z "$EGREP"; then
3441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3443 { (exit 1); exit 1; }; }
3447 ac_cv_path_EGREP=$EGREP
3453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3455 EGREP="$ac_cv_path_EGREP"
3459 # Check whether --with-gnu-ld was given.
3460 if test "${with_gnu_ld+set}" = set; then
3461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3467 if test "$GCC" = yes; then
3468 # Check if gcc -print-prog-name=ld gives a path.
3469 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3473 # gcc leaves a trailing carriage return which upsets mingw
3474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3479 # Accept absolute paths.
3481 re_direlt='/[^/][^/]*/\.\./'
3482 # Canonicalize the pathname of ld
3483 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3484 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3485 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3487 test -z "$LD" && LD="$ac_prog"
3490 # If it fails, then pretend we aren't using GCC.
3494 # If it is relative, then search for the first ld in PATH.
3498 elif test "$with_gnu_ld" = yes; then
3499 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3502 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3505 if test "${lt_cv_path_LD+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if test -z "$LD"; then
3509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3510 for ac_dir in $PATH; do
3512 test -z "$ac_dir" && ac_dir=.
3513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3514 lt_cv_path_LD="$ac_dir/$ac_prog"
3515 # Check to see if the program is GNU ld. I'd rather use --version,
3516 # but apparently some variants of GNU ld only accept -v.
3517 # Break only if it was the GNU/non-GNU ld that we prefer.
3518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3519 *GNU* | *'with BFD'*)
3520 test "$with_gnu_ld" != no && break
3523 test "$with_gnu_ld" != yes && break
3530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3535 if test -n "$LD"; then
3536 { echo "$as_me:$LINENO: result: $LD" >&5
3537 echo "${ECHO_T}$LD" >&6; }
3539 { echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6; }
3542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3544 { (exit 1); exit 1; }; }
3545 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3551 case `$LD -v 2>&1 </dev/null` in
3552 *GNU* | *'with BFD'*)
3553 lt_cv_prog_gnu_ld=yes
3556 lt_cv_prog_gnu_ld=no
3560 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3562 with_gnu_ld=$lt_cv_prog_gnu_ld
3565 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3566 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3567 if test "${lt_cv_ld_reload_flag+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 lt_cv_ld_reload_flag='-r'
3572 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3573 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3574 reload_flag=$lt_cv_ld_reload_flag
3575 case $reload_flag in
3577 *) reload_flag=" $reload_flag" ;;
3579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3582 if test "$GCC" = yes; then
3583 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3590 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3592 if test "${lt_cv_path_NM+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$NM"; then
3596 # Let the user override the test.
3599 lt_nm_to_check="${ac_tool_prefix}nm"
3600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3601 lt_nm_to_check="$lt_nm_to_check nm"
3603 for lt_tmp_nm in $lt_nm_to_check; do
3604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3607 test -z "$ac_dir" && ac_dir=.
3608 tmp_nm="$ac_dir/$lt_tmp_nm"
3609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3610 # Check to see if the nm accepts a BSD-compat flag.
3611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3612 # nm: unknown option "B" ignored
3613 # Tru64's nm complains that /dev/null is an invalid object file
3614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3615 */dev/null* | *'Invalid file or object type'*)
3616 lt_cv_path_NM="$tmp_nm -B"
3620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3622 lt_cv_path_NM="$tmp_nm -p"
3626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3627 continue # so that we can try to find one that supports BSD flags
3636 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3639 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3640 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3646 if test "$LN_S" = "ln -s"; then
3647 { echo "$as_me:$LINENO: result: yes" >&5
3648 echo "${ECHO_T}yes" >&6; }
3650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3651 echo "${ECHO_T}no, using $LN_S" >&6; }
3654 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3655 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3656 if test "${lt_cv_deplibs_check_method+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 lt_cv_file_magic_cmd='$MAGIC_CMD'
3660 lt_cv_file_magic_test_file=
3661 lt_cv_deplibs_check_method='unknown'
3662 # Need to set the preceding variable on all platforms that support
3663 # interlibrary dependencies.
3664 # 'none' -- dependencies not supported.
3665 # `unknown' -- same as none, but documents that we really don't know.
3666 # 'pass_all' -- all dependencies passed with no checks.
3667 # 'test_compile' -- check by making test program.
3668 # 'file_magic [[regex]]' -- check by looking for files in library path
3669 # which responds to the $file_magic_cmd with a given extended regex.
3670 # If you have `file' or equivalent on your system and you're not sure
3671 # whether `pass_all' will *always* work, you probably want this one.
3675 lt_cv_deplibs_check_method=pass_all
3679 lt_cv_deplibs_check_method=pass_all
3683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3684 lt_cv_file_magic_cmd='/usr/bin/file -L'
3685 lt_cv_file_magic_test_file=/shlib/libc.so
3689 # func_win32_libid is a shell function defined in ltmain.sh
3690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3691 lt_cv_file_magic_cmd='func_win32_libid'
3695 # Base MSYS/MinGW do not provide the 'file' command needed by
3696 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3697 # unless we find 'file', for example because we are cross-compiling.
3698 if ( file / ) >/dev/null 2>&1; then
3699 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3700 lt_cv_file_magic_cmd='func_win32_libid'
3702 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3703 lt_cv_file_magic_cmd='$OBJDUMP -f'
3707 darwin* | rhapsody*)
3708 lt_cv_deplibs_check_method=pass_all
3711 freebsd* | dragonfly*)
3712 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3715 # Not sure whether the presence of OpenBSD here was a mistake.
3716 # Let's accept both of them until this is cleared up.
3717 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3718 lt_cv_file_magic_cmd=/usr/bin/file
3719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3723 lt_cv_deplibs_check_method=pass_all
3728 lt_cv_deplibs_check_method=pass_all
3731 hpux10.20* | hpux11*)
3732 lt_cv_file_magic_cmd=/usr/bin/file
3735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3736 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3739 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]'
3740 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3744 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3750 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3754 irix5* | irix6* | nonstopux*)
3756 *-32|*"-32 ") libmagic=32-bit;;
3757 *-n32|*"-n32 ") libmagic=N32;;
3758 *-64|*"-64 ") libmagic=64-bit;;
3759 *) libmagic=never-match;;
3761 lt_cv_deplibs_check_method=pass_all
3764 # This must be Linux ELF.
3765 linux* | k*bsd*-gnu)
3766 lt_cv_deplibs_check_method=pass_all
3770 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3779 lt_cv_file_magic_cmd=/usr/bin/file
3780 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3784 lt_cv_deplibs_check_method=unknown
3788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3795 osf3* | osf4* | osf5*)
3796 lt_cv_deplibs_check_method=pass_all
3800 lt_cv_deplibs_check_method=pass_all
3804 lt_cv_deplibs_check_method=pass_all
3808 case $host_vendor in
3810 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]'
3811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3814 lt_cv_deplibs_check_method=pass_all
3817 lt_cv_file_magic_cmd='/bin/file'
3818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3821 lt_cv_file_magic_cmd='/bin/file'
3822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3823 lt_cv_file_magic_test_file=/lib/libc.so
3826 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_deplibs_check_method=pass_all
3834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3835 lt_cv_deplibs_check_method=pass_all
3840 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3841 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3842 file_magic_cmd=$lt_cv_file_magic_cmd
3843 deplibs_check_method=$lt_cv_deplibs_check_method
3844 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3849 # If no C compiler was specified, use CC.
3852 # If no C compiler flags were specified, use CFLAGS.
3853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3855 # Allow CC to be a program name with arguments.
3859 # Check whether --enable-libtool-lock was given.
3860 if test "${enable_libtool_lock+set}" = set; then
3861 enableval=$enable_libtool_lock;
3864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3866 # Some flags need to be propagated to the compiler or linker for good
3870 # Find out which ABI we are using.
3871 echo 'int i;' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 case `/usr/bin/file conftest.$ac_objext` in
3889 # Find out which ABI we are using.
3890 echo '#line 3890 "configure"' > conftest.$ac_ext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; then
3896 if test "$lt_cv_prog_gnu_ld" = yes; then
3897 case `/usr/bin/file conftest.$ac_objext` in
3899 LD="${LD-ld} -melf32bsmip"
3902 LD="${LD-ld} -melf32bmipn32"
3905 LD="${LD-ld} -melf64bmip"
3909 case `/usr/bin/file conftest.$ac_objext` in
3925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3926 s390*-*linux*|sparc*-*linux*)
3927 # Find out which ABI we are using.
3928 echo 'int i;' > conftest.$ac_ext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; then
3934 case `/usr/bin/file conftest.o` in
3937 x86_64-*kfreebsd*-gnu)
3938 LD="${LD-ld} -m elf_i386_fbsd"
3941 LD="${LD-ld} -m elf_i386"
3943 ppc64-*linux*|powerpc64-*linux*)
3944 LD="${LD-ld} -m elf32ppclinux"
3947 LD="${LD-ld} -m elf_s390"
3950 LD="${LD-ld} -m elf32_sparc"
3956 x86_64-*kfreebsd*-gnu)
3957 LD="${LD-ld} -m elf_x86_64_fbsd"
3960 LD="${LD-ld} -m elf_x86_64"
3962 ppc*-*linux*|powerpc*-*linux*)
3963 LD="${LD-ld} -m elf64ppc"
3966 LD="${LD-ld} -m elf64_s390"
3969 LD="${LD-ld} -m elf64_sparc"
3979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3980 SAVE_CFLAGS="$CFLAGS"
3981 CFLAGS="$CFLAGS -belf"
3982 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3983 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3984 if test "${lt_cv_cc_needs_belf+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 cat >conftest.$ac_ext <<_ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
4008 rm -f conftest.$ac_objext conftest$ac_exeext
4009 if { (ac_try="$ac_link"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_link") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1 >conftest.err
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest$ac_exeext &&
4025 $as_test_x conftest$ac_exeext; then
4026 lt_cv_cc_needs_belf=yes
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 lt_cv_cc_needs_belf=no
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035 conftest$ac_exeext conftest.$ac_ext
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4044 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4045 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4046 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4047 CFLAGS="$SAVE_CFLAGS"
4051 # Find out which ABI we are using.
4052 echo 'int i;' > conftest.$ac_ext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; then
4058 case `/usr/bin/file conftest.o` in
4060 case $lt_cv_prog_gnu_ld in
4061 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4062 *) LD="${LD-ld} -64" ;;
4073 need_locks="$enable_libtool_lock"
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4082 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4083 # On Suns, sometimes $CPP names a directory.
4084 if test -n "$CPP" && test -d "$CPP"; then
4087 if test -z "$CPP"; then
4088 if test "${ac_cv_prog_CPP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # Double quotes because CPP needs to be expanded
4092 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4095 for ac_c_preproc_warn_flag in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 # include <limits.h>
4112 # include <assert.h>
4116 if { (ac_try="$ac_cpp conftest.$ac_ext"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } >/dev/null && {
4129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4130 test ! -s conftest.err
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 # Broken: fails on valid input.
4141 rm -f conftest.err conftest.$ac_ext
4143 # OK, works on sane cases. Now check whether nonexistent headers
4144 # can be detected and how.
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <ac_nonexistent.h>
4153 if { (ac_try="$ac_cpp conftest.$ac_ext"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } >/dev/null && {
4166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4169 # Broken: success on invalid input.
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 # Passes both tests.
4180 rm -f conftest.err conftest.$ac_ext
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.err conftest.$ac_ext
4185 if $ac_preproc_ok; then
4197 { echo "$as_me:$LINENO: result: $CPP" >&5
4198 echo "${ECHO_T}$CPP" >&6; }
4200 for ac_c_preproc_warn_flag in '' yes
4202 # Use a header file that comes with gcc, so configuring glibc
4203 # with a fresh cross-compiler works.
4204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205 # <limits.h> exists even on freestanding compilers.
4206 # On the NeXT, cc -E runs the code through the compiler's parser,
4207 # not just through cpp. "Syntax error" is here to catch this case.
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4215 # include <limits.h>
4217 # include <assert.h>
4221 if { (ac_try="$ac_cpp conftest.$ac_ext"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } >/dev/null && {
4234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 # Broken: fails on valid input.
4246 rm -f conftest.err conftest.$ac_ext
4248 # OK, works on sane cases. Now check whether nonexistent headers
4249 # can be detected and how.
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <ac_nonexistent.h>
4258 if { (ac_try="$ac_cpp conftest.$ac_ext"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } >/dev/null && {
4271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4274 # Broken: success on invalid input.
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 # Passes both tests.
4285 rm -f conftest.err conftest.$ac_ext
4288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289 rm -f conftest.err conftest.$ac_ext
4290 if $ac_preproc_ok; then
4293 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details." >&2;}
4297 { (exit 1); exit 1; }; }
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4309 if test "${ac_cv_header_stdc+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest.$ac_objext; then
4348 ac_cv_header_stdc=yes
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_header_stdc=no
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 if test $ac_cv_header_stdc = yes; then
4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "memchr" >/dev/null 2>&1; then
4373 ac_cv_header_stdc=no
4379 if test $ac_cv_header_stdc = yes; then
4380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "free" >/dev/null 2>&1; then
4394 ac_cv_header_stdc=no
4400 if test $ac_cv_header_stdc = yes; then
4401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4402 if test "$cross_compiling" = yes; then
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4417 # define ISLOWER(c) \
4418 (('a' <= (c) && (c) <= 'i') \
4419 || ('j' <= (c) && (c) <= 'r') \
4420 || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4429 for (i = 0; i < 256; i++)
4430 if (XOR (islower (i), ISLOWER (i))
4431 || toupper (i) != TOUPPER (i))
4436 rm -f conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_link") 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: program exited with status $ac_status" >&5
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_cv_header_stdc=no
4465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4471 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4472 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4473 if test $ac_cv_header_stdc = yes; then
4475 cat >>confdefs.h <<\_ACEOF
4476 #define STDC_HEADERS 1
4481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4492 inttypes.h stdint.h unistd.h
4494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4508 #include <$ac_header>
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_compile") 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest.$ac_objext; then
4527 eval "$as_ac_Header=yes"
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 eval "$as_ac_Header=no"
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_res=`eval echo '${'$as_ac_Header'}'`
4538 { echo "$as_me:$LINENO: result: $ac_res" >&5
4539 echo "${ECHO_T}$ac_res" >&6; }
4540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541 cat >>confdefs.h <<_ACEOF
4542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 for ac_header in dlfcn.h
4553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_res=`eval echo '${'$as_ac_Header'}'`
4561 { echo "$as_me:$LINENO: result: $ac_res" >&5
4562 echo "${ECHO_T}$ac_res" >&6; }
4564 # Is the header compilable?
4565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4574 #include <$ac_header>
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_compile") 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && {
4590 test -z "$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 } && test -s conftest.$ac_objext; then
4593 ac_header_compiler=yes
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 ac_header_compiler=no
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4603 echo "${ECHO_T}$ac_header_compiler" >&6; }
4605 # Is the header present?
4606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 #include <$ac_header>
4616 if { (ac_try="$ac_cpp conftest.$ac_ext"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } >/dev/null && {
4629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4630 test ! -s conftest.err
4632 ac_header_preproc=yes
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 ac_header_preproc=no
4640 rm -f conftest.err conftest.$ac_ext
4641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4642 echo "${ECHO_T}$ac_header_preproc" >&6; }
4644 # So? What about this header?
4645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4651 ac_header_preproc=yes
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4667 ## ----------------------------------------------- ##
4668 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
4669 ## ----------------------------------------------- ##
4671 ) | sed "s/^/$as_me: WARNING: /" >&2
4674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 eval "$as_ac_Header=\$ac_header_preproc"
4681 ac_res=`eval echo '${'$as_ac_Header'}'`
4682 { echo "$as_me:$LINENO: result: $ac_res" >&5
4683 echo "${ECHO_T}$ac_res" >&6; }
4686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4687 cat >>confdefs.h <<_ACEOF
4688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 ac_cpp='$CXXCPP $CPPFLAGS'
4697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4700 if test -z "$CXX"; then
4701 if test -n "$CCC"; then
4704 if test -n "$ac_tool_prefix"; then
4705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711 if test "${ac_cv_prog_CXX+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 if test -n "$CXX"; then
4715 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 if test -n "$CXX"; then
4736 { echo "$as_me:$LINENO: result: $CXX" >&5
4737 echo "${ECHO_T}$CXX" >&6; }
4739 { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4744 test -n "$CXX" && break
4747 if test -z "$CXX"; then
4749 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 if test -n "$ac_ct_CXX"; then
4759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_ac_ct_CXX="$ac_prog"
4769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4779 if test -n "$ac_ct_CXX"; then
4780 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4781 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4783 { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4788 test -n "$ac_ct_CXX" && break
4791 if test "x$ac_ct_CXX" = x; then
4794 case $cross_compiling:$ac_tool_warned in
4796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4797 whose name does not start with the host triplet. If you think this
4798 configuration is useful to you, please write to autoconf@gnu.org." >&5
4799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4800 whose name does not start with the host triplet. If you think this
4801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4802 ac_tool_warned=yes ;;
4810 # Provide some information about the compiler.
4811 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4812 ac_compiler=`set X $ac_compile; echo $2`
4813 { (ac_try="$ac_compiler --version >&5"
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_compiler --version >&5") 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }
4823 { (ac_try="$ac_compiler -v >&5"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_compiler -v >&5") 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }
4833 { (ac_try="$ac_compiler -V >&5"
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_compiler -V >&5") 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }
4844 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4845 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4867 rm -f conftest.$ac_objext
4868 if { (ac_try="$ac_compile"
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_compile") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } && {
4881 test -z "$ac_cxx_werror_flag" ||
4882 test ! -s conftest.err
4883 } && test -s conftest.$ac_objext; then
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4896 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4897 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4898 GXX=`test $ac_compiler_gnu = yes && echo yes`
4899 ac_test_CXXFLAGS=${CXXFLAGS+set}
4900 ac_save_CXXFLAGS=$CXXFLAGS
4901 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4902 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_cxx_g+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4907 ac_cxx_werror_flag=yes
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_cxx_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4942 ac_cv_prog_cxx_g=yes
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_cxx_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
5002 rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_compile") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && {
5016 test -z "$ac_cxx_werror_flag" ||
5017 test ! -s conftest.err
5018 } && test -s conftest.$ac_objext; then
5019 ac_cv_prog_cxx_g=yes
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5037 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5038 if test "$ac_test_CXXFLAGS" = set; then
5039 CXXFLAGS=$ac_save_CXXFLAGS
5040 elif test $ac_cv_prog_cxx_g = yes; then
5041 if test "$GXX" = yes; then
5047 if test "$GXX" = yes; then
5054 ac_cpp='$CXXCPP $CPPFLAGS'
5055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5061 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5062 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5063 (test "X$CXX" != "Xg++"))) ; then
5065 ac_cpp='$CXXCPP $CPPFLAGS'
5066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5069 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5070 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5071 if test -z "$CXXCPP"; then
5072 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 # Double quotes because CXXCPP needs to be expanded
5076 for CXXCPP in "$CXX -E" "/lib/cpp"
5079 for ac_cxx_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null && {
5113 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5114 test ! -s conftest.err
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 # Broken: fails on valid input.
5125 rm -f conftest.err conftest.$ac_ext
5127 # OK, works on sane cases. Now check whether nonexistent headers
5128 # can be detected and how.
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <ac_nonexistent.h>
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null && {
5150 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5151 test ! -s conftest.err
5153 # Broken: success on invalid input.
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 # Passes both tests.
5164 rm -f conftest.err conftest.$ac_ext
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then
5174 ac_cv_prog_CXXCPP=$CXXCPP
5177 CXXCPP=$ac_cv_prog_CXXCPP
5179 ac_cv_prog_CXXCPP=$CXXCPP
5181 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5182 echo "${ECHO_T}$CXXCPP" >&6; }
5184 for ac_cxx_preproc_warn_flag in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 # include <limits.h>
5201 # include <assert.h>
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } >/dev/null && {
5218 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5219 test ! -s conftest.err
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 # Broken: fails on valid input.
5230 rm -f conftest.err conftest.$ac_ext
5232 # OK, works on sane cases. Now check whether nonexistent headers
5233 # can be detected and how.
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ac_nonexistent.h>
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5250 grep -v '^ *+' conftest.er1 >conftest.err
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } >/dev/null && {
5255 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5256 test ! -s conftest.err
5258 # Broken: success on invalid input.
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 # Passes both tests.
5269 rm -f conftest.err conftest.$ac_ext
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then
5277 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5280 See \`config.log' for more details." >&2;}
5281 { (exit 1); exit 1; }; }
5285 ac_cpp='$CXXCPP $CPPFLAGS'
5286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5294 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5295 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5297 if test -n "$ac_tool_prefix"; then
5298 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
5300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5304 if test "${ac_cv_prog_F77+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 if test -n "$F77"; then
5308 ac_cv_prog_F77="$F77" # Let the user override the test.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 if test -n "$F77"; then
5329 { echo "$as_me:$LINENO: result: $F77" >&5
5330 echo "${ECHO_T}$F77" >&6; }
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5337 test -n "$F77" && break
5340 if test -z "$F77"; then
5342 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
5344 # Extract the first word of "$ac_prog", so it can be a program name with args.
5345 set dummy $ac_prog; ac_word=$2
5346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -n "$ac_ct_F77"; then
5352 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_prog_ac_ct_F77="$ac_prog"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5372 if test -n "$ac_ct_F77"; then
5373 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5374 echo "${ECHO_T}$ac_ct_F77" >&6; }
5376 { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5381 test -n "$ac_ct_F77" && break
5384 if test "x$ac_ct_F77" = x; then
5387 case $cross_compiling:$ac_tool_warned in
5389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet. If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&5
5392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5393 whose name does not start with the host triplet. If you think this
5394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5395 ac_tool_warned=yes ;;
5402 # Provide some information about the compiler.
5403 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5404 ac_compiler=`set X $ac_compile; echo $2`
5405 { (ac_try="$ac_compiler --version >&5"
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compiler --version >&5") 2>&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }
5415 { (ac_try="$ac_compiler -v >&5"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compiler -v >&5") 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }
5425 { (ac_try="$ac_compiler -V >&5"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compiler -V >&5") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }
5437 # If we don't use `.F' as extension, the preprocessor is not run on the
5438 # input file. (Note that this only needs to work for GNU compilers.)
5441 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5442 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5443 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_f77_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5483 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5484 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5486 ac_test_FFLAGS=${FFLAGS+set}
5487 ac_save_FFLAGS=$FFLAGS
5489 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5490 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5491 if test "${ac_cv_prog_f77_g+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat >conftest.$ac_ext <<_ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_f77_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_prog_f77_g=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5529 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5530 if test "$ac_test_FFLAGS" = set; then
5531 FFLAGS=$ac_save_FFLAGS
5532 elif test $ac_cv_prog_f77_g = yes; then
5533 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5539 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5546 G77=`test $ac_compiler_gnu = yes && echo yes`
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5557 # find the maximum length of command line arguments
5558 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5559 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5560 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 # On DJGPP, this test can blow up pretty badly due to problems in libc
5569 # (any single argument exceeding 2000 bytes causes a buffer overrun
5570 # during glob expansion). Even if it were fixed, the result of this
5571 # check would be larger than it should be.
5572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5576 # Under GNU Hurd, this test is not required because there is
5577 # no limit to the length of command line arguments.
5578 # Libtool will interpret -1 as no limit whatsoever
5579 lt_cv_sys_max_cmd_len=-1;
5583 # On Win9x/ME, this test blows up -- it succeeds, but takes
5584 # about 5 minutes as the teststring grows exponentially.
5585 # Worse, since 9x/ME are not pre-emptively multitasking,
5586 # you end up with a "frozen" computer, even though with patience
5587 # the test eventually succeeds (with a max line length of 256k).
5588 # Instead, let's just punt: use the minimum linelength reported by
5589 # all of the supported platforms: 8192 (on NT/2K/XP).
5590 lt_cv_sys_max_cmd_len=8192;
5594 # On AmigaOS with pdksh, this test takes hours, literally.
5595 # So we just punt and use a minimum line length of 8192.
5596 lt_cv_sys_max_cmd_len=8192;
5599 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5600 # This has been around since 386BSD, at least. Likely further.
5601 if test -x /sbin/sysctl; then
5602 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5603 elif test -x /usr/sbin/sysctl; then
5604 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5606 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5608 # And add a safety zone
5609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5614 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5615 lt_cv_sys_max_cmd_len=196608
5619 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5620 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5621 # nice to cause kernel panics so lets avoid the loop below.
5622 # First set a reasonable default.
5623 lt_cv_sys_max_cmd_len=16384
5625 if test -x /sbin/sysconfig; then
5626 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5627 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5632 lt_cv_sys_max_cmd_len=102400
5634 sysv5* | sco5v6* | sysv4.2uw2*)
5635 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5636 if test -n "$kargmax"; then
5637 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5639 lt_cv_sys_max_cmd_len=32768
5643 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5644 if test -n "$lt_cv_sys_max_cmd_len"; then
5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5648 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5649 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5650 = "XX$teststring") >/dev/null 2>&1 &&
5651 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5652 lt_cv_sys_max_cmd_len=$new_result &&
5653 test $i != 17 # 1/2 MB should be enough
5656 teststring=$teststring$teststring
5659 # Add a significant safety factor because C++ compilers can tack on massive
5660 # amounts of additional arguments before passing them to the linker.
5661 # It appears as though 1/2 is a usable value.
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5669 if test -n $lt_cv_sys_max_cmd_len ; then
5670 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5671 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5673 { echo "$as_me:$LINENO: result: none" >&5
5674 echo "${ECHO_T}none" >&6; }
5681 # Check for command to grab the raw symbol name followed by C symbol from nm.
5682 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5683 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5684 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 # These are sane defaults that work on at least a few old systems.
5689 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5691 # Character class describing NM global symbol codes.
5692 symcode='[BCDEGRST]'
5694 # Regexp to match symbols that can be accessed directly from C.
5695 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5697 # Transform an extracted symbol line into a proper C declaration
5698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5700 # Transform an extracted symbol line into symbol name and symbol address
5701 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'"
5703 # Define system-specific variables.
5708 cygwin* | mingw* | pw32*)
5709 symcode='[ABCDGISTW]'
5711 hpux*) # Its linker distinguishes data from code symbols
5712 if test "$host_cpu" = ia64; then
5713 symcode='[ABCDEGRST]'
5715 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5716 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'"
5718 linux* | k*bsd*-gnu)
5719 if test "$host_cpu" = ia64; then
5720 symcode='[ABCDGIRSTW]'
5721 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5722 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'"
5726 symcode='[BCDEGRST]'
5729 symcode='[BCDEGQRST]'
5740 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5748 # Handle CRLF in mingw tool chain
5752 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5756 # If we're using GNU nm, then use its standard symbol codes.
5757 case `$NM -V 2>&1` in
5758 *GNU* | *'with BFD'*)
5759 symcode='[ABCDGIRSTW]' ;;
5762 # Try without a prefix undercore, then with it.
5763 for ac_symprfx in "" "_"; do
5765 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5766 symxfrm="\\1 $ac_symprfx\\2 \\2"
5768 # Write the raw and C identifiers.
5769 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5771 # Check to see that the pipe works correctly.
5775 cat > conftest.$ac_ext <<EOF
5780 void nm_test_func(){}
5784 int main(){nm_test_var='a';nm_test_func();return(0);}
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; then
5792 # Now try to grab the symbols.
5794 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5795 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && test -s "$nlist"; then
5799 # Try sorting and uniquifying the output.
5800 if sort "$nlist" | uniq > "$nlist"T; then
5801 mv -f "$nlist"T "$nlist"
5806 # Make sure that we snagged all the symbols we need.
5807 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5808 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5809 cat <<EOF > conftest.$ac_ext
5815 # Now generate the symbol file.
5816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5818 cat <<EOF >> conftest.$ac_ext
5819 #if defined (__STDC__) && __STDC__
5820 # define lt_ptr_t void *
5822 # define lt_ptr_t char *
5826 /* The mapping between symbol names and symbols. */
5831 lt_preloaded_symbols[] =
5834 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5835 cat <<\EOF >> conftest.$ac_ext
5843 # Now try linking the two files.
5844 mv conftest.$ac_objext conftstm.$ac_objext
5845 lt_save_LIBS="$LIBS"
5846 lt_save_CFLAGS="$CFLAGS"
5847 LIBS="conftstm.$ac_objext"
5848 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5856 LIBS="$lt_save_LIBS"
5857 CFLAGS="$lt_save_CFLAGS"
5859 echo "cannot find nm_test_func in $nlist" >&5
5862 echo "cannot find nm_test_var in $nlist" >&5
5865 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5868 echo "$progname: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5871 rm -f conftest* conftst*
5873 # Do not use the global_symbol_pipe unless it works.
5874 if test "$pipe_works" = yes; then
5877 lt_cv_sys_global_symbol_pipe=
5883 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5884 lt_cv_sys_global_symbol_to_cdecl=
5886 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5887 { echo "$as_me:$LINENO: result: failed" >&5
5888 echo "${ECHO_T}failed" >&6; }
5890 { echo "$as_me:$LINENO: result: ok" >&5
5891 echo "${ECHO_T}ok" >&6; }
5894 { echo "$as_me:$LINENO: checking for objdir" >&5
5895 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5896 if test "${lt_cv_objdir+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 rm -f .libs 2>/dev/null
5900 mkdir .libs 2>/dev/null
5901 if test -d .libs; then
5904 # MS-DOS does not allow filenames that begin with a dot.
5907 rmdir .libs 2>/dev/null
5909 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5910 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5911 objdir=$lt_cv_objdir
5919 # AIX sometimes has problems with the GCC collect2 program. For some
5920 # reason, if we set the COLLECT_NAMES environment variable, the problems
5921 # vanish in a puff of smoke.
5922 if test "X${COLLECT_NAMES+set}" != Xset; then
5924 export COLLECT_NAMES
5929 # Sed substitution that helps us do robust quoting. It backslashifies
5930 # metacharacters that are still active within double-quoted strings.
5931 Xsed='sed -e 1s/^X//'
5932 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5934 # Same as above, but do not quote variable references.
5935 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5937 # Sed substitution to delay expansion of an escaped shell variable in a
5938 # double_quote_subst'ed string.
5939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5941 # Sed substitution to avoid accidental globbing in evaled expressions
5942 no_glob_subst='s/\*/\\\*/g'
5948 default_ofile=libtool
5949 can_build_shared=yes
5951 # All known linkers require a `.a' archive for static linking (except MSVC,
5952 # which needs '.lib').
5954 ltmain="$ac_aux_dir/ltmain.sh"
5955 ofile="$default_ofile"
5956 with_gnu_ld="$lt_cv_prog_gnu_ld"
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}ar; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_AR+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 if test -n "$AR"; then
5967 ac_cv_prog_AR="$AR" # Let the user override the test.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_AR="${ac_tool_prefix}ar"
5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 if test -n "$AR"; then
5988 { echo "$as_me:$LINENO: result: $AR" >&5
5989 echo "${ECHO_T}$AR" >&6; }
5991 { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5997 if test -z "$ac_cv_prog_AR"; then
5999 # Extract the first word of "ar", so it can be a program name with args.
6000 set dummy ar; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$ac_ct_AR"; then
6007 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_AR="ar"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6027 if test -n "$ac_ct_AR"; then
6028 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6029 echo "${ECHO_T}$ac_ct_AR" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6035 if test "x$ac_ct_AR" = x; then
6038 case $cross_compiling:$ac_tool_warned in
6040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041 whose name does not start with the host triplet. If you think this
6042 configuration is useful to you, please write to autoconf@gnu.org." >&5
6043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044 whose name does not start with the host triplet. If you think this
6045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046 ac_tool_warned=yes ;;
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_RANLIB+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 if test -n "$RANLIB"; then
6063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 RANLIB=$ac_cv_prog_RANLIB
6083 if test -n "$RANLIB"; then
6084 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6085 echo "${ECHO_T}$RANLIB" >&6; }
6087 { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6093 if test -z "$ac_cv_prog_RANLIB"; then
6094 ac_ct_RANLIB=$RANLIB
6095 # Extract the first word of "ranlib", so it can be a program name with args.
6096 set dummy ranlib; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if test -n "$ac_ct_RANLIB"; then
6103 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_ac_ct_RANLIB="ranlib"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6123 if test -n "$ac_ct_RANLIB"; then
6124 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6125 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6131 if test "x$ac_ct_RANLIB" = x; then
6134 case $cross_compiling:$ac_tool_warned in
6136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6137 whose name does not start with the host triplet. If you think this
6138 configuration is useful to you, please write to autoconf@gnu.org." >&5
6139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet. If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6142 ac_tool_warned=yes ;;
6144 RANLIB=$ac_ct_RANLIB
6147 RANLIB="$ac_cv_prog_RANLIB"
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_STRIP+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180 { echo "$as_me:$LINENO: result: $STRIP" >&5
6181 echo "${ECHO_T}$STRIP" >&6; }
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6189 if test -z "$ac_cv_prog_STRIP"; then
6191 # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_STRIP="strip"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6221 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6227 if test "x$ac_ct_STRIP" = x; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6233 whose name does not start with the host triplet. If you think this
6234 configuration is useful to you, please write to autoconf@gnu.org." >&5
6235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet. If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6238 ac_tool_warned=yes ;;
6243 STRIP="$ac_cv_prog_STRIP"
6248 old_CFLAGS="$CFLAGS"
6250 # Set sane defaults for various variables
6251 test -z "$AR" && AR=ar
6252 test -z "$AR_FLAGS" && AR_FLAGS=cru
6253 test -z "$AS" && AS=as
6254 test -z "$CC" && CC=cc
6255 test -z "$LTCC" && LTCC=$CC
6256 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6257 test -z "$DLLTOOL" && DLLTOOL=dlltool
6258 test -z "$LD" && LD=ld
6259 test -z "$LN_S" && LN_S="ln -s"
6260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6261 test -z "$NM" && NM=nm
6262 test -z "$SED" && SED=sed
6263 test -z "$OBJDUMP" && OBJDUMP=objdump
6264 test -z "$RANLIB" && RANLIB=:
6265 test -z "$STRIP" && STRIP=:
6266 test -z "$ac_objext" && ac_objext=o
6268 # Determine commands to create old-style static archives.
6269 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6270 old_postinstall_cmds='chmod 644 $oldlib'
6271 old_postuninstall_cmds=
6273 if test -n "$RANLIB"; then
6276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6282 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6285 for cc_temp in $compiler""; do
6287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6296 # Only perform the check for file, if the check method requires it
6297 case $deplibs_check_method in
6299 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6300 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6301 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6310 lt_save_MAGIC_CMD="$MAGIC_CMD"
6311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6313 for ac_dir in $ac_dummy; do
6315 test -z "$ac_dir" && ac_dir=.
6316 if test -f $ac_dir/${ac_tool_prefix}file; then
6317 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6318 if test -n "$file_magic_test_file"; then
6319 case $deplibs_check_method in
6321 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6323 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6324 $EGREP "$file_magic_regex" > /dev/null; then
6329 *** Warning: the command libtool uses to detect shared libraries,
6330 *** $file_magic_cmd, produces output that libtool cannot recognize.
6331 *** The result is that libtool may fail to recognize shared libraries
6332 *** as such. This will affect the creation of libtool libraries that
6333 *** depend on shared libraries, but programs linked with such libtool
6334 *** libraries will work regardless of this problem. Nevertheless, you
6335 *** may want to report the problem to your system manager and/or to
6336 *** bug-libtool@gnu.org
6346 MAGIC_CMD="$lt_save_MAGIC_CMD"
6351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6352 if test -n "$MAGIC_CMD"; then
6353 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6354 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6360 if test -z "$lt_cv_path_MAGIC_CMD"; then
6361 if test -n "$ac_tool_prefix"; then
6362 { echo "$as_me:$LINENO: checking for file" >&5
6363 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6364 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6372 lt_save_MAGIC_CMD="$MAGIC_CMD"
6373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6374 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6375 for ac_dir in $ac_dummy; do
6377 test -z "$ac_dir" && ac_dir=.
6378 if test -f $ac_dir/file; then
6379 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6380 if test -n "$file_magic_test_file"; then
6381 case $deplibs_check_method in
6383 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6385 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6386 $EGREP "$file_magic_regex" > /dev/null; then
6391 *** Warning: the command libtool uses to detect shared libraries,
6392 *** $file_magic_cmd, produces output that libtool cannot recognize.
6393 *** The result is that libtool may fail to recognize shared libraries
6394 *** as such. This will affect the creation of libtool libraries that
6395 *** depend on shared libraries, but programs linked with such libtool
6396 *** libraries will work regardless of this problem. Nevertheless, you
6397 *** may want to report the problem to your system manager and/or to
6398 *** bug-libtool@gnu.org
6408 MAGIC_CMD="$lt_save_MAGIC_CMD"
6413 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6414 if test -n "$MAGIC_CMD"; then
6415 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6416 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6418 { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then
6436 enableval=$enable_libtool_lock;
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442 # Check whether --with-pic was given.
6443 if test "${with_pic+set}" = set; then
6444 withval=$with_pic; pic_mode="$withval"
6449 test -z "$pic_mode" && pic_mode=default
6451 # Use C for the default configuration in the libtool script
6455 ac_cpp='$CPP $CPPFLAGS'
6456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461 # Source file extension for C test sources.
6464 # Object file extension for compiled C test sources.
6468 # Code to be used in simple compile tests
6469 lt_simple_compile_test_code="int some_variable = 0;"
6471 # Code to be used in simple link tests
6472 lt_simple_link_test_code='int main(){return(0);}'
6475 # If no C compiler was specified, use CC.
6478 # If no C compiler flags were specified, use CFLAGS.
6479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6481 # Allow CC to be a program name with arguments.
6485 # save warnings/boilerplate of simple test code
6486 ac_outfile=conftest.$ac_objext
6487 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6488 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6489 _lt_compiler_boilerplate=`cat conftest.err`
6492 ac_outfile=conftest.$ac_objext
6493 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6494 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6495 _lt_linker_boilerplate=`cat conftest.err`
6500 lt_prog_compiler_no_builtin_flag=
6502 if test "$GCC" = yes; then
6503 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6506 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6507 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6508 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 lt_cv_prog_compiler_rtti_exceptions=no
6512 ac_outfile=conftest.$ac_objext
6513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6514 lt_compiler_flag="-fno-rtti -fno-exceptions"
6515 # Insert the option either (1) after the last *FLAGS variable, or
6516 # (2) before a word containing "conftest.", or (3) at the end.
6517 # Note that $ac_compile itself does not contain backslashes and begins
6518 # with a dollar sign (not a hyphen), so the echo should work correctly.
6519 # The option is referenced via a variable to avoid confusing sed.
6520 lt_compile=`echo "$ac_compile" | $SED \
6521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6523 -e 's:$: $lt_compiler_flag:'`
6524 (eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
6525 (eval "$lt_compile" 2>conftest.err)
6527 cat conftest.err >&5
6528 echo "$as_me:6528: \$? = $ac_status" >&5
6529 if (exit $ac_status) && test -s "$ac_outfile"; then
6530 # The compiler can only warn and ignore the option if not recognized
6531 # So say no if there are warnings other than the usual output.
6532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6535 lt_cv_prog_compiler_rtti_exceptions=yes
6541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6542 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6545 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6552 lt_prog_compiler_wl=
6553 lt_prog_compiler_pic=
6554 lt_prog_compiler_static=
6556 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6557 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6559 if test "$GCC" = yes; then
6560 lt_prog_compiler_wl='-Wl,'
6561 lt_prog_compiler_static='-static'
6565 # All AIX code is PIC.
6566 if test "$host_cpu" = ia64; then
6567 # AIX 5 now supports IA64 processor
6568 lt_prog_compiler_static='-Bstatic'
6573 # FIXME: we need at least 68020 code to build shared libraries, but
6574 # adding the `-m68020' flag to GCC prevents building anything better,
6576 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6580 # PIC is the default for these OSes.
6583 mingw* | cygwin* | pw32* | os2*)
6584 # This hack is so that the source file can tell whether it is being
6585 # built for inclusion in a dll (and should export symbols for example).
6586 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6587 # (--disable-auto-import) libraries
6588 lt_prog_compiler_pic='-DDLL_EXPORT'
6591 darwin* | rhapsody*)
6592 # PIC is the default on this platform
6593 # Common symbols not allowed in MH_DYLIB files
6594 lt_prog_compiler_pic='-fno-common'
6598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6599 # Instead, we relocate shared libraries at runtime.
6603 # Just because we use GCC doesn't mean we suddenly get shared libraries
6604 # on systems that don't support them.
6605 lt_prog_compiler_can_build_shared=no
6610 if test -d /usr/nec; then
6611 lt_prog_compiler_pic=-Kconform_pic
6616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6623 lt_prog_compiler_pic='-fPIC'
6629 lt_prog_compiler_pic='-fPIC'
6633 # PORTME Check for flag to pass linker flags through the system compiler.
6636 lt_prog_compiler_wl='-Wl,'
6637 if test "$host_cpu" = ia64; then
6638 # AIX 5 now supports IA64 processor
6639 lt_prog_compiler_static='-Bstatic'
6641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6645 # PIC is the default on this platform
6646 # Common symbols not allowed in MH_DYLIB files
6647 case $cc_basename in
6649 lt_prog_compiler_pic='-qnocommon'
6650 lt_prog_compiler_wl='-Wl,'
6655 mingw* | cygwin* | pw32* | os2*)
6656 # This hack is so that the source file can tell whether it is being
6657 # built for inclusion in a dll (and should export symbols for example).
6658 lt_prog_compiler_pic='-DDLL_EXPORT'
6661 hpux9* | hpux10* | hpux11*)
6662 lt_prog_compiler_wl='-Wl,'
6663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6670 lt_prog_compiler_pic='+Z'
6673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6674 lt_prog_compiler_static='${wl}-a ${wl}archive'
6677 irix5* | irix6* | nonstopux*)
6678 lt_prog_compiler_wl='-Wl,'
6679 # PIC (with -KPIC) is the default.
6680 lt_prog_compiler_static='-non_shared'
6684 lt_prog_compiler_pic='-KPIC'
6685 lt_prog_compiler_static='-Bstatic'
6688 linux* | k*bsd*-gnu)
6689 case $cc_basename in
6691 lt_prog_compiler_wl='-Wl,'
6692 lt_prog_compiler_pic='-KPIC'
6693 lt_prog_compiler_static='-static'
6695 pgcc* | pgf77* | pgf90* | pgf95*)
6696 # Portland Group compilers (*not* the Pentium gcc compiler,
6697 # which looks to be a dead project)
6698 lt_prog_compiler_wl='-Wl,'
6699 lt_prog_compiler_pic='-fpic'
6700 lt_prog_compiler_static='-Bstatic'
6703 lt_prog_compiler_wl='-Wl,'
6704 # All Alpha code is PIC.
6705 lt_prog_compiler_static='-non_shared'
6708 case `$CC -V 2>&1 | sed 5q` in
6711 lt_prog_compiler_pic='-KPIC'
6712 lt_prog_compiler_static='-Bstatic'
6713 lt_prog_compiler_wl='-Wl,'
6716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6717 lt_prog_compiler_pic='-KPIC'
6718 lt_prog_compiler_static='-Bstatic'
6719 lt_prog_compiler_wl=''
6726 osf3* | osf4* | osf5*)
6727 lt_prog_compiler_wl='-Wl,'
6728 # All OSF/1 code is PIC.
6729 lt_prog_compiler_static='-non_shared'
6733 lt_prog_compiler_static='-non_shared'
6737 lt_prog_compiler_pic='-KPIC'
6738 lt_prog_compiler_static='-Bstatic'
6739 case $cc_basename in
6741 lt_prog_compiler_wl='-Qoption ld ';;
6743 lt_prog_compiler_wl='-Wl,';;
6748 lt_prog_compiler_wl='-Qoption ld '
6749 lt_prog_compiler_pic='-PIC'
6750 lt_prog_compiler_static='-Bstatic'
6753 sysv4 | sysv4.2uw2* | sysv4.3*)
6754 lt_prog_compiler_wl='-Wl,'
6755 lt_prog_compiler_pic='-KPIC'
6756 lt_prog_compiler_static='-Bstatic'
6760 if test -d /usr/nec ;then
6761 lt_prog_compiler_pic='-Kconform_pic'
6762 lt_prog_compiler_static='-Bstatic'
6766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6767 lt_prog_compiler_wl='-Wl,'
6768 lt_prog_compiler_pic='-KPIC'
6769 lt_prog_compiler_static='-Bstatic'
6773 lt_prog_compiler_wl='-Wl,'
6774 lt_prog_compiler_can_build_shared=no
6778 lt_prog_compiler_pic='-pic'
6779 lt_prog_compiler_static='-Bstatic'
6783 lt_prog_compiler_can_build_shared=no
6788 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6789 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6792 # Check to make sure the PIC flag actually works.
6794 if test -n "$lt_prog_compiler_pic"; then
6796 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6798 if test "${lt_prog_compiler_pic_works+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 lt_prog_compiler_pic_works=no
6802 ac_outfile=conftest.$ac_objext
6803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6804 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6805 # Insert the option either (1) after the last *FLAGS variable, or
6806 # (2) before a word containing "conftest.", or (3) at the end.
6807 # Note that $ac_compile itself does not contain backslashes and begins
6808 # with a dollar sign (not a hyphen), so the echo should work correctly.
6809 # The option is referenced via a variable to avoid confusing sed.
6810 lt_compile=`echo "$ac_compile" | $SED \
6811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6813 -e 's:$: $lt_compiler_flag:'`
6814 (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
6815 (eval "$lt_compile" 2>conftest.err)
6817 cat conftest.err >&5
6818 echo "$as_me:6818: \$? = $ac_status" >&5
6819 if (exit $ac_status) && test -s "$ac_outfile"; then
6820 # The compiler can only warn and ignore the option if not recognized
6821 # So say no if there are warnings other than the usual output.
6822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6825 lt_prog_compiler_pic_works=yes
6831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6832 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6834 if test x"$lt_prog_compiler_pic_works" = xyes; then
6835 case $lt_prog_compiler_pic in
6837 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6840 lt_prog_compiler_pic=
6841 lt_prog_compiler_can_build_shared=no
6846 # For platforms which do not support PIC, -DPIC is meaningless:
6848 lt_prog_compiler_pic=
6851 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6856 # Check to make sure the static flag actually works.
6858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6859 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6860 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6861 if test "${lt_prog_compiler_static_works+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 lt_prog_compiler_static_works=no
6865 save_LDFLAGS="$LDFLAGS"
6866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6869 # The linker can only warn and ignore the option if not recognized
6870 # So say no if there are warnings
6871 if test -s conftest.err; then
6872 # Append any errors to the config.log.
6873 cat conftest.err 1>&5
6874 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6876 if diff conftest.exp conftest.er2 >/dev/null; then
6877 lt_prog_compiler_static_works=yes
6880 lt_prog_compiler_static_works=yes
6884 LDFLAGS="$save_LDFLAGS"
6887 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6888 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6890 if test x"$lt_prog_compiler_static_works" = xyes; then
6893 lt_prog_compiler_static=
6897 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 lt_cv_prog_compiler_c_o=no
6903 $rm -r conftest 2>/dev/null
6907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6909 lt_compiler_flag="-o out/conftest2.$ac_objext"
6910 # Insert the option either (1) after the last *FLAGS variable, or
6911 # (2) before a word containing "conftest.", or (3) at the end.
6912 # Note that $ac_compile itself does not contain backslashes and begins
6913 # with a dollar sign (not a hyphen), so the echo should work correctly.
6914 lt_compile=`echo "$ac_compile" | $SED \
6915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6917 -e 's:$: $lt_compiler_flag:'`
6918 (eval echo "\"\$as_me:6918: $lt_compile\"" >&5)
6919 (eval "$lt_compile" 2>out/conftest.err)
6921 cat out/conftest.err >&5
6922 echo "$as_me:6922: \$? = $ac_status" >&5
6923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6925 # The compiler can only warn and ignore the option if not recognized
6926 # So say no if there are warnings
6927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6930 lt_cv_prog_compiler_c_o=yes
6935 # SGI C++ compiler will create directory out/ii_files/ for
6936 # template instantiation
6937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6938 $rm out/* && rmdir out
6944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6948 hard_links="nottested"
6949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6950 # do not overwrite the value of need_locks provided by the user
6951 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6957 ln conftest.a conftest.b 2>&5 || hard_links=no
6958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6959 { echo "$as_me:$LINENO: result: $hard_links" >&5
6960 echo "${ECHO_T}$hard_links" >&6; }
6961 if test "$hard_links" = no; then
6962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6970 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6974 allow_undefined_flag=
6975 enable_shared_with_static_runtimes=no
6977 archive_expsym_cmds=
6978 old_archive_From_new_cmds=
6979 old_archive_from_expsyms_cmds=
6980 export_dynamic_flag_spec=
6981 whole_archive_flag_spec=
6982 thread_safe_flag_spec=
6983 hardcode_libdir_flag_spec=
6984 hardcode_libdir_flag_spec_ld=
6985 hardcode_libdir_separator=
6988 hardcode_shlibpath_var=unsupported
6989 link_all_deplibs=unknown
6990 hardcode_automatic=no
6993 always_export_symbols=no
6994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6995 # include_expsyms should be a list of space-separated symbols to be *always*
6996 # included in the symbol list
6998 # exclude_expsyms can be an extended regexp of symbols to exclude
6999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7001 # as well as any symbol that contains `d'.
7002 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7004 # platforms (ab)use it in PIC code, but their linkers get confused if
7005 # the symbol is explicitly referenced. Since portable code cannot
7006 # rely on this symbol name, it's probably fine to never include it in
7007 # preloaded symbol tables.
7008 extract_expsyms_cmds=
7009 # Just being paranoid about ensuring that cc_basename is set.
7010 for cc_temp in $compiler""; do
7012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7021 cygwin* | mingw* | pw32*)
7022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7023 # When not using gcc, we currently assume that we are using
7024 # Microsoft Visual C++.
7025 if test "$GCC" != yes; then
7030 # we just hope/assume this is gcc and not c89 (= MSVC++)
7039 if test "$with_gnu_ld" = yes; then
7040 # If archive_cmds runs LD, not CC, wlarc should be empty
7043 # Set some defaults for GNU ld with shared library support. These
7044 # are reset later if shared libraries are not supported. Putting them
7045 # here allows them to be overridden if necessary.
7046 runpath_var=LD_RUN_PATH
7047 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7048 export_dynamic_flag_spec='${wl}--export-dynamic'
7049 # ancient GNU ld didn't support --whole-archive et. al.
7050 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7051 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7053 whole_archive_flag_spec=
7055 supports_anon_versioning=no
7056 case `$LD -v 2>/dev/null` in
7057 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7058 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7059 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7060 *\ 2.11.*) ;; # other 2.11 versions
7061 *) supports_anon_versioning=yes ;;
7064 # See if GNU ld supports shared libraries.
7066 aix3* | aix4* | aix5*)
7067 # On AIX/PPC, the GNU linker is very broken
7068 if test "$host_cpu" != ia64; then
7072 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7073 *** to be unable to reliably create shared libraries on AIX.
7074 *** Therefore, libtool is disabling shared libraries support. If you
7075 *** really care for shared libraries, you may want to modify your PATH
7076 *** so that a non-GNU linker is found, and then restart.
7083 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)'
7084 hardcode_libdir_flag_spec='-L$libdir'
7085 hardcode_minus_L=yes
7087 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7088 # that the semantics of dynamic libraries on AmigaOS, at least up
7089 # to version 4, is to share data among multiple programs linked
7090 # with the same dynamic library. Since this doesn't match the
7091 # behavior of shared libraries on other platforms, we can't use
7097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7098 allow_undefined_flag=unsupported
7099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7100 # support --undefined. This deserves some investigation. FIXME
7101 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7107 cygwin* | mingw* | pw32*)
7108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7109 # as there is no search path for DLLs.
7110 hardcode_libdir_flag_spec='-L$libdir'
7111 allow_undefined_flag=unsupported
7112 always_export_symbols=no
7113 enable_shared_with_static_runtimes=yes
7114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7116 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7118 # If the export-symbols file already is a .def file (1st line
7119 # is EXPORTS), use it as is; otherwise, prepend...
7120 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7121 cp $export_symbols $output_objdir/$soname.def;
7123 echo EXPORTS > $output_objdir/$soname.def;
7124 cat $export_symbols >> $output_objdir/$soname.def;
7126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7134 hardcode_shlibpath_var=no
7135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7136 export_dynamic_flag_spec='${wl}-E'
7137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7138 # Instead, shared libraries are loaded at an image base (0x10000000 by
7139 # default) and relocated if they conflict, which is a slow very memory
7140 # consuming and fragmenting process. To avoid this, we pick a random,
7141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7144 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'
7147 gnu* | linux* | k*bsd*-gnu)
7148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7150 case $cc_basename,$host_cpu in
7151 pgcc*) # Portland Group C compiler
7152 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'
7153 tmp_addflag=' $pic_flag'
7155 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7156 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'
7157 tmp_addflag=' $pic_flag -Mnomain' ;;
7158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7159 tmp_addflag=' -i_dynamic' ;;
7160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7161 tmp_addflag=' -i_dynamic -nofor_main' ;;
7162 ifc* | ifort*) # Intel Fortran compiler
7163 tmp_addflag=' -nofor_main' ;;
7165 case `$CC -V 2>&1 | sed 5q` in
7166 *Sun\ C*) # Sun C 5.9
7167 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'
7168 tmp_sharedflag='-G' ;;
7169 *Sun\ F*) # Sun Fortran 8.3
7170 tmp_sharedflag='-G' ;;
7172 tmp_sharedflag='-shared' ;;
7174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7176 if test $supports_anon_versioning = yes; then
7177 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7179 $echo "local: *; };" >> $output_objdir/$libname.ver~
7180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7189 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7198 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7203 *** create shared libraries on Solaris systems. Therefore, libtool
7204 *** is disabling shared libraries support. We urge you to upgrade GNU
7205 *** binutils to release 2.9.1 or newer. Another option is to modify
7206 *** your PATH or compiler configuration so that the native linker is
7207 *** used, and then restart.
7210 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7219 case `$LD -v 2>&1` in
7220 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7225 *** reliably create shared libraries on SCO systems. Therefore, libtool
7226 *** is disabling shared libraries support. We urge you to upgrade GNU
7227 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7228 *** your PATH or compiler configuration so that the native linker is
7229 *** used, and then restart.
7234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7235 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7246 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_shlibpath_var=no
7253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7262 if test "$ld_shlibs" = no; then
7264 hardcode_libdir_flag_spec=
7265 export_dynamic_flag_spec=
7266 whole_archive_flag_spec=
7269 # PORTME fill in a description of your system's linker (not GNU ld)
7272 allow_undefined_flag=unsupported
7273 always_export_symbols=yes
7274 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'
7275 # Note: this linker hardcodes the directories in LIBPATH if there
7276 # are no directories specified by -L.
7277 hardcode_minus_L=yes
7278 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7279 # Neither direct hardcoding nor static linking is supported with a
7281 hardcode_direct=unsupported
7286 if test "$host_cpu" = ia64; then
7287 # On IA64, the linker does run time linking by default, so we don't
7288 # have to do anything special.
7289 aix_use_runtimelinking=no
7290 exp_sym_flag='-Bexport'
7293 # If we're using GNU nm, then we don't want the "-C" option.
7294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296 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'
7298 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'
7300 aix_use_runtimelinking=no
7302 # Test if we are trying to use run time linking or normal
7303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7304 # need to do runtime linking.
7305 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7306 for ld_flag in $LDFLAGS; do
7307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7308 aix_use_runtimelinking=yes
7315 exp_sym_flag='-bexport'
7316 no_entry_flag='-bnoentry'
7319 # When large executables or shared objects are built, AIX ld can
7320 # have problems creating the table of contents. If linking a library
7321 # or program results in "error TOC overflow" add -mminimal-toc to
7322 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7323 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7327 hardcode_libdir_separator=':'
7328 link_all_deplibs=yes
7330 if test "$GCC" = yes; then
7331 case $host_os in aix4.[012]|aix4.[012].*)
7332 # We only want to do this on AIX 4.2 and lower, the check
7333 # below for broken collect2 doesn't work under 4.3+
7334 collect2name=`${CC} -print-prog-name=collect2`
7335 if test -f "$collect2name" && \
7336 strings "$collect2name" | grep resolve_lib_name >/dev/null
7338 # We have reworked collect2
7341 # We have old collect2
7342 hardcode_direct=unsupported
7343 # It fails to find uninstalled libraries when the uninstalled
7344 # path is not listed in the libpath. Setting hardcode_minus_L
7345 # to unsupported forces relinking
7346 hardcode_minus_L=yes
7347 hardcode_libdir_flag_spec='-L$libdir'
7348 hardcode_libdir_separator=
7352 shared_flag='-shared'
7353 if test "$aix_use_runtimelinking" = yes; then
7354 shared_flag="$shared_flag "'${wl}-G'
7358 if test "$host_cpu" = ia64; then
7359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7360 # chokes on -Wl,-G. The following line is correct:
7363 if test "$aix_use_runtimelinking" = yes; then
7364 shared_flag='${wl}-G'
7366 shared_flag='${wl}-bM:SRE'
7371 # It seems that -bexpall does not export symbols beginning with
7372 # underscore (_), so it is better to generate a list of symbols to export.
7373 always_export_symbols=yes
7374 if test "$aix_use_runtimelinking" = yes; then
7375 # Warning - without using the other runtime loading flags (-brtl),
7376 # -berok will link without error, but may produce a broken library.
7377 allow_undefined_flag='-berok'
7378 # Determine the default libpath from the value encoded in an empty executable.
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (ac_try="$ac_link"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_link") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest$ac_exeext &&
7411 $as_test_x conftest$ac_exeext; then
7413 lt_aix_libpath_sed='
7414 /Import File Strings/,/^$/ {
7420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7421 # Check for a 64-bit object if we didn't find anything.
7422 if test -z "$aix_libpath"; then
7423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7433 conftest$ac_exeext conftest.$ac_ext
7434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7437 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"
7439 if test "$host_cpu" = ia64; then
7440 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7441 allow_undefined_flag="-z nodefs"
7442 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"
7444 # Determine the default libpath from the value encoded in an empty executable.
7445 cat >conftest.$ac_ext <<_ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467 (eval "$ac_link") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest$ac_exeext &&
7477 $as_test_x conftest$ac_exeext; then
7479 lt_aix_libpath_sed='
7480 /Import File Strings/,/^$/ {
7486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7487 # Check for a 64-bit object if we didn't find anything.
7488 if test -z "$aix_libpath"; then
7489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499 conftest$ac_exeext conftest.$ac_ext
7500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7503 # Warning - without using the other run time loading flags,
7504 # -berok will link without error, but may produce a broken library.
7505 no_undefined_flag=' ${wl}-bernotok'
7506 allow_undefined_flag=' ${wl}-berok'
7507 # Exported symbols can be pulled into shared objects from archives
7508 whole_archive_flag_spec='$convenience'
7509 archive_cmds_need_lc=yes
7510 # This is similar to how AIX traditionally builds its shared libraries.
7511 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'
7517 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)'
7518 hardcode_libdir_flag_spec='-L$libdir'
7519 hardcode_minus_L=yes
7520 # see comment about different semantics on the GNU ld section
7525 export_dynamic_flag_spec=-rdynamic
7528 cygwin* | mingw* | pw32*)
7529 # When not using gcc, we currently assume that we are using
7530 # Microsoft Visual C++.
7531 # hardcode_libdir_flag_spec is actually meaningless, as there is
7532 # no search path for DLLs.
7533 hardcode_libdir_flag_spec=' '
7534 allow_undefined_flag=unsupported
7535 # Tell ltmain to make .lib files, not .a files.
7537 # Tell ltmain to make .dll files, not .so files.
7539 # FIXME: Setting linknames here is a bad hack.
7540 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7541 # The linker will automatically build a .lib file if we build a DLL.
7542 old_archive_From_new_cmds='true'
7543 # FIXME: Should let the user specify the lib program.
7544 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7545 fix_srcfile_path='`cygpath -w "$srcfile"`'
7546 enable_shared_with_static_runtimes=yes
7549 darwin* | rhapsody*)
7551 rhapsody* | darwin1.[012])
7552 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7556 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7558 case ${MACOSX_DEPLOYMENT_TARGET} in
7560 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7563 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7569 archive_cmds_need_lc=no
7571 hardcode_automatic=yes
7572 hardcode_shlibpath_var=unsupported
7573 whole_archive_flag_spec=''
7574 link_all_deplibs=yes
7575 if test "$GCC" = yes ; then
7576 output_verbose_link_cmd='echo'
7577 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7578 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7579 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7580 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7581 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}'
7583 case $cc_basename in
7585 output_verbose_link_cmd='echo'
7586 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7587 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7589 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}'
7590 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}'
7600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_libdir_flag_spec='-L$libdir'
7602 hardcode_shlibpath_var=no
7609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7610 # support. Future versions do this automatically, but an explicit c++rt0.o
7611 # does not break anything, and helps significantly (at the cost of a little
7614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7615 hardcode_libdir_flag_spec='-R$libdir'
7617 hardcode_shlibpath_var=no
7620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7624 hardcode_minus_L=yes
7625 hardcode_shlibpath_var=no
7628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7629 freebsd* | dragonfly*)
7630 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7631 hardcode_libdir_flag_spec='-R$libdir'
7633 hardcode_shlibpath_var=no
7637 if test "$GCC" = yes; then
7638 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'
7640 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'
7642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7643 hardcode_libdir_separator=:
7646 # hardcode_minus_L: Not really in the search PATH,
7647 # but as the default location of the library.
7648 hardcode_minus_L=yes
7649 export_dynamic_flag_spec='${wl}-E'
7653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7654 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7656 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7658 if test "$with_gnu_ld" = no; then
7659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7660 hardcode_libdir_separator=:
7663 export_dynamic_flag_spec='${wl}-E'
7665 # hardcode_minus_L: Not really in the search PATH,
7666 # but as the default location of the library.
7667 hardcode_minus_L=yes
7672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7675 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7678 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7681 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7687 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7690 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7693 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7697 if test "$with_gnu_ld" = no; then
7698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7699 hardcode_libdir_separator=:
7703 hardcode_libdir_flag_spec_ld='+b $libdir'
7705 hardcode_shlibpath_var=no
7709 export_dynamic_flag_spec='${wl}-E'
7711 # hardcode_minus_L: Not really in the search PATH,
7712 # but as the default location of the library.
7713 hardcode_minus_L=yes
7719 irix5* | irix6* | nonstopux*)
7720 if test "$GCC" = yes; then
7721 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'
7723 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'
7724 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7727 hardcode_libdir_separator=:
7728 link_all_deplibs=yes
7732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7735 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7737 hardcode_libdir_flag_spec='-R$libdir'
7739 hardcode_shlibpath_var=no
7743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7746 hardcode_libdir_separator=:
7747 hardcode_shlibpath_var=no
7751 if test -f /usr/libexec/ld.so; then
7753 hardcode_shlibpath_var=no
7754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7756 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7758 export_dynamic_flag_spec='${wl}-E'
7761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7763 hardcode_libdir_flag_spec='-R$libdir'
7766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7777 hardcode_libdir_flag_spec='-L$libdir'
7778 hardcode_minus_L=yes
7779 allow_undefined_flag=unsupported
7780 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'
7781 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7785 if test "$GCC" = yes; then
7786 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7787 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'
7789 allow_undefined_flag=' -expect_unresolved \*'
7790 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'
7792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7793 hardcode_libdir_separator=:
7796 osf4* | osf5*) # as osf3* with the addition of -msym flag
7797 if test "$GCC" = yes; then
7798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7799 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'
7800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7802 allow_undefined_flag=' -expect_unresolved \*'
7803 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'
7804 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7805 $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'
7807 # Both c and cxx compiler support -rpath directly
7808 hardcode_libdir_flag_spec='-rpath $libdir'
7810 hardcode_libdir_separator=:
7814 no_undefined_flag=' -z text'
7815 if test "$GCC" = yes; then
7817 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7819 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7826 hardcode_libdir_flag_spec='-R$libdir'
7827 hardcode_shlibpath_var=no
7829 solaris2.[0-5] | solaris2.[0-5].*) ;;
7831 # The compiler driver will combine and reorder linker options,
7832 # but understands `-z linker_flag'. GCC discards it without `$wl',
7833 # but is careful enough not to reorder.
7834 # Supported since Solaris 2.6 (maybe 2.5.1?)
7835 if test "$GCC" = yes; then
7836 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7838 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7842 link_all_deplibs=yes
7846 if test "x$host_vendor" = xsequent; then
7847 # Use $CC to link under sequent, because it throws in some extra .o
7848 # files that make .init and .fini sections work.
7849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7853 hardcode_libdir_flag_spec='-L$libdir'
7855 hardcode_minus_L=yes
7856 hardcode_shlibpath_var=no
7860 case $host_vendor in
7862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863 hardcode_direct=yes # is this really true???
7866 ## LD is ld it makes a PLAMLIB
7867 ## CC just makes a GrossModule.
7868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7869 reload_cmds='$CC -r -o $output$reload_objs'
7873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7877 runpath_var='LD_RUN_PATH'
7878 hardcode_shlibpath_var=no
7882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7883 hardcode_shlibpath_var=no
7884 export_dynamic_flag_spec='-Bexport'
7888 if test -d /usr/nec; then
7889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890 hardcode_shlibpath_var=no
7891 runpath_var=LD_RUN_PATH
7892 hardcode_runpath_var=yes
7897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7898 no_undefined_flag='${wl}-z,text'
7899 archive_cmds_need_lc=no
7900 hardcode_shlibpath_var=no
7901 runpath_var='LD_RUN_PATH'
7903 if test "$GCC" = yes; then
7904 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7905 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7907 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7908 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7912 sysv5* | sco3.2v5* | sco5v6*)
7913 # Note: We can NOT use -z defs as we might desire, because we do not
7914 # link with -lc, and that would cause any symbols used from libc to
7915 # always be unresolved, which means just about no library would
7916 # ever link correctly. If we're not using GNU ld we use -z text
7917 # though, which does catch some bad symbols but isn't as heavy-handed
7919 no_undefined_flag='${wl}-z,text'
7920 allow_undefined_flag='${wl}-z,nodefs'
7921 archive_cmds_need_lc=no
7922 hardcode_shlibpath_var=no
7923 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7924 hardcode_libdir_separator=':'
7925 link_all_deplibs=yes
7926 export_dynamic_flag_spec='${wl}-Bexport'
7927 runpath_var='LD_RUN_PATH'
7929 if test "$GCC" = yes; then
7930 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7931 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7933 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7934 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7940 hardcode_libdir_flag_spec='-L$libdir'
7941 hardcode_shlibpath_var=no
7950 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7951 echo "${ECHO_T}$ld_shlibs" >&6; }
7952 test "$ld_shlibs" = no && can_build_shared=no
7955 # Do we need to explicitly link libc?
7957 case "x$archive_cmds_need_lc" in
7959 # Assume -lc should be added
7960 archive_cmds_need_lc=yes
7962 if test "$enable_shared" = yes && test "$GCC" = yes; then
7963 case $archive_cmds in
7965 # FIXME: we may have to deal with multi-command sequences.
7968 # Test whether the compiler implicitly links with -lc since on some
7969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7970 # to ld, don't add -lc before -lgcc.
7971 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7972 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } 2>conftest.err; then
7983 libobjs=conftest.$ac_objext
7985 wl=$lt_prog_compiler_wl
7986 pic_flag=$lt_prog_compiler_pic
7992 lt_save_allow_undefined_flag=$allow_undefined_flag
7993 allow_undefined_flag=
7994 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7995 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }
8000 archive_cmds_need_lc=no
8002 archive_cmds_need_lc=yes
8004 allow_undefined_flag=$lt_save_allow_undefined_flag
8006 cat conftest.err 1>&5
8009 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8010 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8017 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8018 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8020 libname_spec='lib$name'
8028 shlibpath_overrides_runpath=unknown
8030 dynamic_linker="$host_os ld.so"
8031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8033 if test "$GCC" = yes; then
8035 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8036 *) lt_awk_arg="/^libraries:/" ;;
8038 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8039 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8040 # if the path contains ";" then we assume it to be the separator
8041 # otherwise default to the standard path separator (i.e. ":") - it is
8042 # assumed that no part of a normal pathname contains ";" but that should
8043 # okay in the real world where ";" in dirpaths is itself problematic.
8044 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8046 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8048 # Ok, now we have the path, separated by spaces, we can step through it
8049 # and add multilib dir if necessary.
8050 lt_tmp_lt_search_path_spec=
8051 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8052 for lt_sys_path in $lt_search_path_spec; do
8053 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8056 test -d "$lt_sys_path" && \
8057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8060 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8061 BEGIN {RS=" "; FS="/|\n";} {
8064 for (lt_i = NF; lt_i > 0; lt_i--) {
8065 if ($lt_i != "" && $lt_i != ".") {
8066 if ($lt_i == "..") {
8069 if (lt_count == 0) {
8070 lt_foo="/" $lt_i lt_foo;
8077 if (lt_foo != "") { lt_freq[lt_foo]++; }
8078 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8080 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8084 need_lib_prefix=unknown
8085 hardcode_into_libs=no
8087 # when you set need_version to no, make sure it does not cause -set_version
8088 # flags to be left without arguments
8089 need_version=unknown
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8095 shlibpath_var=LIBPATH
8097 # AIX 3 has no versioning support, so we append a major version to the name.
8098 soname_spec='${libname}${release}${shared_ext}$major'
8105 hardcode_into_libs=yes
8106 if test "$host_cpu" = ia64; then
8107 # AIX 5 supports IA64
8108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8109 shlibpath_var=LD_LIBRARY_PATH
8111 # With GCC up to 2.95.x, collect2 would create an import file
8112 # for dependence libraries. The import file would start with
8113 # the line `#! .'. This would cause the generated library to
8114 # depend on `.', always an invalid library. This was fixed in
8115 # development snapshots of GCC prior to 3.0.
8117 aix4 | aix4.[01] | aix4.[01].*)
8118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8128 # soname into executable. Probably we can add versioning support to
8129 # collect2, so additional links can be useful in future.
8130 if test "$aix_use_runtimelinking" = yes; then
8131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8132 # instead of lib<name>.a to let people know that these are not
8133 # typical AIX shared libraries.
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8136 # We preserve .a as extension for shared libraries through AIX4.2
8137 # and later when we are not doing run time linking.
8138 library_names_spec='${libname}${release}.a $libname.a'
8139 soname_spec='${libname}${release}${shared_ext}$major'
8141 shlibpath_var=LIBPATH
8146 library_names_spec='$libname.ixlibrary $libname.a'
8147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8148 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'
8152 library_names_spec='${libname}${shared_ext}'
8153 dynamic_linker="$host_os ld.so"
8154 shlibpath_var=LIBRARY_PATH
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161 soname_spec='${libname}${release}${shared_ext}$major'
8162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8163 shlibpath_var=LD_LIBRARY_PATH
8164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8166 # the default ld.so.conf also contains /usr/contrib/lib and
8167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8168 # libtool to hard-code these into programs
8171 cygwin* | mingw* | pw32*)
8172 version_type=windows
8177 case $GCC,$host_os in
8178 yes,cygwin* | yes,mingw* | yes,pw32*)
8179 library_names_spec='$libname.dll.a'
8180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8181 postinstall_cmds='base_file=`basename \${file}`~
8182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8183 dldir=$destdir/`dirname \$dlpath`~
8184 test -d \$dldir || mkdir -p \$dldir~
8185 $install_prog $dir/$dlname \$dldir/$dlname~
8186 chmod a+x \$dldir/$dlname'
8187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8188 dlpath=$dir/\$dldll~
8190 shlibpath_overrides_runpath=yes
8194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8196 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8199 # MinGW DLLs use traditional 'lib' prefix
8200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8202 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8203 # It is most probably a Windows format PATH printed by
8204 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8205 # path with ; separators, and with drive letters. We can handle the
8206 # drive letters (cygwin fileutils understands them), so leave them,
8207 # especially as we might pass files found there to a mingw objdump,
8208 # which wouldn't understand a cygwinified path. Ahh.
8209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8215 # pw32 DLLs use 'pw' prefix rather than 'lib'
8216 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8225 dynamic_linker='Win32 ld.exe'
8226 # FIXME: first we should search . and the directory the executable is in
8230 darwin* | rhapsody*)
8231 dynamic_linker="$host_os dyld"
8235 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8236 soname_spec='${libname}${release}${major}$shared_ext'
8237 shlibpath_overrides_runpath=yes
8238 shlibpath_var=DYLD_LIBRARY_PATH
8239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8241 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8250 soname_spec='${libname}${release}${shared_ext}$major'
8251 shlibpath_var=LD_LIBRARY_PATH
8258 freebsd* | dragonfly*)
8259 # DragonFly does not have aout. When/if they implement a new
8260 # versioning mechanism, adjust this.
8261 if test -x /usr/bin/objformat; then
8262 objformat=`/usr/bin/objformat`
8265 freebsd[123]*) objformat=aout ;;
8269 version_type=freebsd-$objformat
8270 case $version_type in
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8281 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=yes
8286 freebsd3.[01]* | freebsdelf3.[01]*)
8287 shlibpath_overrides_runpath=yes
8288 hardcode_into_libs=yes
8290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8292 shlibpath_overrides_runpath=no
8293 hardcode_into_libs=yes
8295 *) # from 4.6 on, and DragonFly
8296 shlibpath_overrides_runpath=yes
8297 hardcode_into_libs=yes
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 hardcode_into_libs=yes
8312 hpux9* | hpux10* | hpux11*)
8313 # Give a soname corresponding to the major version so that dld.sl refuses to
8314 # link against other versions.
8321 hardcode_into_libs=yes
8322 dynamic_linker="$host_os dld.so"
8323 shlibpath_var=LD_LIBRARY_PATH
8324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326 soname_spec='${libname}${release}${shared_ext}$major'
8327 if test "X$HPUX_IA64_MODE" = X32; then
8328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8336 hardcode_into_libs=yes
8337 dynamic_linker="$host_os dld.sl"
8338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341 soname_spec='${libname}${release}${shared_ext}$major'
8342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8347 dynamic_linker="$host_os dld.sl"
8348 shlibpath_var=SHLIB_PATH
8349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8355 postinstall_cmds='chmod 555 $lib'
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8365 shlibpath_var=LD_LIBRARY_PATH
8366 shlibpath_overrides_runpath=no
8367 hardcode_into_libs=yes
8370 irix5* | irix6* | nonstopux*)
8372 nonstopux*) version_type=nonstopux ;;
8374 if test "$lt_cv_prog_gnu_ld" = yes; then
8382 soname_spec='${libname}${release}${shared_ext}$major'
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8385 irix5* | nonstopux*)
8389 case $LD in # libtool.m4 will add one of these switches to LD
8390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8391 libsuff= shlibsuff= libmagic=32-bit;;
8392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8393 libsuff=32 shlibsuff=N32 libmagic=N32;;
8394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8396 *) libsuff= shlibsuff= libmagic=never-match;;
8400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8401 shlibpath_overrides_runpath=no
8402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8404 hardcode_into_libs=yes
8407 # No shared lib support for Linux oldld, aout, or coff.
8408 linux*oldld* | linux*aout* | linux*coff*)
8412 # This must be Linux ELF.
8413 linux* | k*bsd*-gnu)
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418 soname_spec='${libname}${release}${shared_ext}$major'
8419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 shlibpath_overrides_runpath=no
8422 # This implies no fast_install, which is unacceptable.
8423 # Some rework will be needed to allow for fast_install
8424 # before this can be enabled.
8425 hardcode_into_libs=yes
8427 # Append ld.so.conf contents to the search path
8428 if test -f /etc/ld.so.conf; then
8429 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' ' '`
8430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8433 # We used to test for /lib/ld.so.1 and disable shared libraries on
8434 # powerpc, because MkLinux only supported shared libraries with the
8435 # GNU dynamic linker. Since this was broken with cross compilers,
8436 # most powerpc-linux boxes support dynamic linking these days and
8437 # people can always --disable-shared, the test was removed, and we
8438 # assume the GNU/Linux dynamic linker is in use.
8439 dynamic_linker='GNU/Linux ld.so'
8446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8449 dynamic_linker='NetBSD (a.out) ld.so'
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8452 soname_spec='${libname}${release}${shared_ext}$major'
8453 dynamic_linker='NetBSD ld.elf_so'
8455 shlibpath_var=LD_LIBRARY_PATH
8456 shlibpath_overrides_runpath=yes
8457 hardcode_into_libs=yes
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463 shlibpath_var=LD_LIBRARY_PATH
8464 shlibpath_overrides_runpath=yes
8471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8472 soname_spec='${libname}${release}${shared_ext}$major'
8473 shlibpath_var=LD_LIBRARY_PATH
8474 shlibpath_overrides_runpath=yes
8479 sys_lib_dlsearch_path_spec="/usr/lib"
8481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8484 *) need_version=no ;;
8486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8488 shlibpath_var=LD_LIBRARY_PATH
8489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8491 openbsd2.[89] | openbsd2.[89].*)
8492 shlibpath_overrides_runpath=no
8495 shlibpath_overrides_runpath=yes
8499 shlibpath_overrides_runpath=yes
8504 libname_spec='$name'
8507 library_names_spec='$libname${shared_ext} $libname.a'
8508 dynamic_linker='OS/2 ld.exe'
8509 shlibpath_var=LIBPATH
8512 osf3* | osf4* | osf5*)
8516 soname_spec='${libname}${release}${shared_ext}$major'
8517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 shlibpath_overrides_runpath=yes
8535 hardcode_into_libs=yes
8536 # ldd complains unless libraries are executable
8537 postinstall_cmds='chmod +x $lib'
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8544 shlibpath_var=LD_LIBRARY_PATH
8545 shlibpath_overrides_runpath=yes
8546 if test "$with_gnu_ld" = yes; then
8554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555 soname_spec='${libname}${release}${shared_ext}$major'
8556 shlibpath_var=LD_LIBRARY_PATH
8557 case $host_vendor in
8559 shlibpath_overrides_runpath=no
8561 export_dynamic_flag_spec='${wl}-Blargedynsym'
8562 runpath_var=LD_RUN_PATH
8570 shlibpath_overrides_runpath=no
8571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8577 if test -d /usr/nec ;then
8579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8580 soname_spec='$libname${shared_ext}.$major'
8581 shlibpath_var=LD_LIBRARY_PATH
8585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8586 version_type=freebsd-elf
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8591 shlibpath_var=LD_LIBRARY_PATH
8592 hardcode_into_libs=yes
8593 if test "$with_gnu_ld" = yes; then
8594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8595 shlibpath_overrides_runpath=no
8597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8598 shlibpath_overrides_runpath=yes
8601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8605 sys_lib_dlsearch_path_spec='/usr/lib'
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611 soname_spec='${libname}${release}${shared_ext}$major'
8612 shlibpath_var=LD_LIBRARY_PATH
8619 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8620 echo "${ECHO_T}$dynamic_linker" >&6; }
8621 test "$dynamic_linker" = no && can_build_shared=no
8623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8624 if test "$GCC" = yes; then
8625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8628 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8631 if test -n "$hardcode_libdir_flag_spec" || \
8632 test -n "$runpath_var" || \
8633 test "X$hardcode_automatic" = "Xyes" ; then
8635 # We can hardcode non-existant directories.
8636 if test "$hardcode_direct" != no &&
8637 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8638 # have to relink, otherwise we might link with an installed library
8639 # when we should be linking with a yet-to-be-installed one
8640 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8641 test "$hardcode_minus_L" != no; then
8642 # Linking always hardcodes the temporary library directory.
8643 hardcode_action=relink
8645 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8646 hardcode_action=immediate
8649 # We cannot hardcode anything, or else we can only hardcode existing
8651 hardcode_action=unsupported
8653 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8654 echo "${ECHO_T}$hardcode_action" >&6; }
8656 if test "$hardcode_action" = relink; then
8657 # Fast installation is not supported
8658 enable_fast_install=no
8659 elif test "$shlibpath_overrides_runpath" = yes ||
8660 test "$enable_shared" = no; then
8661 # Fast installation is not necessary
8662 enable_fast_install=needless
8667 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8668 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8669 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8670 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8671 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8672 { echo "$as_me:$LINENO: result: yes" >&5
8673 echo "${ECHO_T}yes" >&6; }
8675 # FIXME - insert some real tests, host_os isn't really good enough
8678 if test -n "$STRIP" ; then
8679 striplib="$STRIP -x"
8680 old_striplib="$STRIP -S"
8681 { echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6; }
8684 { echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6; }
8689 { echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6; }
8695 if test "x$enable_dlopen" != xyes; then
8696 enable_dlopen=unknown
8697 enable_dlopen_self=unknown
8698 enable_dlopen_self_static=unknown
8705 lt_cv_dlopen="load_add_on"
8707 lt_cv_dlopen_self=yes
8711 lt_cv_dlopen="LoadLibrary"
8716 lt_cv_dlopen="dlopen"
8721 # if libdl is installed we need to link against it
8722 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 ac_check_lib_save_LIBS=$LIBS
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext &&
8768 $as_test_x conftest$ac_exeext; then
8769 ac_cv_lib_dl_dlopen=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_lib_dl_dlopen=no
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8782 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8783 if test $ac_cv_lib_dl_dlopen = yes; then
8784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8789 lt_cv_dlopen_self=yes
8796 { echo "$as_me:$LINENO: checking for shl_load" >&5
8797 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8798 if test "${ac_cv_func_shl_load+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8809 #define shl_load innocuous_shl_load
8811 /* System header to define __stub macros and hopefully few prototypes,
8812 which can conflict with char shl_load (); below.
8813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814 <limits.h> exists even on freestanding compilers. */
8817 # include <limits.h>
8819 # include <assert.h>
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8831 /* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834 #if defined __stub_shl_load || defined __stub___shl_load
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest$ac_exeext &&
8863 $as_test_x conftest$ac_exeext; then
8864 ac_cv_func_shl_load=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_func_shl_load=no
8872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873 conftest$ac_exeext conftest.$ac_ext
8875 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8876 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8877 if test $ac_cv_func_shl_load = yes; then
8878 lt_cv_dlopen="shl_load"
8880 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8881 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8882 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 ac_check_lib_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8894 /* Override any GCC internal prototype to avoid an error.
8895 Use char because int might match the return type of a GCC
8896 builtin and then its argument prototype would still apply. */
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (ac_try="$ac_link"
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_link") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest$ac_exeext &&
8926 $as_test_x conftest$ac_exeext; then
8927 ac_cv_lib_dld_shl_load=yes
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 ac_cv_lib_dld_shl_load=no
8935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8940 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8941 if test $ac_cv_lib_dld_shl_load = yes; then
8942 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8944 { echo "$as_me:$LINENO: checking for dlopen" >&5
8945 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8946 if test "${ac_cv_func_dlopen+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8957 #define dlopen innocuous_dlopen
8959 /* System header to define __stub macros and hopefully few prototypes,
8960 which can conflict with char dlopen (); below.
8961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962 <limits.h> exists even on freestanding compilers. */
8965 # include <limits.h>
8967 # include <assert.h>
8972 /* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8979 /* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982 #if defined __stub_dlopen || defined __stub___dlopen
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (ac_try="$ac_link"
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_link") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest$ac_exeext &&
9011 $as_test_x conftest$ac_exeext; then
9012 ac_cv_func_dlopen=yes
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 ac_cv_func_dlopen=no
9020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021 conftest$ac_exeext conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9024 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9025 if test $ac_cv_func_dlopen = yes; then
9026 lt_cv_dlopen="dlopen"
9028 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9029 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9030 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 ac_check_lib_save_LIBS=$LIBS
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9042 /* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (ac_try="$ac_link"
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_link") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest$ac_exeext &&
9074 $as_test_x conftest$ac_exeext; then
9075 ac_cv_lib_dl_dlopen=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_cv_lib_dl_dlopen=no
9083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9088 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9089 if test $ac_cv_lib_dl_dlopen = yes; then
9090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9092 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9093 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9094 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 ac_check_lib_save_LIBS=$LIBS
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 /* Override any GCC internal prototype to avoid an error.
9107 Use char because int might match the return type of a GCC
9108 builtin and then its argument prototype would still apply. */
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (ac_try="$ac_link"
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_link") 2>conftest.er1
9130 grep -v '^ *+' conftest.er1 >conftest.err
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest$ac_exeext &&
9138 $as_test_x conftest$ac_exeext; then
9139 ac_cv_lib_svld_dlopen=yes
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9144 ac_cv_lib_svld_dlopen=no
9147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9148 conftest$ac_exeext conftest.$ac_ext
9149 LIBS=$ac_check_lib_save_LIBS
9151 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9152 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9153 if test $ac_cv_lib_svld_dlopen = yes; then
9154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9156 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9157 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ac_check_lib_save_LIBS=$LIBS
9163 cat >conftest.$ac_ext <<_ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } && {
9199 test -z "$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest$ac_exeext &&
9202 $as_test_x conftest$ac_exeext; then
9203 ac_cv_lib_dld_dld_link=yes
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9208 ac_cv_lib_dld_dld_link=no
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212 conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9215 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9217 if test $ac_cv_lib_dld_dld_link = yes; then
9218 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9239 if test "x$lt_cv_dlopen" != xno; then
9245 case $lt_cv_dlopen in
9247 save_CPPFLAGS="$CPPFLAGS"
9248 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9250 save_LDFLAGS="$LDFLAGS"
9251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9254 LIBS="$lt_cv_dlopen_libs $LIBS"
9256 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9257 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9258 if test "${lt_cv_dlopen_self+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 if test "$cross_compiling" = yes; then :
9262 lt_cv_dlopen_self=cross
9264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9265 lt_status=$lt_dlunknown
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9267 "configure"
9268 #include "confdefs.h"
9277 # define LT_DLGLOBAL RTLD_GLOBAL
9280 # define LT_DLGLOBAL DL_GLOBAL
9282 # define LT_DLGLOBAL 0
9286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9287 find out it does not work in some platform. */
9288 #ifndef LT_DLLAZY_OR_NOW
9290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9293 # define LT_DLLAZY_OR_NOW DL_LAZY
9296 # define LT_DLLAZY_OR_NOW RTLD_NOW
9299 # define LT_DLLAZY_OR_NOW DL_NOW
9301 # define LT_DLLAZY_OR_NOW 0
9309 extern "C" void exit (int);
9312 void fnord() { int i=42;}
9315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9316 int status = $lt_dlunknown;
9320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9321 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9322 /* dlclose (self); */
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335 (./conftest; exit; ) >&5 2>/dev/null
9338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9340 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9343 # compilation failed
9344 lt_cv_dlopen_self=no
9351 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9354 if test "x$lt_cv_dlopen_self" = xyes; then
9355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9356 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9358 if test "${lt_cv_dlopen_self_static+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 if test "$cross_compiling" = yes; then :
9362 lt_cv_dlopen_self_static=cross
9364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9365 lt_status=$lt_dlunknown
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9367 "configure"
9368 #include "confdefs.h"
9377 # define LT_DLGLOBAL RTLD_GLOBAL
9380 # define LT_DLGLOBAL DL_GLOBAL
9382 # define LT_DLGLOBAL 0
9386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9387 find out it does not work in some platform. */
9388 #ifndef LT_DLLAZY_OR_NOW
9390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9393 # define LT_DLLAZY_OR_NOW DL_LAZY
9396 # define LT_DLLAZY_OR_NOW RTLD_NOW
9399 # define LT_DLLAZY_OR_NOW DL_NOW
9401 # define LT_DLLAZY_OR_NOW 0
9409 extern "C" void exit (int);
9412 void fnord() { int i=42;}
9415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9416 int status = $lt_dlunknown;
9420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9422 /* dlclose (self); */
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9435 (./conftest; exit; ) >&5 2>/dev/null
9438 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9439 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9440 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9443 # compilation failed
9444 lt_cv_dlopen_self_static=no
9451 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9452 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9455 CPPFLAGS="$save_CPPFLAGS"
9456 LDFLAGS="$save_LDFLAGS"
9461 case $lt_cv_dlopen_self in
9462 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9463 *) enable_dlopen_self=unknown ;;
9466 case $lt_cv_dlopen_self_static in
9467 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9468 *) enable_dlopen_self_static=unknown ;;
9473 # Report which library types will actually be built
9474 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9475 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9476 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9477 echo "${ECHO_T}$can_build_shared" >&6; }
9479 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9480 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9481 test "$can_build_shared" = "no" && enable_shared=no
9483 # On AIX, shared libraries and static libraries use the same namespace, and
9484 # are all built from PIC.
9487 test "$enable_shared" = yes && enable_static=no
9488 if test -n "$RANLIB"; then
9489 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9490 postinstall_cmds='$RANLIB $lib'
9495 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9496 test "$enable_shared" = yes && enable_static=no
9500 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9501 echo "${ECHO_T}$enable_shared" >&6; }
9503 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9504 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9505 # Make sure either enable_shared or enable_static is yes.
9506 test "$enable_shared" = yes || enable_static=yes
9507 { echo "$as_me:$LINENO: result: $enable_static" >&5
9508 echo "${ECHO_T}$enable_static" >&6; }
9510 # The else clause should only fire when bootstrapping the
9511 # libtool distribution, otherwise you forgot to ship ltmain.sh
9512 # with your package, and you will get complaints that there are
9513 # no rules to generate ltmain.sh.
9514 if test -f "$ltmain"; then
9515 # See if we are running on zsh, and set the options which allow our commands through
9516 # without removal of \ escapes.
9517 if test -n "${ZSH_VERSION+set}" ; then
9518 setopt NO_GLOB_SUBST
9520 # Now quote all the things that may contain metacharacters while being
9521 # careful not to overquote the AC_SUBSTed values. We take copies of the
9522 # variables and quote the copies for generation of the libtool script.
9523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9527 deplibs_check_method reload_flag reload_cmds need_locks \
9528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9529 lt_cv_sys_global_symbol_to_c_name_address \
9530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9531 old_postinstall_cmds old_postuninstall_cmds \
9535 lt_prog_compiler_wl \
9536 lt_prog_compiler_pic \
9537 lt_prog_compiler_static \
9538 lt_prog_compiler_no_builtin_flag \
9539 export_dynamic_flag_spec \
9540 thread_safe_flag_spec \
9541 whole_archive_flag_spec \
9542 enable_shared_with_static_runtimes \
9544 old_archive_from_new_cmds \
9549 compiler_lib_search_path \
9551 archive_expsym_cmds \
9553 postuninstall_cmds \
9554 old_archive_from_expsyms_cmds \
9555 allow_undefined_flag \
9557 export_symbols_cmds \
9558 hardcode_libdir_flag_spec \
9559 hardcode_libdir_flag_spec_ld \
9560 hardcode_libdir_separator \
9561 hardcode_automatic \
9563 module_expsym_cmds \
9564 lt_cv_prog_compiler_c_o \
9570 old_archive_cmds | \
9571 old_archive_from_new_cmds | \
9573 archive_expsym_cmds | \
9575 module_expsym_cmds | \
9576 old_archive_from_expsyms_cmds | \
9577 export_symbols_cmds | \
9578 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9579 postinstall_cmds | postuninstall_cmds | \
9580 old_postinstall_cmds | old_postuninstall_cmds | \
9581 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9582 # Double-quote double-evaled strings.
9583 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9586 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9592 *'\$0 --fallback-echo"')
9593 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9598 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9600 { echo "$as_me:$LINENO: creating $ofile" >&5
9601 echo "$as_me: creating $ofile" >&6;}
9603 cat <<__EOF__ >> "$cfgfile"
9606 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9607 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9608 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9610 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9611 # Free Software Foundation, Inc.
9613 # This file is part of GNU Libtool:
9614 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9616 # This program is free software; you can redistribute it and/or modify
9617 # it under the terms of the GNU General Public License as published by
9618 # the Free Software Foundation; either version 2 of the License, or
9619 # (at your option) any later version.
9621 # This program is distributed in the hope that it will be useful, but
9622 # WITHOUT ANY WARRANTY; without even the implied warranty of
9623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9624 # General Public License for more details.
9626 # You should have received a copy of the GNU General Public License
9627 # along with this program; if not, write to the Free Software
9628 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9630 # As a special exception to the GNU General Public License, if you
9631 # distribute this file as part of a program that contains a
9632 # configuration script generated by Autoconf, you may include it under
9633 # the same distribution terms that you use for the rest of that program.
9635 # A sed program that does not truncate output.
9638 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9639 Xsed="$SED -e 1s/^X//"
9641 # The HP-UX ksh and POSIX shell print the target directory to stdout
9643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9645 # The names of the tagged configurations supported by this script.
9648 # ### BEGIN LIBTOOL CONFIG
9650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9652 # Shell to use when invoking shell scripts.
9655 # Whether or not to build shared libraries.
9656 build_libtool_libs=$enable_shared
9658 # Whether or not to build static libraries.
9659 build_old_libs=$enable_static
9661 # Whether or not to add -lc for building shared libraries.
9662 build_libtool_need_lc=$archive_cmds_need_lc
9664 # Whether or not to disallow shared libs when runtime libs are static
9665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9667 # Whether or not to optimize for fast installation.
9668 fast_install=$enable_fast_install
9671 host_alias=$host_alias
9676 build_alias=$build_alias
9680 # An echo program that does not interpret backslashes.
9685 AR_FLAGS=$lt_AR_FLAGS
9690 # LTCC compiler flags.
9691 LTCFLAGS=$lt_LTCFLAGS
9693 # A language-specific compiler.
9696 # Is the compiler the GNU C compiler?
9702 # The linker used to build libraries.
9705 # Whether we need hard or soft links.
9708 # A BSD-compatible nm program.
9711 # A symbol stripping program
9714 # Used to examine libraries when file_magic_cmd begins "file"
9715 MAGIC_CMD=$MAGIC_CMD
9717 # Used on cygwin: DLL creation program.
9720 # Used on cygwin: object dumper.
9723 # Used on cygwin: assembler.
9726 # The name of the directory that contains temporary libtool files.
9729 # How to create reloadable object files.
9730 reload_flag=$lt_reload_flag
9731 reload_cmds=$lt_reload_cmds
9733 # How to pass a linker flag through the compiler.
9734 wl=$lt_lt_prog_compiler_wl
9736 # Object file suffix (normally "o").
9739 # Old archive suffix (normally "a").
9742 # Shared library suffix (normally ".so").
9743 shrext_cmds='$shrext_cmds'
9745 # Executable file suffix (normally "").
9748 # Additional compiler flags for building library objects.
9749 pic_flag=$lt_lt_prog_compiler_pic
9752 # What is the maximum length of a command?
9753 max_cmd_len=$lt_cv_sys_max_cmd_len
9755 # Does compiler simultaneously support -c and -o options?
9756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9758 # Must we lock files when doing compilation?
9759 need_locks=$lt_need_locks
9761 # Do we need the lib prefix for modules?
9762 need_lib_prefix=$need_lib_prefix
9764 # Do we need a version for libraries?
9765 need_version=$need_version
9767 # Whether dlopen is supported.
9768 dlopen_support=$enable_dlopen
9770 # Whether dlopen of programs is supported.
9771 dlopen_self=$enable_dlopen_self
9773 # Whether dlopen of statically linked programs is supported.
9774 dlopen_self_static=$enable_dlopen_self_static
9776 # Compiler flag to prevent dynamic linking.
9777 link_static_flag=$lt_lt_prog_compiler_static
9779 # Compiler flag to turn off builtin functions.
9780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9782 # Compiler flag to allow reflexive dlopens.
9783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9785 # Compiler flag to generate shared objects directly from archives.
9786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9788 # Compiler flag to generate thread-safe objects.
9789 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9791 # Library versioning type.
9792 version_type=$version_type
9794 # Format of library name prefix.
9795 libname_spec=$lt_libname_spec
9797 # List of archive names. First name is the real one, the rest are links.
9798 # The last name is the one that the linker finds with -lNAME.
9799 library_names_spec=$lt_library_names_spec
9801 # The coded name of the library, if different from the real name.
9802 soname_spec=$lt_soname_spec
9804 # Commands used to build and install an old-style archive.
9806 old_archive_cmds=$lt_old_archive_cmds
9807 old_postinstall_cmds=$lt_old_postinstall_cmds
9808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9810 # Create an old-style archive from a shared archive.
9811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9813 # Create a temporary old-style archive to link instead of a shared archive.
9814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9816 # Commands used to build and install a shared archive.
9817 archive_cmds=$lt_archive_cmds
9818 archive_expsym_cmds=$lt_archive_expsym_cmds
9819 postinstall_cmds=$lt_postinstall_cmds
9820 postuninstall_cmds=$lt_postuninstall_cmds
9822 # Commands used to build a loadable module (assumed same as above if empty)
9823 module_cmds=$lt_module_cmds
9824 module_expsym_cmds=$lt_module_expsym_cmds
9826 # Commands to strip libraries.
9827 old_striplib=$lt_old_striplib
9828 striplib=$lt_striplib
9830 # Dependencies to place before the objects being linked to create a
9832 predep_objects=$lt_predep_objects
9834 # Dependencies to place after the objects being linked to create a
9836 postdep_objects=$lt_postdep_objects
9838 # Dependencies to place before the objects being linked to create a
9842 # Dependencies to place after the objects being linked to create a
9844 postdeps=$lt_postdeps
9846 # The library search path used internally by the compiler when linking
9848 compiler_lib_search_path=$lt_compiler_lib_search_path
9850 # Method to check whether dependent libraries are shared objects.
9851 deplibs_check_method=$lt_deplibs_check_method
9853 # Command to use when deplibs_check_method == file_magic.
9854 file_magic_cmd=$lt_file_magic_cmd
9856 # Flag that allows shared libraries with undefined symbols to be built.
9857 allow_undefined_flag=$lt_allow_undefined_flag
9859 # Flag that forces no undefined symbols.
9860 no_undefined_flag=$lt_no_undefined_flag
9862 # Commands used to finish a libtool library installation in a directory.
9863 finish_cmds=$lt_finish_cmds
9865 # Same as above, but a single script fragment to be evaled but not shown.
9866 finish_eval=$lt_finish_eval
9868 # Take the output of nm and produce a listing of raw symbols and C names.
9869 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9871 # Transform the output of nm in a proper C declaration
9872 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9874 # Transform the output of nm in a C name address pair
9875 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9877 # This is the shared library runtime path variable.
9878 runpath_var=$runpath_var
9880 # This is the shared library path variable.
9881 shlibpath_var=$shlibpath_var
9883 # Is shlibpath searched before the hard-coded library search path?
9884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9886 # How to hardcode a shared library path into an executable.
9887 hardcode_action=$hardcode_action
9889 # Whether we should hardcode library paths into libraries.
9890 hardcode_into_libs=$hardcode_into_libs
9892 # Flag to hardcode \$libdir into a binary during linking.
9893 # This must work even if \$libdir does not exist.
9894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9896 # If ld is used when linking, flag to hardcode \$libdir into
9897 # a binary during linking. This must work even if \$libdir does
9899 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9901 # Whether we need a single -rpath flag with a separated argument.
9902 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9904 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9906 hardcode_direct=$hardcode_direct
9908 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9910 hardcode_minus_L=$hardcode_minus_L
9912 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9913 # the resulting binary.
9914 hardcode_shlibpath_var=$hardcode_shlibpath_var
9916 # Set to yes if building a shared library automatically hardcodes DIR into the library
9917 # and all subsequent libraries and executables linked against it.
9918 hardcode_automatic=$hardcode_automatic
9920 # Variables whose values should be saved in libtool wrapper scripts and
9921 # restored at relink time.
9922 variables_saved_for_relink="$variables_saved_for_relink"
9924 # Whether libtool must link a program against all its dependency libraries.
9925 link_all_deplibs=$link_all_deplibs
9927 # Compile-time system search path for libraries
9928 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9930 # Run-time system search path for libraries
9931 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9933 # Fix the shell variable \$srcfile for the compiler.
9934 fix_srcfile_path=$lt_fix_srcfile_path
9936 # Set to yes if exported symbols are required.
9937 always_export_symbols=$always_export_symbols
9939 # The commands to list exported symbols.
9940 export_symbols_cmds=$lt_export_symbols_cmds
9942 # The commands to extract the exported symbol list from a shared archive.
9943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9945 # Symbols that should not be listed in the preloaded symbols.
9946 exclude_expsyms=$lt_exclude_expsyms
9948 # Symbols that must always be exported.
9949 include_expsyms=$lt_include_expsyms
9951 # ### END LIBTOOL CONFIG
9958 cat <<\EOF >> "$cfgfile"
9960 # AIX sometimes has problems with the GCC collect2 program. For some
9961 # reason, if we set the COLLECT_NAMES environment variable, the problems
9962 # vanish in a puff of smoke.
9963 if test "X${COLLECT_NAMES+set}" != Xset; then
9965 export COLLECT_NAMES
9971 # We use sed instead of cat because bash on DJGPP gets confused if
9972 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9973 # text mode, it properly converts lines to CR/LF. This bash problem
9974 # is reportedly fixed, but why not run on old versions too?
9975 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9977 mv -f "$cfgfile" "$ofile" || \
9978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9982 # If there is no Makefile yet, we rely on a make rule to execute
9983 # `config.status --recheck' to rerun these tests and create the
9984 # libtool script then.
9985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9986 if test -f "$ltmain_in"; then
9987 test -f Makefile && make "$ltmain"
9993 ac_cpp='$CPP $CPPFLAGS'
9994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10001 # Check whether --with-tags was given.
10002 if test "${with_tags+set}" = set; then
10003 withval=$with_tags; tagnames="$withval"
10007 if test -f "$ltmain" && test -n "$tagnames"; then
10008 if test ! -f "${ofile}"; then
10009 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10010 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10013 if test -z "$LTCC"; then
10014 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10015 if test -z "$LTCC"; then
10016 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10017 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10020 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10023 if test -z "$LTCFLAGS"; then
10024 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10027 # Extract list of available tagged configurations in $ofile.
10028 # Note that this assumes the entire list is on one line.
10029 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10032 for tagname in $tagnames; do
10034 # Check whether tagname contains only valid characters
10035 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10037 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10038 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10039 { (exit 1); exit 1; }; }
10043 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10045 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10046 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10047 { (exit 1); exit 1; }; }
10050 # Update the list of available tags.
10051 if test -n "$tagname"; then
10052 echo appending configuration tag \"$tagname\" to $ofile
10056 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10057 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10058 (test "X$CXX" != "Xg++"))) ; then
10060 ac_cpp='$CXXCPP $CPPFLAGS'
10061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10068 archive_cmds_need_lc_CXX=no
10069 allow_undefined_flag_CXX=
10070 always_export_symbols_CXX=no
10071 archive_expsym_cmds_CXX=
10072 export_dynamic_flag_spec_CXX=
10073 hardcode_direct_CXX=no
10074 hardcode_libdir_flag_spec_CXX=
10075 hardcode_libdir_flag_spec_ld_CXX=
10076 hardcode_libdir_separator_CXX=
10077 hardcode_minus_L_CXX=no
10078 hardcode_shlibpath_var_CXX=unsupported
10079 hardcode_automatic_CXX=no
10081 module_expsym_cmds_CXX=
10082 link_all_deplibs_CXX=unknown
10083 old_archive_cmds_CXX=$old_archive_cmds
10084 no_undefined_flag_CXX=
10085 whole_archive_flag_spec_CXX=
10086 enable_shared_with_static_runtimes_CXX=no
10088 # Dependencies to place before and after the object being linked:
10089 predep_objects_CXX=
10090 postdep_objects_CXX=
10093 compiler_lib_search_path_CXX=
10095 # Source file extension for C++ test sources.
10098 # Object file extension for compiled C++ test sources.
10102 # Code to be used in simple compile tests
10103 lt_simple_compile_test_code="int some_variable = 0;"
10105 # Code to be used in simple link tests
10106 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10110 # If no C compiler was specified, use CC.
10113 # If no C compiler flags were specified, use CFLAGS.
10114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10116 # Allow CC to be a program name with arguments.
10120 # save warnings/boilerplate of simple test code
10121 ac_outfile=conftest.$ac_objext
10122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10124 _lt_compiler_boilerplate=`cat conftest.err`
10127 ac_outfile=conftest.$ac_objext
10128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10130 _lt_linker_boilerplate=`cat conftest.err`
10134 # Allow CC to be a program name with arguments.
10139 lt_save_with_gnu_ld=$with_gnu_ld
10140 lt_save_path_LD=$lt_cv_path_LD
10141 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10142 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10144 $as_unset lt_cv_prog_gnu_ld
10146 if test -n "${lt_cv_path_LDCXX+set}"; then
10147 lt_cv_path_LD=$lt_cv_path_LDCXX
10149 $as_unset lt_cv_path_LD
10151 test -z "${LDCXX+set}" || LD=$LDCXX
10155 for cc_temp in $compiler""; do
10157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10166 # We don't want -fno-exception wen compiling C++ code, so set the
10167 # no_builtin_flag separately
10168 if test "$GXX" = yes; then
10169 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10171 lt_prog_compiler_no_builtin_flag_CXX=
10174 if test "$GXX" = yes; then
10175 # Set up default GNU C++ configuration
10178 # Check whether --with-gnu-ld was given.
10179 if test "${with_gnu_ld+set}" = set; then
10180 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10186 if test "$GCC" = yes; then
10187 # Check if gcc -print-prog-name=ld gives a path.
10188 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10192 # gcc leaves a trailing carriage return which upsets mingw
10193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10198 # Accept absolute paths.
10200 re_direlt='/[^/][^/]*/\.\./'
10201 # Canonicalize the pathname of ld
10202 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10203 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10204 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10206 test -z "$LD" && LD="$ac_prog"
10209 # If it fails, then pretend we aren't using GCC.
10213 # If it is relative, then search for the first ld in PATH.
10214 with_gnu_ld=unknown
10217 elif test "$with_gnu_ld" = yes; then
10218 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10221 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10224 if test "${lt_cv_path_LD+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 if test -z "$LD"; then
10228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10229 for ac_dir in $PATH; do
10231 test -z "$ac_dir" && ac_dir=.
10232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10233 lt_cv_path_LD="$ac_dir/$ac_prog"
10234 # Check to see if the program is GNU ld. I'd rather use --version,
10235 # but apparently some variants of GNU ld only accept -v.
10236 # Break only if it was the GNU/non-GNU ld that we prefer.
10237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10238 *GNU* | *'with BFD'*)
10239 test "$with_gnu_ld" != no && break
10242 test "$with_gnu_ld" != yes && break
10249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10253 LD="$lt_cv_path_LD"
10254 if test -n "$LD"; then
10255 { echo "$as_me:$LINENO: result: $LD" >&5
10256 echo "${ECHO_T}$LD" >&6; }
10258 { echo "$as_me:$LINENO: result: no" >&5
10259 echo "${ECHO_T}no" >&6; }
10261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10263 { (exit 1); exit 1; }; }
10264 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10270 case `$LD -v 2>&1 </dev/null` in
10271 *GNU* | *'with BFD'*)
10272 lt_cv_prog_gnu_ld=yes
10275 lt_cv_prog_gnu_ld=no
10279 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10281 with_gnu_ld=$lt_cv_prog_gnu_ld
10285 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10286 # archiving commands below assume that GNU ld is being used.
10287 if test "$with_gnu_ld" = yes; then
10288 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289 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'
10291 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10294 # If archive_cmds runs LD, not CC, wlarc should be empty
10295 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10296 # investigate it a little bit more. (MM)
10299 # ancient GNU ld didn't support --whole-archive et. al.
10300 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10301 grep 'no-whole-archive' > /dev/null; then
10302 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10304 whole_archive_flag_spec_CXX=
10310 # A generic and very simple default shared library creation
10311 # command for GNU C++ for the case where it uses the native
10312 # linker, instead of GNU ld. If possible, this setting should
10313 # overridden to take advantage of the native linker features on
10314 # the platform it is being used on.
10315 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10318 # Commands to make compiler produce verbose output that lists
10319 # what "hidden" libraries, object files and flags are used when
10320 # linking a shared library.
10321 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10329 # PORTME: fill in a description of your system's C++ link characteristics
10330 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10331 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10335 # FIXME: insert proper C++ library support
10339 if test "$host_cpu" = ia64; then
10340 # On IA64, the linker does run time linking by default, so we don't
10341 # have to do anything special.
10342 aix_use_runtimelinking=no
10343 exp_sym_flag='-Bexport'
10346 aix_use_runtimelinking=no
10348 # Test if we are trying to use run time linking or normal
10349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10350 # need to do runtime linking.
10351 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10352 for ld_flag in $LDFLAGS; do
10355 aix_use_runtimelinking=yes
10363 exp_sym_flag='-bexport'
10364 no_entry_flag='-bnoentry'
10367 # When large executables or shared objects are built, AIX ld can
10368 # have problems creating the table of contents. If linking a library
10369 # or program results in "error TOC overflow" add -mminimal-toc to
10370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10373 archive_cmds_CXX=''
10374 hardcode_direct_CXX=yes
10375 hardcode_libdir_separator_CXX=':'
10376 link_all_deplibs_CXX=yes
10378 if test "$GXX" = yes; then
10379 case $host_os in aix4.[012]|aix4.[012].*)
10380 # We only want to do this on AIX 4.2 and lower, the check
10381 # below for broken collect2 doesn't work under 4.3+
10382 collect2name=`${CC} -print-prog-name=collect2`
10383 if test -f "$collect2name" && \
10384 strings "$collect2name" | grep resolve_lib_name >/dev/null
10386 # We have reworked collect2
10389 # We have old collect2
10390 hardcode_direct_CXX=unsupported
10391 # It fails to find uninstalled libraries when the uninstalled
10392 # path is not listed in the libpath. Setting hardcode_minus_L
10393 # to unsupported forces relinking
10394 hardcode_minus_L_CXX=yes
10395 hardcode_libdir_flag_spec_CXX='-L$libdir'
10396 hardcode_libdir_separator_CXX=
10400 shared_flag='-shared'
10401 if test "$aix_use_runtimelinking" = yes; then
10402 shared_flag="$shared_flag "'${wl}-G'
10406 if test "$host_cpu" = ia64; then
10407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408 # chokes on -Wl,-G. The following line is correct:
10411 if test "$aix_use_runtimelinking" = yes; then
10412 shared_flag='${wl}-G'
10414 shared_flag='${wl}-bM:SRE'
10419 # It seems that -bexpall does not export symbols beginning with
10420 # underscore (_), so it is better to generate a list of symbols to export.
10421 always_export_symbols_CXX=yes
10422 if test "$aix_use_runtimelinking" = yes; then
10423 # Warning - without using the other runtime loading flags (-brtl),
10424 # -berok will link without error, but may produce a broken library.
10425 allow_undefined_flag_CXX='-berok'
10426 # Determine the default libpath from the value encoded in an empty executable.
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_link") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_cxx_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest$ac_exeext &&
10459 $as_test_x conftest$ac_exeext; then
10461 lt_aix_libpath_sed='
10462 /Import File Strings/,/^$/ {
10468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469 # Check for a 64-bit object if we didn't find anything.
10470 if test -z "$aix_libpath"; then
10471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10481 conftest$ac_exeext conftest.$ac_ext
10482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10486 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"
10488 if test "$host_cpu" = ia64; then
10489 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10490 allow_undefined_flag_CXX="-z nodefs"
10491 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"
10493 # Determine the default libpath from the value encoded in an empty executable.
10494 cat >conftest.$ac_ext <<_ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10518 grep -v '^ *+' conftest.er1 >conftest.err
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } && {
10523 test -z "$ac_cxx_werror_flag" ||
10524 test ! -s conftest.err
10525 } && test -s conftest$ac_exeext &&
10526 $as_test_x conftest$ac_exeext; then
10528 lt_aix_libpath_sed='
10529 /Import File Strings/,/^$/ {
10535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536 # Check for a 64-bit object if we didn't find anything.
10537 if test -z "$aix_libpath"; then
10538 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10548 conftest$ac_exeext conftest.$ac_ext
10549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10551 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10552 # Warning - without using the other run time loading flags,
10553 # -berok will link without error, but may produce a broken library.
10554 no_undefined_flag_CXX=' ${wl}-bernotok'
10555 allow_undefined_flag_CXX=' ${wl}-berok'
10556 # Exported symbols can be pulled into shared objects from archives
10557 whole_archive_flag_spec_CXX='$convenience'
10558 archive_cmds_need_lc_CXX=yes
10559 # This is similar to how AIX traditionally builds its shared libraries.
10560 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'
10566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10567 allow_undefined_flag_CXX=unsupported
10568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10569 # support --undefined. This deserves some investigation. FIXME
10570 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 case $cc_basename in
10579 # FIXME: insert proper C++ library support
10585 cygwin* | mingw* | pw32*)
10586 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10587 # as there is no search path for DLLs.
10588 hardcode_libdir_flag_spec_CXX='-L$libdir'
10589 allow_undefined_flag_CXX=unsupported
10590 always_export_symbols_CXX=no
10591 enable_shared_with_static_runtimes_CXX=yes
10593 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10594 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'
10595 # If the export-symbols file already is a .def file (1st line
10596 # is EXPORTS), use it as is; otherwise, prepend...
10597 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10598 cp $export_symbols $output_objdir/$soname.def;
10600 echo EXPORTS > $output_objdir/$soname.def;
10601 cat $export_symbols >> $output_objdir/$soname.def;
10603 $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'
10608 darwin* | rhapsody*)
10610 rhapsody* | darwin1.[012])
10611 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10614 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10615 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10617 case ${MACOSX_DEPLOYMENT_TARGET} in
10619 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10622 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10628 archive_cmds_need_lc_CXX=no
10629 hardcode_direct_CXX=no
10630 hardcode_automatic_CXX=yes
10631 hardcode_shlibpath_var_CXX=unsupported
10632 whole_archive_flag_spec_CXX=''
10633 link_all_deplibs_CXX=yes
10635 if test "$GXX" = yes ; then
10636 lt_int_apple_cc_single_mod=no
10637 output_verbose_link_cmd='echo'
10638 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10639 lt_int_apple_cc_single_mod=yes
10641 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10642 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10644 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'
10646 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10648 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10649 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10651 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10653 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}'
10655 case $cc_basename in
10657 output_verbose_link_cmd='echo'
10658 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'
10659 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10661 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}'
10662 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}'
10672 case $cc_basename in
10674 # FIXME: insert proper C++ library support
10678 # Green Hills C++ Compiler
10679 # FIXME: insert proper C++ library support
10683 # FIXME: insert proper C++ library support
10689 # C++ shared libraries reported to be fairly broken before switch to ELF
10693 archive_cmds_need_lc_CXX=no
10695 freebsd* | dragonfly*)
10696 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10703 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10704 hardcode_libdir_separator_CXX=:
10705 export_dynamic_flag_spec_CXX='${wl}-E'
10706 hardcode_direct_CXX=yes
10707 hardcode_minus_L_CXX=yes # Not in the search PATH,
10708 # but as the default
10709 # location of the library.
10711 case $cc_basename in
10713 # FIXME: insert proper C++ library support
10717 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'
10718 # Commands to make compiler produce verbose output that lists
10719 # what "hidden" libraries, object files and flags are used when
10720 # linking a shared library.
10722 # There doesn't appear to be a way to prevent this compiler from
10723 # explicitly linking system object files so we need to strip them
10724 # from the output so that they don't get included in the library
10726 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'
10729 if test "$GXX" = yes; then
10730 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'
10732 # FIXME: insert proper C++ library support
10739 if test $with_gnu_ld = no; then
10740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10741 hardcode_libdir_separator_CXX=:
10746 export_dynamic_flag_spec_CXX='${wl}-E'
10752 hardcode_direct_CXX=no
10753 hardcode_shlibpath_var_CXX=no
10756 hardcode_direct_CXX=yes
10757 hardcode_minus_L_CXX=yes # Not in the search PATH,
10758 # but as the default
10759 # location of the library.
10763 case $cc_basename in
10765 # FIXME: insert proper C++ library support
10771 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10774 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10777 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10780 # Commands to make compiler produce verbose output that lists
10781 # what "hidden" libraries, object files and flags are used when
10782 # linking a shared library.
10784 # There doesn't appear to be a way to prevent this compiler from
10785 # explicitly linking system object files so we need to strip them
10786 # from the output so that they don't get included in the library
10788 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'
10791 if test "$GXX" = yes; then
10792 if test $with_gnu_ld = no; then
10795 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10798 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10801 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'
10806 # FIXME: insert proper C++ library support
10813 hardcode_direct_CXX=no
10814 hardcode_shlibpath_var_CXX=no
10815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10816 export_dynamic_flag_spec_CXX='${wl}-E'
10817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10818 # Instead, shared libraries are loaded at an image base (0x10000000 by
10819 # default) and relocated if they conflict, which is a slow very memory
10820 # consuming and fragmenting process. To avoid this, we pick a random,
10821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10823 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'
10824 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'
10827 case $cc_basename in
10830 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'
10832 # Archives containing C++ object files must be created using
10833 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10834 # necessary to make sure instantiated templates are included
10836 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10839 if test "$GXX" = yes; then
10840 if test "$with_gnu_ld" = no; then
10841 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'
10843 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'
10846 link_all_deplibs_CXX=yes
10849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10850 hardcode_libdir_separator_CXX=:
10852 linux* | k*bsd*-gnu)
10853 case $cc_basename in
10855 # Kuck and Associates, Inc. (KAI) C++ Compiler
10857 # KCC will only create a shared library if the output file
10858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10859 # to its proper name (with version) after linking.
10860 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'
10861 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'
10862 # Commands to make compiler produce verbose output that lists
10863 # what "hidden" libraries, object files and flags are used when
10864 # linking a shared library.
10866 # There doesn't appear to be a way to prevent this compiler from
10867 # explicitly linking system object files so we need to strip them
10868 # from the output so that they don't get included in the library
10870 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'
10872 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10875 # Archives containing C++ object files must be created using
10876 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10877 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10882 # version 8.0 and above of icpc choke on multiply defined symbols
10883 # if we add $predep_objects and $postdep_objects, however 7.1 and
10884 # earlier do not add the objects themselves.
10885 case `$CC -V 2>&1` in
10887 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10888 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'
10890 *) # Version 8.0 or newer
10893 ia64*) tmp_idyn=' -i_dynamic';;
10895 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896 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'
10899 archive_cmds_need_lc_CXX=no
10900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10902 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10905 # Portland Group C++ compiler
10906 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10907 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'
10909 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10911 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'
10915 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916 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'
10918 runpath_var=LD_RUN_PATH
10919 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10920 hardcode_libdir_separator_CXX=:
10922 # Commands to make compiler produce verbose output that lists
10923 # what "hidden" libraries, object files and flags are used when
10924 # linking a shared library.
10926 # There doesn't appear to be a way to prevent this compiler from
10927 # explicitly linking system object files so we need to strip them
10928 # from the output so that they don't get included in the library
10930 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'
10933 case `$CC -V 2>&1 | sed 5q` in
10936 no_undefined_flag_CXX=' -zdefs'
10937 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10938 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'
10939 hardcode_libdir_flag_spec_CXX='-R$libdir'
10940 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'
10942 # Not sure whether something based on
10943 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10945 output_verbose_link_cmd='echo'
10947 # Archives containing C++ object files must be created using
10948 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10949 # necessary to make sure instantiated templates are included
10951 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10958 # FIXME: insert proper C++ library support
10962 # FIXME: insert proper C++ library support
10966 case $cc_basename in
10968 # FIXME: insert proper C++ library support
10972 # FIXME: insert proper C++ library support
10978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10979 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10981 hardcode_libdir_flag_spec_CXX='-R$libdir'
10982 hardcode_direct_CXX=yes
10983 hardcode_shlibpath_var_CXX=no
10985 # Workaround some broken pre-1.5 toolchains
10986 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10989 # C++ shared libraries are fairly broken
10993 if test -f /usr/libexec/ld.so; then
10994 hardcode_direct_CXX=yes
10995 hardcode_shlibpath_var_CXX=no
10996 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10999 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11000 export_dynamic_flag_spec_CXX='${wl}-E'
11001 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11003 output_verbose_link_cmd='echo'
11009 case $cc_basename in
11011 # Kuck and Associates, Inc. (KAI) C++ Compiler
11013 # KCC will only create a shared library if the output file
11014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11015 # to its proper name (with version) after linking.
11016 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'
11018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019 hardcode_libdir_separator_CXX=:
11021 # Archives containing C++ object files must be created using
11022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11027 # Rational C++ 2.4.1
11028 # FIXME: insert proper C++ library support
11032 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11033 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'
11035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11036 hardcode_libdir_separator_CXX=:
11038 # Commands to make compiler produce verbose output that lists
11039 # what "hidden" libraries, object files and flags are used when
11040 # linking a shared library.
11042 # There doesn't appear to be a way to prevent this compiler from
11043 # explicitly linking system object files so we need to strip them
11044 # from the output so that they don't get included in the library
11046 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'
11049 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11050 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11051 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'
11053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11054 hardcode_libdir_separator_CXX=:
11056 # Commands to make compiler produce verbose output that lists
11057 # what "hidden" libraries, object files and flags are used when
11058 # linking a shared library.
11059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11062 # FIXME: insert proper C++ library support
11069 case $cc_basename in
11071 # Kuck and Associates, Inc. (KAI) C++ Compiler
11073 # KCC will only create a shared library if the output file
11074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11075 # to its proper name (with version) after linking.
11076 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'
11078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11079 hardcode_libdir_separator_CXX=:
11081 # Archives containing C++ object files must be created using
11082 # the KAI C++ compiler.
11083 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11086 # Rational C++ 2.4.1
11087 # FIXME: insert proper C++ library support
11091 allow_undefined_flag_CXX=' -expect_unresolved \*'
11092 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'
11093 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11094 echo "-hidden">> $lib.exp~
11095 $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~
11098 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11099 hardcode_libdir_separator_CXX=:
11101 # Commands to make compiler produce verbose output that lists
11102 # what "hidden" libraries, object files and flags are used when
11103 # linking a shared library.
11105 # There doesn't appear to be a way to prevent this compiler from
11106 # explicitly linking system object files so we need to strip them
11107 # from the output so that they don't get included in the library
11109 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'
11112 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11114 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'
11116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11117 hardcode_libdir_separator_CXX=:
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11125 # FIXME: insert proper C++ library support
11132 # FIXME: insert proper C++ library support
11136 case $cc_basename in
11139 # FIXME: insert proper C++ library support
11144 # FIXME: insert proper C++ library support
11148 # FIXME: insert proper C++ library support
11154 case $cc_basename in
11156 # Sun C++ 4.2, 5.x and Centerline C++
11157 archive_cmds_need_lc_CXX=yes
11158 no_undefined_flag_CXX=' -zdefs'
11159 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11160 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11161 $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'
11163 hardcode_libdir_flag_spec_CXX='-R$libdir'
11164 hardcode_shlibpath_var_CXX=no
11166 solaris2.[0-5] | solaris2.[0-5].*) ;;
11168 # The compiler driver will combine and reorder linker options,
11169 # but understands `-z linker_flag'.
11170 # Supported since Solaris 2.6 (maybe 2.5.1?)
11171 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11174 link_all_deplibs_CXX=yes
11176 output_verbose_link_cmd='echo'
11178 # Archives containing C++ object files must be created using
11179 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11180 # necessary to make sure instantiated templates are included
11182 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11185 # Green Hills C++ Compiler
11186 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11188 # The C++ compiler must be used to create the archive.
11189 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11192 # GNU C++ compiler with Solaris linker
11193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11194 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11195 if $CC --version | grep -v '^2\.7' > /dev/null; then
11196 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11198 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11200 # Commands to make compiler produce verbose output that lists
11201 # what "hidden" libraries, object files and flags are used when
11202 # linking a shared library.
11203 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11205 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11207 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11208 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11209 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11211 # Commands to make compiler produce verbose output that lists
11212 # what "hidden" libraries, object files and flags are used when
11213 # linking a shared library.
11214 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11217 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11219 solaris2.[0-5] | solaris2.[0-5].*) ;;
11221 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11229 no_undefined_flag_CXX='${wl}-z,text'
11230 archive_cmds_need_lc_CXX=no
11231 hardcode_shlibpath_var_CXX=no
11232 runpath_var='LD_RUN_PATH'
11234 case $cc_basename in
11236 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11240 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11241 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11245 sysv5* | sco3.2v5* | sco5v6*)
11246 # Note: We can NOT use -z defs as we might desire, because we do not
11247 # link with -lc, and that would cause any symbols used from libc to
11248 # always be unresolved, which means just about no library would
11249 # ever link correctly. If we're not using GNU ld we use -z text
11250 # though, which does catch some bad symbols but isn't as heavy-handed
11252 # For security reasons, it is highly recommended that you always
11253 # use absolute paths for naming shared libraries, and exclude the
11254 # DT_RUNPATH tag from executables and libraries. But doing so
11255 # requires that you compile everything twice, which is a pain.
11256 # So that behaviour is only enabled if SCOABSPATH is set to a
11257 # non-empty value in the environment. Most likely only useful for
11258 # creating official distributions of packages.
11259 # This is a hack until libtool officially supports absolute path
11260 # names for shared libraries.
11261 no_undefined_flag_CXX='${wl}-z,text'
11262 allow_undefined_flag_CXX='${wl}-z,nodefs'
11263 archive_cmds_need_lc_CXX=no
11264 hardcode_shlibpath_var_CXX=no
11265 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11266 hardcode_libdir_separator_CXX=':'
11267 link_all_deplibs_CXX=yes
11268 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11269 runpath_var='LD_RUN_PATH'
11271 case $cc_basename in
11273 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11283 case $cc_basename in
11285 # NonStop-UX NCC 3.20
11286 # FIXME: insert proper C++ library support
11290 # FIXME: insert proper C++ library support
11296 # FIXME: insert proper C++ library support
11300 # FIXME: insert proper C++ library support
11304 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11305 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11306 test "$ld_shlibs_CXX" = no && can_build_shared=no
11312 cat > conftest.$ac_ext <<EOF
11316 Foo (void) { a = 0; }
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323 (eval $ac_compile) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; then
11327 # Parse the compiler output and extract the necessary
11328 # objects, libraries and library flags.
11330 # Sentinel used to keep track of whether or not we are before
11331 # the conftest object file.
11332 pre_test_object_deps_done=no
11334 # The `*' in the case matches for architectures that use `case' in
11335 # $output_verbose_cmd can trigger glob expansion during the loop
11336 # eval without this substitution.
11337 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11339 for p in `eval $output_verbose_link_cmd`; do
11343 # Some compilers place space between "-{L,R}" and the path.
11344 # Remove the space.
11345 if test $p = "-L" \
11346 || test $p = "-R"; then
11353 if test "$pre_test_object_deps_done" = no; then
11356 # Internal compiler library paths should come after those
11357 # provided the user. The postdeps already come after the
11358 # user supplied libs so there is no need to process them.
11359 if test -z "$compiler_lib_search_path_CXX"; then
11360 compiler_lib_search_path_CXX="${prev}${p}"
11362 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11365 # The "-l" case would never come before the object being
11366 # linked, so don't bother handling this case.
11369 if test -z "$postdeps_CXX"; then
11370 postdeps_CXX="${prev}${p}"
11372 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11378 # This assumes that the test object file only shows up
11379 # once in the compiler output.
11380 if test "$p" = "conftest.$objext"; then
11381 pre_test_object_deps_done=yes
11385 if test "$pre_test_object_deps_done" = no; then
11386 if test -z "$predep_objects_CXX"; then
11387 predep_objects_CXX="$p"
11389 predep_objects_CXX="$predep_objects_CXX $p"
11392 if test -z "$postdep_objects_CXX"; then
11393 postdep_objects_CXX="$p"
11395 postdep_objects_CXX="$postdep_objects_CXX $p"
11400 *) ;; # Ignore the rest.
11408 echo "libtool.m4: error: problem compiling CXX test program"
11411 $rm -f confest.$objext
11413 # PORTME: override above test on systems where it is broken
11416 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11417 # hack all around it, let's just trust "g++" to DTRT.
11418 predep_objects_CXX=
11419 postdep_objects_CXX=
11424 case `$CC -V 2>&1 | sed 5q` in
11428 # The more standards-conforming stlport4 library is
11429 # incompatible with the Cstd library. Avoid specifying
11430 # it if it's in CXXFLAGS. Ignore libCrun as
11431 # -library=stlport4 depends on it.
11432 case " $CXX $CXXFLAGS " in
11433 *" -library=stlport4 "*)
11434 solaris_use_stlport4=yes
11437 if test "$solaris_use_stlport4" != yes; then
11438 postdeps_CXX='-library=Cstd -library=Crun'
11445 case $cc_basename in
11447 # The more standards-conforming stlport4 library is
11448 # incompatible with the Cstd library. Avoid specifying
11449 # it if it's in CXXFLAGS. Ignore libCrun as
11450 # -library=stlport4 depends on it.
11451 case " $CXX $CXXFLAGS " in
11452 *" -library=stlport4 "*)
11453 solaris_use_stlport4=yes
11457 # Adding this requires a known-good setup of shared libraries for
11458 # Sun compiler versions before 5.6, else PIC objects from an old
11459 # archive will be linked into the output, leading to subtle bugs.
11460 if test "$solaris_use_stlport4" != yes; then
11461 postdeps_CXX='-library=Cstd -library=Crun'
11469 case " $postdeps_CXX " in
11470 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11473 lt_prog_compiler_wl_CXX=
11474 lt_prog_compiler_pic_CXX=
11475 lt_prog_compiler_static_CXX=
11477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11480 # C++ specific cases for pic, static, wl, etc.
11481 if test "$GXX" = yes; then
11482 lt_prog_compiler_wl_CXX='-Wl,'
11483 lt_prog_compiler_static_CXX='-static'
11487 # All AIX code is PIC.
11488 if test "$host_cpu" = ia64; then
11489 # AIX 5 now supports IA64 processor
11490 lt_prog_compiler_static_CXX='-Bstatic'
11494 # FIXME: we need at least 68020 code to build shared libraries, but
11495 # adding the `-m68020' flag to GCC prevents building anything better,
11497 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11500 # PIC is the default for these OSes.
11502 mingw* | cygwin* | os2* | pw32*)
11503 # This hack is so that the source file can tell whether it is being
11504 # built for inclusion in a dll (and should export symbols for example).
11505 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11506 # (--disable-auto-import) libraries
11507 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11509 darwin* | rhapsody*)
11510 # PIC is the default on this platform
11511 # Common symbols not allowed in MH_DYLIB files
11512 lt_prog_compiler_pic_CXX='-fno-common'
11515 # DJGPP does not support shared libraries at all
11516 lt_prog_compiler_pic_CXX=
11519 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11520 # Instead, we relocate shared libraries at runtime.
11523 if test -d /usr/nec; then
11524 lt_prog_compiler_pic_CXX=-Kconform_pic
11528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11529 # not for PA HP-UX.
11534 lt_prog_compiler_pic_CXX='-fPIC'
11539 lt_prog_compiler_pic_CXX='-fPIC'
11545 # All AIX code is PIC.
11546 if test "$host_cpu" = ia64; then
11547 # AIX 5 now supports IA64 processor
11548 lt_prog_compiler_static_CXX='-Bstatic'
11550 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11554 case $cc_basename in
11556 # Green Hills C++ Compiler
11557 # _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"
11562 # PIC is the default on this platform
11563 # Common symbols not allowed in MH_DYLIB files
11564 case $cc_basename in
11566 lt_prog_compiler_pic_CXX='-qnocommon'
11567 lt_prog_compiler_wl_CXX='-Wl,'
11572 case $cc_basename in
11574 lt_prog_compiler_pic_CXX='-KPIC'
11577 # Green Hills C++ Compiler
11578 lt_prog_compiler_pic_CXX='-pic'
11584 freebsd* | dragonfly*)
11585 # FreeBSD uses GNU C++
11587 hpux9* | hpux10* | hpux11*)
11588 case $cc_basename in
11590 lt_prog_compiler_wl_CXX='-Wl,'
11591 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11592 if test "$host_cpu" != ia64; then
11593 lt_prog_compiler_pic_CXX='+Z'
11597 lt_prog_compiler_wl_CXX='-Wl,'
11598 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11604 lt_prog_compiler_pic_CXX='+Z'
11613 # This is c89, which is MS Visual C++ (no shared libs)
11614 # Anyone wants to do a port?
11616 irix5* | irix6* | nonstopux*)
11617 case $cc_basename in
11619 lt_prog_compiler_wl_CXX='-Wl,'
11620 lt_prog_compiler_static_CXX='-non_shared'
11621 # CC pic flag -KPIC is the default.
11627 linux* | k*bsd*-gnu)
11628 case $cc_basename in
11631 lt_prog_compiler_wl_CXX='--backend -Wl,'
11632 lt_prog_compiler_pic_CXX='-fPIC'
11636 lt_prog_compiler_wl_CXX='-Wl,'
11637 lt_prog_compiler_pic_CXX='-KPIC'
11638 lt_prog_compiler_static_CXX='-static'
11641 # Portland Group C++ compiler.
11642 lt_prog_compiler_wl_CXX='-Wl,'
11643 lt_prog_compiler_pic_CXX='-fpic'
11644 lt_prog_compiler_static_CXX='-Bstatic'
11648 # Make sure the PIC flag is empty. It appears that all Alpha
11649 # Linux and Compaq Tru64 Unix objects are PIC.
11650 lt_prog_compiler_pic_CXX=
11651 lt_prog_compiler_static_CXX='-non_shared'
11654 case `$CC -V 2>&1 | sed 5q` in
11657 lt_prog_compiler_pic_CXX='-KPIC'
11658 lt_prog_compiler_static_CXX='-Bstatic'
11659 lt_prog_compiler_wl_CXX='-Qoption ld '
11670 case $cc_basename in
11672 lt_prog_compiler_pic_CXX='-W c,exportall'
11680 osf3* | osf4* | osf5*)
11681 case $cc_basename in
11683 lt_prog_compiler_wl_CXX='--backend -Wl,'
11686 # Rational C++ 2.4.1
11687 lt_prog_compiler_pic_CXX='-pic'
11690 # Digital/Compaq C++
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 # Make sure the PIC flag is empty. It appears that all Alpha
11693 # Linux and Compaq Tru64 Unix objects are PIC.
11694 lt_prog_compiler_pic_CXX=
11695 lt_prog_compiler_static_CXX='-non_shared'
11704 case $cc_basename in
11706 # Sun C++ 4.2, 5.x and Centerline C++
11707 lt_prog_compiler_pic_CXX='-KPIC'
11708 lt_prog_compiler_static_CXX='-Bstatic'
11709 lt_prog_compiler_wl_CXX='-Qoption ld '
11712 # Green Hills C++ Compiler
11713 lt_prog_compiler_pic_CXX='-PIC'
11720 case $cc_basename in
11723 lt_prog_compiler_pic_CXX='-pic'
11724 lt_prog_compiler_static_CXX='-Bstatic'
11728 lt_prog_compiler_pic_CXX='-pic'
11735 case $cc_basename in
11737 # NonStop-UX NCC 3.20
11738 lt_prog_compiler_pic_CXX='-KPIC'
11744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11745 case $cc_basename in
11747 lt_prog_compiler_wl_CXX='-Wl,'
11748 lt_prog_compiler_pic_CXX='-KPIC'
11749 lt_prog_compiler_static_CXX='-Bstatic'
11756 lt_prog_compiler_can_build_shared_CXX=no
11761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11765 # Check to make sure the PIC flag actually works.
11767 if test -n "$lt_prog_compiler_pic_CXX"; then
11769 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11771 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 lt_prog_compiler_pic_works_CXX=no
11775 ac_outfile=conftest.$ac_objext
11776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11777 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11778 # Insert the option either (1) after the last *FLAGS variable, or
11779 # (2) before a word containing "conftest.", or (3) at the end.
11780 # Note that $ac_compile itself does not contain backslashes and begins
11781 # with a dollar sign (not a hyphen), so the echo should work correctly.
11782 # The option is referenced via a variable to avoid confusing sed.
11783 lt_compile=`echo "$ac_compile" | $SED \
11784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11786 -e 's:$: $lt_compiler_flag:'`
11787 (eval echo "\"\$as_me:11787: $lt_compile\"" >&5)
11788 (eval "$lt_compile" 2>conftest.err)
11790 cat conftest.err >&5
11791 echo "$as_me:11791: \$? = $ac_status" >&5
11792 if (exit $ac_status) && test -s "$ac_outfile"; then
11793 # The compiler can only warn and ignore the option if not recognized
11794 # So say no if there are warnings other than the usual output.
11795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11798 lt_prog_compiler_pic_works_CXX=yes
11804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11808 case $lt_prog_compiler_pic_CXX in
11810 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11813 lt_prog_compiler_pic_CXX=
11814 lt_prog_compiler_can_build_shared_CXX=no
11819 # For platforms which do not support PIC, -DPIC is meaningless:
11821 lt_prog_compiler_pic_CXX=
11824 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11829 # Check to make sure the static flag actually works.
11831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11832 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11834 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 lt_prog_compiler_static_works_CXX=no
11838 save_LDFLAGS="$LDFLAGS"
11839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11842 # The linker can only warn and ignore the option if not recognized
11843 # So say no if there are warnings
11844 if test -s conftest.err; then
11845 # Append any errors to the config.log.
11846 cat conftest.err 1>&5
11847 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849 if diff conftest.exp conftest.er2 >/dev/null; then
11850 lt_prog_compiler_static_works_CXX=yes
11853 lt_prog_compiler_static_works_CXX=yes
11857 LDFLAGS="$save_LDFLAGS"
11860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11861 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11863 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11866 lt_prog_compiler_static_CXX=
11870 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11872 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 lt_cv_prog_compiler_c_o_CXX=no
11876 $rm -r conftest 2>/dev/null
11880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11882 lt_compiler_flag="-o out/conftest2.$ac_objext"
11883 # Insert the option either (1) after the last *FLAGS variable, or
11884 # (2) before a word containing "conftest.", or (3) at the end.
11885 # Note that $ac_compile itself does not contain backslashes and begins
11886 # with a dollar sign (not a hyphen), so the echo should work correctly.
11887 lt_compile=`echo "$ac_compile" | $SED \
11888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890 -e 's:$: $lt_compiler_flag:'`
11891 (eval echo "\"\$as_me:11891: $lt_compile\"" >&5)
11892 (eval "$lt_compile" 2>out/conftest.err)
11894 cat out/conftest.err >&5
11895 echo "$as_me:11895: \$? = $ac_status" >&5
11896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11898 # The compiler can only warn and ignore the option if not recognized
11899 # So say no if there are warnings
11900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11903 lt_cv_prog_compiler_c_o_CXX=yes
11908 # SGI C++ compiler will create directory out/ii_files/ for
11909 # template instantiation
11910 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11911 $rm out/* && rmdir out
11917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11921 hard_links="nottested"
11922 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11923 # do not overwrite the value of need_locks provided by the user
11924 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11930 ln conftest.a conftest.b 2>&5 || hard_links=no
11931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11932 { echo "$as_me:$LINENO: result: $hard_links" >&5
11933 echo "${ECHO_T}$hard_links" >&6; }
11934 if test "$hard_links" = no; then
11935 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11943 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11949 # If we're using GNU nm, then we don't want the "-C" option.
11950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11952 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'
11954 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'
11958 export_symbols_cmds_CXX="$ltdll_cmds"
11961 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'
11964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11968 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11969 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11970 test "$ld_shlibs_CXX" = no && can_build_shared=no
11973 # Do we need to explicitly link libc?
11975 case "x$archive_cmds_need_lc_CXX" in
11977 # Assume -lc should be added
11978 archive_cmds_need_lc_CXX=yes
11980 if test "$enable_shared" = yes && test "$GCC" = yes; then
11981 case $archive_cmds_CXX in
11983 # FIXME: we may have to deal with multi-command sequences.
11986 # Test whether the compiler implicitly links with -lc since on some
11987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11988 # to ld, don't add -lc before -lgcc.
11989 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } 2>conftest.err; then
12001 libobjs=conftest.$ac_objext
12003 wl=$lt_prog_compiler_wl_CXX
12004 pic_flag=$lt_prog_compiler_pic_CXX
12010 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12011 allow_undefined_flag_CXX=
12012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12013 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }
12018 archive_cmds_need_lc_CXX=no
12020 archive_cmds_need_lc_CXX=yes
12022 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12024 cat conftest.err 1>&5
12027 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12035 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12037 library_names_spec=
12038 libname_spec='lib$name'
12042 postuninstall_cmds=
12046 shlibpath_overrides_runpath=unknown
12048 dynamic_linker="$host_os ld.so"
12049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12051 need_lib_prefix=unknown
12052 hardcode_into_libs=no
12054 # when you set need_version to no, make sure it does not cause -set_version
12055 # flags to be left without arguments
12056 need_version=unknown
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12062 shlibpath_var=LIBPATH
12064 # AIX 3 has no versioning support, so we append a major version to the name.
12065 soname_spec='${libname}${release}${shared_ext}$major'
12072 hardcode_into_libs=yes
12073 if test "$host_cpu" = ia64; then
12074 # AIX 5 supports IA64
12075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12076 shlibpath_var=LD_LIBRARY_PATH
12078 # With GCC up to 2.95.x, collect2 would create an import file
12079 # for dependence libraries. The import file would start with
12080 # the line `#! .'. This would cause the generated library to
12081 # depend on `.', always an invalid library. This was fixed in
12082 # development snapshots of GCC prior to 3.0.
12084 aix4 | aix4.[01] | aix4.[01].*)
12085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12087 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12090 can_build_shared=no
12094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12095 # soname into executable. Probably we can add versioning support to
12096 # collect2, so additional links can be useful in future.
12097 if test "$aix_use_runtimelinking" = yes; then
12098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12099 # instead of lib<name>.a to let people know that these are not
12100 # typical AIX shared libraries.
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103 # We preserve .a as extension for shared libraries through AIX4.2
12104 # and later when we are not doing run time linking.
12105 library_names_spec='${libname}${release}.a $libname.a'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12108 shlibpath_var=LIBPATH
12113 library_names_spec='$libname.ixlibrary $libname.a'
12114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12115 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'
12119 library_names_spec='${libname}${shared_ext}'
12120 dynamic_linker="$host_os ld.so"
12121 shlibpath_var=LIBRARY_PATH
12127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128 soname_spec='${libname}${release}${shared_ext}$major'
12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12133 # the default ld.so.conf also contains /usr/contrib/lib and
12134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12135 # libtool to hard-code these into programs
12138 cygwin* | mingw* | pw32*)
12139 version_type=windows
12144 case $GCC,$host_os in
12145 yes,cygwin* | yes,mingw* | yes,pw32*)
12146 library_names_spec='$libname.dll.a'
12147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12148 postinstall_cmds='base_file=`basename \${file}`~
12149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12150 dldir=$destdir/`dirname \$dlpath`~
12151 test -d \$dldir || mkdir -p \$dldir~
12152 $install_prog $dir/$dlname \$dldir/$dlname~
12153 chmod a+x \$dldir/$dlname'
12154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12155 dlpath=$dir/\$dldll~
12157 shlibpath_overrides_runpath=yes
12161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12166 # MinGW DLLs use traditional 'lib' prefix
12167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12169 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12170 # It is most probably a Windows format PATH printed by
12171 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12172 # path with ; separators, and with drive letters. We can handle the
12173 # drive letters (cygwin fileutils understands them), so leave them,
12174 # especially as we might pass files found there to a mingw objdump,
12175 # which wouldn't understand a cygwinified path. Ahh.
12176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12182 # pw32 DLLs use 'pw' prefix rather than 'lib'
12183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12192 dynamic_linker='Win32 ld.exe'
12193 # FIXME: first we should search . and the directory the executable is in
12197 darwin* | rhapsody*)
12198 dynamic_linker="$host_os dyld"
12199 version_type=darwin
12202 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12203 soname_spec='${libname}${release}${major}$shared_ext'
12204 shlibpath_overrides_runpath=yes
12205 shlibpath_var=DYLD_LIBRARY_PATH
12206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12216 soname_spec='${libname}${release}${shared_ext}$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12224 freebsd* | dragonfly*)
12225 # DragonFly does not have aout. When/if they implement a new
12226 # versioning mechanism, adjust this.
12227 if test -x /usr/bin/objformat; then
12228 objformat=`/usr/bin/objformat`
12231 freebsd[123]*) objformat=aout ;;
12232 *) objformat=elf ;;
12235 version_type=freebsd-$objformat
12236 case $version_type in
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12247 shlibpath_var=LD_LIBRARY_PATH
12250 shlibpath_overrides_runpath=yes
12252 freebsd3.[01]* | freebsdelf3.[01]*)
12253 shlibpath_overrides_runpath=yes
12254 hardcode_into_libs=yes
12256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12258 shlibpath_overrides_runpath=no
12259 hardcode_into_libs=yes
12261 *) # from 4.6 on, and DragonFly
12262 shlibpath_overrides_runpath=yes
12263 hardcode_into_libs=yes
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 hardcode_into_libs=yes
12278 hpux9* | hpux10* | hpux11*)
12279 # Give a soname corresponding to the major version so that dld.sl refuses to
12280 # link against other versions.
12287 hardcode_into_libs=yes
12288 dynamic_linker="$host_os dld.so"
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 if test "X$HPUX_IA64_MODE" = X32; then
12294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12302 hardcode_into_libs=yes
12303 dynamic_linker="$host_os dld.sl"
12304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12313 dynamic_linker="$host_os dld.sl"
12314 shlibpath_var=SHLIB_PATH
12315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317 soname_spec='${libname}${release}${shared_ext}$major'
12320 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12321 postinstall_cmds='chmod 555 $lib'
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=no
12333 hardcode_into_libs=yes
12336 irix5* | irix6* | nonstopux*)
12338 nonstopux*) version_type=nonstopux ;;
12340 if test "$lt_cv_prog_gnu_ld" = yes; then
12348 soname_spec='${libname}${release}${shared_ext}$major'
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12351 irix5* | nonstopux*)
12352 libsuff= shlibsuff=
12355 case $LD in # libtool.m4 will add one of these switches to LD
12356 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12357 libsuff= shlibsuff= libmagic=32-bit;;
12358 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12359 libsuff=32 shlibsuff=N32 libmagic=N32;;
12360 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12361 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12362 *) libsuff= shlibsuff= libmagic=never-match;;
12366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12367 shlibpath_overrides_runpath=no
12368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12370 hardcode_into_libs=yes
12373 # No shared lib support for Linux oldld, aout, or coff.
12374 linux*oldld* | linux*aout* | linux*coff*)
12378 # This must be Linux ELF.
12379 linux* | k*bsd*-gnu)
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 shlibpath_overrides_runpath=no
12388 # This implies no fast_install, which is unacceptable.
12389 # Some rework will be needed to allow for fast_install
12390 # before this can be enabled.
12391 hardcode_into_libs=yes
12393 # Append ld.so.conf contents to the search path
12394 if test -f /etc/ld.so.conf; then
12395 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' ' '`
12396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12399 # We used to test for /lib/ld.so.1 and disable shared libraries on
12400 # powerpc, because MkLinux only supported shared libraries with the
12401 # GNU dynamic linker. Since this was broken with cross compilers,
12402 # most powerpc-linux boxes support dynamic linking these days and
12403 # people can always --disable-shared, the test was removed, and we
12404 # assume the GNU/Linux dynamic linker is in use.
12405 dynamic_linker='GNU/Linux ld.so'
12412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12415 dynamic_linker='NetBSD (a.out) ld.so'
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 dynamic_linker='NetBSD ld.elf_so'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=yes
12423 hardcode_into_libs=yes
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 shlibpath_overrides_runpath=yes
12437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12438 soname_spec='${libname}${release}${shared_ext}$major'
12439 shlibpath_var=LD_LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12445 sys_lib_dlsearch_path_spec="/usr/lib"
12447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12450 *) need_version=no ;;
12452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454 shlibpath_var=LD_LIBRARY_PATH
12455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12457 openbsd2.[89] | openbsd2.[89].*)
12458 shlibpath_overrides_runpath=no
12461 shlibpath_overrides_runpath=yes
12465 shlibpath_overrides_runpath=yes
12470 libname_spec='$name'
12473 library_names_spec='$libname${shared_ext} $libname.a'
12474 dynamic_linker='OS/2 ld.exe'
12475 shlibpath_var=LIBPATH
12478 osf3* | osf4* | osf5*)
12482 soname_spec='${libname}${release}${shared_ext}$major'
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12498 soname_spec='${libname}${release}${shared_ext}$major'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=yes
12501 hardcode_into_libs=yes
12502 # ldd complains unless libraries are executable
12503 postinstall_cmds='chmod +x $lib'
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=yes
12512 if test "$with_gnu_ld" = yes; then
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 case $host_vendor in
12525 shlibpath_overrides_runpath=no
12527 export_dynamic_flag_spec='${wl}-Blargedynsym'
12528 runpath_var=LD_RUN_PATH
12536 shlibpath_overrides_runpath=no
12537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12543 if test -d /usr/nec ;then
12545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12546 soname_spec='$libname${shared_ext}.$major'
12547 shlibpath_var=LD_LIBRARY_PATH
12551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12552 version_type=freebsd-elf
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12556 soname_spec='${libname}${release}${shared_ext}$major'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 hardcode_into_libs=yes
12559 if test "$with_gnu_ld" = yes; then
12560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12561 shlibpath_overrides_runpath=no
12563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12564 shlibpath_overrides_runpath=yes
12567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12571 sys_lib_dlsearch_path_spec='/usr/lib'
12576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577 soname_spec='${libname}${release}${shared_ext}$major'
12578 shlibpath_var=LD_LIBRARY_PATH
12585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12586 echo "${ECHO_T}$dynamic_linker" >&6; }
12587 test "$dynamic_linker" = no && can_build_shared=no
12589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12590 if test "$GCC" = yes; then
12591 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12596 hardcode_action_CXX=
12597 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12598 test -n "$runpath_var_CXX" || \
12599 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12601 # We can hardcode non-existant directories.
12602 if test "$hardcode_direct_CXX" != no &&
12603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12604 # have to relink, otherwise we might link with an installed library
12605 # when we should be linking with a yet-to-be-installed one
12606 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12607 test "$hardcode_minus_L_CXX" != no; then
12608 # Linking always hardcodes the temporary library directory.
12609 hardcode_action_CXX=relink
12611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12612 hardcode_action_CXX=immediate
12615 # We cannot hardcode anything, or else we can only hardcode existing
12617 hardcode_action_CXX=unsupported
12619 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12620 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12622 if test "$hardcode_action_CXX" = relink; then
12623 # Fast installation is not supported
12624 enable_fast_install=no
12625 elif test "$shlibpath_overrides_runpath" = yes ||
12626 test "$enable_shared" = no; then
12627 # Fast installation is not necessary
12628 enable_fast_install=needless
12632 # The else clause should only fire when bootstrapping the
12633 # libtool distribution, otherwise you forgot to ship ltmain.sh
12634 # with your package, and you will get complaints that there are
12635 # no rules to generate ltmain.sh.
12636 if test -f "$ltmain"; then
12637 # See if we are running on zsh, and set the options which allow our commands through
12638 # without removal of \ escapes.
12639 if test -n "${ZSH_VERSION+set}" ; then
12640 setopt NO_GLOB_SUBST
12642 # Now quote all the things that may contain metacharacters while being
12643 # careful not to overquote the AC_SUBSTed values. We take copies of the
12644 # variables and quote the copies for generation of the libtool script.
12645 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12649 deplibs_check_method reload_flag reload_cmds need_locks \
12650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12651 lt_cv_sys_global_symbol_to_c_name_address \
12652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12653 old_postinstall_cmds old_postuninstall_cmds \
12657 lt_prog_compiler_wl_CXX \
12658 lt_prog_compiler_pic_CXX \
12659 lt_prog_compiler_static_CXX \
12660 lt_prog_compiler_no_builtin_flag_CXX \
12661 export_dynamic_flag_spec_CXX \
12662 thread_safe_flag_spec_CXX \
12663 whole_archive_flag_spec_CXX \
12664 enable_shared_with_static_runtimes_CXX \
12665 old_archive_cmds_CXX \
12666 old_archive_from_new_cmds_CXX \
12667 predep_objects_CXX \
12668 postdep_objects_CXX \
12671 compiler_lib_search_path_CXX \
12673 archive_expsym_cmds_CXX \
12674 postinstall_cmds_CXX \
12675 postuninstall_cmds_CXX \
12676 old_archive_from_expsyms_cmds_CXX \
12677 allow_undefined_flag_CXX \
12678 no_undefined_flag_CXX \
12679 export_symbols_cmds_CXX \
12680 hardcode_libdir_flag_spec_CXX \
12681 hardcode_libdir_flag_spec_ld_CXX \
12682 hardcode_libdir_separator_CXX \
12683 hardcode_automatic_CXX \
12685 module_expsym_cmds_CXX \
12686 lt_cv_prog_compiler_c_o_CXX \
12687 fix_srcfile_path_CXX \
12688 exclude_expsyms_CXX \
12689 include_expsyms_CXX; do
12692 old_archive_cmds_CXX | \
12693 old_archive_from_new_cmds_CXX | \
12694 archive_cmds_CXX | \
12695 archive_expsym_cmds_CXX | \
12696 module_cmds_CXX | \
12697 module_expsym_cmds_CXX | \
12698 old_archive_from_expsyms_cmds_CXX | \
12699 export_symbols_cmds_CXX | \
12700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12701 postinstall_cmds | postuninstall_cmds | \
12702 old_postinstall_cmds | old_postuninstall_cmds | \
12703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12704 # Double-quote double-evaled strings.
12705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12714 *'\$0 --fallback-echo"')
12715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12721 cat <<__EOF__ >> "$cfgfile"
12722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12726 # Shell to use when invoking shell scripts.
12729 # Whether or not to build shared libraries.
12730 build_libtool_libs=$enable_shared
12732 # Whether or not to build static libraries.
12733 build_old_libs=$enable_static
12735 # Whether or not to add -lc for building shared libraries.
12736 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12738 # Whether or not to disallow shared libs when runtime libs are static
12739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12741 # Whether or not to optimize for fast installation.
12742 fast_install=$enable_fast_install
12745 host_alias=$host_alias
12749 # The build system.
12750 build_alias=$build_alias
12754 # An echo program that does not interpret backslashes.
12759 AR_FLAGS=$lt_AR_FLAGS
12764 # LTCC compiler flags.
12765 LTCFLAGS=$lt_LTCFLAGS
12767 # A language-specific compiler.
12768 CC=$lt_compiler_CXX
12770 # Is the compiler the GNU C compiler?
12776 # The linker used to build libraries.
12779 # Whether we need hard or soft links.
12782 # A BSD-compatible nm program.
12785 # A symbol stripping program
12788 # Used to examine libraries when file_magic_cmd begins "file"
12789 MAGIC_CMD=$MAGIC_CMD
12791 # Used on cygwin: DLL creation program.
12794 # Used on cygwin: object dumper.
12797 # Used on cygwin: assembler.
12800 # The name of the directory that contains temporary libtool files.
12803 # How to create reloadable object files.
12804 reload_flag=$lt_reload_flag
12805 reload_cmds=$lt_reload_cmds
12807 # How to pass a linker flag through the compiler.
12808 wl=$lt_lt_prog_compiler_wl_CXX
12810 # Object file suffix (normally "o").
12811 objext="$ac_objext"
12813 # Old archive suffix (normally "a").
12816 # Shared library suffix (normally ".so").
12817 shrext_cmds='$shrext_cmds'
12819 # Executable file suffix (normally "").
12822 # Additional compiler flags for building library objects.
12823 pic_flag=$lt_lt_prog_compiler_pic_CXX
12826 # What is the maximum length of a command?
12827 max_cmd_len=$lt_cv_sys_max_cmd_len
12829 # Does compiler simultaneously support -c and -o options?
12830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12832 # Must we lock files when doing compilation?
12833 need_locks=$lt_need_locks
12835 # Do we need the lib prefix for modules?
12836 need_lib_prefix=$need_lib_prefix
12838 # Do we need a version for libraries?
12839 need_version=$need_version
12841 # Whether dlopen is supported.
12842 dlopen_support=$enable_dlopen
12844 # Whether dlopen of programs is supported.
12845 dlopen_self=$enable_dlopen_self
12847 # Whether dlopen of statically linked programs is supported.
12848 dlopen_self_static=$enable_dlopen_self_static
12850 # Compiler flag to prevent dynamic linking.
12851 link_static_flag=$lt_lt_prog_compiler_static_CXX
12853 # Compiler flag to turn off builtin functions.
12854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12856 # Compiler flag to allow reflexive dlopens.
12857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12859 # Compiler flag to generate shared objects directly from archives.
12860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12862 # Compiler flag to generate thread-safe objects.
12863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12865 # Library versioning type.
12866 version_type=$version_type
12868 # Format of library name prefix.
12869 libname_spec=$lt_libname_spec
12871 # List of archive names. First name is the real one, the rest are links.
12872 # The last name is the one that the linker finds with -lNAME.
12873 library_names_spec=$lt_library_names_spec
12875 # The coded name of the library, if different from the real name.
12876 soname_spec=$lt_soname_spec
12878 # Commands used to build and install an old-style archive.
12880 old_archive_cmds=$lt_old_archive_cmds_CXX
12881 old_postinstall_cmds=$lt_old_postinstall_cmds
12882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12884 # Create an old-style archive from a shared archive.
12885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12887 # Create a temporary old-style archive to link instead of a shared archive.
12888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12890 # Commands used to build and install a shared archive.
12891 archive_cmds=$lt_archive_cmds_CXX
12892 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12893 postinstall_cmds=$lt_postinstall_cmds
12894 postuninstall_cmds=$lt_postuninstall_cmds
12896 # Commands used to build a loadable module (assumed same as above if empty)
12897 module_cmds=$lt_module_cmds_CXX
12898 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12900 # Commands to strip libraries.
12901 old_striplib=$lt_old_striplib
12902 striplib=$lt_striplib
12904 # Dependencies to place before the objects being linked to create a
12906 predep_objects=$lt_predep_objects_CXX
12908 # Dependencies to place after the objects being linked to create a
12910 postdep_objects=$lt_postdep_objects_CXX
12912 # Dependencies to place before the objects being linked to create a
12914 predeps=$lt_predeps_CXX
12916 # Dependencies to place after the objects being linked to create a
12918 postdeps=$lt_postdeps_CXX
12920 # The library search path used internally by the compiler when linking
12921 # a shared library.
12922 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12924 # Method to check whether dependent libraries are shared objects.
12925 deplibs_check_method=$lt_deplibs_check_method
12927 # Command to use when deplibs_check_method == file_magic.
12928 file_magic_cmd=$lt_file_magic_cmd
12930 # Flag that allows shared libraries with undefined symbols to be built.
12931 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12933 # Flag that forces no undefined symbols.
12934 no_undefined_flag=$lt_no_undefined_flag_CXX
12936 # Commands used to finish a libtool library installation in a directory.
12937 finish_cmds=$lt_finish_cmds
12939 # Same as above, but a single script fragment to be evaled but not shown.
12940 finish_eval=$lt_finish_eval
12942 # Take the output of nm and produce a listing of raw symbols and C names.
12943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12945 # Transform the output of nm in a proper C declaration
12946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12948 # Transform the output of nm in a C name address pair
12949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12951 # This is the shared library runtime path variable.
12952 runpath_var=$runpath_var
12954 # This is the shared library path variable.
12955 shlibpath_var=$shlibpath_var
12957 # Is shlibpath searched before the hard-coded library search path?
12958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12960 # How to hardcode a shared library path into an executable.
12961 hardcode_action=$hardcode_action_CXX
12963 # Whether we should hardcode library paths into libraries.
12964 hardcode_into_libs=$hardcode_into_libs
12966 # Flag to hardcode \$libdir into a binary during linking.
12967 # This must work even if \$libdir does not exist.
12968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12970 # If ld is used when linking, flag to hardcode \$libdir into
12971 # a binary during linking. This must work even if \$libdir does
12973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12975 # Whether we need a single -rpath flag with a separated argument.
12976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12979 # resulting binary.
12980 hardcode_direct=$hardcode_direct_CXX
12982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12983 # resulting binary.
12984 hardcode_minus_L=$hardcode_minus_L_CXX
12986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12987 # the resulting binary.
12988 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12990 # Set to yes if building a shared library automatically hardcodes DIR into the library
12991 # and all subsequent libraries and executables linked against it.
12992 hardcode_automatic=$hardcode_automatic_CXX
12994 # Variables whose values should be saved in libtool wrapper scripts and
12995 # restored at relink time.
12996 variables_saved_for_relink="$variables_saved_for_relink"
12998 # Whether libtool must link a program against all its dependency libraries.
12999 link_all_deplibs=$link_all_deplibs_CXX
13001 # Compile-time system search path for libraries
13002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13004 # Run-time system search path for libraries
13005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13007 # Fix the shell variable \$srcfile for the compiler.
13008 fix_srcfile_path=$lt_fix_srcfile_path
13010 # Set to yes if exported symbols are required.
13011 always_export_symbols=$always_export_symbols_CXX
13013 # The commands to list exported symbols.
13014 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13016 # The commands to extract the exported symbol list from a shared archive.
13017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13019 # Symbols that should not be listed in the preloaded symbols.
13020 exclude_expsyms=$lt_exclude_expsyms_CXX
13022 # Symbols that must always be exported.
13023 include_expsyms=$lt_include_expsyms_CXX
13025 # ### END LIBTOOL TAG CONFIG: $tagname
13031 # If there is no Makefile yet, we rely on a make rule to execute
13032 # `config.status --recheck' to rerun these tests and create the
13033 # libtool script then.
13034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13035 if test -f "$ltmain_in"; then
13036 test -f Makefile && make "$ltmain"
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13051 with_gnu_ldcxx=$with_gnu_ld
13052 with_gnu_ld=$lt_save_with_gnu_ld
13053 lt_cv_path_LDCXX=$lt_cv_path_LD
13054 lt_cv_path_LD=$lt_save_path_LD
13055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13064 if test -n "$F77" && test "X$F77" != "Xno"; then
13067 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13068 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13072 archive_cmds_need_lc_F77=no
13073 allow_undefined_flag_F77=
13074 always_export_symbols_F77=no
13075 archive_expsym_cmds_F77=
13076 export_dynamic_flag_spec_F77=
13077 hardcode_direct_F77=no
13078 hardcode_libdir_flag_spec_F77=
13079 hardcode_libdir_flag_spec_ld_F77=
13080 hardcode_libdir_separator_F77=
13081 hardcode_minus_L_F77=no
13082 hardcode_automatic_F77=no
13084 module_expsym_cmds_F77=
13085 link_all_deplibs_F77=unknown
13086 old_archive_cmds_F77=$old_archive_cmds
13087 no_undefined_flag_F77=
13088 whole_archive_flag_spec_F77=
13089 enable_shared_with_static_runtimes_F77=no
13091 # Source file extension for f77 test sources.
13094 # Object file extension for compiled f77 test sources.
13098 # Code to be used in simple compile tests
13099 lt_simple_compile_test_code="\
13105 # Code to be used in simple link tests
13106 lt_simple_link_test_code="\
13111 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13113 # If no C compiler was specified, use CC.
13116 # If no C compiler flags were specified, use CFLAGS.
13117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13119 # Allow CC to be a program name with arguments.
13123 # save warnings/boilerplate of simple test code
13124 ac_outfile=conftest.$ac_objext
13125 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13127 _lt_compiler_boilerplate=`cat conftest.err`
13130 ac_outfile=conftest.$ac_objext
13131 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13133 _lt_linker_boilerplate=`cat conftest.err`
13137 # Allow CC to be a program name with arguments.
13142 for cc_temp in $compiler""; do
13144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13153 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13154 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13155 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13156 echo "${ECHO_T}$can_build_shared" >&6; }
13158 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13159 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13160 test "$can_build_shared" = "no" && enable_shared=no
13162 # On AIX, shared libraries and static libraries use the same namespace, and
13163 # are all built from PIC.
13166 test "$enable_shared" = yes && enable_static=no
13167 if test -n "$RANLIB"; then
13168 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13169 postinstall_cmds='$RANLIB $lib'
13173 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13174 test "$enable_shared" = yes && enable_static=no
13178 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13179 echo "${ECHO_T}$enable_shared" >&6; }
13181 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13183 # Make sure either enable_shared or enable_static is yes.
13184 test "$enable_shared" = yes || enable_static=yes
13185 { echo "$as_me:$LINENO: result: $enable_static" >&5
13186 echo "${ECHO_T}$enable_static" >&6; }
13191 lt_prog_compiler_wl_F77=
13192 lt_prog_compiler_pic_F77=
13193 lt_prog_compiler_static_F77=
13195 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13198 if test "$GCC" = yes; then
13199 lt_prog_compiler_wl_F77='-Wl,'
13200 lt_prog_compiler_static_F77='-static'
13204 # All AIX code is PIC.
13205 if test "$host_cpu" = ia64; then
13206 # AIX 5 now supports IA64 processor
13207 lt_prog_compiler_static_F77='-Bstatic'
13212 # FIXME: we need at least 68020 code to build shared libraries, but
13213 # adding the `-m68020' flag to GCC prevents building anything better,
13215 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13218 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13219 # PIC is the default for these OSes.
13222 mingw* | cygwin* | pw32* | os2*)
13223 # This hack is so that the source file can tell whether it is being
13224 # built for inclusion in a dll (and should export symbols for example).
13225 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13226 # (--disable-auto-import) libraries
13227 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13230 darwin* | rhapsody*)
13231 # PIC is the default on this platform
13232 # Common symbols not allowed in MH_DYLIB files
13233 lt_prog_compiler_pic_F77='-fno-common'
13237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13238 # Instead, we relocate shared libraries at runtime.
13242 # Just because we use GCC doesn't mean we suddenly get shared libraries
13243 # on systems that don't support them.
13244 lt_prog_compiler_can_build_shared_F77=no
13249 if test -d /usr/nec; then
13250 lt_prog_compiler_pic_F77=-Kconform_pic
13255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13256 # not for PA HP-UX.
13262 lt_prog_compiler_pic_F77='-fPIC'
13268 lt_prog_compiler_pic_F77='-fPIC'
13272 # PORTME Check for flag to pass linker flags through the system compiler.
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 if test "$host_cpu" = ia64; then
13277 # AIX 5 now supports IA64 processor
13278 lt_prog_compiler_static_F77='-Bstatic'
13280 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13284 # PIC is the default on this platform
13285 # Common symbols not allowed in MH_DYLIB files
13286 case $cc_basename in
13288 lt_prog_compiler_pic_F77='-qnocommon'
13289 lt_prog_compiler_wl_F77='-Wl,'
13294 mingw* | cygwin* | pw32* | os2*)
13295 # This hack is so that the source file can tell whether it is being
13296 # built for inclusion in a dll (and should export symbols for example).
13297 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13300 hpux9* | hpux10* | hpux11*)
13301 lt_prog_compiler_wl_F77='-Wl,'
13302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13303 # not for PA HP-UX.
13309 lt_prog_compiler_pic_F77='+Z'
13312 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13313 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13316 irix5* | irix6* | nonstopux*)
13317 lt_prog_compiler_wl_F77='-Wl,'
13318 # PIC (with -KPIC) is the default.
13319 lt_prog_compiler_static_F77='-non_shared'
13323 lt_prog_compiler_pic_F77='-KPIC'
13324 lt_prog_compiler_static_F77='-Bstatic'
13327 linux* | k*bsd*-gnu)
13328 case $cc_basename in
13330 lt_prog_compiler_wl_F77='-Wl,'
13331 lt_prog_compiler_pic_F77='-KPIC'
13332 lt_prog_compiler_static_F77='-static'
13334 pgcc* | pgf77* | pgf90* | pgf95*)
13335 # Portland Group compilers (*not* the Pentium gcc compiler,
13336 # which looks to be a dead project)
13337 lt_prog_compiler_wl_F77='-Wl,'
13338 lt_prog_compiler_pic_F77='-fpic'
13339 lt_prog_compiler_static_F77='-Bstatic'
13342 lt_prog_compiler_wl_F77='-Wl,'
13343 # All Alpha code is PIC.
13344 lt_prog_compiler_static_F77='-non_shared'
13347 case `$CC -V 2>&1 | sed 5q` in
13350 lt_prog_compiler_pic_F77='-KPIC'
13351 lt_prog_compiler_static_F77='-Bstatic'
13352 lt_prog_compiler_wl_F77='-Wl,'
13355 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13356 lt_prog_compiler_pic_F77='-KPIC'
13357 lt_prog_compiler_static_F77='-Bstatic'
13358 lt_prog_compiler_wl_F77=''
13365 osf3* | osf4* | osf5*)
13366 lt_prog_compiler_wl_F77='-Wl,'
13367 # All OSF/1 code is PIC.
13368 lt_prog_compiler_static_F77='-non_shared'
13372 lt_prog_compiler_static_F77='-non_shared'
13376 lt_prog_compiler_pic_F77='-KPIC'
13377 lt_prog_compiler_static_F77='-Bstatic'
13378 case $cc_basename in
13379 f77* | f90* | f95*)
13380 lt_prog_compiler_wl_F77='-Qoption ld ';;
13382 lt_prog_compiler_wl_F77='-Wl,';;
13387 lt_prog_compiler_wl_F77='-Qoption ld '
13388 lt_prog_compiler_pic_F77='-PIC'
13389 lt_prog_compiler_static_F77='-Bstatic'
13392 sysv4 | sysv4.2uw2* | sysv4.3*)
13393 lt_prog_compiler_wl_F77='-Wl,'
13394 lt_prog_compiler_pic_F77='-KPIC'
13395 lt_prog_compiler_static_F77='-Bstatic'
13399 if test -d /usr/nec ;then
13400 lt_prog_compiler_pic_F77='-Kconform_pic'
13401 lt_prog_compiler_static_F77='-Bstatic'
13405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13406 lt_prog_compiler_wl_F77='-Wl,'
13407 lt_prog_compiler_pic_F77='-KPIC'
13408 lt_prog_compiler_static_F77='-Bstatic'
13412 lt_prog_compiler_wl_F77='-Wl,'
13413 lt_prog_compiler_can_build_shared_F77=no
13417 lt_prog_compiler_pic_F77='-pic'
13418 lt_prog_compiler_static_F77='-Bstatic'
13422 lt_prog_compiler_can_build_shared_F77=no
13427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13428 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13431 # Check to make sure the PIC flag actually works.
13433 if test -n "$lt_prog_compiler_pic_F77"; then
13435 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13436 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13437 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 lt_prog_compiler_pic_works_F77=no
13441 ac_outfile=conftest.$ac_objext
13442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13444 # Insert the option either (1) after the last *FLAGS variable, or
13445 # (2) before a word containing "conftest.", or (3) at the end.
13446 # Note that $ac_compile itself does not contain backslashes and begins
13447 # with a dollar sign (not a hyphen), so the echo should work correctly.
13448 # The option is referenced via a variable to avoid confusing sed.
13449 lt_compile=`echo "$ac_compile" | $SED \
13450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452 -e 's:$: $lt_compiler_flag:'`
13453 (eval echo "\"\$as_me:13453: $lt_compile\"" >&5)
13454 (eval "$lt_compile" 2>conftest.err)
13456 cat conftest.err >&5
13457 echo "$as_me:13457: \$? = $ac_status" >&5
13458 if (exit $ac_status) && test -s "$ac_outfile"; then
13459 # The compiler can only warn and ignore the option if not recognized
13460 # So say no if there are warnings other than the usual output.
13461 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13464 lt_prog_compiler_pic_works_F77=yes
13470 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13471 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13473 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13474 case $lt_prog_compiler_pic_F77 in
13476 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13479 lt_prog_compiler_pic_F77=
13480 lt_prog_compiler_can_build_shared_F77=no
13485 # For platforms which do not support PIC, -DPIC is meaningless:
13487 lt_prog_compiler_pic_F77=
13490 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13495 # Check to make sure the static flag actually works.
13497 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13498 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13499 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13500 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 lt_prog_compiler_static_works_F77=no
13504 save_LDFLAGS="$LDFLAGS"
13505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13508 # The linker can only warn and ignore the option if not recognized
13509 # So say no if there are warnings
13510 if test -s conftest.err; then
13511 # Append any errors to the config.log.
13512 cat conftest.err 1>&5
13513 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13515 if diff conftest.exp conftest.er2 >/dev/null; then
13516 lt_prog_compiler_static_works_F77=yes
13519 lt_prog_compiler_static_works_F77=yes
13523 LDFLAGS="$save_LDFLAGS"
13526 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13527 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13529 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13532 lt_prog_compiler_static_F77=
13536 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13537 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13538 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 lt_cv_prog_compiler_c_o_F77=no
13542 $rm -r conftest 2>/dev/null
13546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13548 lt_compiler_flag="-o out/conftest2.$ac_objext"
13549 # Insert the option either (1) after the last *FLAGS variable, or
13550 # (2) before a word containing "conftest.", or (3) at the end.
13551 # Note that $ac_compile itself does not contain backslashes and begins
13552 # with a dollar sign (not a hyphen), so the echo should work correctly.
13553 lt_compile=`echo "$ac_compile" | $SED \
13554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13556 -e 's:$: $lt_compiler_flag:'`
13557 (eval echo "\"\$as_me:13557: $lt_compile\"" >&5)
13558 (eval "$lt_compile" 2>out/conftest.err)
13560 cat out/conftest.err >&5
13561 echo "$as_me:13561: \$? = $ac_status" >&5
13562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13564 # The compiler can only warn and ignore the option if not recognized
13565 # So say no if there are warnings
13566 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13569 lt_cv_prog_compiler_c_o_F77=yes
13574 # SGI C++ compiler will create directory out/ii_files/ for
13575 # template instantiation
13576 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13577 $rm out/* && rmdir out
13583 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13584 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13587 hard_links="nottested"
13588 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13589 # do not overwrite the value of need_locks provided by the user
13590 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13591 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13596 ln conftest.a conftest.b 2>&5 || hard_links=no
13597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13598 { echo "$as_me:$LINENO: result: $hard_links" >&5
13599 echo "${ECHO_T}$hard_links" >&6; }
13600 if test "$hard_links" = no; then
13601 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13602 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13609 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13613 allow_undefined_flag_F77=
13614 enable_shared_with_static_runtimes_F77=no
13616 archive_expsym_cmds_F77=
13617 old_archive_From_new_cmds_F77=
13618 old_archive_from_expsyms_cmds_F77=
13619 export_dynamic_flag_spec_F77=
13620 whole_archive_flag_spec_F77=
13621 thread_safe_flag_spec_F77=
13622 hardcode_libdir_flag_spec_F77=
13623 hardcode_libdir_flag_spec_ld_F77=
13624 hardcode_libdir_separator_F77=
13625 hardcode_direct_F77=no
13626 hardcode_minus_L_F77=no
13627 hardcode_shlibpath_var_F77=unsupported
13628 link_all_deplibs_F77=unknown
13629 hardcode_automatic_F77=no
13631 module_expsym_cmds_F77=
13632 always_export_symbols_F77=no
13633 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13634 # include_expsyms should be a list of space-separated symbols to be *always*
13635 # included in the symbol list
13636 include_expsyms_F77=
13637 # exclude_expsyms can be an extended regexp of symbols to exclude
13638 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13640 # as well as any symbol that contains `d'.
13641 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13643 # platforms (ab)use it in PIC code, but their linkers get confused if
13644 # the symbol is explicitly referenced. Since portable code cannot
13645 # rely on this symbol name, it's probably fine to never include it in
13646 # preloaded symbol tables.
13647 extract_expsyms_cmds=
13648 # Just being paranoid about ensuring that cc_basename is set.
13649 for cc_temp in $compiler""; do
13651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13657 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13660 cygwin* | mingw* | pw32*)
13661 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13662 # When not using gcc, we currently assume that we are using
13663 # Microsoft Visual C++.
13664 if test "$GCC" != yes; then
13669 # we just hope/assume this is gcc and not c89 (= MSVC++)
13678 if test "$with_gnu_ld" = yes; then
13679 # If archive_cmds runs LD, not CC, wlarc should be empty
13682 # Set some defaults for GNU ld with shared library support. These
13683 # are reset later if shared libraries are not supported. Putting them
13684 # here allows them to be overridden if necessary.
13685 runpath_var=LD_RUN_PATH
13686 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13687 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13688 # ancient GNU ld didn't support --whole-archive et. al.
13689 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13690 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13692 whole_archive_flag_spec_F77=
13694 supports_anon_versioning=no
13695 case `$LD -v 2>/dev/null` in
13696 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13697 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13698 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13699 *\ 2.11.*) ;; # other 2.11 versions
13700 *) supports_anon_versioning=yes ;;
13703 # See if GNU ld supports shared libraries.
13705 aix3* | aix4* | aix5*)
13706 # On AIX/PPC, the GNU linker is very broken
13707 if test "$host_cpu" != ia64; then
13711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13712 *** to be unable to reliably create shared libraries on AIX.
13713 *** Therefore, libtool is disabling shared libraries support. If you
13714 *** really care for shared libraries, you may want to modify your PATH
13715 *** so that a non-GNU linker is found, and then restart.
13722 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)'
13723 hardcode_libdir_flag_spec_F77='-L$libdir'
13724 hardcode_minus_L_F77=yes
13726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13727 # that the semantics of dynamic libraries on AmigaOS, at least up
13728 # to version 4, is to share data among multiple programs linked
13729 # with the same dynamic library. Since this doesn't match the
13730 # behavior of shared libraries on other platforms, we can't use
13736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13737 allow_undefined_flag_F77=unsupported
13738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13739 # support --undefined. This deserves some investigation. FIXME
13740 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13746 cygwin* | mingw* | pw32*)
13747 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13748 # as there is no search path for DLLs.
13749 hardcode_libdir_flag_spec_F77='-L$libdir'
13750 allow_undefined_flag_F77=unsupported
13751 always_export_symbols_F77=no
13752 enable_shared_with_static_runtimes_F77=yes
13753 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13756 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13757 # If the export-symbols file already is a .def file (1st line
13758 # is EXPORTS), use it as is; otherwise, prepend...
13759 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13760 cp $export_symbols $output_objdir/$soname.def;
13762 echo EXPORTS > $output_objdir/$soname.def;
13763 cat $export_symbols >> $output_objdir/$soname.def;
13765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13772 hardcode_direct_F77=no
13773 hardcode_shlibpath_var_F77=no
13774 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13775 export_dynamic_flag_spec_F77='${wl}-E'
13776 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13777 # Instead, shared libraries are loaded at an image base (0x10000000 by
13778 # default) and relocated if they conflict, which is a slow very memory
13779 # consuming and fragmenting process. To avoid this, we pick a random,
13780 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13781 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13782 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'
13783 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'
13786 gnu* | linux* | k*bsd*-gnu)
13787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13789 case $cc_basename,$host_cpu in
13790 pgcc*) # Portland Group C compiler
13791 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'
13792 tmp_addflag=' $pic_flag'
13794 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13795 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'
13796 tmp_addflag=' $pic_flag -Mnomain' ;;
13797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13798 tmp_addflag=' -i_dynamic' ;;
13799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13800 tmp_addflag=' -i_dynamic -nofor_main' ;;
13801 ifc* | ifort*) # Intel Fortran compiler
13802 tmp_addflag=' -nofor_main' ;;
13804 case `$CC -V 2>&1 | sed 5q` in
13805 *Sun\ C*) # Sun C 5.9
13806 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'
13807 tmp_sharedflag='-G' ;;
13808 *Sun\ F*) # Sun Fortran 8.3
13809 tmp_sharedflag='-G' ;;
13811 tmp_sharedflag='-shared' ;;
13813 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815 if test $supports_anon_versioning = yes; then
13816 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13818 $echo "local: *; };" >> $output_objdir/$libname.ver~
13819 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13828 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13842 *** create shared libraries on Solaris systems. Therefore, libtool
13843 *** is disabling shared libraries support. We urge you to upgrade GNU
13844 *** binutils to release 2.9.1 or newer. Another option is to modify
13845 *** your PATH or compiler configuration so that the native linker is
13846 *** used, and then restart.
13849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13850 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13858 case `$LD -v 2>&1` in
13859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13864 *** reliably create shared libraries on SCO systems. Therefore, libtool
13865 *** is disabling shared libraries support. We urge you to upgrade GNU
13866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13867 *** your PATH or compiler configuration so that the native linker is
13868 *** used, and then restart.
13873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13874 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13876 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13885 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13887 hardcode_direct_F77=yes
13888 hardcode_shlibpath_var_F77=no
13892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13893 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13901 if test "$ld_shlibs_F77" = no; then
13903 hardcode_libdir_flag_spec_F77=
13904 export_dynamic_flag_spec_F77=
13905 whole_archive_flag_spec_F77=
13908 # PORTME fill in a description of your system's linker (not GNU ld)
13911 allow_undefined_flag_F77=unsupported
13912 always_export_symbols_F77=yes
13913 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'
13914 # Note: this linker hardcodes the directories in LIBPATH if there
13915 # are no directories specified by -L.
13916 hardcode_minus_L_F77=yes
13917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13918 # Neither direct hardcoding nor static linking is supported with a
13920 hardcode_direct_F77=unsupported
13925 if test "$host_cpu" = ia64; then
13926 # On IA64, the linker does run time linking by default, so we don't
13927 # have to do anything special.
13928 aix_use_runtimelinking=no
13929 exp_sym_flag='-Bexport'
13932 # If we're using GNU nm, then we don't want the "-C" option.
13933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13935 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'
13937 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'
13939 aix_use_runtimelinking=no
13941 # Test if we are trying to use run time linking or normal
13942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13943 # need to do runtime linking.
13944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13945 for ld_flag in $LDFLAGS; do
13946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13947 aix_use_runtimelinking=yes
13954 exp_sym_flag='-bexport'
13955 no_entry_flag='-bnoentry'
13958 # When large executables or shared objects are built, AIX ld can
13959 # have problems creating the table of contents. If linking a library
13960 # or program results in "error TOC overflow" add -mminimal-toc to
13961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13964 archive_cmds_F77=''
13965 hardcode_direct_F77=yes
13966 hardcode_libdir_separator_F77=':'
13967 link_all_deplibs_F77=yes
13969 if test "$GCC" = yes; then
13970 case $host_os in aix4.[012]|aix4.[012].*)
13971 # We only want to do this on AIX 4.2 and lower, the check
13972 # below for broken collect2 doesn't work under 4.3+
13973 collect2name=`${CC} -print-prog-name=collect2`
13974 if test -f "$collect2name" && \
13975 strings "$collect2name" | grep resolve_lib_name >/dev/null
13977 # We have reworked collect2
13980 # We have old collect2
13981 hardcode_direct_F77=unsupported
13982 # It fails to find uninstalled libraries when the uninstalled
13983 # path is not listed in the libpath. Setting hardcode_minus_L
13984 # to unsupported forces relinking
13985 hardcode_minus_L_F77=yes
13986 hardcode_libdir_flag_spec_F77='-L$libdir'
13987 hardcode_libdir_separator_F77=
13991 shared_flag='-shared'
13992 if test "$aix_use_runtimelinking" = yes; then
13993 shared_flag="$shared_flag "'${wl}-G'
13997 if test "$host_cpu" = ia64; then
13998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13999 # chokes on -Wl,-G. The following line is correct:
14002 if test "$aix_use_runtimelinking" = yes; then
14003 shared_flag='${wl}-G'
14005 shared_flag='${wl}-bM:SRE'
14010 # It seems that -bexpall does not export symbols beginning with
14011 # underscore (_), so it is better to generate a list of symbols to export.
14012 always_export_symbols_F77=yes
14013 if test "$aix_use_runtimelinking" = yes; then
14014 # Warning - without using the other runtime loading flags (-brtl),
14015 # -berok will link without error, but may produce a broken library.
14016 allow_undefined_flag_F77='-berok'
14017 # Determine the default libpath from the value encoded in an empty executable.
14018 cat >conftest.$ac_ext <<_ACEOF
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (ac_try="$ac_link"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_link") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_f77_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest$ac_exeext &&
14040 $as_test_x conftest$ac_exeext; then
14042 lt_aix_libpath_sed='
14043 /Import File Strings/,/^$/ {
14049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14050 # Check for a 64-bit object if we didn't find anything.
14051 if test -z "$aix_libpath"; then
14052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14062 conftest$ac_exeext conftest.$ac_ext
14063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14065 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14066 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"
14068 if test "$host_cpu" = ia64; then
14069 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14070 allow_undefined_flag_F77="-z nodefs"
14071 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"
14073 # Determine the default libpath from the value encoded in an empty executable.
14074 cat >conftest.$ac_ext <<_ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_link") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && {
14093 test -z "$ac_f77_werror_flag" ||
14094 test ! -s conftest.err
14095 } && test -s conftest$ac_exeext &&
14096 $as_test_x conftest$ac_exeext; then
14098 lt_aix_libpath_sed='
14099 /Import File Strings/,/^$/ {
14105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14106 # Check for a 64-bit object if we didn't find anything.
14107 if test -z "$aix_libpath"; then
14108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14118 conftest$ac_exeext conftest.$ac_ext
14119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14121 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14122 # Warning - without using the other run time loading flags,
14123 # -berok will link without error, but may produce a broken library.
14124 no_undefined_flag_F77=' ${wl}-bernotok'
14125 allow_undefined_flag_F77=' ${wl}-berok'
14126 # Exported symbols can be pulled into shared objects from archives
14127 whole_archive_flag_spec_F77='$convenience'
14128 archive_cmds_need_lc_F77=yes
14129 # This is similar to how AIX traditionally builds its shared libraries.
14130 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'
14136 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)'
14137 hardcode_libdir_flag_spec_F77='-L$libdir'
14138 hardcode_minus_L_F77=yes
14139 # see comment about different semantics on the GNU ld section
14144 export_dynamic_flag_spec_F77=-rdynamic
14147 cygwin* | mingw* | pw32*)
14148 # When not using gcc, we currently assume that we are using
14149 # Microsoft Visual C++.
14150 # hardcode_libdir_flag_spec is actually meaningless, as there is
14151 # no search path for DLLs.
14152 hardcode_libdir_flag_spec_F77=' '
14153 allow_undefined_flag_F77=unsupported
14154 # Tell ltmain to make .lib files, not .a files.
14156 # Tell ltmain to make .dll files, not .so files.
14158 # FIXME: Setting linknames here is a bad hack.
14159 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14160 # The linker will automatically build a .lib file if we build a DLL.
14161 old_archive_From_new_cmds_F77='true'
14162 # FIXME: Should let the user specify the lib program.
14163 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14164 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14165 enable_shared_with_static_runtimes_F77=yes
14168 darwin* | rhapsody*)
14170 rhapsody* | darwin1.[012])
14171 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14174 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14175 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14177 case ${MACOSX_DEPLOYMENT_TARGET} in
14179 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14182 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14188 archive_cmds_need_lc_F77=no
14189 hardcode_direct_F77=no
14190 hardcode_automatic_F77=yes
14191 hardcode_shlibpath_var_F77=unsupported
14192 whole_archive_flag_spec_F77=''
14193 link_all_deplibs_F77=yes
14194 if test "$GCC" = yes ; then
14195 output_verbose_link_cmd='echo'
14196 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14197 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14198 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14199 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14200 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}'
14202 case $cc_basename in
14204 output_verbose_link_cmd='echo'
14205 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14206 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14208 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}'
14209 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}'
14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_libdir_flag_spec_F77='-L$libdir'
14221 hardcode_shlibpath_var_F77=no
14228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14229 # support. Future versions do this automatically, but an explicit c++rt0.o
14230 # does not break anything, and helps significantly (at the cost of a little
14233 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14234 hardcode_libdir_flag_spec_F77='-R$libdir'
14235 hardcode_direct_F77=yes
14236 hardcode_shlibpath_var_F77=no
14239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14241 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_direct_F77=yes
14243 hardcode_minus_L_F77=yes
14244 hardcode_shlibpath_var_F77=no
14247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14248 freebsd* | dragonfly*)
14249 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14250 hardcode_libdir_flag_spec_F77='-R$libdir'
14251 hardcode_direct_F77=yes
14252 hardcode_shlibpath_var_F77=no
14256 if test "$GCC" = yes; then
14257 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'
14259 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'
14261 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14262 hardcode_libdir_separator_F77=:
14263 hardcode_direct_F77=yes
14265 # hardcode_minus_L: Not really in the search PATH,
14266 # but as the default location of the library.
14267 hardcode_minus_L_F77=yes
14268 export_dynamic_flag_spec_F77='${wl}-E'
14272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14273 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14275 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14277 if test "$with_gnu_ld" = no; then
14278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14279 hardcode_libdir_separator_F77=:
14281 hardcode_direct_F77=yes
14282 export_dynamic_flag_spec_F77='${wl}-E'
14284 # hardcode_minus_L: Not really in the search PATH,
14285 # but as the default location of the library.
14286 hardcode_minus_L_F77=yes
14291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14294 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14297 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14300 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14306 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14312 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14316 if test "$with_gnu_ld" = no; then
14317 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14318 hardcode_libdir_separator_F77=:
14322 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14323 hardcode_direct_F77=no
14324 hardcode_shlibpath_var_F77=no
14327 hardcode_direct_F77=yes
14328 export_dynamic_flag_spec_F77='${wl}-E'
14330 # hardcode_minus_L: Not really in the search PATH,
14331 # but as the default location of the library.
14332 hardcode_minus_L_F77=yes
14338 irix5* | irix6* | nonstopux*)
14339 if test "$GCC" = yes; then
14340 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'
14342 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'
14343 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14346 hardcode_libdir_separator_F77=:
14347 link_all_deplibs_F77=yes
14351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14352 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14354 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14356 hardcode_libdir_flag_spec_F77='-R$libdir'
14357 hardcode_direct_F77=yes
14358 hardcode_shlibpath_var_F77=no
14362 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14363 hardcode_direct_F77=yes
14364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14365 hardcode_libdir_separator_F77=:
14366 hardcode_shlibpath_var_F77=no
14370 if test -f /usr/libexec/ld.so; then
14371 hardcode_direct_F77=yes
14372 hardcode_shlibpath_var_F77=no
14373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14374 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14375 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14376 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14377 export_dynamic_flag_spec_F77='${wl}-E'
14380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14382 hardcode_libdir_flag_spec_F77='-R$libdir'
14385 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14386 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14396 hardcode_libdir_flag_spec_F77='-L$libdir'
14397 hardcode_minus_L_F77=yes
14398 allow_undefined_flag_F77=unsupported
14399 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'
14400 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14404 if test "$GCC" = yes; then
14405 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14406 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'
14408 allow_undefined_flag_F77=' -expect_unresolved \*'
14409 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'
14411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14412 hardcode_libdir_separator_F77=:
14415 osf4* | osf5*) # as osf3* with the addition of -msym flag
14416 if test "$GCC" = yes; then
14417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14418 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'
14419 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14421 allow_undefined_flag_F77=' -expect_unresolved \*'
14422 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'
14423 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~
14424 $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'
14426 # Both c and cxx compiler support -rpath directly
14427 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14429 hardcode_libdir_separator_F77=:
14433 no_undefined_flag_F77=' -z text'
14434 if test "$GCC" = yes; then
14436 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14437 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14441 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14445 hardcode_libdir_flag_spec_F77='-R$libdir'
14446 hardcode_shlibpath_var_F77=no
14448 solaris2.[0-5] | solaris2.[0-5].*) ;;
14450 # The compiler driver will combine and reorder linker options,
14451 # but understands `-z linker_flag'. GCC discards it without `$wl',
14452 # but is careful enough not to reorder.
14453 # Supported since Solaris 2.6 (maybe 2.5.1?)
14454 if test "$GCC" = yes; then
14455 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14457 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14461 link_all_deplibs_F77=yes
14465 if test "x$host_vendor" = xsequent; then
14466 # Use $CC to link under sequent, because it throws in some extra .o
14467 # files that make .init and .fini sections work.
14468 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14470 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14472 hardcode_libdir_flag_spec_F77='-L$libdir'
14473 hardcode_direct_F77=yes
14474 hardcode_minus_L_F77=yes
14475 hardcode_shlibpath_var_F77=no
14479 case $host_vendor in
14481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 hardcode_direct_F77=yes # is this really true???
14485 ## LD is ld it makes a PLAMLIB
14486 ## CC just makes a GrossModule.
14487 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14488 reload_cmds_F77='$CC -r -o $output$reload_objs'
14489 hardcode_direct_F77=no
14492 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14493 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14496 runpath_var='LD_RUN_PATH'
14497 hardcode_shlibpath_var_F77=no
14501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14502 hardcode_shlibpath_var_F77=no
14503 export_dynamic_flag_spec_F77='-Bexport'
14507 if test -d /usr/nec; then
14508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509 hardcode_shlibpath_var_F77=no
14510 runpath_var=LD_RUN_PATH
14511 hardcode_runpath_var=yes
14516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14517 no_undefined_flag_F77='${wl}-z,text'
14518 archive_cmds_need_lc_F77=no
14519 hardcode_shlibpath_var_F77=no
14520 runpath_var='LD_RUN_PATH'
14522 if test "$GCC" = yes; then
14523 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14524 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531 sysv5* | sco3.2v5* | sco5v6*)
14532 # Note: We can NOT use -z defs as we might desire, because we do not
14533 # link with -lc, and that would cause any symbols used from libc to
14534 # always be unresolved, which means just about no library would
14535 # ever link correctly. If we're not using GNU ld we use -z text
14536 # though, which does catch some bad symbols but isn't as heavy-handed
14538 no_undefined_flag_F77='${wl}-z,text'
14539 allow_undefined_flag_F77='${wl}-z,nodefs'
14540 archive_cmds_need_lc_F77=no
14541 hardcode_shlibpath_var_F77=no
14542 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14543 hardcode_libdir_separator_F77=':'
14544 link_all_deplibs_F77=yes
14545 export_dynamic_flag_spec_F77='${wl}-Bexport'
14546 runpath_var='LD_RUN_PATH'
14548 if test "$GCC" = yes; then
14549 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14550 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14552 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14553 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_libdir_flag_spec_F77='-L$libdir'
14560 hardcode_shlibpath_var_F77=no
14569 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14570 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14571 test "$ld_shlibs_F77" = no && can_build_shared=no
14574 # Do we need to explicitly link libc?
14576 case "x$archive_cmds_need_lc_F77" in
14578 # Assume -lc should be added
14579 archive_cmds_need_lc_F77=yes
14581 if test "$enable_shared" = yes && test "$GCC" = yes; then
14582 case $archive_cmds_F77 in
14584 # FIXME: we may have to deal with multi-command sequences.
14587 # Test whether the compiler implicitly links with -lc since on some
14588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14589 # to ld, don't add -lc before -lgcc.
14590 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596 (eval $ac_compile) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } 2>conftest.err; then
14602 libobjs=conftest.$ac_objext
14604 wl=$lt_prog_compiler_wl_F77
14605 pic_flag=$lt_prog_compiler_pic_F77
14611 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14612 allow_undefined_flag_F77=
14613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14614 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }
14619 archive_cmds_need_lc_F77=no
14621 archive_cmds_need_lc_F77=yes
14623 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14625 cat conftest.err 1>&5
14628 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14629 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14638 library_names_spec=
14639 libname_spec='lib$name'
14643 postuninstall_cmds=
14647 shlibpath_overrides_runpath=unknown
14649 dynamic_linker="$host_os ld.so"
14650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14652 need_lib_prefix=unknown
14653 hardcode_into_libs=no
14655 # when you set need_version to no, make sure it does not cause -set_version
14656 # flags to be left without arguments
14657 need_version=unknown
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14663 shlibpath_var=LIBPATH
14665 # AIX 3 has no versioning support, so we append a major version to the name.
14666 soname_spec='${libname}${release}${shared_ext}$major'
14673 hardcode_into_libs=yes
14674 if test "$host_cpu" = ia64; then
14675 # AIX 5 supports IA64
14676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14677 shlibpath_var=LD_LIBRARY_PATH
14679 # With GCC up to 2.95.x, collect2 would create an import file
14680 # for dependence libraries. The import file would start with
14681 # the line `#! .'. This would cause the generated library to
14682 # depend on `.', always an invalid library. This was fixed in
14683 # development snapshots of GCC prior to 3.0.
14685 aix4 | aix4.[01] | aix4.[01].*)
14686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14691 can_build_shared=no
14695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14696 # soname into executable. Probably we can add versioning support to
14697 # collect2, so additional links can be useful in future.
14698 if test "$aix_use_runtimelinking" = yes; then
14699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14700 # instead of lib<name>.a to let people know that these are not
14701 # typical AIX shared libraries.
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 # We preserve .a as extension for shared libraries through AIX4.2
14705 # and later when we are not doing run time linking.
14706 library_names_spec='${libname}${release}.a $libname.a'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14709 shlibpath_var=LIBPATH
14714 library_names_spec='$libname.ixlibrary $libname.a'
14715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14716 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'
14720 library_names_spec='${libname}${shared_ext}'
14721 dynamic_linker="$host_os ld.so"
14722 shlibpath_var=LIBRARY_PATH
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14734 # the default ld.so.conf also contains /usr/contrib/lib and
14735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14736 # libtool to hard-code these into programs
14739 cygwin* | mingw* | pw32*)
14740 version_type=windows
14745 case $GCC,$host_os in
14746 yes,cygwin* | yes,mingw* | yes,pw32*)
14747 library_names_spec='$libname.dll.a'
14748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14749 postinstall_cmds='base_file=`basename \${file}`~
14750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14751 dldir=$destdir/`dirname \$dlpath`~
14752 test -d \$dldir || mkdir -p \$dldir~
14753 $install_prog $dir/$dlname \$dldir/$dlname~
14754 chmod a+x \$dldir/$dlname'
14755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14756 dlpath=$dir/\$dldll~
14758 shlibpath_overrides_runpath=yes
14762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14767 # MinGW DLLs use traditional 'lib' prefix
14768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14771 # It is most probably a Windows format PATH printed by
14772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14773 # path with ; separators, and with drive letters. We can handle the
14774 # drive letters (cygwin fileutils understands them), so leave them,
14775 # especially as we might pass files found there to a mingw objdump,
14776 # which wouldn't understand a cygwinified path. Ahh.
14777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14783 # pw32 DLLs use 'pw' prefix rather than 'lib'
14784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14793 dynamic_linker='Win32 ld.exe'
14794 # FIXME: first we should search . and the directory the executable is in
14798 darwin* | rhapsody*)
14799 dynamic_linker="$host_os dyld"
14800 version_type=darwin
14803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14804 soname_spec='${libname}${release}${major}$shared_ext'
14805 shlibpath_overrides_runpath=yes
14806 shlibpath_var=DYLD_LIBRARY_PATH
14807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 shlibpath_var=LD_LIBRARY_PATH
14825 freebsd* | dragonfly*)
14826 # DragonFly does not have aout. When/if they implement a new
14827 # versioning mechanism, adjust this.
14828 if test -x /usr/bin/objformat; then
14829 objformat=`/usr/bin/objformat`
14832 freebsd[123]*) objformat=aout ;;
14833 *) objformat=elf ;;
14836 version_type=freebsd-$objformat
14837 case $version_type in
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14848 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14853 freebsd3.[01]* | freebsdelf3.[01]*)
14854 shlibpath_overrides_runpath=yes
14855 hardcode_into_libs=yes
14857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14862 *) # from 4.6 on, and DragonFly
14863 shlibpath_overrides_runpath=yes
14864 hardcode_into_libs=yes
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 hardcode_into_libs=yes
14879 hpux9* | hpux10* | hpux11*)
14880 # Give a soname corresponding to the major version so that dld.sl refuses to
14881 # link against other versions.
14888 hardcode_into_libs=yes
14889 dynamic_linker="$host_os dld.so"
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 if test "X$HPUX_IA64_MODE" = X32; then
14895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14903 hardcode_into_libs=yes
14904 dynamic_linker="$host_os dld.sl"
14905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14914 dynamic_linker="$host_os dld.sl"
14915 shlibpath_var=SHLIB_PATH
14916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14922 postinstall_cmds='chmod 555 $lib'
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=no
14934 hardcode_into_libs=yes
14937 irix5* | irix6* | nonstopux*)
14939 nonstopux*) version_type=nonstopux ;;
14941 if test "$lt_cv_prog_gnu_ld" = yes; then
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14952 irix5* | nonstopux*)
14953 libsuff= shlibsuff=
14956 case $LD in # libtool.m4 will add one of these switches to LD
14957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14958 libsuff= shlibsuff= libmagic=32-bit;;
14959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14960 libsuff=32 shlibsuff=N32 libmagic=N32;;
14961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14963 *) libsuff= shlibsuff= libmagic=never-match;;
14967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14968 shlibpath_overrides_runpath=no
14969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14971 hardcode_into_libs=yes
14974 # No shared lib support for Linux oldld, aout, or coff.
14975 linux*oldld* | linux*aout* | linux*coff*)
14979 # This must be Linux ELF.
14980 linux* | k*bsd*-gnu)
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14987 shlibpath_var=LD_LIBRARY_PATH
14988 shlibpath_overrides_runpath=no
14989 # This implies no fast_install, which is unacceptable.
14990 # Some rework will be needed to allow for fast_install
14991 # before this can be enabled.
14992 hardcode_into_libs=yes
14994 # Append ld.so.conf contents to the search path
14995 if test -f /etc/ld.so.conf; then
14996 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' ' '`
14997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15000 # We used to test for /lib/ld.so.1 and disable shared libraries on
15001 # powerpc, because MkLinux only supported shared libraries with the
15002 # GNU dynamic linker. Since this was broken with cross compilers,
15003 # most powerpc-linux boxes support dynamic linking these days and
15004 # people can always --disable-shared, the test was removed, and we
15005 # assume the GNU/Linux dynamic linker is in use.
15006 dynamic_linker='GNU/Linux ld.so'
15013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15016 dynamic_linker='NetBSD (a.out) ld.so'
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 dynamic_linker='NetBSD ld.elf_so'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=yes
15024 hardcode_into_libs=yes
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath=yes
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 shlibpath_overrides_runpath=yes
15046 sys_lib_dlsearch_path_spec="/usr/lib"
15048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15051 *) need_version=no ;;
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15055 shlibpath_var=LD_LIBRARY_PATH
15056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15058 openbsd2.[89] | openbsd2.[89].*)
15059 shlibpath_overrides_runpath=no
15062 shlibpath_overrides_runpath=yes
15066 shlibpath_overrides_runpath=yes
15071 libname_spec='$name'
15074 library_names_spec='$libname${shared_ext} $libname.a'
15075 dynamic_linker='OS/2 ld.exe'
15076 shlibpath_var=LIBPATH
15079 osf3* | osf4* | osf5*)
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 shlibpath_overrides_runpath=yes
15102 hardcode_into_libs=yes
15103 # ldd complains unless libraries are executable
15104 postinstall_cmds='chmod +x $lib'
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15111 shlibpath_var=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath=yes
15113 if test "$with_gnu_ld" = yes; then
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 case $host_vendor in
15126 shlibpath_overrides_runpath=no
15128 export_dynamic_flag_spec='${wl}-Blargedynsym'
15129 runpath_var=LD_RUN_PATH
15137 shlibpath_overrides_runpath=no
15138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15144 if test -d /usr/nec ;then
15146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15147 soname_spec='$libname${shared_ext}.$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15153 version_type=freebsd-elf
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 hardcode_into_libs=yes
15160 if test "$with_gnu_ld" = yes; then
15161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15162 shlibpath_overrides_runpath=no
15164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15165 shlibpath_overrides_runpath=yes
15168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15172 sys_lib_dlsearch_path_spec='/usr/lib'
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec='${libname}${release}${shared_ext}$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15186 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15187 echo "${ECHO_T}$dynamic_linker" >&6; }
15188 test "$dynamic_linker" = no && can_build_shared=no
15190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15191 if test "$GCC" = yes; then
15192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15195 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15197 hardcode_action_F77=
15198 if test -n "$hardcode_libdir_flag_spec_F77" || \
15199 test -n "$runpath_var_F77" || \
15200 test "X$hardcode_automatic_F77" = "Xyes" ; then
15202 # We can hardcode non-existant directories.
15203 if test "$hardcode_direct_F77" != no &&
15204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15205 # have to relink, otherwise we might link with an installed library
15206 # when we should be linking with a yet-to-be-installed one
15207 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15208 test "$hardcode_minus_L_F77" != no; then
15209 # Linking always hardcodes the temporary library directory.
15210 hardcode_action_F77=relink
15212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15213 hardcode_action_F77=immediate
15216 # We cannot hardcode anything, or else we can only hardcode existing
15218 hardcode_action_F77=unsupported
15220 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15221 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15223 if test "$hardcode_action_F77" = relink; then
15224 # Fast installation is not supported
15225 enable_fast_install=no
15226 elif test "$shlibpath_overrides_runpath" = yes ||
15227 test "$enable_shared" = no; then
15228 # Fast installation is not necessary
15229 enable_fast_install=needless
15233 # The else clause should only fire when bootstrapping the
15234 # libtool distribution, otherwise you forgot to ship ltmain.sh
15235 # with your package, and you will get complaints that there are
15236 # no rules to generate ltmain.sh.
15237 if test -f "$ltmain"; then
15238 # See if we are running on zsh, and set the options which allow our commands through
15239 # without removal of \ escapes.
15240 if test -n "${ZSH_VERSION+set}" ; then
15241 setopt NO_GLOB_SUBST
15243 # Now quote all the things that may contain metacharacters while being
15244 # careful not to overquote the AC_SUBSTed values. We take copies of the
15245 # variables and quote the copies for generation of the libtool script.
15246 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15248 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15249 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15250 deplibs_check_method reload_flag reload_cmds need_locks \
15251 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15252 lt_cv_sys_global_symbol_to_c_name_address \
15253 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15254 old_postinstall_cmds old_postuninstall_cmds \
15258 lt_prog_compiler_wl_F77 \
15259 lt_prog_compiler_pic_F77 \
15260 lt_prog_compiler_static_F77 \
15261 lt_prog_compiler_no_builtin_flag_F77 \
15262 export_dynamic_flag_spec_F77 \
15263 thread_safe_flag_spec_F77 \
15264 whole_archive_flag_spec_F77 \
15265 enable_shared_with_static_runtimes_F77 \
15266 old_archive_cmds_F77 \
15267 old_archive_from_new_cmds_F77 \
15268 predep_objects_F77 \
15269 postdep_objects_F77 \
15272 compiler_lib_search_path_F77 \
15274 archive_expsym_cmds_F77 \
15275 postinstall_cmds_F77 \
15276 postuninstall_cmds_F77 \
15277 old_archive_from_expsyms_cmds_F77 \
15278 allow_undefined_flag_F77 \
15279 no_undefined_flag_F77 \
15280 export_symbols_cmds_F77 \
15281 hardcode_libdir_flag_spec_F77 \
15282 hardcode_libdir_flag_spec_ld_F77 \
15283 hardcode_libdir_separator_F77 \
15284 hardcode_automatic_F77 \
15286 module_expsym_cmds_F77 \
15287 lt_cv_prog_compiler_c_o_F77 \
15288 fix_srcfile_path_F77 \
15289 exclude_expsyms_F77 \
15290 include_expsyms_F77; do
15293 old_archive_cmds_F77 | \
15294 old_archive_from_new_cmds_F77 | \
15295 archive_cmds_F77 | \
15296 archive_expsym_cmds_F77 | \
15297 module_cmds_F77 | \
15298 module_expsym_cmds_F77 | \
15299 old_archive_from_expsyms_cmds_F77 | \
15300 export_symbols_cmds_F77 | \
15301 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15302 postinstall_cmds | postuninstall_cmds | \
15303 old_postinstall_cmds | old_postuninstall_cmds | \
15304 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15305 # Double-quote double-evaled strings.
15306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15315 *'\$0 --fallback-echo"')
15316 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15322 cat <<__EOF__ >> "$cfgfile"
15323 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15327 # Shell to use when invoking shell scripts.
15330 # Whether or not to build shared libraries.
15331 build_libtool_libs=$enable_shared
15333 # Whether or not to build static libraries.
15334 build_old_libs=$enable_static
15336 # Whether or not to add -lc for building shared libraries.
15337 build_libtool_need_lc=$archive_cmds_need_lc_F77
15339 # Whether or not to disallow shared libs when runtime libs are static
15340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15342 # Whether or not to optimize for fast installation.
15343 fast_install=$enable_fast_install
15346 host_alias=$host_alias
15350 # The build system.
15351 build_alias=$build_alias
15355 # An echo program that does not interpret backslashes.
15360 AR_FLAGS=$lt_AR_FLAGS
15365 # LTCC compiler flags.
15366 LTCFLAGS=$lt_LTCFLAGS
15368 # A language-specific compiler.
15369 CC=$lt_compiler_F77
15371 # Is the compiler the GNU C compiler?
15377 # The linker used to build libraries.
15380 # Whether we need hard or soft links.
15383 # A BSD-compatible nm program.
15386 # A symbol stripping program
15389 # Used to examine libraries when file_magic_cmd begins "file"
15390 MAGIC_CMD=$MAGIC_CMD
15392 # Used on cygwin: DLL creation program.
15395 # Used on cygwin: object dumper.
15398 # Used on cygwin: assembler.
15401 # The name of the directory that contains temporary libtool files.
15404 # How to create reloadable object files.
15405 reload_flag=$lt_reload_flag
15406 reload_cmds=$lt_reload_cmds
15408 # How to pass a linker flag through the compiler.
15409 wl=$lt_lt_prog_compiler_wl_F77
15411 # Object file suffix (normally "o").
15412 objext="$ac_objext"
15414 # Old archive suffix (normally "a").
15417 # Shared library suffix (normally ".so").
15418 shrext_cmds='$shrext_cmds'
15420 # Executable file suffix (normally "").
15423 # Additional compiler flags for building library objects.
15424 pic_flag=$lt_lt_prog_compiler_pic_F77
15427 # What is the maximum length of a command?
15428 max_cmd_len=$lt_cv_sys_max_cmd_len
15430 # Does compiler simultaneously support -c and -o options?
15431 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15433 # Must we lock files when doing compilation?
15434 need_locks=$lt_need_locks
15436 # Do we need the lib prefix for modules?
15437 need_lib_prefix=$need_lib_prefix
15439 # Do we need a version for libraries?
15440 need_version=$need_version
15442 # Whether dlopen is supported.
15443 dlopen_support=$enable_dlopen
15445 # Whether dlopen of programs is supported.
15446 dlopen_self=$enable_dlopen_self
15448 # Whether dlopen of statically linked programs is supported.
15449 dlopen_self_static=$enable_dlopen_self_static
15451 # Compiler flag to prevent dynamic linking.
15452 link_static_flag=$lt_lt_prog_compiler_static_F77
15454 # Compiler flag to turn off builtin functions.
15455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15457 # Compiler flag to allow reflexive dlopens.
15458 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15460 # Compiler flag to generate shared objects directly from archives.
15461 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15463 # Compiler flag to generate thread-safe objects.
15464 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15466 # Library versioning type.
15467 version_type=$version_type
15469 # Format of library name prefix.
15470 libname_spec=$lt_libname_spec
15472 # List of archive names. First name is the real one, the rest are links.
15473 # The last name is the one that the linker finds with -lNAME.
15474 library_names_spec=$lt_library_names_spec
15476 # The coded name of the library, if different from the real name.
15477 soname_spec=$lt_soname_spec
15479 # Commands used to build and install an old-style archive.
15481 old_archive_cmds=$lt_old_archive_cmds_F77
15482 old_postinstall_cmds=$lt_old_postinstall_cmds
15483 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15485 # Create an old-style archive from a shared archive.
15486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15488 # Create a temporary old-style archive to link instead of a shared archive.
15489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15491 # Commands used to build and install a shared archive.
15492 archive_cmds=$lt_archive_cmds_F77
15493 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15494 postinstall_cmds=$lt_postinstall_cmds
15495 postuninstall_cmds=$lt_postuninstall_cmds
15497 # Commands used to build a loadable module (assumed same as above if empty)
15498 module_cmds=$lt_module_cmds_F77
15499 module_expsym_cmds=$lt_module_expsym_cmds_F77
15501 # Commands to strip libraries.
15502 old_striplib=$lt_old_striplib
15503 striplib=$lt_striplib
15505 # Dependencies to place before the objects being linked to create a
15507 predep_objects=$lt_predep_objects_F77
15509 # Dependencies to place after the objects being linked to create a
15511 postdep_objects=$lt_postdep_objects_F77
15513 # Dependencies to place before the objects being linked to create a
15515 predeps=$lt_predeps_F77
15517 # Dependencies to place after the objects being linked to create a
15519 postdeps=$lt_postdeps_F77
15521 # The library search path used internally by the compiler when linking
15522 # a shared library.
15523 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15525 # Method to check whether dependent libraries are shared objects.
15526 deplibs_check_method=$lt_deplibs_check_method
15528 # Command to use when deplibs_check_method == file_magic.
15529 file_magic_cmd=$lt_file_magic_cmd
15531 # Flag that allows shared libraries with undefined symbols to be built.
15532 allow_undefined_flag=$lt_allow_undefined_flag_F77
15534 # Flag that forces no undefined symbols.
15535 no_undefined_flag=$lt_no_undefined_flag_F77
15537 # Commands used to finish a libtool library installation in a directory.
15538 finish_cmds=$lt_finish_cmds
15540 # Same as above, but a single script fragment to be evaled but not shown.
15541 finish_eval=$lt_finish_eval
15543 # Take the output of nm and produce a listing of raw symbols and C names.
15544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15546 # Transform the output of nm in a proper C declaration
15547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15549 # Transform the output of nm in a C name address pair
15550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15552 # This is the shared library runtime path variable.
15553 runpath_var=$runpath_var
15555 # This is the shared library path variable.
15556 shlibpath_var=$shlibpath_var
15558 # Is shlibpath searched before the hard-coded library search path?
15559 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15561 # How to hardcode a shared library path into an executable.
15562 hardcode_action=$hardcode_action_F77
15564 # Whether we should hardcode library paths into libraries.
15565 hardcode_into_libs=$hardcode_into_libs
15567 # Flag to hardcode \$libdir into a binary during linking.
15568 # This must work even if \$libdir does not exist.
15569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15571 # If ld is used when linking, flag to hardcode \$libdir into
15572 # a binary during linking. This must work even if \$libdir does
15574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15576 # Whether we need a single -rpath flag with a separated argument.
15577 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15579 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15580 # resulting binary.
15581 hardcode_direct=$hardcode_direct_F77
15583 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15584 # resulting binary.
15585 hardcode_minus_L=$hardcode_minus_L_F77
15587 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15588 # the resulting binary.
15589 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15591 # Set to yes if building a shared library automatically hardcodes DIR into the library
15592 # and all subsequent libraries and executables linked against it.
15593 hardcode_automatic=$hardcode_automatic_F77
15595 # Variables whose values should be saved in libtool wrapper scripts and
15596 # restored at relink time.
15597 variables_saved_for_relink="$variables_saved_for_relink"
15599 # Whether libtool must link a program against all its dependency libraries.
15600 link_all_deplibs=$link_all_deplibs_F77
15602 # Compile-time system search path for libraries
15603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15605 # Run-time system search path for libraries
15606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15608 # Fix the shell variable \$srcfile for the compiler.
15609 fix_srcfile_path=$lt_fix_srcfile_path
15611 # Set to yes if exported symbols are required.
15612 always_export_symbols=$always_export_symbols_F77
15614 # The commands to list exported symbols.
15615 export_symbols_cmds=$lt_export_symbols_cmds_F77
15617 # The commands to extract the exported symbol list from a shared archive.
15618 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15620 # Symbols that should not be listed in the preloaded symbols.
15621 exclude_expsyms=$lt_exclude_expsyms_F77
15623 # Symbols that must always be exported.
15624 include_expsyms=$lt_include_expsyms_F77
15626 # ### END LIBTOOL TAG CONFIG: $tagname
15632 # If there is no Makefile yet, we rely on a make rule to execute
15633 # `config.status --recheck' to rerun these tests and create the
15634 # libtool script then.
15635 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15636 if test -f "$ltmain_in"; then
15637 test -f Makefile && make "$ltmain"
15643 ac_cpp='$CPP $CPPFLAGS'
15644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15656 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15659 # Source file extension for Java test sources.
15662 # Object file extension for compiled Java test sources.
15666 # Code to be used in simple compile tests
15667 lt_simple_compile_test_code="class foo {}"
15669 # Code to be used in simple link tests
15670 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15672 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15674 # If no C compiler was specified, use CC.
15677 # If no C compiler flags were specified, use CFLAGS.
15678 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15680 # Allow CC to be a program name with arguments.
15684 # save warnings/boilerplate of simple test code
15685 ac_outfile=conftest.$ac_objext
15686 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15687 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15688 _lt_compiler_boilerplate=`cat conftest.err`
15691 ac_outfile=conftest.$ac_objext
15692 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15693 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15694 _lt_linker_boilerplate=`cat conftest.err`
15698 # Allow CC to be a program name with arguments.
15703 for cc_temp in $compiler""; do
15705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15714 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15715 archive_cmds_need_lc_GCJ=no
15717 old_archive_cmds_GCJ=$old_archive_cmds
15720 lt_prog_compiler_no_builtin_flag_GCJ=
15722 if test "$GCC" = yes; then
15723 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15726 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15727 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15728 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 lt_cv_prog_compiler_rtti_exceptions=no
15732 ac_outfile=conftest.$ac_objext
15733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15734 lt_compiler_flag="-fno-rtti -fno-exceptions"
15735 # Insert the option either (1) after the last *FLAGS variable, or
15736 # (2) before a word containing "conftest.", or (3) at the end.
15737 # Note that $ac_compile itself does not contain backslashes and begins
15738 # with a dollar sign (not a hyphen), so the echo should work correctly.
15739 # The option is referenced via a variable to avoid confusing sed.
15740 lt_compile=`echo "$ac_compile" | $SED \
15741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743 -e 's:$: $lt_compiler_flag:'`
15744 (eval echo "\"\$as_me:15744: $lt_compile\"" >&5)
15745 (eval "$lt_compile" 2>conftest.err)
15747 cat conftest.err >&5
15748 echo "$as_me:15748: \$? = $ac_status" >&5
15749 if (exit $ac_status) && test -s "$ac_outfile"; then
15750 # The compiler can only warn and ignore the option if not recognized
15751 # So say no if there are warnings other than the usual output.
15752 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15755 lt_cv_prog_compiler_rtti_exceptions=yes
15761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15762 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15764 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15765 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15772 lt_prog_compiler_wl_GCJ=
15773 lt_prog_compiler_pic_GCJ=
15774 lt_prog_compiler_static_GCJ=
15776 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15777 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15779 if test "$GCC" = yes; then
15780 lt_prog_compiler_wl_GCJ='-Wl,'
15781 lt_prog_compiler_static_GCJ='-static'
15785 # All AIX code is PIC.
15786 if test "$host_cpu" = ia64; then
15787 # AIX 5 now supports IA64 processor
15788 lt_prog_compiler_static_GCJ='-Bstatic'
15793 # FIXME: we need at least 68020 code to build shared libraries, but
15794 # adding the `-m68020' flag to GCC prevents building anything better,
15796 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15800 # PIC is the default for these OSes.
15803 mingw* | cygwin* | pw32* | os2*)
15804 # This hack is so that the source file can tell whether it is being
15805 # built for inclusion in a dll (and should export symbols for example).
15806 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15807 # (--disable-auto-import) libraries
15808 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15811 darwin* | rhapsody*)
15812 # PIC is the default on this platform
15813 # Common symbols not allowed in MH_DYLIB files
15814 lt_prog_compiler_pic_GCJ='-fno-common'
15818 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15819 # Instead, we relocate shared libraries at runtime.
15823 # Just because we use GCC doesn't mean we suddenly get shared libraries
15824 # on systems that don't support them.
15825 lt_prog_compiler_can_build_shared_GCJ=no
15830 if test -d /usr/nec; then
15831 lt_prog_compiler_pic_GCJ=-Kconform_pic
15836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15837 # not for PA HP-UX.
15843 lt_prog_compiler_pic_GCJ='-fPIC'
15849 lt_prog_compiler_pic_GCJ='-fPIC'
15853 # PORTME Check for flag to pass linker flags through the system compiler.
15856 lt_prog_compiler_wl_GCJ='-Wl,'
15857 if test "$host_cpu" = ia64; then
15858 # AIX 5 now supports IA64 processor
15859 lt_prog_compiler_static_GCJ='-Bstatic'
15861 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15865 # PIC is the default on this platform
15866 # Common symbols not allowed in MH_DYLIB files
15867 case $cc_basename in
15869 lt_prog_compiler_pic_GCJ='-qnocommon'
15870 lt_prog_compiler_wl_GCJ='-Wl,'
15875 mingw* | cygwin* | pw32* | os2*)
15876 # This hack is so that the source file can tell whether it is being
15877 # built for inclusion in a dll (and should export symbols for example).
15878 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15881 hpux9* | hpux10* | hpux11*)
15882 lt_prog_compiler_wl_GCJ='-Wl,'
15883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15884 # not for PA HP-UX.
15890 lt_prog_compiler_pic_GCJ='+Z'
15893 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15894 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15897 irix5* | irix6* | nonstopux*)
15898 lt_prog_compiler_wl_GCJ='-Wl,'
15899 # PIC (with -KPIC) is the default.
15900 lt_prog_compiler_static_GCJ='-non_shared'
15904 lt_prog_compiler_pic_GCJ='-KPIC'
15905 lt_prog_compiler_static_GCJ='-Bstatic'
15908 linux* | k*bsd*-gnu)
15909 case $cc_basename in
15911 lt_prog_compiler_wl_GCJ='-Wl,'
15912 lt_prog_compiler_pic_GCJ='-KPIC'
15913 lt_prog_compiler_static_GCJ='-static'
15915 pgcc* | pgf77* | pgf90* | pgf95*)
15916 # Portland Group compilers (*not* the Pentium gcc compiler,
15917 # which looks to be a dead project)
15918 lt_prog_compiler_wl_GCJ='-Wl,'
15919 lt_prog_compiler_pic_GCJ='-fpic'
15920 lt_prog_compiler_static_GCJ='-Bstatic'
15923 lt_prog_compiler_wl_GCJ='-Wl,'
15924 # All Alpha code is PIC.
15925 lt_prog_compiler_static_GCJ='-non_shared'
15928 case `$CC -V 2>&1 | sed 5q` in
15931 lt_prog_compiler_pic_GCJ='-KPIC'
15932 lt_prog_compiler_static_GCJ='-Bstatic'
15933 lt_prog_compiler_wl_GCJ='-Wl,'
15936 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15937 lt_prog_compiler_pic_GCJ='-KPIC'
15938 lt_prog_compiler_static_GCJ='-Bstatic'
15939 lt_prog_compiler_wl_GCJ=''
15946 osf3* | osf4* | osf5*)
15947 lt_prog_compiler_wl_GCJ='-Wl,'
15948 # All OSF/1 code is PIC.
15949 lt_prog_compiler_static_GCJ='-non_shared'
15953 lt_prog_compiler_static_GCJ='-non_shared'
15957 lt_prog_compiler_pic_GCJ='-KPIC'
15958 lt_prog_compiler_static_GCJ='-Bstatic'
15959 case $cc_basename in
15960 f77* | f90* | f95*)
15961 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15963 lt_prog_compiler_wl_GCJ='-Wl,';;
15968 lt_prog_compiler_wl_GCJ='-Qoption ld '
15969 lt_prog_compiler_pic_GCJ='-PIC'
15970 lt_prog_compiler_static_GCJ='-Bstatic'
15973 sysv4 | sysv4.2uw2* | sysv4.3*)
15974 lt_prog_compiler_wl_GCJ='-Wl,'
15975 lt_prog_compiler_pic_GCJ='-KPIC'
15976 lt_prog_compiler_static_GCJ='-Bstatic'
15980 if test -d /usr/nec ;then
15981 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15982 lt_prog_compiler_static_GCJ='-Bstatic'
15986 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15988 lt_prog_compiler_pic_GCJ='-KPIC'
15989 lt_prog_compiler_static_GCJ='-Bstatic'
15993 lt_prog_compiler_wl_GCJ='-Wl,'
15994 lt_prog_compiler_can_build_shared_GCJ=no
15998 lt_prog_compiler_pic_GCJ='-pic'
15999 lt_prog_compiler_static_GCJ='-Bstatic'
16003 lt_prog_compiler_can_build_shared_GCJ=no
16008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16009 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16012 # Check to make sure the PIC flag actually works.
16014 if test -n "$lt_prog_compiler_pic_GCJ"; then
16016 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16017 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16018 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 lt_prog_compiler_pic_works_GCJ=no
16022 ac_outfile=conftest.$ac_objext
16023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16024 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16025 # Insert the option either (1) after the last *FLAGS variable, or
16026 # (2) before a word containing "conftest.", or (3) at the end.
16027 # Note that $ac_compile itself does not contain backslashes and begins
16028 # with a dollar sign (not a hyphen), so the echo should work correctly.
16029 # The option is referenced via a variable to avoid confusing sed.
16030 lt_compile=`echo "$ac_compile" | $SED \
16031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16033 -e 's:$: $lt_compiler_flag:'`
16034 (eval echo "\"\$as_me:16034: $lt_compile\"" >&5)
16035 (eval "$lt_compile" 2>conftest.err)
16037 cat conftest.err >&5
16038 echo "$as_me:16038: \$? = $ac_status" >&5
16039 if (exit $ac_status) && test -s "$ac_outfile"; then
16040 # The compiler can only warn and ignore the option if not recognized
16041 # So say no if there are warnings other than the usual output.
16042 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16045 lt_prog_compiler_pic_works_GCJ=yes
16051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16052 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16054 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16055 case $lt_prog_compiler_pic_GCJ in
16057 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16060 lt_prog_compiler_pic_GCJ=
16061 lt_prog_compiler_can_build_shared_GCJ=no
16066 # For platforms which do not support PIC, -DPIC is meaningless:
16068 lt_prog_compiler_pic_GCJ=
16071 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16076 # Check to make sure the static flag actually works.
16078 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16079 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16080 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16081 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 lt_prog_compiler_static_works_GCJ=no
16085 save_LDFLAGS="$LDFLAGS"
16086 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16089 # The linker can only warn and ignore the option if not recognized
16090 # So say no if there are warnings
16091 if test -s conftest.err; then
16092 # Append any errors to the config.log.
16093 cat conftest.err 1>&5
16094 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16096 if diff conftest.exp conftest.er2 >/dev/null; then
16097 lt_prog_compiler_static_works_GCJ=yes
16100 lt_prog_compiler_static_works_GCJ=yes
16104 LDFLAGS="$save_LDFLAGS"
16107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16108 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16110 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16113 lt_prog_compiler_static_GCJ=
16117 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16118 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16119 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 lt_cv_prog_compiler_c_o_GCJ=no
16123 $rm -r conftest 2>/dev/null
16127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16129 lt_compiler_flag="-o out/conftest2.$ac_objext"
16130 # Insert the option either (1) after the last *FLAGS variable, or
16131 # (2) before a word containing "conftest.", or (3) at the end.
16132 # Note that $ac_compile itself does not contain backslashes and begins
16133 # with a dollar sign (not a hyphen), so the echo should work correctly.
16134 lt_compile=`echo "$ac_compile" | $SED \
16135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16137 -e 's:$: $lt_compiler_flag:'`
16138 (eval echo "\"\$as_me:16138: $lt_compile\"" >&5)
16139 (eval "$lt_compile" 2>out/conftest.err)
16141 cat out/conftest.err >&5
16142 echo "$as_me:16142: \$? = $ac_status" >&5
16143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16145 # The compiler can only warn and ignore the option if not recognized
16146 # So say no if there are warnings
16147 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16150 lt_cv_prog_compiler_c_o_GCJ=yes
16155 # SGI C++ compiler will create directory out/ii_files/ for
16156 # template instantiation
16157 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16158 $rm out/* && rmdir out
16164 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16165 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16168 hard_links="nottested"
16169 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16170 # do not overwrite the value of need_locks provided by the user
16171 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16172 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16177 ln conftest.a conftest.b 2>&5 || hard_links=no
16178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179 { echo "$as_me:$LINENO: result: $hard_links" >&5
16180 echo "${ECHO_T}$hard_links" >&6; }
16181 if test "$hard_links" = no; then
16182 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16183 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16190 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16191 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16194 allow_undefined_flag_GCJ=
16195 enable_shared_with_static_runtimes_GCJ=no
16197 archive_expsym_cmds_GCJ=
16198 old_archive_From_new_cmds_GCJ=
16199 old_archive_from_expsyms_cmds_GCJ=
16200 export_dynamic_flag_spec_GCJ=
16201 whole_archive_flag_spec_GCJ=
16202 thread_safe_flag_spec_GCJ=
16203 hardcode_libdir_flag_spec_GCJ=
16204 hardcode_libdir_flag_spec_ld_GCJ=
16205 hardcode_libdir_separator_GCJ=
16206 hardcode_direct_GCJ=no
16207 hardcode_minus_L_GCJ=no
16208 hardcode_shlibpath_var_GCJ=unsupported
16209 link_all_deplibs_GCJ=unknown
16210 hardcode_automatic_GCJ=no
16212 module_expsym_cmds_GCJ=
16213 always_export_symbols_GCJ=no
16214 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16215 # include_expsyms should be a list of space-separated symbols to be *always*
16216 # included in the symbol list
16217 include_expsyms_GCJ=
16218 # exclude_expsyms can be an extended regexp of symbols to exclude
16219 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16220 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16221 # as well as any symbol that contains `d'.
16222 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16223 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16224 # platforms (ab)use it in PIC code, but their linkers get confused if
16225 # the symbol is explicitly referenced. Since portable code cannot
16226 # rely on this symbol name, it's probably fine to never include it in
16227 # preloaded symbol tables.
16228 extract_expsyms_cmds=
16229 # Just being paranoid about ensuring that cc_basename is set.
16230 for cc_temp in $compiler""; do
16232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16238 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16241 cygwin* | mingw* | pw32*)
16242 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16243 # When not using gcc, we currently assume that we are using
16244 # Microsoft Visual C++.
16245 if test "$GCC" != yes; then
16250 # we just hope/assume this is gcc and not c89 (= MSVC++)
16259 if test "$with_gnu_ld" = yes; then
16260 # If archive_cmds runs LD, not CC, wlarc should be empty
16263 # Set some defaults for GNU ld with shared library support. These
16264 # are reset later if shared libraries are not supported. Putting them
16265 # here allows them to be overridden if necessary.
16266 runpath_var=LD_RUN_PATH
16267 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16268 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16269 # ancient GNU ld didn't support --whole-archive et. al.
16270 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16271 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16273 whole_archive_flag_spec_GCJ=
16275 supports_anon_versioning=no
16276 case `$LD -v 2>/dev/null` in
16277 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16278 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16279 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16280 *\ 2.11.*) ;; # other 2.11 versions
16281 *) supports_anon_versioning=yes ;;
16284 # See if GNU ld supports shared libraries.
16286 aix3* | aix4* | aix5*)
16287 # On AIX/PPC, the GNU linker is very broken
16288 if test "$host_cpu" != ia64; then
16292 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16293 *** to be unable to reliably create shared libraries on AIX.
16294 *** Therefore, libtool is disabling shared libraries support. If you
16295 *** really care for shared libraries, you may want to modify your PATH
16296 *** so that a non-GNU linker is found, and then restart.
16303 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)'
16304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16305 hardcode_minus_L_GCJ=yes
16307 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16308 # that the semantics of dynamic libraries on AmigaOS, at least up
16309 # to version 4, is to share data among multiple programs linked
16310 # with the same dynamic library. Since this doesn't match the
16311 # behavior of shared libraries on other platforms, we can't use
16317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16318 allow_undefined_flag_GCJ=unsupported
16319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16320 # support --undefined. This deserves some investigation. FIXME
16321 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16327 cygwin* | mingw* | pw32*)
16328 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16329 # as there is no search path for DLLs.
16330 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16331 allow_undefined_flag_GCJ=unsupported
16332 always_export_symbols_GCJ=no
16333 enable_shared_with_static_runtimes_GCJ=yes
16334 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16336 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16337 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16338 # If the export-symbols file already is a .def file (1st line
16339 # is EXPORTS), use it as is; otherwise, prepend...
16340 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16341 cp $export_symbols $output_objdir/$soname.def;
16343 echo EXPORTS > $output_objdir/$soname.def;
16344 cat $export_symbols >> $output_objdir/$soname.def;
16346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16353 hardcode_direct_GCJ=no
16354 hardcode_shlibpath_var_GCJ=no
16355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16356 export_dynamic_flag_spec_GCJ='${wl}-E'
16357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16358 # Instead, shared libraries are loaded at an image base (0x10000000 by
16359 # default) and relocated if they conflict, which is a slow very memory
16360 # consuming and fragmenting process. To avoid this, we pick a random,
16361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16362 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16363 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'
16364 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'
16367 gnu* | linux* | k*bsd*-gnu)
16368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16370 case $cc_basename,$host_cpu in
16371 pgcc*) # Portland Group C compiler
16372 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'
16373 tmp_addflag=' $pic_flag'
16375 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16376 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'
16377 tmp_addflag=' $pic_flag -Mnomain' ;;
16378 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16379 tmp_addflag=' -i_dynamic' ;;
16380 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16381 tmp_addflag=' -i_dynamic -nofor_main' ;;
16382 ifc* | ifort*) # Intel Fortran compiler
16383 tmp_addflag=' -nofor_main' ;;
16385 case `$CC -V 2>&1 | sed 5q` in
16386 *Sun\ C*) # Sun C 5.9
16387 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'
16388 tmp_sharedflag='-G' ;;
16389 *Sun\ F*) # Sun Fortran 8.3
16390 tmp_sharedflag='-G' ;;
16392 tmp_sharedflag='-shared' ;;
16394 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16396 if test $supports_anon_versioning = yes; then
16397 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16398 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16399 $echo "local: *; };" >> $output_objdir/$libname.ver~
16400 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16409 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16413 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16422 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16423 *** create shared libraries on Solaris systems. Therefore, libtool
16424 *** is disabling shared libraries support. We urge you to upgrade GNU
16425 *** binutils to release 2.9.1 or newer. Another option is to modify
16426 *** your PATH or compiler configuration so that the native linker is
16427 *** used, and then restart.
16430 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16431 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16432 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16439 case `$LD -v 2>&1` in
16440 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16444 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16445 *** reliably create shared libraries on SCO systems. Therefore, libtool
16446 *** is disabling shared libraries support. We urge you to upgrade GNU
16447 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16448 *** your PATH or compiler configuration so that the native linker is
16449 *** used, and then restart.
16454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16455 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16456 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16457 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16466 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_direct_GCJ=yes
16469 hardcode_shlibpath_var_GCJ=no
16473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16474 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16475 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16482 if test "$ld_shlibs_GCJ" = no; then
16484 hardcode_libdir_flag_spec_GCJ=
16485 export_dynamic_flag_spec_GCJ=
16486 whole_archive_flag_spec_GCJ=
16489 # PORTME fill in a description of your system's linker (not GNU ld)
16492 allow_undefined_flag_GCJ=unsupported
16493 always_export_symbols_GCJ=yes
16494 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'
16495 # Note: this linker hardcodes the directories in LIBPATH if there
16496 # are no directories specified by -L.
16497 hardcode_minus_L_GCJ=yes
16498 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16499 # Neither direct hardcoding nor static linking is supported with a
16501 hardcode_direct_GCJ=unsupported
16506 if test "$host_cpu" = ia64; then
16507 # On IA64, the linker does run time linking by default, so we don't
16508 # have to do anything special.
16509 aix_use_runtimelinking=no
16510 exp_sym_flag='-Bexport'
16513 # If we're using GNU nm, then we don't want the "-C" option.
16514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16515 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16516 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'
16518 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'
16520 aix_use_runtimelinking=no
16522 # Test if we are trying to use run time linking or normal
16523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16524 # need to do runtime linking.
16525 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16526 for ld_flag in $LDFLAGS; do
16527 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16528 aix_use_runtimelinking=yes
16535 exp_sym_flag='-bexport'
16536 no_entry_flag='-bnoentry'
16539 # When large executables or shared objects are built, AIX ld can
16540 # have problems creating the table of contents. If linking a library
16541 # or program results in "error TOC overflow" add -mminimal-toc to
16542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16545 archive_cmds_GCJ=''
16546 hardcode_direct_GCJ=yes
16547 hardcode_libdir_separator_GCJ=':'
16548 link_all_deplibs_GCJ=yes
16550 if test "$GCC" = yes; then
16551 case $host_os in aix4.[012]|aix4.[012].*)
16552 # We only want to do this on AIX 4.2 and lower, the check
16553 # below for broken collect2 doesn't work under 4.3+
16554 collect2name=`${CC} -print-prog-name=collect2`
16555 if test -f "$collect2name" && \
16556 strings "$collect2name" | grep resolve_lib_name >/dev/null
16558 # We have reworked collect2
16561 # We have old collect2
16562 hardcode_direct_GCJ=unsupported
16563 # It fails to find uninstalled libraries when the uninstalled
16564 # path is not listed in the libpath. Setting hardcode_minus_L
16565 # to unsupported forces relinking
16566 hardcode_minus_L_GCJ=yes
16567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16568 hardcode_libdir_separator_GCJ=
16572 shared_flag='-shared'
16573 if test "$aix_use_runtimelinking" = yes; then
16574 shared_flag="$shared_flag "'${wl}-G'
16578 if test "$host_cpu" = ia64; then
16579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16580 # chokes on -Wl,-G. The following line is correct:
16583 if test "$aix_use_runtimelinking" = yes; then
16584 shared_flag='${wl}-G'
16586 shared_flag='${wl}-bM:SRE'
16591 # It seems that -bexpall does not export symbols beginning with
16592 # underscore (_), so it is better to generate a list of symbols to export.
16593 always_export_symbols_GCJ=yes
16594 if test "$aix_use_runtimelinking" = yes; then
16595 # Warning - without using the other runtime loading flags (-brtl),
16596 # -berok will link without error, but may produce a broken library.
16597 allow_undefined_flag_GCJ='-berok'
16598 # Determine the default libpath from the value encoded in an empty executable.
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_link") 2>conftest.er1
16623 grep -v '^ *+' conftest.er1 >conftest.err
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest$ac_exeext &&
16631 $as_test_x conftest$ac_exeext; then
16633 lt_aix_libpath_sed='
16634 /Import File Strings/,/^$/ {
16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16641 # Check for a 64-bit object if we didn't find anything.
16642 if test -z "$aix_libpath"; then
16643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653 conftest$ac_exeext conftest.$ac_ext
16654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16656 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16657 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"
16659 if test "$host_cpu" = ia64; then
16660 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16661 allow_undefined_flag_GCJ="-z nodefs"
16662 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"
16664 # Determine the default libpath from the value encoded in an empty executable.
16665 cat >conftest.$ac_ext <<_ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_link") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && {
16694 test -z "$ac_c_werror_flag" ||
16695 test ! -s conftest.err
16696 } && test -s conftest$ac_exeext &&
16697 $as_test_x conftest$ac_exeext; then
16699 lt_aix_libpath_sed='
16700 /Import File Strings/,/^$/ {
16706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16707 # Check for a 64-bit object if we didn't find anything.
16708 if test -z "$aix_libpath"; then
16709 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719 conftest$ac_exeext conftest.$ac_ext
16720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16722 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16723 # Warning - without using the other run time loading flags,
16724 # -berok will link without error, but may produce a broken library.
16725 no_undefined_flag_GCJ=' ${wl}-bernotok'
16726 allow_undefined_flag_GCJ=' ${wl}-berok'
16727 # Exported symbols can be pulled into shared objects from archives
16728 whole_archive_flag_spec_GCJ='$convenience'
16729 archive_cmds_need_lc_GCJ=yes
16730 # This is similar to how AIX traditionally builds its shared libraries.
16731 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'
16737 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)'
16738 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16739 hardcode_minus_L_GCJ=yes
16740 # see comment about different semantics on the GNU ld section
16745 export_dynamic_flag_spec_GCJ=-rdynamic
16748 cygwin* | mingw* | pw32*)
16749 # When not using gcc, we currently assume that we are using
16750 # Microsoft Visual C++.
16751 # hardcode_libdir_flag_spec is actually meaningless, as there is
16752 # no search path for DLLs.
16753 hardcode_libdir_flag_spec_GCJ=' '
16754 allow_undefined_flag_GCJ=unsupported
16755 # Tell ltmain to make .lib files, not .a files.
16757 # Tell ltmain to make .dll files, not .so files.
16759 # FIXME: Setting linknames here is a bad hack.
16760 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16761 # The linker will automatically build a .lib file if we build a DLL.
16762 old_archive_From_new_cmds_GCJ='true'
16763 # FIXME: Should let the user specify the lib program.
16764 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16765 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16766 enable_shared_with_static_runtimes_GCJ=yes
16769 darwin* | rhapsody*)
16771 rhapsody* | darwin1.[012])
16772 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16775 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16776 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16778 case ${MACOSX_DEPLOYMENT_TARGET} in
16780 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16783 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16789 archive_cmds_need_lc_GCJ=no
16790 hardcode_direct_GCJ=no
16791 hardcode_automatic_GCJ=yes
16792 hardcode_shlibpath_var_GCJ=unsupported
16793 whole_archive_flag_spec_GCJ=''
16794 link_all_deplibs_GCJ=yes
16795 if test "$GCC" = yes ; then
16796 output_verbose_link_cmd='echo'
16797 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16798 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16800 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16801 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}'
16803 case $cc_basename in
16805 output_verbose_link_cmd='echo'
16806 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16807 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16808 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16809 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}'
16810 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}'
16820 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16822 hardcode_shlibpath_var_GCJ=no
16829 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16830 # support. Future versions do this automatically, but an explicit c++rt0.o
16831 # does not break anything, and helps significantly (at the cost of a little
16834 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16835 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16836 hardcode_direct_GCJ=yes
16837 hardcode_shlibpath_var_GCJ=no
16840 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16842 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_direct_GCJ=yes
16844 hardcode_minus_L_GCJ=yes
16845 hardcode_shlibpath_var_GCJ=no
16848 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16849 freebsd* | dragonfly*)
16850 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16851 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852 hardcode_direct_GCJ=yes
16853 hardcode_shlibpath_var_GCJ=no
16857 if test "$GCC" = yes; then
16858 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'
16860 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'
16862 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16863 hardcode_libdir_separator_GCJ=:
16864 hardcode_direct_GCJ=yes
16866 # hardcode_minus_L: Not really in the search PATH,
16867 # but as the default location of the library.
16868 hardcode_minus_L_GCJ=yes
16869 export_dynamic_flag_spec_GCJ='${wl}-E'
16873 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16874 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16878 if test "$with_gnu_ld" = no; then
16879 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16880 hardcode_libdir_separator_GCJ=:
16882 hardcode_direct_GCJ=yes
16883 export_dynamic_flag_spec_GCJ='${wl}-E'
16885 # hardcode_minus_L: Not really in the search PATH,
16886 # but as the default location of the library.
16887 hardcode_minus_L_GCJ=yes
16892 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16895 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16898 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16901 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16907 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16910 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16917 if test "$with_gnu_ld" = no; then
16918 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919 hardcode_libdir_separator_GCJ=:
16923 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16924 hardcode_direct_GCJ=no
16925 hardcode_shlibpath_var_GCJ=no
16928 hardcode_direct_GCJ=yes
16929 export_dynamic_flag_spec_GCJ='${wl}-E'
16931 # hardcode_minus_L: Not really in the search PATH,
16932 # but as the default location of the library.
16933 hardcode_minus_L_GCJ=yes
16939 irix5* | irix6* | nonstopux*)
16940 if test "$GCC" = yes; then
16941 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'
16943 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'
16944 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16947 hardcode_libdir_separator_GCJ=:
16948 link_all_deplibs_GCJ=yes
16952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16953 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16955 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16957 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16958 hardcode_direct_GCJ=yes
16959 hardcode_shlibpath_var_GCJ=no
16963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964 hardcode_direct_GCJ=yes
16965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16966 hardcode_libdir_separator_GCJ=:
16967 hardcode_shlibpath_var_GCJ=no
16971 if test -f /usr/libexec/ld.so; then
16972 hardcode_direct_GCJ=yes
16973 hardcode_shlibpath_var_GCJ=no
16974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16975 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16976 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16978 export_dynamic_flag_spec_GCJ='${wl}-E'
16981 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16982 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16986 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16998 hardcode_minus_L_GCJ=yes
16999 allow_undefined_flag_GCJ=unsupported
17000 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'
17001 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17005 if test "$GCC" = yes; then
17006 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17007 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'
17009 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17010 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'
17012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17013 hardcode_libdir_separator_GCJ=:
17016 osf4* | osf5*) # as osf3* with the addition of -msym flag
17017 if test "$GCC" = yes; then
17018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17019 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'
17020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17022 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17023 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'
17024 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~
17025 $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'
17027 # Both c and cxx compiler support -rpath directly
17028 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17030 hardcode_libdir_separator_GCJ=:
17034 no_undefined_flag_GCJ=' -z text'
17035 if test "$GCC" = yes; then
17037 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17039 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17042 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17046 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17047 hardcode_shlibpath_var_GCJ=no
17049 solaris2.[0-5] | solaris2.[0-5].*) ;;
17051 # The compiler driver will combine and reorder linker options,
17052 # but understands `-z linker_flag'. GCC discards it without `$wl',
17053 # but is careful enough not to reorder.
17054 # Supported since Solaris 2.6 (maybe 2.5.1?)
17055 if test "$GCC" = yes; then
17056 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17058 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17062 link_all_deplibs_GCJ=yes
17066 if test "x$host_vendor" = xsequent; then
17067 # Use $CC to link under sequent, because it throws in some extra .o
17068 # files that make .init and .fini sections work.
17069 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17074 hardcode_direct_GCJ=yes
17075 hardcode_minus_L_GCJ=yes
17076 hardcode_shlibpath_var_GCJ=no
17080 case $host_vendor in
17082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083 hardcode_direct_GCJ=yes # is this really true???
17086 ## LD is ld it makes a PLAMLIB
17087 ## CC just makes a GrossModule.
17088 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17089 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17090 hardcode_direct_GCJ=no
17093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17097 runpath_var='LD_RUN_PATH'
17098 hardcode_shlibpath_var_GCJ=no
17102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17103 hardcode_shlibpath_var_GCJ=no
17104 export_dynamic_flag_spec_GCJ='-Bexport'
17108 if test -d /usr/nec; then
17109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17110 hardcode_shlibpath_var_GCJ=no
17111 runpath_var=LD_RUN_PATH
17112 hardcode_runpath_var=yes
17117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17118 no_undefined_flag_GCJ='${wl}-z,text'
17119 archive_cmds_need_lc_GCJ=no
17120 hardcode_shlibpath_var_GCJ=no
17121 runpath_var='LD_RUN_PATH'
17123 if test "$GCC" = yes; then
17124 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17125 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17127 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17128 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17132 sysv5* | sco3.2v5* | sco5v6*)
17133 # Note: We can NOT use -z defs as we might desire, because we do not
17134 # link with -lc, and that would cause any symbols used from libc to
17135 # always be unresolved, which means just about no library would
17136 # ever link correctly. If we're not using GNU ld we use -z text
17137 # though, which does catch some bad symbols but isn't as heavy-handed
17139 no_undefined_flag_GCJ='${wl}-z,text'
17140 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17141 archive_cmds_need_lc_GCJ=no
17142 hardcode_shlibpath_var_GCJ=no
17143 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17144 hardcode_libdir_separator_GCJ=':'
17145 link_all_deplibs_GCJ=yes
17146 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17147 runpath_var='LD_RUN_PATH'
17149 if test "$GCC" = yes; then
17150 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17151 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17154 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17161 hardcode_shlibpath_var_GCJ=no
17170 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17171 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17172 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17175 # Do we need to explicitly link libc?
17177 case "x$archive_cmds_need_lc_GCJ" in
17179 # Assume -lc should be added
17180 archive_cmds_need_lc_GCJ=yes
17182 if test "$enable_shared" = yes && test "$GCC" = yes; then
17183 case $archive_cmds_GCJ in
17185 # FIXME: we may have to deal with multi-command sequences.
17188 # Test whether the compiler implicitly links with -lc since on some
17189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17190 # to ld, don't add -lc before -lgcc.
17191 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197 (eval $ac_compile) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } 2>conftest.err; then
17203 libobjs=conftest.$ac_objext
17205 wl=$lt_prog_compiler_wl_GCJ
17206 pic_flag=$lt_prog_compiler_pic_GCJ
17212 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17213 allow_undefined_flag_GCJ=
17214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17215 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }
17220 archive_cmds_need_lc_GCJ=no
17222 archive_cmds_need_lc_GCJ=yes
17224 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17226 cat conftest.err 1>&5
17229 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17230 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17237 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17239 library_names_spec=
17240 libname_spec='lib$name'
17244 postuninstall_cmds=
17248 shlibpath_overrides_runpath=unknown
17250 dynamic_linker="$host_os ld.so"
17251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17253 need_lib_prefix=unknown
17254 hardcode_into_libs=no
17256 # when you set need_version to no, make sure it does not cause -set_version
17257 # flags to be left without arguments
17258 need_version=unknown
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17264 shlibpath_var=LIBPATH
17266 # AIX 3 has no versioning support, so we append a major version to the name.
17267 soname_spec='${libname}${release}${shared_ext}$major'
17274 hardcode_into_libs=yes
17275 if test "$host_cpu" = ia64; then
17276 # AIX 5 supports IA64
17277 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17278 shlibpath_var=LD_LIBRARY_PATH
17280 # With GCC up to 2.95.x, collect2 would create an import file
17281 # for dependence libraries. The import file would start with
17282 # the line `#! .'. This would cause the generated library to
17283 # depend on `.', always an invalid library. This was fixed in
17284 # development snapshots of GCC prior to 3.0.
17286 aix4 | aix4.[01] | aix4.[01].*)
17287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17289 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17292 can_build_shared=no
17296 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17297 # soname into executable. Probably we can add versioning support to
17298 # collect2, so additional links can be useful in future.
17299 if test "$aix_use_runtimelinking" = yes; then
17300 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17301 # instead of lib<name>.a to let people know that these are not
17302 # typical AIX shared libraries.
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 # We preserve .a as extension for shared libraries through AIX4.2
17306 # and later when we are not doing run time linking.
17307 library_names_spec='${libname}${release}.a $libname.a'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17310 shlibpath_var=LIBPATH
17315 library_names_spec='$libname.ixlibrary $libname.a'
17316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317 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'
17321 library_names_spec='${libname}${shared_ext}'
17322 dynamic_linker="$host_os ld.so"
17323 shlibpath_var=LIBRARY_PATH
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17335 # the default ld.so.conf also contains /usr/contrib/lib and
17336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17337 # libtool to hard-code these into programs
17340 cygwin* | mingw* | pw32*)
17341 version_type=windows
17346 case $GCC,$host_os in
17347 yes,cygwin* | yes,mingw* | yes,pw32*)
17348 library_names_spec='$libname.dll.a'
17349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17350 postinstall_cmds='base_file=`basename \${file}`~
17351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17352 dldir=$destdir/`dirname \$dlpath`~
17353 test -d \$dldir || mkdir -p \$dldir~
17354 $install_prog $dir/$dlname \$dldir/$dlname~
17355 chmod a+x \$dldir/$dlname'
17356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357 dlpath=$dir/\$dldll~
17359 shlibpath_overrides_runpath=yes
17363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17365 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17368 # MinGW DLLs use traditional 'lib' prefix
17369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17371 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17372 # It is most probably a Windows format PATH printed by
17373 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17374 # path with ; separators, and with drive letters. We can handle the
17375 # drive letters (cygwin fileutils understands them), so leave them,
17376 # especially as we might pass files found there to a mingw objdump,
17377 # which wouldn't understand a cygwinified path. Ahh.
17378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17384 # pw32 DLLs use 'pw' prefix rather than 'lib'
17385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17391 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17394 dynamic_linker='Win32 ld.exe'
17395 # FIXME: first we should search . and the directory the executable is in
17399 darwin* | rhapsody*)
17400 dynamic_linker="$host_os dyld"
17401 version_type=darwin
17404 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17405 soname_spec='${libname}${release}${major}$shared_ext'
17406 shlibpath_overrides_runpath=yes
17407 shlibpath_var=DYLD_LIBRARY_PATH
17408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 shlibpath_var=LD_LIBRARY_PATH
17426 freebsd* | dragonfly*)
17427 # DragonFly does not have aout. When/if they implement a new
17428 # versioning mechanism, adjust this.
17429 if test -x /usr/bin/objformat; then
17430 objformat=`/usr/bin/objformat`
17433 freebsd[123]*) objformat=aout ;;
17434 *) objformat=elf ;;
17437 version_type=freebsd-$objformat
17438 case $version_type in
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17449 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17454 freebsd3.[01]* | freebsdelf3.[01]*)
17455 shlibpath_overrides_runpath=yes
17456 hardcode_into_libs=yes
17458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17460 shlibpath_overrides_runpath=no
17461 hardcode_into_libs=yes
17463 *) # from 4.6 on, and DragonFly
17464 shlibpath_overrides_runpath=yes
17465 hardcode_into_libs=yes
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 shlibpath_var=LD_LIBRARY_PATH
17477 hardcode_into_libs=yes
17480 hpux9* | hpux10* | hpux11*)
17481 # Give a soname corresponding to the major version so that dld.sl refuses to
17482 # link against other versions.
17489 hardcode_into_libs=yes
17490 dynamic_linker="$host_os dld.so"
17491 shlibpath_var=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 if test "X$HPUX_IA64_MODE" = X32; then
17496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17504 hardcode_into_libs=yes
17505 dynamic_linker="$host_os dld.sl"
17506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17515 dynamic_linker="$host_os dld.sl"
17516 shlibpath_var=SHLIB_PATH
17517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 soname_spec='${libname}${release}${shared_ext}$major'
17522 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17523 postinstall_cmds='chmod 555 $lib'
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17533 shlibpath_var=LD_LIBRARY_PATH
17534 shlibpath_overrides_runpath=no
17535 hardcode_into_libs=yes
17538 irix5* | irix6* | nonstopux*)
17540 nonstopux*) version_type=nonstopux ;;
17542 if test "$lt_cv_prog_gnu_ld" = yes; then
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17553 irix5* | nonstopux*)
17554 libsuff= shlibsuff=
17557 case $LD in # libtool.m4 will add one of these switches to LD
17558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17559 libsuff= shlibsuff= libmagic=32-bit;;
17560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17561 libsuff=32 shlibsuff=N32 libmagic=N32;;
17562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17564 *) libsuff= shlibsuff= libmagic=never-match;;
17568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17569 shlibpath_overrides_runpath=no
17570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17572 hardcode_into_libs=yes
17575 # No shared lib support for Linux oldld, aout, or coff.
17576 linux*oldld* | linux*aout* | linux*coff*)
17580 # This must be Linux ELF.
17581 linux* | k*bsd*-gnu)
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=no
17590 # This implies no fast_install, which is unacceptable.
17591 # Some rework will be needed to allow for fast_install
17592 # before this can be enabled.
17593 hardcode_into_libs=yes
17595 # Append ld.so.conf contents to the search path
17596 if test -f /etc/ld.so.conf; then
17597 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' ' '`
17598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17601 # We used to test for /lib/ld.so.1 and disable shared libraries on
17602 # powerpc, because MkLinux only supported shared libraries with the
17603 # GNU dynamic linker. Since this was broken with cross compilers,
17604 # most powerpc-linux boxes support dynamic linking these days and
17605 # people can always --disable-shared, the test was removed, and we
17606 # assume the GNU/Linux dynamic linker is in use.
17607 dynamic_linker='GNU/Linux ld.so'
17614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17617 dynamic_linker='NetBSD (a.out) ld.so'
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 dynamic_linker='NetBSD ld.elf_so'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 shlibpath_overrides_runpath=yes
17625 hardcode_into_libs=yes
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=yes
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 soname_spec='${libname}${release}${shared_ext}$major'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=yes
17647 sys_lib_dlsearch_path_spec="/usr/lib"
17649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17652 *) need_version=no ;;
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17659 openbsd2.[89] | openbsd2.[89].*)
17660 shlibpath_overrides_runpath=no
17663 shlibpath_overrides_runpath=yes
17667 shlibpath_overrides_runpath=yes
17672 libname_spec='$name'
17675 library_names_spec='$libname${shared_ext} $libname.a'
17676 dynamic_linker='OS/2 ld.exe'
17677 shlibpath_var=LIBPATH
17680 osf3* | osf4* | osf5*)
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 shlibpath_var=LD_LIBRARY_PATH
17687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 soname_spec='${libname}${release}${shared_ext}$major'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=yes
17703 hardcode_into_libs=yes
17704 # ldd complains unless libraries are executable
17705 postinstall_cmds='chmod +x $lib'
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=yes
17714 if test "$with_gnu_ld" = yes; then
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 shlibpath_var=LD_LIBRARY_PATH
17725 case $host_vendor in
17727 shlibpath_overrides_runpath=no
17729 export_dynamic_flag_spec='${wl}-Blargedynsym'
17730 runpath_var=LD_RUN_PATH
17738 shlibpath_overrides_runpath=no
17739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17745 if test -d /usr/nec ;then
17747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17748 soname_spec='$libname${shared_ext}.$major'
17749 shlibpath_var=LD_LIBRARY_PATH
17753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17754 version_type=freebsd-elf
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 shlibpath_var=LD_LIBRARY_PATH
17760 hardcode_into_libs=yes
17761 if test "$with_gnu_ld" = yes; then
17762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17763 shlibpath_overrides_runpath=no
17765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17766 shlibpath_overrides_runpath=yes
17769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17773 sys_lib_dlsearch_path_spec='/usr/lib'
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 shlibpath_var=LD_LIBRARY_PATH
17787 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17788 echo "${ECHO_T}$dynamic_linker" >&6; }
17789 test "$dynamic_linker" = no && can_build_shared=no
17791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17792 if test "$GCC" = yes; then
17793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17796 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17798 hardcode_action_GCJ=
17799 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17800 test -n "$runpath_var_GCJ" || \
17801 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17803 # We can hardcode non-existant directories.
17804 if test "$hardcode_direct_GCJ" != no &&
17805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17806 # have to relink, otherwise we might link with an installed library
17807 # when we should be linking with a yet-to-be-installed one
17808 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17809 test "$hardcode_minus_L_GCJ" != no; then
17810 # Linking always hardcodes the temporary library directory.
17811 hardcode_action_GCJ=relink
17813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17814 hardcode_action_GCJ=immediate
17817 # We cannot hardcode anything, or else we can only hardcode existing
17819 hardcode_action_GCJ=unsupported
17821 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17822 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17824 if test "$hardcode_action_GCJ" = relink; then
17825 # Fast installation is not supported
17826 enable_fast_install=no
17827 elif test "$shlibpath_overrides_runpath" = yes ||
17828 test "$enable_shared" = no; then
17829 # Fast installation is not necessary
17830 enable_fast_install=needless
17834 # The else clause should only fire when bootstrapping the
17835 # libtool distribution, otherwise you forgot to ship ltmain.sh
17836 # with your package, and you will get complaints that there are
17837 # no rules to generate ltmain.sh.
17838 if test -f "$ltmain"; then
17839 # See if we are running on zsh, and set the options which allow our commands through
17840 # without removal of \ escapes.
17841 if test -n "${ZSH_VERSION+set}" ; then
17842 setopt NO_GLOB_SUBST
17844 # Now quote all the things that may contain metacharacters while being
17845 # careful not to overquote the AC_SUBSTed values. We take copies of the
17846 # variables and quote the copies for generation of the libtool script.
17847 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851 deplibs_check_method reload_flag reload_cmds need_locks \
17852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853 lt_cv_sys_global_symbol_to_c_name_address \
17854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855 old_postinstall_cmds old_postuninstall_cmds \
17859 lt_prog_compiler_wl_GCJ \
17860 lt_prog_compiler_pic_GCJ \
17861 lt_prog_compiler_static_GCJ \
17862 lt_prog_compiler_no_builtin_flag_GCJ \
17863 export_dynamic_flag_spec_GCJ \
17864 thread_safe_flag_spec_GCJ \
17865 whole_archive_flag_spec_GCJ \
17866 enable_shared_with_static_runtimes_GCJ \
17867 old_archive_cmds_GCJ \
17868 old_archive_from_new_cmds_GCJ \
17869 predep_objects_GCJ \
17870 postdep_objects_GCJ \
17873 compiler_lib_search_path_GCJ \
17875 archive_expsym_cmds_GCJ \
17876 postinstall_cmds_GCJ \
17877 postuninstall_cmds_GCJ \
17878 old_archive_from_expsyms_cmds_GCJ \
17879 allow_undefined_flag_GCJ \
17880 no_undefined_flag_GCJ \
17881 export_symbols_cmds_GCJ \
17882 hardcode_libdir_flag_spec_GCJ \
17883 hardcode_libdir_flag_spec_ld_GCJ \
17884 hardcode_libdir_separator_GCJ \
17885 hardcode_automatic_GCJ \
17887 module_expsym_cmds_GCJ \
17888 lt_cv_prog_compiler_c_o_GCJ \
17889 fix_srcfile_path_GCJ \
17890 exclude_expsyms_GCJ \
17891 include_expsyms_GCJ; do
17894 old_archive_cmds_GCJ | \
17895 old_archive_from_new_cmds_GCJ | \
17896 archive_cmds_GCJ | \
17897 archive_expsym_cmds_GCJ | \
17898 module_cmds_GCJ | \
17899 module_expsym_cmds_GCJ | \
17900 old_archive_from_expsyms_cmds_GCJ | \
17901 export_symbols_cmds_GCJ | \
17902 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17903 postinstall_cmds | postuninstall_cmds | \
17904 old_postinstall_cmds | old_postuninstall_cmds | \
17905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17906 # Double-quote double-evaled strings.
17907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17916 *'\$0 --fallback-echo"')
17917 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17923 cat <<__EOF__ >> "$cfgfile"
17924 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17928 # Shell to use when invoking shell scripts.
17931 # Whether or not to build shared libraries.
17932 build_libtool_libs=$enable_shared
17934 # Whether or not to build static libraries.
17935 build_old_libs=$enable_static
17937 # Whether or not to add -lc for building shared libraries.
17938 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17940 # Whether or not to disallow shared libs when runtime libs are static
17941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17943 # Whether or not to optimize for fast installation.
17944 fast_install=$enable_fast_install
17947 host_alias=$host_alias
17951 # The build system.
17952 build_alias=$build_alias
17956 # An echo program that does not interpret backslashes.
17961 AR_FLAGS=$lt_AR_FLAGS
17966 # LTCC compiler flags.
17967 LTCFLAGS=$lt_LTCFLAGS
17969 # A language-specific compiler.
17970 CC=$lt_compiler_GCJ
17972 # Is the compiler the GNU C compiler?
17978 # The linker used to build libraries.
17981 # Whether we need hard or soft links.
17984 # A BSD-compatible nm program.
17987 # A symbol stripping program
17990 # Used to examine libraries when file_magic_cmd begins "file"
17991 MAGIC_CMD=$MAGIC_CMD
17993 # Used on cygwin: DLL creation program.
17996 # Used on cygwin: object dumper.
17999 # Used on cygwin: assembler.
18002 # The name of the directory that contains temporary libtool files.
18005 # How to create reloadable object files.
18006 reload_flag=$lt_reload_flag
18007 reload_cmds=$lt_reload_cmds
18009 # How to pass a linker flag through the compiler.
18010 wl=$lt_lt_prog_compiler_wl_GCJ
18012 # Object file suffix (normally "o").
18013 objext="$ac_objext"
18015 # Old archive suffix (normally "a").
18018 # Shared library suffix (normally ".so").
18019 shrext_cmds='$shrext_cmds'
18021 # Executable file suffix (normally "").
18024 # Additional compiler flags for building library objects.
18025 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18028 # What is the maximum length of a command?
18029 max_cmd_len=$lt_cv_sys_max_cmd_len
18031 # Does compiler simultaneously support -c and -o options?
18032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18034 # Must we lock files when doing compilation?
18035 need_locks=$lt_need_locks
18037 # Do we need the lib prefix for modules?
18038 need_lib_prefix=$need_lib_prefix
18040 # Do we need a version for libraries?
18041 need_version=$need_version
18043 # Whether dlopen is supported.
18044 dlopen_support=$enable_dlopen
18046 # Whether dlopen of programs is supported.
18047 dlopen_self=$enable_dlopen_self
18049 # Whether dlopen of statically linked programs is supported.
18050 dlopen_self_static=$enable_dlopen_self_static
18052 # Compiler flag to prevent dynamic linking.
18053 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18055 # Compiler flag to turn off builtin functions.
18056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18058 # Compiler flag to allow reflexive dlopens.
18059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18061 # Compiler flag to generate shared objects directly from archives.
18062 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18064 # Compiler flag to generate thread-safe objects.
18065 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18067 # Library versioning type.
18068 version_type=$version_type
18070 # Format of library name prefix.
18071 libname_spec=$lt_libname_spec
18073 # List of archive names. First name is the real one, the rest are links.
18074 # The last name is the one that the linker finds with -lNAME.
18075 library_names_spec=$lt_library_names_spec
18077 # The coded name of the library, if different from the real name.
18078 soname_spec=$lt_soname_spec
18080 # Commands used to build and install an old-style archive.
18082 old_archive_cmds=$lt_old_archive_cmds_GCJ
18083 old_postinstall_cmds=$lt_old_postinstall_cmds
18084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18086 # Create an old-style archive from a shared archive.
18087 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18089 # Create a temporary old-style archive to link instead of a shared archive.
18090 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18092 # Commands used to build and install a shared archive.
18093 archive_cmds=$lt_archive_cmds_GCJ
18094 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18095 postinstall_cmds=$lt_postinstall_cmds
18096 postuninstall_cmds=$lt_postuninstall_cmds
18098 # Commands used to build a loadable module (assumed same as above if empty)
18099 module_cmds=$lt_module_cmds_GCJ
18100 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18102 # Commands to strip libraries.
18103 old_striplib=$lt_old_striplib
18104 striplib=$lt_striplib
18106 # Dependencies to place before the objects being linked to create a
18108 predep_objects=$lt_predep_objects_GCJ
18110 # Dependencies to place after the objects being linked to create a
18112 postdep_objects=$lt_postdep_objects_GCJ
18114 # Dependencies to place before the objects being linked to create a
18116 predeps=$lt_predeps_GCJ
18118 # Dependencies to place after the objects being linked to create a
18120 postdeps=$lt_postdeps_GCJ
18122 # The library search path used internally by the compiler when linking
18123 # a shared library.
18124 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18126 # Method to check whether dependent libraries are shared objects.
18127 deplibs_check_method=$lt_deplibs_check_method
18129 # Command to use when deplibs_check_method == file_magic.
18130 file_magic_cmd=$lt_file_magic_cmd
18132 # Flag that allows shared libraries with undefined symbols to be built.
18133 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18135 # Flag that forces no undefined symbols.
18136 no_undefined_flag=$lt_no_undefined_flag_GCJ
18138 # Commands used to finish a libtool library installation in a directory.
18139 finish_cmds=$lt_finish_cmds
18141 # Same as above, but a single script fragment to be evaled but not shown.
18142 finish_eval=$lt_finish_eval
18144 # Take the output of nm and produce a listing of raw symbols and C names.
18145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18147 # Transform the output of nm in a proper C declaration
18148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18150 # Transform the output of nm in a C name address pair
18151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18153 # This is the shared library runtime path variable.
18154 runpath_var=$runpath_var
18156 # This is the shared library path variable.
18157 shlibpath_var=$shlibpath_var
18159 # Is shlibpath searched before the hard-coded library search path?
18160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18162 # How to hardcode a shared library path into an executable.
18163 hardcode_action=$hardcode_action_GCJ
18165 # Whether we should hardcode library paths into libraries.
18166 hardcode_into_libs=$hardcode_into_libs
18168 # Flag to hardcode \$libdir into a binary during linking.
18169 # This must work even if \$libdir does not exist.
18170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18172 # If ld is used when linking, flag to hardcode \$libdir into
18173 # a binary during linking. This must work even if \$libdir does
18175 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18177 # Whether we need a single -rpath flag with a separated argument.
18178 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18180 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18181 # resulting binary.
18182 hardcode_direct=$hardcode_direct_GCJ
18184 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18185 # resulting binary.
18186 hardcode_minus_L=$hardcode_minus_L_GCJ
18188 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18189 # the resulting binary.
18190 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18192 # Set to yes if building a shared library automatically hardcodes DIR into the library
18193 # and all subsequent libraries and executables linked against it.
18194 hardcode_automatic=$hardcode_automatic_GCJ
18196 # Variables whose values should be saved in libtool wrapper scripts and
18197 # restored at relink time.
18198 variables_saved_for_relink="$variables_saved_for_relink"
18200 # Whether libtool must link a program against all its dependency libraries.
18201 link_all_deplibs=$link_all_deplibs_GCJ
18203 # Compile-time system search path for libraries
18204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18206 # Run-time system search path for libraries
18207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18209 # Fix the shell variable \$srcfile for the compiler.
18210 fix_srcfile_path=$lt_fix_srcfile_path
18212 # Set to yes if exported symbols are required.
18213 always_export_symbols=$always_export_symbols_GCJ
18215 # The commands to list exported symbols.
18216 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18218 # The commands to extract the exported symbol list from a shared archive.
18219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18221 # Symbols that should not be listed in the preloaded symbols.
18222 exclude_expsyms=$lt_exclude_expsyms_GCJ
18224 # Symbols that must always be exported.
18225 include_expsyms=$lt_include_expsyms_GCJ
18227 # ### END LIBTOOL TAG CONFIG: $tagname
18233 # If there is no Makefile yet, we rely on a make rule to execute
18234 # `config.status --recheck' to rerun these tests and create the
18235 # libtool script then.
18236 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18237 if test -f "$ltmain_in"; then
18238 test -f Makefile && make "$ltmain"
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18259 # Source file extension for RC test sources.
18262 # Object file extension for compiled RC test sources.
18266 # Code to be used in simple compile tests
18267 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18269 # Code to be used in simple link tests
18270 lt_simple_link_test_code="$lt_simple_compile_test_code"
18272 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18274 # If no C compiler was specified, use CC.
18277 # If no C compiler flags were specified, use CFLAGS.
18278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18280 # Allow CC to be a program name with arguments.
18284 # save warnings/boilerplate of simple test code
18285 ac_outfile=conftest.$ac_objext
18286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18288 _lt_compiler_boilerplate=`cat conftest.err`
18291 ac_outfile=conftest.$ac_objext
18292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18294 _lt_linker_boilerplate=`cat conftest.err`
18298 # Allow CC to be a program name with arguments.
18303 for cc_temp in $compiler""; do
18305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18311 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18313 lt_cv_prog_compiler_c_o_RC=yes
18315 # The else clause should only fire when bootstrapping the
18316 # libtool distribution, otherwise you forgot to ship ltmain.sh
18317 # with your package, and you will get complaints that there are
18318 # no rules to generate ltmain.sh.
18319 if test -f "$ltmain"; then
18320 # See if we are running on zsh, and set the options which allow our commands through
18321 # without removal of \ escapes.
18322 if test -n "${ZSH_VERSION+set}" ; then
18323 setopt NO_GLOB_SUBST
18325 # Now quote all the things that may contain metacharacters while being
18326 # careful not to overquote the AC_SUBSTed values. We take copies of the
18327 # variables and quote the copies for generation of the libtool script.
18328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332 deplibs_check_method reload_flag reload_cmds need_locks \
18333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334 lt_cv_sys_global_symbol_to_c_name_address \
18335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336 old_postinstall_cmds old_postuninstall_cmds \
18340 lt_prog_compiler_wl_RC \
18341 lt_prog_compiler_pic_RC \
18342 lt_prog_compiler_static_RC \
18343 lt_prog_compiler_no_builtin_flag_RC \
18344 export_dynamic_flag_spec_RC \
18345 thread_safe_flag_spec_RC \
18346 whole_archive_flag_spec_RC \
18347 enable_shared_with_static_runtimes_RC \
18348 old_archive_cmds_RC \
18349 old_archive_from_new_cmds_RC \
18350 predep_objects_RC \
18351 postdep_objects_RC \
18354 compiler_lib_search_path_RC \
18356 archive_expsym_cmds_RC \
18357 postinstall_cmds_RC \
18358 postuninstall_cmds_RC \
18359 old_archive_from_expsyms_cmds_RC \
18360 allow_undefined_flag_RC \
18361 no_undefined_flag_RC \
18362 export_symbols_cmds_RC \
18363 hardcode_libdir_flag_spec_RC \
18364 hardcode_libdir_flag_spec_ld_RC \
18365 hardcode_libdir_separator_RC \
18366 hardcode_automatic_RC \
18368 module_expsym_cmds_RC \
18369 lt_cv_prog_compiler_c_o_RC \
18370 fix_srcfile_path_RC \
18371 exclude_expsyms_RC \
18372 include_expsyms_RC; do
18375 old_archive_cmds_RC | \
18376 old_archive_from_new_cmds_RC | \
18377 archive_cmds_RC | \
18378 archive_expsym_cmds_RC | \
18380 module_expsym_cmds_RC | \
18381 old_archive_from_expsyms_cmds_RC | \
18382 export_symbols_cmds_RC | \
18383 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18384 postinstall_cmds | postuninstall_cmds | \
18385 old_postinstall_cmds | old_postuninstall_cmds | \
18386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18387 # Double-quote double-evaled strings.
18388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18397 *'\$0 --fallback-echo"')
18398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18404 cat <<__EOF__ >> "$cfgfile"
18405 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18409 # Shell to use when invoking shell scripts.
18412 # Whether or not to build shared libraries.
18413 build_libtool_libs=$enable_shared
18415 # Whether or not to build static libraries.
18416 build_old_libs=$enable_static
18418 # Whether or not to add -lc for building shared libraries.
18419 build_libtool_need_lc=$archive_cmds_need_lc_RC
18421 # Whether or not to disallow shared libs when runtime libs are static
18422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18424 # Whether or not to optimize for fast installation.
18425 fast_install=$enable_fast_install
18428 host_alias=$host_alias
18432 # The build system.
18433 build_alias=$build_alias
18437 # An echo program that does not interpret backslashes.
18442 AR_FLAGS=$lt_AR_FLAGS
18447 # LTCC compiler flags.
18448 LTCFLAGS=$lt_LTCFLAGS
18450 # A language-specific compiler.
18453 # Is the compiler the GNU C compiler?
18459 # The linker used to build libraries.
18462 # Whether we need hard or soft links.
18465 # A BSD-compatible nm program.
18468 # A symbol stripping program
18471 # Used to examine libraries when file_magic_cmd begins "file"
18472 MAGIC_CMD=$MAGIC_CMD
18474 # Used on cygwin: DLL creation program.
18477 # Used on cygwin: object dumper.
18480 # Used on cygwin: assembler.
18483 # The name of the directory that contains temporary libtool files.
18486 # How to create reloadable object files.
18487 reload_flag=$lt_reload_flag
18488 reload_cmds=$lt_reload_cmds
18490 # How to pass a linker flag through the compiler.
18491 wl=$lt_lt_prog_compiler_wl_RC
18493 # Object file suffix (normally "o").
18494 objext="$ac_objext"
18496 # Old archive suffix (normally "a").
18499 # Shared library suffix (normally ".so").
18500 shrext_cmds='$shrext_cmds'
18502 # Executable file suffix (normally "").
18505 # Additional compiler flags for building library objects.
18506 pic_flag=$lt_lt_prog_compiler_pic_RC
18509 # What is the maximum length of a command?
18510 max_cmd_len=$lt_cv_sys_max_cmd_len
18512 # Does compiler simultaneously support -c and -o options?
18513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18515 # Must we lock files when doing compilation?
18516 need_locks=$lt_need_locks
18518 # Do we need the lib prefix for modules?
18519 need_lib_prefix=$need_lib_prefix
18521 # Do we need a version for libraries?
18522 need_version=$need_version
18524 # Whether dlopen is supported.
18525 dlopen_support=$enable_dlopen
18527 # Whether dlopen of programs is supported.
18528 dlopen_self=$enable_dlopen_self
18530 # Whether dlopen of statically linked programs is supported.
18531 dlopen_self_static=$enable_dlopen_self_static
18533 # Compiler flag to prevent dynamic linking.
18534 link_static_flag=$lt_lt_prog_compiler_static_RC
18536 # Compiler flag to turn off builtin functions.
18537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18539 # Compiler flag to allow reflexive dlopens.
18540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18542 # Compiler flag to generate shared objects directly from archives.
18543 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18545 # Compiler flag to generate thread-safe objects.
18546 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18548 # Library versioning type.
18549 version_type=$version_type
18551 # Format of library name prefix.
18552 libname_spec=$lt_libname_spec
18554 # List of archive names. First name is the real one, the rest are links.
18555 # The last name is the one that the linker finds with -lNAME.
18556 library_names_spec=$lt_library_names_spec
18558 # The coded name of the library, if different from the real name.
18559 soname_spec=$lt_soname_spec
18561 # Commands used to build and install an old-style archive.
18563 old_archive_cmds=$lt_old_archive_cmds_RC
18564 old_postinstall_cmds=$lt_old_postinstall_cmds
18565 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18567 # Create an old-style archive from a shared archive.
18568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18570 # Create a temporary old-style archive to link instead of a shared archive.
18571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18573 # Commands used to build and install a shared archive.
18574 archive_cmds=$lt_archive_cmds_RC
18575 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18576 postinstall_cmds=$lt_postinstall_cmds
18577 postuninstall_cmds=$lt_postuninstall_cmds
18579 # Commands used to build a loadable module (assumed same as above if empty)
18580 module_cmds=$lt_module_cmds_RC
18581 module_expsym_cmds=$lt_module_expsym_cmds_RC
18583 # Commands to strip libraries.
18584 old_striplib=$lt_old_striplib
18585 striplib=$lt_striplib
18587 # Dependencies to place before the objects being linked to create a
18589 predep_objects=$lt_predep_objects_RC
18591 # Dependencies to place after the objects being linked to create a
18593 postdep_objects=$lt_postdep_objects_RC
18595 # Dependencies to place before the objects being linked to create a
18597 predeps=$lt_predeps_RC
18599 # Dependencies to place after the objects being linked to create a
18601 postdeps=$lt_postdeps_RC
18603 # The library search path used internally by the compiler when linking
18604 # a shared library.
18605 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18607 # Method to check whether dependent libraries are shared objects.
18608 deplibs_check_method=$lt_deplibs_check_method
18610 # Command to use when deplibs_check_method == file_magic.
18611 file_magic_cmd=$lt_file_magic_cmd
18613 # Flag that allows shared libraries with undefined symbols to be built.
18614 allow_undefined_flag=$lt_allow_undefined_flag_RC
18616 # Flag that forces no undefined symbols.
18617 no_undefined_flag=$lt_no_undefined_flag_RC
18619 # Commands used to finish a libtool library installation in a directory.
18620 finish_cmds=$lt_finish_cmds
18622 # Same as above, but a single script fragment to be evaled but not shown.
18623 finish_eval=$lt_finish_eval
18625 # Take the output of nm and produce a listing of raw symbols and C names.
18626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18628 # Transform the output of nm in a proper C declaration
18629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18631 # Transform the output of nm in a C name address pair
18632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18634 # This is the shared library runtime path variable.
18635 runpath_var=$runpath_var
18637 # This is the shared library path variable.
18638 shlibpath_var=$shlibpath_var
18640 # Is shlibpath searched before the hard-coded library search path?
18641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18643 # How to hardcode a shared library path into an executable.
18644 hardcode_action=$hardcode_action_RC
18646 # Whether we should hardcode library paths into libraries.
18647 hardcode_into_libs=$hardcode_into_libs
18649 # Flag to hardcode \$libdir into a binary during linking.
18650 # This must work even if \$libdir does not exist.
18651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18653 # If ld is used when linking, flag to hardcode \$libdir into
18654 # a binary during linking. This must work even if \$libdir does
18656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18658 # Whether we need a single -rpath flag with a separated argument.
18659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18662 # resulting binary.
18663 hardcode_direct=$hardcode_direct_RC
18665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18666 # resulting binary.
18667 hardcode_minus_L=$hardcode_minus_L_RC
18669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18670 # the resulting binary.
18671 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18673 # Set to yes if building a shared library automatically hardcodes DIR into the library
18674 # and all subsequent libraries and executables linked against it.
18675 hardcode_automatic=$hardcode_automatic_RC
18677 # Variables whose values should be saved in libtool wrapper scripts and
18678 # restored at relink time.
18679 variables_saved_for_relink="$variables_saved_for_relink"
18681 # Whether libtool must link a program against all its dependency libraries.
18682 link_all_deplibs=$link_all_deplibs_RC
18684 # Compile-time system search path for libraries
18685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18687 # Run-time system search path for libraries
18688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18690 # Fix the shell variable \$srcfile for the compiler.
18691 fix_srcfile_path=$lt_fix_srcfile_path
18693 # Set to yes if exported symbols are required.
18694 always_export_symbols=$always_export_symbols_RC
18696 # The commands to list exported symbols.
18697 export_symbols_cmds=$lt_export_symbols_cmds_RC
18699 # The commands to extract the exported symbol list from a shared archive.
18700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18702 # Symbols that should not be listed in the preloaded symbols.
18703 exclude_expsyms=$lt_exclude_expsyms_RC
18705 # Symbols that must always be exported.
18706 include_expsyms=$lt_include_expsyms_RC
18708 # ### END LIBTOOL TAG CONFIG: $tagname
18714 # If there is no Makefile yet, we rely on a make rule to execute
18715 # `config.status --recheck' to rerun these tests and create the
18716 # libtool script then.
18717 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18718 if test -f "$ltmain_in"; then
18719 test -f Makefile && make "$ltmain"
18725 ac_cpp='$CPP $CPPFLAGS'
18726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18735 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18736 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18737 { (exit 1); exit 1; }; }
18741 # Append the new tag name to the list of available tags.
18742 if test -n "$tagname" ; then
18743 available_tags="$available_tags $tagname"
18749 # Now substitute the updated list of available tags.
18750 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18751 mv "${ofile}T" "$ofile"
18755 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18756 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18757 { (exit 1); exit 1; }; }
18763 # This can be used to rebuild libtool when needed
18764 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18766 # Always use our own libtool.
18767 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18769 # Prevent multiple expansion
18791 am__api_version='1.10'
18793 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18794 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18797 echo timestamp > conftest.file
18798 # Do `set' in a subshell so we don't clobber the current shell's
18799 # arguments. Must try -L first in case configure is actually a
18800 # symlink; some systems play weird games with the mod time of symlinks
18801 # (eg FreeBSD returns the mod time of the symlink's containing
18804 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18805 if test "$*" = "X"; then
18807 set X `ls -t $srcdir/configure conftest.file`
18809 rm -f conftest.file
18810 if test "$*" != "X $srcdir/configure conftest.file" \
18811 && test "$*" != "X conftest.file $srcdir/configure"; then
18813 # If neither matched, then we have a broken ls. This can happen
18814 # if, for instance, CONFIG_SHELL is bash and it inherits a
18815 # broken ls alias from the environment. This has actually
18816 # happened. Such a system could not be considered "sane".
18817 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
18818 alias in your environment" >&5
18819 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
18820 alias in your environment" >&2;}
18821 { (exit 1); exit 1; }; }
18824 test "$2" = conftest.file
18830 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18831 Check your system clock" >&5
18832 echo "$as_me: error: newly created file is older than distributed files!
18833 Check your system clock" >&2;}
18834 { (exit 1); exit 1; }; }
18836 { echo "$as_me:$LINENO: result: yes" >&5
18837 echo "${ECHO_T}yes" >&6; }
18838 test "$program_prefix" != NONE &&
18839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18840 # Use a double $ so make ignores it.
18841 test "$program_suffix" != NONE &&
18842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18843 # Double any \ or $. echo might interpret backslashes.
18844 # By default was `s,x,x', remove it if useless.
18845 cat <<\_ACEOF >conftest.sed
18846 s/[\\$]/&&/g;s/;s,x,x,$//
18848 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18851 # expand $ac_aux_dir to an absolute path
18852 am_aux_dir=`cd $ac_aux_dir && pwd`
18854 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18855 # Use eval to expand $SHELL
18856 if eval "$MISSING --run true"; then
18857 am_missing_run="$MISSING --run "
18860 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18861 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18864 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18865 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18866 if test -z "$MKDIR_P"; then
18867 if test "${ac_cv_path_mkdir+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18874 test -z "$as_dir" && as_dir=.
18875 for ac_prog in mkdir gmkdir; do
18876 for ac_exec_ext in '' $ac_executable_extensions; do
18877 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18879 'mkdir (GNU coreutils) '* | \
18880 'mkdir (coreutils) '* | \
18881 'mkdir (fileutils) '4.1*)
18882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18892 if test "${ac_cv_path_mkdir+set}" = set; then
18893 MKDIR_P="$ac_cv_path_mkdir -p"
18895 # As a last resort, use the slow shell script. Don't cache a
18896 # value for MKDIR_P within a source directory, because that will
18897 # break other packages using the cache if that directory is
18898 # removed, or if the value is a relative name.
18899 test -d ./--version && rmdir ./--version
18900 MKDIR_P="$ac_install_sh -d"
18903 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18904 echo "${ECHO_T}$MKDIR_P" >&6; }
18908 [\\/$]* | ?:[\\/]*) ;;
18909 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18912 for ac_prog in gawk mawk nawk awk
18914 # Extract the first word of "$ac_prog", so it can be a program name with args.
18915 set dummy $ac_prog; ac_word=$2
18916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18918 if test "${ac_cv_prog_AWK+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 if test -n "$AWK"; then
18922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925 for as_dir in $PATH
18928 test -z "$as_dir" && as_dir=.
18929 for ac_exec_ext in '' $ac_executable_extensions; do
18930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18931 ac_cv_prog_AWK="$ac_prog"
18932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18941 AWK=$ac_cv_prog_AWK
18942 if test -n "$AWK"; then
18943 { echo "$as_me:$LINENO: result: $AWK" >&5
18944 echo "${ECHO_T}$AWK" >&6; }
18946 { echo "$as_me:$LINENO: result: no" >&5
18947 echo "${ECHO_T}no" >&6; }
18951 test -n "$AWK" && break
18954 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18955 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18956 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 cat >conftest.make <<\_ACEOF
18963 @echo '@@@%%%=$(MAKE)=@@@%%%'
18965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18967 *@@@%%%=?*=@@@%%%*)
18968 eval ac_cv_prog_make_${ac_make}_set=yes;;
18970 eval ac_cv_prog_make_${ac_make}_set=no;;
18972 rm -f conftest.make
18974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18975 { echo "$as_me:$LINENO: result: yes" >&5
18976 echo "${ECHO_T}yes" >&6; }
18979 { echo "$as_me:$LINENO: result: no" >&5
18980 echo "${ECHO_T}no" >&6; }
18981 SET_MAKE="MAKE=${MAKE-make}"
18984 rm -rf .tst 2>/dev/null
18985 mkdir .tst 2>/dev/null
18986 if test -d .tst; then
18991 rmdir .tst 2>/dev/null
18993 DEPDIR="${am__leading_dot}deps"
18995 ac_config_commands="$ac_config_commands depfiles"
18998 am_make=${MAKE-make}
18999 cat > confinc << 'END'
19004 # If we don't find an include directive, just comment out the code.
19005 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19006 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
19010 # First try GNU make style include.
19011 echo "include confinc" > confmf
19012 # We grep out `Entering directory' and `Leaving directory'
19013 # messages which can occur if `w' ends up in MAKEFLAGS.
19014 # In particular we don't look at `^make:' because GNU make might
19015 # be invoked under some other name (usually "gmake"), in which
19016 # case it prints its new name instead of `make'.
19017 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19018 am__include=include
19022 # Now try BSD make style include.
19023 if test "$am__include" = "#"; then
19024 echo '.include "confinc"' > confmf
19025 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19026 am__include=.include
19033 { echo "$as_me:$LINENO: result: $_am_result" >&5
19034 echo "${ECHO_T}$_am_result" >&6; }
19035 rm -f confinc confmf
19037 # Check whether --enable-dependency-tracking was given.
19038 if test "${enable_dependency_tracking+set}" = set; then
19039 enableval=$enable_dependency_tracking;
19042 if test "x$enable_dependency_tracking" != xno; then
19043 am_depcomp="$ac_aux_dir/depcomp"
19046 if test "x$enable_dependency_tracking" != xno; then
19055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19057 # is not polluted with repeated "-I."
19058 am__isrc=' -I$(srcdir)'
19059 # test to see if srcdir already configured
19060 if test -f $srcdir/config.status; then
19061 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19062 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19063 { (exit 1); exit 1; }; }
19067 # test whether we have cygpath
19068 if test -z "$CYGPATH_W"; then
19069 if (cygpath --version) >/dev/null 2>/dev/null; then
19070 CYGPATH_W='cygpath -w'
19077 # Define the identity of the package.
19082 cat >>confdefs.h <<_ACEOF
19083 #define PACKAGE "$PACKAGE"
19087 cat >>confdefs.h <<_ACEOF
19088 #define VERSION "$VERSION"
19091 # Some tools Automake needs.
19093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19107 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19109 # Installed binaries are usually stripped using `strip' when the user
19110 # run `make install-strip'. However `strip' might not be the right
19111 # tool to use in cross-compilation environments, therefore Automake
19112 # will honor the `STRIP' environment variable to overrule this program.
19113 if test "$cross_compiling" != no; then
19114 if test -n "$ac_tool_prefix"; then
19115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19116 set dummy ${ac_tool_prefix}strip; ac_word=$2
19117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19119 if test "${ac_cv_prog_STRIP+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 if test -n "$STRIP"; then
19123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19129 test -z "$as_dir" && as_dir=.
19130 for ac_exec_ext in '' $ac_executable_extensions; do
19131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142 STRIP=$ac_cv_prog_STRIP
19143 if test -n "$STRIP"; then
19144 { echo "$as_me:$LINENO: result: $STRIP" >&5
19145 echo "${ECHO_T}$STRIP" >&6; }
19147 { echo "$as_me:$LINENO: result: no" >&5
19148 echo "${ECHO_T}no" >&6; }
19153 if test -z "$ac_cv_prog_STRIP"; then
19155 # Extract the first word of "strip", so it can be a program name with args.
19156 set dummy strip; ac_word=$2
19157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 if test -n "$ac_ct_STRIP"; then
19163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19166 for as_dir in $PATH
19169 test -z "$as_dir" && as_dir=.
19170 for ac_exec_ext in '' $ac_executable_extensions; do
19171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19172 ac_cv_prog_ac_ct_STRIP="strip"
19173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19183 if test -n "$ac_ct_STRIP"; then
19184 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19185 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19187 { echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6; }
19191 if test "x$ac_ct_STRIP" = x; then
19194 case $cross_compiling:$ac_tool_warned in
19196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19197 whose name does not start with the host triplet. If you think this
19198 configuration is useful to you, please write to autoconf@gnu.org." >&5
19199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19200 whose name does not start with the host triplet. If you think this
19201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19202 ac_tool_warned=yes ;;
19207 STRIP="$ac_cv_prog_STRIP"
19211 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19213 # We need awk for the "check" target. The system "awk" is bad on
19215 # Always define AMTAR for backward compatibility.
19217 AMTAR=${AMTAR-"${am_missing_run}tar"}
19219 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19224 depcc="$CC" am_compiler_list=
19226 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19232 # We make a subdir and do the tests there. Otherwise we can end up
19233 # making bogus files that we don't know about and never remove. For
19234 # instance it was reported that on HP-UX the gcc test will end up
19235 # making a dummy file named `D' -- because `-MD' means `put the output
19238 # Copy depcomp to subdir because otherwise we won't find it if we're
19239 # using a relative directory.
19240 cp "$am_depcomp" conftest.dir
19242 # We will build objects and dependencies in a subdirectory because
19243 # it helps to detect inapplicable dependency modes. For instance
19244 # both Tru64's cc and ICC support -MD to output dependencies as a
19245 # side effect of compilation, but ICC will put the dependencies in
19246 # the current directory while Tru64 will put them in the object
19250 am_cv_CC_dependencies_compiler_type=none
19251 if test "$am_compiler_list" = ""; then
19252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19254 for depmode in $am_compiler_list; do
19255 # Setup a source with many dependencies, because some compilers
19256 # like to wrap large dependency lists on column 80 (with \), and
19257 # we should not choose a depcomp mode which is confused by this.
19259 # We need to recreate these files for each test, as the compiler may
19260 # overwrite some of them when testing with obscure command lines.
19261 # This happens at least with the AIX C compiler.
19263 for i in 1 2 3 4 5 6; do
19264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19266 # Solaris 8's {/usr,}/bin/sh.
19267 touch sub/conftst$i.h
19269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19273 # after this tag, mechanisms are not by side-effect, so they'll
19274 # only be used when explicitly requested
19275 if test "x$enable_dependency_tracking" = xyes; then
19283 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19284 # mode. It turns out that the SunPro C++ compiler does not properly
19285 # handle `-M -o', and we need to detect this.
19286 if depmode=$depmode \
19287 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19289 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19290 >/dev/null 2>conftest.err &&
19291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19293 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19295 # icc doesn't choke on unknown options, it will just issue warnings
19296 # or remarks (even with -Werror). So we grep stderr for any message
19297 # that says an option was ignored or not supported.
19298 # When given -MP, icc 7.0 and 7.1 complain thusly:
19299 # icc: Command line warning: ignoring option '-M'; no argument required
19300 # The diagnosis changed in icc 8.0:
19301 # icc: Command line remark: option '-MP' not supported
19302 if (grep 'ignoring option' conftest.err ||
19303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19304 am_cv_CC_dependencies_compiler_type=$depmode
19311 rm -rf conftest.dir
19313 am_cv_CC_dependencies_compiler_type=none
19317 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19318 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19322 test "x$enable_dependency_tracking" != xno \
19323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19324 am__fastdepCC_TRUE=
19325 am__fastdepCC_FALSE='#'
19327 am__fastdepCC_TRUE='#'
19328 am__fastdepCC_FALSE=
19332 depcc="$CXX" am_compiler_list=
19334 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19335 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19336 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19340 # We make a subdir and do the tests there. Otherwise we can end up
19341 # making bogus files that we don't know about and never remove. For
19342 # instance it was reported that on HP-UX the gcc test will end up
19343 # making a dummy file named `D' -- because `-MD' means `put the output
19346 # Copy depcomp to subdir because otherwise we won't find it if we're
19347 # using a relative directory.
19348 cp "$am_depcomp" conftest.dir
19350 # We will build objects and dependencies in a subdirectory because
19351 # it helps to detect inapplicable dependency modes. For instance
19352 # both Tru64's cc and ICC support -MD to output dependencies as a
19353 # side effect of compilation, but ICC will put the dependencies in
19354 # the current directory while Tru64 will put them in the object
19358 am_cv_CXX_dependencies_compiler_type=none
19359 if test "$am_compiler_list" = ""; then
19360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19362 for depmode in $am_compiler_list; do
19363 # Setup a source with many dependencies, because some compilers
19364 # like to wrap large dependency lists on column 80 (with \), and
19365 # we should not choose a depcomp mode which is confused by this.
19367 # We need to recreate these files for each test, as the compiler may
19368 # overwrite some of them when testing with obscure command lines.
19369 # This happens at least with the AIX C compiler.
19371 for i in 1 2 3 4 5 6; do
19372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19374 # Solaris 8's {/usr,}/bin/sh.
19375 touch sub/conftst$i.h
19377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19381 # after this tag, mechanisms are not by side-effect, so they'll
19382 # only be used when explicitly requested
19383 if test "x$enable_dependency_tracking" = xyes; then
19391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19392 # mode. It turns out that the SunPro C++ compiler does not properly
19393 # handle `-M -o', and we need to detect this.
19394 if depmode=$depmode \
19395 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19397 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19398 >/dev/null 2>conftest.err &&
19399 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19401 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19403 # icc doesn't choke on unknown options, it will just issue warnings
19404 # or remarks (even with -Werror). So we grep stderr for any message
19405 # that says an option was ignored or not supported.
19406 # When given -MP, icc 7.0 and 7.1 complain thusly:
19407 # icc: Command line warning: ignoring option '-M'; no argument required
19408 # The diagnosis changed in icc 8.0:
19409 # icc: Command line remark: option '-MP' not supported
19410 if (grep 'ignoring option' conftest.err ||
19411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19412 am_cv_CXX_dependencies_compiler_type=$depmode
19419 rm -rf conftest.dir
19421 am_cv_CXX_dependencies_compiler_type=none
19425 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19426 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19427 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19430 test "x$enable_dependency_tracking" != xno \
19431 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19432 am__fastdepCXX_TRUE=
19433 am__fastdepCXX_FALSE='#'
19435 am__fastdepCXX_TRUE='#'
19436 am__fastdepCXX_FALSE=
19442 { echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19443 echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
19444 if test "${ac_cv_search_dlsym+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 ac_func_search_save_LIBS=$LIBS
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19470 for ac_lib in '' dl; do
19471 if test -z "$ac_lib"; then
19472 ac_res="none required"
19475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest$ac_exeext &&
19494 $as_test_x conftest$ac_exeext; then
19495 ac_cv_search_dlsym=$ac_res
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505 if test "${ac_cv_search_dlsym+set}" = set; then
19509 if test "${ac_cv_search_dlsym+set}" = set; then
19512 ac_cv_search_dlsym=no
19514 rm conftest.$ac_ext
19515 LIBS=$ac_func_search_save_LIBS
19517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19518 echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
19519 ac_res=$ac_cv_search_dlsym
19520 if test "$ac_res" != no; then
19521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19525 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19526 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19527 if test "${ac_cv_search_clock_gettime+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 ac_func_search_save_LIBS=$LIBS
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19544 char clock_gettime ();
19548 return clock_gettime ();
19553 for ac_lib in '' rt; do
19554 if test -z "$ac_lib"; then
19555 ac_res="none required"
19558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (ac_try="$ac_link"
19562 case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_link") 2>conftest.er1
19569 grep -v '^ *+' conftest.er1 >conftest.err
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } && {
19574 test -z "$ac_c_werror_flag" ||
19575 test ! -s conftest.err
19576 } && test -s conftest$ac_exeext &&
19577 $as_test_x conftest$ac_exeext; then
19578 ac_cv_search_clock_gettime=$ac_res
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 if test "${ac_cv_search_clock_gettime+set}" = set; then
19592 if test "${ac_cv_search_clock_gettime+set}" = set; then
19595 ac_cv_search_clock_gettime=no
19597 rm conftest.$ac_ext
19598 LIBS=$ac_func_search_save_LIBS
19600 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19601 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19602 ac_res=$ac_cv_search_clock_gettime
19603 if test "$ac_res" != no; then
19604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19609 # Checks for header files.
19610 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19612 if test "${ac_cv_header_stdc+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <stdlib.h>
19622 #include <stdarg.h>
19623 #include <string.h>
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_compile") 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest.$ac_objext; then
19651 ac_cv_header_stdc=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_header_stdc=no
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 if test $ac_cv_header_stdc = yes; then
19662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <string.h>
19672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19673 $EGREP "memchr" >/dev/null 2>&1; then
19676 ac_cv_header_stdc=no
19682 if test $ac_cv_header_stdc = yes; then
19683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19684 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <stdlib.h>
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "free" >/dev/null 2>&1; then
19697 ac_cv_header_stdc=no
19703 if test $ac_cv_header_stdc = yes; then
19704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19705 if test "$cross_compiling" = yes; then
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19715 #include <stdlib.h>
19716 #if ((' ' & 0x0FF) == 0x020)
19717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19720 # define ISLOWER(c) \
19721 (('a' <= (c) && (c) <= 'i') \
19722 || ('j' <= (c) && (c) <= 'r') \
19723 || ('s' <= (c) && (c) <= 'z'))
19724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19732 for (i = 0; i < 256; i++)
19733 if (XOR (islower (i), ISLOWER (i))
19734 || toupper (i) != TOUPPER (i))
19739 rm -f conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_link") 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19750 { (case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_try") 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19761 echo "$as_me: program exited with status $ac_status" >&5
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ( exit $ac_status )
19766 ac_cv_header_stdc=no
19768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19775 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19776 if test $ac_cv_header_stdc = yes; then
19778 cat >>confdefs.h <<\_ACEOF
19779 #define STDC_HEADERS 1
19784 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19785 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19786 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 #include <sys/types.h>
19796 #include <sys/wait.h>
19797 #ifndef WEXITSTATUS
19798 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19801 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19809 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19814 rm -f conftest.$ac_objext
19815 if { (ac_try="$ac_compile"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_compile") 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest.$ac_objext; then
19831 ac_cv_header_sys_wait_h=yes
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 ac_cv_header_sys_wait_h=no
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19842 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19843 if test $ac_cv_header_sys_wait_h = yes; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_SYS_WAIT_H 1
19856 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h
19858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 ac_res=`eval echo '${'$as_ac_Header'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19869 # Is the header compilable?
19870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 $ac_includes_default
19879 #include <$ac_header>
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_compile") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest.$ac_objext; then
19898 ac_header_compiler=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_header_compiler=no
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908 echo "${ECHO_T}$ac_header_compiler" >&6; }
19910 # Is the header present?
19911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 #include <$ac_header>
19921 if { (ac_try="$ac_cpp conftest.$ac_ext"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } >/dev/null && {
19934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19937 ac_header_preproc=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_header_preproc=no
19945 rm -f conftest.err conftest.$ac_ext
19946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19947 echo "${ECHO_T}$ac_header_preproc" >&6; }
19949 # So? What about this header?
19950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19956 ac_header_preproc=yes
19959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19972 ## ----------------------------------------------- ##
19973 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
19974 ## ----------------------------------------------- ##
19976 ) | sed "s/^/$as_me: WARNING: /" >&2
19979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 eval "$as_ac_Header=\$ac_header_preproc"
19986 ac_res=`eval echo '${'$as_ac_Header'}'`
19987 { echo "$as_me:$LINENO: result: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992 cat >>confdefs.h <<_ACEOF
19993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20001 # Checks for typedefs, structures, and compiler characteristics.
20002 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20004 if test "${ac_cv_c_const+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20017 /* FIXME: Include the comments suggested by Paul. */
20018 #ifndef __cplusplus
20019 /* Ultrix mips cc rejects this. */
20020 typedef int charset[2];
20022 /* SunOS 4.1.1 cc rejects this. */
20023 char const *const *pcpcc;
20025 /* NEC SVR4.0.2 mips cc rejects this. */
20026 struct point {int x, y;};
20027 static struct point const zero = {0,0};
20028 /* AIX XL C 1.02.0.0 rejects this.
20029 It does not let you subtract one const X* pointer from another in
20030 an arm of an if-expression whose if-part is not a constant
20032 const char *g = "string";
20033 pcpcc = &g + (g ? g-g : 0);
20034 /* HPUX 7.0 cc rejects these. */
20036 ppc = (char**) pcpcc;
20037 pcpcc = (char const *const *) ppc;
20038 { /* SCO 3.2v4 cc rejects this. */
20040 char const *s = 0 ? (char *) 0 : (char const *) 0;
20045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20046 int x[] = {25, 17};
20047 const int *foo = &x[0];
20050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20051 typedef const int *iptr;
20055 { /* AIX XL C 1.02.0.0 rejects this saying
20056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20057 struct s { int j; const int *ap[3]; };
20058 struct s *b; b->j = 5;
20060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20061 const int foo = 10;
20062 if (!foo) return 0;
20064 return !cs[0] && !zero.x;
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_compile") 2>conftest.er1
20080 grep -v '^ *+' conftest.er1 >conftest.err
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest.$ac_objext; then
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20099 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20100 if test $ac_cv_c_const = no; then
20102 cat >>confdefs.h <<\_ACEOF
20108 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20109 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20110 if test "${ac_cv_type_uid_t+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 #include <sys/types.h>
20122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20123 $EGREP "uid_t" >/dev/null 2>&1; then
20124 ac_cv_type_uid_t=yes
20126 ac_cv_type_uid_t=no
20131 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20132 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20133 if test $ac_cv_type_uid_t = no; then
20135 cat >>confdefs.h <<\_ACEOF
20140 cat >>confdefs.h <<\_ACEOF
20146 { echo "$as_me:$LINENO: checking for pid_t" >&5
20147 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20148 if test "${ac_cv_type_pid_t+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 $ac_includes_default
20158 typedef pid_t ac__type_new_;
20162 if ((ac__type_new_ *) 0)
20164 if (sizeof (ac__type_new_))
20170 rm -f conftest.$ac_objext
20171 if { (ac_try="$ac_compile"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_compile") 2>conftest.er1
20179 grep -v '^ *+' conftest.er1 >conftest.err
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } && {
20184 test -z "$ac_c_werror_flag" ||
20185 test ! -s conftest.err
20186 } && test -s conftest.$ac_objext; then
20187 ac_cv_type_pid_t=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_cv_type_pid_t=no
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20198 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20199 if test $ac_cv_type_pid_t = yes; then
20203 cat >>confdefs.h <<_ACEOF
20209 { echo "$as_me:$LINENO: checking for size_t" >&5
20210 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20211 if test "${ac_cv_type_size_t+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 $ac_includes_default
20221 typedef size_t ac__type_new_;
20225 if ((ac__type_new_ *) 0)
20227 if (sizeof (ac__type_new_))
20233 rm -f conftest.$ac_objext
20234 if { (ac_try="$ac_compile"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_compile") 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && {
20247 test -z "$ac_c_werror_flag" ||
20248 test ! -s conftest.err
20249 } && test -s conftest.$ac_objext; then
20250 ac_cv_type_size_t=yes
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_cv_type_size_t=no
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20261 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20262 if test $ac_cv_type_size_t = yes; then
20266 cat >>confdefs.h <<_ACEOF
20267 #define size_t unsigned int
20272 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20273 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
20274 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 $ac_includes_default
20287 static struct stat ac_aggr;
20288 if (ac_aggr.st_rdev)
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_compile") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest.$ac_objext; then
20311 ac_cv_member_struct_stat_st_rdev=yes
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 cat >conftest.$ac_ext <<_ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 $ac_includes_default
20326 static struct stat ac_aggr;
20327 if (sizeof ac_aggr.st_rdev)
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_compile") 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
20350 ac_cv_member_struct_stat_st_rdev=yes
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ac_cv_member_struct_stat_st_rdev=no
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20365 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20367 cat >>confdefs.h <<_ACEOF
20368 #define HAVE_STRUCT_STAT_ST_RDEV 1
20375 { echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20376 echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6; }
20377 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 #include <sys/types.h>
20388 #include <sys/ipc.h>
20394 static struct ipc_perm ac_aggr;
20401 rm -f conftest.$ac_objext
20402 if { (ac_try="$ac_compile"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_compile") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest.$ac_objext; then
20418 ac_cv_member_struct_ipc_perm___key=yes
20420 echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 #include <sys/types.h>
20431 #include <sys/ipc.h>
20437 static struct ipc_perm ac_aggr;
20438 if (sizeof ac_aggr.__key)
20444 rm -f conftest.$ac_objext
20445 if { (ac_try="$ac_compile"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_compile") 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest.$ac_objext; then
20461 ac_cv_member_struct_ipc_perm___key=yes
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_cv_member_struct_ipc_perm___key=no
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20475 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6; }
20476 if test $ac_cv_member_struct_ipc_perm___key = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_IPC_PERM___KEY
20485 { echo "$as_me:$LINENO: checking for struct ipc_perm._key" >&5
20486 echo $ECHO_N "checking for struct ipc_perm._key... $ECHO_C" >&6; }
20487 if test "${ac_cv_member_struct_ipc_perm__key+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20497 #include <sys/types.h>
20498 #include <sys/ipc.h>
20504 static struct ipc_perm ac_aggr;
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_compile") 2>conftest.er1
20520 grep -v '^ *+' conftest.er1 >conftest.err
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } && {
20525 test -z "$ac_c_werror_flag" ||
20526 test ! -s conftest.err
20527 } && test -s conftest.$ac_objext; then
20528 ac_cv_member_struct_ipc_perm__key=yes
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 #include <sys/types.h>
20541 #include <sys/ipc.h>
20547 static struct ipc_perm ac_aggr;
20548 if (sizeof ac_aggr._key)
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_compile") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest.$ac_objext; then
20571 ac_cv_member_struct_ipc_perm__key=yes
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ac_cv_member_struct_ipc_perm__key=no
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__key" >&5
20585 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm__key" >&6; }
20586 if test $ac_cv_member_struct_ipc_perm__key = yes; then
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_IPC_PERM__KEY
20595 { echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20596 echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6; }
20597 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 #include <sys/types.h>
20608 #include <sys/ipc.h>
20614 static struct ipc_perm ac_aggr;
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_compile") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && {
20635 test -z "$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 } && test -s conftest.$ac_objext; then
20638 ac_cv_member_struct_ipc_perm___seq=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20650 #include <sys/types.h>
20651 #include <sys/ipc.h>
20657 static struct ipc_perm ac_aggr;
20658 if (sizeof ac_aggr.__seq)
20664 rm -f conftest.$ac_objext
20665 if { (ac_try="$ac_compile"
20666 case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_compile") 2>conftest.er1
20673 grep -v '^ *+' conftest.er1 >conftest.err
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && {
20678 test -z "$ac_c_werror_flag" ||
20679 test ! -s conftest.err
20680 } && test -s conftest.$ac_objext; then
20681 ac_cv_member_struct_ipc_perm___seq=yes
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_member_struct_ipc_perm___seq=no
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20695 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6; }
20696 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_IPC_PERM___SEQ
20705 { echo "$as_me:$LINENO: checking for struct ipc_perm._seq" >&5
20706 echo $ECHO_N "checking for struct ipc_perm._seq... $ECHO_C" >&6; }
20707 if test "${ac_cv_member_struct_ipc_perm__seq+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20717 #include <sys/types.h>
20718 #include <sys/ipc.h>
20724 static struct ipc_perm ac_aggr;
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest.$ac_objext; then
20748 ac_cv_member_struct_ipc_perm__seq=yes
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20760 #include <sys/types.h>
20761 #include <sys/ipc.h>
20767 static struct ipc_perm ac_aggr;
20768 if (sizeof ac_aggr._seq)
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest.$ac_objext; then
20791 ac_cv_member_struct_ipc_perm__seq=yes
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_member_struct_ipc_perm__seq=no
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20804 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__seq" >&5
20805 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm__seq" >&6; }
20806 if test $ac_cv_member_struct_ipc_perm__seq = yes; then
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_IPC_PERM__SEQ
20815 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20816 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20817 if test "${ac_cv_header_time+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 #include <sys/types.h>
20827 #include <sys/time.h>
20833 if ((struct tm *) 0)
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20848 grep -v '^ *+' conftest.er1 >conftest.err
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.$ac_objext; then
20856 ac_cv_header_time=yes
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_cv_header_time=no
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20867 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20868 if test $ac_cv_header_time = yes; then
20870 cat >>confdefs.h <<\_ACEOF
20871 #define TIME_WITH_SYS_TIME 1
20876 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20878 if test "${ac_cv_struct_tm+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 #include <sys/types.h>
20894 int *p = &tm.tm_sec;
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_compile") 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && {
20914 test -z "$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 } && test -s conftest.$ac_objext; then
20917 ac_cv_struct_tm=time.h
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_cv_struct_tm=sys/time.h
20925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20927 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20928 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20929 if test $ac_cv_struct_tm = sys/time.h; then
20931 cat >>confdefs.h <<\_ACEOF
20932 #define TM_IN_SYS_TIME 1
20938 # Checks for library functions.
20940 for ac_header in unistd.h
20942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 ac_res=`eval echo '${'$as_ac_Header'}'`
20950 { echo "$as_me:$LINENO: result: $ac_res" >&5
20951 echo "${ECHO_T}$ac_res" >&6; }
20953 # Is the header compilable?
20954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 $ac_includes_default
20963 #include <$ac_header>
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_compile") 2>conftest.er1
20974 grep -v '^ *+' conftest.er1 >conftest.err
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && {
20979 test -z "$ac_c_werror_flag" ||
20980 test ! -s conftest.err
20981 } && test -s conftest.$ac_objext; then
20982 ac_header_compiler=yes
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20987 ac_header_compiler=no
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20992 echo "${ECHO_T}$ac_header_compiler" >&6; }
20994 # Is the header present?
20995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 #include <$ac_header>
21005 if { (ac_try="$ac_cpp conftest.$ac_ext"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } >/dev/null && {
21018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21021 ac_header_preproc=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_header_preproc=no
21029 rm -f conftest.err conftest.$ac_ext
21030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21031 echo "${ECHO_T}$ac_header_preproc" >&6; }
21033 # So? What about this header?
21034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21040 ac_header_preproc=yes
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21056 ## ----------------------------------------------- ##
21057 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21058 ## ----------------------------------------------- ##
21060 ) | sed "s/^/$as_me: WARNING: /" >&2
21063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 eval "$as_ac_Header=\$ac_header_preproc"
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076 cat >>confdefs.h <<_ACEOF
21077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21084 { echo "$as_me:$LINENO: checking for working chown" >&5
21085 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
21086 if test "${ac_cv_func_chown_works+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 if test "$cross_compiling" = yes; then
21090 ac_cv_func_chown_works=no
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
21104 char *f = "conftest.chown";
21105 struct stat before, after;
21107 if (creat (f, 0600) < 0)
21109 if (stat (f, &before) < 0)
21111 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21113 if (stat (f, &after) < 0)
21115 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_link") 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_cv_func_chown_works=yes
21143 echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ( exit $ac_status )
21148 ac_cv_func_chown_works=no
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21154 rm -f conftest.chown
21157 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21158 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
21159 if test $ac_cv_func_chown_works = yes; then
21161 cat >>confdefs.h <<\_ACEOF
21162 #define HAVE_CHOWN 1
21168 for ac_header in vfork.h
21170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 ac_res=`eval echo '${'$as_ac_Header'}'`
21178 { echo "$as_me:$LINENO: result: $ac_res" >&5
21179 echo "${ECHO_T}$ac_res" >&6; }
21181 # Is the header compilable?
21182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 $ac_includes_default
21191 #include <$ac_header>
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_compile") 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } && {
21207 test -z "$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 } && test -s conftest.$ac_objext; then
21210 ac_header_compiler=yes
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_header_compiler=no
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21220 echo "${ECHO_T}$ac_header_compiler" >&6; }
21222 # Is the header present?
21223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21225 cat >conftest.$ac_ext <<_ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 #include <$ac_header>
21233 if { (ac_try="$ac_cpp conftest.$ac_ext"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } >/dev/null && {
21246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21249 ac_header_preproc=yes
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_header_preproc=no
21257 rm -f conftest.err conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21259 echo "${ECHO_T}$ac_header_preproc" >&6; }
21261 # So? What about this header?
21262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21268 ac_header_preproc=yes
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21284 ## ----------------------------------------------- ##
21285 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21286 ## ----------------------------------------------- ##
21288 ) | sed "s/^/$as_me: WARNING: /" >&2
21291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21296 eval "$as_ac_Header=\$ac_header_preproc"
21298 ac_res=`eval echo '${'$as_ac_Header'}'`
21299 { echo "$as_me:$LINENO: result: $ac_res" >&5
21300 echo "${ECHO_T}$ac_res" >&6; }
21303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21304 cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21314 for ac_func in fork vfork
21316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21330 #define $ac_func innocuous_$ac_func
21332 /* System header to define __stub macros and hopefully few prototypes,
21333 which can conflict with char $ac_func (); below.
21334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21335 <limits.h> exists even on freestanding compilers. */
21338 # include <limits.h>
21340 # include <assert.h>
21345 /* Override any GCC internal prototype to avoid an error.
21346 Use char because int might match the return type of a GCC
21347 builtin and then its argument prototype would still apply. */
21352 /* The GNU C library defines this for functions which it implements
21353 to always fail with ENOSYS. Some functions are actually named
21354 something starting with __ and the normal name is an alias. */
21355 #if defined __stub_$ac_func || defined __stub___$ac_func
21362 return $ac_func ();
21367 rm -f conftest.$ac_objext conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_link") 2>conftest.er1
21376 grep -v '^ *+' conftest.er1 >conftest.err
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } && {
21381 test -z "$ac_c_werror_flag" ||
21382 test ! -s conftest.err
21383 } && test -s conftest$ac_exeext &&
21384 $as_test_x conftest$ac_exeext; then
21385 eval "$as_ac_var=yes"
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21390 eval "$as_ac_var=no"
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394 conftest$ac_exeext conftest.$ac_ext
21396 ac_res=`eval echo '${'$as_ac_var'}'`
21397 { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_var'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21407 if test "x$ac_cv_func_fork" = xyes; then
21408 { echo "$as_me:$LINENO: checking for working fork" >&5
21409 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21410 if test "${ac_cv_func_fork_works+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 if test "$cross_compiling" = yes; then
21414 ac_cv_func_fork_works=cross
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21427 /* By Ruediger Kuhlmann. */
21428 return fork () < 0;
21434 rm -f conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_link") 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445 { (case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_try") 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_func_fork_works=yes
21456 echo "$as_me: program exited with status $ac_status" >&5
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 ( exit $ac_status )
21461 ac_cv_func_fork_works=no
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21468 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21469 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21472 ac_cv_func_fork_works=$ac_cv_func_fork
21474 if test "x$ac_cv_func_fork_works" = xcross; then
21476 *-*-amigaos* | *-*-msdosdjgpp*)
21477 # Override, as these systems have only a dummy fork() stub
21478 ac_cv_func_fork_works=no
21481 ac_cv_func_fork_works=yes
21484 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21485 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21487 ac_cv_func_vfork_works=$ac_cv_func_vfork
21488 if test "x$ac_cv_func_vfork" = xyes; then
21489 { echo "$as_me:$LINENO: checking for working vfork" >&5
21490 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21491 if test "${ac_cv_func_vfork_works+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 if test "$cross_compiling" = yes; then
21495 ac_cv_func_vfork_works=cross
21497 cat >conftest.$ac_ext <<_ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21503 /* Thanks to Paul Eggert for this test. */
21504 $ac_includes_default
21505 #include <sys/wait.h>
21506 #ifdef HAVE_VFORK_H
21507 # include <vfork.h>
21509 /* On some sparc systems, changes by the child to local and incoming
21510 argument registers are propagated back to the parent. The compiler
21511 is told about this with #include <vfork.h>, but some compilers
21512 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21513 static variable whose address is put into a register that is
21514 clobbered by the vfork. */
21517 sparc_address_test (int arg)
21519 sparc_address_test (arg) int arg;
21522 static pid_t child;
21540 pid_t parent = getpid ();
21543 sparc_address_test (0);
21548 /* Here is another test for sparc vfork register problems. This
21549 test uses lots of local variables, at least as many local
21550 variables as main has allocated so far including compiler
21551 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21552 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21553 reuse the register of parent for one of the local variables,
21554 since it will think that parent can't possibly be used any more
21555 in this routine. Assigning to the local variable will thus
21556 munge parent in the parent process. */
21558 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21559 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21560 /* Convince the compiler that p..p7 are live; otherwise, it might
21561 use the same hardware register for all 8 local variables. */
21562 if (p != p1 || p != p2 || p != p3 || p != p4
21563 || p != p5 || p != p6 || p != p7)
21566 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21567 from child file descriptors. If the child closes a descriptor
21568 before it execs or exits, this munges the parent's descriptor
21569 as well. Test for this by closing stdout in the child. */
21570 _exit(close(fileno(stdout)) != 0);
21575 while (wait(&status) != child)
21578 /* Was there some problem with vforking? */
21581 /* Did the child fail? (This shouldn't happen.) */
21584 /* Did the vfork/compiler bug occur? */
21585 || parent != getpid()
21587 /* Did the file descriptor bug occur? */
21588 || fstat(fileno(stdout), &st) != 0
21593 rm -f conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_link") 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21604 { (case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_try") 2>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_cv_func_vfork_works=yes
21615 echo "$as_me: program exited with status $ac_status" >&5
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ( exit $ac_status )
21620 ac_cv_func_vfork_works=no
21622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21627 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21628 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21631 if test "x$ac_cv_func_fork_works" = xcross; then
21632 ac_cv_func_vfork_works=$ac_cv_func_vfork
21633 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21634 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21637 if test "x$ac_cv_func_vfork_works" = xyes; then
21639 cat >>confdefs.h <<\_ACEOF
21640 #define HAVE_WORKING_VFORK 1
21645 cat >>confdefs.h <<\_ACEOF
21650 if test "x$ac_cv_func_fork_works" = xyes; then
21652 cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_WORKING_FORK 1
21659 for ac_header in stdlib.h
21661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 ac_res=`eval echo '${'$as_ac_Header'}'`
21669 { echo "$as_me:$LINENO: result: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21672 # Is the header compilable?
21673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 #include <$ac_header>
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_compile") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest.$ac_objext; then
21701 ac_header_compiler=yes
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_header_compiler=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <$ac_header>
21724 if { (ac_try="$ac_cpp conftest.$ac_ext"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } >/dev/null && {
21737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21740 ac_header_preproc=yes
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_preproc=no
21748 rm -f conftest.err conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6; }
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc=yes
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21775 ## ----------------------------------------------- ##
21776 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21777 ## ----------------------------------------------- ##
21779 ) | sed "s/^/$as_me: WARNING: /" >&2
21782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 eval "$as_ac_Header=\$ac_header_preproc"
21789 ac_res=`eval echo '${'$as_ac_Header'}'`
21790 { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21795 cat >>confdefs.h <<_ACEOF
21796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21803 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21804 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21805 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 if test "$cross_compiling" = yes; then
21809 ac_cv_func_malloc_0_nonnull=no
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21818 # include <stdlib.h>
21826 return ! malloc (0);
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842 { (case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_try") 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_func_malloc_0_nonnull=yes
21853 echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ( exit $ac_status )
21858 ac_cv_func_malloc_0_nonnull=no
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21865 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21866 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21867 if test $ac_cv_func_malloc_0_nonnull = yes; then
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_MALLOC 1
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_MALLOC 0
21878 case " $LIBOBJS " in
21879 *" malloc.$ac_objext "* ) ;;
21880 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21885 cat >>confdefs.h <<\_ACEOF
21886 #define malloc rpl_malloc
21897 for ac_header in $ac_header_list
21899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 ac_res=`eval echo '${'$as_ac_Header'}'`
21907 { echo "$as_me:$LINENO: result: $ac_res" >&5
21908 echo "${ECHO_T}$ac_res" >&6; }
21910 # Is the header compilable?
21911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 $ac_includes_default
21920 #include <$ac_header>
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_compile") 2>conftest.er1
21931 grep -v '^ *+' conftest.er1 >conftest.err
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest.$ac_objext; then
21939 ac_header_compiler=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_header_compiler=no
21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21949 echo "${ECHO_T}$ac_header_compiler" >&6; }
21951 # Is the header present?
21952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 #include <$ac_header>
21962 if { (ac_try="$ac_cpp conftest.$ac_ext"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } >/dev/null && {
21975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21978 ac_header_preproc=yes
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 ac_header_preproc=no
21986 rm -f conftest.err conftest.$ac_ext
21987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988 echo "${ECHO_T}$ac_header_preproc" >&6; }
21990 # So? What about this header?
21991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997 ac_header_preproc=yes
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22013 ## ----------------------------------------------- ##
22014 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22015 ## ----------------------------------------------- ##
22017 ) | sed "s/^/$as_me: WARNING: /" >&2
22020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 eval "$as_ac_Header=\$ac_header_preproc"
22027 ac_res=`eval echo '${'$as_ac_Header'}'`
22028 { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22033 cat >>confdefs.h <<_ACEOF
22034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22049 for ac_func in $ac_func_list
22051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22055 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22065 #define $ac_func innocuous_$ac_func
22067 /* System header to define __stub macros and hopefully few prototypes,
22068 which can conflict with char $ac_func (); below.
22069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22070 <limits.h> exists even on freestanding compilers. */
22073 # include <limits.h>
22075 # include <assert.h>
22080 /* Override any GCC internal prototype to avoid an error.
22081 Use char because int might match the return type of a GCC
22082 builtin and then its argument prototype would still apply. */
22087 /* The GNU C library defines this for functions which it implements
22088 to always fail with ENOSYS. Some functions are actually named
22089 something starting with __ and the normal name is an alias. */
22090 #if defined __stub_$ac_func || defined __stub___$ac_func
22097 return $ac_func ();
22102 rm -f conftest.$ac_objext conftest$ac_exeext
22103 if { (ac_try="$ac_link"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_link") 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } && {
22116 test -z "$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 } && test -s conftest$ac_exeext &&
22119 $as_test_x conftest$ac_exeext; then
22120 eval "$as_ac_var=yes"
22122 echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22125 eval "$as_ac_var=no"
22128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22129 conftest$ac_exeext conftest.$ac_ext
22131 ac_res=`eval echo '${'$as_ac_var'}'`
22132 { echo "$as_me:$LINENO: result: $ac_res" >&5
22133 echo "${ECHO_T}$ac_res" >&6; }
22134 if test `eval echo '${'$as_ac_var'}'` = yes; then
22135 cat >>confdefs.h <<_ACEOF
22136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22158 { echo "$as_me:$LINENO: checking for working mktime" >&5
22159 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
22160 if test "${ac_cv_func_working_mktime+set}" = set; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 if test "$cross_compiling" = yes; then
22164 ac_cv_func_working_mktime=no
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 /* Test program from Paul Eggert and Tony Leneis. */
22173 #ifdef TIME_WITH_SYS_TIME
22174 # include <sys/time.h>
22177 # ifdef HAVE_SYS_TIME_H
22178 # include <sys/time.h>
22184 #include <stdlib.h>
22186 #ifdef HAVE_UNISTD_H
22187 # include <unistd.h>
22191 # define alarm(X) /* empty */
22194 /* Work around redefinition to rpl_putenv by other config tests. */
22197 static time_t time_t_max;
22198 static time_t time_t_min;
22200 /* Values we'll use to set the TZ environment variable. */
22201 static char *tz_strings[] = {
22202 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22203 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22205 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22207 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22208 Based on a problem report from Andreas Jaeger. */
22210 spring_forward_gap ()
22212 /* glibc (up to about 1998-10-07) failed this test. */
22215 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22216 instead of "TZ=America/Vancouver" in order to detect the bug even
22217 on systems that don't support the Olson extension, or don't have the
22218 full zoneinfo tables installed. */
22219 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22228 return mktime (&tm) != (time_t) -1;
22236 return ! (lt = localtime (&now)) || mktime (lt) == now;
22243 return (mktime_test1 (now)
22244 && mktime_test1 ((time_t) (time_t_max - now))
22245 && mktime_test1 ((time_t) (time_t_min + now)));
22251 /* Based on code from Ariel Faigon. */
22261 return tm.tm_mon == 2 && tm.tm_mday == 31;
22270 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22271 now = mktime (&tm);
22272 if (now != (time_t) -1)
22274 struct tm *lt = localtime (&now);
22276 && lt->tm_year == tm.tm_year
22277 && lt->tm_mon == tm.tm_mon
22278 && lt->tm_mday == tm.tm_mday
22279 && lt->tm_hour == tm.tm_hour
22280 && lt->tm_min == tm.tm_min
22281 && lt->tm_sec == tm.tm_sec
22282 && lt->tm_yday == tm.tm_yday
22283 && lt->tm_wday == tm.tm_wday
22284 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22285 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22294 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22295 ignoring leap seconds. */
22296 unsigned long int answer = 2527315200UL;
22300 tm.tm_year = 2050 - 1900;
22303 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22306 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22307 instead of "TZ=America/Vancouver" in order to detect the bug even
22308 on systems that don't support the Olson extension, or don't have the
22309 full zoneinfo tables installed. */
22310 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22314 /* Check that the result is either a failure, or close enough
22315 to the correct answer that we can assume the discrepancy is
22316 due to leap seconds. */
22317 return (t == (time_t) -1
22318 || (0 < t && answer - 120 <= t && t <= answer + 120));
22327 /* This test makes some buggy mktime implementations loop.
22328 Give up after 60 seconds; a mktime slower than that
22329 isn't worth using anyway. */
22332 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22335 if ((time_t) -1 < 0)
22336 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22338 delta = time_t_max / 997; /* a suitable prime number */
22339 for (i = 0; i < N_STRINGS; i++)
22342 putenv (tz_strings[i]);
22344 for (t = 0; t <= time_t_max - delta; t += delta)
22345 if (! mktime_test (t))
22347 if (! (mktime_test ((time_t) 1)
22348 && mktime_test ((time_t) (60 * 60))
22349 && mktime_test ((time_t) (60 * 60 * 24))))
22352 for (j = 1; 0 < j; j *= 2)
22353 if (! bigtime_test (j))
22355 if (! bigtime_test (j - 1))
22358 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
22361 rm -f conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22372 { (case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_try") 2>&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; }; then
22381 ac_cv_func_working_mktime=yes
22383 echo "$as_me: program exited with status $ac_status" >&5
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ( exit $ac_status )
22388 ac_cv_func_working_mktime=no
22390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22395 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22396 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22397 if test $ac_cv_func_working_mktime = no; then
22398 case " $LIBOBJS " in
22399 *" mktime.$ac_objext "* ) ;;
22400 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22406 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22407 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22408 if test "${ac_cv_type_signal+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 #include <sys/types.h>
22418 #include <signal.h>
22423 return *(signal (0, 0)) (0) == 1;
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 ac_cv_type_signal=int
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_cv_type_signal=void
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22456 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22458 cat >>confdefs.h <<_ACEOF
22459 #define RETSIGTYPE $ac_cv_type_signal
22463 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22464 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22465 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 rm -f conftest.sym conftest.file
22469 echo >conftest.file
22470 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22471 if test "$cross_compiling" = yes; then
22472 ac_cv_func_lstat_dereferences_slashed_symlink=no
22474 cat >conftest.$ac_ext <<_ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 $ac_includes_default
22485 /* Linux will dereference the symlink and fail.
22486 That is better in the sense that it means we will not
22487 have to compile and use the lstat wrapper. */
22488 return lstat ("conftest.sym/", &sbuf) == 0;
22493 rm -f conftest$ac_exeext
22494 if { (ac_try="$ac_link"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_link") 2>&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22504 { (case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509 (eval "$ac_try") 2>&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); }; }; then
22513 ac_cv_func_lstat_dereferences_slashed_symlink=yes
22515 echo "$as_me: program exited with status $ac_status" >&5
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ( exit $ac_status )
22520 ac_cv_func_lstat_dereferences_slashed_symlink=no
22522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22527 # If the `ln -s' command failed, then we probably don't even
22528 # have an lstat function.
22529 ac_cv_func_lstat_dereferences_slashed_symlink=no
22531 rm -f conftest.sym conftest.file
22534 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22535 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22537 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22539 cat >>confdefs.h <<_ACEOF
22540 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22544 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22545 case " $LIBOBJS " in
22546 *" lstat.$ac_objext "* ) ;;
22547 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22553 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22554 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22555 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 if test "$cross_compiling" = yes; then
22559 ac_cv_func_stat_empty_string_bug=yes
22561 cat >conftest.$ac_ext <<_ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 $ac_includes_default
22572 return stat ("", &sbuf) == 0;
22577 rm -f conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22588 { (case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_try") 2>&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); }; }; then
22597 ac_cv_func_stat_empty_string_bug=no
22599 echo "$as_me: program exited with status $ac_status" >&5
22600 echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22603 ( exit $ac_status )
22604 ac_cv_func_stat_empty_string_bug=yes
22606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22611 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22612 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22613 if test $ac_cv_func_stat_empty_string_bug = yes; then
22614 case " $LIBOBJS " in
22615 *" stat.$ac_objext "* ) ;;
22616 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22621 cat >>confdefs.h <<_ACEOF
22622 #define HAVE_STAT_EMPTY_STRING_BUG 1
22628 for ac_func in strftime
22630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 cat >conftest.$ac_ext <<_ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22644 #define $ac_func innocuous_$ac_func
22646 /* System header to define __stub macros and hopefully few prototypes,
22647 which can conflict with char $ac_func (); below.
22648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22649 <limits.h> exists even on freestanding compilers. */
22652 # include <limits.h>
22654 # include <assert.h>
22659 /* Override any GCC internal prototype to avoid an error.
22660 Use char because int might match the return type of a GCC
22661 builtin and then its argument prototype would still apply. */
22666 /* The GNU C library defines this for functions which it implements
22667 to always fail with ENOSYS. Some functions are actually named
22668 something starting with __ and the normal name is an alias. */
22669 #if defined __stub_$ac_func || defined __stub___$ac_func
22676 return $ac_func ();
22681 rm -f conftest.$ac_objext conftest$ac_exeext
22682 if { (ac_try="$ac_link"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_link") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest$ac_exeext &&
22698 $as_test_x conftest$ac_exeext; then
22699 eval "$as_ac_var=yes"
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 eval "$as_ac_var=no"
22707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708 conftest$ac_exeext conftest.$ac_ext
22710 ac_res=`eval echo '${'$as_ac_var'}'`
22711 { echo "$as_me:$LINENO: result: $ac_res" >&5
22712 echo "${ECHO_T}$ac_res" >&6; }
22713 if test `eval echo '${'$as_ac_var'}'` = yes; then
22714 cat >>confdefs.h <<_ACEOF
22715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22719 # strftime is in -lintl on SCO UNIX.
22720 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22721 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22722 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 ac_check_lib_save_LIBS=$LIBS
22726 LIBS="-lintl $LIBS"
22727 cat >conftest.$ac_ext <<_ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22734 /* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22744 return strftime ();
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (ac_try="$ac_link"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_link") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest$ac_exeext &&
22766 $as_test_x conftest$ac_exeext; then
22767 ac_cv_lib_intl_strftime=yes
22769 echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22772 ac_cv_lib_intl_strftime=no
22775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22776 conftest$ac_exeext conftest.$ac_ext
22777 LIBS=$ac_check_lib_save_LIBS
22779 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22780 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22781 if test $ac_cv_lib_intl_strftime = yes; then
22782 cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_STRFTIME 1
22786 LIBS="-lintl $LIBS"
22807 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strlcpy strrchr strstr strtol strtoul pthread_mutex_lock
22809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22823 #define $ac_func innocuous_$ac_func
22825 /* System header to define __stub macros and hopefully few prototypes,
22826 which can conflict with char $ac_func (); below.
22827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22828 <limits.h> exists even on freestanding compilers. */
22831 # include <limits.h>
22833 # include <assert.h>
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22845 /* The GNU C library defines this for functions which it implements
22846 to always fail with ENOSYS. Some functions are actually named
22847 something starting with __ and the normal name is an alias. */
22848 #if defined __stub_$ac_func || defined __stub___$ac_func
22855 return $ac_func ();
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867 (eval "$ac_link") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest$ac_exeext &&
22877 $as_test_x conftest$ac_exeext; then
22878 eval "$as_ac_var=yes"
22880 echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22883 eval "$as_ac_var=no"
22886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22887 conftest$ac_exeext conftest.$ac_ext
22889 ac_res=`eval echo '${'$as_ac_var'}'`
22890 { echo "$as_me:$LINENO: result: $ac_res" >&5
22891 echo "${ECHO_T}$ac_res" >&6; }
22892 if test `eval echo '${'$as_ac_var'}'` = yes; then
22893 cat >>confdefs.h <<_ACEOF
22894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22901 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
22902 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22903 # all of them, and are necessary for OpenBSM.
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22911 #include <sys/queue.h>
22919 #error LIST_FIRST missing
22921 #ifndef TAILQ_FOREACH_SAFE
22922 #error TAILQ_FOREACH_SAFE
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_link") 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } && {
22943 test -z "$ac_c_werror_flag" ||
22944 test ! -s conftest.err
22945 } && test -s conftest$ac_exeext &&
22946 $as_test_x conftest$ac_exeext; then
22949 cat >>confdefs.h <<\_ACEOF
22950 #define HAVE_FULL_QUEUE_H
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962 conftest$ac_exeext conftest.$ac_ext
22964 # Systems may not define key audit system calls, in which case libbsm cannot
22965 # depend on them or it will generate link-time or run-time errors. Test for
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22974 #include <stddef.h>
22976 extern int auditon(int, void *, int);
22984 err = auditon(0, NULL, 0);
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997 (eval "$ac_link") 2>conftest.er1
22999 grep -v '^ *+' conftest.er1 >conftest.err
23001 cat conftest.err >&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } && {
23004 test -z "$ac_c_werror_flag" ||
23005 test ! -s conftest.err
23006 } && test -s conftest$ac_exeext &&
23007 $as_test_x conftest$ac_exeext; then
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_AUDIT_SYSCALLS
23014 have_audit_syscalls=true
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23021 have_audit_syscalls=false
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23027 if $have_audit_syscalls; then
23028 HAVE_AUDIT_SYSCALLS_TRUE=
23029 HAVE_AUDIT_SYSCALLS_FALSE='#'
23031 HAVE_AUDIT_SYSCALLS_TRUE='#'
23032 HAVE_AUDIT_SYSCALLS_FALSE=
23037 # There are a wide variety of endian macros and functions in the wild; we try
23038 # to use the native support if it defines be32enc(), but otherwise have to
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23048 #include <sys/endian.h>
23049 #include <stdlib.h>
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest$ac_exeext &&
23078 $as_test_x conftest$ac_exeext; then
23081 cat >>confdefs.h <<\_ACEOF
23082 #define HAVE_BE32ENC
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094 conftest$ac_exeext conftest.$ac_ext
23096 # Check to see if Mach IPC is used for trigger messages. If so, use Mach IPC
23097 # instead of the default for sending trigger messages to the audit components.
23098 { echo "$as_me:$LINENO: checking for /usr/include/mach/audit_triggers.defs" >&5
23099 echo $ECHO_N "checking for /usr/include/mach/audit_triggers.defs... $ECHO_C" >&6; }
23100 if test "${ac_cv_file__usr_include_mach_audit_triggers_defs+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23103 test "$cross_compiling" = yes &&
23104 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23105 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23106 { (exit 1); exit 1; }; }
23107 if test -r "/usr/include/mach/audit_triggers.defs"; then
23108 ac_cv_file__usr_include_mach_audit_triggers_defs=yes
23110 ac_cv_file__usr_include_mach_audit_triggers_defs=no
23113 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
23114 echo "${ECHO_T}$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
23115 if test $ac_cv_file__usr_include_mach_audit_triggers_defs = yes; then
23118 cat >>confdefs.h <<\_ACEOF
23119 #define USE_MACH_IPC
23130 if $use_mach_ipc; then
23132 USE_MACH_IPC_FALSE='#'
23134 USE_MACH_IPC_TRUE='#'
23135 USE_MACH_IPC_FALSE=
23139 ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23142 cat >confcache <<\_ACEOF
23143 # This file is a shell script that caches the results of configure
23144 # tests run on this system so they can be shared between configure
23145 # scripts and configure runs, see configure's option --config-cache.
23146 # It is not useful on other systems. If it contains results you don't
23147 # want to keep, you may remove or edit it.
23149 # config.status only pays attention to the cache file if you give it
23150 # the --recheck option to rerun configure.
23152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23154 # following values.
23158 # The following way of writing the cache mishandles newlines in values,
23159 # but we know of no workaround that is simple, portable, and efficient.
23160 # So, we kill variables containing newlines.
23161 # Ultrix sh set writes to stderr and can't be redirected directly,
23162 # and sets the high bit in the cache file unless we assign to the vars.
23164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23165 eval ac_val=\$$ac_var
23169 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23170 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23173 _ | IFS | as_nl) ;; #(
23174 *) $as_unset $ac_var ;;
23180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23181 *${as_nl}ac_space=\ *)
23182 # `set' does not quote correctly, so add quotes (double-quote
23183 # substitution turns \\\\ into \\, and sed turns \\ into \).
23186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23189 # `set' quotes correctly as required by POSIX, so do not add quotes.
23190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23203 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23204 if test -w "$cache_file"; then
23205 test "x$cache_file" != "x/dev/null" &&
23206 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23207 echo "$as_me: updating cache $cache_file" >&6;}
23208 cat confcache >$cache_file
23210 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23211 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23217 # Let make expand exec_prefix.
23218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23220 DEFS=-DHAVE_CONFIG_H
23224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23225 # 1. Remove the extension, and $U if already installed.
23226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23227 ac_i=`echo "$ac_i" | sed "$ac_script"`
23228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23229 # will be set to the directory where LIBOBJS objects are built.
23230 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23231 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23233 LIBOBJS=$ac_libobjs
23235 LTLIBOBJS=$ac_ltlibobjs
23238 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23239 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23240 Usually this means the macro was only invoked conditionally." >&5
23241 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23242 Usually this means the macro was only invoked conditionally." >&2;}
23243 { (exit 1); exit 1; }; }
23245 if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
23246 { { echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
23247 Usually this means the macro was only invoked conditionally." >&5
23248 echo "$as_me: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
23249 Usually this means the macro was only invoked conditionally." >&2;}
23250 { (exit 1); exit 1; }; }
23252 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23253 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23254 Usually this means the macro was only invoked conditionally." >&5
23255 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23256 Usually this means the macro was only invoked conditionally." >&2;}
23257 { (exit 1); exit 1; }; }
23259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23260 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23261 Usually this means the macro was only invoked conditionally." >&5
23262 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23263 Usually this means the macro was only invoked conditionally." >&2;}
23264 { (exit 1); exit 1; }; }
23266 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23268 Usually this means the macro was only invoked conditionally." >&5
23269 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23270 Usually this means the macro was only invoked conditionally." >&2;}
23271 { (exit 1); exit 1; }; }
23273 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
23274 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23275 Usually this means the macro was only invoked conditionally." >&5
23276 echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23277 Usually this means the macro was only invoked conditionally." >&2;}
23278 { (exit 1); exit 1; }; }
23280 if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
23281 { { echo "$as_me:$LINENO: error: conditional \"USE_MACH_IPC\" was never defined.
23282 Usually this means the macro was only invoked conditionally." >&5
23283 echo "$as_me: error: conditional \"USE_MACH_IPC\" was never defined.
23284 Usually this means the macro was only invoked conditionally." >&2;}
23285 { (exit 1); exit 1; }; }
23288 : ${CONFIG_STATUS=./config.status}
23289 ac_clean_files_save=$ac_clean_files
23290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23293 cat >$CONFIG_STATUS <<_ACEOF
23295 # Generated by $as_me.
23296 # Run this file to recreate the current configuration.
23297 # Compiler output produced by configure, useful for debugging
23298 # configure, is in config.log if it exists.
23301 ac_cs_recheck=false
23303 SHELL=\${CONFIG_SHELL-$SHELL}
23306 cat >>$CONFIG_STATUS <<\_ACEOF
23307 ## --------------------- ##
23308 ## M4sh Initialization. ##
23309 ## --------------------- ##
23311 # Be more Bourne compatible
23312 DUALCASE=1; export DUALCASE # for MKS sh
23313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23316 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23317 # is contrary to our usage. Disable this feature.
23318 alias -g '${1+"$@"}'='"$@"'
23319 setopt NO_GLOB_SUBST
23321 case `(set -o) 2>/dev/null` in
23322 *posix*) set -o posix ;;
23331 # Avoid depending upon Character Ranges.
23332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23335 as_cr_digits='0123456789'
23336 as_cr_alnum=$as_cr_Letters$as_cr_digits
23338 # The user is always right.
23339 if test "${PATH_SEPARATOR+set}" != set; then
23340 echo "#! /bin/sh" >conf$$.sh
23341 echo "exit 0" >>conf$$.sh
23343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23351 # Support unset when possible.
23352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23360 # We need space, tab and new line, in precisely that order. Quoting is
23361 # there to prevent editors from complaining about space-tab.
23362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23363 # splitting by setting IFS to empty value.)
23368 # Find who we are. Look in the path if we contain no directory separator.
23370 *[\\/]* ) as_myself=$0 ;;
23371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23372 for as_dir in $PATH
23375 test -z "$as_dir" && as_dir=.
23376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23382 # We did not find ourselves, most probably we were run as `sh COMMAND'
23383 # in which case we are not to be found in the path.
23384 if test "x$as_myself" = x; then
23387 if test ! -f "$as_myself"; then
23388 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23389 { (exit 1); exit 1; }
23392 # Work around bugs in pre-3.0 UWIN ksh.
23393 for as_var in ENV MAIL MAILPATH
23394 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23402 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23403 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23404 LC_TELEPHONE LC_TIME
23406 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23407 eval $as_var=C; export $as_var
23409 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23413 # Required to use basename.
23414 if expr a : '\(a\)' >/dev/null 2>&1 &&
23415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23422 as_basename=basename
23428 # Name of the executable.
23429 as_me=`$as_basename -- "$0" ||
23430 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23431 X"$0" : 'X\(//\)$' \| \
23432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23434 sed '/^.*\/\([^/][^/]*\)\/*$/{
23453 as_lineno_1=$LINENO
23454 as_lineno_2=$LINENO
23455 test "x$as_lineno_1" != "x$as_lineno_2" &&
23456 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23459 # uniformly replaced by the line number. The first 'sed' inserts a
23460 # line-number line after each line using $LINENO; the second 'sed'
23461 # does the real work. The second script uses 'N' to pair each
23462 # line-number line with the line containing $LINENO, and appends
23463 # trailing '-' during substitution so that $LINENO is not a special
23464 # case at line end.
23465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23466 # scripts with optimization help from Paolo Bonzini. Blame Lee
23467 # E. McMahon (1931-1989) for sed's syntax. :-)
23479 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23482 ' >$as_me.lineno &&
23483 chmod +x "$as_me.lineno" ||
23484 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23485 { (exit 1); exit 1; }; }
23487 # Don't try to exec as it changes $[0], causing all sort of problems
23488 # (the dirname of $[0] is not the place where we might find the
23489 # original and so on. Autoconf is especially sensitive to this).
23490 . "./$as_me.lineno"
23491 # Exit status is that of the last command.
23496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23502 ECHO_C= ECHO_N= ECHO_T=
23503 case `echo -n x` in
23505 case `echo 'x\c'` in
23506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23513 if expr a : '\(a\)' >/dev/null 2>&1 &&
23514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23520 rm -f conf$$ conf$$.exe conf$$.file
23521 if test -d conf$$.dir; then
23522 rm -f conf$$.dir/conf$$.file
23528 if ln -s conf$$.file conf$$ 2>/dev/null; then
23530 # ... but there are two gotchas:
23531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23533 # In both cases, we have to default to `cp -p'.
23534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23536 elif ln conf$$.file conf$$ 2>/dev/null; then
23541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23542 rmdir conf$$.dir 2>/dev/null
23544 if mkdir -p . 2>/dev/null; then
23547 test -d ./-p && rmdir ./-p
23551 if test -x / >/dev/null 2>&1; then
23552 as_test_x='test -x'
23554 if ls -dL / >/dev/null 2>&1; then
23561 if test -d "$1"; then
23567 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23568 ???[sx]*):;;*)false;;esac;fi
23572 as_executable_p=$as_test_x
23574 # Sed expression to map a string onto a valid CPP name.
23575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23577 # Sed expression to map a string onto a valid variable name.
23578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23583 # Save the log message, to keep $[0] and so on meaningful, and to
23584 # report actual input values of CONFIG_FILES etc. instead of their
23585 # values after options handling.
23587 This file was extended by OpenBSM $as_me 1.1alpha4, which was
23588 generated by GNU Autoconf 2.61. Invocation command line was
23590 CONFIG_FILES = $CONFIG_FILES
23591 CONFIG_HEADERS = $CONFIG_HEADERS
23592 CONFIG_LINKS = $CONFIG_LINKS
23593 CONFIG_COMMANDS = $CONFIG_COMMANDS
23596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23601 cat >>$CONFIG_STATUS <<_ACEOF
23602 # Files that config.status was made for.
23603 config_files="$ac_config_files"
23604 config_headers="$ac_config_headers"
23605 config_commands="$ac_config_commands"
23609 cat >>$CONFIG_STATUS <<\_ACEOF
23611 \`$as_me' instantiates files from templates according to the
23612 current configuration.
23614 Usage: $0 [OPTIONS] [FILE]...
23616 -h, --help print this help, then exit
23617 -V, --version print version number and configuration settings, then exit
23618 -q, --quiet do not print progress messages
23619 -d, --debug don't remove temporary files
23620 --recheck update $as_me by reconfiguring in the same conditions
23621 --file=FILE[:TEMPLATE]
23622 instantiate the configuration file FILE
23623 --header=FILE[:TEMPLATE]
23624 instantiate the configuration header FILE
23626 Configuration files:
23629 Configuration headers:
23632 Configuration commands:
23635 Report bugs to <bug-autoconf@gnu.org>."
23638 cat >>$CONFIG_STATUS <<_ACEOF
23640 OpenBSM config.status 1.1alpha4
23641 configured by $0, generated by GNU Autoconf 2.61,
23642 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23644 Copyright (C) 2006 Free Software Foundation, Inc.
23645 This config.status script is free software; the Free Software Foundation
23646 gives unlimited permission to copy, distribute and modify it."
23654 cat >>$CONFIG_STATUS <<\_ACEOF
23655 # If no file are specified by the user, then we need to provide default
23656 # value. By we need to know if files were specified by the user.
23662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23674 # Handling of the options.
23675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23678 echo "$ac_cs_version"; exit ;;
23679 --debug | --debu | --deb | --de | --d | -d )
23681 --file | --fil | --fi | --f )
23683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23684 ac_need_defaults=false;;
23685 --header | --heade | --head | --hea )
23687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23688 ac_need_defaults=false;;
23690 # Conflict between --help and --header
23691 { echo "$as_me: error: ambiguous option: $1
23692 Try \`$0 --help' for more information." >&2
23693 { (exit 1); exit 1; }; };;
23694 --help | --hel | -h )
23695 echo "$ac_cs_usage"; exit ;;
23696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23700 # This is an error.
23701 -*) { echo "$as_me: error: unrecognized option: $1
23702 Try \`$0 --help' for more information." >&2
23703 { (exit 1); exit 1; }; } ;;
23705 *) ac_config_targets="$ac_config_targets $1"
23706 ac_need_defaults=false ;;
23712 ac_configure_extra_args=
23714 if $ac_cs_silent; then
23716 ac_configure_extra_args="$ac_configure_extra_args --silent"
23720 cat >>$CONFIG_STATUS <<_ACEOF
23721 if \$ac_cs_recheck; then
23722 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23723 CONFIG_SHELL=$SHELL
23724 export CONFIG_SHELL
23725 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23729 cat >>$CONFIG_STATUS <<\_ACEOF
23733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23734 ## Running $as_me. ##
23740 cat >>$CONFIG_STATUS <<_ACEOF
23744 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23748 cat >>$CONFIG_STATUS <<\_ACEOF
23750 # Handling of arguments.
23751 for ac_config_target in $ac_config_targets
23753 case $ac_config_target in
23754 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23755 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23756 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23757 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23758 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23759 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23760 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23761 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23762 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23763 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23764 "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
23765 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23766 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23767 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23768 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23769 "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
23770 "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
23771 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23772 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23773 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23777 { (exit 1); exit 1; }; };;
23782 # If the user did not use the arguments to specify the items to instantiate,
23783 # then the envvar interface is used. Set only those that are not.
23784 # We use the long form for the default assignment because of an extremely
23785 # bizarre bug on SunOS 4.1.3.
23786 if $ac_need_defaults; then
23787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23792 # Have a temporary directory for convenience. Make it in the build tree
23793 # simply because there is no reason against having it here, and in addition,
23794 # creating and moving files from /tmp can sometimes cause problems.
23795 # Hook for its removal unless debugging.
23796 # Note that there is a small window in which the directory will not be cleaned:
23797 # after its creation but before its name has been assigned to `$tmp'.
23801 trap 'exit_status=$?
23802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23804 trap '{ (exit 1); exit 1; }' 1 2 13 15
23806 # Create a (secure) tmp directory for tmp files.
23809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23810 test -n "$tmp" && test -d "$tmp"
23813 tmp=./conf$$-$RANDOM
23814 (umask 077 && mkdir "$tmp")
23817 echo "$me: cannot create a temporary directory in ." >&2
23818 { (exit 1); exit 1; }
23822 # Set up the sed scripts for CONFIG_FILES section.
23825 # No need to generate the scripts if there are no CONFIG_FILES.
23826 # This happens for instance when ./config.status config.h
23827 if test -n "$CONFIG_FILES"; then
23834 for ac_last_try in false false false false false :; do
23835 cat >conf$$subs.sed <<_ACEOF
23836 SHELL!$SHELL$ac_delim
23837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23843 exec_prefix!$exec_prefix$ac_delim
23844 prefix!$prefix$ac_delim
23845 program_transform_name!$program_transform_name$ac_delim
23846 bindir!$bindir$ac_delim
23847 sbindir!$sbindir$ac_delim
23848 libexecdir!$libexecdir$ac_delim
23849 datarootdir!$datarootdir$ac_delim
23850 datadir!$datadir$ac_delim
23851 sysconfdir!$sysconfdir$ac_delim
23852 sharedstatedir!$sharedstatedir$ac_delim
23853 localstatedir!$localstatedir$ac_delim
23854 includedir!$includedir$ac_delim
23855 oldincludedir!$oldincludedir$ac_delim
23856 docdir!$docdir$ac_delim
23857 infodir!$infodir$ac_delim
23858 htmldir!$htmldir$ac_delim
23859 dvidir!$dvidir$ac_delim
23860 pdfdir!$pdfdir$ac_delim
23861 psdir!$psdir$ac_delim
23862 libdir!$libdir$ac_delim
23863 localedir!$localedir$ac_delim
23864 mandir!$mandir$ac_delim
23865 DEFS!$DEFS$ac_delim
23866 ECHO_C!$ECHO_C$ac_delim
23867 ECHO_N!$ECHO_N$ac_delim
23868 ECHO_T!$ECHO_T$ac_delim
23869 LIBS!$LIBS$ac_delim
23870 build_alias!$build_alias$ac_delim
23871 host_alias!$host_alias$ac_delim
23872 target_alias!$target_alias$ac_delim
23873 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23874 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23875 MAINT!$MAINT$ac_delim
23876 USE_NATIVE_INCLUDES_TRUE!$USE_NATIVE_INCLUDES_TRUE$ac_delim
23877 USE_NATIVE_INCLUDES_FALSE!$USE_NATIVE_INCLUDES_FALSE$ac_delim
23880 CFLAGS!$CFLAGS$ac_delim
23881 LDFLAGS!$LDFLAGS$ac_delim
23882 CPPFLAGS!$CPPFLAGS$ac_delim
23883 ac_ct_CC!$ac_ct_CC$ac_delim
23884 EXEEXT!$EXEEXT$ac_delim
23885 OBJEXT!$OBJEXT$ac_delim
23886 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23887 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23888 INSTALL_DATA!$INSTALL_DATA$ac_delim
23889 build!$build$ac_delim
23890 build_cpu!$build_cpu$ac_delim
23891 build_vendor!$build_vendor$ac_delim
23892 build_os!$build_os$ac_delim
23893 host!$host$ac_delim
23894 host_cpu!$host_cpu$ac_delim
23895 host_vendor!$host_vendor$ac_delim
23896 host_os!$host_os$ac_delim
23898 GREP!$GREP$ac_delim
23899 EGREP!$EGREP$ac_delim
23900 LN_S!$LN_S$ac_delim
23901 ECHO!$ECHO$ac_delim
23903 RANLIB!$RANLIB$ac_delim
23904 STRIP!$STRIP$ac_delim
23907 CXXFLAGS!$CXXFLAGS$ac_delim
23908 ac_ct_CXX!$ac_ct_CXX$ac_delim
23909 CXXCPP!$CXXCPP$ac_delim
23911 FFLAGS!$FFLAGS$ac_delim
23912 ac_ct_F77!$ac_ct_F77$ac_delim
23913 LIBTOOL!$LIBTOOL$ac_delim
23914 am__isrc!$am__isrc$ac_delim
23915 CYGPATH_W!$CYGPATH_W$ac_delim
23916 PACKAGE!$PACKAGE$ac_delim
23917 VERSION!$VERSION$ac_delim
23918 ACLOCAL!$ACLOCAL$ac_delim
23919 AUTOCONF!$AUTOCONF$ac_delim
23920 AUTOMAKE!$AUTOMAKE$ac_delim
23921 AUTOHEADER!$AUTOHEADER$ac_delim
23922 MAKEINFO!$MAKEINFO$ac_delim
23923 install_sh!$install_sh$ac_delim
23924 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23925 mkdir_p!$mkdir_p$ac_delim
23927 SET_MAKE!$SET_MAKE$ac_delim
23928 am__leading_dot!$am__leading_dot$ac_delim
23929 AMTAR!$AMTAR$ac_delim
23930 am__tar!$am__tar$ac_delim
23931 am__untar!$am__untar$ac_delim
23932 DEPDIR!$DEPDIR$ac_delim
23935 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23937 elif $ac_last_try; then
23938 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23940 { (exit 1); exit 1; }; }
23942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23947 if test -n "$ac_eof"; then
23948 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23949 ac_eof=`expr $ac_eof + 1`
23952 cat >>$CONFIG_STATUS <<_ACEOF
23953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23958 s/^/s,@/; s/!/@,|#_!!_#|/
23961 s/'"$ac_delim"'$/,g/; t
23963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23964 ' >>$CONFIG_STATUS <conf$$subs.sed
23965 rm -f conf$$subs.sed
23966 cat >>$CONFIG_STATUS <<_ACEOF
23972 for ac_last_try in false false false false false :; do
23973 cat >conf$$subs.sed <<_ACEOF
23974 am__include!$am__include$ac_delim
23975 am__quote!$am__quote$ac_delim
23976 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23977 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23978 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23979 CCDEPMODE!$CCDEPMODE$ac_delim
23980 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23981 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23982 CXXDEPMODE!$CXXDEPMODE$ac_delim
23983 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23984 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23985 LIBOBJS!$LIBOBJS$ac_delim
23986 HAVE_AUDIT_SYSCALLS_TRUE!$HAVE_AUDIT_SYSCALLS_TRUE$ac_delim
23987 HAVE_AUDIT_SYSCALLS_FALSE!$HAVE_AUDIT_SYSCALLS_FALSE$ac_delim
23988 USE_MACH_IPC_TRUE!$USE_MACH_IPC_TRUE$ac_delim
23989 USE_MACH_IPC_FALSE!$USE_MACH_IPC_FALSE$ac_delim
23990 LTLIBOBJS!$LTLIBOBJS$ac_delim
23993 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
23995 elif $ac_last_try; then
23996 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23998 { (exit 1); exit 1; }; }
24000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24005 if test -n "$ac_eof"; then
24006 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24007 ac_eof=`expr $ac_eof + 1`
24010 cat >>$CONFIG_STATUS <<_ACEOF
24011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24016 s/^/s,@/; s/!/@,|#_!!_#|/
24019 s/'"$ac_delim"'$/,g/; t
24021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24022 ' >>$CONFIG_STATUS <conf$$subs.sed
24023 rm -f conf$$subs.sed
24024 cat >>$CONFIG_STATUS <<_ACEOF
24031 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24032 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24033 # trailing colons and then remove the whole line if VPATH becomes empty
24034 # (actually we leave an empty line to preserve line numbers).
24035 if test "x$srcdir" = x.; then
24036 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24037 s/:*\$(srcdir):*/:/
24038 s/:*\${srcdir}:*/:/
24040 s/^\([^=]*=[ ]*\):*/\1/
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 fi # test -n "$CONFIG_FILES"
24050 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24053 :[FHLC]) ac_mode=$ac_tag; continue;;
24055 case $ac_mode$ac_tag in
24057 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24058 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24059 { (exit 1); exit 1; }; };;
24060 :[FH]-) ac_tag=-:-;;
24061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24078 -) ac_f="$tmp/stdin";;
24079 *) # Look for the file first in the build tree, then in the source tree
24080 # (if the path is not absolute). The absolute path cannot be DOS-style,
24081 # because $ac_f cannot contain `:'.
24085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24087 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24088 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24089 { (exit 1); exit 1; }; };;
24091 ac_file_inputs="$ac_file_inputs $ac_f"
24094 # Let's still pretend it is `configure' which instantiates (i.e., don't
24095 # use $as_me), people would be surprised to read:
24096 # /* config.h. Generated by config.status. */
24097 configure_input="Generated from "`IFS=:
24098 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24099 if test x"$ac_file" != x-; then
24100 configure_input="$ac_file. $configure_input"
24101 { echo "$as_me:$LINENO: creating $ac_file" >&5
24102 echo "$as_me: creating $ac_file" >&6;}
24106 *:-:* | *:-) cat >"$tmp/stdin";;
24111 ac_dir=`$as_dirname -- "$ac_file" ||
24112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113 X"$ac_file" : 'X\(//\)[^/]' \| \
24114 X"$ac_file" : 'X\(//\)$' \| \
24115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24121 /^X\(\/\/\)[^/].*/{
24136 -*) as_dir=./$as_dir;;
24138 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24142 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24143 *) as_qdir=$as_dir;;
24145 as_dirs="'$as_qdir' $as_dirs"
24146 as_dir=`$as_dirname -- "$as_dir" ||
24147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24148 X"$as_dir" : 'X\(//\)[^/]' \| \
24149 X"$as_dir" : 'X\(//\)$' \| \
24150 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24156 /^X\(\/\/\)[^/].*/{
24169 test -d "$as_dir" && break
24171 test -z "$as_dirs" || eval "mkdir $as_dirs"
24172 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24173 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24174 { (exit 1); exit 1; }; }; }
24178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24181 # A ".." for each directory in $ac_dir_suffix.
24182 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24183 case $ac_top_builddir_sub in
24184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24188 ac_abs_top_builddir=$ac_pwd
24189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24190 # for backward compatibility:
24191 ac_top_builddir=$ac_top_build_prefix
24194 .) # We are building in place.
24196 ac_top_srcdir=$ac_top_builddir_sub
24197 ac_abs_top_srcdir=$ac_pwd ;;
24198 [\\/]* | ?:[\\/]* ) # Absolute name.
24199 ac_srcdir=$srcdir$ac_dir_suffix;
24200 ac_top_srcdir=$srcdir
24201 ac_abs_top_srcdir=$srcdir ;;
24202 *) # Relative name.
24203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24204 ac_top_srcdir=$ac_top_build_prefix$srcdir
24205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24220 ac_MKDIR_P=$MKDIR_P
24222 [\\/$]* | ?:[\\/]* ) ;;
24223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24227 cat >>$CONFIG_STATUS <<\_ACEOF
24228 # If the template does not know about datarootdir, expand it.
24229 # FIXME: This hack should be removed a few years after 2.60.
24230 ac_datarootdir_hack=; ac_datarootdir_seen=
24232 case `sed -n '/datarootdir/ {
24241 ' $ac_file_inputs` in
24242 *datarootdir*) ac_datarootdir_seen=yes;;
24243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24244 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24245 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24247 cat >>$CONFIG_STATUS <<_ACEOF
24248 ac_datarootdir_hack='
24249 s&@datadir@&$datadir&g
24250 s&@docdir@&$docdir&g
24251 s&@infodir@&$infodir&g
24252 s&@localedir@&$localedir&g
24253 s&@mandir@&$mandir&g
24254 s&\\\${datarootdir}&$datarootdir&g' ;;
24258 # Neutralize VPATH when `$srcdir' = `.'.
24259 # Shell code in configure.ac might set extrasub.
24260 # FIXME: do we really want to maintain this feature?
24261 cat >>$CONFIG_STATUS <<_ACEOF
24265 cat >>$CONFIG_STATUS <<\_ACEOF
24267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24268 s&@configure_input@&$configure_input&;t t
24269 s&@top_builddir@&$ac_top_builddir_sub&;t t
24270 s&@srcdir@&$ac_srcdir&;t t
24271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24272 s&@top_srcdir@&$ac_top_srcdir&;t t
24273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24274 s&@builddir@&$ac_builddir&;t t
24275 s&@abs_builddir@&$ac_abs_builddir&;t t
24276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24277 s&@INSTALL@&$ac_INSTALL&;t t
24278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24279 $ac_datarootdir_hack
24280 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24285 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24286 which seems to be undefined. Please make sure it is defined." >&5
24287 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24288 which seems to be undefined. Please make sure it is defined." >&2;}
24292 -) cat "$tmp/out"; rm -f "$tmp/out";;
24293 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24302 # Transform confdefs.h into a sed script `conftest.defines', that
24303 # substitutes the proper values into config.h.in to produce config.h.
24304 rm -f conftest.defines conftest.tail
24305 # First, append a space to every undef/define line, to ease matching.
24306 echo 's/$/ /' >conftest.defines
24307 # Then, protect against being on the right side of a sed subst, or in
24308 # an unquoted here document, in config.status. If some macros were
24309 # called several times there might be several #defines for the same
24310 # symbol, which is useless. But do not sort them, since the last
24311 # AC_DEFINE must be honored.
24312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24313 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24314 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24315 # PARAMS is the parameter list in the macro definition--in most cases, it's
24316 # just an empty string.
24317 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24318 ac_dB='\\)[ (].*,\\1define\\2'
24326 s/^[ ]*#[ ]*define[ ][ ]*//
24331 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24332 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24333 ' >>conftest.defines
24335 # Remove the space that was appended to ease matching.
24336 # Then replace #undef with comments. This is necessary, for
24337 # example, in the case of _POSIX_SOURCE, which is predefined and required
24338 # on some systems where configure will not decide to define it.
24339 # (The regexp can be short, since the line contains either #define or #undef.)
24341 s,^[ #]*u.*,/* & */,' >>conftest.defines
24343 # Break up conftest.defines:
24344 ac_max_sed_lines=50
24346 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24347 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24348 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24350 ac_in='$ac_file_inputs'
24351 ac_out='"$tmp/out1"'
24352 ac_nxt='"$tmp/out2"'
24356 # Write a here document:
24357 cat >>$CONFIG_STATUS <<_ACEOF
24358 # First, check the format of the line:
24359 cat >"\$tmp/defines.sed" <<\\CEOF
24360 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24361 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24365 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24367 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24368 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24369 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24370 grep . conftest.tail >/dev/null || break
24371 rm -f conftest.defines
24372 mv conftest.tail conftest.defines
24374 rm -f conftest.defines conftest.tail
24376 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24377 cat >>$CONFIG_STATUS <<\_ACEOF
24378 if test x"$ac_file" != x-; then
24379 echo "/* $configure_input */" >"$tmp/config.h"
24380 cat "$ac_result" >>"$tmp/config.h"
24381 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24382 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24383 echo "$as_me: $ac_file is unchanged" >&6;}
24386 mv "$tmp/config.h" $ac_file
24389 echo "/* $configure_input */"
24393 # Compute $ac_file's index in $config_headers.
24395 for _am_header in $config_headers :; do
24396 case $_am_header in
24397 $ac_file | $ac_file:* )
24400 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24403 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24404 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405 X$ac_file : 'X\(//\)[^/]' \| \
24406 X$ac_file : 'X\(//\)$' \| \
24407 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24413 /^X\(\/\/\)[^/].*/{
24425 s/.*/./; q'`/stamp-h$_am_stamp_count
24428 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24429 echo "$as_me: executing $ac_file commands" >&6;}
24434 case $ac_file$ac_mode in
24435 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24436 # Strip MF so we end up with the name of the file.
24437 mf=`echo "$mf" | sed -e 's/:.*$//'`
24438 # Check whether this is an Automake generated Makefile or not.
24439 # We used to match only the files named `Makefile.in', but
24440 # some people rename them; so instead we look at the file content.
24441 # Grep'ing the first line is not enough: some people post-process
24442 # each Makefile.in and add a new line on top of each file to say so.
24443 # Grep'ing the whole file is not good either: AIX grep has a line
24444 # limit of 2048, but all sed's we know have understand at least 4000.
24445 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24446 dirpart=`$as_dirname -- "$mf" ||
24447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24448 X"$mf" : 'X\(//\)[^/]' \| \
24449 X"$mf" : 'X\(//\)$' \| \
24450 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24456 /^X\(\/\/\)[^/].*/{
24472 # Extract the definition of DEPDIR, am__include, and am__quote
24473 # from the Makefile without running `make'.
24474 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24475 test -z "$DEPDIR" && continue
24476 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24477 test -z "am__include" && continue
24478 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24479 # When using ansi2knr, U may be empty or an underscore; expand it
24480 U=`sed -n 's/^U = //p' < "$mf"`
24481 # Find all dependency output files, they are included files with
24482 # $(DEPDIR) in their names. We invoke sed twice because it is the
24483 # simplest approach to changing $(DEPDIR) to its actual value in the
24485 for file in `sed -n "
24486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24488 # Make sure the directory exists.
24489 test -f "$dirpart/$file" && continue
24490 fdir=`$as_dirname -- "$file" ||
24491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24492 X"$file" : 'X\(//\)[^/]' \| \
24493 X"$file" : 'X\(//\)$' \| \
24494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24500 /^X\(\/\/\)[^/].*/{
24513 { as_dir=$dirpart/$fdir
24515 -*) as_dir=./$as_dir;;
24517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24522 *) as_qdir=$as_dir;;
24524 as_dirs="'$as_qdir' $as_dirs"
24525 as_dir=`$as_dirname -- "$as_dir" ||
24526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24527 X"$as_dir" : 'X\(//\)[^/]' \| \
24528 X"$as_dir" : 'X\(//\)$' \| \
24529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24535 /^X\(\/\/\)[^/].*/{
24548 test -d "$as_dir" && break
24550 test -z "$as_dirs" || eval "mkdir $as_dirs"
24551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24553 { (exit 1); exit 1; }; }; }
24554 # echo "creating $dirpart/$file"
24555 echo '# dummy' > "$dirpart/$file"
24564 { (exit 0); exit 0; }
24566 chmod +x $CONFIG_STATUS
24567 ac_clean_files=$ac_clean_files_save
24570 # configure is writing to config.log, and then calls config.status.
24571 # config.status does its own redirection, appending to config.log.
24572 # Unfortunately, on DOS this fails, as config.log is still kept open
24573 # by configure, so config.status won't be able to write to it; its
24574 # output is simply discarded. So we exec the FD to /dev/null,
24575 # effectively closing config.log, so it can be properly (re)opened and
24576 # appended to by config.status. When coming back to configure, we
24577 # need to make the FD available again.
24578 if test "$no_create" != yes; then
24580 ac_config_status_args=
24581 test "$silent" = yes &&
24582 ac_config_status_args="$ac_config_status_args --quiet"
24584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24587 # would make configure fail if this is the last instruction.
24588 $ac_cs_success || { (exit 1); exit 1; }