2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#53 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.62 for OpenBSM 1.1p2.
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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
99 # Find who we are. Look in the path if we contain no directory separator.
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
183 if test $as_have_required = yes && (eval ":
193 as_func_ret_success () {
196 as_func_ret_failure () {
201 if as_func_success; then
205 echo as_func_success failed.
208 if as_func_failure; then
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
247 test -z "$as_dir" && as_dir=.
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
280 CONFIG_SHELL=$as_shell
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
308 as_func_ret_success () {
311 as_func_ret_failure () {
316 if as_func_success; then
320 echo as_func_success failed.
323 if as_func_failure; then
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
397 as_func_ret_success () {
400 as_func_ret_failure () {
405 if as_func_success; then
409 echo as_func_success failed.
412 if as_func_failure; then
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
484 # Exit status is that of the last command.
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
495 ECHO_C= ECHO_N= ECHO_T=
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 elif ln conf$$.file conf$$ 2>/dev/null; then
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
542 test -d ./-p && rmdir ./-p
546 if test -x / >/dev/null 2>&1; then
549 if ls -dL / >/dev/null 2>&1; then
556 if test -d "$1"; then
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 # Check that we are running under the correct shell.
579 SHELL=${CONFIG_SHELL-/bin/sh}
583 # Remove one level of quotation (which was required for Make).
584 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
589 if test "X$1" = X--no-reexec; then
590 # Discard the --no-reexec flag, and continue.
592 elif test "X$1" = X--fallback-echo; then
593 # Avoid inline document here, it may be left over
595 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
596 # Yippee, $echo works!
599 # Restart under the correct shell.
600 exec $SHELL "$0" --no-reexec ${1+"$@"}
603 if test "X$1" = X--fallback-echo; then
604 # used as fallback echo
612 # The HP-UX ksh and POSIX shell print the target directory to stdout
614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
616 if test -z "$ECHO"; then
617 if test "X${echo_test_string+set}" != Xset; then
618 # find a string as large as possible, as long as the shell can cope with it
619 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
622 echo_test_string=`eval $cmd` &&
623 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
630 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
639 # So, first we look for a working echo in the user's PATH.
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
654 if test "X$echo" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
661 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
672 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
685 echo="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 echo="$CONFIG_SHELL $0 --fallback-echo"
692 # maybe with a smaller string...
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
708 # Oops. We lost completely, so just stick with echo.
717 # Copy echo and quote the copy suitably for passing to libtool from
718 # the Makefile, instead of quoting the original, which is used later.
720 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
727 tagnames=${tagnames+${tagnames},}CXX
729 tagnames=${tagnames+${tagnames},}F77
731 exec 7<&0 </dev/null 6>&1
734 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
735 # so uname gets run too.
736 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
741 ac_default_prefix=/usr/local
743 ac_config_libobj_dir=.
749 SHELL=${CONFIG_SHELL-/bin/sh}
751 # Identity of this package.
752 PACKAGE_NAME='OpenBSM'
753 PACKAGE_TARNAME='openbsm'
754 PACKAGE_VERSION='1.1p2'
755 PACKAGE_STRING='OpenBSM 1.1p2'
756 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
758 ac_unique_file="bin/auditreduce/auditreduce.c"
759 # Factoring default headers for most tests.
760 ac_includes_default="\
762 #ifdef HAVE_SYS_TYPES_H
763 # include <sys/types.h>
765 #ifdef HAVE_SYS_STAT_H
766 # include <sys/stat.h>
772 # ifdef HAVE_STDLIB_H
777 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
782 #ifdef HAVE_STRINGS_H
783 # include <strings.h>
785 #ifdef HAVE_INTTYPES_H
786 # include <inttypes.h>
806 program_transform_name
835 MAINTAINER_MODE_FALSE
837 USE_NATIVE_INCLUDES_TRUE
838 USE_NATIVE_INCLUDES_FALSE
887 INSTALL_STRIP_PROGRAM
909 HAVE_AUDIT_SYSCALLS_TRUE
910 HAVE_AUDIT_SYSCALLS_FALSE
916 enable_option_checking
917 enable_maintainer_mode
926 enable_dependency_tracking
928 ac_precious_vars='build_alias
945 # Initialize some variables set by options.
947 ac_init_version=false
948 ac_unrecognized_opts=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name=s,x,x,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1311 eval with_$ac_useropt=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1365 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1366 { (exit 1); exit 1; }; } ;;
1367 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1384 # Be sure to have absolute directory names.
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1390 { (exit 1); exit 1; }; }
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414 test "$silent" = yes && exec 6>/dev/null
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1421 { (exit 1); exit 1; }; }
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1424 { (exit 1); exit 1; }; }
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1459 ac_srcdir_defaulted=no
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1464 { (exit 1); exit 1; }; }
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1469 { (exit 1); exit 1; }; }
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1495 \`configure' configures OpenBSM 1.1p2 to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of OpenBSM 1.1p2:";;
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-maintainer-mode enable make rules and dependencies not useful
1574 (and sometimes confusing) to the casual installer
1575 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 --enable-static[=PKGS] build static libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-dependency-tracking speeds up one-time build
1581 --enable-dependency-tracking do not reject slow dependency extractors
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-native-includes Use the system native include files instead of those
1587 included with openbsm.
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1591 --with-tags[=TAGS] include additional configurations [automatic]
1593 Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
1598 LIBS libraries to pass to the linker, e.g. -l<library>
1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1604 CXXCPP C++ preprocessor
1605 F77 Fortran 77 compiler command
1606 FFLAGS Fortran 77 compiler flags
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1611 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1641 .) # We are building in place.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1674 OpenBSM configure 1.1p2
1675 generated by GNU Autoconf 2.62
1677 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1678 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1684 cat >config.log <<_ACEOF
1685 This file contains any messages produced by compilers while
1686 running configure, to aid debugging if configure makes a mistake.
1688 It was created by OpenBSM $as_me 1.1p2, which was
1689 generated by GNU Autoconf 2.62. Invocation command line was
1701 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1702 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1703 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1704 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1705 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1707 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1708 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1710 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1711 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1712 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1713 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1714 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1715 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1716 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir=.
1725 $as_echo "PATH: $as_dir"
1741 # Keep a trace of the command line.
1742 # Strip out --no-create and --no-recursion so they do not pile up.
1743 # Strip out --silent because we don't want to record it for future runs.
1744 # Also quote any args containing shell meta-characters.
1745 # Make two passes to allow for proper duplicate-argument suppression.
1749 ac_must_keep_next=false
1755 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1757 | -silent | --silent | --silen | --sile | --sil)
1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1765 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1766 if test $ac_must_keep_next = true; then
1767 ac_must_keep_next=false # Got value, back to normal.
1770 *=* | --config-cache | -C | -disable-* | --disable-* \
1771 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1772 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1773 | -with-* | --with-* | -without-* | --without-* | --x)
1774 case "$ac_configure_args0 " in
1775 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1778 -* ) ac_must_keep_next=true ;;
1781 ac_configure_args="$ac_configure_args '$ac_arg'"
1786 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1787 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1789 # When interrupted or exit'd, cleanup temporary files, and complete
1790 # config.log. We remove comments because anyway the quotes in there
1791 # would cause problems or look ugly.
1792 # WARNING: Use '\'' to represent an apostrophe within the trap.
1793 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1794 trap 'exit_status=$?
1795 # Save into config.log some information that might help in debugging.
1800 ## ---------------- ##
1801 ## Cache variables. ##
1802 ## ---------------- ##
1805 # The following way of writing the cache mishandles newlines in values,
1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1808 eval ac_val=\$$ac_var
1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1813 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1816 _ | IFS | as_nl) ;; #(
1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1818 *) $as_unset $ac_var ;;
1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1824 *${as_nl}ac_space=\ *)
1826 "s/'\''/'\''\\\\'\'''\''/g;
1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838 ## ----------------- ##
1839 ## Output variables. ##
1840 ## ----------------- ##
1843 for ac_var in $ac_subst_vars
1845 eval ac_val=\$$ac_var
1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 $as_echo "$ac_var='\''$ac_val'\''"
1853 if test -n "$ac_subst_files"; then
1855 ## ------------------- ##
1856 ## File substitutions. ##
1857 ## ------------------- ##
1860 for ac_var in $ac_subst_files
1862 eval ac_val=\$$ac_var
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 $as_echo "$ac_var='\''$ac_val'\''"
1871 if test -s confdefs.h; then
1881 test "$ac_signal" != 0 &&
1882 $as_echo "$as_me: caught signal $ac_signal"
1883 $as_echo "$as_me: exit $exit_status"
1885 rm -f core *.core core.conftest.* &&
1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1889 for ac_signal in 1 2 13 15; do
1890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1895 rm -f -r conftest* confdefs.h
1897 # Predefined preprocessor variables.
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_NAME "$PACKAGE_NAME"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_STRING "$PACKAGE_STRING"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1924 # Let the site file select an alternate cache file if it wants to.
1925 # Prefer an explicitly selected file to automatically selected ones.
1928 if test -n "$CONFIG_SITE"; then
1929 ac_site_file1=$CONFIG_SITE
1930 elif test "x$prefix" != xNONE; then
1931 ac_site_file1=$prefix/share/config.site
1932 ac_site_file2=$prefix/etc/config.site
1934 ac_site_file1=$ac_default_prefix/share/config.site
1935 ac_site_file2=$ac_default_prefix/etc/config.site
1937 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1939 test "x$ac_site_file" = xNONE && continue
1940 if test -r "$ac_site_file"; then
1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1943 sed 's/^/| /' "$ac_site_file" >&5
1948 if test -r "$cache_file"; then
1949 # Some versions of bash will fail to source /dev/null (special
1950 # files actually), so we avoid doing that.
1951 if test -f "$cache_file"; then
1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953 $as_echo "$as_me: loading cache $cache_file" >&6;}
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961 $as_echo "$as_me: creating cache $cache_file" >&6;}
1965 ac_header_list="$ac_header_list sys/time.h"
1966 ac_header_list="$ac_header_list unistd.h"
1967 ac_func_list="$ac_func_list alarm"
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2001 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2018 if $ac_cache_corrupted; then
2019 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023 { (exit 1); exit 1; }; }
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 for ac_dir in config "$srcdir"/config; do
2061 if test -f "$ac_dir/install-sh"; then
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 elif test -f "$ac_dir/install.sh"; then
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 elif test -f "$ac_dir/shtool"; then
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 if test -z "$ac_aux_dir"; then
2076 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2077 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2078 { (exit 1); exit 1; }; }
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090 ac_config_headers="$ac_config_headers config/config.h"
2092 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2093 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2094 # Check whether --enable-maintainer-mode was given.
2095 if test "${enable_maintainer_mode+set}" = set; then
2096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2098 USE_MAINTAINER_MODE=no
2101 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2102 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2103 if test $USE_MAINTAINER_MODE = yes; then
2104 MAINTAINER_MODE_TRUE=
2105 MAINTAINER_MODE_FALSE='#'
2107 MAINTAINER_MODE_TRUE='#'
2108 MAINTAINER_MODE_FALSE=
2111 MAINT=$MAINTAINER_MODE_TRUE
2115 # --with-native-includes forces the use of the system bsm headers.
2117 # Check whether --with-native-includes was given.
2118 if test "${with_native_includes+set}" = set; then
2119 withval=$with_native_includes;
2121 cat >>confdefs.h <<\_ACEOF
2122 #define USE_NATIVE_INCLUDES /**/
2125 use_native_includes=true
2128 use_native_includes=false
2131 if $use_native_includes; then
2132 USE_NATIVE_INCLUDES_TRUE=
2133 USE_NATIVE_INCLUDES_FALSE='#'
2135 USE_NATIVE_INCLUDES_TRUE='#'
2136 USE_NATIVE_INCLUDES_FALSE=
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 $as_echo_n "checking for $ac_word... " >&6; }
2146 if test "${ac_cv_path_MIG+set}" = set; then
2147 $as_echo_n "(cached) " >&6
2151 ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 if test -n "$MIG"; then
2174 { $as_echo "$as_me:$LINENO: result: $MIG" >&5
2175 $as_echo "$MIG" >&6; }
2177 { $as_echo "$as_me:$LINENO: result: no" >&5
2178 $as_echo "no" >&6; }
2182 test -n "$MIG" && break
2186 # Checks for programs.
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 $as_echo_n "checking for $ac_word... " >&6; }
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 $as_echo_n "(cached) " >&6
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 if test -n "$CC"; then
2222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2223 $as_echo "$CC" >&6; }
2225 { $as_echo "$as_me:$LINENO: result: no" >&5
2226 $as_echo "no" >&6; }
2231 if test -z "$ac_cv_prog_CC"; then
2233 # Extract the first word of "gcc", so it can be a program name with args.
2234 set dummy gcc; ac_word=$2
2235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 $as_echo_n "checking for $ac_word... " >&6; }
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 $as_echo_n "(cached) " >&6
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_ac_ct_CC="gcc"
2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261 if test -n "$ac_ct_CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263 $as_echo "$ac_ct_CC" >&6; }
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266 $as_echo "no" >&6; }
2269 if test "x$ac_ct_CC" = x; then
2272 case $cross_compiling:$ac_tool_warned in
2274 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2275 whose name does not start with the host triplet. If you think this
2276 configuration is useful to you, please write to autoconf@gnu.org." >&5
2277 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2278 whose name does not start with the host triplet. If you think this
2279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2280 ac_tool_warned=yes ;;
2288 if test -z "$CC"; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}cc; ac_word=$2
2292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="${ac_tool_prefix}cc"
2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 if test -n "$CC"; then
2319 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2320 $as_echo "$CC" >&6; }
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323 $as_echo "no" >&6; }
2329 if test -z "$CC"; then
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 $as_echo_n "checking for $ac_word... " >&6; }
2334 if test "${ac_cv_prog_CC+set}" = set; then
2335 $as_echo_n "(cached) " >&6
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2349 ac_prog_rejected=yes
2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test $ac_prog_rejected = yes; then
2361 # We found a bogon in the path, so make sure we never use it.
2362 set dummy $ac_cv_prog_CC
2364 if test $# != 0; then
2365 # We chose a different compiler from the bogus one.
2366 # However, it has the same basename, so the bogon will be chosen
2367 # first if we set CC to just the basename; use the full file name.
2369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2375 if test -n "$CC"; then
2376 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2377 $as_echo "$CC" >&6; }
2379 { $as_echo "$as_me:$LINENO: result: no" >&5
2380 $as_echo "no" >&6; }
2385 if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 for ac_prog in cl.exe
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if test "${ac_cv_prog_CC+set}" = set; then
2394 $as_echo_n "(cached) " >&6
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 if test -n "$CC"; then
2418 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2419 $as_echo "$CC" >&6; }
2421 { $as_echo "$as_me:$LINENO: result: no" >&5
2422 $as_echo "no" >&6; }
2426 test -n "$CC" && break
2429 if test -z "$CC"; then
2431 for ac_prog in cl.exe
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 $as_echo_n "(cached) " >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="$ac_prog"
2451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 $as_echo "$ac_ct_CC" >&6; }
2465 { $as_echo "$as_me:$LINENO: result: no" >&5
2466 $as_echo "no" >&6; }
2470 test -n "$ac_ct_CC" && break
2473 if test "x$ac_ct_CC" = x; then
2476 case $cross_compiling:$ac_tool_warned in
2478 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2493 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2494 See \`config.log' for more details." >&5
2495 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&2;}
2497 { (exit 1); exit 1; }; }
2499 # Provide some information about the compiler.
2500 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2503 { (ac_try="$ac_compiler --version >&5"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510 (eval "$ac_compiler --version >&5") 2>&5
2512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514 { (ac_try="$ac_compiler -v >&5"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2520 $as_echo "$ac_try_echo") >&5
2521 (eval "$ac_compiler -v >&5") 2>&5
2523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525 { (ac_try="$ac_compiler -V >&5"
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2531 $as_echo "$ac_try_echo") >&5
2532 (eval "$ac_compiler -V >&5") 2>&5
2534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 ac_clean_files_save=$ac_clean_files
2553 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2554 # Try to create an executable without -o first, disregard a.out.
2555 # It will help us diagnose broken compilers, and finding out an intuition
2557 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2558 $as_echo_n "checking for C compiler default output file name... " >&6; }
2559 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2561 # The possible output files:
2562 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2565 for ac_file in $ac_files
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2574 if { (ac_try="$ac_link_default"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2580 $as_echo "$ac_try_echo") >&5
2581 (eval "$ac_link_default") 2>&5
2583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
2585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2588 # so that the user can short-circuit this test for compilers unknown to
2590 for ac_file in $ac_files ''
2592 test -f "$ac_file" || continue
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2597 # We found the default executable, but exeext='' is most
2601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605 # We set ac_cv_exeext here because the later test for it is not
2606 # safe: cross compilers may not add the suffix if given an `-o'
2607 # argument, so we may need to know it at that point already.
2608 # Even if this section looks crufty: it has the advantage of
2615 test "$ac_cv_exeext" = no && ac_cv_exeext=
2621 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2622 $as_echo "$ac_file" >&6; }
2623 if test -z "$ac_file"; then
2624 $as_echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2628 See \`config.log' for more details." >&5
2629 $as_echo "$as_me: error: C compiler cannot create executables
2630 See \`config.log' for more details." >&2;}
2631 { (exit 77); exit 77; }; }
2634 ac_exeext=$ac_cv_exeext
2636 # Check that the compiler produces executables we can run. If not, either
2637 # the compiler is broken, or we cross compile.
2638 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2639 $as_echo_n "checking whether the C compiler works... " >&6; }
2640 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2641 # If not cross compiling, check that we can run a simple program.
2642 if test "$cross_compiling" != yes; then
2643 if { ac_try='./$ac_file'
2644 { (case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2649 $as_echo "$ac_try_echo") >&5
2650 (eval "$ac_try") 2>&5
2652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2656 if test "$cross_compiling" = maybe; then
2659 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2660 If you meant to cross compile, use \`--host'.
2661 See \`config.log' for more details." >&5
2662 $as_echo "$as_me: error: cannot run C compiled programs.
2663 If you meant to cross compile, use \`--host'.
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2669 { $as_echo "$as_me:$LINENO: result: yes" >&5
2670 $as_echo "yes" >&6; }
2672 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2673 ac_clean_files=$ac_clean_files_save
2674 # Check that the compiler produces executables we can run. If not, either
2675 # the compiler is broken, or we cross compile.
2676 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2677 $as_echo_n "checking whether we are cross compiling... " >&6; }
2678 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2679 $as_echo "$cross_compiling" >&6; }
2681 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2682 $as_echo_n "checking for suffix of executables... " >&6; }
2683 if { (ac_try="$ac_link"
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689 $as_echo "$ac_try_echo") >&5
2690 (eval "$ac_link") 2>&5
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2695 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2696 # work properly (i.e., refer to `conftest.exe'), while it won't with
2698 for ac_file in conftest.exe conftest conftest.*; do
2699 test -f "$ac_file" || continue
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details." >&5
2710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2715 rm -f conftest$ac_cv_exeext
2716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2717 $as_echo "$ac_cv_exeext" >&6; }
2719 rm -f conftest.$ac_ext
2720 EXEEXT=$ac_cv_exeext
2722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2723 $as_echo_n "checking for suffix of object files... " >&6; }
2724 if test "${ac_cv_objext+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2742 rm -f conftest.o conftest.obj
2743 if { (ac_try="$ac_compile"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749 $as_echo "$ac_try_echo") >&5
2750 (eval "$ac_compile") 2>&5
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 for ac_file in conftest.o conftest.obj conftest.*; do
2755 test -f "$ac_file" || continue;
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2763 $as_echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2767 See \`config.log' for more details." >&5
2768 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2769 See \`config.log' for more details." >&2;}
2770 { (exit 1); exit 1; }; }
2773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2775 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2776 $as_echo "$ac_cv_objext" >&6; }
2777 OBJEXT=$ac_cv_objext
2779 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2782 $as_echo_n "(cached) " >&6
2784 cat >conftest.$ac_ext <<_ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2802 rm -f conftest.$ac_objext
2803 if { (ac_try="$ac_compile"
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809 $as_echo "$ac_try_echo") >&5
2810 (eval "$ac_compile") 2>conftest.er1
2812 grep -v '^ *+' conftest.er1 >conftest.err
2814 cat conftest.err >&5
2815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } && {
2817 test -z "$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest.$ac_objext; then
2822 $as_echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2832 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2833 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834 if test $ac_compiler_gnu = yes; then
2839 ac_test_CFLAGS=${CFLAGS+set}
2840 ac_save_CFLAGS=$CFLAGS
2841 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2842 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2843 if test "${ac_cv_prog_cc_g+set}" = set; then
2844 $as_echo_n "(cached) " >&6
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2850 cat >conftest.$ac_ext <<_ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2865 rm -f conftest.$ac_objext
2866 if { (ac_try="$ac_compile"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2875 grep -v '^ *+' conftest.er1 >conftest.err
2877 cat conftest.err >&5
2878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2885 $as_echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2911 $as_echo "$ac_try_echo") >&5
2912 (eval "$ac_compile") 2>conftest.er1
2914 grep -v '^ *+' conftest.er1 >conftest.err
2916 cat conftest.err >&5
2917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } && {
2919 test -z "$ac_c_werror_flag" ||
2920 test ! -s conftest.err
2921 } && test -s conftest.$ac_objext; then
2924 $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 ac_c_werror_flag=$ac_save_c_werror_flag
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951 $as_echo "$ac_try_echo") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.$ac_objext; then
2964 $as_echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_c_werror_flag=$ac_save_c_werror_flag
2979 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980 $as_echo "$ac_cv_prog_cc_g" >&6; }
2981 if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983 elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2990 if test "$GCC" = yes; then
2996 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998 if test "${ac_cv_prog_cc_c89+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3001 ac_cv_prog_cc_c89=no
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3011 #include <sys/types.h>
3012 #include <sys/stat.h>
3013 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3014 struct buf { int x; };
3015 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3016 static char *e (p, i)
3022 static char *f (char * (*g) (char **, int), char **p, ...)
3027 s = g (p, va_arg (v,int));
3032 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3033 function prototypes and stuff, but not '\xHH' hex character constants.
3034 These don't provoke an error unfortunately, instead are silently treated
3035 as 'x'. The following induces an error, until -std is added to get
3036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3037 array size at least. It's necessary to write '\x00'==0 to get something
3038 that's true only with -std. */
3039 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3042 inside strings and character constants. */
3044 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046 int test (int i, double x);
3047 struct s1 {int (*f) (int a);};
3048 struct s2 {int (*f) (double a);};
3049 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3055 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3060 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 CC="$ac_save_CC $ac_arg"
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071 $as_echo "$ac_try_echo") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3084 $as_echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3093 rm -f conftest.$ac_ext
3098 case "x$ac_cv_prog_cc_c89" in
3100 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3101 $as_echo "none needed" >&6; } ;;
3103 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3104 $as_echo "unsupported" >&6; } ;;
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 # Find a good install program. We prefer a C program (faster),
3119 # so one script is as good as another. But avoid the broken or
3120 # incompatible versions:
3121 # SysV /etc/install, /usr/sbin/install
3122 # SunOS /usr/etc/install
3123 # IRIX /sbin/install
3125 # AmigaOS /C/install, which installs bootblocks on floppy discs
3126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3129 # OS/2's system install, which has a completely different semantic
3130 # ./install, which can be erroneously created by make from ./install.sh.
3131 # Reject install programs that cannot install multiple files.
3132 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3133 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3134 if test -z "$INSTALL"; then
3135 if test "${ac_cv_path_install+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 # Account for people who put trailing slashes in PATH elements.
3145 ./ | .// | /cC/* | \
3146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3150 # OSF1 and SCO ODT 3.0 have their own names for install.
3151 # Don't use installbsd from OSF since it installs stuff as root
3153 for ac_prog in ginstall scoinst install; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3156 if test $ac_prog = install &&
3157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3158 # AIX install. It has an incompatible calling convention.
3160 elif test $ac_prog = install &&
3161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3162 # program-specific install script used by HP pwplus--don't use.
3165 rm -rf conftest.one conftest.two conftest.dir
3166 echo one > conftest.one
3167 echo two > conftest.two
3169 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3170 test -s conftest.one && test -s conftest.two &&
3171 test -s conftest.dir/conftest.one &&
3172 test -s conftest.dir/conftest.two
3174 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3187 rm -rf conftest.one conftest.two conftest.dir
3190 if test "${ac_cv_path_install+set}" = set; then
3191 INSTALL=$ac_cv_path_install
3193 # As a last resort, use the slow shell script. Don't cache a
3194 # value for INSTALL within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the value is a relative name.
3197 INSTALL=$ac_install_sh
3200 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3201 $as_echo "$INSTALL" >&6; }
3203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3204 # It thinks the first close brace ends the variable substitution.
3205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3211 # Check whether --enable-shared was given.
3212 if test "${enable_shared+set}" = set; then
3213 enableval=$enable_shared; p=${PACKAGE-default}
3215 yes) enable_shared=yes ;;
3216 no) enable_shared=no ;;
3219 # Look at the argument we got. We use all the common list separators.
3220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3221 for pkg in $enableval; do
3223 if test "X$pkg" = "X$p"; then
3235 # Check whether --enable-static was given.
3236 if test "${enable_static+set}" = set; then
3237 enableval=$enable_static; p=${PACKAGE-default}
3239 yes) enable_static=yes ;;
3240 no) enable_static=no ;;
3243 # Look at the argument we got. We use all the common list separators.
3244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3245 for pkg in $enableval; do
3247 if test "X$pkg" = "X$p"; then
3259 # Check whether --enable-fast-install was given.
3260 if test "${enable_fast_install+set}" = set; then
3261 enableval=$enable_fast_install; p=${PACKAGE-default}
3263 yes) enable_fast_install=yes ;;
3264 no) enable_fast_install=no ;;
3266 enable_fast_install=no
3267 # Look at the argument we got. We use all the common list separators.
3268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3269 for pkg in $enableval; do
3271 if test "X$pkg" = "X$p"; then
3272 enable_fast_install=yes
3279 enable_fast_install=yes
3283 # Make sure we can run config.sub.
3284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3285 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3286 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3287 { (exit 1); exit 1; }; }
3289 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3290 $as_echo_n "checking build system type... " >&6; }
3291 if test "${ac_cv_build+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3294 ac_build_alias=$build_alias
3295 test "x$ac_build_alias" = x &&
3296 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3297 test "x$ac_build_alias" = x &&
3298 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3299 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3300 { (exit 1); exit 1; }; }
3301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3302 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3303 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3304 { (exit 1); exit 1; }; }
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3308 $as_echo "$ac_cv_build" >&6; }
3309 case $ac_cv_build in
3311 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3312 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3313 { (exit 1); exit 1; }; };;
3316 ac_save_IFS=$IFS; IFS='-'
3322 # Remember, the first character of IFS is used to create $*,
3323 # except with old shells:
3326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3329 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3330 $as_echo_n "checking host system type... " >&6; }
3331 if test "${ac_cv_host+set}" = set; then
3332 $as_echo_n "(cached) " >&6
3334 if test "x$host_alias" = x; then
3335 ac_cv_host=$ac_cv_build
3337 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3338 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3339 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3340 { (exit 1); exit 1; }; }
3344 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3345 $as_echo "$ac_cv_host" >&6; }
3348 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3349 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3350 { (exit 1); exit 1; }; };;
3353 ac_save_IFS=$IFS; IFS='-'
3359 # Remember, the first character of IFS is used to create $*,
3360 # except with old shells:
3363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3366 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3367 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3368 if test "${lt_cv_path_SED+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3371 # Loop through the user's path and test for sed and gsed.
3372 # Then use that list of sed's as ones to test for truncation.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for lt_ac_prog in sed gsed; do
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3381 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3389 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3390 # along with /bin/sed that truncates output.
3391 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3392 test ! -f $lt_ac_sed && continue
3393 cat /dev/null > conftest.in
3395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3396 # Check for GNU sed and select it if it is found.
3397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3398 lt_cv_path_SED=$lt_ac_sed
3402 cat conftest.in conftest.in >conftest.tmp
3403 mv conftest.tmp conftest.in
3404 cp conftest.in conftest.nl
3406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3407 cmp -s conftest.out conftest.nl || break
3408 # 10000 chars as input seems more than enough
3409 test $lt_ac_count -gt 10 && break
3410 lt_ac_count=`expr $lt_ac_count + 1`
3411 if test $lt_ac_count -gt $lt_ac_max; then
3412 lt_ac_max=$lt_ac_count
3413 lt_cv_path_SED=$lt_ac_sed
3422 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3423 $as_echo "$SED" >&6; }
3425 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3426 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3427 if test "${ac_cv_path_GREP+set}" = set; then
3428 $as_echo_n "(cached) " >&6
3430 if test -z "$GREP"; then
3431 ac_path_GREP_found=false
3432 # Loop through the user's path and test for each of PROGNAME-LIST
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3437 test -z "$as_dir" && as_dir=.
3438 for ac_prog in grep ggrep; do
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3442 # Check for GNU ac_path_GREP and select it if it is found.
3443 # Check for GNU $ac_path_GREP
3444 case `"$ac_path_GREP" --version 2>&1` in
3446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3449 $as_echo_n 0123456789 >"conftest.in"
3452 cat "conftest.in" "conftest.in" >"conftest.tmp"
3453 mv "conftest.tmp" "conftest.in"
3454 cp "conftest.in" "conftest.nl"
3455 $as_echo 'GREP' >> "conftest.nl"
3456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3458 ac_count=`expr $ac_count + 1`
3459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3460 # Best one so far, save it but keep looking for a better one
3461 ac_cv_path_GREP="$ac_path_GREP"
3462 ac_path_GREP_max=$ac_count
3464 # 10*(2^10) chars as input seems more than enough
3465 test $ac_count -gt 10 && break
3467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3470 $ac_path_GREP_found && break 3
3475 if test -z "$ac_cv_path_GREP"; then
3476 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3477 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3478 { (exit 1); exit 1; }; }
3481 ac_cv_path_GREP=$GREP
3485 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3486 $as_echo "$ac_cv_path_GREP" >&6; }
3487 GREP="$ac_cv_path_GREP"
3490 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3491 $as_echo_n "checking for egrep... " >&6; }
3492 if test "${ac_cv_path_EGREP+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3495 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3496 then ac_cv_path_EGREP="$GREP -E"
3498 if test -z "$EGREP"; then
3499 ac_path_EGREP_found=false
3500 # Loop through the user's path and test for each of PROGNAME-LIST
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3505 test -z "$as_dir" && as_dir=.
3506 for ac_prog in egrep; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3509 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3510 # Check for GNU ac_path_EGREP and select it if it is found.
3511 # Check for GNU $ac_path_EGREP
3512 case `"$ac_path_EGREP" --version 2>&1` in
3514 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3517 $as_echo_n 0123456789 >"conftest.in"
3520 cat "conftest.in" "conftest.in" >"conftest.tmp"
3521 mv "conftest.tmp" "conftest.in"
3522 cp "conftest.in" "conftest.nl"
3523 $as_echo 'EGREP' >> "conftest.nl"
3524 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3526 ac_count=`expr $ac_count + 1`
3527 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3528 # Best one so far, save it but keep looking for a better one
3529 ac_cv_path_EGREP="$ac_path_EGREP"
3530 ac_path_EGREP_max=$ac_count
3532 # 10*(2^10) chars as input seems more than enough
3533 test $ac_count -gt 10 && break
3535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3538 $ac_path_EGREP_found && break 3
3543 if test -z "$ac_cv_path_EGREP"; then
3544 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3545 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3546 { (exit 1); exit 1; }; }
3549 ac_cv_path_EGREP=$EGREP
3554 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3555 $as_echo "$ac_cv_path_EGREP" >&6; }
3556 EGREP="$ac_cv_path_EGREP"
3560 # Check whether --with-gnu-ld was given.
3561 if test "${with_gnu_ld+set}" = set; then
3562 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3568 if test "$GCC" = yes; then
3569 # Check if gcc -print-prog-name=ld gives a path.
3570 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3571 $as_echo_n "checking for ld used by $CC... " >&6; }
3574 # gcc leaves a trailing carriage return which upsets mingw
3575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3580 # Accept absolute paths.
3582 re_direlt='/[^/][^/]*/\.\./'
3583 # Canonicalize the pathname of ld
3584 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3586 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3588 test -z "$LD" && LD="$ac_prog"
3591 # If it fails, then pretend we aren't using GCC.
3595 # If it is relative, then search for the first ld in PATH.
3599 elif test "$with_gnu_ld" = yes; then
3600 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3601 $as_echo_n "checking for GNU ld... " >&6; }
3603 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3604 $as_echo_n "checking for non-GNU ld... " >&6; }
3606 if test "${lt_cv_path_LD+set}" = set; then
3607 $as_echo_n "(cached) " >&6
3609 if test -z "$LD"; then
3610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3611 for ac_dir in $PATH; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3615 lt_cv_path_LD="$ac_dir/$ac_prog"
3616 # Check to see if the program is GNU ld. I'd rather use --version,
3617 # but apparently some variants of GNU ld only accept -v.
3618 # Break only if it was the GNU/non-GNU ld that we prefer.
3619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3620 *GNU* | *'with BFD'*)
3621 test "$with_gnu_ld" != no && break
3624 test "$with_gnu_ld" != yes && break
3631 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3636 if test -n "$LD"; then
3637 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3638 $as_echo "$LD" >&6; }
3640 { $as_echo "$as_me:$LINENO: result: no" >&5
3641 $as_echo "no" >&6; }
3643 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3644 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3645 { (exit 1); exit 1; }; }
3646 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3648 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3652 case `$LD -v 2>&1 </dev/null` in
3653 *GNU* | *'with BFD'*)
3654 lt_cv_prog_gnu_ld=yes
3657 lt_cv_prog_gnu_ld=no
3661 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3662 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3663 with_gnu_ld=$lt_cv_prog_gnu_ld
3666 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3668 if test "${lt_cv_ld_reload_flag+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3671 lt_cv_ld_reload_flag='-r'
3673 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3675 reload_flag=$lt_cv_ld_reload_flag
3676 case $reload_flag in
3678 *) reload_flag=" $reload_flag" ;;
3680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3683 if test "$GCC" = yes; then
3684 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3691 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3692 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3693 if test "${lt_cv_path_NM+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3700 lt_nm_to_check="${ac_tool_prefix}nm"
3701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3702 lt_nm_to_check="$lt_nm_to_check nm"
3704 for lt_tmp_nm in $lt_nm_to_check; do
3705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3706 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3708 test -z "$ac_dir" && ac_dir=.
3709 tmp_nm="$ac_dir/$lt_tmp_nm"
3710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3711 # Check to see if the nm accepts a BSD-compat flag.
3712 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3713 # nm: unknown option "B" ignored
3714 # Tru64's nm complains that /dev/null is an invalid object file
3715 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3716 */dev/null* | *'Invalid file or object type'*)
3717 lt_cv_path_NM="$tmp_nm -B"
3721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3723 lt_cv_path_NM="$tmp_nm -p"
3727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3728 continue # so that we can try to find one that supports BSD flags
3737 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3740 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3741 $as_echo "$lt_cv_path_NM" >&6; }
3744 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745 $as_echo_n "checking whether ln -s works... " >&6; }
3747 if test "$LN_S" = "ln -s"; then
3748 { $as_echo "$as_me:$LINENO: result: yes" >&5
3749 $as_echo "yes" >&6; }
3751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752 $as_echo "no, using $LN_S" >&6; }
3755 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3756 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
3757 if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 $as_echo_n "(cached) " >&6
3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
3761 lt_cv_file_magic_test_file=
3762 lt_cv_deplibs_check_method='unknown'
3763 # Need to set the preceding variable on all platforms that support
3764 # interlibrary dependencies.
3765 # 'none' -- dependencies not supported.
3766 # `unknown' -- same as none, but documents that we really don't know.
3767 # 'pass_all' -- all dependencies passed with no checks.
3768 # 'test_compile' -- check by making test program.
3769 # 'file_magic [[regex]]' -- check by looking for files in library path
3770 # which responds to the $file_magic_cmd with a given extended regex.
3771 # If you have `file' or equivalent on your system and you're not sure
3772 # whether `pass_all' will *always* work, you probably want this one.
3776 lt_cv_deplibs_check_method=pass_all
3780 lt_cv_deplibs_check_method=pass_all
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3790 # func_win32_libid is a shell function defined in ltmain.sh
3791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3792 lt_cv_file_magic_cmd='func_win32_libid'
3796 # Base MSYS/MinGW do not provide the 'file' command needed by
3797 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3798 # unless we find 'file', for example because we are cross-compiling.
3799 if ( file / ) >/dev/null 2>&1; then
3800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3801 lt_cv_file_magic_cmd='func_win32_libid'
3803 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3804 lt_cv_file_magic_cmd='$OBJDUMP -f'
3808 darwin* | rhapsody*)
3809 lt_cv_deplibs_check_method=pass_all
3812 freebsd* | dragonfly*)
3813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3816 # Not sure whether the presence of OpenBSD here was a mistake.
3817 # Let's accept both of them until this is cleared up.
3818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3819 lt_cv_file_magic_cmd=/usr/bin/file
3820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3824 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_deplibs_check_method=pass_all
3832 hpux10.20* | hpux11*)
3833 lt_cv_file_magic_cmd=/usr/bin/file
3836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3840 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]'
3841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3855 irix5* | irix6* | nonstopux*)
3857 *-32|*"-32 ") libmagic=32-bit;;
3858 *-n32|*"-n32 ") libmagic=N32;;
3859 *-64|*"-64 ") libmagic=64-bit;;
3860 *) libmagic=never-match;;
3862 lt_cv_deplibs_check_method=pass_all
3865 # This must be Linux ELF.
3866 linux* | k*bsd*-gnu)
3867 lt_cv_deplibs_check_method=pass_all
3871 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3880 lt_cv_file_magic_cmd=/usr/bin/file
3881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3885 lt_cv_deplibs_check_method=unknown
3889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3896 osf3* | osf4* | osf5*)
3897 lt_cv_deplibs_check_method=pass_all
3901 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_deplibs_check_method=pass_all
3909 case $host_vendor in
3911 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]'
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3915 lt_cv_deplibs_check_method=pass_all
3918 lt_cv_file_magic_cmd='/bin/file'
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3922 lt_cv_file_magic_cmd='/bin/file'
3923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924 lt_cv_file_magic_test_file=/lib/libc.so
3927 lt_cv_deplibs_check_method=pass_all
3930 lt_cv_deplibs_check_method=pass_all
3935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936 lt_cv_deplibs_check_method=pass_all
3941 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3943 file_magic_cmd=$lt_cv_file_magic_cmd
3944 deplibs_check_method=$lt_cv_deplibs_check_method
3945 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3950 # If no C compiler was specified, use CC.
3953 # If no C compiler flags were specified, use CFLAGS.
3954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3956 # Allow CC to be a program name with arguments.
3960 # Check whether --enable-libtool-lock was given.
3961 if test "${enable_libtool_lock+set}" = set; then
3962 enableval=$enable_libtool_lock;
3965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3967 # Some flags need to be propagated to the compiler or linker for good
3971 # Find out which ABI we are using.
3972 echo 'int i;' > conftest.$ac_ext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3990 # Find out which ABI we are using.
3991 echo '#line 3991 "configure"' > conftest.$ac_ext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; then
3997 if test "$lt_cv_prog_gnu_ld" = yes; then
3998 case `/usr/bin/file conftest.$ac_objext` in
4000 LD="${LD-ld} -melf32bsmip"
4003 LD="${LD-ld} -melf32bmipn32"
4006 LD="${LD-ld} -melf64bmip"
4010 case `/usr/bin/file conftest.$ac_objext` in
4026 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4027 s390*-*linux*|sparc*-*linux*)
4028 # Find out which ABI we are using.
4029 echo 'int i;' > conftest.$ac_ext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>&5
4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; then
4035 case `/usr/bin/file conftest.o` in
4038 x86_64-*kfreebsd*-gnu)
4039 LD="${LD-ld} -m elf_i386_fbsd"
4042 LD="${LD-ld} -m elf_i386"
4044 ppc64-*linux*|powerpc64-*linux*)
4045 LD="${LD-ld} -m elf32ppclinux"
4048 LD="${LD-ld} -m elf_s390"
4051 LD="${LD-ld} -m elf32_sparc"
4057 x86_64-*kfreebsd*-gnu)
4058 LD="${LD-ld} -m elf_x86_64_fbsd"
4061 LD="${LD-ld} -m elf_x86_64"
4063 ppc*-*linux*|powerpc*-*linux*)
4064 LD="${LD-ld} -m elf64ppc"
4067 LD="${LD-ld} -m elf64_s390"
4070 LD="${LD-ld} -m elf64_sparc"
4080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4081 SAVE_CFLAGS="$CFLAGS"
4082 CFLAGS="$CFLAGS -belf"
4083 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4084 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4085 if test "${lt_cv_cc_needs_belf+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4109 rm -f conftest.$ac_objext conftest$ac_exeext
4110 if { (ac_try="$ac_link"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4116 $as_echo "$ac_try_echo") >&5
4117 (eval "$ac_link") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest$ac_exeext && {
4127 test "$cross_compiling" = yes ||
4128 $as_test_x conftest$ac_exeext
4130 lt_cv_cc_needs_belf=yes
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 lt_cv_cc_needs_belf=no
4138 rm -rf conftest.dSYM
4139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4140 conftest$ac_exeext conftest.$ac_ext
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4149 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4150 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4151 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4152 CFLAGS="$SAVE_CFLAGS"
4156 # Find out which ABI we are using.
4157 echo 'int i;' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 case `/usr/bin/file conftest.o` in
4165 case $lt_cv_prog_gnu_ld in
4166 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4168 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4182 need_locks="$enable_libtool_lock"
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4191 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4192 # On Suns, sometimes $CPP names a directory.
4193 if test -n "$CPP" && test -d "$CPP"; then
4196 if test -z "$CPP"; then
4197 if test "${ac_cv_prog_CPP+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4200 # Double quotes because CPP needs to be expanded
4201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4204 for ac_c_preproc_warn_flag in '' yes
4206 # Use a header file that comes with gcc, so configuring glibc
4207 # with a fresh cross-compiler works.
4208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4209 # <limits.h> exists even on freestanding compilers.
4210 # On the NeXT, cc -E runs the code through the compiler's parser,
4211 # not just through cpp. "Syntax error" is here to catch this case.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4219 # include <limits.h>
4221 # include <assert.h>
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231 $as_echo "$ac_try_echo") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null && {
4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4244 $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 # Broken: fails on valid input.
4251 rm -f conftest.err conftest.$ac_ext
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat >conftest.$ac_ext <<_ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 #include <ac_nonexistent.h>
4263 if { (ac_try="$ac_cpp conftest.$ac_ext"
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269 $as_echo "$ac_try_echo") >&5
4270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } >/dev/null && {
4277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4280 # Broken: success on invalid input.
4283 $as_echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 # Passes both tests.
4291 rm -f conftest.err conftest.$ac_ext
4294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4295 rm -f conftest.err conftest.$ac_ext
4296 if $ac_preproc_ok; then
4308 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4309 $as_echo "$CPP" >&6; }
4311 for ac_c_preproc_warn_flag in '' yes
4313 # Use a header file that comes with gcc, so configuring glibc
4314 # with a fresh cross-compiler works.
4315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4316 # <limits.h> exists even on freestanding compilers.
4317 # On the NeXT, cc -E runs the code through the compiler's parser,
4318 # not just through cpp. "Syntax error" is here to catch this case.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4326 # include <limits.h>
4328 # include <assert.h>
4332 if { (ac_try="$ac_cpp conftest.$ac_ext"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4338 $as_echo "$ac_try_echo") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4351 $as_echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 # Broken: fails on valid input.
4358 rm -f conftest.err conftest.$ac_ext
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #include <ac_nonexistent.h>
4370 if { (ac_try="$ac_cpp conftest.$ac_ext"
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376 $as_echo "$ac_try_echo") >&5
4377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4387 # Broken: success on invalid input.
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Passes both tests.
4398 rm -f conftest.err conftest.$ac_ext
4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402 rm -f conftest.err conftest.$ac_ext
4403 if $ac_preproc_ok; then
4406 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4407 See \`config.log' for more details." >&5
4408 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4409 See \`config.log' for more details." >&2;}
4410 { (exit 1); exit 1; }; }
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4421 $as_echo_n "checking for ANSI C header files... " >&6; }
4422 if test "${ac_cv_header_stdc+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4444 rm -f conftest.$ac_objext
4445 if { (ac_try="$ac_compile"
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4451 $as_echo "$ac_try_echo") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 ac_cv_header_stdc=yes
4464 $as_echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_header_stdc=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 if test $ac_cv_header_stdc = yes; then
4473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4474 cat >conftest.$ac_ext <<_ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then
4487 ac_cv_header_stdc=no
4493 if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "free" >/dev/null 2>&1; then
4508 ac_cv_header_stdc=no
4514 if test $ac_cv_header_stdc = yes; then
4515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4516 if test "$cross_compiling" = yes; then
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 rm -f conftest$ac_exeext
4551 if { (ac_try="$ac_link"
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557 $as_echo "$ac_try_echo") >&5
4558 (eval "$ac_link") 2>&5
4560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567 $as_echo "$ac_try_echo") >&5
4568 (eval "$ac_try") 2>&5
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4574 $as_echo "$as_me: program exited with status $ac_status" >&5
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_cv_header_stdc=no
4581 rm -rf conftest.dSYM
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4589 $as_echo "$ac_cv_header_stdc" >&6; }
4590 if test $ac_cv_header_stdc = yes; then
4592 cat >>confdefs.h <<\_ACEOF
4593 #define STDC_HEADERS 1
4598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4609 inttypes.h stdint.h unistd.h
4611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 $as_echo_n "checking for $ac_header... " >&6; }
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 $as_echo_n "(cached) " >&6
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 $ac_includes_default
4625 #include <$ac_header>
4627 rm -f conftest.$ac_objext
4628 if { (ac_try="$ac_compile"
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 eval "$as_ac_Header=yes"
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 eval "$as_ac_Header=no"
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_res=`eval 'as_val=${'$as_ac_Header'}
4656 $as_echo "$as_val"'`
4657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4658 $as_echo "$ac_res" >&6; }
4659 if test `eval 'as_val=${'$as_ac_Header'}
4660 $as_echo "$as_val"'` = yes; then
4661 cat >>confdefs.h <<_ACEOF
4662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4671 for ac_header in dlfcn.h
4673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4676 $as_echo_n "checking for $ac_header... " >&6; }
4677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4678 $as_echo_n "(cached) " >&6
4680 ac_res=`eval 'as_val=${'$as_ac_Header'}
4681 $as_echo "$as_val"'`
4682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4683 $as_echo "$ac_res" >&6; }
4685 # Is the header compilable?
4686 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4687 $as_echo_n "checking $ac_header usability... " >&6; }
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 $ac_includes_default
4695 #include <$ac_header>
4697 rm -f conftest.$ac_objext
4698 if { (ac_try="$ac_compile"
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4704 $as_echo "$ac_try_echo") >&5
4705 (eval "$ac_compile") 2>conftest.er1
4707 grep -v '^ *+' conftest.er1 >conftest.err
4709 cat conftest.err >&5
4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && {
4712 test -z "$ac_c_werror_flag" ||
4713 test ! -s conftest.err
4714 } && test -s conftest.$ac_objext; then
4715 ac_header_compiler=yes
4717 $as_echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 ac_header_compiler=no
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4725 $as_echo "$ac_header_compiler" >&6; }
4727 # Is the header present?
4728 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4729 $as_echo_n "checking $ac_header presence... " >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 #include <$ac_header>
4738 if { (ac_try="$ac_cpp conftest.$ac_ext"
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4744 $as_echo "$ac_try_echo") >&5
4745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 grep -v '^ *+' conftest.er1 >conftest.err
4749 cat conftest.err >&5
4750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null && {
4752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4755 ac_header_preproc=yes
4757 $as_echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 ac_header_preproc=no
4763 rm -f conftest.err conftest.$ac_ext
4764 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765 $as_echo "$ac_header_preproc" >&6; }
4767 # So? What about this header?
4768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4771 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4778 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4780 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4782 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4784 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4788 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4790 ## ----------------------------------------------- ##
4791 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
4792 ## ----------------------------------------------- ##
4794 ) | sed "s/^/$as_me: WARNING: /" >&2
4797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4798 $as_echo_n "checking for $ac_header... " >&6; }
4799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4800 $as_echo_n "(cached) " >&6
4802 eval "$as_ac_Header=\$ac_header_preproc"
4804 ac_res=`eval 'as_val=${'$as_ac_Header'}
4805 $as_echo "$as_val"'`
4806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807 $as_echo "$ac_res" >&6; }
4810 if test `eval 'as_val=${'$as_ac_Header'}
4811 $as_echo "$as_val"'` = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4821 ac_cpp='$CXXCPP $CPPFLAGS'
4822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4825 if test -z "$CXX"; then
4826 if test -n "$CCC"; then
4829 if test -n "$ac_tool_prefix"; then
4830 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_CXX+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4839 if test -n "$CXX"; then
4840 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 if test -n "$CXX"; then
4861 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4862 $as_echo "$CXX" >&6; }
4864 { $as_echo "$as_me:$LINENO: result: no" >&5
4865 $as_echo "no" >&6; }
4869 test -n "$CXX" && break
4872 if test -z "$CXX"; then
4874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$ac_ct_CXX"; then
4884 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_CXX="$ac_prog"
4894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4904 if test -n "$ac_ct_CXX"; then
4905 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4906 $as_echo "$ac_ct_CXX" >&6; }
4908 { $as_echo "$as_me:$LINENO: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$ac_ct_CXX" && break
4916 if test "x$ac_ct_CXX" = x; then
4919 case $cross_compiling:$ac_tool_warned in
4921 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4922 whose name does not start with the host triplet. If you think this
4923 configuration is useful to you, please write to autoconf@gnu.org." >&5
4924 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4925 whose name does not start with the host triplet. If you think this
4926 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4927 ac_tool_warned=yes ;;
4935 # Provide some information about the compiler.
4936 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4939 { (ac_try="$ac_compiler --version >&5"
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945 $as_echo "$ac_try_echo") >&5
4946 (eval "$ac_compiler --version >&5") 2>&5
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }
4950 { (ac_try="$ac_compiler -v >&5"
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4956 $as_echo "$ac_try_echo") >&5
4957 (eval "$ac_compiler -v >&5") 2>&5
4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }
4961 { (ac_try="$ac_compiler -V >&5"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compiler -V >&5") 2>&5
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4973 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4974 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4975 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4976 $as_echo_n "(cached) " >&6
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4996 rm -f conftest.$ac_objext
4997 if { (ac_try="$ac_compile"
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003 $as_echo "$ac_try_echo") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_cxx_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5026 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5027 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5033 ac_test_CXXFLAGS=${CXXFLAGS+set}
5034 ac_save_CXXFLAGS=$CXXFLAGS
5035 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5036 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5037 if test "${ac_cv_prog_cxx_g+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5040 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5041 ac_cxx_werror_flag=yes
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } && {
5074 test -z "$ac_cxx_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_prog_cxx_g=yes
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105 $as_echo "$ac_try_echo") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_cxx_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145 $as_echo "$ac_try_echo") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_cxx_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cxx_g=yes
5158 $as_echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5173 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5174 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5175 if test "$ac_test_CXXFLAGS" = set; then
5176 CXXFLAGS=$ac_save_CXXFLAGS
5177 elif test $ac_cv_prog_cxx_g = yes; then
5178 if test "$GXX" = yes; then
5184 if test "$GXX" = yes; then
5191 ac_cpp='$CXXCPP $CPPFLAGS'
5192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5199 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5200 (test "X$CXX" != "Xg++"))) ; then
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5207 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5208 if test -z "$CXXCPP"; then
5209 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5210 $as_echo_n "(cached) " >&6
5212 # Double quotes because CXXCPP needs to be expanded
5213 for CXXCPP in "$CXX -E" "/lib/cpp"
5216 for ac_cxx_preproc_warn_flag in '' yes
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5231 # include <limits.h>
5233 # include <assert.h>
5237 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243 $as_echo "$ac_try_echo") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246 grep -v '^ *+' conftest.er1 >conftest.err
5248 cat conftest.err >&5
5249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5252 test ! -s conftest.err
5256 $as_echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 # Broken: fails on valid input.
5263 rm -f conftest.err conftest.$ac_ext
5265 # OK, works on sane cases. Now check whether nonexistent headers
5266 # can be detected and how.
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 #include <ac_nonexistent.h>
5275 if { (ac_try="$ac_cpp conftest.$ac_ext"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5281 $as_echo "$ac_try_echo") >&5
5282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null && {
5289 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5290 test ! -s conftest.err
5292 # Broken: success on invalid input.
5295 $as_echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 # Passes both tests.
5303 rm -f conftest.err conftest.$ac_ext
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5313 ac_cv_prog_CXXCPP=$CXXCPP
5316 CXXCPP=$ac_cv_prog_CXXCPP
5318 ac_cv_prog_CXXCPP=$CXXCPP
5320 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5321 $as_echo "$CXXCPP" >&6; }
5323 for ac_cxx_preproc_warn_flag in '' yes
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5338 # include <limits.h>
5340 # include <assert.h>
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5350 $as_echo "$ac_try_echo") >&5
5351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null && {
5358 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5359 test ! -s conftest.err
5363 $as_echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Broken: fails on valid input.
5370 rm -f conftest.err conftest.$ac_ext
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 #include <ac_nonexistent.h>
5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388 $as_echo "$ac_try_echo") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null && {
5396 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5399 # Broken: success on invalid input.
5402 $as_echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Passes both tests.
5410 rm -f conftest.err conftest.$ac_ext
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5418 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5419 See \`config.log' for more details." >&5
5420 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5421 See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5426 ac_cpp='$CXXCPP $CPPFLAGS'
5427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5435 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5436 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5438 if test -n "$ac_tool_prefix"; then
5439 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
5441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_F77+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5448 if test -n "$F77"; then
5449 ac_cv_prog_F77="$F77" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 if test -n "$F77"; then
5470 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5471 $as_echo "$F77" >&6; }
5473 { $as_echo "$as_me:$LINENO: result: no" >&5
5474 $as_echo "no" >&6; }
5478 test -n "$F77" && break
5481 if test -z "$F77"; then
5483 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
5485 # Extract the first word of "$ac_prog", so it can be a program name with args.
5486 set dummy $ac_prog; ac_word=$2
5487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$ac_ct_F77"; then
5493 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_F77="$ac_prog"
5503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5513 if test -n "$ac_ct_F77"; then
5514 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5515 $as_echo "$ac_ct_F77" >&6; }
5517 { $as_echo "$as_me:$LINENO: result: no" >&5
5518 $as_echo "no" >&6; }
5522 test -n "$ac_ct_F77" && break
5525 if test "x$ac_ct_F77" = x; then
5528 case $cross_compiling:$ac_tool_warned in
5530 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5531 whose name does not start with the host triplet. If you think this
5532 configuration is useful to you, please write to autoconf@gnu.org." >&5
5533 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5534 whose name does not start with the host triplet. If you think this
5535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5536 ac_tool_warned=yes ;;
5543 # Provide some information about the compiler.
5544 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5547 { (ac_try="$ac_compiler --version >&5"
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5553 $as_echo "$ac_try_echo") >&5
5554 (eval "$ac_compiler --version >&5") 2>&5
5556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }
5558 { (ac_try="$ac_compiler -v >&5"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compiler -v >&5") 2>&5
5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569 { (ac_try="$ac_compiler -V >&5"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5575 $as_echo "$ac_try_echo") >&5
5576 (eval "$ac_compiler -V >&5") 2>&5
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5582 # If we don't use `.F' as extension, the preprocessor is not run on the
5583 # input file. (Note that this only needs to work for GNU compilers.)
5586 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5587 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5588 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5589 $as_echo_n "(cached) " >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5606 $as_echo "$ac_try_echo") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_f77_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5619 $as_echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5629 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5630 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5632 ac_test_FFLAGS=${FFLAGS+set}
5633 ac_save_FFLAGS=$FFLAGS
5635 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5636 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5637 if test "${ac_cv_prog_f77_g+set}" = set; then
5638 $as_echo_n "(cached) " >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (ac_try="$ac_compile"
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5653 $as_echo "$ac_try_echo") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5656 grep -v '^ *+' conftest.er1 >conftest.err
5658 cat conftest.err >&5
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_f77_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 ac_cv_prog_f77_g=yes
5666 $as_echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5676 $as_echo "$ac_cv_prog_f77_g" >&6; }
5677 if test "$ac_test_FFLAGS" = set; then
5678 FFLAGS=$ac_save_FFLAGS
5679 elif test $ac_cv_prog_f77_g = yes; then
5680 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5686 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5693 if test $ac_compiler_gnu = yes; then
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5707 # find the maximum length of command line arguments
5708 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5709 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5710 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5718 # On DJGPP, this test can blow up pretty badly due to problems in libc
5719 # (any single argument exceeding 2000 bytes causes a buffer overrun
5720 # during glob expansion). Even if it were fixed, the result of this
5721 # check would be larger than it should be.
5722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5726 # Under GNU Hurd, this test is not required because there is
5727 # no limit to the length of command line arguments.
5728 # Libtool will interpret -1 as no limit whatsoever
5729 lt_cv_sys_max_cmd_len=-1;
5733 # On Win9x/ME, this test blows up -- it succeeds, but takes
5734 # about 5 minutes as the teststring grows exponentially.
5735 # Worse, since 9x/ME are not pre-emptively multitasking,
5736 # you end up with a "frozen" computer, even though with patience
5737 # the test eventually succeeds (with a max line length of 256k).
5738 # Instead, let's just punt: use the minimum linelength reported by
5739 # all of the supported platforms: 8192 (on NT/2K/XP).
5740 lt_cv_sys_max_cmd_len=8192;
5744 # On AmigaOS with pdksh, this test takes hours, literally.
5745 # So we just punt and use a minimum line length of 8192.
5746 lt_cv_sys_max_cmd_len=8192;
5749 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5750 # This has been around since 386BSD, at least. Likely further.
5751 if test -x /sbin/sysctl; then
5752 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5753 elif test -x /usr/sbin/sysctl; then
5754 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5756 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5758 # And add a safety zone
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5764 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5765 lt_cv_sys_max_cmd_len=196608
5769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5771 # nice to cause kernel panics so lets avoid the loop below.
5772 # First set a reasonable default.
5773 lt_cv_sys_max_cmd_len=16384
5775 if test -x /sbin/sysconfig; then
5776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5782 lt_cv_sys_max_cmd_len=102400
5784 sysv5* | sco5v6* | sysv4.2uw2*)
5785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5786 if test -n "$kargmax"; then
5787 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5789 lt_cv_sys_max_cmd_len=32768
5793 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5794 if test -n "$lt_cv_sys_max_cmd_len"; then
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5799 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5800 = "XX$teststring") >/dev/null 2>&1 &&
5801 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5802 lt_cv_sys_max_cmd_len=$new_result &&
5803 test $i != 17 # 1/2 MB should be enough
5806 teststring=$teststring$teststring
5809 # Add a significant safety factor because C++ compilers can tack on massive
5810 # amounts of additional arguments before passing them to the linker.
5811 # It appears as though 1/2 is a usable value.
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5819 if test -n $lt_cv_sys_max_cmd_len ; then
5820 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5821 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5823 { $as_echo "$as_me:$LINENO: result: none" >&5
5824 $as_echo "none" >&6; }
5831 # Check for command to grab the raw symbol name followed by C symbol from nm.
5832 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5833 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5835 $as_echo_n "(cached) " >&6
5838 # These are sane defaults that work on at least a few old systems.
5839 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5841 # Character class describing NM global symbol codes.
5842 symcode='[BCDEGRST]'
5844 # Regexp to match symbols that can be accessed directly from C.
5845 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5847 # Transform an extracted symbol line into a proper C declaration
5848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5850 # Transform an extracted symbol line into symbol name and symbol address
5851 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'"
5853 # Define system-specific variables.
5858 cygwin* | mingw* | pw32*)
5859 symcode='[ABCDGISTW]'
5861 hpux*) # Its linker distinguishes data from code symbols
5862 if test "$host_cpu" = ia64; then
5863 symcode='[ABCDEGRST]'
5865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5866 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'"
5868 linux* | k*bsd*-gnu)
5869 if test "$host_cpu" = ia64; then
5870 symcode='[ABCDGIRSTW]'
5871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5872 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'"
5876 symcode='[BCDEGRST]'
5879 symcode='[BCDEGQRST]'
5890 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5898 # Handle CRLF in mingw tool chain
5902 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5906 # If we're using GNU nm, then use its standard symbol codes.
5907 case `$NM -V 2>&1` in
5908 *GNU* | *'with BFD'*)
5909 symcode='[ABCDGIRSTW]' ;;
5912 # Try without a prefix undercore, then with it.
5913 for ac_symprfx in "" "_"; do
5915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5916 symxfrm="\\1 $ac_symprfx\\2 \\2"
5918 # Write the raw and C identifiers.
5919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5921 # Check to see that the pipe works correctly.
5925 cat > conftest.$ac_ext <<EOF
5930 void nm_test_func(){}
5934 int main(){nm_test_var='a';nm_test_func();return(0);}
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; then
5942 # Now try to grab the symbols.
5944 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && test -s "$nlist"; then
5949 # Try sorting and uniquifying the output.
5950 if sort "$nlist" | uniq > "$nlist"T; then
5951 mv -f "$nlist"T "$nlist"
5956 # Make sure that we snagged all the symbols we need.
5957 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5958 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5959 cat <<EOF > conftest.$ac_ext
5965 # Now generate the symbol file.
5966 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5968 cat <<EOF >> conftest.$ac_ext
5969 #if defined (__STDC__) && __STDC__
5970 # define lt_ptr_t void *
5972 # define lt_ptr_t char *
5976 /* The mapping between symbol names and symbols. */
5981 lt_preloaded_symbols[] =
5984 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5985 cat <<\EOF >> conftest.$ac_ext
5993 # Now try linking the two files.
5994 mv conftest.$ac_objext conftstm.$ac_objext
5995 lt_save_LIBS="$LIBS"
5996 lt_save_CFLAGS="$CFLAGS"
5997 LIBS="conftstm.$ac_objext"
5998 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>&5
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6006 LIBS="$lt_save_LIBS"
6007 CFLAGS="$lt_save_CFLAGS"
6009 echo "cannot find nm_test_func in $nlist" >&5
6012 echo "cannot find nm_test_var in $nlist" >&5
6015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6018 echo "$progname: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 rm -rf conftest* conftst*
6023 # Do not use the global_symbol_pipe unless it works.
6024 if test "$pipe_works" = yes; then
6027 lt_cv_sys_global_symbol_pipe=
6033 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6034 lt_cv_sys_global_symbol_to_cdecl=
6036 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6037 { $as_echo "$as_me:$LINENO: result: failed" >&5
6038 $as_echo "failed" >&6; }
6040 { $as_echo "$as_me:$LINENO: result: ok" >&5
6041 $as_echo "ok" >&6; }
6044 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6045 $as_echo_n "checking for objdir... " >&6; }
6046 if test "${lt_cv_objdir+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6049 rm -f .libs 2>/dev/null
6050 mkdir .libs 2>/dev/null
6051 if test -d .libs; then
6054 # MS-DOS does not allow filenames that begin with a dot.
6057 rmdir .libs 2>/dev/null
6059 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6060 $as_echo "$lt_cv_objdir" >&6; }
6061 objdir=$lt_cv_objdir
6069 # AIX sometimes has problems with the GCC collect2 program. For some
6070 # reason, if we set the COLLECT_NAMES environment variable, the problems
6071 # vanish in a puff of smoke.
6072 if test "X${COLLECT_NAMES+set}" != Xset; then
6074 export COLLECT_NAMES
6079 # Sed substitution that helps us do robust quoting. It backslashifies
6080 # metacharacters that are still active within double-quoted strings.
6081 Xsed='sed -e 1s/^X//'
6082 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6084 # Same as above, but do not quote variable references.
6085 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6087 # Sed substitution to delay expansion of an escaped shell variable in a
6088 # double_quote_subst'ed string.
6089 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6091 # Sed substitution to avoid accidental globbing in evaled expressions
6092 no_glob_subst='s/\*/\\\*/g'
6098 default_ofile=libtool
6099 can_build_shared=yes
6101 # All known linkers require a `.a' archive for static linking (except MSVC,
6102 # which needs '.lib').
6104 ltmain="$ac_aux_dir/ltmain.sh"
6105 ofile="$default_ofile"
6106 with_gnu_ld="$lt_cv_prog_gnu_ld"
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}ar; ac_word=$2
6111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_AR+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_AR="${ac_tool_prefix}ar"
6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 if test -n "$AR"; then
6138 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6139 $as_echo "$AR" >&6; }
6141 { $as_echo "$as_me:$LINENO: result: no" >&5
6142 $as_echo "no" >&6; }
6147 if test -z "$ac_cv_prog_AR"; then
6149 # Extract the first word of "ar", so it can be a program name with args.
6150 set dummy ar; ac_word=$2
6151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6156 if test -n "$ac_ct_AR"; then
6157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_AR="ar"
6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177 if test -n "$ac_ct_AR"; then
6178 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6179 $as_echo "$ac_ct_AR" >&6; }
6181 { $as_echo "$as_me:$LINENO: result: no" >&5
6182 $as_echo "no" >&6; }
6185 if test "x$ac_ct_AR" = x; then
6188 case $cross_compiling:$ac_tool_warned in
6190 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6191 whose name does not start with the host triplet. If you think this
6192 configuration is useful to you, please write to autoconf@gnu.org." >&5
6193 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet. If you think this
6195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6196 ac_tool_warned=yes ;;
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_RANLIB+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 RANLIB=$ac_cv_prog_RANLIB
6233 if test -n "$RANLIB"; then
6234 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6235 $as_echo "$RANLIB" >&6; }
6237 { $as_echo "$as_me:$LINENO: result: no" >&5
6238 $as_echo "no" >&6; }
6243 if test -z "$ac_cv_prog_RANLIB"; then
6244 ac_ct_RANLIB=$RANLIB
6245 # Extract the first word of "ranlib", so it can be a program name with args.
6246 set dummy ranlib; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6252 if test -n "$ac_ct_RANLIB"; then
6253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_RANLIB="ranlib"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6273 if test -n "$ac_ct_RANLIB"; then
6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6275 $as_echo "$ac_ct_RANLIB" >&6; }
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6281 if test "x$ac_ct_RANLIB" = x; then
6284 case $cross_compiling:$ac_tool_warned in
6286 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287 whose name does not start with the host triplet. If you think this
6288 configuration is useful to you, please write to autoconf@gnu.org." >&5
6289 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet. If you think this
6291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292 ac_tool_warned=yes ;;
6294 RANLIB=$ac_ct_RANLIB
6297 RANLIB="$ac_cv_prog_RANLIB"
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}strip; ac_word=$2
6303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_STRIP+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$STRIP"; then
6309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 STRIP=$ac_cv_prog_STRIP
6329 if test -n "$STRIP"; then
6330 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6331 $as_echo "$STRIP" >&6; }
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334 $as_echo "no" >&6; }
6339 if test -z "$ac_cv_prog_STRIP"; then
6341 # Extract the first word of "strip", so it can be a program name with args.
6342 set dummy strip; ac_word=$2
6343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6348 if test -n "$ac_ct_STRIP"; then
6349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_STRIP="strip"
6359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6369 if test -n "$ac_ct_STRIP"; then
6370 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6371 $as_echo "$ac_ct_STRIP" >&6; }
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374 $as_echo "no" >&6; }
6377 if test "x$ac_ct_STRIP" = x; then
6380 case $cross_compiling:$ac_tool_warned in
6382 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6383 whose name does not start with the host triplet. If you think this
6384 configuration is useful to you, please write to autoconf@gnu.org." >&5
6385 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6386 whose name does not start with the host triplet. If you think this
6387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6388 ac_tool_warned=yes ;;
6393 STRIP="$ac_cv_prog_STRIP"
6398 old_CFLAGS="$CFLAGS"
6400 # Set sane defaults for various variables
6401 test -z "$AR" && AR=ar
6402 test -z "$AR_FLAGS" && AR_FLAGS=cru
6403 test -z "$AS" && AS=as
6404 test -z "$CC" && CC=cc
6405 test -z "$LTCC" && LTCC=$CC
6406 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6407 test -z "$DLLTOOL" && DLLTOOL=dlltool
6408 test -z "$LD" && LD=ld
6409 test -z "$LN_S" && LN_S="ln -s"
6410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6411 test -z "$NM" && NM=nm
6412 test -z "$SED" && SED=sed
6413 test -z "$OBJDUMP" && OBJDUMP=objdump
6414 test -z "$RANLIB" && RANLIB=:
6415 test -z "$STRIP" && STRIP=:
6416 test -z "$ac_objext" && ac_objext=o
6418 # Determine commands to create old-style static archives.
6419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6420 old_postinstall_cmds='chmod 644 $oldlib'
6421 old_postuninstall_cmds=
6423 if test -n "$RANLIB"; then
6426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6435 for cc_temp in $compiler""; do
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6446 # Only perform the check for file, if the check method requires it
6447 case $deplibs_check_method in
6449 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6450 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6451 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6452 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6453 $as_echo_n "(cached) " >&6
6457 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6460 lt_save_MAGIC_CMD="$MAGIC_CMD"
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6463 for ac_dir in $ac_dummy; do
6465 test -z "$ac_dir" && ac_dir=.
6466 if test -f $ac_dir/${ac_tool_prefix}file; then
6467 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6468 if test -n "$file_magic_test_file"; then
6469 case $deplibs_check_method in
6471 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6473 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6474 $EGREP "$file_magic_regex" > /dev/null; then
6479 *** Warning: the command libtool uses to detect shared libraries,
6480 *** $file_magic_cmd, produces output that libtool cannot recognize.
6481 *** The result is that libtool may fail to recognize shared libraries
6482 *** as such. This will affect the creation of libtool libraries that
6483 *** depend on shared libraries, but programs linked with such libtool
6484 *** libraries will work regardless of this problem. Nevertheless, you
6485 *** may want to report the problem to your system manager and/or to
6486 *** bug-libtool@gnu.org
6496 MAGIC_CMD="$lt_save_MAGIC_CMD"
6501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6502 if test -n "$MAGIC_CMD"; then
6503 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6504 $as_echo "$MAGIC_CMD" >&6; }
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6510 if test -z "$lt_cv_path_MAGIC_CMD"; then
6511 if test -n "$ac_tool_prefix"; then
6512 { $as_echo "$as_me:$LINENO: checking for file" >&5
6513 $as_echo_n "checking for file... " >&6; }
6514 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6522 lt_save_MAGIC_CMD="$MAGIC_CMD"
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525 for ac_dir in $ac_dummy; do
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/file; then
6529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530 if test -n "$file_magic_test_file"; then
6531 case $deplibs_check_method in
6533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536 $EGREP "$file_magic_regex" > /dev/null; then
6541 *** Warning: the command libtool uses to detect shared libraries,
6542 *** $file_magic_cmd, produces output that libtool cannot recognize.
6543 *** The result is that libtool may fail to recognize shared libraries
6544 *** as such. This will affect the creation of libtool libraries that
6545 *** depend on shared libraries, but programs linked with such libtool
6546 *** libraries will work regardless of this problem. Nevertheless, you
6547 *** may want to report the problem to your system manager and/or to
6548 *** bug-libtool@gnu.org
6558 MAGIC_CMD="$lt_save_MAGIC_CMD"
6563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564 if test -n "$MAGIC_CMD"; then
6565 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6566 $as_echo "$MAGIC_CMD" >&6; }
6568 { $as_echo "$as_me:$LINENO: result: no" >&5
6569 $as_echo "no" >&6; }
6583 rhapsody* | darwin*)
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$DSYMUTIL"; then
6593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6613 if test -n "$DSYMUTIL"; then
6614 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6615 $as_echo "$DSYMUTIL" >&6; }
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6623 if test -z "$ac_cv_prog_DSYMUTIL"; then
6624 ac_ct_DSYMUTIL=$DSYMUTIL
6625 # Extract the first word of "dsymutil", so it can be a program name with args.
6626 set dummy dsymutil; ac_word=$2
6627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_DSYMUTIL"; then
6633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6653 if test -n "$ac_ct_DSYMUTIL"; then
6654 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6655 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6657 { $as_echo "$as_me:$LINENO: result: no" >&5
6658 $as_echo "no" >&6; }
6661 if test "x$ac_ct_DSYMUTIL" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&5
6669 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet. If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672 ac_tool_warned=yes ;;
6674 DSYMUTIL=$ac_ct_DSYMUTIL
6677 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$NMEDIT"; then
6689 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 NMEDIT=$ac_cv_prog_NMEDIT
6709 if test -n "$NMEDIT"; then
6710 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6711 $as_echo "$NMEDIT" >&6; }
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6719 if test -z "$ac_cv_prog_NMEDIT"; then
6720 ac_ct_NMEDIT=$NMEDIT
6721 # Extract the first word of "nmedit", so it can be a program name with args.
6722 set dummy nmedit; ac_word=$2
6723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6728 if test -n "$ac_ct_NMEDIT"; then
6729 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6749 if test -n "$ac_ct_NMEDIT"; then
6750 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6751 $as_echo "$ac_ct_NMEDIT" >&6; }
6753 { $as_echo "$as_me:$LINENO: result: no" >&5
6754 $as_echo "no" >&6; }
6757 if test "x$ac_ct_NMEDIT" = x; then
6760 case $cross_compiling:$ac_tool_warned in
6762 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet. If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6770 NMEDIT=$ac_ct_NMEDIT
6773 NMEDIT="$ac_cv_prog_NMEDIT"
6777 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6778 $as_echo_n "checking for -single_module linker flag... " >&6; }
6779 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6782 lt_cv_apple_cc_single_mod=no
6783 if test -z "${LT_MULTI_MODULE}"; then
6784 # By default we will add the -single_module flag. You can override
6785 # by either setting the environment variable LT_MULTI_MODULE
6786 # non-empty at configure time, or by adding -multi_module to the
6788 echo "int foo(void){return 1;}" > conftest.c
6789 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6790 -dynamiclib ${wl}-single_module conftest.c
6791 if test -f libconftest.dylib; then
6792 lt_cv_apple_cc_single_mod=yes
6793 rm -rf libconftest.dylib*
6798 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6799 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6800 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6801 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6802 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6803 $as_echo_n "(cached) " >&6
6805 lt_cv_ld_exported_symbols_list=no
6806 save_LDFLAGS=$LDFLAGS
6807 echo "_main" > conftest.sym
6808 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6809 cat >conftest.$ac_ext <<_ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (ac_try="$ac_link"
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832 (eval "$ac_link") 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext && {
6842 test "$cross_compiling" = yes ||
6843 $as_test_x conftest$ac_exeext
6845 lt_cv_ld_exported_symbols_list=yes
6847 $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 lt_cv_ld_exported_symbols_list=no
6853 rm -rf conftest.dSYM
6854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LDFLAGS="$save_LDFLAGS"
6859 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6860 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6862 rhapsody* | darwin1.[0123])
6863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6867 # if running on 10.5 or later, the deployment target defaults
6868 # to the OS version, if on x86, and 10.4, the deployment
6869 # target defaults to 10.4. Don't you love it?
6870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6871 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6881 _lt_dar_single_mod='$single_module'
6883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6886 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6888 if test "$DSYMUTIL" != ":"; then
6889 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6900 # Check whether --enable-libtool-lock was given.
6901 if test "${enable_libtool_lock+set}" = set; then
6902 enableval=$enable_libtool_lock;
6905 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6908 # Check whether --with-pic was given.
6909 if test "${with_pic+set}" = set; then
6910 withval=$with_pic; pic_mode="$withval"
6915 test -z "$pic_mode" && pic_mode=default
6917 # Use C for the default configuration in the libtool script
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 # Source file extension for C test sources.
6930 # Object file extension for compiled C test sources.
6934 # Code to be used in simple compile tests
6935 lt_simple_compile_test_code="int some_variable = 0;"
6937 # Code to be used in simple link tests
6938 lt_simple_link_test_code='int main(){return(0);}'
6941 # If no C compiler was specified, use CC.
6944 # If no C compiler flags were specified, use CFLAGS.
6945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6947 # Allow CC to be a program name with arguments.
6951 # save warnings/boilerplate of simple test code
6952 ac_outfile=conftest.$ac_objext
6953 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6955 _lt_compiler_boilerplate=`cat conftest.err`
6958 ac_outfile=conftest.$ac_objext
6959 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6961 _lt_linker_boilerplate=`cat conftest.err`
6966 lt_prog_compiler_no_builtin_flag=
6968 if test "$GCC" = yes; then
6969 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6972 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6973 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6974 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6975 $as_echo_n "(cached) " >&6
6977 lt_cv_prog_compiler_rtti_exceptions=no
6978 ac_outfile=conftest.$ac_objext
6979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6980 lt_compiler_flag="-fno-rtti -fno-exceptions"
6981 # Insert the option either (1) after the last *FLAGS variable, or
6982 # (2) before a word containing "conftest.", or (3) at the end.
6983 # Note that $ac_compile itself does not contain backslashes and begins
6984 # with a dollar sign (not a hyphen), so the echo should work correctly.
6985 # The option is referenced via a variable to avoid confusing sed.
6986 lt_compile=`echo "$ac_compile" | $SED \
6987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989 -e 's:$: $lt_compiler_flag:'`
6990 (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
6991 (eval "$lt_compile" 2>conftest.err)
6993 cat conftest.err >&5
6994 echo "$as_me:6994: \$? = $ac_status" >&5
6995 if (exit $ac_status) && test -s "$ac_outfile"; then
6996 # The compiler can only warn and ignore the option if not recognized
6997 # So say no if there are warnings other than the usual output.
6998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7001 lt_cv_prog_compiler_rtti_exceptions=yes
7007 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7008 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7010 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7018 lt_prog_compiler_wl=
7019 lt_prog_compiler_pic=
7020 lt_prog_compiler_static=
7022 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7023 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7025 if test "$GCC" = yes; then
7026 lt_prog_compiler_wl='-Wl,'
7027 lt_prog_compiler_static='-static'
7031 # All AIX code is PIC.
7032 if test "$host_cpu" = ia64; then
7033 # AIX 5 now supports IA64 processor
7034 lt_prog_compiler_static='-Bstatic'
7039 # FIXME: we need at least 68020 code to build shared libraries, but
7040 # adding the `-m68020' flag to GCC prevents building anything better,
7042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7046 # PIC is the default for these OSes.
7049 mingw* | cygwin* | pw32* | os2*)
7050 # This hack is so that the source file can tell whether it is being
7051 # built for inclusion in a dll (and should export symbols for example).
7052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7053 # (--disable-auto-import) libraries
7054 lt_prog_compiler_pic='-DDLL_EXPORT'
7057 darwin* | rhapsody*)
7058 # PIC is the default on this platform
7059 # Common symbols not allowed in MH_DYLIB files
7060 lt_prog_compiler_pic='-fno-common'
7064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7065 # Instead, we relocate shared libraries at runtime.
7069 # Just because we use GCC doesn't mean we suddenly get shared libraries
7070 # on systems that don't support them.
7071 lt_prog_compiler_can_build_shared=no
7076 if test -d /usr/nec; then
7077 lt_prog_compiler_pic=-Kconform_pic
7082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7089 lt_prog_compiler_pic='-fPIC'
7095 lt_prog_compiler_pic='-fPIC'
7099 # PORTME Check for flag to pass linker flags through the system compiler.
7102 lt_prog_compiler_wl='-Wl,'
7103 if test "$host_cpu" = ia64; then
7104 # AIX 5 now supports IA64 processor
7105 lt_prog_compiler_static='-Bstatic'
7107 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7111 # PIC is the default on this platform
7112 # Common symbols not allowed in MH_DYLIB files
7113 case $cc_basename in
7115 lt_prog_compiler_pic='-qnocommon'
7116 lt_prog_compiler_wl='-Wl,'
7121 mingw* | cygwin* | pw32* | os2*)
7122 # This hack is so that the source file can tell whether it is being
7123 # built for inclusion in a dll (and should export symbols for example).
7124 lt_prog_compiler_pic='-DDLL_EXPORT'
7127 hpux9* | hpux10* | hpux11*)
7128 lt_prog_compiler_wl='-Wl,'
7129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7136 lt_prog_compiler_pic='+Z'
7139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7140 lt_prog_compiler_static='${wl}-a ${wl}archive'
7143 irix5* | irix6* | nonstopux*)
7144 lt_prog_compiler_wl='-Wl,'
7145 # PIC (with -KPIC) is the default.
7146 lt_prog_compiler_static='-non_shared'
7150 lt_prog_compiler_pic='-KPIC'
7151 lt_prog_compiler_static='-Bstatic'
7154 linux* | k*bsd*-gnu)
7155 case $cc_basename in
7157 lt_prog_compiler_wl='-Wl,'
7158 lt_prog_compiler_pic='-KPIC'
7159 lt_prog_compiler_static='-static'
7161 pgcc* | pgf77* | pgf90* | pgf95*)
7162 # Portland Group compilers (*not* the Pentium gcc compiler,
7163 # which looks to be a dead project)
7164 lt_prog_compiler_wl='-Wl,'
7165 lt_prog_compiler_pic='-fpic'
7166 lt_prog_compiler_static='-Bstatic'
7169 lt_prog_compiler_wl='-Wl,'
7170 # All Alpha code is PIC.
7171 lt_prog_compiler_static='-non_shared'
7174 case `$CC -V 2>&1 | sed 5q` in
7177 lt_prog_compiler_pic='-KPIC'
7178 lt_prog_compiler_static='-Bstatic'
7179 lt_prog_compiler_wl='-Wl,'
7182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7183 lt_prog_compiler_pic='-KPIC'
7184 lt_prog_compiler_static='-Bstatic'
7185 lt_prog_compiler_wl=''
7192 osf3* | osf4* | osf5*)
7193 lt_prog_compiler_wl='-Wl,'
7194 # All OSF/1 code is PIC.
7195 lt_prog_compiler_static='-non_shared'
7199 lt_prog_compiler_static='-non_shared'
7203 lt_prog_compiler_pic='-KPIC'
7204 lt_prog_compiler_static='-Bstatic'
7205 case $cc_basename in
7207 lt_prog_compiler_wl='-Qoption ld ';;
7209 lt_prog_compiler_wl='-Wl,';;
7214 lt_prog_compiler_wl='-Qoption ld '
7215 lt_prog_compiler_pic='-PIC'
7216 lt_prog_compiler_static='-Bstatic'
7219 sysv4 | sysv4.2uw2* | sysv4.3*)
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_pic='-KPIC'
7222 lt_prog_compiler_static='-Bstatic'
7226 if test -d /usr/nec ;then
7227 lt_prog_compiler_pic='-Kconform_pic'
7228 lt_prog_compiler_static='-Bstatic'
7232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7233 lt_prog_compiler_wl='-Wl,'
7234 lt_prog_compiler_pic='-KPIC'
7235 lt_prog_compiler_static='-Bstatic'
7239 lt_prog_compiler_wl='-Wl,'
7240 lt_prog_compiler_can_build_shared=no
7244 lt_prog_compiler_pic='-pic'
7245 lt_prog_compiler_static='-Bstatic'
7249 lt_prog_compiler_can_build_shared=no
7254 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7255 $as_echo "$lt_prog_compiler_pic" >&6; }
7258 # Check to make sure the PIC flag actually works.
7260 if test -n "$lt_prog_compiler_pic"; then
7262 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7263 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7264 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7265 $as_echo_n "(cached) " >&6
7267 lt_cv_prog_compiler_pic_works=no
7268 ac_outfile=conftest.$ac_objext
7269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7271 # Insert the option either (1) after the last *FLAGS variable, or
7272 # (2) before a word containing "conftest.", or (3) at the end.
7273 # Note that $ac_compile itself does not contain backslashes and begins
7274 # with a dollar sign (not a hyphen), so the echo should work correctly.
7275 # The option is referenced via a variable to avoid confusing sed.
7276 lt_compile=`echo "$ac_compile" | $SED \
7277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7279 -e 's:$: $lt_compiler_flag:'`
7280 (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
7281 (eval "$lt_compile" 2>conftest.err)
7283 cat conftest.err >&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 if (exit $ac_status) && test -s "$ac_outfile"; then
7286 # The compiler can only warn and ignore the option if not recognized
7287 # So say no if there are warnings other than the usual output.
7288 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7291 lt_cv_prog_compiler_pic_works=yes
7297 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7298 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7300 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7301 case $lt_prog_compiler_pic in
7303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7306 lt_prog_compiler_pic=
7307 lt_prog_compiler_can_build_shared=no
7312 # For platforms which do not support PIC, -DPIC is meaningless:
7314 lt_prog_compiler_pic=
7317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7322 # Check to make sure the static flag actually works.
7324 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7325 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7326 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7327 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7328 $as_echo_n "(cached) " >&6
7330 lt_cv_prog_compiler_static_works=no
7331 save_LDFLAGS="$LDFLAGS"
7332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7335 # The linker can only warn and ignore the option if not recognized
7336 # So say no if there are warnings
7337 if test -s conftest.err; then
7338 # Append any errors to the config.log.
7339 cat conftest.err 1>&5
7340 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342 if diff conftest.exp conftest.er2 >/dev/null; then
7343 lt_cv_prog_compiler_static_works=yes
7346 lt_cv_prog_compiler_static_works=yes
7350 LDFLAGS="$save_LDFLAGS"
7353 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7354 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7356 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7359 lt_prog_compiler_static=
7363 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7368 lt_cv_prog_compiler_c_o=no
7369 $rm -r conftest 2>/dev/null
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7375 lt_compiler_flag="-o out/conftest2.$ac_objext"
7376 # Insert the option either (1) after the last *FLAGS variable, or
7377 # (2) before a word containing "conftest.", or (3) at the end.
7378 # Note that $ac_compile itself does not contain backslashes and begins
7379 # with a dollar sign (not a hyphen), so the echo should work correctly.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>out/conftest.err)
7387 cat out/conftest.err >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7391 # The compiler can only warn and ignore the option if not recognized
7392 # So say no if there are warnings
7393 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7396 lt_cv_prog_compiler_c_o=yes
7401 # SGI C++ compiler will create directory out/ii_files/ for
7402 # template instantiation
7403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7404 $rm out/* && rmdir out
7410 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7414 hard_links="nottested"
7415 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7416 # do not overwrite the value of need_locks provided by the user
7417 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7418 $as_echo_n "checking if we can lock with hard links... " >&6; }
7421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7423 ln conftest.a conftest.b 2>&5 || hard_links=no
7424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7425 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7426 $as_echo "$hard_links" >&6; }
7427 if test "$hard_links" = no; then
7428 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7429 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7436 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7437 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7440 allow_undefined_flag=
7441 enable_shared_with_static_runtimes=no
7443 archive_expsym_cmds=
7444 old_archive_From_new_cmds=
7445 old_archive_from_expsyms_cmds=
7446 export_dynamic_flag_spec=
7447 whole_archive_flag_spec=
7448 thread_safe_flag_spec=
7449 hardcode_libdir_flag_spec=
7450 hardcode_libdir_flag_spec_ld=
7451 hardcode_libdir_separator=
7454 hardcode_shlibpath_var=unsupported
7455 link_all_deplibs=unknown
7456 hardcode_automatic=no
7459 always_export_symbols=no
7460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7461 # include_expsyms should be a list of space-separated symbols to be *always*
7462 # included in the symbol list
7464 # exclude_expsyms can be an extended regexp of symbols to exclude
7465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7467 # as well as any symbol that contains `d'.
7468 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7470 # platforms (ab)use it in PIC code, but their linkers get confused if
7471 # the symbol is explicitly referenced. Since portable code cannot
7472 # rely on this symbol name, it's probably fine to never include it in
7473 # preloaded symbol tables.
7474 # Exclude shared library initialization/finalization symbols.
7475 extract_expsyms_cmds=
7476 # Just being paranoid about ensuring that cc_basename is set.
7477 for cc_temp in $compiler""; do
7479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7488 cygwin* | mingw* | pw32*)
7489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7490 # When not using gcc, we currently assume that we are using
7491 # Microsoft Visual C++.
7492 if test "$GCC" != yes; then
7497 # we just hope/assume this is gcc and not c89 (= MSVC++)
7506 if test "$with_gnu_ld" = yes; then
7507 # If archive_cmds runs LD, not CC, wlarc should be empty
7510 # Set some defaults for GNU ld with shared library support. These
7511 # are reset later if shared libraries are not supported. Putting them
7512 # here allows them to be overridden if necessary.
7513 runpath_var=LD_RUN_PATH
7514 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7515 export_dynamic_flag_spec='${wl}--export-dynamic'
7516 # ancient GNU ld didn't support --whole-archive et. al.
7517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7518 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7520 whole_archive_flag_spec=
7522 supports_anon_versioning=no
7523 case `$LD -v 2>/dev/null` in
7524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7527 *\ 2.11.*) ;; # other 2.11 versions
7528 *) supports_anon_versioning=yes ;;
7531 # See if GNU ld supports shared libraries.
7534 # On AIX/PPC, the GNU linker is very broken
7535 if test "$host_cpu" != ia64; then
7539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7540 *** to be unable to reliably create shared libraries on AIX.
7541 *** Therefore, libtool is disabling shared libraries support. If you
7542 *** really care for shared libraries, you may want to modify your PATH
7543 *** so that a non-GNU linker is found, and then restart.
7550 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)'
7551 hardcode_libdir_flag_spec='-L$libdir'
7552 hardcode_minus_L=yes
7554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7555 # that the semantics of dynamic libraries on AmigaOS, at least up
7556 # to version 4, is to share data among multiple programs linked
7557 # with the same dynamic library. Since this doesn't match the
7558 # behavior of shared libraries on other platforms, we can't use
7564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7565 allow_undefined_flag=unsupported
7566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7567 # support --undefined. This deserves some investigation. FIXME
7568 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7574 cygwin* | mingw* | pw32*)
7575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7576 # as there is no search path for DLLs.
7577 hardcode_libdir_flag_spec='-L$libdir'
7578 allow_undefined_flag=unsupported
7579 always_export_symbols=no
7580 enable_shared_with_static_runtimes=yes
7581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7585 # If the export-symbols file already is a .def file (1st line
7586 # is EXPORTS), use it as is; otherwise, prepend...
7587 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7588 cp $export_symbols $output_objdir/$soname.def;
7590 echo EXPORTS > $output_objdir/$soname.def;
7591 cat $export_symbols >> $output_objdir/$soname.def;
7593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7601 hardcode_shlibpath_var=no
7602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7603 export_dynamic_flag_spec='${wl}-E'
7604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7605 # Instead, shared libraries are loaded at an image base (0x10000000 by
7606 # default) and relocated if they conflict, which is a slow very memory
7607 # consuming and fragmenting process. To avoid this, we pick a random,
7608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7611 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'
7614 gnu* | linux* | k*bsd*-gnu)
7615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7617 case $cc_basename,$host_cpu in
7618 pgcc*) # Portland Group C compiler
7619 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'
7620 tmp_addflag=' $pic_flag'
7622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7623 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'
7624 tmp_addflag=' $pic_flag -Mnomain' ;;
7625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7626 tmp_addflag=' -i_dynamic' ;;
7627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7628 tmp_addflag=' -i_dynamic -nofor_main' ;;
7629 ifc* | ifort*) # Intel Fortran compiler
7630 tmp_addflag=' -nofor_main' ;;
7632 case `$CC -V 2>&1 | sed 5q` in
7633 *Sun\ C*) # Sun C 5.9
7634 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'
7635 tmp_sharedflag='-G' ;;
7636 *Sun\ F*) # Sun Fortran 8.3
7637 tmp_sharedflag='-G' ;;
7639 tmp_sharedflag='-shared' ;;
7641 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7643 if test $supports_anon_versioning = yes; then
7644 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7646 $echo "local: *; };" >> $output_objdir/$libname.ver~
7647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7656 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7665 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7670 *** create shared libraries on Solaris systems. Therefore, libtool
7671 *** is disabling shared libraries support. We urge you to upgrade GNU
7672 *** binutils to release 2.9.1 or newer. Another option is to modify
7673 *** your PATH or compiler configuration so that the native linker is
7674 *** used, and then restart.
7677 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7686 case `$LD -v 2>&1` in
7687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7692 *** reliably create shared libraries on SCO systems. Therefore, libtool
7693 *** is disabling shared libraries support. We urge you to upgrade GNU
7694 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7695 *** your PATH or compiler configuration so that the native linker is
7696 *** used, and then restart.
7701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7716 hardcode_shlibpath_var=no
7720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7729 if test "$ld_shlibs" = no; then
7731 hardcode_libdir_flag_spec=
7732 export_dynamic_flag_spec=
7733 whole_archive_flag_spec=
7736 # PORTME fill in a description of your system's linker (not GNU ld)
7739 allow_undefined_flag=unsupported
7740 always_export_symbols=yes
7741 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'
7742 # Note: this linker hardcodes the directories in LIBPATH if there
7743 # are no directories specified by -L.
7744 hardcode_minus_L=yes
7745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7746 # Neither direct hardcoding nor static linking is supported with a
7748 hardcode_direct=unsupported
7753 if test "$host_cpu" = ia64; then
7754 # On IA64, the linker does run time linking by default, so we don't
7755 # have to do anything special.
7756 aix_use_runtimelinking=no
7757 exp_sym_flag='-Bexport'
7760 # If we're using GNU nm, then we don't want the "-C" option.
7761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7762 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7763 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'
7765 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'
7767 aix_use_runtimelinking=no
7769 # Test if we are trying to use run time linking or normal
7770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7771 # need to do runtime linking.
7772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7773 for ld_flag in $LDFLAGS; do
7774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7775 aix_use_runtimelinking=yes
7782 exp_sym_flag='-bexport'
7783 no_entry_flag='-bnoentry'
7786 # When large executables or shared objects are built, AIX ld can
7787 # have problems creating the table of contents. If linking a library
7788 # or program results in "error TOC overflow" add -mminimal-toc to
7789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7794 hardcode_libdir_separator=':'
7795 link_all_deplibs=yes
7797 if test "$GCC" = yes; then
7798 case $host_os in aix4.[012]|aix4.[012].*)
7799 # We only want to do this on AIX 4.2 and lower, the check
7800 # below for broken collect2 doesn't work under 4.3+
7801 collect2name=`${CC} -print-prog-name=collect2`
7802 if test -f "$collect2name" && \
7803 strings "$collect2name" | grep resolve_lib_name >/dev/null
7805 # We have reworked collect2
7808 # We have old collect2
7809 hardcode_direct=unsupported
7810 # It fails to find uninstalled libraries when the uninstalled
7811 # path is not listed in the libpath. Setting hardcode_minus_L
7812 # to unsupported forces relinking
7813 hardcode_minus_L=yes
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_libdir_separator=
7819 shared_flag='-shared'
7820 if test "$aix_use_runtimelinking" = yes; then
7821 shared_flag="$shared_flag "'${wl}-G'
7825 if test "$host_cpu" = ia64; then
7826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7827 # chokes on -Wl,-G. The following line is correct:
7830 if test "$aix_use_runtimelinking" = yes; then
7831 shared_flag='${wl}-G'
7833 shared_flag='${wl}-bM:SRE'
7838 # It seems that -bexpall does not export symbols beginning with
7839 # underscore (_), so it is better to generate a list of symbols to export.
7840 always_export_symbols=yes
7841 if test "$aix_use_runtimelinking" = yes; then
7842 # Warning - without using the other runtime loading flags (-brtl),
7843 # -berok will link without error, but may produce a broken library.
7844 allow_undefined_flag='-berok'
7845 # Determine the default libpath from the value encoded in an empty executable.
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (ac_try="$ac_link"
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7868 $as_echo "$ac_try_echo") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext && {
7879 test "$cross_compiling" = yes ||
7880 $as_test_x conftest$ac_exeext
7883 lt_aix_libpath_sed='
7884 /Import File Strings/,/^$/ {
7890 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7891 # Check for a 64-bit object if we didn't find anything.
7892 if test -z "$aix_libpath"; then
7893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7896 $as_echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7902 rm -rf conftest.dSYM
7903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904 conftest$ac_exeext conftest.$ac_ext
7905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7908 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"
7910 if test "$host_cpu" = ia64; then
7911 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7912 allow_undefined_flag="-z nodefs"
7913 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"
7915 # Determine the default libpath from the value encoded in an empty executable.
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7931 rm -f conftest.$ac_objext conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7938 $as_echo "$ac_try_echo") >&5
7939 (eval "$ac_link") 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest$ac_exeext && {
7949 test "$cross_compiling" = yes ||
7950 $as_test_x conftest$ac_exeext
7953 lt_aix_libpath_sed='
7954 /Import File Strings/,/^$/ {
7960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7961 # Check for a 64-bit object if we didn't find anything.
7962 if test -z "$aix_libpath"; then
7963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7966 $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7972 rm -rf conftest.dSYM
7973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7974 conftest$ac_exeext conftest.$ac_ext
7975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7978 # Warning - without using the other run time loading flags,
7979 # -berok will link without error, but may produce a broken library.
7980 no_undefined_flag=' ${wl}-bernotok'
7981 allow_undefined_flag=' ${wl}-berok'
7982 # Exported symbols can be pulled into shared objects from archives
7983 whole_archive_flag_spec='$convenience'
7984 archive_cmds_need_lc=yes
7985 # This is similar to how AIX traditionally builds its shared libraries.
7986 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'
7992 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)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7995 # see comment about different semantics on the GNU ld section
8000 export_dynamic_flag_spec=-rdynamic
8003 cygwin* | mingw* | pw32*)
8004 # When not using gcc, we currently assume that we are using
8005 # Microsoft Visual C++.
8006 # hardcode_libdir_flag_spec is actually meaningless, as there is
8007 # no search path for DLLs.
8008 hardcode_libdir_flag_spec=' '
8009 allow_undefined_flag=unsupported
8010 # Tell ltmain to make .lib files, not .a files.
8012 # Tell ltmain to make .dll files, not .so files.
8014 # FIXME: Setting linknames here is a bad hack.
8015 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8016 # The linker will automatically build a .lib file if we build a DLL.
8017 old_archive_From_new_cmds='true'
8018 # FIXME: Should let the user specify the lib program.
8019 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8020 fix_srcfile_path='`cygpath -w "$srcfile"`'
8021 enable_shared_with_static_runtimes=yes
8024 darwin* | rhapsody*)
8026 rhapsody* | darwin1.[012])
8027 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8030 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8031 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8033 case ${MACOSX_DEPLOYMENT_TARGET} in
8035 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8038 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8044 archive_cmds_need_lc=no
8046 hardcode_automatic=yes
8047 hardcode_shlibpath_var=unsupported
8048 whole_archive_flag_spec=''
8049 link_all_deplibs=yes
8050 if test "$GCC" = yes ; then
8051 output_verbose_link_cmd='echo'
8052 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8053 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8054 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8055 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8057 case $cc_basename in
8059 output_verbose_link_cmd='echo'
8060 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8061 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8063 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}'
8064 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}'
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_libdir_flag_spec='-L$libdir'
8076 hardcode_shlibpath_var=no
8083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8084 # support. Future versions do this automatically, but an explicit c++rt0.o
8085 # does not break anything, and helps significantly (at the cost of a little
8088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8089 hardcode_libdir_flag_spec='-R$libdir'
8091 hardcode_shlibpath_var=no
8094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8098 hardcode_minus_L=yes
8099 hardcode_shlibpath_var=no
8102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8103 freebsd* | dragonfly*)
8104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8105 hardcode_libdir_flag_spec='-R$libdir'
8107 hardcode_shlibpath_var=no
8111 if test "$GCC" = yes; then
8112 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'
8114 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'
8116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8117 hardcode_libdir_separator=:
8120 # hardcode_minus_L: Not really in the search PATH,
8121 # but as the default location of the library.
8122 hardcode_minus_L=yes
8123 export_dynamic_flag_spec='${wl}-E'
8127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8132 if test "$with_gnu_ld" = no; then
8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134 hardcode_libdir_separator=:
8137 export_dynamic_flag_spec='${wl}-E'
8139 # hardcode_minus_L: Not really in the search PATH,
8140 # but as the default location of the library.
8141 hardcode_minus_L=yes
8146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8161 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8171 if test "$with_gnu_ld" = no; then
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8177 hardcode_libdir_flag_spec_ld='+b $libdir'
8179 hardcode_shlibpath_var=no
8183 export_dynamic_flag_spec='${wl}-E'
8185 # hardcode_minus_L: Not really in the search PATH,
8186 # but as the default location of the library.
8187 hardcode_minus_L=yes
8193 irix5* | irix6* | nonstopux*)
8194 if test "$GCC" = yes; then
8195 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'
8197 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'
8198 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201 hardcode_libdir_separator=:
8202 link_all_deplibs=yes
8206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8211 hardcode_libdir_flag_spec='-R$libdir'
8213 hardcode_shlibpath_var=no
8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220 hardcode_libdir_separator=:
8221 hardcode_shlibpath_var=no
8225 if test -f /usr/libexec/ld.so; then
8227 hardcode_shlibpath_var=no
8228 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 export_dynamic_flag_spec='${wl}-E'
8235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8251 hardcode_libdir_flag_spec='-L$libdir'
8252 hardcode_minus_L=yes
8253 allow_undefined_flag=unsupported
8254 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'
8255 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8259 if test "$GCC" = yes; then
8260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8261 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'
8263 allow_undefined_flag=' -expect_unresolved \*'
8264 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'
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator=:
8270 osf4* | osf5*) # as osf3* with the addition of -msym flag
8271 if test "$GCC" = yes; then
8272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8273 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'
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276 allow_undefined_flag=' -expect_unresolved \*'
8277 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'
8278 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8279 $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'
8281 # Both c and cxx compiler support -rpath directly
8282 hardcode_libdir_flag_spec='-rpath $libdir'
8284 hardcode_libdir_separator=:
8288 no_undefined_flag=' -z text'
8289 if test "$GCC" = yes; then
8291 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8293 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8300 hardcode_libdir_flag_spec='-R$libdir'
8301 hardcode_shlibpath_var=no
8303 solaris2.[0-5] | solaris2.[0-5].*) ;;
8305 # The compiler driver will combine and reorder linker options,
8306 # but understands `-z linker_flag'. GCC discards it without `$wl',
8307 # but is careful enough not to reorder.
8308 # Supported since Solaris 2.6 (maybe 2.5.1?)
8309 if test "$GCC" = yes; then
8310 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8316 link_all_deplibs=yes
8320 if test "x$host_vendor" = xsequent; then
8321 # Use $CC to link under sequent, because it throws in some extra .o
8322 # files that make .init and .fini sections work.
8323 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8327 hardcode_libdir_flag_spec='-L$libdir'
8329 hardcode_minus_L=yes
8330 hardcode_shlibpath_var=no
8334 case $host_vendor in
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes # is this really true???
8340 ## LD is ld it makes a PLAMLIB
8341 ## CC just makes a GrossModule.
8342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8343 reload_cmds='$CC -r -o $output$reload_objs'
8347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8351 runpath_var='LD_RUN_PATH'
8352 hardcode_shlibpath_var=no
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var=no
8358 export_dynamic_flag_spec='-Bexport'
8362 if test -d /usr/nec; then
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_shlibpath_var=no
8365 runpath_var=LD_RUN_PATH
8366 hardcode_runpath_var=yes
8371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8372 no_undefined_flag='${wl}-z,text'
8373 archive_cmds_need_lc=no
8374 hardcode_shlibpath_var=no
8375 runpath_var='LD_RUN_PATH'
8377 if test "$GCC" = yes; then
8378 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8381 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8382 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8386 sysv5* | sco3.2v5* | sco5v6*)
8387 # Note: We can NOT use -z defs as we might desire, because we do not
8388 # link with -lc, and that would cause any symbols used from libc to
8389 # always be unresolved, which means just about no library would
8390 # ever link correctly. If we're not using GNU ld we use -z text
8391 # though, which does catch some bad symbols but isn't as heavy-handed
8393 no_undefined_flag='${wl}-z,text'
8394 allow_undefined_flag='${wl}-z,nodefs'
8395 archive_cmds_need_lc=no
8396 hardcode_shlibpath_var=no
8397 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8398 hardcode_libdir_separator=':'
8399 link_all_deplibs=yes
8400 export_dynamic_flag_spec='${wl}-Bexport'
8401 runpath_var='LD_RUN_PATH'
8403 if test "$GCC" = yes; then
8404 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8407 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_libdir_flag_spec='-L$libdir'
8415 hardcode_shlibpath_var=no
8424 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8425 $as_echo "$ld_shlibs" >&6; }
8426 test "$ld_shlibs" = no && can_build_shared=no
8429 # Do we need to explicitly link libc?
8431 case "x$archive_cmds_need_lc" in
8433 # Assume -lc should be added
8434 archive_cmds_need_lc=yes
8436 if test "$enable_shared" = yes && test "$GCC" = yes; then
8437 case $archive_cmds in
8439 # FIXME: we may have to deal with multi-command sequences.
8442 # Test whether the compiler implicitly links with -lc since on some
8443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8444 # to ld, don't add -lc before -lgcc.
8445 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8446 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>&5
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } 2>conftest.err; then
8457 libobjs=conftest.$ac_objext
8459 wl=$lt_prog_compiler_wl
8460 pic_flag=$lt_prog_compiler_pic
8466 lt_save_allow_undefined_flag=$allow_undefined_flag
8467 allow_undefined_flag=
8468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8469 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }
8474 archive_cmds_need_lc=no
8476 archive_cmds_need_lc=yes
8478 allow_undefined_flag=$lt_save_allow_undefined_flag
8480 cat conftest.err 1>&5
8483 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8484 $as_echo "$archive_cmds_need_lc" >&6; }
8491 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8492 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8494 libname_spec='lib$name'
8502 shlibpath_overrides_runpath=unknown
8504 dynamic_linker="$host_os ld.so"
8505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8507 if test "$GCC" = yes; then
8509 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8510 *) lt_awk_arg="/^libraries:/" ;;
8512 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8513 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8514 # if the path contains ";" then we assume it to be the separator
8515 # otherwise default to the standard path separator (i.e. ":") - it is
8516 # assumed that no part of a normal pathname contains ";" but that should
8517 # okay in the real world where ";" in dirpaths is itself problematic.
8518 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8520 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8522 # Ok, now we have the path, separated by spaces, we can step through it
8523 # and add multilib dir if necessary.
8524 lt_tmp_lt_search_path_spec=
8525 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8526 for lt_sys_path in $lt_search_path_spec; do
8527 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8528 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8530 test -d "$lt_sys_path" && \
8531 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8534 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8535 BEGIN {RS=" "; FS="/|\n";} {
8538 for (lt_i = NF; lt_i > 0; lt_i--) {
8539 if ($lt_i != "" && $lt_i != ".") {
8540 if ($lt_i == "..") {
8543 if (lt_count == 0) {
8544 lt_foo="/" $lt_i lt_foo;
8551 if (lt_foo != "") { lt_freq[lt_foo]++; }
8552 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8554 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8556 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8558 need_lib_prefix=unknown
8559 hardcode_into_libs=no
8561 # when you set need_version to no, make sure it does not cause -set_version
8562 # flags to be left without arguments
8563 need_version=unknown
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8569 shlibpath_var=LIBPATH
8571 # AIX 3 has no versioning support, so we append a major version to the name.
8572 soname_spec='${libname}${release}${shared_ext}$major'
8579 hardcode_into_libs=yes
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 supports IA64
8582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8583 shlibpath_var=LD_LIBRARY_PATH
8585 # With GCC up to 2.95.x, collect2 would create an import file
8586 # for dependence libraries. The import file would start with
8587 # the line `#! .'. This would cause the generated library to
8588 # depend on `.', always an invalid library. This was fixed in
8589 # development snapshots of GCC prior to 3.0.
8591 aix4 | aix4.[01] | aix4.[01].*)
8592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8602 # soname into executable. Probably we can add versioning support to
8603 # collect2, so additional links can be useful in future.
8604 if test "$aix_use_runtimelinking" = yes; then
8605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8606 # instead of lib<name>.a to let people know that these are not
8607 # typical AIX shared libraries.
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610 # We preserve .a as extension for shared libraries through AIX4.2
8611 # and later when we are not doing run time linking.
8612 library_names_spec='${libname}${release}.a $libname.a'
8613 soname_spec='${libname}${release}${shared_ext}$major'
8615 shlibpath_var=LIBPATH
8620 library_names_spec='$libname.ixlibrary $libname.a'
8621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8622 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'
8626 library_names_spec='${libname}${shared_ext}'
8627 dynamic_linker="$host_os ld.so"
8628 shlibpath_var=LIBRARY_PATH
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8637 shlibpath_var=LD_LIBRARY_PATH
8638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8640 # the default ld.so.conf also contains /usr/contrib/lib and
8641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8642 # libtool to hard-code these into programs
8645 cygwin* | mingw* | pw32*)
8646 version_type=windows
8651 case $GCC,$host_os in
8652 yes,cygwin* | yes,mingw* | yes,pw32*)
8653 library_names_spec='$libname.dll.a'
8654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8655 postinstall_cmds='base_file=`basename \${file}`~
8656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8657 dldir=$destdir/`dirname \$dlpath`~
8658 test -d \$dldir || mkdir -p \$dldir~
8659 $install_prog $dir/$dlname \$dldir/$dlname~
8660 chmod a+x \$dldir/$dlname'
8661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8662 dlpath=$dir/\$dldll~
8664 shlibpath_overrides_runpath=yes
8668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8673 # MinGW DLLs use traditional 'lib' prefix
8674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8677 # It is most probably a Windows format PATH printed by
8678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8679 # path with ; separators, and with drive letters. We can handle the
8680 # drive letters (cygwin fileutils understands them), so leave them,
8681 # especially as we might pass files found there to a mingw objdump,
8682 # which wouldn't understand a cygwinified path. Ahh.
8683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8689 # pw32 DLLs use 'pw' prefix rather than 'lib'
8690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8699 dynamic_linker='Win32 ld.exe'
8700 # FIXME: first we should search . and the directory the executable is in
8704 darwin* | rhapsody*)
8705 dynamic_linker="$host_os dyld"
8709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8710 soname_spec='${libname}${release}${major}$shared_ext'
8711 shlibpath_overrides_runpath=yes
8712 shlibpath_var=DYLD_LIBRARY_PATH
8713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8715 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8732 freebsd* | dragonfly*)
8733 # DragonFly does not have aout. When/if they implement a new
8734 # versioning mechanism, adjust this.
8735 if test -x /usr/bin/objformat; then
8736 objformat=`/usr/bin/objformat`
8739 freebsd[123]*) objformat=aout ;;
8743 version_type=freebsd-$objformat
8744 case $version_type in
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8755 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes
8760 freebsd3.[01]* | freebsdelf3.[01]*)
8761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8769 *) # from 4.6 on, and DragonFly
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 hardcode_into_libs=yes
8786 hpux9* | hpux10* | hpux11*)
8787 # Give a soname corresponding to the major version so that dld.sl refuses to
8788 # link against other versions.
8795 hardcode_into_libs=yes
8796 dynamic_linker="$host_os dld.so"
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 if test "X$HPUX_IA64_MODE" = X32; then
8802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810 hardcode_into_libs=yes
8811 dynamic_linker="$host_os dld.sl"
8812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=SHLIB_PATH
8823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829 postinstall_cmds='chmod 555 $lib'
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8844 irix5* | irix6* | nonstopux*)
8846 nonstopux*) version_type=nonstopux ;;
8848 if test "$lt_cv_prog_gnu_ld" = yes; then
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8859 irix5* | nonstopux*)
8863 case $LD in # libtool.m4 will add one of these switches to LD
8864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865 libsuff= shlibsuff= libmagic=32-bit;;
8866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867 libsuff=32 shlibsuff=N32 libmagic=N32;;
8868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870 *) libsuff= shlibsuff= libmagic=never-match;;
8874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875 shlibpath_overrides_runpath=no
8876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878 hardcode_into_libs=yes
8881 # No shared lib support for Linux oldld, aout, or coff.
8882 linux*oldld* | linux*aout* | linux*coff*)
8886 # This must be Linux ELF.
8887 linux* | k*bsd*-gnu)
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 # This implies no fast_install, which is unacceptable.
8897 # Some rework will be needed to allow for fast_install
8898 # before this can be enabled.
8899 hardcode_into_libs=yes
8901 # Append ld.so.conf contents to the search path
8902 if test -f /etc/ld.so.conf; then
8903 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' ' '`
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8907 # We used to test for /lib/ld.so.1 and disable shared libraries on
8908 # powerpc, because MkLinux only supported shared libraries with the
8909 # GNU dynamic linker. Since this was broken with cross compilers,
8910 # most powerpc-linux boxes support dynamic linking these days and
8911 # people can always --disable-shared, the test was removed, and we
8912 # assume the GNU/Linux dynamic linker is in use.
8913 dynamic_linker='GNU/Linux ld.so'
8920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923 dynamic_linker='NetBSD (a.out) ld.so'
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 dynamic_linker='NetBSD ld.elf_so'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes
8931 hardcode_into_libs=yes
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=yes
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes
8953 sys_lib_dlsearch_path_spec="/usr/lib"
8955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8958 *) need_version=no ;;
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8965 openbsd2.[89] | openbsd2.[89].*)
8966 shlibpath_overrides_runpath=no
8969 shlibpath_overrides_runpath=yes
8973 shlibpath_overrides_runpath=yes
8978 libname_spec='$name'
8981 library_names_spec='$libname${shared_ext} $libname.a'
8982 dynamic_linker='OS/2 ld.exe'
8983 shlibpath_var=LIBPATH
8986 osf3* | osf4* | osf5*)
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 # ldd complains unless libraries are executable
9011 postinstall_cmds='chmod +x $lib'
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 if test "$with_gnu_ld" = yes; then
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_vendor in
9033 shlibpath_overrides_runpath=no
9035 export_dynamic_flag_spec='${wl}-Blargedynsym'
9036 runpath_var=LD_RUN_PATH
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9051 if test -d /usr/nec ;then
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 hardcode_into_libs=yes
9067 if test "$with_gnu_ld" = yes; then
9068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069 shlibpath_overrides_runpath=no
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 shlibpath_overrides_runpath=yes
9075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9079 sys_lib_dlsearch_path_spec='/usr/lib'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9093 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9094 $as_echo "$dynamic_linker" >&6; }
9095 test "$dynamic_linker" = no && can_build_shared=no
9097 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9100 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9103 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9104 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9105 $as_echo_n "(cached) " >&6
9107 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9110 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9113 if test "$GCC" = yes; then
9114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9117 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9118 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9120 if test -n "$hardcode_libdir_flag_spec" || \
9121 test -n "$runpath_var" || \
9122 test "X$hardcode_automatic" = "Xyes" ; then
9124 # We can hardcode non-existant directories.
9125 if test "$hardcode_direct" != no &&
9126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9127 # have to relink, otherwise we might link with an installed library
9128 # when we should be linking with a yet-to-be-installed one
9129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9130 test "$hardcode_minus_L" != no; then
9131 # Linking always hardcodes the temporary library directory.
9132 hardcode_action=relink
9134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9135 hardcode_action=immediate
9138 # We cannot hardcode anything, or else we can only hardcode existing
9140 hardcode_action=unsupported
9142 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9143 $as_echo "$hardcode_action" >&6; }
9145 if test "$hardcode_action" = relink; then
9146 # Fast installation is not supported
9147 enable_fast_install=no
9148 elif test "$shlibpath_overrides_runpath" = yes ||
9149 test "$enable_shared" = no; then
9150 # Fast installation is not necessary
9151 enable_fast_install=needless
9156 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9157 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9158 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9161 { $as_echo "$as_me:$LINENO: result: yes" >&5
9162 $as_echo "yes" >&6; }
9164 # FIXME - insert some real tests, host_os isn't really good enough
9167 if test -n "$STRIP" ; then
9168 striplib="$STRIP -x"
9169 old_striplib="$STRIP -S"
9170 { $as_echo "$as_me:$LINENO: result: yes" >&5
9171 $as_echo "yes" >&6; }
9173 { $as_echo "$as_me:$LINENO: result: no" >&5
9174 $as_echo "no" >&6; }
9178 { $as_echo "$as_me:$LINENO: result: no" >&5
9179 $as_echo "no" >&6; }
9184 if test "x$enable_dlopen" != xyes; then
9185 enable_dlopen=unknown
9186 enable_dlopen_self=unknown
9187 enable_dlopen_self_static=unknown
9194 lt_cv_dlopen="load_add_on"
9196 lt_cv_dlopen_self=yes
9200 lt_cv_dlopen="LoadLibrary"
9205 lt_cv_dlopen="dlopen"
9210 # if libdl is installed we need to link against it
9211 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9212 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9214 $as_echo_n "(cached) " >&6
9216 ac_check_lib_save_LIBS=$LIBS
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9225 /* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_link") 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest$ac_exeext && {
9258 test "$cross_compiling" = yes ||
9259 $as_test_x conftest$ac_exeext
9261 ac_cv_lib_dl_dlopen=yes
9263 $as_echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_dl_dlopen=no
9269 rm -rf conftest.dSYM
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9275 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9276 if test $ac_cv_lib_dl_dlopen = yes; then
9277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9282 lt_cv_dlopen_self=yes
9289 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9290 $as_echo_n "checking for shl_load... " >&6; }
9291 if test "${ac_cv_func_shl_load+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9302 #define shl_load innocuous_shl_load
9304 /* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char shl_load (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9310 # include <limits.h>
9312 # include <assert.h>
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9324 /* The GNU C library defines this for functions which it implements
9325 to always fail with ENOSYS. Some functions are actually named
9326 something starting with __ and the normal name is an alias. */
9327 #if defined __stub_shl_load || defined __stub___shl_load
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346 $as_echo "$ac_try_echo") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext && {
9357 test "$cross_compiling" = yes ||
9358 $as_test_x conftest$ac_exeext
9360 ac_cv_func_shl_load=yes
9362 $as_echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_cv_func_shl_load=no
9368 rm -rf conftest.dSYM
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9372 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9373 $as_echo "$ac_cv_func_shl_load" >&6; }
9374 if test $ac_cv_func_shl_load = yes; then
9375 lt_cv_dlopen="shl_load"
9377 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9378 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9379 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9380 $as_echo_n "(cached) " >&6
9382 ac_check_lib_save_LIBS=$LIBS
9384 cat >conftest.$ac_ext <<_ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9391 /* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (ac_try="$ac_link"
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9413 $as_echo "$ac_try_echo") >&5
9414 (eval "$ac_link") 2>conftest.er1
9416 grep -v '^ *+' conftest.er1 >conftest.err
9418 cat conftest.err >&5
9419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && {
9421 test -z "$ac_c_werror_flag" ||
9422 test ! -s conftest.err
9423 } && test -s conftest$ac_exeext && {
9424 test "$cross_compiling" = yes ||
9425 $as_test_x conftest$ac_exeext
9427 ac_cv_lib_dld_shl_load=yes
9429 $as_echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_cv_lib_dld_shl_load=no
9435 rm -rf conftest.dSYM
9436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LIBS=$ac_check_lib_save_LIBS
9440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9441 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9442 if test $ac_cv_lib_dld_shl_load = yes; then
9443 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9445 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9446 $as_echo_n "checking for dlopen... " >&6; }
9447 if test "${ac_cv_func_dlopen+set}" = set; then
9448 $as_echo_n "(cached) " >&6
9450 cat >conftest.$ac_ext <<_ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458 #define dlopen innocuous_dlopen
9460 /* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char dlopen (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9466 # include <limits.h>
9468 # include <assert.h>
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9480 /* The GNU C library defines this for functions which it implements
9481 to always fail with ENOSYS. Some functions are actually named
9482 something starting with __ and the normal name is an alias. */
9483 #if defined __stub_dlopen || defined __stub___dlopen
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9505 grep -v '^ *+' conftest.er1 >conftest.err
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest$ac_exeext
9516 ac_cv_func_dlopen=yes
9518 $as_echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_func_dlopen=no
9524 rm -rf conftest.dSYM
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9528 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9529 $as_echo "$ac_cv_func_dlopen" >&6; }
9530 if test $ac_cv_func_dlopen = yes; then
9531 lt_cv_dlopen="dlopen"
9533 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9535 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9536 $as_echo_n "(cached) " >&6
9538 ac_check_lib_save_LIBS=$LIBS
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9569 $as_echo "$ac_try_echo") >&5
9570 (eval "$ac_link") 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext && {
9580 test "$cross_compiling" = yes ||
9581 $as_test_x conftest$ac_exeext
9583 ac_cv_lib_dl_dlopen=yes
9585 $as_echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_lib_dl_dlopen=no
9591 rm -rf conftest.dSYM
9592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593 conftest$ac_exeext conftest.$ac_ext
9594 LIBS=$ac_check_lib_save_LIBS
9596 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9598 if test $ac_cv_lib_dl_dlopen = yes; then
9599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9601 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9602 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9604 $as_echo_n "(cached) " >&6
9606 ac_check_lib_save_LIBS=$LIBS
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9637 $as_echo "$ac_try_echo") >&5
9638 (eval "$ac_link") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext && {
9648 test "$cross_compiling" = yes ||
9649 $as_test_x conftest$ac_exeext
9651 ac_cv_lib_svld_dlopen=yes
9653 $as_echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_lib_svld_dlopen=no
9659 rm -rf conftest.dSYM
9660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9664 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9665 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9666 if test $ac_cv_lib_svld_dlopen = yes; then
9667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9669 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9670 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9671 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9672 $as_echo_n "(cached) " >&6
9674 ac_check_lib_save_LIBS=$LIBS
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9705 $as_echo "$ac_try_echo") >&5
9706 (eval "$ac_link") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext && {
9716 test "$cross_compiling" = yes ||
9717 $as_test_x conftest$ac_exeext
9719 ac_cv_lib_dld_dld_link=yes
9721 $as_echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_lib_dld_dld_link=no
9727 rm -rf conftest.dSYM
9728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729 conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9733 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9734 if test $ac_cv_lib_dld_dld_link = yes; then
9735 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9756 if test "x$lt_cv_dlopen" != xno; then
9762 case $lt_cv_dlopen in
9764 save_CPPFLAGS="$CPPFLAGS"
9765 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9767 save_LDFLAGS="$LDFLAGS"
9768 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9771 LIBS="$lt_cv_dlopen_libs $LIBS"
9773 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9774 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9775 if test "${lt_cv_dlopen_self+set}" = set; then
9776 $as_echo_n "(cached) " >&6
9778 if test "$cross_compiling" = yes; then :
9779 lt_cv_dlopen_self=cross
9781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9782 lt_status=$lt_dlunknown
9783 cat > conftest.$ac_ext <<EOF
9784 #line 9784 "configure"
9785 #include "confdefs.h"
9794 # define LT_DLGLOBAL RTLD_GLOBAL
9797 # define LT_DLGLOBAL DL_GLOBAL
9799 # define LT_DLGLOBAL 0
9803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9804 find out it does not work in some platform. */
9805 #ifndef LT_DLLAZY_OR_NOW
9807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9810 # define LT_DLLAZY_OR_NOW DL_LAZY
9813 # define LT_DLLAZY_OR_NOW RTLD_NOW
9816 # define LT_DLLAZY_OR_NOW DL_NOW
9818 # define LT_DLLAZY_OR_NOW 0
9826 extern "C" void exit (int);
9829 void fnord() { int i=42;}
9832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9833 int status = $lt_dlunknown;
9837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9839 /* dlclose (self); */
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>&5
9850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9852 (./conftest; exit; ) >&5 2>/dev/null
9855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9860 # compilation failed
9861 lt_cv_dlopen_self=no
9868 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9869 $as_echo "$lt_cv_dlopen_self" >&6; }
9871 if test "x$lt_cv_dlopen_self" = xyes; then
9872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9873 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9874 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9875 if test "${lt_cv_dlopen_self_static+set}" = set; then
9876 $as_echo_n "(cached) " >&6
9878 if test "$cross_compiling" = yes; then :
9879 lt_cv_dlopen_self_static=cross
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9894 # define LT_DLGLOBAL RTLD_GLOBAL
9897 # define LT_DLGLOBAL DL_GLOBAL
9899 # define LT_DLGLOBAL 0
9903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905 #ifndef LT_DLLAZY_OR_NOW
9907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9910 # define LT_DLLAZY_OR_NOW DL_LAZY
9913 # define LT_DLLAZY_OR_NOW RTLD_NOW
9916 # define LT_DLLAZY_OR_NOW DL_NOW
9918 # define LT_DLLAZY_OR_NOW 0
9926 extern "C" void exit (int);
9929 void fnord() { int i=42;}
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952 (./conftest; exit; ) >&5 2>/dev/null
9955 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9956 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9957 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9960 # compilation failed
9961 lt_cv_dlopen_self_static=no
9968 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9969 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9972 CPPFLAGS="$save_CPPFLAGS"
9973 LDFLAGS="$save_LDFLAGS"
9978 case $lt_cv_dlopen_self in
9979 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9980 *) enable_dlopen_self=unknown ;;
9983 case $lt_cv_dlopen_self_static in
9984 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9985 *) enable_dlopen_self_static=unknown ;;
9990 # Report which library types will actually be built
9991 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9992 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9993 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9994 $as_echo "$can_build_shared" >&6; }
9996 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9997 $as_echo_n "checking whether to build shared libraries... " >&6; }
9998 test "$can_build_shared" = "no" && enable_shared=no
10000 # On AIX, shared libraries and static libraries use the same namespace, and
10001 # are all built from PIC.
10004 test "$enable_shared" = yes && enable_static=no
10005 if test -n "$RANLIB"; then
10006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10007 postinstall_cmds='$RANLIB $lib'
10012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10013 test "$enable_shared" = yes && enable_static=no
10017 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10018 $as_echo "$enable_shared" >&6; }
10020 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10021 $as_echo_n "checking whether to build static libraries... " >&6; }
10022 # Make sure either enable_shared or enable_static is yes.
10023 test "$enable_shared" = yes || enable_static=yes
10024 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10025 $as_echo "$enable_static" >&6; }
10027 # The else clause should only fire when bootstrapping the
10028 # libtool distribution, otherwise you forgot to ship ltmain.sh
10029 # with your package, and you will get complaints that there are
10030 # no rules to generate ltmain.sh.
10031 if test -f "$ltmain"; then
10032 # See if we are running on zsh, and set the options which allow our commands through
10033 # without removal of \ escapes.
10034 if test -n "${ZSH_VERSION+set}" ; then
10035 setopt NO_GLOB_SUBST
10037 # Now quote all the things that may contain metacharacters while being
10038 # careful not to overquote the AC_SUBSTed values. We take copies of the
10039 # variables and quote the copies for generation of the libtool script.
10040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10044 deplibs_check_method reload_flag reload_cmds need_locks \
10045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10046 lt_cv_sys_global_symbol_to_c_name_address \
10047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10048 old_postinstall_cmds old_postuninstall_cmds \
10052 lt_prog_compiler_wl \
10053 lt_prog_compiler_pic \
10054 lt_prog_compiler_static \
10055 lt_prog_compiler_no_builtin_flag \
10056 export_dynamic_flag_spec \
10057 thread_safe_flag_spec \
10058 whole_archive_flag_spec \
10059 enable_shared_with_static_runtimes \
10061 old_archive_from_new_cmds \
10066 compiler_lib_search_path \
10067 compiler_lib_search_dirs \
10069 archive_expsym_cmds \
10071 postuninstall_cmds \
10072 old_archive_from_expsyms_cmds \
10073 allow_undefined_flag \
10074 no_undefined_flag \
10075 export_symbols_cmds \
10076 hardcode_libdir_flag_spec \
10077 hardcode_libdir_flag_spec_ld \
10078 hardcode_libdir_separator \
10079 hardcode_automatic \
10081 module_expsym_cmds \
10082 lt_cv_prog_compiler_c_o \
10085 include_expsyms; do
10088 old_archive_cmds | \
10089 old_archive_from_new_cmds | \
10091 archive_expsym_cmds | \
10093 module_expsym_cmds | \
10094 old_archive_from_expsyms_cmds | \
10095 export_symbols_cmds | \
10096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10097 postinstall_cmds | postuninstall_cmds | \
10098 old_postinstall_cmds | old_postuninstall_cmds | \
10099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10100 # Double-quote double-evaled strings.
10101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10110 *'\$0 --fallback-echo"')
10111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10115 cfgfile="${ofile}T"
10116 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10118 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10119 $as_echo "$as_me: creating $ofile" >&6;}
10121 cat <<__EOF__ >> "$cfgfile"
10124 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10125 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10126 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10128 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10129 # Free Software Foundation, Inc.
10131 # This file is part of GNU Libtool:
10132 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10134 # This program is free software; you can redistribute it and/or modify
10135 # it under the terms of the GNU General Public License as published by
10136 # the Free Software Foundation; either version 2 of the License, or
10137 # (at your option) any later version.
10139 # This program is distributed in the hope that it will be useful, but
10140 # WITHOUT ANY WARRANTY; without even the implied warranty of
10141 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10142 # General Public License for more details.
10144 # You should have received a copy of the GNU General Public License
10145 # along with this program; if not, write to the Free Software
10146 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10148 # As a special exception to the GNU General Public License, if you
10149 # distribute this file as part of a program that contains a
10150 # configuration script generated by Autoconf, you may include it under
10151 # the same distribution terms that you use for the rest of that program.
10153 # A sed program that does not truncate output.
10156 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10157 Xsed="$SED -e 1s/^X//"
10159 # The HP-UX ksh and POSIX shell print the target directory to stdout
10160 # if CDPATH is set.
10161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10163 # The names of the tagged configurations supported by this script.
10166 # ### BEGIN LIBTOOL CONFIG
10168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10170 # Shell to use when invoking shell scripts.
10173 # Whether or not to build shared libraries.
10174 build_libtool_libs=$enable_shared
10176 # Whether or not to build static libraries.
10177 build_old_libs=$enable_static
10179 # Whether or not to add -lc for building shared libraries.
10180 build_libtool_need_lc=$archive_cmds_need_lc
10182 # Whether or not to disallow shared libs when runtime libs are static
10183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10185 # Whether or not to optimize for fast installation.
10186 fast_install=$enable_fast_install
10189 host_alias=$host_alias
10193 # The build system.
10194 build_alias=$build_alias
10198 # An echo program that does not interpret backslashes.
10203 AR_FLAGS=$lt_AR_FLAGS
10208 # LTCC compiler flags.
10209 LTCFLAGS=$lt_LTCFLAGS
10211 # A language-specific compiler.
10214 # Is the compiler the GNU C compiler?
10220 # The linker used to build libraries.
10223 # Whether we need hard or soft links.
10226 # A BSD-compatible nm program.
10229 # A symbol stripping program
10232 # Used to examine libraries when file_magic_cmd begins "file"
10233 MAGIC_CMD=$MAGIC_CMD
10235 # Used on cygwin: DLL creation program.
10238 # Used on cygwin: object dumper.
10241 # Used on cygwin: assembler.
10244 # The name of the directory that contains temporary libtool files.
10247 # How to create reloadable object files.
10248 reload_flag=$lt_reload_flag
10249 reload_cmds=$lt_reload_cmds
10251 # How to pass a linker flag through the compiler.
10252 wl=$lt_lt_prog_compiler_wl
10254 # Object file suffix (normally "o").
10255 objext="$ac_objext"
10257 # Old archive suffix (normally "a").
10260 # Shared library suffix (normally ".so").
10261 shrext_cmds='$shrext_cmds'
10263 # Executable file suffix (normally "").
10266 # Additional compiler flags for building library objects.
10267 pic_flag=$lt_lt_prog_compiler_pic
10270 # What is the maximum length of a command?
10271 max_cmd_len=$lt_cv_sys_max_cmd_len
10273 # Does compiler simultaneously support -c and -o options?
10274 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10276 # Must we lock files when doing compilation?
10277 need_locks=$lt_need_locks
10279 # Do we need the lib prefix for modules?
10280 need_lib_prefix=$need_lib_prefix
10282 # Do we need a version for libraries?
10283 need_version=$need_version
10285 # Whether dlopen is supported.
10286 dlopen_support=$enable_dlopen
10288 # Whether dlopen of programs is supported.
10289 dlopen_self=$enable_dlopen_self
10291 # Whether dlopen of statically linked programs is supported.
10292 dlopen_self_static=$enable_dlopen_self_static
10294 # Compiler flag to prevent dynamic linking.
10295 link_static_flag=$lt_lt_prog_compiler_static
10297 # Compiler flag to turn off builtin functions.
10298 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10300 # Compiler flag to allow reflexive dlopens.
10301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10303 # Compiler flag to generate shared objects directly from archives.
10304 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10306 # Compiler flag to generate thread-safe objects.
10307 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10309 # Library versioning type.
10310 version_type=$version_type
10312 # Format of library name prefix.
10313 libname_spec=$lt_libname_spec
10315 # List of archive names. First name is the real one, the rest are links.
10316 # The last name is the one that the linker finds with -lNAME.
10317 library_names_spec=$lt_library_names_spec
10319 # The coded name of the library, if different from the real name.
10320 soname_spec=$lt_soname_spec
10322 # Commands used to build and install an old-style archive.
10324 old_archive_cmds=$lt_old_archive_cmds
10325 old_postinstall_cmds=$lt_old_postinstall_cmds
10326 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10328 # Create an old-style archive from a shared archive.
10329 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10331 # Create a temporary old-style archive to link instead of a shared archive.
10332 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10334 # Commands used to build and install a shared archive.
10335 archive_cmds=$lt_archive_cmds
10336 archive_expsym_cmds=$lt_archive_expsym_cmds
10337 postinstall_cmds=$lt_postinstall_cmds
10338 postuninstall_cmds=$lt_postuninstall_cmds
10340 # Commands used to build a loadable module (assumed same as above if empty)
10341 module_cmds=$lt_module_cmds
10342 module_expsym_cmds=$lt_module_expsym_cmds
10344 # Commands to strip libraries.
10345 old_striplib=$lt_old_striplib
10346 striplib=$lt_striplib
10348 # Dependencies to place before the objects being linked to create a
10350 predep_objects=$lt_predep_objects
10352 # Dependencies to place after the objects being linked to create a
10354 postdep_objects=$lt_postdep_objects
10356 # Dependencies to place before the objects being linked to create a
10358 predeps=$lt_predeps
10360 # Dependencies to place after the objects being linked to create a
10362 postdeps=$lt_postdeps
10364 # The directories searched by this compiler when creating a shared
10366 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10368 # The library search path used internally by the compiler when linking
10369 # a shared library.
10370 compiler_lib_search_path=$lt_compiler_lib_search_path
10372 # Method to check whether dependent libraries are shared objects.
10373 deplibs_check_method=$lt_deplibs_check_method
10375 # Command to use when deplibs_check_method == file_magic.
10376 file_magic_cmd=$lt_file_magic_cmd
10378 # Flag that allows shared libraries with undefined symbols to be built.
10379 allow_undefined_flag=$lt_allow_undefined_flag
10381 # Flag that forces no undefined symbols.
10382 no_undefined_flag=$lt_no_undefined_flag
10384 # Commands used to finish a libtool library installation in a directory.
10385 finish_cmds=$lt_finish_cmds
10387 # Same as above, but a single script fragment to be evaled but not shown.
10388 finish_eval=$lt_finish_eval
10390 # Take the output of nm and produce a listing of raw symbols and C names.
10391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10393 # Transform the output of nm in a proper C declaration
10394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10396 # Transform the output of nm in a C name address pair
10397 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10399 # This is the shared library runtime path variable.
10400 runpath_var=$runpath_var
10402 # This is the shared library path variable.
10403 shlibpath_var=$shlibpath_var
10405 # Is shlibpath searched before the hard-coded library search path?
10406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10408 # How to hardcode a shared library path into an executable.
10409 hardcode_action=$hardcode_action
10411 # Whether we should hardcode library paths into libraries.
10412 hardcode_into_libs=$hardcode_into_libs
10414 # Flag to hardcode \$libdir into a binary during linking.
10415 # This must work even if \$libdir does not exist.
10416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10418 # If ld is used when linking, flag to hardcode \$libdir into
10419 # a binary during linking. This must work even if \$libdir does
10421 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10423 # Whether we need a single -rpath flag with a separated argument.
10424 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10426 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10427 # resulting binary.
10428 hardcode_direct=$hardcode_direct
10430 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10431 # resulting binary.
10432 hardcode_minus_L=$hardcode_minus_L
10434 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10435 # the resulting binary.
10436 hardcode_shlibpath_var=$hardcode_shlibpath_var
10438 # Set to yes if building a shared library automatically hardcodes DIR into the library
10439 # and all subsequent libraries and executables linked against it.
10440 hardcode_automatic=$hardcode_automatic
10442 # Variables whose values should be saved in libtool wrapper scripts and
10443 # restored at relink time.
10444 variables_saved_for_relink="$variables_saved_for_relink"
10446 # Whether libtool must link a program against all its dependency libraries.
10447 link_all_deplibs=$link_all_deplibs
10449 # Compile-time system search path for libraries
10450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10452 # Run-time system search path for libraries
10453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10455 # Fix the shell variable \$srcfile for the compiler.
10456 fix_srcfile_path=$lt_fix_srcfile_path
10458 # Set to yes if exported symbols are required.
10459 always_export_symbols=$always_export_symbols
10461 # The commands to list exported symbols.
10462 export_symbols_cmds=$lt_export_symbols_cmds
10464 # The commands to extract the exported symbol list from a shared archive.
10465 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10467 # Symbols that should not be listed in the preloaded symbols.
10468 exclude_expsyms=$lt_exclude_expsyms
10470 # Symbols that must always be exported.
10471 include_expsyms=$lt_include_expsyms
10473 # ### END LIBTOOL CONFIG
10480 cat <<\EOF >> "$cfgfile"
10482 # AIX sometimes has problems with the GCC collect2 program. For some
10483 # reason, if we set the COLLECT_NAMES environment variable, the problems
10484 # vanish in a puff of smoke.
10485 if test "X${COLLECT_NAMES+set}" != Xset; then
10487 export COLLECT_NAMES
10493 # We use sed instead of cat because bash on DJGPP gets confused if
10494 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10495 # text mode, it properly converts lines to CR/LF. This bash problem
10496 # is reportedly fixed, but why not run on old versions too?
10497 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10499 mv -f "$cfgfile" "$ofile" || \
10500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10504 # If there is no Makefile yet, we rely on a make rule to execute
10505 # `config.status --recheck' to rerun these tests and create the
10506 # libtool script then.
10507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10508 if test -f "$ltmain_in"; then
10509 test -f Makefile && make "$ltmain"
10515 ac_cpp='$CPP $CPPFLAGS'
10516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10523 # Check whether --with-tags was given.
10524 if test "${with_tags+set}" = set; then
10525 withval=$with_tags; tagnames="$withval"
10529 if test -f "$ltmain" && test -n "$tagnames"; then
10530 if test ! -f "${ofile}"; then
10531 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10532 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10535 if test -z "$LTCC"; then
10536 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10537 if test -z "$LTCC"; then
10538 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10539 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10541 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10542 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10545 if test -z "$LTCFLAGS"; then
10546 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10549 # Extract list of available tagged configurations in $ofile.
10550 # Note that this assumes the entire list is on one line.
10551 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10554 for tagname in $tagnames; do
10556 # Check whether tagname contains only valid characters
10557 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10559 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10560 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10561 { (exit 1); exit 1; }; }
10565 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10567 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10568 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10569 { (exit 1); exit 1; }; }
10572 # Update the list of available tags.
10573 if test -n "$tagname"; then
10574 echo appending configuration tag \"$tagname\" to $ofile
10578 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10579 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10580 (test "X$CXX" != "Xg++"))) ; then
10582 ac_cpp='$CXXCPP $CPPFLAGS'
10583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10590 archive_cmds_need_lc_CXX=no
10591 allow_undefined_flag_CXX=
10592 always_export_symbols_CXX=no
10593 archive_expsym_cmds_CXX=
10594 export_dynamic_flag_spec_CXX=
10595 hardcode_direct_CXX=no
10596 hardcode_libdir_flag_spec_CXX=
10597 hardcode_libdir_flag_spec_ld_CXX=
10598 hardcode_libdir_separator_CXX=
10599 hardcode_minus_L_CXX=no
10600 hardcode_shlibpath_var_CXX=unsupported
10601 hardcode_automatic_CXX=no
10603 module_expsym_cmds_CXX=
10604 link_all_deplibs_CXX=unknown
10605 old_archive_cmds_CXX=$old_archive_cmds
10606 no_undefined_flag_CXX=
10607 whole_archive_flag_spec_CXX=
10608 enable_shared_with_static_runtimes_CXX=no
10610 # Dependencies to place before and after the object being linked:
10611 predep_objects_CXX=
10612 postdep_objects_CXX=
10615 compiler_lib_search_path_CXX=
10616 compiler_lib_search_dirs_CXX=
10618 # Source file extension for C++ test sources.
10621 # Object file extension for compiled C++ test sources.
10625 # Code to be used in simple compile tests
10626 lt_simple_compile_test_code="int some_variable = 0;"
10628 # Code to be used in simple link tests
10629 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10633 # If no C compiler was specified, use CC.
10636 # If no C compiler flags were specified, use CFLAGS.
10637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10639 # Allow CC to be a program name with arguments.
10643 # save warnings/boilerplate of simple test code
10644 ac_outfile=conftest.$ac_objext
10645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10647 _lt_compiler_boilerplate=`cat conftest.err`
10650 ac_outfile=conftest.$ac_objext
10651 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10653 _lt_linker_boilerplate=`cat conftest.err`
10657 # Allow CC to be a program name with arguments.
10662 lt_save_with_gnu_ld=$with_gnu_ld
10663 lt_save_path_LD=$lt_cv_path_LD
10664 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10665 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10667 $as_unset lt_cv_prog_gnu_ld
10669 if test -n "${lt_cv_path_LDCXX+set}"; then
10670 lt_cv_path_LD=$lt_cv_path_LDCXX
10672 $as_unset lt_cv_path_LD
10674 test -z "${LDCXX+set}" || LD=$LDCXX
10678 for cc_temp in $compiler""; do
10680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10686 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10689 # We don't want -fno-exception wen compiling C++ code, so set the
10690 # no_builtin_flag separately
10691 if test "$GXX" = yes; then
10692 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10694 lt_prog_compiler_no_builtin_flag_CXX=
10697 if test "$GXX" = yes; then
10698 # Set up default GNU C++ configuration
10701 # Check whether --with-gnu-ld was given.
10702 if test "${with_gnu_ld+set}" = set; then
10703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10709 if test "$GCC" = yes; then
10710 # Check if gcc -print-prog-name=ld gives a path.
10711 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10712 $as_echo_n "checking for ld used by $CC... " >&6; }
10715 # gcc leaves a trailing carriage return which upsets mingw
10716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10721 # Accept absolute paths.
10723 re_direlt='/[^/][^/]*/\.\./'
10724 # Canonicalize the pathname of ld
10725 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10726 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10727 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10729 test -z "$LD" && LD="$ac_prog"
10732 # If it fails, then pretend we aren't using GCC.
10736 # If it is relative, then search for the first ld in PATH.
10737 with_gnu_ld=unknown
10740 elif test "$with_gnu_ld" = yes; then
10741 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10742 $as_echo_n "checking for GNU ld... " >&6; }
10744 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10745 $as_echo_n "checking for non-GNU ld... " >&6; }
10747 if test "${lt_cv_path_LD+set}" = set; then
10748 $as_echo_n "(cached) " >&6
10750 if test -z "$LD"; then
10751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10752 for ac_dir in $PATH; do
10754 test -z "$ac_dir" && ac_dir=.
10755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10756 lt_cv_path_LD="$ac_dir/$ac_prog"
10757 # Check to see if the program is GNU ld. I'd rather use --version,
10758 # but apparently some variants of GNU ld only accept -v.
10759 # Break only if it was the GNU/non-GNU ld that we prefer.
10760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10761 *GNU* | *'with BFD'*)
10762 test "$with_gnu_ld" != no && break
10765 test "$with_gnu_ld" != yes && break
10772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10776 LD="$lt_cv_path_LD"
10777 if test -n "$LD"; then
10778 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10779 $as_echo "$LD" >&6; }
10781 { $as_echo "$as_me:$LINENO: result: no" >&5
10782 $as_echo "no" >&6; }
10784 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10785 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10786 { (exit 1); exit 1; }; }
10787 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10788 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10790 $as_echo_n "(cached) " >&6
10792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10793 case `$LD -v 2>&1 </dev/null` in
10794 *GNU* | *'with BFD'*)
10795 lt_cv_prog_gnu_ld=yes
10798 lt_cv_prog_gnu_ld=no
10802 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10804 with_gnu_ld=$lt_cv_prog_gnu_ld
10808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10809 # archiving commands below assume that GNU ld is being used.
10810 if test "$with_gnu_ld" = yes; then
10811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10812 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'
10814 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10817 # If archive_cmds runs LD, not CC, wlarc should be empty
10818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10819 # investigate it a little bit more. (MM)
10822 # ancient GNU ld didn't support --whole-archive et. al.
10823 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10824 grep 'no-whole-archive' > /dev/null; then
10825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10827 whole_archive_flag_spec_CXX=
10833 # A generic and very simple default shared library creation
10834 # command for GNU C++ for the case where it uses the native
10835 # linker, instead of GNU ld. If possible, this setting should
10836 # overridden to take advantage of the native linker features on
10837 # the platform it is being used on.
10838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10841 # Commands to make compiler produce verbose output that lists
10842 # what "hidden" libraries, object files and flags are used when
10843 # linking a shared library.
10844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10852 # PORTME: fill in a description of your system's C++ link characteristics
10853 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10858 # FIXME: insert proper C++ library support
10862 if test "$host_cpu" = ia64; then
10863 # On IA64, the linker does run time linking by default, so we don't
10864 # have to do anything special.
10865 aix_use_runtimelinking=no
10866 exp_sym_flag='-Bexport'
10869 aix_use_runtimelinking=no
10871 # Test if we are trying to use run time linking or normal
10872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10873 # need to do runtime linking.
10874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10875 for ld_flag in $LDFLAGS; do
10878 aix_use_runtimelinking=yes
10886 exp_sym_flag='-bexport'
10887 no_entry_flag='-bnoentry'
10890 # When large executables or shared objects are built, AIX ld can
10891 # have problems creating the table of contents. If linking a library
10892 # or program results in "error TOC overflow" add -mminimal-toc to
10893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10896 archive_cmds_CXX=''
10897 hardcode_direct_CXX=yes
10898 hardcode_libdir_separator_CXX=':'
10899 link_all_deplibs_CXX=yes
10901 if test "$GXX" = yes; then
10902 case $host_os in aix4.[012]|aix4.[012].*)
10903 # We only want to do this on AIX 4.2 and lower, the check
10904 # below for broken collect2 doesn't work under 4.3+
10905 collect2name=`${CC} -print-prog-name=collect2`
10906 if test -f "$collect2name" && \
10907 strings "$collect2name" | grep resolve_lib_name >/dev/null
10909 # We have reworked collect2
10912 # We have old collect2
10913 hardcode_direct_CXX=unsupported
10914 # It fails to find uninstalled libraries when the uninstalled
10915 # path is not listed in the libpath. Setting hardcode_minus_L
10916 # to unsupported forces relinking
10917 hardcode_minus_L_CXX=yes
10918 hardcode_libdir_flag_spec_CXX='-L$libdir'
10919 hardcode_libdir_separator_CXX=
10923 shared_flag='-shared'
10924 if test "$aix_use_runtimelinking" = yes; then
10925 shared_flag="$shared_flag "'${wl}-G'
10929 if test "$host_cpu" = ia64; then
10930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10931 # chokes on -Wl,-G. The following line is correct:
10934 if test "$aix_use_runtimelinking" = yes; then
10935 shared_flag='${wl}-G'
10937 shared_flag='${wl}-bM:SRE'
10942 # It seems that -bexpall does not export symbols beginning with
10943 # underscore (_), so it is better to generate a list of symbols to export.
10944 always_export_symbols_CXX=yes
10945 if test "$aix_use_runtimelinking" = yes; then
10946 # Warning - without using the other runtime loading flags (-brtl),
10947 # -berok will link without error, but may produce a broken library.
10948 allow_undefined_flag_CXX='-berok'
10949 # Determine the default libpath from the value encoded in an empty executable.
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1 >conftest.err
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_cxx_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10987 lt_aix_libpath_sed='
10988 /Import File Strings/,/^$/ {
10994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10995 # Check for a 64-bit object if we didn't find anything.
10996 if test -z "$aix_libpath"; then
10997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11013 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"
11015 if test "$host_cpu" = ia64; then
11016 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11017 allow_undefined_flag_CXX="-z nodefs"
11018 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"
11020 # Determine the default libpath from the value encoded in an empty executable.
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11058 lt_aix_libpath_sed='
11059 /Import File Strings/,/^$/ {
11065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11066 # Check for a 64-bit object if we didn't find anything.
11067 if test -z "$aix_libpath"; then
11068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11071 $as_echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -rf conftest.dSYM
11078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079 conftest$ac_exeext conftest.$ac_ext
11080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11082 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11083 # Warning - without using the other run time loading flags,
11084 # -berok will link without error, but may produce a broken library.
11085 no_undefined_flag_CXX=' ${wl}-bernotok'
11086 allow_undefined_flag_CXX=' ${wl}-berok'
11087 # Exported symbols can be pulled into shared objects from archives
11088 whole_archive_flag_spec_CXX='$convenience'
11089 archive_cmds_need_lc_CXX=yes
11090 # This is similar to how AIX traditionally builds its shared libraries.
11091 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'
11097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11098 allow_undefined_flag_CXX=unsupported
11099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11100 # support --undefined. This deserves some investigation. FIXME
11101 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11108 case $cc_basename in
11110 # FIXME: insert proper C++ library support
11116 cygwin* | mingw* | pw32*)
11117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11118 # as there is no search path for DLLs.
11119 hardcode_libdir_flag_spec_CXX='-L$libdir'
11120 allow_undefined_flag_CXX=unsupported
11121 always_export_symbols_CXX=no
11122 enable_shared_with_static_runtimes_CXX=yes
11124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11125 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'
11126 # If the export-symbols file already is a .def file (1st line
11127 # is EXPORTS), use it as is; otherwise, prepend...
11128 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11129 cp $export_symbols $output_objdir/$soname.def;
11131 echo EXPORTS > $output_objdir/$soname.def;
11132 cat $export_symbols >> $output_objdir/$soname.def;
11134 $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'
11139 darwin* | rhapsody*)
11140 archive_cmds_need_lc_CXX=no
11141 hardcode_direct_CXX=no
11142 hardcode_automatic_CXX=yes
11143 hardcode_shlibpath_var_CXX=unsupported
11144 whole_archive_flag_spec_CXX=''
11145 link_all_deplibs_CXX=yes
11146 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11147 if test "$GXX" = yes ; then
11148 output_verbose_link_cmd='echo'
11149 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11150 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11151 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11152 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11154 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11155 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11158 case $cc_basename in
11160 output_verbose_link_cmd='echo'
11161 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'
11162 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11164 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}'
11165 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}'
11175 case $cc_basename in
11177 # FIXME: insert proper C++ library support
11181 # Green Hills C++ Compiler
11182 # FIXME: insert proper C++ library support
11186 # FIXME: insert proper C++ library support
11192 # C++ shared libraries reported to be fairly broken before switch to ELF
11196 archive_cmds_need_lc_CXX=no
11198 freebsd* | dragonfly*)
11199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11207 hardcode_libdir_separator_CXX=:
11208 export_dynamic_flag_spec_CXX='${wl}-E'
11209 hardcode_direct_CXX=yes
11210 hardcode_minus_L_CXX=yes # Not in the search PATH,
11211 # but as the default
11212 # location of the library.
11214 case $cc_basename in
11216 # FIXME: insert proper C++ library support
11220 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'
11221 # Commands to make compiler produce verbose output that lists
11222 # what "hidden" libraries, object files and flags are used when
11223 # linking a shared library.
11225 # There doesn't appear to be a way to prevent this compiler from
11226 # explicitly linking system object files so we need to strip them
11227 # from the output so that they don't get included in the library
11229 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'
11232 if test "$GXX" = yes; then
11233 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'
11235 # FIXME: insert proper C++ library support
11242 if test $with_gnu_ld = no; then
11243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11244 hardcode_libdir_separator_CXX=:
11249 export_dynamic_flag_spec_CXX='${wl}-E'
11255 hardcode_direct_CXX=no
11256 hardcode_shlibpath_var_CXX=no
11259 hardcode_direct_CXX=yes
11260 hardcode_minus_L_CXX=yes # Not in the search PATH,
11261 # but as the default
11262 # location of the library.
11266 case $cc_basename in
11268 # FIXME: insert proper C++ library support
11274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11283 # Commands to make compiler produce verbose output that lists
11284 # what "hidden" libraries, object files and flags are used when
11285 # linking a shared library.
11287 # There doesn't appear to be a way to prevent this compiler from
11288 # explicitly linking system object files so we need to strip them
11289 # from the output so that they don't get included in the library
11291 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'
11294 if test "$GXX" = yes; then
11295 if test $with_gnu_ld = no; then
11298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11304 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'
11309 # FIXME: insert proper C++ library support
11316 hardcode_direct_CXX=no
11317 hardcode_shlibpath_var_CXX=no
11318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11319 export_dynamic_flag_spec_CXX='${wl}-E'
11320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11321 # Instead, shared libraries are loaded at an image base (0x10000000 by
11322 # default) and relocated if they conflict, which is a slow very memory
11323 # consuming and fragmenting process. To avoid this, we pick a random,
11324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11326 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'
11327 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'
11330 case $cc_basename in
11333 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'
11335 # Archives containing C++ object files must be created using
11336 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11337 # necessary to make sure instantiated templates are included
11339 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11342 if test "$GXX" = yes; then
11343 if test "$with_gnu_ld" = no; then
11344 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'
11346 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'
11349 link_all_deplibs_CXX=yes
11352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11353 hardcode_libdir_separator_CXX=:
11355 linux* | k*bsd*-gnu)
11356 case $cc_basename in
11358 # Kuck and Associates, Inc. (KAI) C++ Compiler
11360 # KCC will only create a shared library if the output file
11361 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11362 # to its proper name (with version) after linking.
11363 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'
11364 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'
11365 # Commands to make compiler produce verbose output that lists
11366 # what "hidden" libraries, object files and flags are used when
11367 # linking a shared library.
11369 # There doesn't appear to be a way to prevent this compiler from
11370 # explicitly linking system object files so we need to strip them
11371 # from the output so that they don't get included in the library
11373 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'
11375 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11378 # Archives containing C++ object files must be created using
11379 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11380 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11385 # version 8.0 and above of icpc choke on multiply defined symbols
11386 # if we add $predep_objects and $postdep_objects, however 7.1 and
11387 # earlier do not add the objects themselves.
11388 case `$CC -V 2>&1` in
11390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11391 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'
11393 *) # Version 8.0 or newer
11396 ia64*) tmp_idyn=' -i_dynamic';;
11398 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11399 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'
11402 archive_cmds_need_lc_CXX=no
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11405 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11408 # Portland Group C++ compiler
11409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11410 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'
11412 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11413 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414 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'
11418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419 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'
11421 runpath_var=LD_RUN_PATH
11422 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11423 hardcode_libdir_separator_CXX=:
11425 # Commands to make compiler produce verbose output that lists
11426 # what "hidden" libraries, object files and flags are used when
11427 # linking a shared library.
11429 # There doesn't appear to be a way to prevent this compiler from
11430 # explicitly linking system object files so we need to strip them
11431 # from the output so that they don't get included in the library
11433 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'
11436 case `$CC -V 2>&1 | sed 5q` in
11439 no_undefined_flag_CXX=' -zdefs'
11440 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 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'
11442 hardcode_libdir_flag_spec_CXX='-R$libdir'
11443 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'
11445 # Not sure whether something based on
11446 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11448 output_verbose_link_cmd='echo'
11450 # Archives containing C++ object files must be created using
11451 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11452 # necessary to make sure instantiated templates are included
11454 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11461 # FIXME: insert proper C++ library support
11465 # FIXME: insert proper C++ library support
11469 case $cc_basename in
11471 # FIXME: insert proper C++ library support
11475 # FIXME: insert proper C++ library support
11481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11482 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11484 hardcode_libdir_flag_spec_CXX='-R$libdir'
11485 hardcode_direct_CXX=yes
11486 hardcode_shlibpath_var_CXX=no
11488 # Workaround some broken pre-1.5 toolchains
11489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11492 # C++ shared libraries are fairly broken
11496 if test -f /usr/libexec/ld.so; then
11497 hardcode_direct_CXX=yes
11498 hardcode_shlibpath_var_CXX=no
11499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11503 export_dynamic_flag_spec_CXX='${wl}-E'
11504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11506 output_verbose_link_cmd='echo'
11512 case $cc_basename in
11514 # Kuck and Associates, Inc. (KAI) C++ Compiler
11516 # KCC will only create a shared library if the output file
11517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11518 # to its proper name (with version) after linking.
11519 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'
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522 hardcode_libdir_separator_CXX=:
11524 # Archives containing C++ object files must be created using
11525 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11526 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11530 # Rational C++ 2.4.1
11531 # FIXME: insert proper C++ library support
11535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11536 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'
11538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11539 hardcode_libdir_separator_CXX=:
11541 # Commands to make compiler produce verbose output that lists
11542 # what "hidden" libraries, object files and flags are used when
11543 # linking a shared library.
11545 # There doesn't appear to be a way to prevent this compiler from
11546 # explicitly linking system object files so we need to strip them
11547 # from the output so that they don't get included in the library
11549 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'
11552 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11553 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11554 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'
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11557 hardcode_libdir_separator_CXX=:
11559 # Commands to make compiler produce verbose output that lists
11560 # what "hidden" libraries, object files and flags are used when
11561 # linking a shared library.
11562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11565 # FIXME: insert proper C++ library support
11572 case $cc_basename in
11574 # Kuck and Associates, Inc. (KAI) C++ Compiler
11576 # KCC will only create a shared library if the output file
11577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11578 # to its proper name (with version) after linking.
11579 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'
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11582 hardcode_libdir_separator_CXX=:
11584 # Archives containing C++ object files must be created using
11585 # the KAI C++ compiler.
11586 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11589 # Rational C++ 2.4.1
11590 # FIXME: insert proper C++ library support
11594 allow_undefined_flag_CXX=' -expect_unresolved \*'
11595 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'
11596 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11597 echo "-hidden">> $lib.exp~
11598 $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~
11601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11602 hardcode_libdir_separator_CXX=:
11604 # Commands to make compiler produce verbose output that lists
11605 # what "hidden" libraries, object files and flags are used when
11606 # linking a shared library.
11608 # There doesn't appear to be a way to prevent this compiler from
11609 # explicitly linking system object files so we need to strip them
11610 # from the output so that they don't get included in the library
11612 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'
11615 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11616 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11617 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'
11619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11620 hardcode_libdir_separator_CXX=:
11622 # Commands to make compiler produce verbose output that lists
11623 # what "hidden" libraries, object files and flags are used when
11624 # linking a shared library.
11625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11628 # FIXME: insert proper C++ library support
11635 # FIXME: insert proper C++ library support
11639 case $cc_basename in
11642 # FIXME: insert proper C++ library support
11647 # FIXME: insert proper C++ library support
11651 # FIXME: insert proper C++ library support
11657 case $cc_basename in
11659 # Sun C++ 4.2, 5.x and Centerline C++
11660 archive_cmds_need_lc_CXX=yes
11661 no_undefined_flag_CXX=' -zdefs'
11662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11663 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11664 $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'
11666 hardcode_libdir_flag_spec_CXX='-R$libdir'
11667 hardcode_shlibpath_var_CXX=no
11669 solaris2.[0-5] | solaris2.[0-5].*) ;;
11671 # The compiler driver will combine and reorder linker options,
11672 # but understands `-z linker_flag'.
11673 # Supported since Solaris 2.6 (maybe 2.5.1?)
11674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11677 link_all_deplibs_CXX=yes
11679 output_verbose_link_cmd='echo'
11681 # Archives containing C++ object files must be created using
11682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11683 # necessary to make sure instantiated templates are included
11685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11688 # Green Hills C++ Compiler
11689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11691 # The C++ compiler must be used to create the archive.
11692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11695 # GNU C++ compiler with Solaris linker
11696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11698 if $CC --version | grep -v '^2\.7' > /dev/null; then
11699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11700 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11703 # Commands to make compiler produce verbose output that lists
11704 # what "hidden" libraries, object files and flags are used when
11705 # linking a shared library.
11706 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11722 solaris2.[0-5] | solaris2.[0-5].*) ;;
11724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11732 no_undefined_flag_CXX='${wl}-z,text'
11733 archive_cmds_need_lc_CXX=no
11734 hardcode_shlibpath_var_CXX=no
11735 runpath_var='LD_RUN_PATH'
11737 case $cc_basename in
11739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11743 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11748 sysv5* | sco3.2v5* | sco5v6*)
11749 # Note: We can NOT use -z defs as we might desire, because we do not
11750 # link with -lc, and that would cause any symbols used from libc to
11751 # always be unresolved, which means just about no library would
11752 # ever link correctly. If we're not using GNU ld we use -z text
11753 # though, which does catch some bad symbols but isn't as heavy-handed
11755 # For security reasons, it is highly recommended that you always
11756 # use absolute paths for naming shared libraries, and exclude the
11757 # DT_RUNPATH tag from executables and libraries. But doing so
11758 # requires that you compile everything twice, which is a pain.
11759 # So that behaviour is only enabled if SCOABSPATH is set to a
11760 # non-empty value in the environment. Most likely only useful for
11761 # creating official distributions of packages.
11762 # This is a hack until libtool officially supports absolute path
11763 # names for shared libraries.
11764 no_undefined_flag_CXX='${wl}-z,text'
11765 allow_undefined_flag_CXX='${wl}-z,nodefs'
11766 archive_cmds_need_lc_CXX=no
11767 hardcode_shlibpath_var_CXX=no
11768 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11769 hardcode_libdir_separator_CXX=':'
11770 link_all_deplibs_CXX=yes
11771 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11772 runpath_var='LD_RUN_PATH'
11774 case $cc_basename in
11776 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 case $cc_basename in
11788 # NonStop-UX NCC 3.20
11789 # FIXME: insert proper C++ library support
11793 # FIXME: insert proper C++ library support
11799 # FIXME: insert proper C++ library support
11803 # FIXME: insert proper C++ library support
11807 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11808 $as_echo "$ld_shlibs_CXX" >&6; }
11809 test "$ld_shlibs_CXX" = no && can_build_shared=no
11814 cat > conftest.$ac_ext <<EOF
11818 Foo (void) { a = 0; }
11824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>&5
11827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; then
11829 # Parse the compiler output and extract the necessary
11830 # objects, libraries and library flags.
11832 # Sentinel used to keep track of whether or not we are before
11833 # the conftest object file.
11834 pre_test_object_deps_done=no
11836 # The `*' in the case matches for architectures that use `case' in
11837 # $output_verbose_cmd can trigger glob expansion during the loop
11838 # eval without this substitution.
11839 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11841 for p in `eval $output_verbose_link_cmd`; do
11845 # Some compilers place space between "-{L,R}" and the path.
11846 # Remove the space.
11847 if test $p = "-L" \
11848 || test $p = "-R"; then
11855 if test "$pre_test_object_deps_done" = no; then
11858 # Internal compiler library paths should come after those
11859 # provided the user. The postdeps already come after the
11860 # user supplied libs so there is no need to process them.
11861 if test -z "$compiler_lib_search_path_CXX"; then
11862 compiler_lib_search_path_CXX="${prev}${p}"
11864 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11867 # The "-l" case would never come before the object being
11868 # linked, so don't bother handling this case.
11871 if test -z "$postdeps_CXX"; then
11872 postdeps_CXX="${prev}${p}"
11874 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11880 # This assumes that the test object file only shows up
11881 # once in the compiler output.
11882 if test "$p" = "conftest.$objext"; then
11883 pre_test_object_deps_done=yes
11887 if test "$pre_test_object_deps_done" = no; then
11888 if test -z "$predep_objects_CXX"; then
11889 predep_objects_CXX="$p"
11891 predep_objects_CXX="$predep_objects_CXX $p"
11894 if test -z "$postdep_objects_CXX"; then
11895 postdep_objects_CXX="$p"
11897 postdep_objects_CXX="$postdep_objects_CXX $p"
11902 *) ;; # Ignore the rest.
11910 echo "libtool.m4: error: problem compiling CXX test program"
11913 $rm -f confest.$objext
11915 compiler_lib_search_dirs_CXX=
11916 if test -n "$compiler_lib_search_path_CXX"; then
11917 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11920 # PORTME: override above test on systems where it is broken
11923 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11924 # hack all around it, let's just trust "g++" to DTRT.
11925 predep_objects_CXX=
11926 postdep_objects_CXX=
11931 case `$CC -V 2>&1 | sed 5q` in
11935 # The more standards-conforming stlport4 library is
11936 # incompatible with the Cstd library. Avoid specifying
11937 # it if it's in CXXFLAGS. Ignore libCrun as
11938 # -library=stlport4 depends on it.
11939 case " $CXX $CXXFLAGS " in
11940 *" -library=stlport4 "*)
11941 solaris_use_stlport4=yes
11944 if test "$solaris_use_stlport4" != yes; then
11945 postdeps_CXX='-library=Cstd -library=Crun'
11952 case $cc_basename in
11954 # The more standards-conforming stlport4 library is
11955 # incompatible with the Cstd library. Avoid specifying
11956 # it if it's in CXXFLAGS. Ignore libCrun as
11957 # -library=stlport4 depends on it.
11958 case " $CXX $CXXFLAGS " in
11959 *" -library=stlport4 "*)
11960 solaris_use_stlport4=yes
11964 # Adding this requires a known-good setup of shared libraries for
11965 # Sun compiler versions before 5.6, else PIC objects from an old
11966 # archive will be linked into the output, leading to subtle bugs.
11967 if test "$solaris_use_stlport4" != yes; then
11968 postdeps_CXX='-library=Cstd -library=Crun'
11975 case " $postdeps_CXX " in
11976 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11979 lt_prog_compiler_wl_CXX=
11980 lt_prog_compiler_pic_CXX=
11981 lt_prog_compiler_static_CXX=
11983 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11986 # C++ specific cases for pic, static, wl, etc.
11987 if test "$GXX" = yes; then
11988 lt_prog_compiler_wl_CXX='-Wl,'
11989 lt_prog_compiler_static_CXX='-static'
11993 # All AIX code is PIC.
11994 if test "$host_cpu" = ia64; then
11995 # AIX 5 now supports IA64 processor
11996 lt_prog_compiler_static_CXX='-Bstatic'
12000 # FIXME: we need at least 68020 code to build shared libraries, but
12001 # adding the `-m68020' flag to GCC prevents building anything better,
12003 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12006 # PIC is the default for these OSes.
12008 mingw* | cygwin* | os2* | pw32*)
12009 # This hack is so that the source file can tell whether it is being
12010 # built for inclusion in a dll (and should export symbols for example).
12011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12012 # (--disable-auto-import) libraries
12013 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_CXX='-fno-common'
12021 # DJGPP does not support shared libraries at all
12022 lt_prog_compiler_pic_CXX=
12025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12026 # Instead, we relocate shared libraries at runtime.
12029 if test -d /usr/nec; then
12030 lt_prog_compiler_pic_CXX=-Kconform_pic
12034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12035 # not for PA HP-UX.
12040 lt_prog_compiler_pic_CXX='-fPIC'
12045 lt_prog_compiler_pic_CXX='-fPIC'
12051 # All AIX code is PIC.
12052 if test "$host_cpu" = ia64; then
12053 # AIX 5 now supports IA64 processor
12054 lt_prog_compiler_static_CXX='-Bstatic'
12056 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12060 case $cc_basename in
12062 # Green Hills C++ Compiler
12063 # _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"
12068 # PIC is the default on this platform
12069 # Common symbols not allowed in MH_DYLIB files
12070 case $cc_basename in
12072 lt_prog_compiler_pic_CXX='-qnocommon'
12073 lt_prog_compiler_wl_CXX='-Wl,'
12078 case $cc_basename in
12080 lt_prog_compiler_pic_CXX='-KPIC'
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX='-pic'
12090 freebsd* | dragonfly*)
12091 # FreeBSD uses GNU C++
12093 hpux9* | hpux10* | hpux11*)
12094 case $cc_basename in
12096 lt_prog_compiler_wl_CXX='-Wl,'
12097 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12098 if test "$host_cpu" != ia64; then
12099 lt_prog_compiler_pic_CXX='+Z'
12103 lt_prog_compiler_wl_CXX='-Wl,'
12104 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12110 lt_prog_compiler_pic_CXX='+Z'
12119 # This is c89, which is MS Visual C++ (no shared libs)
12120 # Anyone wants to do a port?
12122 irix5* | irix6* | nonstopux*)
12123 case $cc_basename in
12125 lt_prog_compiler_wl_CXX='-Wl,'
12126 lt_prog_compiler_static_CXX='-non_shared'
12127 # CC pic flag -KPIC is the default.
12133 linux* | k*bsd*-gnu)
12134 case $cc_basename in
12137 lt_prog_compiler_wl_CXX='--backend -Wl,'
12138 lt_prog_compiler_pic_CXX='-fPIC'
12142 lt_prog_compiler_wl_CXX='-Wl,'
12143 lt_prog_compiler_pic_CXX='-KPIC'
12144 lt_prog_compiler_static_CXX='-static'
12147 # Portland Group C++ compiler.
12148 lt_prog_compiler_wl_CXX='-Wl,'
12149 lt_prog_compiler_pic_CXX='-fpic'
12150 lt_prog_compiler_static_CXX='-Bstatic'
12154 # Make sure the PIC flag is empty. It appears that all Alpha
12155 # Linux and Compaq Tru64 Unix objects are PIC.
12156 lt_prog_compiler_pic_CXX=
12157 lt_prog_compiler_static_CXX='-non_shared'
12160 case `$CC -V 2>&1 | sed 5q` in
12163 lt_prog_compiler_pic_CXX='-KPIC'
12164 lt_prog_compiler_static_CXX='-Bstatic'
12165 lt_prog_compiler_wl_CXX='-Qoption ld '
12176 case $cc_basename in
12178 lt_prog_compiler_pic_CXX='-W c,exportall'
12186 osf3* | osf4* | osf5*)
12187 case $cc_basename in
12189 lt_prog_compiler_wl_CXX='--backend -Wl,'
12192 # Rational C++ 2.4.1
12193 lt_prog_compiler_pic_CXX='-pic'
12196 # Digital/Compaq C++
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 # Make sure the PIC flag is empty. It appears that all Alpha
12199 # Linux and Compaq Tru64 Unix objects are PIC.
12200 lt_prog_compiler_pic_CXX=
12201 lt_prog_compiler_static_CXX='-non_shared'
12210 case $cc_basename in
12212 # Sun C++ 4.2, 5.x and Centerline C++
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12215 lt_prog_compiler_wl_CXX='-Qoption ld '
12218 # Green Hills C++ Compiler
12219 lt_prog_compiler_pic_CXX='-PIC'
12226 case $cc_basename in
12229 lt_prog_compiler_pic_CXX='-pic'
12230 lt_prog_compiler_static_CXX='-Bstatic'
12234 lt_prog_compiler_pic_CXX='-pic'
12241 case $cc_basename in
12243 # NonStop-UX NCC 3.20
12244 lt_prog_compiler_pic_CXX='-KPIC'
12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251 case $cc_basename in
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-KPIC'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12262 lt_prog_compiler_can_build_shared_CXX=no
12267 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12268 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12271 # Check to make sure the PIC flag actually works.
12273 if test -n "$lt_prog_compiler_pic_CXX"; then
12275 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12276 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12277 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12278 $as_echo_n "(cached) " >&6
12280 lt_cv_prog_compiler_pic_works_CXX=no
12281 ac_outfile=conftest.$ac_objext
12282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12284 # Insert the option either (1) after the last *FLAGS variable, or
12285 # (2) before a word containing "conftest.", or (3) at the end.
12286 # Note that $ac_compile itself does not contain backslashes and begins
12287 # with a dollar sign (not a hyphen), so the echo should work correctly.
12288 # The option is referenced via a variable to avoid confusing sed.
12289 lt_compile=`echo "$ac_compile" | $SED \
12290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12292 -e 's:$: $lt_compiler_flag:'`
12293 (eval echo "\"\$as_me:12293: $lt_compile\"" >&5)
12294 (eval "$lt_compile" 2>conftest.err)
12296 cat conftest.err >&5
12297 echo "$as_me:12297: \$? = $ac_status" >&5
12298 if (exit $ac_status) && test -s "$ac_outfile"; then
12299 # The compiler can only warn and ignore the option if not recognized
12300 # So say no if there are warnings other than the usual output.
12301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12304 lt_cv_prog_compiler_pic_works_CXX=yes
12310 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12311 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12313 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12314 case $lt_prog_compiler_pic_CXX in
12316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_can_build_shared_CXX=no
12325 # For platforms which do not support PIC, -DPIC is meaningless:
12327 lt_prog_compiler_pic_CXX=
12330 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12335 # Check to make sure the static flag actually works.
12337 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12338 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12339 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12340 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12343 lt_cv_prog_compiler_static_works_CXX=no
12344 save_LDFLAGS="$LDFLAGS"
12345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12348 # The linker can only warn and ignore the option if not recognized
12349 # So say no if there are warnings
12350 if test -s conftest.err; then
12351 # Append any errors to the config.log.
12352 cat conftest.err 1>&5
12353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12355 if diff conftest.exp conftest.er2 >/dev/null; then
12356 lt_cv_prog_compiler_static_works_CXX=yes
12359 lt_cv_prog_compiler_static_works_CXX=yes
12363 LDFLAGS="$save_LDFLAGS"
12366 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12367 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12369 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12372 lt_prog_compiler_static_CXX=
12376 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12378 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12379 $as_echo_n "(cached) " >&6
12381 lt_cv_prog_compiler_c_o_CXX=no
12382 $rm -r conftest 2>/dev/null
12386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12388 lt_compiler_flag="-o out/conftest2.$ac_objext"
12389 # Insert the option either (1) after the last *FLAGS variable, or
12390 # (2) before a word containing "conftest.", or (3) at the end.
12391 # Note that $ac_compile itself does not contain backslashes and begins
12392 # with a dollar sign (not a hyphen), so the echo should work correctly.
12393 lt_compile=`echo "$ac_compile" | $SED \
12394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396 -e 's:$: $lt_compiler_flag:'`
12397 (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398 (eval "$lt_compile" 2>out/conftest.err)
12400 cat out/conftest.err >&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12404 # The compiler can only warn and ignore the option if not recognized
12405 # So say no if there are warnings
12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12409 lt_cv_prog_compiler_c_o_CXX=yes
12414 # SGI C++ compiler will create directory out/ii_files/ for
12415 # template instantiation
12416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12417 $rm out/* && rmdir out
12423 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12424 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12427 hard_links="nottested"
12428 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12429 # do not overwrite the value of need_locks provided by the user
12430 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12431 $as_echo_n "checking if we can lock with hard links... " >&6; }
12434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12436 ln conftest.a conftest.b 2>&5 || hard_links=no
12437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12438 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12439 $as_echo "$hard_links" >&6; }
12440 if test "$hard_links" = no; then
12441 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12442 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12449 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12450 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12455 # If we're using GNU nm, then we don't want the "-C" option.
12456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12458 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'
12460 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'
12464 export_symbols_cmds_CXX="$ltdll_cmds"
12467 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'
12470 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12473 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12475 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12476 $as_echo "$ld_shlibs_CXX" >&6; }
12477 test "$ld_shlibs_CXX" = no && can_build_shared=no
12480 # Do we need to explicitly link libc?
12482 case "x$archive_cmds_need_lc_CXX" in
12484 # Assume -lc should be added
12485 archive_cmds_need_lc_CXX=yes
12487 if test "$enable_shared" = yes && test "$GCC" = yes; then
12488 case $archive_cmds_CXX in
12490 # FIXME: we may have to deal with multi-command sequences.
12493 # Test whether the compiler implicitly links with -lc since on some
12494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12495 # to ld, don't add -lc before -lgcc.
12496 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>&5
12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } 2>conftest.err; then
12508 libobjs=conftest.$ac_objext
12510 wl=$lt_prog_compiler_wl_CXX
12511 pic_flag=$lt_prog_compiler_pic_CXX
12517 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12518 allow_undefined_flag_CXX=
12519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12520 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }
12525 archive_cmds_need_lc_CXX=no
12527 archive_cmds_need_lc_CXX=yes
12529 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12531 cat conftest.err 1>&5
12534 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12535 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12542 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12544 library_names_spec=
12545 libname_spec='lib$name'
12549 postuninstall_cmds=
12553 shlibpath_overrides_runpath=unknown
12555 dynamic_linker="$host_os ld.so"
12556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12558 need_lib_prefix=unknown
12559 hardcode_into_libs=no
12561 # when you set need_version to no, make sure it does not cause -set_version
12562 # flags to be left without arguments
12563 need_version=unknown
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12569 shlibpath_var=LIBPATH
12571 # AIX 3 has no versioning support, so we append a major version to the name.
12572 soname_spec='${libname}${release}${shared_ext}$major'
12579 hardcode_into_libs=yes
12580 if test "$host_cpu" = ia64; then
12581 # AIX 5 supports IA64
12582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12583 shlibpath_var=LD_LIBRARY_PATH
12585 # With GCC up to 2.95.x, collect2 would create an import file
12586 # for dependence libraries. The import file would start with
12587 # the line `#! .'. This would cause the generated library to
12588 # depend on `.', always an invalid library. This was fixed in
12589 # development snapshots of GCC prior to 3.0.
12591 aix4 | aix4.[01] | aix4.[01].*)
12592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12597 can_build_shared=no
12601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12602 # soname into executable. Probably we can add versioning support to
12603 # collect2, so additional links can be useful in future.
12604 if test "$aix_use_runtimelinking" = yes; then
12605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12606 # instead of lib<name>.a to let people know that these are not
12607 # typical AIX shared libraries.
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610 # We preserve .a as extension for shared libraries through AIX4.2
12611 # and later when we are not doing run time linking.
12612 library_names_spec='${libname}${release}.a $libname.a'
12613 soname_spec='${libname}${release}${shared_ext}$major'
12615 shlibpath_var=LIBPATH
12620 library_names_spec='$libname.ixlibrary $libname.a'
12621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12622 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'
12626 library_names_spec='${libname}${shared_ext}'
12627 dynamic_linker="$host_os ld.so"
12628 shlibpath_var=LIBRARY_PATH
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12640 # the default ld.so.conf also contains /usr/contrib/lib and
12641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12642 # libtool to hard-code these into programs
12645 cygwin* | mingw* | pw32*)
12646 version_type=windows
12651 case $GCC,$host_os in
12652 yes,cygwin* | yes,mingw* | yes,pw32*)
12653 library_names_spec='$libname.dll.a'
12654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12655 postinstall_cmds='base_file=`basename \${file}`~
12656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12657 dldir=$destdir/`dirname \$dlpath`~
12658 test -d \$dldir || mkdir -p \$dldir~
12659 $install_prog $dir/$dlname \$dldir/$dlname~
12660 chmod a+x \$dldir/$dlname'
12661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12662 dlpath=$dir/\$dldll~
12664 shlibpath_overrides_runpath=yes
12668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12673 # MinGW DLLs use traditional 'lib' prefix
12674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12677 # It is most probably a Windows format PATH printed by
12678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12679 # path with ; separators, and with drive letters. We can handle the
12680 # drive letters (cygwin fileutils understands them), so leave them,
12681 # especially as we might pass files found there to a mingw objdump,
12682 # which wouldn't understand a cygwinified path. Ahh.
12683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12689 # pw32 DLLs use 'pw' prefix rather than 'lib'
12690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12699 dynamic_linker='Win32 ld.exe'
12700 # FIXME: first we should search . and the directory the executable is in
12704 darwin* | rhapsody*)
12705 dynamic_linker="$host_os dyld"
12706 version_type=darwin
12709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12710 soname_spec='${libname}${release}${major}$shared_ext'
12711 shlibpath_overrides_runpath=yes
12712 shlibpath_var=DYLD_LIBRARY_PATH
12713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12731 freebsd* | dragonfly*)
12732 # DragonFly does not have aout. When/if they implement a new
12733 # versioning mechanism, adjust this.
12734 if test -x /usr/bin/objformat; then
12735 objformat=`/usr/bin/objformat`
12738 freebsd[123]*) objformat=aout ;;
12739 *) objformat=elf ;;
12742 version_type=freebsd-$objformat
12743 case $version_type in
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12754 shlibpath_var=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath=yes
12759 freebsd3.[01]* | freebsdelf3.[01]*)
12760 shlibpath_overrides_runpath=yes
12761 hardcode_into_libs=yes
12763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12765 shlibpath_overrides_runpath=no
12766 hardcode_into_libs=yes
12768 *) # from 4.6 on, and DragonFly
12769 shlibpath_overrides_runpath=yes
12770 hardcode_into_libs=yes
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 hardcode_into_libs=yes
12785 hpux9* | hpux10* | hpux11*)
12786 # Give a soname corresponding to the major version so that dld.sl refuses to
12787 # link against other versions.
12794 hardcode_into_libs=yes
12795 dynamic_linker="$host_os dld.so"
12796 shlibpath_var=LD_LIBRARY_PATH
12797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 if test "X$HPUX_IA64_MODE" = X32; then
12801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12809 hardcode_into_libs=yes
12810 dynamic_linker="$host_os dld.sl"
12811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12820 dynamic_linker="$host_os dld.sl"
12821 shlibpath_var=SHLIB_PATH
12822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12828 postinstall_cmds='chmod 555 $lib'
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=no
12840 hardcode_into_libs=yes
12843 irix5* | irix6* | nonstopux*)
12845 nonstopux*) version_type=nonstopux ;;
12847 if test "$lt_cv_prog_gnu_ld" = yes; then
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12858 irix5* | nonstopux*)
12859 libsuff= shlibsuff=
12862 case $LD in # libtool.m4 will add one of these switches to LD
12863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12864 libsuff= shlibsuff= libmagic=32-bit;;
12865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12866 libsuff=32 shlibsuff=N32 libmagic=N32;;
12867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12869 *) libsuff= shlibsuff= libmagic=never-match;;
12873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12874 shlibpath_overrides_runpath=no
12875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12877 hardcode_into_libs=yes
12880 # No shared lib support for Linux oldld, aout, or coff.
12881 linux*oldld* | linux*aout* | linux*coff*)
12885 # This must be Linux ELF.
12886 linux* | k*bsd*-gnu)
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=no
12895 # This implies no fast_install, which is unacceptable.
12896 # Some rework will be needed to allow for fast_install
12897 # before this can be enabled.
12898 hardcode_into_libs=yes
12900 # Append ld.so.conf contents to the search path
12901 if test -f /etc/ld.so.conf; then
12902 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' ' '`
12903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12906 # We used to test for /lib/ld.so.1 and disable shared libraries on
12907 # powerpc, because MkLinux only supported shared libraries with the
12908 # GNU dynamic linker. Since this was broken with cross compilers,
12909 # most powerpc-linux boxes support dynamic linking these days and
12910 # people can always --disable-shared, the test was removed, and we
12911 # assume the GNU/Linux dynamic linker is in use.
12912 dynamic_linker='GNU/Linux ld.so'
12919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 dynamic_linker='NetBSD (a.out) ld.so'
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 dynamic_linker='NetBSD ld.elf_so'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12952 sys_lib_dlsearch_path_spec="/usr/lib"
12954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12957 *) need_version=no ;;
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12961 shlibpath_var=LD_LIBRARY_PATH
12962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12964 openbsd2.[89] | openbsd2.[89].*)
12965 shlibpath_overrides_runpath=no
12968 shlibpath_overrides_runpath=yes
12972 shlibpath_overrides_runpath=yes
12977 libname_spec='$name'
12980 library_names_spec='$libname${shared_ext} $libname.a'
12981 dynamic_linker='OS/2 ld.exe'
12982 shlibpath_var=LIBPATH
12985 osf3* | osf4* | osf5*)
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13008 hardcode_into_libs=yes
13009 # ldd complains unless libraries are executable
13010 postinstall_cmds='chmod +x $lib'
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 if test "$with_gnu_ld" = yes; then
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 case $host_vendor in
13032 shlibpath_overrides_runpath=no
13034 export_dynamic_flag_spec='${wl}-Blargedynsym'
13035 runpath_var=LD_RUN_PATH
13043 shlibpath_overrides_runpath=no
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13050 if test -d /usr/nec ;then
13052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13053 soname_spec='$libname${shared_ext}.$major'
13054 shlibpath_var=LD_LIBRARY_PATH
13058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13059 version_type=freebsd-elf
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 hardcode_into_libs=yes
13066 if test "$with_gnu_ld" = yes; then
13067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13068 shlibpath_overrides_runpath=no
13070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13071 shlibpath_overrides_runpath=yes
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13092 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13093 $as_echo "$dynamic_linker" >&6; }
13094 test "$dynamic_linker" = no && can_build_shared=no
13096 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13097 $as_echo_n "(cached) " >&6
13099 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13102 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13103 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13106 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13109 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13112 if test "$GCC" = yes; then
13113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13116 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13117 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13118 hardcode_action_CXX=
13119 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13120 test -n "$runpath_var_CXX" || \
13121 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13123 # We can hardcode non-existant directories.
13124 if test "$hardcode_direct_CXX" != no &&
13125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13126 # have to relink, otherwise we might link with an installed library
13127 # when we should be linking with a yet-to-be-installed one
13128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13129 test "$hardcode_minus_L_CXX" != no; then
13130 # Linking always hardcodes the temporary library directory.
13131 hardcode_action_CXX=relink
13133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13134 hardcode_action_CXX=immediate
13137 # We cannot hardcode anything, or else we can only hardcode existing
13139 hardcode_action_CXX=unsupported
13141 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13142 $as_echo "$hardcode_action_CXX" >&6; }
13144 if test "$hardcode_action_CXX" = relink; then
13145 # Fast installation is not supported
13146 enable_fast_install=no
13147 elif test "$shlibpath_overrides_runpath" = yes ||
13148 test "$enable_shared" = no; then
13149 # Fast installation is not necessary
13150 enable_fast_install=needless
13154 # The else clause should only fire when bootstrapping the
13155 # libtool distribution, otherwise you forgot to ship ltmain.sh
13156 # with your package, and you will get complaints that there are
13157 # no rules to generate ltmain.sh.
13158 if test -f "$ltmain"; then
13159 # See if we are running on zsh, and set the options which allow our commands through
13160 # without removal of \ escapes.
13161 if test -n "${ZSH_VERSION+set}" ; then
13162 setopt NO_GLOB_SUBST
13164 # Now quote all the things that may contain metacharacters while being
13165 # careful not to overquote the AC_SUBSTed values. We take copies of the
13166 # variables and quote the copies for generation of the libtool script.
13167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13171 deplibs_check_method reload_flag reload_cmds need_locks \
13172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13173 lt_cv_sys_global_symbol_to_c_name_address \
13174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13175 old_postinstall_cmds old_postuninstall_cmds \
13179 lt_prog_compiler_wl_CXX \
13180 lt_prog_compiler_pic_CXX \
13181 lt_prog_compiler_static_CXX \
13182 lt_prog_compiler_no_builtin_flag_CXX \
13183 export_dynamic_flag_spec_CXX \
13184 thread_safe_flag_spec_CXX \
13185 whole_archive_flag_spec_CXX \
13186 enable_shared_with_static_runtimes_CXX \
13187 old_archive_cmds_CXX \
13188 old_archive_from_new_cmds_CXX \
13189 predep_objects_CXX \
13190 postdep_objects_CXX \
13193 compiler_lib_search_path_CXX \
13194 compiler_lib_search_dirs_CXX \
13196 archive_expsym_cmds_CXX \
13197 postinstall_cmds_CXX \
13198 postuninstall_cmds_CXX \
13199 old_archive_from_expsyms_cmds_CXX \
13200 allow_undefined_flag_CXX \
13201 no_undefined_flag_CXX \
13202 export_symbols_cmds_CXX \
13203 hardcode_libdir_flag_spec_CXX \
13204 hardcode_libdir_flag_spec_ld_CXX \
13205 hardcode_libdir_separator_CXX \
13206 hardcode_automatic_CXX \
13208 module_expsym_cmds_CXX \
13209 lt_cv_prog_compiler_c_o_CXX \
13210 fix_srcfile_path_CXX \
13211 exclude_expsyms_CXX \
13212 include_expsyms_CXX; do
13215 old_archive_cmds_CXX | \
13216 old_archive_from_new_cmds_CXX | \
13217 archive_cmds_CXX | \
13218 archive_expsym_cmds_CXX | \
13219 module_cmds_CXX | \
13220 module_expsym_cmds_CXX | \
13221 old_archive_from_expsyms_cmds_CXX | \
13222 export_symbols_cmds_CXX | \
13223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13224 postinstall_cmds | postuninstall_cmds | \
13225 old_postinstall_cmds | old_postuninstall_cmds | \
13226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13227 # Double-quote double-evaled strings.
13228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13237 *'\$0 --fallback-echo"')
13238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13244 cat <<__EOF__ >> "$cfgfile"
13245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13249 # Shell to use when invoking shell scripts.
13252 # Whether or not to build shared libraries.
13253 build_libtool_libs=$enable_shared
13255 # Whether or not to build static libraries.
13256 build_old_libs=$enable_static
13258 # Whether or not to add -lc for building shared libraries.
13259 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13261 # Whether or not to disallow shared libs when runtime libs are static
13262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13264 # Whether or not to optimize for fast installation.
13265 fast_install=$enable_fast_install
13268 host_alias=$host_alias
13272 # The build system.
13273 build_alias=$build_alias
13277 # An echo program that does not interpret backslashes.
13282 AR_FLAGS=$lt_AR_FLAGS
13287 # LTCC compiler flags.
13288 LTCFLAGS=$lt_LTCFLAGS
13290 # A language-specific compiler.
13291 CC=$lt_compiler_CXX
13293 # Is the compiler the GNU C compiler?
13299 # The linker used to build libraries.
13302 # Whether we need hard or soft links.
13305 # A BSD-compatible nm program.
13308 # A symbol stripping program
13311 # Used to examine libraries when file_magic_cmd begins "file"
13312 MAGIC_CMD=$MAGIC_CMD
13314 # Used on cygwin: DLL creation program.
13317 # Used on cygwin: object dumper.
13320 # Used on cygwin: assembler.
13323 # The name of the directory that contains temporary libtool files.
13326 # How to create reloadable object files.
13327 reload_flag=$lt_reload_flag
13328 reload_cmds=$lt_reload_cmds
13330 # How to pass a linker flag through the compiler.
13331 wl=$lt_lt_prog_compiler_wl_CXX
13333 # Object file suffix (normally "o").
13334 objext="$ac_objext"
13336 # Old archive suffix (normally "a").
13339 # Shared library suffix (normally ".so").
13340 shrext_cmds='$shrext_cmds'
13342 # Executable file suffix (normally "").
13345 # Additional compiler flags for building library objects.
13346 pic_flag=$lt_lt_prog_compiler_pic_CXX
13349 # What is the maximum length of a command?
13350 max_cmd_len=$lt_cv_sys_max_cmd_len
13352 # Does compiler simultaneously support -c and -o options?
13353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13355 # Must we lock files when doing compilation?
13356 need_locks=$lt_need_locks
13358 # Do we need the lib prefix for modules?
13359 need_lib_prefix=$need_lib_prefix
13361 # Do we need a version for libraries?
13362 need_version=$need_version
13364 # Whether dlopen is supported.
13365 dlopen_support=$enable_dlopen
13367 # Whether dlopen of programs is supported.
13368 dlopen_self=$enable_dlopen_self
13370 # Whether dlopen of statically linked programs is supported.
13371 dlopen_self_static=$enable_dlopen_self_static
13373 # Compiler flag to prevent dynamic linking.
13374 link_static_flag=$lt_lt_prog_compiler_static_CXX
13376 # Compiler flag to turn off builtin functions.
13377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13379 # Compiler flag to allow reflexive dlopens.
13380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13382 # Compiler flag to generate shared objects directly from archives.
13383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13385 # Compiler flag to generate thread-safe objects.
13386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13388 # Library versioning type.
13389 version_type=$version_type
13391 # Format of library name prefix.
13392 libname_spec=$lt_libname_spec
13394 # List of archive names. First name is the real one, the rest are links.
13395 # The last name is the one that the linker finds with -lNAME.
13396 library_names_spec=$lt_library_names_spec
13398 # The coded name of the library, if different from the real name.
13399 soname_spec=$lt_soname_spec
13401 # Commands used to build and install an old-style archive.
13403 old_archive_cmds=$lt_old_archive_cmds_CXX
13404 old_postinstall_cmds=$lt_old_postinstall_cmds
13405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13407 # Create an old-style archive from a shared archive.
13408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13410 # Create a temporary old-style archive to link instead of a shared archive.
13411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13413 # Commands used to build and install a shared archive.
13414 archive_cmds=$lt_archive_cmds_CXX
13415 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13416 postinstall_cmds=$lt_postinstall_cmds
13417 postuninstall_cmds=$lt_postuninstall_cmds
13419 # Commands used to build a loadable module (assumed same as above if empty)
13420 module_cmds=$lt_module_cmds_CXX
13421 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13423 # Commands to strip libraries.
13424 old_striplib=$lt_old_striplib
13425 striplib=$lt_striplib
13427 # Dependencies to place before the objects being linked to create a
13429 predep_objects=$lt_predep_objects_CXX
13431 # Dependencies to place after the objects being linked to create a
13433 postdep_objects=$lt_postdep_objects_CXX
13435 # Dependencies to place before the objects being linked to create a
13437 predeps=$lt_predeps_CXX
13439 # Dependencies to place after the objects being linked to create a
13441 postdeps=$lt_postdeps_CXX
13443 # The directories searched by this compiler when creating a shared
13445 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13447 # The library search path used internally by the compiler when linking
13448 # a shared library.
13449 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13451 # Method to check whether dependent libraries are shared objects.
13452 deplibs_check_method=$lt_deplibs_check_method
13454 # Command to use when deplibs_check_method == file_magic.
13455 file_magic_cmd=$lt_file_magic_cmd
13457 # Flag that allows shared libraries with undefined symbols to be built.
13458 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13460 # Flag that forces no undefined symbols.
13461 no_undefined_flag=$lt_no_undefined_flag_CXX
13463 # Commands used to finish a libtool library installation in a directory.
13464 finish_cmds=$lt_finish_cmds
13466 # Same as above, but a single script fragment to be evaled but not shown.
13467 finish_eval=$lt_finish_eval
13469 # Take the output of nm and produce a listing of raw symbols and C names.
13470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13472 # Transform the output of nm in a proper C declaration
13473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13475 # Transform the output of nm in a C name address pair
13476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13478 # This is the shared library runtime path variable.
13479 runpath_var=$runpath_var
13481 # This is the shared library path variable.
13482 shlibpath_var=$shlibpath_var
13484 # Is shlibpath searched before the hard-coded library search path?
13485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13487 # How to hardcode a shared library path into an executable.
13488 hardcode_action=$hardcode_action_CXX
13490 # Whether we should hardcode library paths into libraries.
13491 hardcode_into_libs=$hardcode_into_libs
13493 # Flag to hardcode \$libdir into a binary during linking.
13494 # This must work even if \$libdir does not exist.
13495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13497 # If ld is used when linking, flag to hardcode \$libdir into
13498 # a binary during linking. This must work even if \$libdir does
13500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13502 # Whether we need a single -rpath flag with a separated argument.
13503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13506 # resulting binary.
13507 hardcode_direct=$hardcode_direct_CXX
13509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13510 # resulting binary.
13511 hardcode_minus_L=$hardcode_minus_L_CXX
13513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13514 # the resulting binary.
13515 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13517 # Set to yes if building a shared library automatically hardcodes DIR into the library
13518 # and all subsequent libraries and executables linked against it.
13519 hardcode_automatic=$hardcode_automatic_CXX
13521 # Variables whose values should be saved in libtool wrapper scripts and
13522 # restored at relink time.
13523 variables_saved_for_relink="$variables_saved_for_relink"
13525 # Whether libtool must link a program against all its dependency libraries.
13526 link_all_deplibs=$link_all_deplibs_CXX
13528 # Compile-time system search path for libraries
13529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13531 # Run-time system search path for libraries
13532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13534 # Fix the shell variable \$srcfile for the compiler.
13535 fix_srcfile_path=$lt_fix_srcfile_path
13537 # Set to yes if exported symbols are required.
13538 always_export_symbols=$always_export_symbols_CXX
13540 # The commands to list exported symbols.
13541 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13543 # The commands to extract the exported symbol list from a shared archive.
13544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13546 # Symbols that should not be listed in the preloaded symbols.
13547 exclude_expsyms=$lt_exclude_expsyms_CXX
13549 # Symbols that must always be exported.
13550 include_expsyms=$lt_include_expsyms_CXX
13552 # ### END LIBTOOL TAG CONFIG: $tagname
13558 # If there is no Makefile yet, we rely on a make rule to execute
13559 # `config.status --recheck' to rerun these tests and create the
13560 # libtool script then.
13561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13562 if test -f "$ltmain_in"; then
13563 test -f Makefile && make "$ltmain"
13569 ac_cpp='$CPP $CPPFLAGS'
13570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13578 with_gnu_ldcxx=$with_gnu_ld
13579 with_gnu_ld=$lt_save_with_gnu_ld
13580 lt_cv_path_LDCXX=$lt_cv_path_LD
13581 lt_cv_path_LD=$lt_save_path_LD
13582 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13583 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13591 if test -n "$F77" && test "X$F77" != "Xno"; then
13594 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13595 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13599 archive_cmds_need_lc_F77=no
13600 allow_undefined_flag_F77=
13601 always_export_symbols_F77=no
13602 archive_expsym_cmds_F77=
13603 export_dynamic_flag_spec_F77=
13604 hardcode_direct_F77=no
13605 hardcode_libdir_flag_spec_F77=
13606 hardcode_libdir_flag_spec_ld_F77=
13607 hardcode_libdir_separator_F77=
13608 hardcode_minus_L_F77=no
13609 hardcode_automatic_F77=no
13611 module_expsym_cmds_F77=
13612 link_all_deplibs_F77=unknown
13613 old_archive_cmds_F77=$old_archive_cmds
13614 no_undefined_flag_F77=
13615 whole_archive_flag_spec_F77=
13616 enable_shared_with_static_runtimes_F77=no
13618 # Source file extension for f77 test sources.
13621 # Object file extension for compiled f77 test sources.
13625 # Code to be used in simple compile tests
13626 lt_simple_compile_test_code="\
13632 # Code to be used in simple link tests
13633 lt_simple_link_test_code="\
13638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13640 # If no C compiler was specified, use CC.
13643 # If no C compiler flags were specified, use CFLAGS.
13644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13646 # Allow CC to be a program name with arguments.
13650 # save warnings/boilerplate of simple test code
13651 ac_outfile=conftest.$ac_objext
13652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13654 _lt_compiler_boilerplate=`cat conftest.err`
13657 ac_outfile=conftest.$ac_objext
13658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13660 _lt_linker_boilerplate=`cat conftest.err`
13664 # Allow CC to be a program name with arguments.
13669 for cc_temp in $compiler""; do
13671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13677 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13680 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13682 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13683 $as_echo "$can_build_shared" >&6; }
13685 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13686 $as_echo_n "checking whether to build shared libraries... " >&6; }
13687 test "$can_build_shared" = "no" && enable_shared=no
13689 # On AIX, shared libraries and static libraries use the same namespace, and
13690 # are all built from PIC.
13693 test "$enable_shared" = yes && enable_static=no
13694 if test -n "$RANLIB"; then
13695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13696 postinstall_cmds='$RANLIB $lib'
13700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13701 test "$enable_shared" = yes && enable_static=no
13705 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13706 $as_echo "$enable_shared" >&6; }
13708 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13709 $as_echo_n "checking whether to build static libraries... " >&6; }
13710 # Make sure either enable_shared or enable_static is yes.
13711 test "$enable_shared" = yes || enable_static=yes
13712 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13713 $as_echo "$enable_static" >&6; }
13718 lt_prog_compiler_wl_F77=
13719 lt_prog_compiler_pic_F77=
13720 lt_prog_compiler_static_F77=
13722 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13723 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13725 if test "$GCC" = yes; then
13726 lt_prog_compiler_wl_F77='-Wl,'
13727 lt_prog_compiler_static_F77='-static'
13731 # All AIX code is PIC.
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 now supports IA64 processor
13734 lt_prog_compiler_static_F77='-Bstatic'
13739 # FIXME: we need at least 68020 code to build shared libraries, but
13740 # adding the `-m68020' flag to GCC prevents building anything better,
13742 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13746 # PIC is the default for these OSes.
13749 mingw* | cygwin* | pw32* | os2*)
13750 # This hack is so that the source file can tell whether it is being
13751 # built for inclusion in a dll (and should export symbols for example).
13752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13753 # (--disable-auto-import) libraries
13754 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13757 darwin* | rhapsody*)
13758 # PIC is the default on this platform
13759 # Common symbols not allowed in MH_DYLIB files
13760 lt_prog_compiler_pic_F77='-fno-common'
13764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13765 # Instead, we relocate shared libraries at runtime.
13769 # Just because we use GCC doesn't mean we suddenly get shared libraries
13770 # on systems that don't support them.
13771 lt_prog_compiler_can_build_shared_F77=no
13776 if test -d /usr/nec; then
13777 lt_prog_compiler_pic_F77=-Kconform_pic
13782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13783 # not for PA HP-UX.
13789 lt_prog_compiler_pic_F77='-fPIC'
13795 lt_prog_compiler_pic_F77='-fPIC'
13799 # PORTME Check for flag to pass linker flags through the system compiler.
13802 lt_prog_compiler_wl_F77='-Wl,'
13803 if test "$host_cpu" = ia64; then
13804 # AIX 5 now supports IA64 processor
13805 lt_prog_compiler_static_F77='-Bstatic'
13807 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13811 # PIC is the default on this platform
13812 # Common symbols not allowed in MH_DYLIB files
13813 case $cc_basename in
13815 lt_prog_compiler_pic_F77='-qnocommon'
13816 lt_prog_compiler_wl_F77='-Wl,'
13821 mingw* | cygwin* | pw32* | os2*)
13822 # This hack is so that the source file can tell whether it is being
13823 # built for inclusion in a dll (and should export symbols for example).
13824 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13827 hpux9* | hpux10* | hpux11*)
13828 lt_prog_compiler_wl_F77='-Wl,'
13829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13830 # not for PA HP-UX.
13836 lt_prog_compiler_pic_F77='+Z'
13839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13840 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13843 irix5* | irix6* | nonstopux*)
13844 lt_prog_compiler_wl_F77='-Wl,'
13845 # PIC (with -KPIC) is the default.
13846 lt_prog_compiler_static_F77='-non_shared'
13850 lt_prog_compiler_pic_F77='-KPIC'
13851 lt_prog_compiler_static_F77='-Bstatic'
13854 linux* | k*bsd*-gnu)
13855 case $cc_basename in
13857 lt_prog_compiler_wl_F77='-Wl,'
13858 lt_prog_compiler_pic_F77='-KPIC'
13859 lt_prog_compiler_static_F77='-static'
13861 pgcc* | pgf77* | pgf90* | pgf95*)
13862 # Portland Group compilers (*not* the Pentium gcc compiler,
13863 # which looks to be a dead project)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_pic_F77='-fpic'
13866 lt_prog_compiler_static_F77='-Bstatic'
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 # All Alpha code is PIC.
13871 lt_prog_compiler_static_F77='-non_shared'
13874 case `$CC -V 2>&1 | sed 5q` in
13877 lt_prog_compiler_pic_F77='-KPIC'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 lt_prog_compiler_wl_F77='-Wl,'
13882 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13883 lt_prog_compiler_pic_F77='-KPIC'
13884 lt_prog_compiler_static_F77='-Bstatic'
13885 lt_prog_compiler_wl_F77=''
13892 osf3* | osf4* | osf5*)
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 # All OSF/1 code is PIC.
13895 lt_prog_compiler_static_F77='-non_shared'
13899 lt_prog_compiler_static_F77='-non_shared'
13903 lt_prog_compiler_pic_F77='-KPIC'
13904 lt_prog_compiler_static_F77='-Bstatic'
13905 case $cc_basename in
13906 f77* | f90* | f95*)
13907 lt_prog_compiler_wl_F77='-Qoption ld ';;
13909 lt_prog_compiler_wl_F77='-Wl,';;
13914 lt_prog_compiler_wl_F77='-Qoption ld '
13915 lt_prog_compiler_pic_F77='-PIC'
13916 lt_prog_compiler_static_F77='-Bstatic'
13919 sysv4 | sysv4.2uw2* | sysv4.3*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-KPIC'
13922 lt_prog_compiler_static_F77='-Bstatic'
13926 if test -d /usr/nec ;then
13927 lt_prog_compiler_pic_F77='-Kconform_pic'
13928 lt_prog_compiler_static_F77='-Bstatic'
13932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 lt_prog_compiler_pic_F77='-KPIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 lt_prog_compiler_can_build_shared_F77=no
13944 lt_prog_compiler_pic_F77='-pic'
13945 lt_prog_compiler_static_F77='-Bstatic'
13949 lt_prog_compiler_can_build_shared_F77=no
13954 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13955 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13958 # Check to make sure the PIC flag actually works.
13960 if test -n "$lt_prog_compiler_pic_F77"; then
13962 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13963 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13964 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13965 $as_echo_n "(cached) " >&6
13967 lt_cv_prog_compiler_pic_works_F77=no
13968 ac_outfile=conftest.$ac_objext
13969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13971 # Insert the option either (1) after the last *FLAGS variable, or
13972 # (2) before a word containing "conftest.", or (3) at the end.
13973 # Note that $ac_compile itself does not contain backslashes and begins
13974 # with a dollar sign (not a hyphen), so the echo should work correctly.
13975 # The option is referenced via a variable to avoid confusing sed.
13976 lt_compile=`echo "$ac_compile" | $SED \
13977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979 -e 's:$: $lt_compiler_flag:'`
13980 (eval echo "\"\$as_me:13980: $lt_compile\"" >&5)
13981 (eval "$lt_compile" 2>conftest.err)
13983 cat conftest.err >&5
13984 echo "$as_me:13984: \$? = $ac_status" >&5
13985 if (exit $ac_status) && test -s "$ac_outfile"; then
13986 # The compiler can only warn and ignore the option if not recognized
13987 # So say no if there are warnings other than the usual output.
13988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13991 lt_cv_prog_compiler_pic_works_F77=yes
13997 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13998 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14000 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14001 case $lt_prog_compiler_pic_F77 in
14003 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14006 lt_prog_compiler_pic_F77=
14007 lt_prog_compiler_can_build_shared_F77=no
14012 # For platforms which do not support PIC, -DPIC is meaningless:
14014 lt_prog_compiler_pic_F77=
14017 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14022 # Check to make sure the static flag actually works.
14024 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14025 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14026 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14027 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14028 $as_echo_n "(cached) " >&6
14030 lt_cv_prog_compiler_static_works_F77=no
14031 save_LDFLAGS="$LDFLAGS"
14032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14035 # The linker can only warn and ignore the option if not recognized
14036 # So say no if there are warnings
14037 if test -s conftest.err; then
14038 # Append any errors to the config.log.
14039 cat conftest.err 1>&5
14040 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042 if diff conftest.exp conftest.er2 >/dev/null; then
14043 lt_cv_prog_compiler_static_works_F77=yes
14046 lt_cv_prog_compiler_static_works_F77=yes
14050 LDFLAGS="$save_LDFLAGS"
14053 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14054 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14056 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14059 lt_prog_compiler_static_F77=
14063 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14065 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14066 $as_echo_n "(cached) " >&6
14068 lt_cv_prog_compiler_c_o_F77=no
14069 $rm -r conftest 2>/dev/null
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14075 lt_compiler_flag="-o out/conftest2.$ac_objext"
14076 # Insert the option either (1) after the last *FLAGS variable, or
14077 # (2) before a word containing "conftest.", or (3) at the end.
14078 # Note that $ac_compile itself does not contain backslashes and begins
14079 # with a dollar sign (not a hyphen), so the echo should work correctly.
14080 lt_compile=`echo "$ac_compile" | $SED \
14081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083 -e 's:$: $lt_compiler_flag:'`
14084 (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085 (eval "$lt_compile" 2>out/conftest.err)
14087 cat out/conftest.err >&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14091 # The compiler can only warn and ignore the option if not recognized
14092 # So say no if there are warnings
14093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14096 lt_cv_prog_compiler_c_o_F77=yes
14101 # SGI C++ compiler will create directory out/ii_files/ for
14102 # template instantiation
14103 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14104 $rm out/* && rmdir out
14110 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14111 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14114 hard_links="nottested"
14115 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14116 # do not overwrite the value of need_locks provided by the user
14117 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14118 $as_echo_n "checking if we can lock with hard links... " >&6; }
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14123 ln conftest.a conftest.b 2>&5 || hard_links=no
14124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14126 $as_echo "$hard_links" >&6; }
14127 if test "$hard_links" = no; then
14128 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14129 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14136 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14137 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14140 allow_undefined_flag_F77=
14141 enable_shared_with_static_runtimes_F77=no
14143 archive_expsym_cmds_F77=
14144 old_archive_From_new_cmds_F77=
14145 old_archive_from_expsyms_cmds_F77=
14146 export_dynamic_flag_spec_F77=
14147 whole_archive_flag_spec_F77=
14148 thread_safe_flag_spec_F77=
14149 hardcode_libdir_flag_spec_F77=
14150 hardcode_libdir_flag_spec_ld_F77=
14151 hardcode_libdir_separator_F77=
14152 hardcode_direct_F77=no
14153 hardcode_minus_L_F77=no
14154 hardcode_shlibpath_var_F77=unsupported
14155 link_all_deplibs_F77=unknown
14156 hardcode_automatic_F77=no
14158 module_expsym_cmds_F77=
14159 always_export_symbols_F77=no
14160 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161 # include_expsyms should be a list of space-separated symbols to be *always*
14162 # included in the symbol list
14163 include_expsyms_F77=
14164 # exclude_expsyms can be an extended regexp of symbols to exclude
14165 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14167 # as well as any symbol that contains `d'.
14168 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14170 # platforms (ab)use it in PIC code, but their linkers get confused if
14171 # the symbol is explicitly referenced. Since portable code cannot
14172 # rely on this symbol name, it's probably fine to never include it in
14173 # preloaded symbol tables.
14174 # Exclude shared library initialization/finalization symbols.
14175 extract_expsyms_cmds=
14176 # Just being paranoid about ensuring that cc_basename is set.
14177 for cc_temp in $compiler""; do
14179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14185 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14188 cygwin* | mingw* | pw32*)
14189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14190 # When not using gcc, we currently assume that we are using
14191 # Microsoft Visual C++.
14192 if test "$GCC" != yes; then
14197 # we just hope/assume this is gcc and not c89 (= MSVC++)
14206 if test "$with_gnu_ld" = yes; then
14207 # If archive_cmds runs LD, not CC, wlarc should be empty
14210 # Set some defaults for GNU ld with shared library support. These
14211 # are reset later if shared libraries are not supported. Putting them
14212 # here allows them to be overridden if necessary.
14213 runpath_var=LD_RUN_PATH
14214 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14215 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14216 # ancient GNU ld didn't support --whole-archive et. al.
14217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14218 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14220 whole_archive_flag_spec_F77=
14222 supports_anon_versioning=no
14223 case `$LD -v 2>/dev/null` in
14224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14227 *\ 2.11.*) ;; # other 2.11 versions
14228 *) supports_anon_versioning=yes ;;
14231 # See if GNU ld supports shared libraries.
14234 # On AIX/PPC, the GNU linker is very broken
14235 if test "$host_cpu" != ia64; then
14239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14240 *** to be unable to reliably create shared libraries on AIX.
14241 *** Therefore, libtool is disabling shared libraries support. If you
14242 *** really care for shared libraries, you may want to modify your PATH
14243 *** so that a non-GNU linker is found, and then restart.
14250 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)'
14251 hardcode_libdir_flag_spec_F77='-L$libdir'
14252 hardcode_minus_L_F77=yes
14254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14255 # that the semantics of dynamic libraries on AmigaOS, at least up
14256 # to version 4, is to share data among multiple programs linked
14257 # with the same dynamic library. Since this doesn't match the
14258 # behavior of shared libraries on other platforms, we can't use
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 allow_undefined_flag_F77=unsupported
14266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14267 # support --undefined. This deserves some investigation. FIXME
14268 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14274 cygwin* | mingw* | pw32*)
14275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14276 # as there is no search path for DLLs.
14277 hardcode_libdir_flag_spec_F77='-L$libdir'
14278 allow_undefined_flag_F77=unsupported
14279 always_export_symbols_F77=no
14280 enable_shared_with_static_runtimes_F77=yes
14281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 # If the export-symbols file already is a .def file (1st line
14286 # is EXPORTS), use it as is; otherwise, prepend...
14287 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14288 cp $export_symbols $output_objdir/$soname.def;
14290 echo EXPORTS > $output_objdir/$soname.def;
14291 cat $export_symbols >> $output_objdir/$soname.def;
14293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14300 hardcode_direct_F77=no
14301 hardcode_shlibpath_var_F77=no
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14303 export_dynamic_flag_spec_F77='${wl}-E'
14304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14305 # Instead, shared libraries are loaded at an image base (0x10000000 by
14306 # default) and relocated if they conflict, which is a slow very memory
14307 # consuming and fragmenting process. To avoid this, we pick a random,
14308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14310 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'
14311 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'
14314 gnu* | linux* | k*bsd*-gnu)
14315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14317 case $cc_basename,$host_cpu in
14318 pgcc*) # Portland Group C compiler
14319 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'
14320 tmp_addflag=' $pic_flag'
14322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14323 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'
14324 tmp_addflag=' $pic_flag -Mnomain' ;;
14325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14326 tmp_addflag=' -i_dynamic' ;;
14327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14328 tmp_addflag=' -i_dynamic -nofor_main' ;;
14329 ifc* | ifort*) # Intel Fortran compiler
14330 tmp_addflag=' -nofor_main' ;;
14332 case `$CC -V 2>&1 | sed 5q` in
14333 *Sun\ C*) # Sun C 5.9
14334 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'
14335 tmp_sharedflag='-G' ;;
14336 *Sun\ F*) # Sun Fortran 8.3
14337 tmp_sharedflag='-G' ;;
14339 tmp_sharedflag='-shared' ;;
14341 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343 if test $supports_anon_versioning = yes; then
14344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 $echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14369 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14370 *** create shared libraries on Solaris systems. Therefore, libtool
14371 *** is disabling shared libraries support. We urge you to upgrade GNU
14372 *** binutils to release 2.9.1 or newer. Another option is to modify
14373 *** your PATH or compiler configuration so that the native linker is
14374 *** used, and then restart.
14377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14386 case `$LD -v 2>&1` in
14387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14391 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14392 *** reliably create shared libraries on SCO systems. Therefore, libtool
14393 *** is disabling shared libraries support. We urge you to upgrade GNU
14394 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14395 *** your PATH or compiler configuration so that the native linker is
14396 *** used, and then restart.
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14429 if test "$ld_shlibs_F77" = no; then
14431 hardcode_libdir_flag_spec_F77=
14432 export_dynamic_flag_spec_F77=
14433 whole_archive_flag_spec_F77=
14436 # PORTME fill in a description of your system's linker (not GNU ld)
14439 allow_undefined_flag_F77=unsupported
14440 always_export_symbols_F77=yes
14441 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'
14442 # Note: this linker hardcodes the directories in LIBPATH if there
14443 # are no directories specified by -L.
14444 hardcode_minus_L_F77=yes
14445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14446 # Neither direct hardcoding nor static linking is supported with a
14448 hardcode_direct_F77=unsupported
14453 if test "$host_cpu" = ia64; then
14454 # On IA64, the linker does run time linking by default, so we don't
14455 # have to do anything special.
14456 aix_use_runtimelinking=no
14457 exp_sym_flag='-Bexport'
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14463 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'
14465 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'
14467 aix_use_runtimelinking=no
14469 # Test if we are trying to use run time linking or normal
14470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14471 # need to do runtime linking.
14472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14473 for ld_flag in $LDFLAGS; do
14474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14475 aix_use_runtimelinking=yes
14482 exp_sym_flag='-bexport'
14483 no_entry_flag='-bnoentry'
14486 # When large executables or shared objects are built, AIX ld can
14487 # have problems creating the table of contents. If linking a library
14488 # or program results in "error TOC overflow" add -mminimal-toc to
14489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14492 archive_cmds_F77=''
14493 hardcode_direct_F77=yes
14494 hardcode_libdir_separator_F77=':'
14495 link_all_deplibs_F77=yes
14497 if test "$GCC" = yes; then
14498 case $host_os in aix4.[012]|aix4.[012].*)
14499 # We only want to do this on AIX 4.2 and lower, the check
14500 # below for broken collect2 doesn't work under 4.3+
14501 collect2name=`${CC} -print-prog-name=collect2`
14502 if test -f "$collect2name" && \
14503 strings "$collect2name" | grep resolve_lib_name >/dev/null
14505 # We have reworked collect2
14508 # We have old collect2
14509 hardcode_direct_F77=unsupported
14510 # It fails to find uninstalled libraries when the uninstalled
14511 # path is not listed in the libpath. Setting hardcode_minus_L
14512 # to unsupported forces relinking
14513 hardcode_minus_L_F77=yes
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_libdir_separator_F77=
14519 shared_flag='-shared'
14520 if test "$aix_use_runtimelinking" = yes; then
14521 shared_flag="$shared_flag "'${wl}-G'
14525 if test "$host_cpu" = ia64; then
14526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14527 # chokes on -Wl,-G. The following line is correct:
14530 if test "$aix_use_runtimelinking" = yes; then
14531 shared_flag='${wl}-G'
14533 shared_flag='${wl}-bM:SRE'
14538 # It seems that -bexpall does not export symbols beginning with
14539 # underscore (_), so it is better to generate a list of symbols to export.
14540 always_export_symbols_F77=yes
14541 if test "$aix_use_runtimelinking" = yes; then
14542 # Warning - without using the other runtime loading flags (-brtl),
14543 # -berok will link without error, but may produce a broken library.
14544 allow_undefined_flag_F77='-berok'
14545 # Determine the default libpath from the value encoded in an empty executable.
14546 cat >conftest.$ac_ext <<_ACEOF
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (ac_try="$ac_link"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558 $as_echo "$ac_try_echo") >&5
14559 (eval "$ac_link") 2>conftest.er1
14561 grep -v '^ *+' conftest.er1 >conftest.err
14563 cat conftest.err >&5
14564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } && {
14566 test -z "$ac_f77_werror_flag" ||
14567 test ! -s conftest.err
14568 } && test -s conftest$ac_exeext && {
14569 test "$cross_compiling" = yes ||
14570 $as_test_x conftest$ac_exeext
14573 lt_aix_libpath_sed='
14574 /Import File Strings/,/^$/ {
14580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14581 # Check for a 64-bit object if we didn't find anything.
14582 if test -z "$aix_libpath"; then
14583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14586 $as_echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14592 rm -rf conftest.dSYM
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14597 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14598 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"
14600 if test "$host_cpu" = ia64; then
14601 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14602 allow_undefined_flag_F77="-z nodefs"
14603 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"
14605 # Determine the default libpath from the value encoded in an empty executable.
14606 cat >conftest.$ac_ext <<_ACEOF
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (ac_try="$ac_link"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14618 $as_echo "$ac_try_echo") >&5
14619 (eval "$ac_link") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1 >conftest.err
14623 cat conftest.err >&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_f77_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext && {
14629 test "$cross_compiling" = yes ||
14630 $as_test_x conftest$ac_exeext
14633 lt_aix_libpath_sed='
14634 /Import File Strings/,/^$/ {
14640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641 # Check for a 64-bit object if we didn't find anything.
14642 if test -z "$aix_libpath"; then
14643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14646 $as_echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14652 rm -rf conftest.dSYM
14653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14654 conftest$ac_exeext conftest.$ac_ext
14655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14657 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14658 # Warning - without using the other run time loading flags,
14659 # -berok will link without error, but may produce a broken library.
14660 no_undefined_flag_F77=' ${wl}-bernotok'
14661 allow_undefined_flag_F77=' ${wl}-berok'
14662 # Exported symbols can be pulled into shared objects from archives
14663 whole_archive_flag_spec_F77='$convenience'
14664 archive_cmds_need_lc_F77=yes
14665 # This is similar to how AIX traditionally builds its shared libraries.
14666 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'
14672 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)'
14673 hardcode_libdir_flag_spec_F77='-L$libdir'
14674 hardcode_minus_L_F77=yes
14675 # see comment about different semantics on the GNU ld section
14680 export_dynamic_flag_spec_F77=-rdynamic
14683 cygwin* | mingw* | pw32*)
14684 # When not using gcc, we currently assume that we are using
14685 # Microsoft Visual C++.
14686 # hardcode_libdir_flag_spec is actually meaningless, as there is
14687 # no search path for DLLs.
14688 hardcode_libdir_flag_spec_F77=' '
14689 allow_undefined_flag_F77=unsupported
14690 # Tell ltmain to make .lib files, not .a files.
14692 # Tell ltmain to make .dll files, not .so files.
14694 # FIXME: Setting linknames here is a bad hack.
14695 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14696 # The linker will automatically build a .lib file if we build a DLL.
14697 old_archive_From_new_cmds_F77='true'
14698 # FIXME: Should let the user specify the lib program.
14699 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14700 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14701 enable_shared_with_static_runtimes_F77=yes
14704 darwin* | rhapsody*)
14706 rhapsody* | darwin1.[012])
14707 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14711 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14713 case ${MACOSX_DEPLOYMENT_TARGET} in
14715 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14718 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14724 archive_cmds_need_lc_F77=no
14725 hardcode_direct_F77=no
14726 hardcode_automatic_F77=yes
14727 hardcode_shlibpath_var_F77=unsupported
14728 whole_archive_flag_spec_F77=''
14729 link_all_deplibs_F77=yes
14730 if test "$GCC" = yes ; then
14731 output_verbose_link_cmd='echo'
14732 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14733 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14734 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14735 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14737 case $cc_basename in
14739 output_verbose_link_cmd='echo'
14740 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14741 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14743 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}'
14744 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}'
14754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_libdir_flag_spec_F77='-L$libdir'
14756 hardcode_shlibpath_var_F77=no
14763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14764 # support. Future versions do this automatically, but an explicit c++rt0.o
14765 # does not break anything, and helps significantly (at the cost of a little
14768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14769 hardcode_libdir_flag_spec_F77='-R$libdir'
14770 hardcode_direct_F77=yes
14771 hardcode_shlibpath_var_F77=no
14774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14776 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_direct_F77=yes
14778 hardcode_minus_L_F77=yes
14779 hardcode_shlibpath_var_F77=no
14782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14783 freebsd* | dragonfly*)
14784 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14785 hardcode_libdir_flag_spec_F77='-R$libdir'
14786 hardcode_direct_F77=yes
14787 hardcode_shlibpath_var_F77=no
14791 if test "$GCC" = yes; then
14792 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'
14794 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'
14796 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14797 hardcode_libdir_separator_F77=:
14798 hardcode_direct_F77=yes
14800 # hardcode_minus_L: Not really in the search PATH,
14801 # but as the default location of the library.
14802 hardcode_minus_L_F77=yes
14803 export_dynamic_flag_spec_F77='${wl}-E'
14807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14808 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14810 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14812 if test "$with_gnu_ld" = no; then
14813 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14814 hardcode_libdir_separator_F77=:
14816 hardcode_direct_F77=yes
14817 export_dynamic_flag_spec_F77='${wl}-E'
14819 # hardcode_minus_L: Not really in the search PATH,
14820 # but as the default location of the library.
14821 hardcode_minus_L_F77=yes
14826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14829 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14832 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14835 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14841 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14851 if test "$with_gnu_ld" = no; then
14852 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14853 hardcode_libdir_separator_F77=:
14857 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14858 hardcode_direct_F77=no
14859 hardcode_shlibpath_var_F77=no
14862 hardcode_direct_F77=yes
14863 export_dynamic_flag_spec_F77='${wl}-E'
14865 # hardcode_minus_L: Not really in the search PATH,
14866 # but as the default location of the library.
14867 hardcode_minus_L_F77=yes
14873 irix5* | irix6* | nonstopux*)
14874 if test "$GCC" = yes; then
14875 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'
14877 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'
14878 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14880 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14882 link_all_deplibs_F77=yes
14886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14889 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14891 hardcode_libdir_flag_spec_F77='-R$libdir'
14892 hardcode_direct_F77=yes
14893 hardcode_shlibpath_var_F77=no
14897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct_F77=yes
14899 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14900 hardcode_libdir_separator_F77=:
14901 hardcode_shlibpath_var_F77=no
14905 if test -f /usr/libexec/ld.so; then
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14909 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14911 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14912 export_dynamic_flag_spec_F77='${wl}-E'
14915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14917 hardcode_libdir_flag_spec_F77='-R$libdir'
14920 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14921 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14931 hardcode_libdir_flag_spec_F77='-L$libdir'
14932 hardcode_minus_L_F77=yes
14933 allow_undefined_flag_F77=unsupported
14934 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'
14935 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14939 if test "$GCC" = yes; then
14940 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14941 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'
14943 allow_undefined_flag_F77=' -expect_unresolved \*'
14944 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'
14946 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14947 hardcode_libdir_separator_F77=:
14950 osf4* | osf5*) # as osf3* with the addition of -msym flag
14951 if test "$GCC" = yes; then
14952 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14953 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'
14954 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14956 allow_undefined_flag_F77=' -expect_unresolved \*'
14957 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'
14958 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~
14959 $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'
14961 # Both c and cxx compiler support -rpath directly
14962 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14964 hardcode_libdir_separator_F77=:
14968 no_undefined_flag_F77=' -z text'
14969 if test "$GCC" = yes; then
14971 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14972 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14973 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14976 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14980 hardcode_libdir_flag_spec_F77='-R$libdir'
14981 hardcode_shlibpath_var_F77=no
14983 solaris2.[0-5] | solaris2.[0-5].*) ;;
14985 # The compiler driver will combine and reorder linker options,
14986 # but understands `-z linker_flag'. GCC discards it without `$wl',
14987 # but is careful enough not to reorder.
14988 # Supported since Solaris 2.6 (maybe 2.5.1?)
14989 if test "$GCC" = yes; then
14990 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14992 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14996 link_all_deplibs_F77=yes
15000 if test "x$host_vendor" = xsequent; then
15001 # Use $CC to link under sequent, because it throws in some extra .o
15002 # files that make .init and .fini sections work.
15003 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15007 hardcode_libdir_flag_spec_F77='-L$libdir'
15008 hardcode_direct_F77=yes
15009 hardcode_minus_L_F77=yes
15010 hardcode_shlibpath_var_F77=no
15014 case $host_vendor in
15016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15017 hardcode_direct_F77=yes # is this really true???
15020 ## LD is ld it makes a PLAMLIB
15021 ## CC just makes a GrossModule.
15022 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15023 reload_cmds_F77='$CC -r -o $output$reload_objs'
15024 hardcode_direct_F77=no
15027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15031 runpath_var='LD_RUN_PATH'
15032 hardcode_shlibpath_var_F77=no
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_shlibpath_var_F77=no
15038 export_dynamic_flag_spec_F77='-Bexport'
15042 if test -d /usr/nec; then
15043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15044 hardcode_shlibpath_var_F77=no
15045 runpath_var=LD_RUN_PATH
15046 hardcode_runpath_var=yes
15051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15052 no_undefined_flag_F77='${wl}-z,text'
15053 archive_cmds_need_lc_F77=no
15054 hardcode_shlibpath_var_F77=no
15055 runpath_var='LD_RUN_PATH'
15057 if test "$GCC" = yes; then
15058 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15066 sysv5* | sco3.2v5* | sco5v6*)
15067 # Note: We can NOT use -z defs as we might desire, because we do not
15068 # link with -lc, and that would cause any symbols used from libc to
15069 # always be unresolved, which means just about no library would
15070 # ever link correctly. If we're not using GNU ld we use -z text
15071 # though, which does catch some bad symbols but isn't as heavy-handed
15073 no_undefined_flag_F77='${wl}-z,text'
15074 allow_undefined_flag_F77='${wl}-z,nodefs'
15075 archive_cmds_need_lc_F77=no
15076 hardcode_shlibpath_var_F77=no
15077 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15078 hardcode_libdir_separator_F77=':'
15079 link_all_deplibs_F77=yes
15080 export_dynamic_flag_spec_F77='${wl}-Bexport'
15081 runpath_var='LD_RUN_PATH'
15083 if test "$GCC" = yes; then
15084 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094 hardcode_libdir_flag_spec_F77='-L$libdir'
15095 hardcode_shlibpath_var_F77=no
15104 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15105 $as_echo "$ld_shlibs_F77" >&6; }
15106 test "$ld_shlibs_F77" = no && can_build_shared=no
15109 # Do we need to explicitly link libc?
15111 case "x$archive_cmds_need_lc_F77" in
15113 # Assume -lc should be added
15114 archive_cmds_need_lc_F77=yes
15116 if test "$enable_shared" = yes && test "$GCC" = yes; then
15117 case $archive_cmds_F77 in
15119 # FIXME: we may have to deal with multi-command sequences.
15122 # Test whether the compiler implicitly links with -lc since on some
15123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15124 # to ld, don't add -lc before -lgcc.
15125 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131 (eval $ac_compile) 2>&5
15133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } 2>conftest.err; then
15137 libobjs=conftest.$ac_objext
15139 wl=$lt_prog_compiler_wl_F77
15140 pic_flag=$lt_prog_compiler_pic_F77
15146 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15147 allow_undefined_flag_F77=
15148 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15149 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }
15154 archive_cmds_need_lc_F77=no
15156 archive_cmds_need_lc_F77=yes
15158 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15160 cat conftest.err 1>&5
15163 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15164 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15171 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15173 library_names_spec=
15174 libname_spec='lib$name'
15178 postuninstall_cmds=
15182 shlibpath_overrides_runpath=unknown
15184 dynamic_linker="$host_os ld.so"
15185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15187 need_lib_prefix=unknown
15188 hardcode_into_libs=no
15190 # when you set need_version to no, make sure it does not cause -set_version
15191 # flags to be left without arguments
15192 need_version=unknown
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15198 shlibpath_var=LIBPATH
15200 # AIX 3 has no versioning support, so we append a major version to the name.
15201 soname_spec='${libname}${release}${shared_ext}$major'
15208 hardcode_into_libs=yes
15209 if test "$host_cpu" = ia64; then
15210 # AIX 5 supports IA64
15211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15212 shlibpath_var=LD_LIBRARY_PATH
15214 # With GCC up to 2.95.x, collect2 would create an import file
15215 # for dependence libraries. The import file would start with
15216 # the line `#! .'. This would cause the generated library to
15217 # depend on `.', always an invalid library. This was fixed in
15218 # development snapshots of GCC prior to 3.0.
15220 aix4 | aix4.[01] | aix4.[01].*)
15221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15226 can_build_shared=no
15230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15231 # soname into executable. Probably we can add versioning support to
15232 # collect2, so additional links can be useful in future.
15233 if test "$aix_use_runtimelinking" = yes; then
15234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15235 # instead of lib<name>.a to let people know that these are not
15236 # typical AIX shared libraries.
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 # We preserve .a as extension for shared libraries through AIX4.2
15240 # and later when we are not doing run time linking.
15241 library_names_spec='${libname}${release}.a $libname.a'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LIBPATH
15249 library_names_spec='$libname.ixlibrary $libname.a'
15250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15251 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'
15255 library_names_spec='${libname}${shared_ext}'
15256 dynamic_linker="$host_os ld.so"
15257 shlibpath_var=LIBRARY_PATH
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15269 # the default ld.so.conf also contains /usr/contrib/lib and
15270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15271 # libtool to hard-code these into programs
15274 cygwin* | mingw* | pw32*)
15275 version_type=windows
15280 case $GCC,$host_os in
15281 yes,cygwin* | yes,mingw* | yes,pw32*)
15282 library_names_spec='$libname.dll.a'
15283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15284 postinstall_cmds='base_file=`basename \${file}`~
15285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15286 dldir=$destdir/`dirname \$dlpath`~
15287 test -d \$dldir || mkdir -p \$dldir~
15288 $install_prog $dir/$dlname \$dldir/$dlname~
15289 chmod a+x \$dldir/$dlname'
15290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15291 dlpath=$dir/\$dldll~
15293 shlibpath_overrides_runpath=yes
15297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15302 # MinGW DLLs use traditional 'lib' prefix
15303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15306 # It is most probably a Windows format PATH printed by
15307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15308 # path with ; separators, and with drive letters. We can handle the
15309 # drive letters (cygwin fileutils understands them), so leave them,
15310 # especially as we might pass files found there to a mingw objdump,
15311 # which wouldn't understand a cygwinified path. Ahh.
15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15318 # pw32 DLLs use 'pw' prefix rather than 'lib'
15319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15328 dynamic_linker='Win32 ld.exe'
15329 # FIXME: first we should search . and the directory the executable is in
15333 darwin* | rhapsody*)
15334 dynamic_linker="$host_os dyld"
15335 version_type=darwin
15338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15339 soname_spec='${libname}${release}${major}$shared_ext'
15340 shlibpath_overrides_runpath=yes
15341 shlibpath_var=DYLD_LIBRARY_PATH
15342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15360 freebsd* | dragonfly*)
15361 # DragonFly does not have aout. When/if they implement a new
15362 # versioning mechanism, adjust this.
15363 if test -x /usr/bin/objformat; then
15364 objformat=`/usr/bin/objformat`
15367 freebsd[123]*) objformat=aout ;;
15368 *) objformat=elf ;;
15371 version_type=freebsd-$objformat
15372 case $version_type in
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15383 shlibpath_var=LD_LIBRARY_PATH
15386 shlibpath_overrides_runpath=yes
15388 freebsd3.[01]* | freebsdelf3.[01]*)
15389 shlibpath_overrides_runpath=yes
15390 hardcode_into_libs=yes
15392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15397 *) # from 4.6 on, and DragonFly
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 hardcode_into_libs=yes
15414 hpux9* | hpux10* | hpux11*)
15415 # Give a soname corresponding to the major version so that dld.sl refuses to
15416 # link against other versions.
15423 hardcode_into_libs=yes
15424 dynamic_linker="$host_os dld.so"
15425 shlibpath_var=LD_LIBRARY_PATH
15426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 if test "X$HPUX_IA64_MODE" = X32; then
15430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15438 hardcode_into_libs=yes
15439 dynamic_linker="$host_os dld.sl"
15440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=SHLIB_PATH
15451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15457 postinstall_cmds='chmod 555 $lib'
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=no
15469 hardcode_into_libs=yes
15472 irix5* | irix6* | nonstopux*)
15474 nonstopux*) version_type=nonstopux ;;
15476 if test "$lt_cv_prog_gnu_ld" = yes; then
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15487 irix5* | nonstopux*)
15488 libsuff= shlibsuff=
15491 case $LD in # libtool.m4 will add one of these switches to LD
15492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15493 libsuff= shlibsuff= libmagic=32-bit;;
15494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15495 libsuff=32 shlibsuff=N32 libmagic=N32;;
15496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15498 *) libsuff= shlibsuff= libmagic=never-match;;
15502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15503 shlibpath_overrides_runpath=no
15504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15506 hardcode_into_libs=yes
15509 # No shared lib support for Linux oldld, aout, or coff.
15510 linux*oldld* | linux*aout* | linux*coff*)
15514 # This must be Linux ELF.
15515 linux* | k*bsd*-gnu)
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=no
15524 # This implies no fast_install, which is unacceptable.
15525 # Some rework will be needed to allow for fast_install
15526 # before this can be enabled.
15527 hardcode_into_libs=yes
15529 # Append ld.so.conf contents to the search path
15530 if test -f /etc/ld.so.conf; then
15531 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' ' '`
15532 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15535 # We used to test for /lib/ld.so.1 and disable shared libraries on
15536 # powerpc, because MkLinux only supported shared libraries with the
15537 # GNU dynamic linker. Since this was broken with cross compilers,
15538 # most powerpc-linux boxes support dynamic linking these days and
15539 # people can always --disable-shared, the test was removed, and we
15540 # assume the GNU/Linux dynamic linker is in use.
15541 dynamic_linker='GNU/Linux ld.so'
15548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15551 dynamic_linker='NetBSD (a.out) ld.so'
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 dynamic_linker='NetBSD ld.elf_so'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 hardcode_into_libs=yes
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=yes
15581 sys_lib_dlsearch_path_spec="/usr/lib"
15583 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15585 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15586 *) need_version=no ;;
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15590 shlibpath_var=LD_LIBRARY_PATH
15591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15593 openbsd2.[89] | openbsd2.[89].*)
15594 shlibpath_overrides_runpath=no
15597 shlibpath_overrides_runpath=yes
15601 shlibpath_overrides_runpath=yes
15606 libname_spec='$name'
15609 library_names_spec='$libname${shared_ext} $libname.a'
15610 dynamic_linker='OS/2 ld.exe'
15611 shlibpath_var=LIBPATH
15614 osf3* | osf4* | osf5*)
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15622 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15637 hardcode_into_libs=yes
15638 # ldd complains unless libraries are executable
15639 postinstall_cmds='chmod +x $lib'
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15645 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15648 if test "$with_gnu_ld" = yes; then
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 case $host_vendor in
15661 shlibpath_overrides_runpath=no
15663 export_dynamic_flag_spec='${wl}-Blargedynsym'
15664 runpath_var=LD_RUN_PATH
15672 shlibpath_overrides_runpath=no
15673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15679 if test -d /usr/nec ;then
15681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15682 soname_spec='$libname${shared_ext}.$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15688 version_type=freebsd-elf
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 hardcode_into_libs=yes
15695 if test "$with_gnu_ld" = yes; then
15696 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15697 shlibpath_overrides_runpath=no
15699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15700 shlibpath_overrides_runpath=yes
15703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15707 sys_lib_dlsearch_path_spec='/usr/lib'
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15721 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15722 $as_echo "$dynamic_linker" >&6; }
15723 test "$dynamic_linker" = no && can_build_shared=no
15725 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15728 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15731 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15732 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15733 $as_echo_n "(cached) " >&6
15735 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15745 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15747 hardcode_action_F77=
15748 if test -n "$hardcode_libdir_flag_spec_F77" || \
15749 test -n "$runpath_var_F77" || \
15750 test "X$hardcode_automatic_F77" = "Xyes" ; then
15752 # We can hardcode non-existant directories.
15753 if test "$hardcode_direct_F77" != no &&
15754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15755 # have to relink, otherwise we might link with an installed library
15756 # when we should be linking with a yet-to-be-installed one
15757 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15758 test "$hardcode_minus_L_F77" != no; then
15759 # Linking always hardcodes the temporary library directory.
15760 hardcode_action_F77=relink
15762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15763 hardcode_action_F77=immediate
15766 # We cannot hardcode anything, or else we can only hardcode existing
15768 hardcode_action_F77=unsupported
15770 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15771 $as_echo "$hardcode_action_F77" >&6; }
15773 if test "$hardcode_action_F77" = relink; then
15774 # Fast installation is not supported
15775 enable_fast_install=no
15776 elif test "$shlibpath_overrides_runpath" = yes ||
15777 test "$enable_shared" = no; then
15778 # Fast installation is not necessary
15779 enable_fast_install=needless
15783 # The else clause should only fire when bootstrapping the
15784 # libtool distribution, otherwise you forgot to ship ltmain.sh
15785 # with your package, and you will get complaints that there are
15786 # no rules to generate ltmain.sh.
15787 if test -f "$ltmain"; then
15788 # See if we are running on zsh, and set the options which allow our commands through
15789 # without removal of \ escapes.
15790 if test -n "${ZSH_VERSION+set}" ; then
15791 setopt NO_GLOB_SUBST
15793 # Now quote all the things that may contain metacharacters while being
15794 # careful not to overquote the AC_SUBSTed values. We take copies of the
15795 # variables and quote the copies for generation of the libtool script.
15796 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15800 deplibs_check_method reload_flag reload_cmds need_locks \
15801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15802 lt_cv_sys_global_symbol_to_c_name_address \
15803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15804 old_postinstall_cmds old_postuninstall_cmds \
15808 lt_prog_compiler_wl_F77 \
15809 lt_prog_compiler_pic_F77 \
15810 lt_prog_compiler_static_F77 \
15811 lt_prog_compiler_no_builtin_flag_F77 \
15812 export_dynamic_flag_spec_F77 \
15813 thread_safe_flag_spec_F77 \
15814 whole_archive_flag_spec_F77 \
15815 enable_shared_with_static_runtimes_F77 \
15816 old_archive_cmds_F77 \
15817 old_archive_from_new_cmds_F77 \
15818 predep_objects_F77 \
15819 postdep_objects_F77 \
15822 compiler_lib_search_path_F77 \
15823 compiler_lib_search_dirs_F77 \
15825 archive_expsym_cmds_F77 \
15826 postinstall_cmds_F77 \
15827 postuninstall_cmds_F77 \
15828 old_archive_from_expsyms_cmds_F77 \
15829 allow_undefined_flag_F77 \
15830 no_undefined_flag_F77 \
15831 export_symbols_cmds_F77 \
15832 hardcode_libdir_flag_spec_F77 \
15833 hardcode_libdir_flag_spec_ld_F77 \
15834 hardcode_libdir_separator_F77 \
15835 hardcode_automatic_F77 \
15837 module_expsym_cmds_F77 \
15838 lt_cv_prog_compiler_c_o_F77 \
15839 fix_srcfile_path_F77 \
15840 exclude_expsyms_F77 \
15841 include_expsyms_F77; do
15844 old_archive_cmds_F77 | \
15845 old_archive_from_new_cmds_F77 | \
15846 archive_cmds_F77 | \
15847 archive_expsym_cmds_F77 | \
15848 module_cmds_F77 | \
15849 module_expsym_cmds_F77 | \
15850 old_archive_from_expsyms_cmds_F77 | \
15851 export_symbols_cmds_F77 | \
15852 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15853 postinstall_cmds | postuninstall_cmds | \
15854 old_postinstall_cmds | old_postuninstall_cmds | \
15855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15856 # Double-quote double-evaled strings.
15857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15866 *'\$0 --fallback-echo"')
15867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15873 cat <<__EOF__ >> "$cfgfile"
15874 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15878 # Shell to use when invoking shell scripts.
15881 # Whether or not to build shared libraries.
15882 build_libtool_libs=$enable_shared
15884 # Whether or not to build static libraries.
15885 build_old_libs=$enable_static
15887 # Whether or not to add -lc for building shared libraries.
15888 build_libtool_need_lc=$archive_cmds_need_lc_F77
15890 # Whether or not to disallow shared libs when runtime libs are static
15891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15893 # Whether or not to optimize for fast installation.
15894 fast_install=$enable_fast_install
15897 host_alias=$host_alias
15901 # The build system.
15902 build_alias=$build_alias
15906 # An echo program that does not interpret backslashes.
15911 AR_FLAGS=$lt_AR_FLAGS
15916 # LTCC compiler flags.
15917 LTCFLAGS=$lt_LTCFLAGS
15919 # A language-specific compiler.
15920 CC=$lt_compiler_F77
15922 # Is the compiler the GNU C compiler?
15928 # The linker used to build libraries.
15931 # Whether we need hard or soft links.
15934 # A BSD-compatible nm program.
15937 # A symbol stripping program
15940 # Used to examine libraries when file_magic_cmd begins "file"
15941 MAGIC_CMD=$MAGIC_CMD
15943 # Used on cygwin: DLL creation program.
15946 # Used on cygwin: object dumper.
15949 # Used on cygwin: assembler.
15952 # The name of the directory that contains temporary libtool files.
15955 # How to create reloadable object files.
15956 reload_flag=$lt_reload_flag
15957 reload_cmds=$lt_reload_cmds
15959 # How to pass a linker flag through the compiler.
15960 wl=$lt_lt_prog_compiler_wl_F77
15962 # Object file suffix (normally "o").
15963 objext="$ac_objext"
15965 # Old archive suffix (normally "a").
15968 # Shared library suffix (normally ".so").
15969 shrext_cmds='$shrext_cmds'
15971 # Executable file suffix (normally "").
15974 # Additional compiler flags for building library objects.
15975 pic_flag=$lt_lt_prog_compiler_pic_F77
15978 # What is the maximum length of a command?
15979 max_cmd_len=$lt_cv_sys_max_cmd_len
15981 # Does compiler simultaneously support -c and -o options?
15982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15984 # Must we lock files when doing compilation?
15985 need_locks=$lt_need_locks
15987 # Do we need the lib prefix for modules?
15988 need_lib_prefix=$need_lib_prefix
15990 # Do we need a version for libraries?
15991 need_version=$need_version
15993 # Whether dlopen is supported.
15994 dlopen_support=$enable_dlopen
15996 # Whether dlopen of programs is supported.
15997 dlopen_self=$enable_dlopen_self
15999 # Whether dlopen of statically linked programs is supported.
16000 dlopen_self_static=$enable_dlopen_self_static
16002 # Compiler flag to prevent dynamic linking.
16003 link_static_flag=$lt_lt_prog_compiler_static_F77
16005 # Compiler flag to turn off builtin functions.
16006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16008 # Compiler flag to allow reflexive dlopens.
16009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16011 # Compiler flag to generate shared objects directly from archives.
16012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16014 # Compiler flag to generate thread-safe objects.
16015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16017 # Library versioning type.
16018 version_type=$version_type
16020 # Format of library name prefix.
16021 libname_spec=$lt_libname_spec
16023 # List of archive names. First name is the real one, the rest are links.
16024 # The last name is the one that the linker finds with -lNAME.
16025 library_names_spec=$lt_library_names_spec
16027 # The coded name of the library, if different from the real name.
16028 soname_spec=$lt_soname_spec
16030 # Commands used to build and install an old-style archive.
16032 old_archive_cmds=$lt_old_archive_cmds_F77
16033 old_postinstall_cmds=$lt_old_postinstall_cmds
16034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16036 # Create an old-style archive from a shared archive.
16037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16039 # Create a temporary old-style archive to link instead of a shared archive.
16040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16042 # Commands used to build and install a shared archive.
16043 archive_cmds=$lt_archive_cmds_F77
16044 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16045 postinstall_cmds=$lt_postinstall_cmds
16046 postuninstall_cmds=$lt_postuninstall_cmds
16048 # Commands used to build a loadable module (assumed same as above if empty)
16049 module_cmds=$lt_module_cmds_F77
16050 module_expsym_cmds=$lt_module_expsym_cmds_F77
16052 # Commands to strip libraries.
16053 old_striplib=$lt_old_striplib
16054 striplib=$lt_striplib
16056 # Dependencies to place before the objects being linked to create a
16058 predep_objects=$lt_predep_objects_F77
16060 # Dependencies to place after the objects being linked to create a
16062 postdep_objects=$lt_postdep_objects_F77
16064 # Dependencies to place before the objects being linked to create a
16066 predeps=$lt_predeps_F77
16068 # Dependencies to place after the objects being linked to create a
16070 postdeps=$lt_postdeps_F77
16072 # The directories searched by this compiler when creating a shared
16074 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16076 # The library search path used internally by the compiler when linking
16077 # a shared library.
16078 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16080 # Method to check whether dependent libraries are shared objects.
16081 deplibs_check_method=$lt_deplibs_check_method
16083 # Command to use when deplibs_check_method == file_magic.
16084 file_magic_cmd=$lt_file_magic_cmd
16086 # Flag that allows shared libraries with undefined symbols to be built.
16087 allow_undefined_flag=$lt_allow_undefined_flag_F77
16089 # Flag that forces no undefined symbols.
16090 no_undefined_flag=$lt_no_undefined_flag_F77
16092 # Commands used to finish a libtool library installation in a directory.
16093 finish_cmds=$lt_finish_cmds
16095 # Same as above, but a single script fragment to be evaled but not shown.
16096 finish_eval=$lt_finish_eval
16098 # Take the output of nm and produce a listing of raw symbols and C names.
16099 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16101 # Transform the output of nm in a proper C declaration
16102 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16104 # Transform the output of nm in a C name address pair
16105 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16107 # This is the shared library runtime path variable.
16108 runpath_var=$runpath_var
16110 # This is the shared library path variable.
16111 shlibpath_var=$shlibpath_var
16113 # Is shlibpath searched before the hard-coded library search path?
16114 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16116 # How to hardcode a shared library path into an executable.
16117 hardcode_action=$hardcode_action_F77
16119 # Whether we should hardcode library paths into libraries.
16120 hardcode_into_libs=$hardcode_into_libs
16122 # Flag to hardcode \$libdir into a binary during linking.
16123 # This must work even if \$libdir does not exist.
16124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16126 # If ld is used when linking, flag to hardcode \$libdir into
16127 # a binary during linking. This must work even if \$libdir does
16129 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16131 # Whether we need a single -rpath flag with a separated argument.
16132 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16134 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16135 # resulting binary.
16136 hardcode_direct=$hardcode_direct_F77
16138 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16139 # resulting binary.
16140 hardcode_minus_L=$hardcode_minus_L_F77
16142 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16143 # the resulting binary.
16144 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16146 # Set to yes if building a shared library automatically hardcodes DIR into the library
16147 # and all subsequent libraries and executables linked against it.
16148 hardcode_automatic=$hardcode_automatic_F77
16150 # Variables whose values should be saved in libtool wrapper scripts and
16151 # restored at relink time.
16152 variables_saved_for_relink="$variables_saved_for_relink"
16154 # Whether libtool must link a program against all its dependency libraries.
16155 link_all_deplibs=$link_all_deplibs_F77
16157 # Compile-time system search path for libraries
16158 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16160 # Run-time system search path for libraries
16161 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16163 # Fix the shell variable \$srcfile for the compiler.
16164 fix_srcfile_path=$lt_fix_srcfile_path
16166 # Set to yes if exported symbols are required.
16167 always_export_symbols=$always_export_symbols_F77
16169 # The commands to list exported symbols.
16170 export_symbols_cmds=$lt_export_symbols_cmds_F77
16172 # The commands to extract the exported symbol list from a shared archive.
16173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16175 # Symbols that should not be listed in the preloaded symbols.
16176 exclude_expsyms=$lt_exclude_expsyms_F77
16178 # Symbols that must always be exported.
16179 include_expsyms=$lt_include_expsyms_F77
16181 # ### END LIBTOOL TAG CONFIG: $tagname
16187 # If there is no Makefile yet, we rely on a make rule to execute
16188 # `config.status --recheck' to rerun these tests and create the
16189 # libtool script then.
16190 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16191 if test -f "$ltmain_in"; then
16192 test -f Makefile && make "$ltmain"
16198 ac_cpp='$CPP $CPPFLAGS'
16199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16211 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16214 # Source file extension for Java test sources.
16217 # Object file extension for compiled Java test sources.
16221 # Code to be used in simple compile tests
16222 lt_simple_compile_test_code="class foo {}"
16224 # Code to be used in simple link tests
16225 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16229 # If no C compiler was specified, use CC.
16232 # If no C compiler flags were specified, use CFLAGS.
16233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16235 # Allow CC to be a program name with arguments.
16239 # save warnings/boilerplate of simple test code
16240 ac_outfile=conftest.$ac_objext
16241 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16243 _lt_compiler_boilerplate=`cat conftest.err`
16246 ac_outfile=conftest.$ac_objext
16247 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16249 _lt_linker_boilerplate=`cat conftest.err`
16253 # Allow CC to be a program name with arguments.
16258 for cc_temp in $compiler""; do
16260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16269 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16270 archive_cmds_need_lc_GCJ=no
16272 old_archive_cmds_GCJ=$old_archive_cmds
16275 lt_prog_compiler_no_builtin_flag_GCJ=
16277 if test "$GCC" = yes; then
16278 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16281 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16282 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16283 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16284 $as_echo_n "(cached) " >&6
16286 lt_cv_prog_compiler_rtti_exceptions=no
16287 ac_outfile=conftest.$ac_objext
16288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16289 lt_compiler_flag="-fno-rtti -fno-exceptions"
16290 # Insert the option either (1) after the last *FLAGS variable, or
16291 # (2) before a word containing "conftest.", or (3) at the end.
16292 # Note that $ac_compile itself does not contain backslashes and begins
16293 # with a dollar sign (not a hyphen), so the echo should work correctly.
16294 # The option is referenced via a variable to avoid confusing sed.
16295 lt_compile=`echo "$ac_compile" | $SED \
16296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16298 -e 's:$: $lt_compiler_flag:'`
16299 (eval echo "\"\$as_me:16299: $lt_compile\"" >&5)
16300 (eval "$lt_compile" 2>conftest.err)
16302 cat conftest.err >&5
16303 echo "$as_me:16303: \$? = $ac_status" >&5
16304 if (exit $ac_status) && test -s "$ac_outfile"; then
16305 # The compiler can only warn and ignore the option if not recognized
16306 # So say no if there are warnings other than the usual output.
16307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16310 lt_cv_prog_compiler_rtti_exceptions=yes
16316 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16317 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16319 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16320 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16327 lt_prog_compiler_wl_GCJ=
16328 lt_prog_compiler_pic_GCJ=
16329 lt_prog_compiler_static_GCJ=
16331 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16334 if test "$GCC" = yes; then
16335 lt_prog_compiler_wl_GCJ='-Wl,'
16336 lt_prog_compiler_static_GCJ='-static'
16340 # All AIX code is PIC.
16341 if test "$host_cpu" = ia64; then
16342 # AIX 5 now supports IA64 processor
16343 lt_prog_compiler_static_GCJ='-Bstatic'
16348 # FIXME: we need at least 68020 code to build shared libraries, but
16349 # adding the `-m68020' flag to GCC prevents building anything better,
16351 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16355 # PIC is the default for these OSes.
16358 mingw* | cygwin* | pw32* | os2*)
16359 # This hack is so that the source file can tell whether it is being
16360 # built for inclusion in a dll (and should export symbols for example).
16361 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16362 # (--disable-auto-import) libraries
16366 darwin* | rhapsody*)
16367 # PIC is the default on this platform
16368 # Common symbols not allowed in MH_DYLIB files
16369 lt_prog_compiler_pic_GCJ='-fno-common'
16373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16374 # Instead, we relocate shared libraries at runtime.
16378 # Just because we use GCC doesn't mean we suddenly get shared libraries
16379 # on systems that don't support them.
16380 lt_prog_compiler_can_build_shared_GCJ=no
16385 if test -d /usr/nec; then
16386 lt_prog_compiler_pic_GCJ=-Kconform_pic
16391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16392 # not for PA HP-UX.
16398 lt_prog_compiler_pic_GCJ='-fPIC'
16404 lt_prog_compiler_pic_GCJ='-fPIC'
16408 # PORTME Check for flag to pass linker flags through the system compiler.
16411 lt_prog_compiler_wl_GCJ='-Wl,'
16412 if test "$host_cpu" = ia64; then
16413 # AIX 5 now supports IA64 processor
16414 lt_prog_compiler_static_GCJ='-Bstatic'
16416 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16420 # PIC is the default on this platform
16421 # Common symbols not allowed in MH_DYLIB files
16422 case $cc_basename in
16424 lt_prog_compiler_pic_GCJ='-qnocommon'
16425 lt_prog_compiler_wl_GCJ='-Wl,'
16430 mingw* | cygwin* | pw32* | os2*)
16431 # This hack is so that the source file can tell whether it is being
16432 # built for inclusion in a dll (and should export symbols for example).
16436 hpux9* | hpux10* | hpux11*)
16437 lt_prog_compiler_wl_GCJ='-Wl,'
16438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16439 # not for PA HP-UX.
16445 lt_prog_compiler_pic_GCJ='+Z'
16448 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16449 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16452 irix5* | irix6* | nonstopux*)
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 # PIC (with -KPIC) is the default.
16455 lt_prog_compiler_static_GCJ='-non_shared'
16459 lt_prog_compiler_pic_GCJ='-KPIC'
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16463 linux* | k*bsd*-gnu)
16464 case $cc_basename in
16466 lt_prog_compiler_wl_GCJ='-Wl,'
16467 lt_prog_compiler_pic_GCJ='-KPIC'
16468 lt_prog_compiler_static_GCJ='-static'
16470 pgcc* | pgf77* | pgf90* | pgf95*)
16471 # Portland Group compilers (*not* the Pentium gcc compiler,
16472 # which looks to be a dead project)
16473 lt_prog_compiler_wl_GCJ='-Wl,'
16474 lt_prog_compiler_pic_GCJ='-fpic'
16475 lt_prog_compiler_static_GCJ='-Bstatic'
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 # All Alpha code is PIC.
16480 lt_prog_compiler_static_GCJ='-non_shared'
16483 case `$CC -V 2>&1 | sed 5q` in
16486 lt_prog_compiler_pic_GCJ='-KPIC'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16488 lt_prog_compiler_wl_GCJ='-Wl,'
16491 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16492 lt_prog_compiler_pic_GCJ='-KPIC'
16493 lt_prog_compiler_static_GCJ='-Bstatic'
16494 lt_prog_compiler_wl_GCJ=''
16501 osf3* | osf4* | osf5*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 # All OSF/1 code is PIC.
16504 lt_prog_compiler_static_GCJ='-non_shared'
16508 lt_prog_compiler_static_GCJ='-non_shared'
16512 lt_prog_compiler_pic_GCJ='-KPIC'
16513 lt_prog_compiler_static_GCJ='-Bstatic'
16514 case $cc_basename in
16515 f77* | f90* | f95*)
16516 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16518 lt_prog_compiler_wl_GCJ='-Wl,';;
16523 lt_prog_compiler_wl_GCJ='-Qoption ld '
16524 lt_prog_compiler_pic_GCJ='-PIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16528 sysv4 | sysv4.2uw2* | sysv4.3*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 lt_prog_compiler_pic_GCJ='-KPIC'
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16535 if test -d /usr/nec ;then
16536 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16537 lt_prog_compiler_static_GCJ='-Bstatic'
16541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16543 lt_prog_compiler_pic_GCJ='-KPIC'
16544 lt_prog_compiler_static_GCJ='-Bstatic'
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 lt_prog_compiler_can_build_shared_GCJ=no
16553 lt_prog_compiler_pic_GCJ='-pic'
16554 lt_prog_compiler_static_GCJ='-Bstatic'
16558 lt_prog_compiler_can_build_shared_GCJ=no
16563 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16564 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16567 # Check to make sure the PIC flag actually works.
16569 if test -n "$lt_prog_compiler_pic_GCJ"; then
16571 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16572 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16573 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16574 $as_echo_n "(cached) " >&6
16576 lt_cv_prog_compiler_pic_works_GCJ=no
16577 ac_outfile=conftest.$ac_objext
16578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16579 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16580 # Insert the option either (1) after the last *FLAGS variable, or
16581 # (2) before a word containing "conftest.", or (3) at the end.
16582 # Note that $ac_compile itself does not contain backslashes and begins
16583 # with a dollar sign (not a hyphen), so the echo should work correctly.
16584 # The option is referenced via a variable to avoid confusing sed.
16585 lt_compile=`echo "$ac_compile" | $SED \
16586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16588 -e 's:$: $lt_compiler_flag:'`
16589 (eval echo "\"\$as_me:16589: $lt_compile\"" >&5)
16590 (eval "$lt_compile" 2>conftest.err)
16592 cat conftest.err >&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 if (exit $ac_status) && test -s "$ac_outfile"; then
16595 # The compiler can only warn and ignore the option if not recognized
16596 # So say no if there are warnings other than the usual output.
16597 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16600 lt_cv_prog_compiler_pic_works_GCJ=yes
16606 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16607 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16609 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16610 case $lt_prog_compiler_pic_GCJ in
16612 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16615 lt_prog_compiler_pic_GCJ=
16616 lt_prog_compiler_can_build_shared_GCJ=no
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16623 lt_prog_compiler_pic_GCJ=
16626 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16631 # Check to make sure the static flag actually works.
16633 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16634 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16635 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16636 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16637 $as_echo_n "(cached) " >&6
16639 lt_cv_prog_compiler_static_works_GCJ=no
16640 save_LDFLAGS="$LDFLAGS"
16641 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16644 # The linker can only warn and ignore the option if not recognized
16645 # So say no if there are warnings
16646 if test -s conftest.err; then
16647 # Append any errors to the config.log.
16648 cat conftest.err 1>&5
16649 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16651 if diff conftest.exp conftest.er2 >/dev/null; then
16652 lt_cv_prog_compiler_static_works_GCJ=yes
16655 lt_cv_prog_compiler_static_works_GCJ=yes
16659 LDFLAGS="$save_LDFLAGS"
16662 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16663 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16665 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16668 lt_prog_compiler_static_GCJ=
16672 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16674 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16675 $as_echo_n "(cached) " >&6
16677 lt_cv_prog_compiler_c_o_GCJ=no
16678 $rm -r conftest 2>/dev/null
16682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16684 lt_compiler_flag="-o out/conftest2.$ac_objext"
16685 # Insert the option either (1) after the last *FLAGS variable, or
16686 # (2) before a word containing "conftest.", or (3) at the end.
16687 # Note that $ac_compile itself does not contain backslashes and begins
16688 # with a dollar sign (not a hyphen), so the echo should work correctly.
16689 lt_compile=`echo "$ac_compile" | $SED \
16690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16692 -e 's:$: $lt_compiler_flag:'`
16693 (eval echo "\"\$as_me:16693: $lt_compile\"" >&5)
16694 (eval "$lt_compile" 2>out/conftest.err)
16696 cat out/conftest.err >&5
16697 echo "$as_me:16697: \$? = $ac_status" >&5
16698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16700 # The compiler can only warn and ignore the option if not recognized
16701 # So say no if there are warnings
16702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16705 lt_cv_prog_compiler_c_o_GCJ=yes
16710 # SGI C++ compiler will create directory out/ii_files/ for
16711 # template instantiation
16712 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16713 $rm out/* && rmdir out
16719 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16720 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16723 hard_links="nottested"
16724 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16725 # do not overwrite the value of need_locks provided by the user
16726 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16727 $as_echo_n "checking if we can lock with hard links... " >&6; }
16730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16732 ln conftest.a conftest.b 2>&5 || hard_links=no
16733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16734 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16735 $as_echo "$hard_links" >&6; }
16736 if test "$hard_links" = no; then
16737 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16738 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16745 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16746 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16749 allow_undefined_flag_GCJ=
16750 enable_shared_with_static_runtimes_GCJ=no
16752 archive_expsym_cmds_GCJ=
16753 old_archive_From_new_cmds_GCJ=
16754 old_archive_from_expsyms_cmds_GCJ=
16755 export_dynamic_flag_spec_GCJ=
16756 whole_archive_flag_spec_GCJ=
16757 thread_safe_flag_spec_GCJ=
16758 hardcode_libdir_flag_spec_GCJ=
16759 hardcode_libdir_flag_spec_ld_GCJ=
16760 hardcode_libdir_separator_GCJ=
16761 hardcode_direct_GCJ=no
16762 hardcode_minus_L_GCJ=no
16763 hardcode_shlibpath_var_GCJ=unsupported
16764 link_all_deplibs_GCJ=unknown
16765 hardcode_automatic_GCJ=no
16767 module_expsym_cmds_GCJ=
16768 always_export_symbols_GCJ=no
16769 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16770 # include_expsyms should be a list of space-separated symbols to be *always*
16771 # included in the symbol list
16772 include_expsyms_GCJ=
16773 # exclude_expsyms can be an extended regexp of symbols to exclude
16774 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16775 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16776 # as well as any symbol that contains `d'.
16777 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16779 # platforms (ab)use it in PIC code, but their linkers get confused if
16780 # the symbol is explicitly referenced. Since portable code cannot
16781 # rely on this symbol name, it's probably fine to never include it in
16782 # preloaded symbol tables.
16783 # Exclude shared library initialization/finalization symbols.
16784 extract_expsyms_cmds=
16785 # Just being paranoid about ensuring that cc_basename is set.
16786 for cc_temp in $compiler""; do
16788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16794 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16797 cygwin* | mingw* | pw32*)
16798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16799 # When not using gcc, we currently assume that we are using
16800 # Microsoft Visual C++.
16801 if test "$GCC" != yes; then
16806 # we just hope/assume this is gcc and not c89 (= MSVC++)
16815 if test "$with_gnu_ld" = yes; then
16816 # If archive_cmds runs LD, not CC, wlarc should be empty
16819 # Set some defaults for GNU ld with shared library support. These
16820 # are reset later if shared libraries are not supported. Putting them
16821 # here allows them to be overridden if necessary.
16822 runpath_var=LD_RUN_PATH
16823 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16824 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16825 # ancient GNU ld didn't support --whole-archive et. al.
16826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16827 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16829 whole_archive_flag_spec_GCJ=
16831 supports_anon_versioning=no
16832 case `$LD -v 2>/dev/null` in
16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16836 *\ 2.11.*) ;; # other 2.11 versions
16837 *) supports_anon_versioning=yes ;;
16840 # See if GNU ld supports shared libraries.
16843 # On AIX/PPC, the GNU linker is very broken
16844 if test "$host_cpu" != ia64; then
16848 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16849 *** to be unable to reliably create shared libraries on AIX.
16850 *** Therefore, libtool is disabling shared libraries support. If you
16851 *** really care for shared libraries, you may want to modify your PATH
16852 *** so that a non-GNU linker is found, and then restart.
16859 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)'
16860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861 hardcode_minus_L_GCJ=yes
16863 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16864 # that the semantics of dynamic libraries on AmigaOS, at least up
16865 # to version 4, is to share data among multiple programs linked
16866 # with the same dynamic library. Since this doesn't match the
16867 # behavior of shared libraries on other platforms, we can't use
16873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16874 allow_undefined_flag_GCJ=unsupported
16875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16876 # support --undefined. This deserves some investigation. FIXME
16877 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16883 cygwin* | mingw* | pw32*)
16884 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16885 # as there is no search path for DLLs.
16886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16887 allow_undefined_flag_GCJ=unsupported
16888 always_export_symbols_GCJ=no
16889 enable_shared_with_static_runtimes_GCJ=yes
16890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16892 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 # If the export-symbols file already is a .def file (1st line
16895 # is EXPORTS), use it as is; otherwise, prepend...
16896 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16897 cp $export_symbols $output_objdir/$soname.def;
16899 echo EXPORTS > $output_objdir/$soname.def;
16900 cat $export_symbols >> $output_objdir/$soname.def;
16902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16909 hardcode_direct_GCJ=no
16910 hardcode_shlibpath_var_GCJ=no
16911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16914 # Instead, shared libraries are loaded at an image base (0x10000000 by
16915 # default) and relocated if they conflict, which is a slow very memory
16916 # consuming and fragmenting process. To avoid this, we pick a random,
16917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16919 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'
16920 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'
16923 gnu* | linux* | k*bsd*-gnu)
16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16926 case $cc_basename,$host_cpu in
16927 pgcc*) # Portland Group C compiler
16928 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'
16929 tmp_addflag=' $pic_flag'
16931 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16932 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'
16933 tmp_addflag=' $pic_flag -Mnomain' ;;
16934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16935 tmp_addflag=' -i_dynamic' ;;
16936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16937 tmp_addflag=' -i_dynamic -nofor_main' ;;
16938 ifc* | ifort*) # Intel Fortran compiler
16939 tmp_addflag=' -nofor_main' ;;
16941 case `$CC -V 2>&1 | sed 5q` in
16942 *Sun\ C*) # Sun C 5.9
16943 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'
16944 tmp_sharedflag='-G' ;;
16945 *Sun\ F*) # Sun Fortran 8.3
16946 tmp_sharedflag='-G' ;;
16948 tmp_sharedflag='-shared' ;;
16950 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952 if test $supports_anon_versioning = yes; then
16953 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16955 $echo "local: *; };" >> $output_objdir/$libname.ver~
16956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16965 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16969 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16974 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16979 *** create shared libraries on Solaris systems. Therefore, libtool
16980 *** is disabling shared libraries support. We urge you to upgrade GNU
16981 *** binutils to release 2.9.1 or newer. Another option is to modify
16982 *** your PATH or compiler configuration so that the native linker is
16983 *** used, and then restart.
16986 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16995 case `$LD -v 2>&1` in
16996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17000 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17001 *** reliably create shared libraries on SCO systems. Therefore, libtool
17002 *** is disabling shared libraries support. We urge you to upgrade GNU
17003 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17004 *** your PATH or compiler configuration so that the native linker is
17005 *** used, and then restart.
17010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17011 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17022 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_direct_GCJ=yes
17025 hardcode_shlibpath_var_GCJ=no
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17038 if test "$ld_shlibs_GCJ" = no; then
17040 hardcode_libdir_flag_spec_GCJ=
17041 export_dynamic_flag_spec_GCJ=
17042 whole_archive_flag_spec_GCJ=
17045 # PORTME fill in a description of your system's linker (not GNU ld)
17048 allow_undefined_flag_GCJ=unsupported
17049 always_export_symbols_GCJ=yes
17050 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'
17051 # Note: this linker hardcodes the directories in LIBPATH if there
17052 # are no directories specified by -L.
17053 hardcode_minus_L_GCJ=yes
17054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17055 # Neither direct hardcoding nor static linking is supported with a
17057 hardcode_direct_GCJ=unsupported
17062 if test "$host_cpu" = ia64; then
17063 # On IA64, the linker does run time linking by default, so we don't
17064 # have to do anything special.
17065 aix_use_runtimelinking=no
17066 exp_sym_flag='-Bexport'
17069 # If we're using GNU nm, then we don't want the "-C" option.
17070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17071 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17072 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'
17074 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'
17076 aix_use_runtimelinking=no
17078 # Test if we are trying to use run time linking or normal
17079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17080 # need to do runtime linking.
17081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17082 for ld_flag in $LDFLAGS; do
17083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17084 aix_use_runtimelinking=yes
17091 exp_sym_flag='-bexport'
17092 no_entry_flag='-bnoentry'
17095 # When large executables or shared objects are built, AIX ld can
17096 # have problems creating the table of contents. If linking a library
17097 # or program results in "error TOC overflow" add -mminimal-toc to
17098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17101 archive_cmds_GCJ=''
17102 hardcode_direct_GCJ=yes
17103 hardcode_libdir_separator_GCJ=':'
17104 link_all_deplibs_GCJ=yes
17106 if test "$GCC" = yes; then
17107 case $host_os in aix4.[012]|aix4.[012].*)
17108 # We only want to do this on AIX 4.2 and lower, the check
17109 # below for broken collect2 doesn't work under 4.3+
17110 collect2name=`${CC} -print-prog-name=collect2`
17111 if test -f "$collect2name" && \
17112 strings "$collect2name" | grep resolve_lib_name >/dev/null
17114 # We have reworked collect2
17117 # We have old collect2
17118 hardcode_direct_GCJ=unsupported
17119 # It fails to find uninstalled libraries when the uninstalled
17120 # path is not listed in the libpath. Setting hardcode_minus_L
17121 # to unsupported forces relinking
17122 hardcode_minus_L_GCJ=yes
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_libdir_separator_GCJ=
17128 shared_flag='-shared'
17129 if test "$aix_use_runtimelinking" = yes; then
17130 shared_flag="$shared_flag "'${wl}-G'
17134 if test "$host_cpu" = ia64; then
17135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17136 # chokes on -Wl,-G. The following line is correct:
17139 if test "$aix_use_runtimelinking" = yes; then
17140 shared_flag='${wl}-G'
17142 shared_flag='${wl}-bM:SRE'
17147 # It seems that -bexpall does not export symbols beginning with
17148 # underscore (_), so it is better to generate a list of symbols to export.
17149 always_export_symbols_GCJ=yes
17150 if test "$aix_use_runtimelinking" = yes; then
17151 # Warning - without using the other runtime loading flags (-brtl),
17152 # -berok will link without error, but may produce a broken library.
17153 allow_undefined_flag_GCJ='-berok'
17154 # Determine the default libpath from the value encoded in an empty executable.
17155 cat >conftest.$ac_ext <<_ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17177 $as_echo "$ac_try_echo") >&5
17178 (eval "$ac_link") 2>conftest.er1
17180 grep -v '^ *+' conftest.er1 >conftest.err
17182 cat conftest.err >&5
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } && {
17185 test -z "$ac_c_werror_flag" ||
17186 test ! -s conftest.err
17187 } && test -s conftest$ac_exeext && {
17188 test "$cross_compiling" = yes ||
17189 $as_test_x conftest$ac_exeext
17192 lt_aix_libpath_sed='
17193 /Import File Strings/,/^$/ {
17199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17200 # Check for a 64-bit object if we didn't find anything.
17201 if test -z "$aix_libpath"; then
17202 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17205 $as_echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17211 rm -rf conftest.dSYM
17212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17213 conftest$ac_exeext conftest.$ac_ext
17214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17216 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17217 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"
17219 if test "$host_cpu" = ia64; then
17220 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17221 allow_undefined_flag_GCJ="-z nodefs"
17222 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"
17224 # Determine the default libpath from the value encoded in an empty executable.
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (ac_try="$ac_link"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17247 $as_echo "$ac_try_echo") >&5
17248 (eval "$ac_link") 2>conftest.er1
17250 grep -v '^ *+' conftest.er1 >conftest.err
17252 cat conftest.err >&5
17253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } && {
17255 test -z "$ac_c_werror_flag" ||
17256 test ! -s conftest.err
17257 } && test -s conftest$ac_exeext && {
17258 test "$cross_compiling" = yes ||
17259 $as_test_x conftest$ac_exeext
17262 lt_aix_libpath_sed='
17263 /Import File Strings/,/^$/ {
17269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17270 # Check for a 64-bit object if we didn't find anything.
17271 if test -z "$aix_libpath"; then
17272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17275 $as_echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17281 rm -rf conftest.dSYM
17282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283 conftest$ac_exeext conftest.$ac_ext
17284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17287 # Warning - without using the other run time loading flags,
17288 # -berok will link without error, but may produce a broken library.
17289 no_undefined_flag_GCJ=' ${wl}-bernotok'
17290 allow_undefined_flag_GCJ=' ${wl}-berok'
17291 # Exported symbols can be pulled into shared objects from archives
17292 whole_archive_flag_spec_GCJ='$convenience'
17293 archive_cmds_need_lc_GCJ=yes
17294 # This is similar to how AIX traditionally builds its shared libraries.
17295 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'
17301 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)'
17302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303 hardcode_minus_L_GCJ=yes
17304 # see comment about different semantics on the GNU ld section
17309 export_dynamic_flag_spec_GCJ=-rdynamic
17312 cygwin* | mingw* | pw32*)
17313 # When not using gcc, we currently assume that we are using
17314 # Microsoft Visual C++.
17315 # hardcode_libdir_flag_spec is actually meaningless, as there is
17316 # no search path for DLLs.
17317 hardcode_libdir_flag_spec_GCJ=' '
17318 allow_undefined_flag_GCJ=unsupported
17319 # Tell ltmain to make .lib files, not .a files.
17321 # Tell ltmain to make .dll files, not .so files.
17323 # FIXME: Setting linknames here is a bad hack.
17324 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17325 # The linker will automatically build a .lib file if we build a DLL.
17326 old_archive_From_new_cmds_GCJ='true'
17327 # FIXME: Should let the user specify the lib program.
17328 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17329 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17330 enable_shared_with_static_runtimes_GCJ=yes
17333 darwin* | rhapsody*)
17335 rhapsody* | darwin1.[012])
17336 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17340 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17342 case ${MACOSX_DEPLOYMENT_TARGET} in
17344 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17347 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17353 archive_cmds_need_lc_GCJ=no
17354 hardcode_direct_GCJ=no
17355 hardcode_automatic_GCJ=yes
17356 hardcode_shlibpath_var_GCJ=unsupported
17357 whole_archive_flag_spec_GCJ=''
17358 link_all_deplibs_GCJ=yes
17359 if test "$GCC" = yes ; then
17360 output_verbose_link_cmd='echo'
17361 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17362 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17363 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17364 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17366 case $cc_basename in
17368 output_verbose_link_cmd='echo'
17369 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17370 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17372 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}'
17373 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}'
17383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17385 hardcode_shlibpath_var_GCJ=no
17392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17393 # support. Future versions do this automatically, but an explicit c++rt0.o
17394 # does not break anything, and helps significantly (at the cost of a little
17397 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17398 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17399 hardcode_direct_GCJ=yes
17400 hardcode_shlibpath_var_GCJ=no
17403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17405 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_direct_GCJ=yes
17407 hardcode_minus_L_GCJ=yes
17408 hardcode_shlibpath_var_GCJ=no
17411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17412 freebsd* | dragonfly*)
17413 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17414 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17415 hardcode_direct_GCJ=yes
17416 hardcode_shlibpath_var_GCJ=no
17420 if test "$GCC" = yes; then
17421 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'
17423 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'
17425 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17426 hardcode_libdir_separator_GCJ=:
17427 hardcode_direct_GCJ=yes
17429 # hardcode_minus_L: Not really in the search PATH,
17430 # but as the default location of the library.
17431 hardcode_minus_L_GCJ=yes
17432 export_dynamic_flag_spec_GCJ='${wl}-E'
17436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17437 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17439 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17441 if test "$with_gnu_ld" = no; then
17442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443 hardcode_libdir_separator_GCJ=:
17445 hardcode_direct_GCJ=yes
17446 export_dynamic_flag_spec_GCJ='${wl}-E'
17448 # hardcode_minus_L: Not really in the search PATH,
17449 # but as the default location of the library.
17450 hardcode_minus_L_GCJ=yes
17455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17464 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17470 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17476 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17480 if test "$with_gnu_ld" = no; then
17481 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17482 hardcode_libdir_separator_GCJ=:
17486 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17487 hardcode_direct_GCJ=no
17488 hardcode_shlibpath_var_GCJ=no
17491 hardcode_direct_GCJ=yes
17492 export_dynamic_flag_spec_GCJ='${wl}-E'
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17502 irix5* | irix6* | nonstopux*)
17503 if test "$GCC" = yes; then
17504 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'
17506 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'
17507 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17510 hardcode_libdir_separator_GCJ=:
17511 link_all_deplibs_GCJ=yes
17515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17518 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521 hardcode_direct_GCJ=yes
17522 hardcode_shlibpath_var_GCJ=no
17526 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527 hardcode_direct_GCJ=yes
17528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17529 hardcode_libdir_separator_GCJ=:
17530 hardcode_shlibpath_var_GCJ=no
17534 if test -f /usr/libexec/ld.so; then
17535 hardcode_direct_GCJ=yes
17536 hardcode_shlibpath_var_GCJ=no
17537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17538 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17541 export_dynamic_flag_spec_GCJ='${wl}-E'
17544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17549 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_minus_L_GCJ=yes
17562 allow_undefined_flag_GCJ=unsupported
17563 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'
17564 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17568 if test "$GCC" = yes; then
17569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17570 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'
17572 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17573 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'
17575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17576 hardcode_libdir_separator_GCJ=:
17579 osf4* | osf5*) # as osf3* with the addition of -msym flag
17580 if test "$GCC" = yes; then
17581 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17582 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'
17583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17585 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17586 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'
17587 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~
17588 $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'
17590 # Both c and cxx compiler support -rpath directly
17591 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17593 hardcode_libdir_separator_GCJ=:
17597 no_undefined_flag_GCJ=' -z text'
17598 if test "$GCC" = yes; then
17600 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17605 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17610 hardcode_shlibpath_var_GCJ=no
17612 solaris2.[0-5] | solaris2.[0-5].*) ;;
17614 # The compiler driver will combine and reorder linker options,
17615 # but understands `-z linker_flag'. GCC discards it without `$wl',
17616 # but is careful enough not to reorder.
17617 # Supported since Solaris 2.6 (maybe 2.5.1?)
17618 if test "$GCC" = yes; then
17619 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17621 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17625 link_all_deplibs_GCJ=yes
17629 if test "x$host_vendor" = xsequent; then
17630 # Use $CC to link under sequent, because it throws in some extra .o
17631 # files that make .init and .fini sections work.
17632 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 hardcode_direct_GCJ=yes
17638 hardcode_minus_L_GCJ=yes
17639 hardcode_shlibpath_var_GCJ=no
17643 case $host_vendor in
17645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_direct_GCJ=yes # is this really true???
17649 ## LD is ld it makes a PLAMLIB
17650 ## CC just makes a GrossModule.
17651 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17652 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17653 hardcode_direct_GCJ=no
17656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17657 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17660 runpath_var='LD_RUN_PATH'
17661 hardcode_shlibpath_var_GCJ=no
17665 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17666 hardcode_shlibpath_var_GCJ=no
17667 export_dynamic_flag_spec_GCJ='-Bexport'
17671 if test -d /usr/nec; then
17672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673 hardcode_shlibpath_var_GCJ=no
17674 runpath_var=LD_RUN_PATH
17675 hardcode_runpath_var=yes
17680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17681 no_undefined_flag_GCJ='${wl}-z,text'
17682 archive_cmds_need_lc_GCJ=no
17683 hardcode_shlibpath_var_GCJ=no
17684 runpath_var='LD_RUN_PATH'
17686 if test "$GCC" = yes; then
17687 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17688 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17690 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17695 sysv5* | sco3.2v5* | sco5v6*)
17696 # Note: We can NOT use -z defs as we might desire, because we do not
17697 # link with -lc, and that would cause any symbols used from libc to
17698 # always be unresolved, which means just about no library would
17699 # ever link correctly. If we're not using GNU ld we use -z text
17700 # though, which does catch some bad symbols but isn't as heavy-handed
17702 no_undefined_flag_GCJ='${wl}-z,text'
17703 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17704 archive_cmds_need_lc_GCJ=no
17705 hardcode_shlibpath_var_GCJ=no
17706 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17707 hardcode_libdir_separator_GCJ=':'
17708 link_all_deplibs_GCJ=yes
17709 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17710 runpath_var='LD_RUN_PATH'
17712 if test "$GCC" = yes; then
17713 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17714 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17716 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17724 hardcode_shlibpath_var_GCJ=no
17733 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17734 $as_echo "$ld_shlibs_GCJ" >&6; }
17735 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17738 # Do we need to explicitly link libc?
17740 case "x$archive_cmds_need_lc_GCJ" in
17742 # Assume -lc should be added
17743 archive_cmds_need_lc_GCJ=yes
17745 if test "$enable_shared" = yes && test "$GCC" = yes; then
17746 case $archive_cmds_GCJ in
17748 # FIXME: we may have to deal with multi-command sequences.
17751 # Test whether the compiler implicitly links with -lc since on some
17752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17753 # to ld, don't add -lc before -lgcc.
17754 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760 (eval $ac_compile) 2>&5
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } 2>conftest.err; then
17766 libobjs=conftest.$ac_objext
17768 wl=$lt_prog_compiler_wl_GCJ
17769 pic_flag=$lt_prog_compiler_pic_GCJ
17775 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17776 allow_undefined_flag_GCJ=
17777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17778 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }
17783 archive_cmds_need_lc_GCJ=no
17785 archive_cmds_need_lc_GCJ=yes
17787 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17789 cat conftest.err 1>&5
17792 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17793 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17800 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17802 library_names_spec=
17803 libname_spec='lib$name'
17807 postuninstall_cmds=
17811 shlibpath_overrides_runpath=unknown
17813 dynamic_linker="$host_os ld.so"
17814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17816 need_lib_prefix=unknown
17817 hardcode_into_libs=no
17819 # when you set need_version to no, make sure it does not cause -set_version
17820 # flags to be left without arguments
17821 need_version=unknown
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17827 shlibpath_var=LIBPATH
17829 # AIX 3 has no versioning support, so we append a major version to the name.
17830 soname_spec='${libname}${release}${shared_ext}$major'
17837 hardcode_into_libs=yes
17838 if test "$host_cpu" = ia64; then
17839 # AIX 5 supports IA64
17840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17843 # With GCC up to 2.95.x, collect2 would create an import file
17844 # for dependence libraries. The import file would start with
17845 # the line `#! .'. This would cause the generated library to
17846 # depend on `.', always an invalid library. This was fixed in
17847 # development snapshots of GCC prior to 3.0.
17849 aix4 | aix4.[01] | aix4.[01].*)
17850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17855 can_build_shared=no
17859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17860 # soname into executable. Probably we can add versioning support to
17861 # collect2, so additional links can be useful in future.
17862 if test "$aix_use_runtimelinking" = yes; then
17863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17864 # instead of lib<name>.a to let people know that these are not
17865 # typical AIX shared libraries.
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 # We preserve .a as extension for shared libraries through AIX4.2
17869 # and later when we are not doing run time linking.
17870 library_names_spec='${libname}${release}.a $libname.a'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17873 shlibpath_var=LIBPATH
17878 library_names_spec='$libname.ixlibrary $libname.a'
17879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17880 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'
17884 library_names_spec='${libname}${shared_ext}'
17885 dynamic_linker="$host_os ld.so"
17886 shlibpath_var=LIBRARY_PATH
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17893 soname_spec='${libname}${release}${shared_ext}$major'
17894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17895 shlibpath_var=LD_LIBRARY_PATH
17896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17898 # the default ld.so.conf also contains /usr/contrib/lib and
17899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17900 # libtool to hard-code these into programs
17903 cygwin* | mingw* | pw32*)
17904 version_type=windows
17909 case $GCC,$host_os in
17910 yes,cygwin* | yes,mingw* | yes,pw32*)
17911 library_names_spec='$libname.dll.a'
17912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17913 postinstall_cmds='base_file=`basename \${file}`~
17914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17915 dldir=$destdir/`dirname \$dlpath`~
17916 test -d \$dldir || mkdir -p \$dldir~
17917 $install_prog $dir/$dlname \$dldir/$dlname~
17918 chmod a+x \$dldir/$dlname'
17919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17920 dlpath=$dir/\$dldll~
17922 shlibpath_overrides_runpath=yes
17926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17931 # MinGW DLLs use traditional 'lib' prefix
17932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17934 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17935 # It is most probably a Windows format PATH printed by
17936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17937 # path with ; separators, and with drive letters. We can handle the
17938 # drive letters (cygwin fileutils understands them), so leave them,
17939 # especially as we might pass files found there to a mingw objdump,
17940 # which wouldn't understand a cygwinified path. Ahh.
17941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17947 # pw32 DLLs use 'pw' prefix rather than 'lib'
17948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17957 dynamic_linker='Win32 ld.exe'
17958 # FIXME: first we should search . and the directory the executable is in
17962 darwin* | rhapsody*)
17963 dynamic_linker="$host_os dyld"
17964 version_type=darwin
17967 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17968 soname_spec='${libname}${release}${major}$shared_ext'
17969 shlibpath_overrides_runpath=yes
17970 shlibpath_var=DYLD_LIBRARY_PATH
17971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LD_LIBRARY_PATH
17989 freebsd* | dragonfly*)
17990 # DragonFly does not have aout. When/if they implement a new
17991 # versioning mechanism, adjust this.
17992 if test -x /usr/bin/objformat; then
17993 objformat=`/usr/bin/objformat`
17996 freebsd[123]*) objformat=aout ;;
17997 *) objformat=elf ;;
18000 version_type=freebsd-$objformat
18001 case $version_type in
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18012 shlibpath_var=LD_LIBRARY_PATH
18015 shlibpath_overrides_runpath=yes
18017 freebsd3.[01]* | freebsdelf3.[01]*)
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18023 shlibpath_overrides_runpath=no
18024 hardcode_into_libs=yes
18026 *) # from 4.6 on, and DragonFly
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 hardcode_into_libs=yes
18043 hpux9* | hpux10* | hpux11*)
18044 # Give a soname corresponding to the major version so that dld.sl refuses to
18045 # link against other versions.
18052 hardcode_into_libs=yes
18053 dynamic_linker="$host_os dld.so"
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057 soname_spec='${libname}${release}${shared_ext}$major'
18058 if test "X$HPUX_IA64_MODE" = X32; then
18059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18067 hardcode_into_libs=yes
18068 dynamic_linker="$host_os dld.sl"
18069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18078 dynamic_linker="$host_os dld.sl"
18079 shlibpath_var=SHLIB_PATH
18080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18086 postinstall_cmds='chmod 555 $lib'
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 hardcode_into_libs=yes
18101 irix5* | irix6* | nonstopux*)
18103 nonstopux*) version_type=nonstopux ;;
18105 if test "$lt_cv_prog_gnu_ld" = yes; then
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18116 irix5* | nonstopux*)
18117 libsuff= shlibsuff=
18120 case $LD in # libtool.m4 will add one of these switches to LD
18121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18122 libsuff= shlibsuff= libmagic=32-bit;;
18123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18124 libsuff=32 shlibsuff=N32 libmagic=N32;;
18125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18127 *) libsuff= shlibsuff= libmagic=never-match;;
18131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18132 shlibpath_overrides_runpath=no
18133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18135 hardcode_into_libs=yes
18138 # No shared lib support for Linux oldld, aout, or coff.
18139 linux*oldld* | linux*aout* | linux*coff*)
18143 # This must be Linux ELF.
18144 linux* | k*bsd*-gnu)
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=no
18153 # This implies no fast_install, which is unacceptable.
18154 # Some rework will be needed to allow for fast_install
18155 # before this can be enabled.
18156 hardcode_into_libs=yes
18158 # Append ld.so.conf contents to the search path
18159 if test -f /etc/ld.so.conf; then
18160 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' ' '`
18161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18164 # We used to test for /lib/ld.so.1 and disable shared libraries on
18165 # powerpc, because MkLinux only supported shared libraries with the
18166 # GNU dynamic linker. Since this was broken with cross compilers,
18167 # most powerpc-linux boxes support dynamic linking these days and
18168 # people can always --disable-shared, the test was removed, and we
18169 # assume the GNU/Linux dynamic linker is in use.
18170 dynamic_linker='GNU/Linux ld.so'
18177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18180 dynamic_linker='NetBSD (a.out) ld.so'
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 dynamic_linker='NetBSD ld.elf_so'
18186 shlibpath_var=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath=yes
18188 hardcode_into_libs=yes
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 shlibpath_var=LD_LIBRARY_PATH
18195 shlibpath_overrides_runpath=yes
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18203 soname_spec='${libname}${release}${shared_ext}$major'
18204 shlibpath_var=LD_LIBRARY_PATH
18205 shlibpath_overrides_runpath=yes
18210 sys_lib_dlsearch_path_spec="/usr/lib"
18212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18215 *) need_version=no ;;
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18222 openbsd2.[89] | openbsd2.[89].*)
18223 shlibpath_overrides_runpath=no
18226 shlibpath_overrides_runpath=yes
18230 shlibpath_overrides_runpath=yes
18235 libname_spec='$name'
18238 library_names_spec='$libname${shared_ext} $libname.a'
18239 dynamic_linker='OS/2 ld.exe'
18240 shlibpath_var=LIBPATH
18243 osf3* | osf4* | osf5*)
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 shlibpath_var=LD_LIBRARY_PATH
18265 shlibpath_overrides_runpath=yes
18266 hardcode_into_libs=yes
18267 # ldd complains unless libraries are executable
18268 postinstall_cmds='chmod +x $lib'
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath=yes
18277 if test "$with_gnu_ld" = yes; then
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 case $host_vendor in
18290 shlibpath_overrides_runpath=no
18292 export_dynamic_flag_spec='${wl}-Blargedynsym'
18293 runpath_var=LD_RUN_PATH
18301 shlibpath_overrides_runpath=no
18302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18308 if test -d /usr/nec ;then
18310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18311 soname_spec='$libname${shared_ext}.$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18317 version_type=freebsd-elf
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 hardcode_into_libs=yes
18324 if test "$with_gnu_ld" = yes; then
18325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18326 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18329 shlibpath_overrides_runpath=yes
18332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18336 sys_lib_dlsearch_path_spec='/usr/lib'
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LD_LIBRARY_PATH
18350 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18351 $as_echo "$dynamic_linker" >&6; }
18352 test "$dynamic_linker" = no && can_build_shared=no
18354 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18355 $as_echo_n "(cached) " >&6
18357 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18360 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18362 $as_echo_n "(cached) " >&6
18364 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18367 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18370 if test "$GCC" = yes; then
18371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18374 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18375 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18376 hardcode_action_GCJ=
18377 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18378 test -n "$runpath_var_GCJ" || \
18379 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18381 # We can hardcode non-existant directories.
18382 if test "$hardcode_direct_GCJ" != no &&
18383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18384 # have to relink, otherwise we might link with an installed library
18385 # when we should be linking with a yet-to-be-installed one
18386 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18387 test "$hardcode_minus_L_GCJ" != no; then
18388 # Linking always hardcodes the temporary library directory.
18389 hardcode_action_GCJ=relink
18391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18392 hardcode_action_GCJ=immediate
18395 # We cannot hardcode anything, or else we can only hardcode existing
18397 hardcode_action_GCJ=unsupported
18399 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18400 $as_echo "$hardcode_action_GCJ" >&6; }
18402 if test "$hardcode_action_GCJ" = relink; then
18403 # Fast installation is not supported
18404 enable_fast_install=no
18405 elif test "$shlibpath_overrides_runpath" = yes ||
18406 test "$enable_shared" = no; then
18407 # Fast installation is not necessary
18408 enable_fast_install=needless
18412 # The else clause should only fire when bootstrapping the
18413 # libtool distribution, otherwise you forgot to ship ltmain.sh
18414 # with your package, and you will get complaints that there are
18415 # no rules to generate ltmain.sh.
18416 if test -f "$ltmain"; then
18417 # See if we are running on zsh, and set the options which allow our commands through
18418 # without removal of \ escapes.
18419 if test -n "${ZSH_VERSION+set}" ; then
18420 setopt NO_GLOB_SUBST
18422 # Now quote all the things that may contain metacharacters while being
18423 # careful not to overquote the AC_SUBSTed values. We take copies of the
18424 # variables and quote the copies for generation of the libtool script.
18425 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18427 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18428 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18429 deplibs_check_method reload_flag reload_cmds need_locks \
18430 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18431 lt_cv_sys_global_symbol_to_c_name_address \
18432 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18433 old_postinstall_cmds old_postuninstall_cmds \
18437 lt_prog_compiler_wl_GCJ \
18438 lt_prog_compiler_pic_GCJ \
18439 lt_prog_compiler_static_GCJ \
18440 lt_prog_compiler_no_builtin_flag_GCJ \
18441 export_dynamic_flag_spec_GCJ \
18442 thread_safe_flag_spec_GCJ \
18443 whole_archive_flag_spec_GCJ \
18444 enable_shared_with_static_runtimes_GCJ \
18445 old_archive_cmds_GCJ \
18446 old_archive_from_new_cmds_GCJ \
18447 predep_objects_GCJ \
18448 postdep_objects_GCJ \
18451 compiler_lib_search_path_GCJ \
18452 compiler_lib_search_dirs_GCJ \
18454 archive_expsym_cmds_GCJ \
18455 postinstall_cmds_GCJ \
18456 postuninstall_cmds_GCJ \
18457 old_archive_from_expsyms_cmds_GCJ \
18458 allow_undefined_flag_GCJ \
18459 no_undefined_flag_GCJ \
18460 export_symbols_cmds_GCJ \
18461 hardcode_libdir_flag_spec_GCJ \
18462 hardcode_libdir_flag_spec_ld_GCJ \
18463 hardcode_libdir_separator_GCJ \
18464 hardcode_automatic_GCJ \
18466 module_expsym_cmds_GCJ \
18467 lt_cv_prog_compiler_c_o_GCJ \
18468 fix_srcfile_path_GCJ \
18469 exclude_expsyms_GCJ \
18470 include_expsyms_GCJ; do
18473 old_archive_cmds_GCJ | \
18474 old_archive_from_new_cmds_GCJ | \
18475 archive_cmds_GCJ | \
18476 archive_expsym_cmds_GCJ | \
18477 module_cmds_GCJ | \
18478 module_expsym_cmds_GCJ | \
18479 old_archive_from_expsyms_cmds_GCJ | \
18480 export_symbols_cmds_GCJ | \
18481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482 postinstall_cmds | postuninstall_cmds | \
18483 old_postinstall_cmds | old_postuninstall_cmds | \
18484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485 # Double-quote double-evaled strings.
18486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18495 *'\$0 --fallback-echo"')
18496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18502 cat <<__EOF__ >> "$cfgfile"
18503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18507 # Shell to use when invoking shell scripts.
18510 # Whether or not to build shared libraries.
18511 build_libtool_libs=$enable_shared
18513 # Whether or not to build static libraries.
18514 build_old_libs=$enable_static
18516 # Whether or not to add -lc for building shared libraries.
18517 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18519 # Whether or not to disallow shared libs when runtime libs are static
18520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18522 # Whether or not to optimize for fast installation.
18523 fast_install=$enable_fast_install
18526 host_alias=$host_alias
18530 # The build system.
18531 build_alias=$build_alias
18535 # An echo program that does not interpret backslashes.
18540 AR_FLAGS=$lt_AR_FLAGS
18545 # LTCC compiler flags.
18546 LTCFLAGS=$lt_LTCFLAGS
18548 # A language-specific compiler.
18549 CC=$lt_compiler_GCJ
18551 # Is the compiler the GNU C compiler?
18557 # The linker used to build libraries.
18560 # Whether we need hard or soft links.
18563 # A BSD-compatible nm program.
18566 # A symbol stripping program
18569 # Used to examine libraries when file_magic_cmd begins "file"
18570 MAGIC_CMD=$MAGIC_CMD
18572 # Used on cygwin: DLL creation program.
18575 # Used on cygwin: object dumper.
18578 # Used on cygwin: assembler.
18581 # The name of the directory that contains temporary libtool files.
18584 # How to create reloadable object files.
18585 reload_flag=$lt_reload_flag
18586 reload_cmds=$lt_reload_cmds
18588 # How to pass a linker flag through the compiler.
18589 wl=$lt_lt_prog_compiler_wl_GCJ
18591 # Object file suffix (normally "o").
18592 objext="$ac_objext"
18594 # Old archive suffix (normally "a").
18597 # Shared library suffix (normally ".so").
18598 shrext_cmds='$shrext_cmds'
18600 # Executable file suffix (normally "").
18603 # Additional compiler flags for building library objects.
18604 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18607 # What is the maximum length of a command?
18608 max_cmd_len=$lt_cv_sys_max_cmd_len
18610 # Does compiler simultaneously support -c and -o options?
18611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18613 # Must we lock files when doing compilation?
18614 need_locks=$lt_need_locks
18616 # Do we need the lib prefix for modules?
18617 need_lib_prefix=$need_lib_prefix
18619 # Do we need a version for libraries?
18620 need_version=$need_version
18622 # Whether dlopen is supported.
18623 dlopen_support=$enable_dlopen
18625 # Whether dlopen of programs is supported.
18626 dlopen_self=$enable_dlopen_self
18628 # Whether dlopen of statically linked programs is supported.
18629 dlopen_self_static=$enable_dlopen_self_static
18631 # Compiler flag to prevent dynamic linking.
18632 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18634 # Compiler flag to turn off builtin functions.
18635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18637 # Compiler flag to allow reflexive dlopens.
18638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18640 # Compiler flag to generate shared objects directly from archives.
18641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18643 # Compiler flag to generate thread-safe objects.
18644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18646 # Library versioning type.
18647 version_type=$version_type
18649 # Format of library name prefix.
18650 libname_spec=$lt_libname_spec
18652 # List of archive names. First name is the real one, the rest are links.
18653 # The last name is the one that the linker finds with -lNAME.
18654 library_names_spec=$lt_library_names_spec
18656 # The coded name of the library, if different from the real name.
18657 soname_spec=$lt_soname_spec
18659 # Commands used to build and install an old-style archive.
18661 old_archive_cmds=$lt_old_archive_cmds_GCJ
18662 old_postinstall_cmds=$lt_old_postinstall_cmds
18663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18665 # Create an old-style archive from a shared archive.
18666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18668 # Create a temporary old-style archive to link instead of a shared archive.
18669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18671 # Commands used to build and install a shared archive.
18672 archive_cmds=$lt_archive_cmds_GCJ
18673 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18674 postinstall_cmds=$lt_postinstall_cmds
18675 postuninstall_cmds=$lt_postuninstall_cmds
18677 # Commands used to build a loadable module (assumed same as above if empty)
18678 module_cmds=$lt_module_cmds_GCJ
18679 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18681 # Commands to strip libraries.
18682 old_striplib=$lt_old_striplib
18683 striplib=$lt_striplib
18685 # Dependencies to place before the objects being linked to create a
18687 predep_objects=$lt_predep_objects_GCJ
18689 # Dependencies to place after the objects being linked to create a
18691 postdep_objects=$lt_postdep_objects_GCJ
18693 # Dependencies to place before the objects being linked to create a
18695 predeps=$lt_predeps_GCJ
18697 # Dependencies to place after the objects being linked to create a
18699 postdeps=$lt_postdeps_GCJ
18701 # The directories searched by this compiler when creating a shared
18703 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18705 # The library search path used internally by the compiler when linking
18706 # a shared library.
18707 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18709 # Method to check whether dependent libraries are shared objects.
18710 deplibs_check_method=$lt_deplibs_check_method
18712 # Command to use when deplibs_check_method == file_magic.
18713 file_magic_cmd=$lt_file_magic_cmd
18715 # Flag that allows shared libraries with undefined symbols to be built.
18716 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18718 # Flag that forces no undefined symbols.
18719 no_undefined_flag=$lt_no_undefined_flag_GCJ
18721 # Commands used to finish a libtool library installation in a directory.
18722 finish_cmds=$lt_finish_cmds
18724 # Same as above, but a single script fragment to be evaled but not shown.
18725 finish_eval=$lt_finish_eval
18727 # Take the output of nm and produce a listing of raw symbols and C names.
18728 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18730 # Transform the output of nm in a proper C declaration
18731 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18733 # Transform the output of nm in a C name address pair
18734 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18736 # This is the shared library runtime path variable.
18737 runpath_var=$runpath_var
18739 # This is the shared library path variable.
18740 shlibpath_var=$shlibpath_var
18742 # Is shlibpath searched before the hard-coded library search path?
18743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18745 # How to hardcode a shared library path into an executable.
18746 hardcode_action=$hardcode_action_GCJ
18748 # Whether we should hardcode library paths into libraries.
18749 hardcode_into_libs=$hardcode_into_libs
18751 # Flag to hardcode \$libdir into a binary during linking.
18752 # This must work even if \$libdir does not exist.
18753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18755 # If ld is used when linking, flag to hardcode \$libdir into
18756 # a binary during linking. This must work even if \$libdir does
18758 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18760 # Whether we need a single -rpath flag with a separated argument.
18761 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18763 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18764 # resulting binary.
18765 hardcode_direct=$hardcode_direct_GCJ
18767 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18768 # resulting binary.
18769 hardcode_minus_L=$hardcode_minus_L_GCJ
18771 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18772 # the resulting binary.
18773 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18775 # Set to yes if building a shared library automatically hardcodes DIR into the library
18776 # and all subsequent libraries and executables linked against it.
18777 hardcode_automatic=$hardcode_automatic_GCJ
18779 # Variables whose values should be saved in libtool wrapper scripts and
18780 # restored at relink time.
18781 variables_saved_for_relink="$variables_saved_for_relink"
18783 # Whether libtool must link a program against all its dependency libraries.
18784 link_all_deplibs=$link_all_deplibs_GCJ
18786 # Compile-time system search path for libraries
18787 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18789 # Run-time system search path for libraries
18790 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18792 # Fix the shell variable \$srcfile for the compiler.
18793 fix_srcfile_path=$lt_fix_srcfile_path
18795 # Set to yes if exported symbols are required.
18796 always_export_symbols=$always_export_symbols_GCJ
18798 # The commands to list exported symbols.
18799 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18801 # The commands to extract the exported symbol list from a shared archive.
18802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18804 # Symbols that should not be listed in the preloaded symbols.
18805 exclude_expsyms=$lt_exclude_expsyms_GCJ
18807 # Symbols that must always be exported.
18808 include_expsyms=$lt_include_expsyms_GCJ
18810 # ### END LIBTOOL TAG CONFIG: $tagname
18816 # If there is no Makefile yet, we rely on a make rule to execute
18817 # `config.status --recheck' to rerun these tests and create the
18818 # libtool script then.
18819 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18820 if test -f "$ltmain_in"; then
18821 test -f Makefile && make "$ltmain"
18827 ac_cpp='$CPP $CPPFLAGS'
18828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842 # Source file extension for RC test sources.
18845 # Object file extension for compiled RC test sources.
18849 # Code to be used in simple compile tests
18850 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18852 # Code to be used in simple link tests
18853 lt_simple_link_test_code="$lt_simple_compile_test_code"
18855 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18857 # If no C compiler was specified, use CC.
18860 # If no C compiler flags were specified, use CFLAGS.
18861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18863 # Allow CC to be a program name with arguments.
18867 # save warnings/boilerplate of simple test code
18868 ac_outfile=conftest.$ac_objext
18869 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18870 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18871 _lt_compiler_boilerplate=`cat conftest.err`
18874 ac_outfile=conftest.$ac_objext
18875 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18876 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18877 _lt_linker_boilerplate=`cat conftest.err`
18881 # Allow CC to be a program name with arguments.
18886 for cc_temp in $compiler""; do
18888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18894 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18896 lt_cv_prog_compiler_c_o_RC=yes
18898 # The else clause should only fire when bootstrapping the
18899 # libtool distribution, otherwise you forgot to ship ltmain.sh
18900 # with your package, and you will get complaints that there are
18901 # no rules to generate ltmain.sh.
18902 if test -f "$ltmain"; then
18903 # See if we are running on zsh, and set the options which allow our commands through
18904 # without removal of \ escapes.
18905 if test -n "${ZSH_VERSION+set}" ; then
18906 setopt NO_GLOB_SUBST
18908 # Now quote all the things that may contain metacharacters while being
18909 # careful not to overquote the AC_SUBSTed values. We take copies of the
18910 # variables and quote the copies for generation of the libtool script.
18911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18915 deplibs_check_method reload_flag reload_cmds need_locks \
18916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18917 lt_cv_sys_global_symbol_to_c_name_address \
18918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18919 old_postinstall_cmds old_postuninstall_cmds \
18923 lt_prog_compiler_wl_RC \
18924 lt_prog_compiler_pic_RC \
18925 lt_prog_compiler_static_RC \
18926 lt_prog_compiler_no_builtin_flag_RC \
18927 export_dynamic_flag_spec_RC \
18928 thread_safe_flag_spec_RC \
18929 whole_archive_flag_spec_RC \
18930 enable_shared_with_static_runtimes_RC \
18931 old_archive_cmds_RC \
18932 old_archive_from_new_cmds_RC \
18933 predep_objects_RC \
18934 postdep_objects_RC \
18937 compiler_lib_search_path_RC \
18938 compiler_lib_search_dirs_RC \
18940 archive_expsym_cmds_RC \
18941 postinstall_cmds_RC \
18942 postuninstall_cmds_RC \
18943 old_archive_from_expsyms_cmds_RC \
18944 allow_undefined_flag_RC \
18945 no_undefined_flag_RC \
18946 export_symbols_cmds_RC \
18947 hardcode_libdir_flag_spec_RC \
18948 hardcode_libdir_flag_spec_ld_RC \
18949 hardcode_libdir_separator_RC \
18950 hardcode_automatic_RC \
18952 module_expsym_cmds_RC \
18953 lt_cv_prog_compiler_c_o_RC \
18954 fix_srcfile_path_RC \
18955 exclude_expsyms_RC \
18956 include_expsyms_RC; do
18959 old_archive_cmds_RC | \
18960 old_archive_from_new_cmds_RC | \
18961 archive_cmds_RC | \
18962 archive_expsym_cmds_RC | \
18964 module_expsym_cmds_RC | \
18965 old_archive_from_expsyms_cmds_RC | \
18966 export_symbols_cmds_RC | \
18967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18968 postinstall_cmds | postuninstall_cmds | \
18969 old_postinstall_cmds | old_postuninstall_cmds | \
18970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18971 # Double-quote double-evaled strings.
18972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18981 *'\$0 --fallback-echo"')
18982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18988 cat <<__EOF__ >> "$cfgfile"
18989 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18993 # Shell to use when invoking shell scripts.
18996 # Whether or not to build shared libraries.
18997 build_libtool_libs=$enable_shared
18999 # Whether or not to build static libraries.
19000 build_old_libs=$enable_static
19002 # Whether or not to add -lc for building shared libraries.
19003 build_libtool_need_lc=$archive_cmds_need_lc_RC
19005 # Whether or not to disallow shared libs when runtime libs are static
19006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19008 # Whether or not to optimize for fast installation.
19009 fast_install=$enable_fast_install
19012 host_alias=$host_alias
19016 # The build system.
19017 build_alias=$build_alias
19021 # An echo program that does not interpret backslashes.
19026 AR_FLAGS=$lt_AR_FLAGS
19031 # LTCC compiler flags.
19032 LTCFLAGS=$lt_LTCFLAGS
19034 # A language-specific compiler.
19037 # Is the compiler the GNU C compiler?
19043 # The linker used to build libraries.
19046 # Whether we need hard or soft links.
19049 # A BSD-compatible nm program.
19052 # A symbol stripping program
19055 # Used to examine libraries when file_magic_cmd begins "file"
19056 MAGIC_CMD=$MAGIC_CMD
19058 # Used on cygwin: DLL creation program.
19061 # Used on cygwin: object dumper.
19064 # Used on cygwin: assembler.
19067 # The name of the directory that contains temporary libtool files.
19070 # How to create reloadable object files.
19071 reload_flag=$lt_reload_flag
19072 reload_cmds=$lt_reload_cmds
19074 # How to pass a linker flag through the compiler.
19075 wl=$lt_lt_prog_compiler_wl_RC
19077 # Object file suffix (normally "o").
19078 objext="$ac_objext"
19080 # Old archive suffix (normally "a").
19083 # Shared library suffix (normally ".so").
19084 shrext_cmds='$shrext_cmds'
19086 # Executable file suffix (normally "").
19089 # Additional compiler flags for building library objects.
19090 pic_flag=$lt_lt_prog_compiler_pic_RC
19093 # What is the maximum length of a command?
19094 max_cmd_len=$lt_cv_sys_max_cmd_len
19096 # Does compiler simultaneously support -c and -o options?
19097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19099 # Must we lock files when doing compilation?
19100 need_locks=$lt_need_locks
19102 # Do we need the lib prefix for modules?
19103 need_lib_prefix=$need_lib_prefix
19105 # Do we need a version for libraries?
19106 need_version=$need_version
19108 # Whether dlopen is supported.
19109 dlopen_support=$enable_dlopen
19111 # Whether dlopen of programs is supported.
19112 dlopen_self=$enable_dlopen_self
19114 # Whether dlopen of statically linked programs is supported.
19115 dlopen_self_static=$enable_dlopen_self_static
19117 # Compiler flag to prevent dynamic linking.
19118 link_static_flag=$lt_lt_prog_compiler_static_RC
19120 # Compiler flag to turn off builtin functions.
19121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19123 # Compiler flag to allow reflexive dlopens.
19124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19126 # Compiler flag to generate shared objects directly from archives.
19127 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19129 # Compiler flag to generate thread-safe objects.
19130 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19132 # Library versioning type.
19133 version_type=$version_type
19135 # Format of library name prefix.
19136 libname_spec=$lt_libname_spec
19138 # List of archive names. First name is the real one, the rest are links.
19139 # The last name is the one that the linker finds with -lNAME.
19140 library_names_spec=$lt_library_names_spec
19142 # The coded name of the library, if different from the real name.
19143 soname_spec=$lt_soname_spec
19145 # Commands used to build and install an old-style archive.
19147 old_archive_cmds=$lt_old_archive_cmds_RC
19148 old_postinstall_cmds=$lt_old_postinstall_cmds
19149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19151 # Create an old-style archive from a shared archive.
19152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19154 # Create a temporary old-style archive to link instead of a shared archive.
19155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19157 # Commands used to build and install a shared archive.
19158 archive_cmds=$lt_archive_cmds_RC
19159 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19160 postinstall_cmds=$lt_postinstall_cmds
19161 postuninstall_cmds=$lt_postuninstall_cmds
19163 # Commands used to build a loadable module (assumed same as above if empty)
19164 module_cmds=$lt_module_cmds_RC
19165 module_expsym_cmds=$lt_module_expsym_cmds_RC
19167 # Commands to strip libraries.
19168 old_striplib=$lt_old_striplib
19169 striplib=$lt_striplib
19171 # Dependencies to place before the objects being linked to create a
19173 predep_objects=$lt_predep_objects_RC
19175 # Dependencies to place after the objects being linked to create a
19177 postdep_objects=$lt_postdep_objects_RC
19179 # Dependencies to place before the objects being linked to create a
19181 predeps=$lt_predeps_RC
19183 # Dependencies to place after the objects being linked to create a
19185 postdeps=$lt_postdeps_RC
19187 # The directories searched by this compiler when creating a shared
19189 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19191 # The library search path used internally by the compiler when linking
19192 # a shared library.
19193 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19195 # Method to check whether dependent libraries are shared objects.
19196 deplibs_check_method=$lt_deplibs_check_method
19198 # Command to use when deplibs_check_method == file_magic.
19199 file_magic_cmd=$lt_file_magic_cmd
19201 # Flag that allows shared libraries with undefined symbols to be built.
19202 allow_undefined_flag=$lt_allow_undefined_flag_RC
19204 # Flag that forces no undefined symbols.
19205 no_undefined_flag=$lt_no_undefined_flag_RC
19207 # Commands used to finish a libtool library installation in a directory.
19208 finish_cmds=$lt_finish_cmds
19210 # Same as above, but a single script fragment to be evaled but not shown.
19211 finish_eval=$lt_finish_eval
19213 # Take the output of nm and produce a listing of raw symbols and C names.
19214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19216 # Transform the output of nm in a proper C declaration
19217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19219 # Transform the output of nm in a C name address pair
19220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19222 # This is the shared library runtime path variable.
19223 runpath_var=$runpath_var
19225 # This is the shared library path variable.
19226 shlibpath_var=$shlibpath_var
19228 # Is shlibpath searched before the hard-coded library search path?
19229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19231 # How to hardcode a shared library path into an executable.
19232 hardcode_action=$hardcode_action_RC
19234 # Whether we should hardcode library paths into libraries.
19235 hardcode_into_libs=$hardcode_into_libs
19237 # Flag to hardcode \$libdir into a binary during linking.
19238 # This must work even if \$libdir does not exist.
19239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19241 # If ld is used when linking, flag to hardcode \$libdir into
19242 # a binary during linking. This must work even if \$libdir does
19244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19246 # Whether we need a single -rpath flag with a separated argument.
19247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19250 # resulting binary.
19251 hardcode_direct=$hardcode_direct_RC
19253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19254 # resulting binary.
19255 hardcode_minus_L=$hardcode_minus_L_RC
19257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19258 # the resulting binary.
19259 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19261 # Set to yes if building a shared library automatically hardcodes DIR into the library
19262 # and all subsequent libraries and executables linked against it.
19263 hardcode_automatic=$hardcode_automatic_RC
19265 # Variables whose values should be saved in libtool wrapper scripts and
19266 # restored at relink time.
19267 variables_saved_for_relink="$variables_saved_for_relink"
19269 # Whether libtool must link a program against all its dependency libraries.
19270 link_all_deplibs=$link_all_deplibs_RC
19272 # Compile-time system search path for libraries
19273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19275 # Run-time system search path for libraries
19276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19278 # Fix the shell variable \$srcfile for the compiler.
19279 fix_srcfile_path=$lt_fix_srcfile_path
19281 # Set to yes if exported symbols are required.
19282 always_export_symbols=$always_export_symbols_RC
19284 # The commands to list exported symbols.
19285 export_symbols_cmds=$lt_export_symbols_cmds_RC
19287 # The commands to extract the exported symbol list from a shared archive.
19288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19290 # Symbols that should not be listed in the preloaded symbols.
19291 exclude_expsyms=$lt_exclude_expsyms_RC
19293 # Symbols that must always be exported.
19294 include_expsyms=$lt_include_expsyms_RC
19296 # ### END LIBTOOL TAG CONFIG: $tagname
19302 # If there is no Makefile yet, we rely on a make rule to execute
19303 # `config.status --recheck' to rerun these tests and create the
19304 # libtool script then.
19305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19306 if test -f "$ltmain_in"; then
19307 test -f Makefile && make "$ltmain"
19313 ac_cpp='$CPP $CPPFLAGS'
19314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19323 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19324 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19325 { (exit 1); exit 1; }; }
19329 # Append the new tag name to the list of available tags.
19330 if test -n "$tagname" ; then
19331 available_tags="$available_tags $tagname"
19337 # Now substitute the updated list of available tags.
19338 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19339 mv "${ofile}T" "$ofile"
19343 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19344 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19345 { (exit 1); exit 1; }; }
19351 # This can be used to rebuild libtool when needed
19352 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19354 # Always use our own libtool.
19355 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19357 # Prevent multiple expansion
19379 am__api_version='1.10'
19381 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19382 $as_echo_n "checking whether build environment is sane... " >&6; }
19385 echo timestamp > conftest.file
19386 # Do `set' in a subshell so we don't clobber the current shell's
19387 # arguments. Must try -L first in case configure is actually a
19388 # symlink; some systems play weird games with the mod time of symlinks
19389 # (eg FreeBSD returns the mod time of the symlink's containing
19392 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19393 if test "$*" = "X"; then
19395 set X `ls -t $srcdir/configure conftest.file`
19397 rm -f conftest.file
19398 if test "$*" != "X $srcdir/configure conftest.file" \
19399 && test "$*" != "X conftest.file $srcdir/configure"; then
19401 # If neither matched, then we have a broken ls. This can happen
19402 # if, for instance, CONFIG_SHELL is bash and it inherits a
19403 # broken ls alias from the environment. This has actually
19404 # happened. Such a system could not be considered "sane".
19405 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19406 alias in your environment" >&5
19407 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19408 alias in your environment" >&2;}
19409 { (exit 1); exit 1; }; }
19412 test "$2" = conftest.file
19418 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19419 Check your system clock" >&5
19420 $as_echo "$as_me: error: newly created file is older than distributed files!
19421 Check your system clock" >&2;}
19422 { (exit 1); exit 1; }; }
19424 { $as_echo "$as_me:$LINENO: result: yes" >&5
19425 $as_echo "yes" >&6; }
19426 test "$program_prefix" != NONE &&
19427 program_transform_name="s&^&$program_prefix&;$program_transform_name"
19428 # Use a double $ so make ignores it.
19429 test "$program_suffix" != NONE &&
19430 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
19431 # Double any \ or $.
19432 # By default was `s,x,x', remove it if useless.
19433 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
19434 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
19436 # expand $ac_aux_dir to an absolute path
19437 am_aux_dir=`cd $ac_aux_dir && pwd`
19439 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19440 # Use eval to expand $SHELL
19441 if eval "$MISSING --run true"; then
19442 am_missing_run="$MISSING --run "
19445 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19446 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19449 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
19450 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19451 if test -z "$MKDIR_P"; then
19452 if test "${ac_cv_path_mkdir+set}" = set; then
19453 $as_echo_n "(cached) " >&6
19455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19456 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19459 test -z "$as_dir" && as_dir=.
19460 for ac_prog in mkdir gmkdir; do
19461 for ac_exec_ext in '' $ac_executable_extensions; do
19462 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
19463 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19464 'mkdir (GNU coreutils) '* | \
19465 'mkdir (coreutils) '* | \
19466 'mkdir (fileutils) '4.1*)
19467 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19477 if test "${ac_cv_path_mkdir+set}" = set; then
19478 MKDIR_P="$ac_cv_path_mkdir -p"
19480 # As a last resort, use the slow shell script. Don't cache a
19481 # value for MKDIR_P within a source directory, because that will
19482 # break other packages using the cache if that directory is
19483 # removed, or if the value is a relative name.
19484 test -d ./--version && rmdir ./--version
19485 MKDIR_P="$ac_install_sh -d"
19488 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
19489 $as_echo "$MKDIR_P" >&6; }
19493 [\\/$]* | ?:[\\/]*) ;;
19494 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
19497 for ac_prog in gawk mawk nawk awk
19499 # Extract the first word of "$ac_prog", so it can be a program name with args.
19500 set dummy $ac_prog; ac_word=$2
19501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19502 $as_echo_n "checking for $ac_word... " >&6; }
19503 if test "${ac_cv_prog_AWK+set}" = set; then
19504 $as_echo_n "(cached) " >&6
19506 if test -n "$AWK"; then
19507 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19510 for as_dir in $PATH
19513 test -z "$as_dir" && as_dir=.
19514 for ac_exec_ext in '' $ac_executable_extensions; do
19515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19516 ac_cv_prog_AWK="$ac_prog"
19517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19526 AWK=$ac_cv_prog_AWK
19527 if test -n "$AWK"; then
19528 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
19529 $as_echo "$AWK" >&6; }
19531 { $as_echo "$as_me:$LINENO: result: no" >&5
19532 $as_echo "no" >&6; }
19536 test -n "$AWK" && break
19539 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19543 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19544 $as_echo_n "(cached) " >&6
19546 cat >conftest.make <<\_ACEOF
19549 @echo '@@@%%%=$(MAKE)=@@@%%%'
19551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19553 *@@@%%%=?*=@@@%%%*)
19554 eval ac_cv_prog_make_${ac_make}_set=yes;;
19556 eval ac_cv_prog_make_${ac_make}_set=no;;
19558 rm -f conftest.make
19560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19561 { $as_echo "$as_me:$LINENO: result: yes" >&5
19562 $as_echo "yes" >&6; }
19565 { $as_echo "$as_me:$LINENO: result: no" >&5
19566 $as_echo "no" >&6; }
19567 SET_MAKE="MAKE=${MAKE-make}"
19570 rm -rf .tst 2>/dev/null
19571 mkdir .tst 2>/dev/null
19572 if test -d .tst; then
19577 rmdir .tst 2>/dev/null
19579 DEPDIR="${am__leading_dot}deps"
19581 ac_config_commands="$ac_config_commands depfiles"
19584 am_make=${MAKE-make}
19585 cat > confinc << 'END'
19590 # If we don't find an include directive, just comment out the code.
19591 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19592 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19596 # First try GNU make style include.
19597 echo "include confinc" > confmf
19598 # We grep out `Entering directory' and `Leaving directory'
19599 # messages which can occur if `w' ends up in MAKEFLAGS.
19600 # In particular we don't look at `^make:' because GNU make might
19601 # be invoked under some other name (usually "gmake"), in which
19602 # case it prints its new name instead of `make'.
19603 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19604 am__include=include
19608 # Now try BSD make style include.
19609 if test "$am__include" = "#"; then
19610 echo '.include "confinc"' > confmf
19611 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19612 am__include=.include
19619 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
19620 $as_echo "$_am_result" >&6; }
19621 rm -f confinc confmf
19623 # Check whether --enable-dependency-tracking was given.
19624 if test "${enable_dependency_tracking+set}" = set; then
19625 enableval=$enable_dependency_tracking;
19628 if test "x$enable_dependency_tracking" != xno; then
19629 am_depcomp="$ac_aux_dir/depcomp"
19632 if test "x$enable_dependency_tracking" != xno; then
19641 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19642 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19643 # is not polluted with repeated "-I."
19644 am__isrc=' -I$(srcdir)'
19645 # test to see if srcdir already configured
19646 if test -f $srcdir/config.status; then
19647 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19648 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19649 { (exit 1); exit 1; }; }
19653 # test whether we have cygpath
19654 if test -z "$CYGPATH_W"; then
19655 if (cygpath --version) >/dev/null 2>/dev/null; then
19656 CYGPATH_W='cygpath -w'
19663 # Define the identity of the package.
19668 cat >>confdefs.h <<_ACEOF
19669 #define PACKAGE "$PACKAGE"
19673 cat >>confdefs.h <<_ACEOF
19674 #define VERSION "$VERSION"
19677 # Some tools Automake needs.
19679 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19682 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19685 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19688 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19691 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19693 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19695 # Installed binaries are usually stripped using `strip' when the user
19696 # run `make install-strip'. However `strip' might not be the right
19697 # tool to use in cross-compilation environments, therefore Automake
19698 # will honor the `STRIP' environment variable to overrule this program.
19699 if test "$cross_compiling" != no; then
19700 if test -n "$ac_tool_prefix"; then
19701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19702 set dummy ${ac_tool_prefix}strip; ac_word=$2
19703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19704 $as_echo_n "checking for $ac_word... " >&6; }
19705 if test "${ac_cv_prog_STRIP+set}" = set; then
19706 $as_echo_n "(cached) " >&6
19708 if test -n "$STRIP"; then
19709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712 for as_dir in $PATH
19715 test -z "$as_dir" && as_dir=.
19716 for ac_exec_ext in '' $ac_executable_extensions; do
19717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728 STRIP=$ac_cv_prog_STRIP
19729 if test -n "$STRIP"; then
19730 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
19731 $as_echo "$STRIP" >&6; }
19733 { $as_echo "$as_me:$LINENO: result: no" >&5
19734 $as_echo "no" >&6; }
19739 if test -z "$ac_cv_prog_STRIP"; then
19741 # Extract the first word of "strip", so it can be a program name with args.
19742 set dummy strip; ac_word=$2
19743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19744 $as_echo_n "checking for $ac_word... " >&6; }
19745 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19746 $as_echo_n "(cached) " >&6
19748 if test -n "$ac_ct_STRIP"; then
19749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752 for as_dir in $PATH
19755 test -z "$as_dir" && as_dir=.
19756 for ac_exec_ext in '' $ac_executable_extensions; do
19757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19758 ac_cv_prog_ac_ct_STRIP="strip"
19759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19768 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19769 if test -n "$ac_ct_STRIP"; then
19770 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19771 $as_echo "$ac_ct_STRIP" >&6; }
19773 { $as_echo "$as_me:$LINENO: result: no" >&5
19774 $as_echo "no" >&6; }
19777 if test "x$ac_ct_STRIP" = x; then
19780 case $cross_compiling:$ac_tool_warned in
19782 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19783 whose name does not start with the host triplet. If you think this
19784 configuration is useful to you, please write to autoconf@gnu.org." >&5
19785 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19786 whose name does not start with the host triplet. If you think this
19787 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19788 ac_tool_warned=yes ;;
19793 STRIP="$ac_cv_prog_STRIP"
19797 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19799 # We need awk for the "check" target. The system "awk" is bad on
19801 # Always define AMTAR for backward compatibility.
19803 AMTAR=${AMTAR-"${am_missing_run}tar"}
19805 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19810 depcc="$CC" am_compiler_list=
19812 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19813 $as_echo_n "checking dependency style of $depcc... " >&6; }
19814 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19815 $as_echo_n "(cached) " >&6
19817 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19818 # We make a subdir and do the tests there. Otherwise we can end up
19819 # making bogus files that we don't know about and never remove. For
19820 # instance it was reported that on HP-UX the gcc test will end up
19821 # making a dummy file named `D' -- because `-MD' means `put the output
19824 # Copy depcomp to subdir because otherwise we won't find it if we're
19825 # using a relative directory.
19826 cp "$am_depcomp" conftest.dir
19828 # We will build objects and dependencies in a subdirectory because
19829 # it helps to detect inapplicable dependency modes. For instance
19830 # both Tru64's cc and ICC support -MD to output dependencies as a
19831 # side effect of compilation, but ICC will put the dependencies in
19832 # the current directory while Tru64 will put them in the object
19836 am_cv_CC_dependencies_compiler_type=none
19837 if test "$am_compiler_list" = ""; then
19838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19840 for depmode in $am_compiler_list; do
19841 # Setup a source with many dependencies, because some compilers
19842 # like to wrap large dependency lists on column 80 (with \), and
19843 # we should not choose a depcomp mode which is confused by this.
19845 # We need to recreate these files for each test, as the compiler may
19846 # overwrite some of them when testing with obscure command lines.
19847 # This happens at least with the AIX C compiler.
19849 for i in 1 2 3 4 5 6; do
19850 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19851 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19852 # Solaris 8's {/usr,}/bin/sh.
19853 touch sub/conftst$i.h
19855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19859 # after this tag, mechanisms are not by side-effect, so they'll
19860 # only be used when explicitly requested
19861 if test "x$enable_dependency_tracking" = xyes; then
19869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19870 # mode. It turns out that the SunPro C++ compiler does not properly
19871 # handle `-M -o', and we need to detect this.
19872 if depmode=$depmode \
19873 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19875 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19876 >/dev/null 2>conftest.err &&
19877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19879 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19881 # icc doesn't choke on unknown options, it will just issue warnings
19882 # or remarks (even with -Werror). So we grep stderr for any message
19883 # that says an option was ignored or not supported.
19884 # When given -MP, icc 7.0 and 7.1 complain thusly:
19885 # icc: Command line warning: ignoring option '-M'; no argument required
19886 # The diagnosis changed in icc 8.0:
19887 # icc: Command line remark: option '-MP' not supported
19888 if (grep 'ignoring option' conftest.err ||
19889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19890 am_cv_CC_dependencies_compiler_type=$depmode
19897 rm -rf conftest.dir
19899 am_cv_CC_dependencies_compiler_type=none
19903 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19904 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19908 test "x$enable_dependency_tracking" != xno \
19909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19910 am__fastdepCC_TRUE=
19911 am__fastdepCC_FALSE='#'
19913 am__fastdepCC_TRUE='#'
19914 am__fastdepCC_FALSE=
19918 depcc="$CXX" am_compiler_list=
19920 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19921 $as_echo_n "checking dependency style of $depcc... " >&6; }
19922 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19923 $as_echo_n "(cached) " >&6
19925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19926 # We make a subdir and do the tests there. Otherwise we can end up
19927 # making bogus files that we don't know about and never remove. For
19928 # instance it was reported that on HP-UX the gcc test will end up
19929 # making a dummy file named `D' -- because `-MD' means `put the output
19932 # Copy depcomp to subdir because otherwise we won't find it if we're
19933 # using a relative directory.
19934 cp "$am_depcomp" conftest.dir
19936 # We will build objects and dependencies in a subdirectory because
19937 # it helps to detect inapplicable dependency modes. For instance
19938 # both Tru64's cc and ICC support -MD to output dependencies as a
19939 # side effect of compilation, but ICC will put the dependencies in
19940 # the current directory while Tru64 will put them in the object
19944 am_cv_CXX_dependencies_compiler_type=none
19945 if test "$am_compiler_list" = ""; then
19946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19948 for depmode in $am_compiler_list; do
19949 # Setup a source with many dependencies, because some compilers
19950 # like to wrap large dependency lists on column 80 (with \), and
19951 # we should not choose a depcomp mode which is confused by this.
19953 # We need to recreate these files for each test, as the compiler may
19954 # overwrite some of them when testing with obscure command lines.
19955 # This happens at least with the AIX C compiler.
19957 for i in 1 2 3 4 5 6; do
19958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19959 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19960 # Solaris 8's {/usr,}/bin/sh.
19961 touch sub/conftst$i.h
19963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19967 # after this tag, mechanisms are not by side-effect, so they'll
19968 # only be used when explicitly requested
19969 if test "x$enable_dependency_tracking" = xyes; then
19977 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19978 # mode. It turns out that the SunPro C++ compiler does not properly
19979 # handle `-M -o', and we need to detect this.
19980 if depmode=$depmode \
19981 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19983 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19984 >/dev/null 2>conftest.err &&
19985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19987 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19989 # icc doesn't choke on unknown options, it will just issue warnings
19990 # or remarks (even with -Werror). So we grep stderr for any message
19991 # that says an option was ignored or not supported.
19992 # When given -MP, icc 7.0 and 7.1 complain thusly:
19993 # icc: Command line warning: ignoring option '-M'; no argument required
19994 # The diagnosis changed in icc 8.0:
19995 # icc: Command line remark: option '-MP' not supported
19996 if (grep 'ignoring option' conftest.err ||
19997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19998 am_cv_CXX_dependencies_compiler_type=$depmode
20005 rm -rf conftest.dir
20007 am_cv_CXX_dependencies_compiler_type=none
20011 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20012 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
20013 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20016 test "x$enable_dependency_tracking" != xno \
20017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20018 am__fastdepCXX_TRUE=
20019 am__fastdepCXX_FALSE='#'
20021 am__fastdepCXX_TRUE='#'
20022 am__fastdepCXX_FALSE=
20028 { $as_echo "$as_me:$LINENO: checking for library containing dlsym" >&5
20029 $as_echo_n "checking for library containing dlsym... " >&6; }
20030 if test "${ac_cv_search_dlsym+set}" = set; then
20031 $as_echo_n "(cached) " >&6
20033 ac_func_search_save_LIBS=$LIBS
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20056 for ac_lib in '' dl; do
20057 if test -z "$ac_lib"; then
20058 ac_res="none required"
20061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (ac_try="$ac_link"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20070 $as_echo "$ac_try_echo") >&5
20071 (eval "$ac_link") 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext && {
20081 test "$cross_compiling" = yes ||
20082 $as_test_x conftest$ac_exeext
20084 ac_cv_search_dlsym=$ac_res
20086 $as_echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20092 rm -rf conftest.dSYM
20093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20095 if test "${ac_cv_search_dlsym+set}" = set; then
20099 if test "${ac_cv_search_dlsym+set}" = set; then
20102 ac_cv_search_dlsym=no
20104 rm conftest.$ac_ext
20105 LIBS=$ac_func_search_save_LIBS
20107 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
20108 $as_echo "$ac_cv_search_dlsym" >&6; }
20109 ac_res=$ac_cv_search_dlsym
20110 if test "$ac_res" != no; then
20111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20115 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
20116 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20117 if test "${ac_cv_search_clock_gettime+set}" = set; then
20118 $as_echo_n "(cached) " >&6
20120 ac_func_search_save_LIBS=$LIBS
20121 cat >conftest.$ac_ext <<_ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20128 /* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20134 char clock_gettime ();
20138 return clock_gettime ();
20143 for ac_lib in '' rt; do
20144 if test -z "$ac_lib"; then
20145 ac_res="none required"
20148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (ac_try="$ac_link"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157 $as_echo "$ac_try_echo") >&5
20158 (eval "$ac_link") 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest$ac_exeext && {
20168 test "$cross_compiling" = yes ||
20169 $as_test_x conftest$ac_exeext
20171 ac_cv_search_clock_gettime=$ac_res
20173 $as_echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20179 rm -rf conftest.dSYM
20180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20182 if test "${ac_cv_search_clock_gettime+set}" = set; then
20186 if test "${ac_cv_search_clock_gettime+set}" = set; then
20189 ac_cv_search_clock_gettime=no
20191 rm conftest.$ac_ext
20192 LIBS=$ac_func_search_save_LIBS
20194 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
20195 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20196 ac_res=$ac_cv_search_clock_gettime
20197 if test "$ac_res" != no; then
20198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20203 # Checks for header files.
20204 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20205 $as_echo_n "checking for ANSI C header files... " >&6; }
20206 if test "${ac_cv_header_stdc+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <stdlib.h>
20216 #include <stdarg.h>
20217 #include <string.h>
20228 rm -f conftest.$ac_objext
20229 if { (ac_try="$ac_compile"
20230 case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235 $as_echo "$ac_try_echo") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_cv_header_stdc=yes
20248 $as_echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_header_stdc=no
20254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20256 if test $ac_cv_header_stdc = yes; then
20257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #include <string.h>
20267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20268 $EGREP "memchr" >/dev/null 2>&1; then
20271 ac_cv_header_stdc=no
20277 if test $ac_cv_header_stdc = yes; then
20278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <stdlib.h>
20288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20289 $EGREP "free" >/dev/null 2>&1; then
20292 ac_cv_header_stdc=no
20298 if test $ac_cv_header_stdc = yes; then
20299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20300 if test "$cross_compiling" = yes; then
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20310 #include <stdlib.h>
20311 #if ((' ' & 0x0FF) == 0x020)
20312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20315 # define ISLOWER(c) \
20316 (('a' <= (c) && (c) <= 'i') \
20317 || ('j' <= (c) && (c) <= 'r') \
20318 || ('s' <= (c) && (c) <= 'z'))
20319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20327 for (i = 0; i < 256; i++)
20328 if (XOR (islower (i), ISLOWER (i))
20329 || toupper (i) != TOUPPER (i))
20334 rm -f conftest$ac_exeext
20335 if { (ac_try="$ac_link"
20336 case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20341 $as_echo "$ac_try_echo") >&5
20342 (eval "$ac_link") 2>&5
20344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20351 $as_echo "$ac_try_echo") >&5
20352 (eval "$ac_try") 2>&5
20354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20358 $as_echo "$as_me: program exited with status $ac_status" >&5
20359 $as_echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ( exit $ac_status )
20363 ac_cv_header_stdc=no
20365 rm -rf conftest.dSYM
20366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20373 $as_echo "$ac_cv_header_stdc" >&6; }
20374 if test $ac_cv_header_stdc = yes; then
20376 cat >>confdefs.h <<\_ACEOF
20377 #define STDC_HEADERS 1
20382 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20383 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20384 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20385 $as_echo_n "(cached) " >&6
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 #include <sys/types.h>
20394 #include <sys/wait.h>
20395 #ifndef WEXITSTATUS
20396 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20399 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20412 rm -f conftest.$ac_objext
20413 if { (ac_try="$ac_compile"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419 $as_echo "$ac_try_echo") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_cv_header_sys_wait_h=yes
20432 $as_echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_cv_header_sys_wait_h=no
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20441 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20442 if test $ac_cv_header_sys_wait_h = yes; then
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_SYS_WAIT_H 1
20455 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h
20457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20460 $as_echo_n "checking for $ac_header... " >&6; }
20461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462 $as_echo_n "(cached) " >&6
20464 ac_res=`eval 'as_val=${'$as_ac_Header'}
20465 $as_echo "$as_val"'`
20466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20467 $as_echo "$ac_res" >&6; }
20469 # Is the header compilable?
20470 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471 $as_echo_n "checking $ac_header usability... " >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 $ac_includes_default
20479 #include <$ac_header>
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20488 $as_echo "$ac_try_echo") >&5
20489 (eval "$ac_compile") 2>conftest.er1
20491 grep -v '^ *+' conftest.er1 >conftest.err
20493 cat conftest.err >&5
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && {
20496 test -z "$ac_c_werror_flag" ||
20497 test ! -s conftest.err
20498 } && test -s conftest.$ac_objext; then
20499 ac_header_compiler=yes
20501 $as_echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 ac_header_compiler=no
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20509 $as_echo "$ac_header_compiler" >&6; }
20511 # Is the header present?
20512 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20513 $as_echo_n "checking $ac_header presence... " >&6; }
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 #include <$ac_header>
20522 if { (ac_try="$ac_cpp conftest.$ac_ext"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } >/dev/null && {
20536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20539 ac_header_preproc=yes
20541 $as_echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ac_header_preproc=no
20547 rm -f conftest.err conftest.$ac_ext
20548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20549 $as_echo "$ac_header_preproc" >&6; }
20551 # So? What about this header?
20552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20555 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20558 ac_header_preproc=yes
20561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20562 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20564 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20566 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20568 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20570 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20572 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20574 ## ----------------------------------------------- ##
20575 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20576 ## ----------------------------------------------- ##
20578 ) | sed "s/^/$as_me: WARNING: /" >&2
20581 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20582 $as_echo_n "checking for $ac_header... " >&6; }
20583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20584 $as_echo_n "(cached) " >&6
20586 eval "$as_ac_Header=\$ac_header_preproc"
20588 ac_res=`eval 'as_val=${'$as_ac_Header'}
20589 $as_echo "$as_val"'`
20590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20591 $as_echo "$ac_res" >&6; }
20594 if test `eval 'as_val=${'$as_ac_Header'}
20595 $as_echo "$as_val"'` = yes; then
20596 cat >>confdefs.h <<_ACEOF
20597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20606 cat >>confdefs.h <<\_ACEOF
20607 #define _GNU_SOURCE /**/
20611 # Checks for typedefs, structures, and compiler characteristics.
20612 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20613 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20614 if test "${ac_cv_c_const+set}" = set; then
20615 $as_echo_n "(cached) " >&6
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20627 /* FIXME: Include the comments suggested by Paul. */
20628 #ifndef __cplusplus
20629 /* Ultrix mips cc rejects this. */
20630 typedef int charset[2];
20632 /* SunOS 4.1.1 cc rejects this. */
20633 char const *const *pcpcc;
20635 /* NEC SVR4.0.2 mips cc rejects this. */
20636 struct point {int x, y;};
20637 static struct point const zero = {0,0};
20638 /* AIX XL C 1.02.0.0 rejects this.
20639 It does not let you subtract one const X* pointer from another in
20640 an arm of an if-expression whose if-part is not a constant
20642 const char *g = "string";
20643 pcpcc = &g + (g ? g-g : 0);
20644 /* HPUX 7.0 cc rejects these. */
20646 ppc = (char**) pcpcc;
20647 pcpcc = (char const *const *) ppc;
20648 { /* SCO 3.2v4 cc rejects this. */
20650 char const *s = 0 ? (char *) 0 : (char const *) 0;
20655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20656 int x[] = {25, 17};
20657 const int *foo = &x[0];
20660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20661 typedef const int *iptr;
20665 { /* AIX XL C 1.02.0.0 rejects this saying
20666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20667 struct s { int j; const int *ap[3]; };
20668 struct s *b; b->j = 5;
20670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20671 const int foo = 10;
20672 if (!foo) return 0;
20674 return !cs[0] && !zero.x;
20681 rm -f conftest.$ac_objext
20682 if { (ac_try="$ac_compile"
20683 case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20688 $as_echo "$ac_try_echo") >&5
20689 (eval "$ac_compile") 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest.$ac_objext; then
20701 $as_echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20710 $as_echo "$ac_cv_c_const" >&6; }
20711 if test $ac_cv_c_const = no; then
20713 cat >>confdefs.h <<\_ACEOF
20719 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20720 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20721 if test "${ac_cv_type_uid_t+set}" = set; then
20722 $as_echo_n "(cached) " >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <sys/types.h>
20733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20734 $EGREP "uid_t" >/dev/null 2>&1; then
20735 ac_cv_type_uid_t=yes
20737 ac_cv_type_uid_t=no
20742 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20743 $as_echo "$ac_cv_type_uid_t" >&6; }
20744 if test $ac_cv_type_uid_t = no; then
20746 cat >>confdefs.h <<\_ACEOF
20751 cat >>confdefs.h <<\_ACEOF
20757 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20758 $as_echo_n "checking for pid_t... " >&6; }
20759 if test "${ac_cv_type_pid_t+set}" = set; then
20760 $as_echo_n "(cached) " >&6
20762 ac_cv_type_pid_t=no
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 $ac_includes_default
20773 if (sizeof (pid_t))
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20786 $as_echo "$ac_try_echo") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20797 cat >conftest.$ac_ext <<_ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 $ac_includes_default
20807 if (sizeof ((pid_t)))
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820 $as_echo "$ac_try_echo") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20833 $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_type_pid_t=yes
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841 $as_echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20850 $as_echo "$ac_cv_type_pid_t" >&6; }
20851 if test $ac_cv_type_pid_t = yes; then
20855 cat >>confdefs.h <<_ACEOF
20861 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20862 $as_echo_n "checking for size_t... " >&6; }
20863 if test "${ac_cv_type_size_t+set}" = set; then
20864 $as_echo_n "(cached) " >&6
20866 ac_cv_type_size_t=no
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20877 if (sizeof (size_t))
20883 rm -f conftest.$ac_objext
20884 if { (ac_try="$ac_compile"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20890 $as_echo "$ac_try_echo") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20907 $ac_includes_default
20911 if (sizeof ((size_t)))
20917 rm -f conftest.$ac_objext
20918 if { (ac_try="$ac_compile"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20924 $as_echo "$ac_try_echo") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20937 $as_echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_type_size_t=yes
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 $as_echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20954 $as_echo "$ac_cv_type_size_t" >&6; }
20955 if test $ac_cv_type_size_t = yes; then
20959 cat >>confdefs.h <<_ACEOF
20960 #define size_t unsigned int
20965 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20966 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
20967 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20968 $as_echo_n "(cached) " >&6
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 $ac_includes_default
20980 static struct stat ac_aggr;
20981 if (ac_aggr.st_rdev)
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_cv_member_struct_stat_st_rdev=yes
21007 $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 $ac_includes_default
21020 static struct stat ac_aggr;
21021 if (sizeof ac_aggr.st_rdev)
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21034 $as_echo "$ac_try_echo") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_cv_member_struct_stat_st_rdev=yes
21047 $as_echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_member_struct_stat_st_rdev=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21059 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
21060 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define HAVE_STRUCT_STAT_ST_RDEV 1
21070 { $as_echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
21071 $as_echo_n "checking for struct ipc_perm.__key... " >&6; }
21072 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
21073 $as_echo_n "(cached) " >&6
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21082 #include <sys/types.h>
21083 #include <sys/ipc.h>
21089 static struct ipc_perm ac_aggr;
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103 $as_echo "$ac_try_echo") >&5
21104 (eval "$ac_compile") 2>conftest.er1
21106 grep -v '^ *+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } && {
21111 test -z "$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 } && test -s conftest.$ac_objext; then
21114 ac_cv_member_struct_ipc_perm___key=yes
21116 $as_echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21126 #include <sys/types.h>
21127 #include <sys/ipc.h>
21133 static struct ipc_perm ac_aggr;
21134 if (sizeof ac_aggr.__key)
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21147 $as_echo "$ac_try_echo") >&5
21148 (eval "$ac_compile") 2>conftest.er1
21150 grep -v '^ *+' conftest.er1 >conftest.err
21152 cat conftest.err >&5
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } && {
21155 test -z "$ac_c_werror_flag" ||
21156 test ! -s conftest.err
21157 } && test -s conftest.$ac_objext; then
21158 ac_cv_member_struct_ipc_perm___key=yes
21160 $as_echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ac_cv_member_struct_ipc_perm___key=no
21166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
21172 $as_echo "$ac_cv_member_struct_ipc_perm___key" >&6; }
21173 if test $ac_cv_member_struct_ipc_perm___key = yes; then
21175 cat >>confdefs.h <<\_ACEOF
21176 #define HAVE_IPC_PERM___KEY /**/
21182 { $as_echo "$as_me:$LINENO: checking for struct ipc_perm._key" >&5
21183 $as_echo_n "checking for struct ipc_perm._key... " >&6; }
21184 if test "${ac_cv_member_struct_ipc_perm__key+set}" = set; then
21185 $as_echo_n "(cached) " >&6
21187 cat >conftest.$ac_ext <<_ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21194 #include <sys/types.h>
21195 #include <sys/ipc.h>
21201 static struct ipc_perm ac_aggr;
21208 rm -f conftest.$ac_objext
21209 if { (ac_try="$ac_compile"
21210 case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21215 $as_echo "$ac_try_echo") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_cv_member_struct_ipc_perm__key=yes
21228 $as_echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 #include <sys/types.h>
21239 #include <sys/ipc.h>
21245 static struct ipc_perm ac_aggr;
21246 if (sizeof ac_aggr._key)
21252 rm -f conftest.$ac_objext
21253 if { (ac_try="$ac_compile"
21254 case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21259 $as_echo "$ac_try_echo") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest.$ac_objext; then
21270 ac_cv_member_struct_ipc_perm__key=yes
21272 $as_echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 ac_cv_member_struct_ipc_perm__key=no
21278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__key" >&5
21284 $as_echo "$ac_cv_member_struct_ipc_perm__key" >&6; }
21285 if test $ac_cv_member_struct_ipc_perm__key = yes; then
21287 cat >>confdefs.h <<\_ACEOF
21288 #define HAVE_IPC_PERM__KEY /**/
21294 { $as_echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
21295 $as_echo_n "checking for struct ipc_perm.__seq... " >&6; }
21296 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
21297 $as_echo_n "(cached) " >&6
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21306 #include <sys/types.h>
21307 #include <sys/ipc.h>
21313 static struct ipc_perm ac_aggr;
21320 rm -f conftest.$ac_objext
21321 if { (ac_try="$ac_compile"
21322 case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21327 $as_echo "$ac_try_echo") >&5
21328 (eval "$ac_compile") 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest.$ac_objext; then
21338 ac_cv_member_struct_ipc_perm___seq=yes
21340 $as_echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21350 #include <sys/types.h>
21351 #include <sys/ipc.h>
21357 static struct ipc_perm ac_aggr;
21358 if (sizeof ac_aggr.__seq)
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21371 $as_echo "$ac_try_echo") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_cv_member_struct_ipc_perm___seq=yes
21384 $as_echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_cv_member_struct_ipc_perm___seq=no
21390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
21396 $as_echo "$ac_cv_member_struct_ipc_perm___seq" >&6; }
21397 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_IPC_PERM___SEQ /**/
21406 { $as_echo "$as_me:$LINENO: checking for struct ipc_perm._seq" >&5
21407 $as_echo_n "checking for struct ipc_perm._seq... " >&6; }
21408 if test "${ac_cv_member_struct_ipc_perm__seq+set}" = set; then
21409 $as_echo_n "(cached) " >&6
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21418 #include <sys/types.h>
21419 #include <sys/ipc.h>
21425 static struct ipc_perm ac_aggr;
21432 rm -f conftest.$ac_objext
21433 if { (ac_try="$ac_compile"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21439 $as_echo "$ac_try_echo") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21442 grep -v '^ *+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21450 ac_cv_member_struct_ipc_perm__seq=yes
21452 $as_echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21462 #include <sys/types.h>
21463 #include <sys/ipc.h>
21469 static struct ipc_perm ac_aggr;
21470 if (sizeof ac_aggr._seq)
21476 rm -f conftest.$ac_objext
21477 if { (ac_try="$ac_compile"
21478 case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483 $as_echo "$ac_try_echo") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 ac_cv_member_struct_ipc_perm__seq=yes
21496 $as_echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 ac_cv_member_struct_ipc_perm__seq=no
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__seq" >&5
21508 $as_echo "$ac_cv_member_struct_ipc_perm__seq" >&6; }
21509 if test $ac_cv_member_struct_ipc_perm__seq = yes; then
21511 cat >>confdefs.h <<\_ACEOF
21512 #define HAVE_IPC_PERM__SEQ /**/
21518 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21519 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21520 if test "${ac_cv_header_time+set}" = set; then
21521 $as_echo_n "(cached) " >&6
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 #include <sys/types.h>
21530 #include <sys/time.h>
21536 if ((struct tm *) 0)
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21549 $as_echo "$ac_try_echo") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_cv_header_time=yes
21562 $as_echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_cv_header_time=no
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21571 $as_echo "$ac_cv_header_time" >&6; }
21572 if test $ac_cv_header_time = yes; then
21574 cat >>confdefs.h <<\_ACEOF
21575 #define TIME_WITH_SYS_TIME 1
21580 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21581 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21582 if test "${ac_cv_struct_tm+set}" = set; then
21583 $as_echo_n "(cached) " >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 #include <sys/types.h>
21598 int *p = &tm.tm_sec;
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611 $as_echo "$ac_try_echo") >&5
21612 (eval "$ac_compile") 2>conftest.er1
21614 grep -v '^ *+' conftest.er1 >conftest.err
21616 cat conftest.err >&5
21617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest.$ac_objext; then
21622 ac_cv_struct_tm=time.h
21624 $as_echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_cv_struct_tm=sys/time.h
21630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21633 $as_echo "$ac_cv_struct_tm" >&6; }
21634 if test $ac_cv_struct_tm = sys/time.h; then
21636 cat >>confdefs.h <<\_ACEOF
21637 #define TM_IN_SYS_TIME 1
21643 # Checks for library functions.
21645 for ac_header in unistd.h
21647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21650 $as_echo_n "checking for $ac_header... " >&6; }
21651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21652 $as_echo_n "(cached) " >&6
21654 ac_res=`eval 'as_val=${'$as_ac_Header'}
21655 $as_echo "$as_val"'`
21656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21657 $as_echo "$ac_res" >&6; }
21659 # Is the header compilable?
21660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21661 $as_echo_n "checking $ac_header usability... " >&6; }
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 $ac_includes_default
21669 #include <$ac_header>
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21678 $as_echo "$ac_try_echo") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21689 ac_header_compiler=yes
21691 $as_echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_header_compiler=no
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21699 $as_echo "$ac_header_compiler" >&6; }
21701 # Is the header present?
21702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21703 $as_echo_n "checking $ac_header presence... " >&6; }
21704 cat >conftest.$ac_ext <<_ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 #include <$ac_header>
21712 if { (ac_try="$ac_cpp conftest.$ac_ext"
21713 case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21718 $as_echo "$ac_try_echo") >&5
21719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } >/dev/null && {
21726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21729 ac_header_preproc=yes
21731 $as_echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_header_preproc=no
21737 rm -f conftest.err conftest.$ac_ext
21738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21739 $as_echo "$ac_header_preproc" >&6; }
21741 # So? What about this header?
21742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21748 ac_header_preproc=yes
21751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21764 ## ----------------------------------------------- ##
21765 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21766 ## ----------------------------------------------- ##
21768 ) | sed "s/^/$as_me: WARNING: /" >&2
21771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 $as_echo_n "checking for $ac_header... " >&6; }
21773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 $as_echo_n "(cached) " >&6
21776 eval "$as_ac_Header=\$ac_header_preproc"
21778 ac_res=`eval 'as_val=${'$as_ac_Header'}
21779 $as_echo "$as_val"'`
21780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21781 $as_echo "$ac_res" >&6; }
21784 if test `eval 'as_val=${'$as_ac_Header'}
21785 $as_echo "$as_val"'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21794 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
21795 $as_echo_n "checking for working chown... " >&6; }
21796 if test "${ac_cv_func_chown_works+set}" = set; then
21797 $as_echo_n "(cached) " >&6
21799 if test "$cross_compiling" = yes; then
21800 ac_cv_func_chown_works=no
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 $ac_includes_default
21814 char *f = "conftest.chown";
21815 struct stat before, after;
21817 if (creat (f, 0600) < 0)
21819 if (stat (f, &before) < 0)
21821 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21823 if (stat (f, &after) < 0)
21825 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>&5
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843 { (case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21848 $as_echo "$ac_try_echo") >&5
21849 (eval "$ac_try") 2>&5
21851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_func_chown_works=yes
21855 $as_echo "$as_me: program exited with status $ac_status" >&5
21856 $as_echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ( exit $ac_status )
21860 ac_cv_func_chown_works=no
21862 rm -rf conftest.dSYM
21863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21867 rm -f conftest.chown
21870 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21871 $as_echo "$ac_cv_func_chown_works" >&6; }
21872 if test $ac_cv_func_chown_works = yes; then
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_CHOWN 1
21881 for ac_header in vfork.h
21883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21886 $as_echo_n "checking for $ac_header... " >&6; }
21887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888 $as_echo_n "(cached) " >&6
21890 ac_res=`eval 'as_val=${'$as_ac_Header'}
21891 $as_echo "$as_val"'`
21892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21893 $as_echo "$ac_res" >&6; }
21895 # Is the header compilable?
21896 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21897 $as_echo_n "checking $ac_header usability... " >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 #include <$ac_header>
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914 $as_echo "$ac_try_echo") >&5
21915 (eval "$ac_compile") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest.$ac_objext; then
21925 ac_header_compiler=yes
21927 $as_echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_header_compiler=no
21933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21935 $as_echo "$ac_header_compiler" >&6; }
21937 # Is the header present?
21938 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21939 $as_echo_n "checking $ac_header presence... " >&6; }
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 #include <$ac_header>
21948 if { (ac_try="$ac_cpp conftest.$ac_ext"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21954 $as_echo "$ac_try_echo") >&5
21955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } >/dev/null && {
21962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21963 test ! -s conftest.err
21965 ac_header_preproc=yes
21967 $as_echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 ac_header_preproc=no
21973 rm -f conftest.err conftest.$ac_ext
21974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21975 $as_echo "$ac_header_preproc" >&6; }
21977 # So? What about this header?
21978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21981 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21984 ac_header_preproc=yes
21987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21988 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21990 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21992 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21994 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21998 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22000 ## ----------------------------------------------- ##
22001 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22002 ## ----------------------------------------------- ##
22004 ) | sed "s/^/$as_me: WARNING: /" >&2
22007 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22008 $as_echo_n "checking for $ac_header... " >&6; }
22009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22010 $as_echo_n "(cached) " >&6
22012 eval "$as_ac_Header=\$ac_header_preproc"
22014 ac_res=`eval 'as_val=${'$as_ac_Header'}
22015 $as_echo "$as_val"'`
22016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22017 $as_echo "$ac_res" >&6; }
22020 if test `eval 'as_val=${'$as_ac_Header'}
22021 $as_echo "$as_val"'` = yes; then
22022 cat >>confdefs.h <<_ACEOF
22023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22032 for ac_func in fork vfork
22034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22035 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22036 $as_echo_n "checking for $ac_func... " >&6; }
22037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22038 $as_echo_n "(cached) " >&6
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22048 #define $ac_func innocuous_$ac_func
22050 /* System header to define __stub macros and hopefully few prototypes,
22051 which can conflict with char $ac_func (); below.
22052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22053 <limits.h> exists even on freestanding compilers. */
22056 # include <limits.h>
22058 # include <assert.h>
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22070 /* The GNU C library defines this for functions which it implements
22071 to always fail with ENOSYS. Some functions are actually named
22072 something starting with __ and the normal name is an alias. */
22073 #if defined __stub_$ac_func || defined __stub___$ac_func
22080 return $ac_func ();
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22092 $as_echo "$ac_try_echo") >&5
22093 (eval "$ac_link") 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } && {
22100 test -z "$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22102 } && test -s conftest$ac_exeext && {
22103 test "$cross_compiling" = yes ||
22104 $as_test_x conftest$ac_exeext
22106 eval "$as_ac_var=yes"
22108 $as_echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 eval "$as_ac_var=no"
22114 rm -rf conftest.dSYM
22115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22116 conftest$ac_exeext conftest.$ac_ext
22118 ac_res=`eval 'as_val=${'$as_ac_var'}
22119 $as_echo "$as_val"'`
22120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22121 $as_echo "$ac_res" >&6; }
22122 if test `eval 'as_val=${'$as_ac_var'}
22123 $as_echo "$as_val"'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22131 if test "x$ac_cv_func_fork" = xyes; then
22132 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
22133 $as_echo_n "checking for working fork... " >&6; }
22134 if test "${ac_cv_func_fork_works+set}" = set; then
22135 $as_echo_n "(cached) " >&6
22137 if test "$cross_compiling" = yes; then
22138 ac_cv_func_fork_works=cross
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 $ac_includes_default
22151 /* By Ruediger Kuhlmann. */
22152 return fork () < 0;
22158 rm -f conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22165 $as_echo "$ac_try_echo") >&5
22166 (eval "$ac_link") 2>&5
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170 { (case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22175 $as_echo "$ac_try_echo") >&5
22176 (eval "$ac_try") 2>&5
22178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ac_cv_func_fork_works=yes
22182 $as_echo "$as_me: program exited with status $ac_status" >&5
22183 $as_echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ( exit $ac_status )
22187 ac_cv_func_fork_works=no
22189 rm -rf conftest.dSYM
22190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22195 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22196 $as_echo "$ac_cv_func_fork_works" >&6; }
22199 ac_cv_func_fork_works=$ac_cv_func_fork
22201 if test "x$ac_cv_func_fork_works" = xcross; then
22203 *-*-amigaos* | *-*-msdosdjgpp*)
22204 # Override, as these systems have only a dummy fork() stub
22205 ac_cv_func_fork_works=no
22208 ac_cv_func_fork_works=yes
22211 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22212 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22214 ac_cv_func_vfork_works=$ac_cv_func_vfork
22215 if test "x$ac_cv_func_vfork" = xyes; then
22216 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
22217 $as_echo_n "checking for working vfork... " >&6; }
22218 if test "${ac_cv_func_vfork_works+set}" = set; then
22219 $as_echo_n "(cached) " >&6
22221 if test "$cross_compiling" = yes; then
22222 ac_cv_func_vfork_works=cross
22224 cat >conftest.$ac_ext <<_ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 /* Thanks to Paul Eggert for this test. */
22231 $ac_includes_default
22232 #include <sys/wait.h>
22233 #ifdef HAVE_VFORK_H
22234 # include <vfork.h>
22236 /* On some sparc systems, changes by the child to local and incoming
22237 argument registers are propagated back to the parent. The compiler
22238 is told about this with #include <vfork.h>, but some compilers
22239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22240 static variable whose address is put into a register that is
22241 clobbered by the vfork. */
22244 sparc_address_test (int arg)
22246 sparc_address_test (arg) int arg;
22249 static pid_t child;
22267 pid_t parent = getpid ();
22270 sparc_address_test (0);
22275 /* Here is another test for sparc vfork register problems. This
22276 test uses lots of local variables, at least as many local
22277 variables as main has allocated so far including compiler
22278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22280 reuse the register of parent for one of the local variables,
22281 since it will think that parent can't possibly be used any more
22282 in this routine. Assigning to the local variable will thus
22283 munge parent in the parent process. */
22285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22287 /* Convince the compiler that p..p7 are live; otherwise, it might
22288 use the same hardware register for all 8 local variables. */
22289 if (p != p1 || p != p2 || p != p3 || p != p4
22290 || p != p5 || p != p6 || p != p7)
22293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22294 from child file descriptors. If the child closes a descriptor
22295 before it execs or exits, this munges the parent's descriptor
22296 as well. Test for this by closing stdout in the child. */
22297 _exit(close(fileno(stdout)) != 0);
22302 while (wait(&status) != child)
22305 /* Was there some problem with vforking? */
22308 /* Did the child fail? (This shouldn't happen.) */
22311 /* Did the vfork/compiler bug occur? */
22312 || parent != getpid()
22314 /* Did the file descriptor bug occur? */
22315 || fstat(fileno(stdout), &st) != 0
22320 rm -f conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327 $as_echo "$ac_try_echo") >&5
22328 (eval "$ac_link") 2>&5
22330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22332 { (case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337 $as_echo "$ac_try_echo") >&5
22338 (eval "$ac_try") 2>&5
22340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_func_vfork_works=yes
22344 $as_echo "$as_me: program exited with status $ac_status" >&5
22345 $as_echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ( exit $ac_status )
22349 ac_cv_func_vfork_works=no
22351 rm -rf conftest.dSYM
22352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22358 $as_echo "$ac_cv_func_vfork_works" >&6; }
22361 if test "x$ac_cv_func_fork_works" = xcross; then
22362 ac_cv_func_vfork_works=$ac_cv_func_vfork
22363 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22364 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22367 if test "x$ac_cv_func_vfork_works" = xyes; then
22369 cat >>confdefs.h <<\_ACEOF
22370 #define HAVE_WORKING_VFORK 1
22375 cat >>confdefs.h <<\_ACEOF
22380 if test "x$ac_cv_func_fork_works" = xyes; then
22382 cat >>confdefs.h <<\_ACEOF
22383 #define HAVE_WORKING_FORK 1
22389 for ac_header in stdlib.h
22391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22394 $as_echo_n "checking for $ac_header... " >&6; }
22395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22396 $as_echo_n "(cached) " >&6
22398 ac_res=`eval 'as_val=${'$as_ac_Header'}
22399 $as_echo "$as_val"'`
22400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22401 $as_echo "$ac_res" >&6; }
22403 # Is the header compilable?
22404 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22405 $as_echo_n "checking $ac_header usability... " >&6; }
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22412 $ac_includes_default
22413 #include <$ac_header>
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22422 $as_echo "$ac_try_echo") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_header_compiler=yes
22435 $as_echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_header_compiler=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22443 $as_echo "$ac_header_compiler" >&6; }
22445 # Is the header present?
22446 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22447 $as_echo_n "checking $ac_header presence... " >&6; }
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454 #include <$ac_header>
22456 if { (ac_try="$ac_cpp conftest.$ac_ext"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22462 $as_echo "$ac_try_echo") >&5
22463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } >/dev/null && {
22470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22473 ac_header_preproc=yes
22475 $as_echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22478 ac_header_preproc=no
22481 rm -f conftest.err conftest.$ac_ext
22482 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22483 $as_echo "$ac_header_preproc" >&6; }
22485 # So? What about this header?
22486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22489 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22491 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22492 ac_header_preproc=yes
22495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22496 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22498 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22500 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22502 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22504 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22506 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22508 ## ----------------------------------------------- ##
22509 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22510 ## ----------------------------------------------- ##
22512 ) | sed "s/^/$as_me: WARNING: /" >&2
22515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22516 $as_echo_n "checking for $ac_header... " >&6; }
22517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22518 $as_echo_n "(cached) " >&6
22520 eval "$as_ac_Header=\$ac_header_preproc"
22522 ac_res=`eval 'as_val=${'$as_ac_Header'}
22523 $as_echo "$as_val"'`
22524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22525 $as_echo "$ac_res" >&6; }
22528 if test `eval 'as_val=${'$as_ac_Header'}
22529 $as_echo "$as_val"'` = yes; then
22530 cat >>confdefs.h <<_ACEOF
22531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22538 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22539 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22540 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22541 $as_echo_n "(cached) " >&6
22543 if test "$cross_compiling" = yes; then
22544 ac_cv_func_malloc_0_nonnull=no
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22553 # include <stdlib.h>
22561 return ! malloc (0);
22566 rm -f conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>&5
22576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22583 $as_echo "$ac_try_echo") >&5
22584 (eval "$ac_try") 2>&5
22586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_cv_func_malloc_0_nonnull=yes
22590 $as_echo "$as_me: program exited with status $ac_status" >&5
22591 $as_echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ( exit $ac_status )
22595 ac_cv_func_malloc_0_nonnull=no
22597 rm -rf conftest.dSYM
22598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22603 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22604 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22605 if test $ac_cv_func_malloc_0_nonnull = yes; then
22607 cat >>confdefs.h <<\_ACEOF
22608 #define HAVE_MALLOC 1
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_MALLOC 0
22616 case " $LIBOBJS " in
22617 *" malloc.$ac_objext "* ) ;;
22618 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22623 cat >>confdefs.h <<\_ACEOF
22624 #define malloc rpl_malloc
22635 for ac_header in $ac_header_list
22637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22639 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22640 $as_echo_n "checking for $ac_header... " >&6; }
22641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22642 $as_echo_n "(cached) " >&6
22644 ac_res=`eval 'as_val=${'$as_ac_Header'}
22645 $as_echo "$as_val"'`
22646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22647 $as_echo "$ac_res" >&6; }
22649 # Is the header compilable?
22650 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22651 $as_echo_n "checking $ac_header usability... " >&6; }
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22659 #include <$ac_header>
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22668 $as_echo "$ac_try_echo") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_header_compiler=yes
22681 $as_echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_header_compiler=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22689 $as_echo "$ac_header_compiler" >&6; }
22691 # Is the header present?
22692 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22693 $as_echo_n "checking $ac_header presence... " >&6; }
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 #include <$ac_header>
22702 if { (ac_try="$ac_cpp conftest.$ac_ext"
22703 case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22708 $as_echo "$ac_try_echo") >&5
22709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22711 grep -v '^ *+' conftest.er1 >conftest.err
22713 cat conftest.err >&5
22714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } >/dev/null && {
22716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22717 test ! -s conftest.err
22719 ac_header_preproc=yes
22721 $as_echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22724 ac_header_preproc=no
22727 rm -f conftest.err conftest.$ac_ext
22728 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22729 $as_echo "$ac_header_preproc" >&6; }
22731 # So? What about this header?
22732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22735 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22738 ac_header_preproc=yes
22741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22742 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22744 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22746 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22748 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22750 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22752 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22754 ## ----------------------------------------------- ##
22755 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22756 ## ----------------------------------------------- ##
22758 ) | sed "s/^/$as_me: WARNING: /" >&2
22761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22762 $as_echo_n "checking for $ac_header... " >&6; }
22763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22764 $as_echo_n "(cached) " >&6
22766 eval "$as_ac_Header=\$ac_header_preproc"
22768 ac_res=`eval 'as_val=${'$as_ac_Header'}
22769 $as_echo "$as_val"'`
22770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22771 $as_echo "$ac_res" >&6; }
22774 if test `eval 'as_val=${'$as_ac_Header'}
22775 $as_echo "$as_val"'` = yes; then
22776 cat >>confdefs.h <<_ACEOF
22777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22792 for ac_func in $ac_func_list
22794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22796 $as_echo_n "checking for $ac_func... " >&6; }
22797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22798 $as_echo_n "(cached) " >&6
22800 cat >conftest.$ac_ext <<_ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22808 #define $ac_func innocuous_$ac_func
22810 /* System header to define __stub macros and hopefully few prototypes,
22811 which can conflict with char $ac_func (); below.
22812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22813 <limits.h> exists even on freestanding compilers. */
22816 # include <limits.h>
22818 # include <assert.h>
22823 /* Override any GCC internal prototype to avoid an error.
22824 Use char because int might match the return type of a GCC
22825 builtin and then its argument prototype would still apply. */
22830 /* The GNU C library defines this for functions which it implements
22831 to always fail with ENOSYS. Some functions are actually named
22832 something starting with __ and the normal name is an alias. */
22833 #if defined __stub_$ac_func || defined __stub___$ac_func
22840 return $ac_func ();
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22852 $as_echo "$ac_try_echo") >&5
22853 (eval "$ac_link") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest$ac_exeext && {
22863 test "$cross_compiling" = yes ||
22864 $as_test_x conftest$ac_exeext
22866 eval "$as_ac_var=yes"
22868 $as_echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 eval "$as_ac_var=no"
22874 rm -rf conftest.dSYM
22875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22876 conftest$ac_exeext conftest.$ac_ext
22878 ac_res=`eval 'as_val=${'$as_ac_var'}
22879 $as_echo "$as_val"'`
22880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22881 $as_echo "$ac_res" >&6; }
22882 if test `eval 'as_val=${'$as_ac_var'}
22883 $as_echo "$as_val"'` = yes; then
22884 cat >>confdefs.h <<_ACEOF
22885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22907 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
22908 $as_echo_n "checking for working mktime... " >&6; }
22909 if test "${ac_cv_func_working_mktime+set}" = set; then
22910 $as_echo_n "(cached) " >&6
22912 if test "$cross_compiling" = yes; then
22913 ac_cv_func_working_mktime=no
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 /* Test program from Paul Eggert and Tony Leneis. */
22922 #ifdef TIME_WITH_SYS_TIME
22923 # include <sys/time.h>
22926 # ifdef HAVE_SYS_TIME_H
22927 # include <sys/time.h>
22933 #include <limits.h>
22934 #include <stdlib.h>
22936 #ifdef HAVE_UNISTD_H
22937 # include <unistd.h>
22941 # define alarm(X) /* empty */
22944 /* Work around redefinition to rpl_putenv by other config tests. */
22947 static time_t time_t_max;
22948 static time_t time_t_min;
22950 /* Values we'll use to set the TZ environment variable. */
22951 static char *tz_strings[] = {
22952 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22953 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22955 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22957 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22958 Based on a problem report from Andreas Jaeger. */
22960 spring_forward_gap ()
22962 /* glibc (up to about 1998-10-07) failed this test. */
22965 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22966 instead of "TZ=America/Vancouver" in order to detect the bug even
22967 on systems that don't support the Olson extension, or don't have the
22968 full zoneinfo tables installed. */
22969 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22978 return mktime (&tm) != (time_t) -1;
22986 return ! (lt = localtime (&now)) || mktime (lt) == now;
22993 return (mktime_test1 (now)
22994 && mktime_test1 ((time_t) (time_t_max - now))
22995 && mktime_test1 ((time_t) (time_t_min + now)));
23001 /* Based on code from Ariel Faigon. */
23011 return tm.tm_mon == 2 && tm.tm_mday == 31;
23020 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23021 now = mktime (&tm);
23022 if (now != (time_t) -1)
23024 struct tm *lt = localtime (&now);
23026 && lt->tm_year == tm.tm_year
23027 && lt->tm_mon == tm.tm_mon
23028 && lt->tm_mday == tm.tm_mday
23029 && lt->tm_hour == tm.tm_hour
23030 && lt->tm_min == tm.tm_min
23031 && lt->tm_sec == tm.tm_sec
23032 && lt->tm_yday == tm.tm_yday
23033 && lt->tm_wday == tm.tm_wday
23034 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23035 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23044 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23045 ignoring leap seconds. */
23046 unsigned long int answer = 2527315200UL;
23050 tm.tm_year = 2050 - 1900;
23053 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23056 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23057 instead of "TZ=America/Vancouver" in order to detect the bug even
23058 on systems that don't support the Olson extension, or don't have the
23059 full zoneinfo tables installed. */
23060 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23064 /* Check that the result is either a failure, or close enough
23065 to the correct answer that we can assume the discrepancy is
23066 due to leap seconds. */
23067 return (t == (time_t) -1
23068 || (0 < t && answer - 120 <= t && t <= answer + 120));
23077 /* This test makes some buggy mktime implementations loop.
23078 Give up after 60 seconds; a mktime slower than that
23079 isn't worth using anyway. */
23084 t = (time_t_max << 1) + 1;
23085 if (t <= time_t_max)
23089 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
23091 delta = time_t_max / 997; /* a suitable prime number */
23092 for (i = 0; i < N_STRINGS; i++)
23095 putenv (tz_strings[i]);
23097 for (t = 0; t <= time_t_max - delta; t += delta)
23098 if (! mktime_test (t))
23100 if (! (mktime_test ((time_t) 1)
23101 && mktime_test ((time_t) (60 * 60))
23102 && mktime_test ((time_t) (60 * 60 * 24))))
23105 for (j = 1; ; j <<= 1)
23106 if (! bigtime_test (j))
23108 else if (INT_MAX / 2 < j)
23110 if (! bigtime_test (INT_MAX))
23113 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
23116 rm -f conftest$ac_exeext
23117 if { (ac_try="$ac_link"
23118 case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124 (eval "$ac_link") 2>&5
23126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23128 { (case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23133 $as_echo "$ac_try_echo") >&5
23134 (eval "$ac_try") 2>&5
23136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_cv_func_working_mktime=yes
23140 $as_echo "$as_me: program exited with status $ac_status" >&5
23141 $as_echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 ( exit $ac_status )
23145 ac_cv_func_working_mktime=no
23147 rm -rf conftest.dSYM
23148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23153 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
23154 $as_echo "$ac_cv_func_working_mktime" >&6; }
23155 if test $ac_cv_func_working_mktime = no; then
23156 case " $LIBOBJS " in
23157 *" mktime.$ac_objext "* ) ;;
23158 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
23164 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23165 $as_echo_n "checking return type of signal handlers... " >&6; }
23166 if test "${ac_cv_type_signal+set}" = set; then
23167 $as_echo_n "(cached) " >&6
23169 cat >conftest.$ac_ext <<_ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23175 #include <sys/types.h>
23176 #include <signal.h>
23181 return *(signal (0, 0)) (0) == 1;
23186 rm -f conftest.$ac_objext
23187 if { (ac_try="$ac_compile"
23188 case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23193 $as_echo "$ac_try_echo") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23196 grep -v '^ *+' conftest.er1 >conftest.err
23198 cat conftest.err >&5
23199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23204 ac_cv_type_signal=int
23206 $as_echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 ac_cv_type_signal=void
23212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23215 $as_echo "$ac_cv_type_signal" >&6; }
23217 cat >>confdefs.h <<_ACEOF
23218 #define RETSIGTYPE $ac_cv_type_signal
23222 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23223 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
23224 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23225 $as_echo_n "(cached) " >&6
23227 rm -f conftest.sym conftest.file
23228 echo >conftest.file
23229 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23230 if test "$cross_compiling" = yes; then
23231 ac_cv_func_lstat_dereferences_slashed_symlink=no
23233 cat >conftest.$ac_ext <<_ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23239 $ac_includes_default
23244 /* Linux will dereference the symlink and fail.
23245 That is better in the sense that it means we will not
23246 have to compile and use the lstat wrapper. */
23247 return lstat ("conftest.sym/", &sbuf) == 0;
23252 rm -f conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259 $as_echo "$ac_try_echo") >&5
23260 (eval "$ac_link") 2>&5
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264 { (case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23269 $as_echo "$ac_try_echo") >&5
23270 (eval "$ac_try") 2>&5
23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 ac_cv_func_lstat_dereferences_slashed_symlink=yes
23276 $as_echo "$as_me: program exited with status $ac_status" >&5
23277 $as_echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23280 ( exit $ac_status )
23281 ac_cv_func_lstat_dereferences_slashed_symlink=no
23283 rm -rf conftest.dSYM
23284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23289 # If the `ln -s' command failed, then we probably don't even
23290 # have an lstat function.
23291 ac_cv_func_lstat_dereferences_slashed_symlink=no
23293 rm -f conftest.sym conftest.file
23296 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23297 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23299 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23301 cat >>confdefs.h <<_ACEOF
23302 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23306 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23307 case " $LIBOBJS " in
23308 *" lstat.$ac_objext "* ) ;;
23309 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
23315 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23316 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
23317 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23318 $as_echo_n "(cached) " >&6
23320 if test "$cross_compiling" = yes; then
23321 ac_cv_func_stat_empty_string_bug=yes
23323 cat >conftest.$ac_ext <<_ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23329 $ac_includes_default
23334 return stat ("", &sbuf) == 0;
23339 rm -f conftest$ac_exeext
23340 if { (ac_try="$ac_link"
23341 case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346 $as_echo "$ac_try_echo") >&5
23347 (eval "$ac_link") 2>&5
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23351 { (case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23356 $as_echo "$ac_try_echo") >&5
23357 (eval "$ac_try") 2>&5
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361 ac_cv_func_stat_empty_string_bug=no
23363 $as_echo "$as_me: program exited with status $ac_status" >&5
23364 $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23367 ( exit $ac_status )
23368 ac_cv_func_stat_empty_string_bug=yes
23370 rm -rf conftest.dSYM
23371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23376 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23377 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
23378 if test $ac_cv_func_stat_empty_string_bug = yes; then
23379 case " $LIBOBJS " in
23380 *" stat.$ac_objext "* ) ;;
23381 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
23386 cat >>confdefs.h <<_ACEOF
23387 #define HAVE_STAT_EMPTY_STRING_BUG 1
23393 for ac_func in strftime
23395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23397 $as_echo_n "checking for $ac_func... " >&6; }
23398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23399 $as_echo_n "(cached) " >&6
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23409 #define $ac_func innocuous_$ac_func
23411 /* System header to define __stub macros and hopefully few prototypes,
23412 which can conflict with char $ac_func (); below.
23413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23414 <limits.h> exists even on freestanding compilers. */
23417 # include <limits.h>
23419 # include <assert.h>
23424 /* Override any GCC internal prototype to avoid an error.
23425 Use char because int might match the return type of a GCC
23426 builtin and then its argument prototype would still apply. */
23431 /* The GNU C library defines this for functions which it implements
23432 to always fail with ENOSYS. Some functions are actually named
23433 something starting with __ and the normal name is an alias. */
23434 #if defined __stub_$ac_func || defined __stub___$ac_func
23441 return $ac_func ();
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (ac_try="$ac_link"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23453 $as_echo "$ac_try_echo") >&5
23454 (eval "$ac_link") 2>conftest.er1
23456 grep -v '^ *+' conftest.er1 >conftest.err
23458 cat conftest.err >&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext && {
23464 test "$cross_compiling" = yes ||
23465 $as_test_x conftest$ac_exeext
23467 eval "$as_ac_var=yes"
23469 $as_echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23472 eval "$as_ac_var=no"
23475 rm -rf conftest.dSYM
23476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23477 conftest$ac_exeext conftest.$ac_ext
23479 ac_res=`eval 'as_val=${'$as_ac_var'}
23480 $as_echo "$as_val"'`
23481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23482 $as_echo "$ac_res" >&6; }
23483 if test `eval 'as_val=${'$as_ac_var'}
23484 $as_echo "$as_val"'` = yes; then
23485 cat >>confdefs.h <<_ACEOF
23486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23490 # strftime is in -lintl on SCO UNIX.
23491 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23492 $as_echo_n "checking for strftime in -lintl... " >&6; }
23493 if test "${ac_cv_lib_intl_strftime+set}" = set; then
23494 $as_echo_n "(cached) " >&6
23496 ac_check_lib_save_LIBS=$LIBS
23497 LIBS="-lintl $LIBS"
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23505 /* Override any GCC internal prototype to avoid an error.
23506 Use char because int might match the return type of a GCC
23507 builtin and then its argument prototype would still apply. */
23515 return strftime ();
23520 rm -f conftest.$ac_objext conftest$ac_exeext
23521 if { (ac_try="$ac_link"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23527 $as_echo "$ac_try_echo") >&5
23528 (eval "$ac_link") 2>conftest.er1
23530 grep -v '^ *+' conftest.er1 >conftest.err
23532 cat conftest.err >&5
23533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest$ac_exeext && {
23538 test "$cross_compiling" = yes ||
23539 $as_test_x conftest$ac_exeext
23541 ac_cv_lib_intl_strftime=yes
23543 $as_echo "$as_me: failed program was:" >&5
23544 sed 's/^/| /' conftest.$ac_ext >&5
23546 ac_cv_lib_intl_strftime=no
23549 rm -rf conftest.dSYM
23550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23551 conftest$ac_exeext conftest.$ac_ext
23552 LIBS=$ac_check_lib_save_LIBS
23554 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23555 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23556 if test $ac_cv_lib_intl_strftime = yes; then
23557 cat >>confdefs.h <<\_ACEOF
23558 #define HAVE_STRFTIME 1
23561 LIBS="-lintl $LIBS"
23582 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strlcpy strrchr strstr strtol strtoul pthread_mutex_lock
23584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23585 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23586 $as_echo_n "checking for $ac_func... " >&6; }
23587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23588 $as_echo_n "(cached) " >&6
23590 cat >conftest.$ac_ext <<_ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h. */
23596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23598 #define $ac_func innocuous_$ac_func
23600 /* System header to define __stub macros and hopefully few prototypes,
23601 which can conflict with char $ac_func (); below.
23602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23603 <limits.h> exists even on freestanding compilers. */
23606 # include <limits.h>
23608 # include <assert.h>
23613 /* Override any GCC internal prototype to avoid an error.
23614 Use char because int might match the return type of a GCC
23615 builtin and then its argument prototype would still apply. */
23620 /* The GNU C library defines this for functions which it implements
23621 to always fail with ENOSYS. Some functions are actually named
23622 something starting with __ and the normal name is an alias. */
23623 #if defined __stub_$ac_func || defined __stub___$ac_func
23630 return $ac_func ();
23635 rm -f conftest.$ac_objext conftest$ac_exeext
23636 if { (ac_try="$ac_link"
23637 case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642 $as_echo "$ac_try_echo") >&5
23643 (eval "$ac_link") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext && {
23653 test "$cross_compiling" = yes ||
23654 $as_test_x conftest$ac_exeext
23656 eval "$as_ac_var=yes"
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23661 eval "$as_ac_var=no"
23664 rm -rf conftest.dSYM
23665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23666 conftest$ac_exeext conftest.$ac_ext
23668 ac_res=`eval 'as_val=${'$as_ac_var'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23671 $as_echo "$ac_res" >&6; }
23672 if test `eval 'as_val=${'$as_ac_var'}
23673 $as_echo "$as_val"'` = yes; then
23674 cat >>confdefs.h <<_ACEOF
23675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23682 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
23683 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
23684 # all of them, and are necessary for OpenBSM.
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23692 #include <sys/queue.h>
23700 #error LIST_FIRST missing
23702 #ifndef TAILQ_FOREACH_SAFE
23703 #error TAILQ_FOREACH_SAFE
23710 rm -f conftest.$ac_objext conftest$ac_exeext
23711 if { (ac_try="$ac_link"
23712 case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23717 $as_echo "$ac_try_echo") >&5
23718 (eval "$ac_link") 2>conftest.er1
23720 grep -v '^ *+' conftest.er1 >conftest.err
23722 cat conftest.err >&5
23723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest$ac_exeext && {
23728 test "$cross_compiling" = yes ||
23729 $as_test_x conftest$ac_exeext
23733 cat >>confdefs.h <<\_ACEOF
23734 #define HAVE_FULL_QUEUE_H /**/
23739 $as_echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23745 rm -rf conftest.dSYM
23746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23747 conftest$ac_exeext conftest.$ac_ext
23749 # Systems may not define key audit system calls, in which case libbsm cannot
23750 # depend on them or it will generate link-time or run-time errors. Test for
23752 cat >conftest.$ac_ext <<_ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h. */
23759 #include <stddef.h>
23761 extern int auditon(int, void *, int);
23769 err = auditon(0, NULL, 0);
23775 rm -f conftest.$ac_objext conftest$ac_exeext
23776 if { (ac_try="$ac_link"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782 $as_echo "$ac_try_echo") >&5
23783 (eval "$ac_link") 2>conftest.er1
23785 grep -v '^ *+' conftest.er1 >conftest.err
23787 cat conftest.err >&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest$ac_exeext && {
23793 test "$cross_compiling" = yes ||
23794 $as_test_x conftest$ac_exeext
23798 cat >>confdefs.h <<\_ACEOF
23799 #define HAVE_AUDIT_SYSCALLS /**/
23802 have_audit_syscalls=true
23805 $as_echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23809 have_audit_syscalls=false
23813 rm -rf conftest.dSYM
23814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23815 conftest$ac_exeext conftest.$ac_ext
23816 if $have_audit_syscalls; then
23817 HAVE_AUDIT_SYSCALLS_TRUE=
23818 HAVE_AUDIT_SYSCALLS_FALSE='#'
23820 HAVE_AUDIT_SYSCALLS_TRUE='#'
23821 HAVE_AUDIT_SYSCALLS_FALSE=
23826 # There are a wide variety of endian macros and functions in the wild; we try
23827 # to use the native support if it defines be32enc(), but otherwise have to
23830 cat >conftest.$ac_ext <<_ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23837 #include <sys/endian.h>
23838 #include <stdlib.h>
23850 rm -f conftest.$ac_objext conftest$ac_exeext
23851 if { (ac_try="$ac_link"
23852 case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23857 $as_echo "$ac_try_echo") >&5
23858 (eval "$ac_link") 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest$ac_exeext && {
23868 test "$cross_compiling" = yes ||
23869 $as_test_x conftest$ac_exeext
23873 cat >>confdefs.h <<\_ACEOF
23874 #define HAVE_BE32ENC /**/
23879 $as_echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23885 rm -rf conftest.dSYM
23886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887 conftest$ac_exeext conftest.$ac_ext
23889 # Check to see if Mach IPC is used for trigger messages. If so, use Mach IPC
23890 # instead of the default for sending trigger messages to the audit components.
23891 { $as_echo "$as_me:$LINENO: checking for /usr/include/mach/audit_triggers.defs" >&5
23892 $as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
23893 if test "${ac_cv_file__usr_include_mach_audit_triggers_defs+set}" = set; then
23894 $as_echo_n "(cached) " >&6
23896 test "$cross_compiling" = yes &&
23897 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23898 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23899 { (exit 1); exit 1; }; }
23900 if test -r "/usr/include/mach/audit_triggers.defs"; then
23901 ac_cv_file__usr_include_mach_audit_triggers_defs=yes
23903 ac_cv_file__usr_include_mach_audit_triggers_defs=no
23906 { $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
23907 $as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
23908 if test $ac_cv_file__usr_include_mach_audit_triggers_defs = yes; then
23911 cat >>confdefs.h <<\_ACEOF
23912 #define USE_MACH_IPC /**/
23923 if $use_mach_ipc; then
23925 USE_MACH_IPC_FALSE='#'
23927 USE_MACH_IPC_TRUE='#'
23928 USE_MACH_IPC_FALSE=
23932 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"
23935 cat >confcache <<\_ACEOF
23936 # This file is a shell script that caches the results of configure
23937 # tests run on this system so they can be shared between configure
23938 # scripts and configure runs, see configure's option --config-cache.
23939 # It is not useful on other systems. If it contains results you don't
23940 # want to keep, you may remove or edit it.
23942 # config.status only pays attention to the cache file if you give it
23943 # the --recheck option to rerun configure.
23945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23947 # following values.
23951 # The following way of writing the cache mishandles newlines in values,
23952 # but we know of no workaround that is simple, portable, and efficient.
23953 # So, we kill variables containing newlines.
23954 # Ultrix sh set writes to stderr and can't be redirected directly,
23955 # and sets the high bit in the cache file unless we assign to the vars.
23957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23958 eval ac_val=\$$ac_var
23962 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23963 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23966 _ | IFS | as_nl) ;; #(
23967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23968 *) $as_unset $ac_var ;;
23974 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23975 *${as_nl}ac_space=\ *)
23976 # `set' does not quote correctly, so add quotes (double-quote
23977 # substitution turns \\\\ into \\, and sed turns \\ into \).
23980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23983 # `set' quotes correctly as required by POSIX, so do not add quotes.
23984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23995 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23997 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23998 if test -w "$cache_file"; then
23999 test "x$cache_file" != "x/dev/null" &&
24000 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24001 $as_echo "$as_me: updating cache $cache_file" >&6;}
24002 cat confcache >$cache_file
24004 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24005 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24011 # Let make expand exec_prefix.
24012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24014 DEFS=-DHAVE_CONFIG_H
24018 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24019 # 1. Remove the extension, and $U if already installed.
24020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24023 # will be set to the directory where LIBOBJS objects are built.
24024 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24025 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24027 LIBOBJS=$ac_libobjs
24029 LTLIBOBJS=$ac_ltlibobjs
24032 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24033 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24034 Usually this means the macro was only invoked conditionally." >&5
24035 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24036 Usually this means the macro was only invoked conditionally." >&2;}
24037 { (exit 1); exit 1; }; }
24039 if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
24040 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
24041 Usually this means the macro was only invoked conditionally." >&5
24042 $as_echo "$as_me: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
24043 Usually this means the macro was only invoked conditionally." >&2;}
24044 { (exit 1); exit 1; }; }
24046 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24047 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24048 Usually this means the macro was only invoked conditionally." >&5
24049 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24050 Usually this means the macro was only invoked conditionally." >&2;}
24051 { (exit 1); exit 1; }; }
24053 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24054 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24055 Usually this means the macro was only invoked conditionally." >&5
24056 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24057 Usually this means the macro was only invoked conditionally." >&2;}
24058 { (exit 1); exit 1; }; }
24060 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24061 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24062 Usually this means the macro was only invoked conditionally." >&5
24063 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24064 Usually this means the macro was only invoked conditionally." >&2;}
24065 { (exit 1); exit 1; }; }
24067 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
24068 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
24069 Usually this means the macro was only invoked conditionally." >&5
24070 $as_echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
24071 Usually this means the macro was only invoked conditionally." >&2;}
24072 { (exit 1); exit 1; }; }
24074 if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
24075 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_MACH_IPC\" was never defined.
24076 Usually this means the macro was only invoked conditionally." >&5
24077 $as_echo "$as_me: error: conditional \"USE_MACH_IPC\" was never defined.
24078 Usually this means the macro was only invoked conditionally." >&2;}
24079 { (exit 1); exit 1; }; }
24082 : ${CONFIG_STATUS=./config.status}
24084 ac_clean_files_save=$ac_clean_files
24085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24086 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24088 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24090 # Generated by $as_me.
24091 # Run this file to recreate the current configuration.
24092 # Compiler output produced by configure, useful for debugging
24093 # configure, is in config.log if it exists.
24096 ac_cs_recheck=false
24098 SHELL=\${CONFIG_SHELL-$SHELL}
24101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24102 ## --------------------- ##
24103 ## M4sh Initialization. ##
24104 ## --------------------- ##
24106 # Be more Bourne compatible
24107 DUALCASE=1; export DUALCASE # for MKS sh
24108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24112 # is contrary to our usage. Disable this feature.
24113 alias -g '${1+"$@"}'='"$@"'
24114 setopt NO_GLOB_SUBST
24116 case `(set -o) 2>/dev/null` in
24117 *posix*) set -o posix ;;
24126 # Avoid depending upon Character Ranges.
24127 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24128 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24129 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24130 as_cr_digits='0123456789'
24131 as_cr_alnum=$as_cr_Letters$as_cr_digits
24136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24140 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24141 as_echo='printf %s\n'
24142 as_echo_n='printf %s'
24144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24146 as_echo_n='/usr/ucb/echo -n'
24148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24149 as_echo_n_body='eval
24153 expr "X$arg" : "X\\(.*\\)$as_nl";
24154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24158 export as_echo_n_body
24159 as_echo_n='sh -c $as_echo_n_body as_echo'
24161 export as_echo_body
24162 as_echo='sh -c $as_echo_body as_echo'
24165 # The user is always right.
24166 if test "${PATH_SEPARATOR+set}" != set; then
24168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24174 # Support unset when possible.
24175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24183 # We need space, tab and new line, in precisely that order. Quoting is
24184 # there to prevent editors from complaining about space-tab.
24185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24186 # splitting by setting IFS to empty value.)
24189 # Find who we are. Look in the path if we contain no directory separator.
24191 *[\\/]* ) as_myself=$0 ;;
24192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24193 for as_dir in $PATH
24196 test -z "$as_dir" && as_dir=.
24197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24203 # We did not find ourselves, most probably we were run as `sh COMMAND'
24204 # in which case we are not to be found in the path.
24205 if test "x$as_myself" = x; then
24208 if test ! -f "$as_myself"; then
24209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24210 { (exit 1); exit 1; }
24213 # Work around bugs in pre-3.0 UWIN ksh.
24214 for as_var in ENV MAIL MAILPATH
24215 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24227 # Required to use basename.
24228 if expr a : '\(a\)' >/dev/null 2>&1 &&
24229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24236 as_basename=basename
24242 # Name of the executable.
24243 as_me=`$as_basename -- "$0" ||
24244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24245 X"$0" : 'X\(//\)$' \| \
24246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24248 sed '/^.*\/\([^/][^/]*\)\/*$/{
24267 as_lineno_1=$LINENO
24268 as_lineno_2=$LINENO
24269 test "x$as_lineno_1" != "x$as_lineno_2" &&
24270 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24273 # uniformly replaced by the line number. The first 'sed' inserts a
24274 # line-number line after each line using $LINENO; the second 'sed'
24275 # does the real work. The second script uses 'N' to pair each
24276 # line-number line with the line containing $LINENO, and appends
24277 # trailing '-' during substitution so that $LINENO is not a special
24278 # case at line end.
24279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24280 # scripts with optimization help from Paolo Bonzini. Blame Lee
24281 # E. McMahon (1931-1989) for sed's syntax. :-)
24293 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24296 ' >$as_me.lineno &&
24297 chmod +x "$as_me.lineno" ||
24298 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24299 { (exit 1); exit 1; }; }
24301 # Don't try to exec as it changes $[0], causing all sort of problems
24302 # (the dirname of $[0] is not the place where we might find the
24303 # original and so on. Autoconf is especially sensitive to this).
24304 . "./$as_me.lineno"
24305 # Exit status is that of the last command.
24310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24316 ECHO_C= ECHO_N= ECHO_T=
24317 case `echo -n x` in
24319 case `echo 'x\c'` in
24320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24326 if expr a : '\(a\)' >/dev/null 2>&1 &&
24327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24333 rm -f conf$$ conf$$.exe conf$$.file
24334 if test -d conf$$.dir; then
24335 rm -f conf$$.dir/conf$$.file
24338 mkdir conf$$.dir 2>/dev/null
24340 if (echo >conf$$.file) 2>/dev/null; then
24341 if ln -s conf$$.file conf$$ 2>/dev/null; then
24343 # ... but there are two gotchas:
24344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24346 # In both cases, we have to default to `cp -p'.
24347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24349 elif ln conf$$.file conf$$ 2>/dev/null; then
24357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24358 rmdir conf$$.dir 2>/dev/null
24360 if mkdir -p . 2>/dev/null; then
24363 test -d ./-p && rmdir ./-p
24367 if test -x / >/dev/null 2>&1; then
24368 as_test_x='test -x'
24370 if ls -dL / >/dev/null 2>&1; then
24377 if test -d "$1"; then
24383 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24384 ???[sx]*):;;*)false;;esac;fi
24388 as_executable_p=$as_test_x
24390 # Sed expression to map a string onto a valid CPP name.
24391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24393 # Sed expression to map a string onto a valid variable name.
24394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24399 # Save the log message, to keep $[0] and so on meaningful, and to
24400 # report actual input values of CONFIG_FILES etc. instead of their
24401 # values after options handling.
24403 This file was extended by OpenBSM $as_me 1.1p2, which was
24404 generated by GNU Autoconf 2.62. Invocation command line was
24406 CONFIG_FILES = $CONFIG_FILES
24407 CONFIG_HEADERS = $CONFIG_HEADERS
24408 CONFIG_LINKS = $CONFIG_LINKS
24409 CONFIG_COMMANDS = $CONFIG_COMMANDS
24412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24418 # Files that config.status was made for.
24419 config_files="$ac_config_files"
24420 config_headers="$ac_config_headers"
24421 config_commands="$ac_config_commands"
24425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24427 \`$as_me' instantiates files from templates according to the
24428 current configuration.
24430 Usage: $0 [OPTIONS] [FILE]...
24432 -h, --help print this help, then exit
24433 -V, --version print version number and configuration settings, then exit
24434 -q, --quiet do not print progress messages
24435 -d, --debug don't remove temporary files
24436 --recheck update $as_me by reconfiguring in the same conditions
24437 --file=FILE[:TEMPLATE]
24438 instantiate the configuration file FILE
24439 --header=FILE[:TEMPLATE]
24440 instantiate the configuration header FILE
24442 Configuration files:
24445 Configuration headers:
24448 Configuration commands:
24451 Report bugs to <bug-autoconf@gnu.org>."
24454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24456 OpenBSM config.status 1.1p2
24457 configured by $0, generated by GNU Autoconf 2.62,
24458 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24460 Copyright (C) 2008 Free Software Foundation, Inc.
24461 This config.status script is free software; the Free Software Foundation
24462 gives unlimited permission to copy, distribute and modify it."
24469 test -n "\$AWK" || AWK=awk
24472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24473 # The default lists apply if the user does not specify any file.
24479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24491 # Handling of the options.
24492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24495 $as_echo "$ac_cs_version"; exit ;;
24496 --debug | --debu | --deb | --de | --d | -d )
24498 --file | --fil | --fi | --f )
24501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24503 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24504 ac_need_defaults=false;;
24505 --header | --heade | --head | --hea )
24508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24510 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24511 ac_need_defaults=false;;
24513 # Conflict between --help and --header
24514 { $as_echo "$as_me: error: ambiguous option: $1
24515 Try \`$0 --help' for more information." >&2
24516 { (exit 1); exit 1; }; };;
24517 --help | --hel | -h )
24518 $as_echo "$ac_cs_usage"; exit ;;
24519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24523 # This is an error.
24524 -*) { $as_echo "$as_me: error: unrecognized option: $1
24525 Try \`$0 --help' for more information." >&2
24526 { (exit 1); exit 1; }; } ;;
24528 *) ac_config_targets="$ac_config_targets $1"
24529 ac_need_defaults=false ;;
24535 ac_configure_extra_args=
24537 if $ac_cs_silent; then
24539 ac_configure_extra_args="$ac_configure_extra_args --silent"
24543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24544 if \$ac_cs_recheck; then
24545 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24548 CONFIG_SHELL='$SHELL'
24549 export CONFIG_SHELL
24554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24559 ## Running $as_me. ##
24565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24569 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24575 # Handling of arguments.
24576 for ac_config_target in $ac_config_targets
24578 case $ac_config_target in
24579 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
24580 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24581 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24582 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
24583 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
24584 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
24585 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
24586 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
24587 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
24588 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
24589 "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
24590 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
24591 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24592 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
24593 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24594 "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
24595 "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
24596 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24597 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
24598 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24600 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24601 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24602 { (exit 1); exit 1; }; };;
24607 # If the user did not use the arguments to specify the items to instantiate,
24608 # then the envvar interface is used. Set only those that are not.
24609 # We use the long form for the default assignment because of an extremely
24610 # bizarre bug on SunOS 4.1.3.
24611 if $ac_need_defaults; then
24612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24617 # Have a temporary directory for convenience. Make it in the build tree
24618 # simply because there is no reason against having it here, and in addition,
24619 # creating and moving files from /tmp can sometimes cause problems.
24620 # Hook for its removal unless debugging.
24621 # Note that there is a small window in which the directory will not be cleaned:
24622 # after its creation but before its name has been assigned to `$tmp'.
24626 trap 'exit_status=$?
24627 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24629 trap '{ (exit 1); exit 1; }' 1 2 13 15
24631 # Create a (secure) tmp directory for tmp files.
24634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24635 test -n "$tmp" && test -d "$tmp"
24638 tmp=./conf$$-$RANDOM
24639 (umask 077 && mkdir "$tmp")
24642 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24643 { (exit 1); exit 1; }
24646 # Set up the scripts for CONFIG_FILES section.
24647 # No need to generate them if there are no CONFIG_FILES.
24648 # This happens for instance with `./config.status config.h'.
24649 if test -n "$CONFIG_FILES"; then
24653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24657 ac_cs_awk_cr=$ac_cr
24660 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24665 echo "cat >conf$$subs.awk <<_ACEOF" &&
24666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24668 } >conf$$subs.sh ||
24669 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24670 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24671 { (exit 1); exit 1; }; }
24672 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24674 for ac_last_try in false false false false false :; do
24675 . ./conf$$subs.sh ||
24676 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24677 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24678 { (exit 1); exit 1; }; }
24680 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
24682 elif $ac_last_try; then
24683 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24684 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24685 { (exit 1); exit 1; }; }
24687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24690 rm -f conf$$subs.sh
24692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24693 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24697 s/^/S["/; s/!.*/"]=/
24707 s/\(.\{148\}\).*/\1/
24709 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24721 s/\(.\{148\}\).*/\1/
24723 s/["\\]/\\&/g; s/^/"/; s/$/"/
24727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24732 ' <conf$$subs.awk | sed '
24737 ' >>$CONFIG_STATUS || ac_write_fail=1
24738 rm -f conf$$subs.awk
24739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24741 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24742 for (key in S) S_is_set[key] = 1
24748 nfields = split(line, field, "@")
24750 len = length(field[1])
24751 for (i = 2; i < nfields; i++) {
24753 keylen = length(key)
24754 if (S_is_set[key]) {
24756 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24757 len += length(value) + length(field[++i])
24768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24769 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24770 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24773 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24774 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24775 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
24776 { (exit 1); exit 1; }; }
24779 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24780 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24781 # trailing colons and then remove the whole line if VPATH becomes empty
24782 # (actually we leave an empty line to preserve line numbers).
24783 if test "x$srcdir" = x.; then
24784 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24785 s/:*\$(srcdir):*/:/
24786 s/:*\${srcdir}:*/:/
24788 s/^\([^=]*=[ ]*\):*/\1/
24794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24795 fi # test -n "$CONFIG_FILES"
24797 # Set up the scripts for CONFIG_HEADERS section.
24798 # No need to generate them if there are no CONFIG_HEADERS.
24799 # This happens for instance with `./config.status Makefile'.
24800 if test -n "$CONFIG_HEADERS"; then
24801 cat >"$tmp/defines.awk" <<\_ACAWK ||
24805 # Transform confdefs.h into an awk script `defines.awk', embedded as
24806 # here-document in config.status, that substitutes the proper values into
24807 # config.h.in to produce config.h.
24809 # Create a delimiter string that does not exist in confdefs.h, to ease
24810 # handling of long lines.
24812 for ac_last_try in false false :; do
24813 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24814 if test -z "$ac_t"; then
24816 elif $ac_last_try; then
24817 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24818 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24819 { (exit 1); exit 1; }; }
24821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24825 # For the awk script, D is an array of macro values keyed by name,
24826 # likewise P contains macro parameters if any. Preserve backslash
24827 # newline sequences.
24829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24831 s/.\{148\}/&'"$ac_delim"'/g
24834 s/^[ ]*#[ ]*define[ ][ ]*/ /
24841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24848 D["\1"]=" \3\\\\\\n"\\/p
24850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24855 s/.\{148\}/&'"$ac_delim"'/g
24860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24865 ' <confdefs.h | sed '
24866 s/'"$ac_delim"'/"\\\
24867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24870 for (key in D) D_is_set[key] = 1
24873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24875 split(line, arg, " ")
24876 if (arg[1] == "#") {
24880 defundef = substr(arg[1], 2)
24883 split(mac1, mac2, "(") #)
24885 if (D_is_set[macro]) {
24886 # Preserve the white space surrounding the "#".
24887 prefix = substr(line, 1, index(line, defundef) - 1)
24888 print prefix "define", macro P[macro] D[macro]
24891 # Replace #undef with comments. This is necessary, for example,
24892 # in the case of _POSIX_SOURCE, which is predefined and required
24893 # on some systems where configure will not decide to define it.
24894 if (defundef == "undef") {
24895 print "/*", line, "*/"
24903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24904 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24905 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24906 { (exit 1); exit 1; }; }
24907 fi # test -n "$CONFIG_HEADERS"
24910 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24915 :[FHLC]) ac_mode=$ac_tag; continue;;
24917 case $ac_mode$ac_tag in
24919 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24920 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24921 { (exit 1); exit 1; }; };;
24922 :[FH]-) ac_tag=-:-;;
24923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24940 -) ac_f="$tmp/stdin";;
24941 *) # Look for the file first in the build tree, then in the source tree
24942 # (if the path is not absolute). The absolute path cannot be DOS-style,
24943 # because $ac_f cannot contain `:'.
24947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24949 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24950 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24951 { (exit 1); exit 1; }; };;
24953 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24954 ac_file_inputs="$ac_file_inputs '$ac_f'"
24957 # Let's still pretend it is `configure' which instantiates (i.e., don't
24958 # use $as_me), people would be surprised to read:
24959 # /* config.h. Generated by config.status. */
24960 configure_input='Generated from '`
24961 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24963 if test x"$ac_file" != x-; then
24964 configure_input="$ac_file. $configure_input"
24965 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24966 $as_echo "$as_me: creating $ac_file" >&6;}
24968 # Neutralize special characters interpreted by sed in replacement strings.
24969 case $configure_input in #(
24970 *\&* | *\|* | *\\* )
24971 ac_sed_conf_input=`$as_echo "$configure_input" |
24972 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24973 *) ac_sed_conf_input=$configure_input;;
24977 *:-:* | *:-) cat >"$tmp/stdin" \
24978 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24979 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24980 { (exit 1); exit 1; }; } ;;
24985 ac_dir=`$as_dirname -- "$ac_file" ||
24986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24987 X"$ac_file" : 'X\(//\)[^/]' \| \
24988 X"$ac_file" : 'X\(//\)$' \| \
24989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24990 $as_echo X"$ac_file" |
24991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24995 /^X\(\/\/\)[^/].*/{
25010 -*) as_dir=./$as_dir;;
25012 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25017 *) as_qdir=$as_dir;;
25019 as_dirs="'$as_qdir' $as_dirs"
25020 as_dir=`$as_dirname -- "$as_dir" ||
25021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022 X"$as_dir" : 'X\(//\)[^/]' \| \
25023 X"$as_dir" : 'X\(//\)$' \| \
25024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25025 $as_echo X"$as_dir" |
25026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25030 /^X\(\/\/\)[^/].*/{
25043 test -d "$as_dir" && break
25045 test -z "$as_dirs" || eval "mkdir $as_dirs"
25046 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25047 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25048 { (exit 1); exit 1; }; }; }
25052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25054 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25055 # A ".." for each directory in $ac_dir_suffix.
25056 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25057 case $ac_top_builddir_sub in
25058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25062 ac_abs_top_builddir=$ac_pwd
25063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25064 # for backward compatibility:
25065 ac_top_builddir=$ac_top_build_prefix
25068 .) # We are building in place.
25070 ac_top_srcdir=$ac_top_builddir_sub
25071 ac_abs_top_srcdir=$ac_pwd ;;
25072 [\\/]* | ?:[\\/]* ) # Absolute name.
25073 ac_srcdir=$srcdir$ac_dir_suffix;
25074 ac_top_srcdir=$srcdir
25075 ac_abs_top_srcdir=$srcdir ;;
25076 *) # Relative name.
25077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25078 ac_top_srcdir=$ac_top_build_prefix$srcdir
25079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25094 ac_MKDIR_P=$MKDIR_P
25096 [\\/$]* | ?:[\\/]* ) ;;
25097 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25102 # If the template does not know about datarootdir, expand it.
25103 # FIXME: This hack should be removed a few years after 2.60.
25104 ac_datarootdir_hack=; ac_datarootdir_seen=
25117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25118 *datarootdir*) ac_datarootdir_seen=yes;;
25119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25120 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25124 ac_datarootdir_hack='
25125 s&@datadir@&$datadir&g
25126 s&@docdir@&$docdir&g
25127 s&@infodir@&$infodir&g
25128 s&@localedir@&$localedir&g
25129 s&@mandir@&$mandir&g
25130 s&\\\${datarootdir}&$datarootdir&g' ;;
25134 # Neutralize VPATH when `$srcdir' = `.'.
25135 # Shell code in configure.ac might set extrasub.
25136 # FIXME: do we really want to maintain this feature?
25137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25138 ac_sed_extra="$ac_vpsub
25141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25144 s|@configure_input@|$ac_sed_conf_input|;t t
25145 s&@top_builddir@&$ac_top_builddir_sub&;t t
25146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25147 s&@srcdir@&$ac_srcdir&;t t
25148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25149 s&@top_srcdir@&$ac_top_srcdir&;t t
25150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25151 s&@builddir@&$ac_builddir&;t t
25152 s&@abs_builddir@&$ac_abs_builddir&;t t
25153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25154 s&@INSTALL@&$ac_INSTALL&;t t
25155 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25156 $ac_datarootdir_hack
25158 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25159 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25160 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25161 { (exit 1); exit 1; }; }
25163 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25164 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25165 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25166 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25167 which seems to be undefined. Please make sure it is defined." >&5
25168 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25169 which seems to be undefined. Please make sure it is defined." >&2;}
25173 -) cat "$tmp/out" && rm -f "$tmp/out";;
25174 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25176 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25177 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25178 { (exit 1); exit 1; }; }
25184 if test x"$ac_file" != x-; then
25186 $as_echo "/* $configure_input */" \
25187 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25188 } >"$tmp/config.h" \
25189 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25190 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25191 { (exit 1); exit 1; }; }
25192 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25193 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25197 mv "$tmp/config.h" "$ac_file" \
25198 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25200 { (exit 1); exit 1; }; }
25203 $as_echo "/* $configure_input */" \
25204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25205 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25206 $as_echo "$as_me: error: could not create -" >&2;}
25207 { (exit 1); exit 1; }; }
25209 # Compute "$ac_file"'s index in $config_headers.
25212 for _am_header in $config_headers :; do
25213 case $_am_header in
25214 $_am_arg | $_am_arg:* )
25217 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25220 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25221 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25222 X"$_am_arg" : 'X\(//\)[^/]' \| \
25223 X"$_am_arg" : 'X\(//\)$' \| \
25224 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25225 $as_echo X"$_am_arg" |
25226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25230 /^X\(\/\/\)[^/].*/{
25242 s/.*/./; q'`/stamp-h$_am_stamp_count
25245 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25246 $as_echo "$as_me: executing $ac_file commands" >&6;}
25251 case $ac_file$ac_mode in
25252 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25253 # Strip MF so we end up with the name of the file.
25254 mf=`echo "$mf" | sed -e 's/:.*$//'`
25255 # Check whether this is an Automake generated Makefile or not.
25256 # We used to match only the files named `Makefile.in', but
25257 # some people rename them; so instead we look at the file content.
25258 # Grep'ing the first line is not enough: some people post-process
25259 # each Makefile.in and add a new line on top of each file to say so.
25260 # Grep'ing the whole file is not good either: AIX grep has a line
25261 # limit of 2048, but all sed's we know have understand at least 4000.
25262 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25263 dirpart=`$as_dirname -- "$mf" ||
25264 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25265 X"$mf" : 'X\(//\)[^/]' \| \
25266 X"$mf" : 'X\(//\)$' \| \
25267 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25273 /^X\(\/\/\)[^/].*/{
25289 # Extract the definition of DEPDIR, am__include, and am__quote
25290 # from the Makefile without running `make'.
25291 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25292 test -z "$DEPDIR" && continue
25293 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25294 test -z "am__include" && continue
25295 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25296 # When using ansi2knr, U may be empty or an underscore; expand it
25297 U=`sed -n 's/^U = //p' < "$mf"`
25298 # Find all dependency output files, they are included files with
25299 # $(DEPDIR) in their names. We invoke sed twice because it is the
25300 # simplest approach to changing $(DEPDIR) to its actual value in the
25302 for file in `sed -n "
25303 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25304 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25305 # Make sure the directory exists.
25306 test -f "$dirpart/$file" && continue
25307 fdir=`$as_dirname -- "$file" ||
25308 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25309 X"$file" : 'X\(//\)[^/]' \| \
25310 X"$file" : 'X\(//\)$' \| \
25311 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25312 $as_echo X"$file" |
25313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25317 /^X\(\/\/\)[^/].*/{
25330 { as_dir=$dirpart/$fdir
25332 -*) as_dir=./$as_dir;;
25334 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25339 *) as_qdir=$as_dir;;
25341 as_dirs="'$as_qdir' $as_dirs"
25342 as_dir=`$as_dirname -- "$as_dir" ||
25343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25344 X"$as_dir" : 'X\(//\)[^/]' \| \
25345 X"$as_dir" : 'X\(//\)$' \| \
25346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25347 $as_echo X"$as_dir" |
25348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25352 /^X\(\/\/\)[^/].*/{
25365 test -d "$as_dir" && break
25367 test -z "$as_dirs" || eval "mkdir $as_dirs"
25368 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25369 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25370 { (exit 1); exit 1; }; }; }
25371 # echo "creating $dirpart/$file"
25372 echo '# dummy' > "$dirpart/$file"
25381 { (exit 0); exit 0; }
25383 chmod +x $CONFIG_STATUS
25384 ac_clean_files=$ac_clean_files_save
25386 test $ac_write_fail = 0 ||
25387 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25388 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25389 { (exit 1); exit 1; }; }
25392 # configure is writing to config.log, and then calls config.status.
25393 # config.status does its own redirection, appending to config.log.
25394 # Unfortunately, on DOS this fails, as config.log is still kept open
25395 # by configure, so config.status won't be able to write to it; its
25396 # output is simply discarded. So we exec the FD to /dev/null,
25397 # effectively closing config.log, so it can be properly (re)opened and
25398 # appended to by config.status. When coming back to configure, we
25399 # need to make the FD available again.
25400 if test "$no_create" != yes; then
25402 ac_config_status_args=
25403 test "$silent" = yes &&
25404 ac_config_status_args="$ac_config_status_args --quiet"
25406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25409 # would make configure fail if this is the last instruction.
25410 $ac_cs_success || { (exit 1); exit 1; }
25412 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25413 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
25414 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}