2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.10.
5 @%:@ Report bugs to <nfs@lists.sf.net>.
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
832 INSTALL_STRIP_PROGRAM
923 ac_precious_vars='build_alias
945 # Initialize some variables set by options.
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1054 -docdir | --docdir | --docdi | --doc | --do)
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1235 -site=* | --site=* | --sit=*)
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1280 # Obsolete; use --with-x.
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1328 # Be sure to have absolute directory names.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val=\$$ac_var
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1445 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1523 --enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1524 --enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1525 --enable-kprefix install progs as rpc.knfsd etc
1526 --enable-secure-statd Only lockd can use statd (security)
1527 --enable-rquotad enable rquotad @<:@default=yes@:>@
1528 --enable-mount Create mount.nfs and don't use the util-linux
1529 mount(8) functionality. @<:@default=no@:>@
1530 --disable-dependency-tracking speeds up one-time build
1531 --enable-dependency-tracking do not reject slow dependency extractors
1532 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1533 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1534 --enable-fast-install@<:@=PKGS@:>@
1535 optimize for fast installation @<:@default=yes@:>@
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-release=XXX set release to XXX [1]
1542 --with-statedir=/foo use state dir /foo /var/lib/nfs
1543 --with-statduser=rpcuser
1544 statd to run under @<:@rpcuser or nobody@:>@
1545 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1546 (optionally in PATH)
1547 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1548 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1550 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1551 --with-krb5=DIR use Kerberos v5 installation in DIR
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
1567 PKG_CONFIG path to pkg-config utility
1569 C compiler flags for RPCSECGSS, overriding pkg-config
1571 linker flags for RPCSECGSS, overriding pkg-config
1573 C compiler flags for GSSAPI, overriding pkg-config
1574 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to <nfs@lists.sf.net>.
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" || continue
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1607 .) # We are building in place.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1631 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1640 linux nfs-utils configure 1.0.10
1641 generated by GNU Autoconf 2.61
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1654 It was created by linux nfs-utils $as_me 1.0.10, which was
1655 generated by GNU Autoconf 2.61. Invocation command line was
1663 @%:@@%:@ --------- @%:@@%:@
1664 @%:@@%:@ Platform. @%:@@%:@
1665 @%:@@%:@ --------- @%:@@%:@
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir=.
1691 echo "PATH: $as_dir"
1700 @%:@@%:@ ----------- @%:@@%:@
1701 @%:@@%:@ Core tests. @%:@@%:@
1702 @%:@@%:@ ----------- @%:@@%:@
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_must_keep_next=false
1721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723 | -silent | --silent | --silen | --sile | --sil)
1726 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true; then
1733 ac_must_keep_next=false # Got value, back to normal.
1736 *=* | --config-cache | -C | -disable-* | --disable-* \
1737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739 | -with-* | --with-* | -without-* | --without-* | --x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 -* ) ac_must_keep_next=true ;;
1747 ac_configure_args="$ac_configure_args '$ac_arg'"
1752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log. We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1766 @%:@@%:@ ---------------- @%:@@%:@
1767 @%:@@%:@ Cache variables. @%:@@%:@
1768 @%:@@%:@ ---------------- @%:@@%:@
1771 # The following way of writing the cache mishandles newlines in values,
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1778 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1779 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782 _ | IFS | as_nl) ;; #(
1783 *) $as_unset $ac_var ;;
1788 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789 *${as_nl}ac_space=\ *)
1791 "s/'\''/'\''\\\\'\'''\''/g;
1792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 @%:@@%:@ ----------------- @%:@@%:@
1804 @%:@@%:@ Output variables. @%:@@%:@
1805 @%:@@%:@ ----------------- @%:@@%:@
1808 for ac_var in $ac_subst_vars
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 echo "$ac_var='\''$ac_val'\''"
1818 if test -n "$ac_subst_files"; then
1820 @%:@@%:@ ------------------- @%:@@%:@
1821 @%:@@%:@ File substitutions. @%:@@%:@
1822 @%:@@%:@ ------------------- @%:@@%:@
1825 for ac_var in $ac_subst_files
1827 eval ac_val=\$$ac_var
1829 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 echo "$ac_var='\''$ac_val'\''"
1836 if test -s confdefs.h; then
1838 @%:@@%:@ ----------- @%:@@%:@
1839 @%:@@%:@ confdefs.h. @%:@@%:@
1840 @%:@@%:@ ----------- @%:@@%:@
1846 test "$ac_signal" != 0 &&
1847 echo "$as_me: caught signal $ac_signal"
1848 echo "$as_me: exit $exit_status"
1850 rm -f core *.core core.conftest.* &&
1851 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854 for ac_signal in 1 2 13 15; do
1855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1860 rm -f -r conftest* confdefs.h
1862 # Predefined preprocessor variables.
1864 cat >>confdefs.h <<_ACEOF
1865 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1869 cat >>confdefs.h <<_ACEOF
1870 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 cat >>confdefs.h <<_ACEOF
1875 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 cat >>confdefs.h <<_ACEOF
1880 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1884 cat >>confdefs.h <<_ACEOF
1885 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 # Let the site file select an alternate cache file if it wants to.
1890 # Prefer explicitly selected file to automatically selected ones.
1891 if test -n "$CONFIG_SITE"; then
1892 set x "$CONFIG_SITE"
1893 elif test "x$prefix" != xNONE; then
1894 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1896 set x "$ac_default_prefix/share/config.site" \
1897 "$ac_default_prefix/etc/config.site"
1902 if test -r "$ac_site_file"; then
1903 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1910 if test -r "$cache_file"; then
1911 # Some versions of bash will fail to source /dev/null (special
1912 # files actually), so we avoid doing that.
1913 if test -f "$cache_file"; then
1914 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 echo "$as_me: loading cache $cache_file" >&6;}
1917 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1918 *) . "./$cache_file";;
1922 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 echo "$as_me: creating cache $cache_file" >&6;}
1927 # Check that the precious variables saved in the cache have kept the same
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1941 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1950 echo "$as_me: former value: $ac_old_val" >&2;}
1951 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1952 echo "$as_me: current value: $ac_new_val" >&2;}
1953 ac_cache_corrupted=:
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009 if test -f "$ac_dir/install-sh"; then
2011 ac_install_sh="$ac_aux_dir/install-sh -c"
2013 elif test -f "$ac_dir/install.sh"; then
2015 ac_install_sh="$ac_aux_dir/install.sh -c"
2017 elif test -f "$ac_dir/shtool"; then
2019 ac_install_sh="$ac_aux_dir/shtool install -c"
2023 if test -z "$ac_aux_dir"; then
2024 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2025 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2026 { (exit 1); exit 1; }; }
2029 # These three variables are undocumented and unsupported,
2030 # and are intended to be withdrawn in a future Autoconf release.
2031 # They can cause serious problems if a builder's source tree is in a directory
2032 # whose full name contains unusual characters.
2033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2038 # Make sure we can run config.sub.
2039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2040 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2041 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2042 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: checking build system type" >&5
2045 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_build+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 ac_build_alias=$build_alias
2050 test "x$ac_build_alias" = x &&
2051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2052 test "x$ac_build_alias" = x &&
2053 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2054 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2055 { (exit 1); exit 1; }; }
2056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2057 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2059 { (exit 1); exit 1; }; }
2062 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2063 echo "${ECHO_T}$ac_cv_build" >&6; }
2064 case $ac_cv_build in
2066 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2067 echo "$as_me: error: invalid value of canonical build" >&2;}
2068 { (exit 1); exit 1; }; };;
2071 ac_save_IFS=$IFS; IFS='-'
2077 # Remember, the first character of IFS is used to create $*,
2078 # except with old shells:
2081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2084 { echo "$as_me:$LINENO: checking host system type" >&5
2085 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_host+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test "x$host_alias" = x; then
2090 ac_cv_host=$ac_cv_build
2092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2093 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2095 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2100 echo "${ECHO_T}$ac_cv_host" >&6; }
2103 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2104 echo "$as_me: error: invalid value of canonical host" >&2;}
2105 { (exit 1); exit 1; }; };;
2108 ac_save_IFS=$IFS; IFS='-'
2114 # Remember, the first character of IFS is used to create $*,
2115 # except with old shells:
2118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2123 am__api_version="1.9"
2124 # Find a good install program. We prefer a C program (faster),
2125 # so one script is as good as another. But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 # Account for people who put trailing slashes in PATH elements.
2150 ./ | .// | /cC/* | \
2151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2155 # OSF1 and SCO ODT 3.0 have their own names for install.
2156 # Don't use installbsd from OSF since it installs stuff as root
2158 for ac_prog in ginstall scoinst install; do
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161 if test $ac_prog = install &&
2162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # AIX install. It has an incompatible calling convention.
2165 elif test $ac_prog = install &&
2166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167 # program-specific install script used by HP pwplus--don't use.
2170 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2183 if test "${ac_cv_path_install+set}" = set; then
2184 INSTALL=$ac_cv_path_install
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for INSTALL within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 INSTALL=$ac_install_sh
2193 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2194 echo "${ECHO_T}$INSTALL" >&6; }
2196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2197 # It thinks the first close brace ends the variable substitution.
2198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2208 echo timestamp > conftest.file
2209 # Do `set' in a subshell so we don't clobber the current shell's
2210 # arguments. Must try -L first in case configure is actually a
2211 # symlink; some systems play weird games with the mod time of symlinks
2212 # (eg FreeBSD returns the mod time of the symlink's containing
2215 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2216 if test "$*" = "X"; then
2218 set X `ls -t $srcdir/configure conftest.file`
2221 if test "$*" != "X $srcdir/configure conftest.file" \
2222 && test "$*" != "X conftest.file $srcdir/configure"; then
2224 # If neither matched, then we have a broken ls. This can happen
2225 # if, for instance, CONFIG_SHELL is bash and it inherits a
2226 # broken ls alias from the environment. This has actually
2227 # happened. Such a system could not be considered "sane".
2228 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&5
2230 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2231 alias in your environment" >&2;}
2232 { (exit 1); exit 1; }; }
2235 test "$2" = conftest.file
2241 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2242 Check your system clock" >&5
2243 echo "$as_me: error: newly created file is older than distributed files!
2244 Check your system clock" >&2;}
2245 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249 test "$program_prefix" != NONE &&
2250 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2251 # Use a double $ so make ignores it.
2252 test "$program_suffix" != NONE &&
2253 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2254 # Double any \ or $. echo might interpret backslashes.
2255 # By default was `s,x,x', remove it if useless.
2256 cat <<\_ACEOF >conftest.sed
2257 s/[\\$]/&&/g;s/;s,x,x,$//
2259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2262 # expand $ac_aux_dir to an absolute path
2263 am_aux_dir=`cd $ac_aux_dir && pwd`
2265 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2266 # Use eval to expand $SHELL
2267 if eval "$MISSING --run true"; then
2268 am_missing_run="$MISSING --run "
2271 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2272 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2275 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2276 # We used to keeping the `.' as first argument, in order to
2277 # allow $(mkdir_p) to be used without argument. As in
2278 # $(mkdir_p) $(somedir)
2279 # where $(somedir) is conditionally defined. However this is wrong
2281 # 1. if the package is installed by a user who cannot write `.'
2282 # make install will fail,
2283 # 2. the above comment should most certainly read
2284 # $(mkdir_p) $(DESTDIR)$(somedir)
2285 # so it does not work when $(somedir) is undefined and
2286 # $(DESTDIR) is not.
2287 # To support the latter case, we have to write
2288 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2289 # so the `.' trick is pointless.
2290 mkdir_p='mkdir -p --'
2292 # On NextStep and OpenStep, the `mkdir' command does not
2293 # recognize any option. It will interpret all options as
2294 # directories to create, and then abort because `.' already
2296 for d in ./-p ./--version;
2298 test -d $d && rmdir $d
2300 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2301 if test -f "$ac_aux_dir/mkinstalldirs"; then
2302 mkdir_p='$(mkinstalldirs)'
2304 mkdir_p='$(install_sh) -d'
2308 for ac_prog in gawk mawk nawk awk
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_AWK+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$AWK"; then
2318 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_AWK="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$AWK"; then
2339 { echo "$as_me:$LINENO: result: $AWK" >&5
2340 echo "${ECHO_T}$AWK" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$AWK" && break
2350 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2351 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2352 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2353 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.make <<\_ACEOF
2359 @echo '@@@%%%=$(MAKE)=@@@%%%'
2361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2364 eval ac_cv_prog_make_${ac_make}_set=yes;;
2366 eval ac_cv_prog_make_${ac_make}_set=no;;
2370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2371 { echo "$as_me:$LINENO: result: yes" >&5
2372 echo "${ECHO_T}yes" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 SET_MAKE="MAKE=${MAKE-make}"
2380 rm -rf .tst 2>/dev/null
2381 mkdir .tst 2>/dev/null
2382 if test -d .tst; then
2387 rmdir .tst 2>/dev/null
2389 # test to see if srcdir already configured
2390 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2391 test -f $srcdir/config.status; then
2392 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394 { (exit 1); exit 1; }; }
2397 # test whether we have cygpath
2398 if test -z "$CYGPATH_W"; then
2399 if (cygpath --version) >/dev/null 2>/dev/null; then
2400 CYGPATH_W='cygpath -w'
2407 # Define the identity of the package.
2412 cat >>confdefs.h <<_ACEOF
2413 @%:@define PACKAGE "$PACKAGE"
2417 cat >>confdefs.h <<_ACEOF
2418 @%:@define VERSION "$VERSION"
2421 # Some tools Automake needs.
2423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2437 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'. However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { echo "$as_me:$LINENO: result: $STRIP" >&5
2475 echo "${ECHO_T}$STRIP" >&6; }
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2483 if test -z "$ac_cv_prog_STRIP"; then
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2521 if test "x$ac_ct_STRIP" = x; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned=yes ;;
2537 STRIP="$ac_cv_prog_STRIP"
2541 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2543 # We need awk for the "check" target. The system "awk" is bad on
2545 # Always define AMTAR for backward compatibility.
2547 AMTAR=${AMTAR-"${am_missing_run}tar"}
2549 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2559 # Check whether --with-release was given.
2560 if test "${with_release+set}" = set; then
2561 withval=$with_release; RELEASE=$withval
2568 # Check whether --with-statedir was given.
2569 if test "${with_statedir+set}" = set; then
2570 withval=$with_statedir; statedir=$withval
2572 statedir=/var/lib/nfs
2577 # Check whether --with-statduser was given.
2578 if test "${with_statduser+set}" = set; then
2579 withval=$with_statduser; statduser=$withval
2581 if test "x$cross_compiling" = "xno"; then
2582 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2593 # Check whether --enable-nfsv3 was given.
2594 if test "${enable_nfsv3+set}" = set; then
2595 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2600 if test "$enable_nfsv3" = yes; then
2602 cat >>confdefs.h <<\_ACEOF
2603 @%:@define NFS3_SUPPORTED 1
2610 # Check whether --enable-nfsv4 was given.
2611 if test "${enable_nfsv4+set}" = set; then
2612 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2617 if test "$enable_nfsv4" = yes; then
2619 cat >>confdefs.h <<\_ACEOF
2620 @%:@define NFS4_SUPPORTED 1
2632 if test "$enable_nfsv4" = "yes"; then
2634 CONFIG_NFSV4_FALSE='#'
2636 CONFIG_NFSV4_TRUE='#'
2640 # Check whether --enable-gss was given.
2641 if test "${enable_gss+set}" = set; then
2642 enableval=$enable_gss; enable_gss=$enableval
2647 if test "$enable_gss" = yes; then
2649 cat >>confdefs.h <<\_ACEOF
2650 @%:@define GSS_SUPPORTED 1
2665 if test "$enable_gss" = "yes"; then
2667 CONFIG_GSS_FALSE='#'
2673 # Check whether --enable-kprefix was given.
2674 if test "${enable_kprefix+set}" = set; then
2675 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2681 # Check whether --enable-secure-statd was given.
2682 if test "${enable_secure_statd+set}" = set; then
2683 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2688 if test "$secure_statd" = yes; then
2690 cat >>confdefs.h <<\_ACEOF
2691 @%:@define RESTRICTED_STATD 1
2696 # Check whether --enable-rquotad was given.
2697 if test "${enable_rquotad+set}" = set; then
2698 enableval=$enable_rquotad; enable_rquotad=$enableval
2703 if test "$enable_rquotad" = yes; then
2710 if test "$enable_rquotad" = "yes"; then
2711 CONFIG_RQUOTAD_TRUE=
2712 CONFIG_RQUOTAD_FALSE='#'
2714 CONFIG_RQUOTAD_TRUE='#'
2715 CONFIG_RQUOTAD_FALSE=
2719 # Check whether --enable-mount was given.
2720 if test "${enable_mount+set}" = set; then
2721 enableval=$enable_mount; enable_mount=$enableval
2728 if test "$enable_mount" = "yes"; then
2730 CONFIG_MOUNT_FALSE='#'
2732 CONFIG_MOUNT_TRUE='#'
2737 # Check whether user wants TCP wrappers support
2738 DEPDIR="${am__leading_dot}deps"
2740 ac_config_commands="$ac_config_commands depfiles"
2743 am_make=${MAKE-make}
2744 cat > confinc << 'END'
2749 # If we don't find an include directive, just comment out the code.
2750 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2751 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2755 # First try GNU make style include.
2756 echo "include confinc" > confmf
2757 # We grep out `Entering directory' and `Leaving directory'
2758 # messages which can occur if `w' ends up in MAKEFLAGS.
2759 # In particular we don't look at `^make:' because GNU make might
2760 # be invoked under some other name (usually "gmake"), in which
2761 # case it prints its new name instead of `make'.
2762 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2767 # Now try BSD make style include.
2768 if test "$am__include" = "#"; then
2769 echo '.include "confinc"' > confmf
2770 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2771 am__include=.include
2778 { echo "$as_me:$LINENO: result: $_am_result" >&5
2779 echo "${ECHO_T}$_am_result" >&6; }
2780 rm -f confinc confmf
2782 # Check whether --enable-dependency-tracking was given.
2783 if test "${enable_dependency_tracking+set}" = set; then
2784 enableval=$enable_dependency_tracking;
2787 if test "x$enable_dependency_tracking" != xno; then
2788 am_depcomp="$ac_aux_dir/depcomp"
2793 if test "x$enable_dependency_tracking" != xno; then
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2847 if test -z "$ac_cv_prog_CC"; then
2849 # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_ac_ct_CC="gcc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2885 if test "x$ac_ct_CC" = x; then
2888 case $cross_compiling:$ac_tool_warned in
2890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2891 whose name does not start with the host triplet. If you think this
2892 configuration is useful to you, please write to autoconf@gnu.org." >&5
2893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet. If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2896 ac_tool_warned=yes ;;
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_CC="${ac_tool_prefix}cc"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2945 if test -z "$CC"; then
2946 # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965 ac_prog_rejected=yes
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test $ac_prog_rejected = yes; then
2977 # We found a bogon in the path, so make sure we never use it.
2978 set dummy $ac_cv_prog_CC
2980 if test $@%:@ != 0; then
2981 # We chose a different compiler from the bogus one.
2982 # However, it has the same basename, so the bogon will be chosen
2983 # first if we set CC to just the basename; use the full file name.
2985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2991 if test -n "$CC"; then
2992 { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 for ac_prog in cl.exe
3005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$CC"; then
3034 { echo "$as_me:$LINENO: result: $CC" >&5
3035 echo "${ECHO_T}$CC" >&6; }
3037 { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3042 test -n "$CC" && break
3045 if test -z "$CC"; then
3047 for ac_prog in cl.exe
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_ac_ct_CC="$ac_prog"
3067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3079 echo "${ECHO_T}$ac_ct_CC" >&6; }
3081 { echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6; }
3086 test -n "$ac_ct_CC" && break
3089 if test "x$ac_ct_CC" = x; then
3092 case $cross_compiling:$ac_tool_warned in
3094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3095 whose name does not start with the host triplet. If you think this
3096 configuration is useful to you, please write to autoconf@gnu.org." >&5
3097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet. If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3100 ac_tool_warned=yes ;;
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO: checking for C compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (ac_try="$ac_compiler --version >&5"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compiler --version >&5") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (ac_try="$ac_compiler -v >&5"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compiler -v >&5") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (ac_try="$ac_compiler -V >&5"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compiler -V >&5") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3169 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3173 # List of possible output files, starting from the most likely.
3174 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3175 # only as a last resort. b.out is created by i960 compilers.
3176 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3178 # The IRIX 6 linker writes into existing files which may not be
3179 # executable, retaining their permissions. Remove them first so a
3180 # subsequent execution test works.
3182 for ac_file in $ac_files
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3186 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191 if { (ac_try="$ac_link_default"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_link_default") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3206 for ac_file in $ac_files ''
3208 test -f "$ac_file" || continue
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3213 # We found the default executable, but exeext='' is most
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3231 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237 { echo "$as_me:$LINENO: result: $ac_file" >&5
3238 echo "${ECHO_T}$ac_file" >&6; }
3239 if test -z "$ac_file"; then
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: C compiler cannot create executables
3246 See \`config.log' for more details." >&2;}
3247 { (exit 77); exit 77; }; }
3250 ac_exeext=$ac_cv_exeext
3252 # Check that the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259 if { ac_try='./$ac_file'
3260 { (case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_try") 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 if test "$cross_compiling" = maybe; then
3274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details." >&5
3277 echo "$as_me: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }
3284 { echo "$as_me:$LINENO: result: yes" >&5
3285 echo "${ECHO_T}yes" >&6; }
3287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run. If not, either
3290 # the compiler is broken, or we cross compile.
3291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3294 echo "${ECHO_T}$cross_compiling" >&6; }
3296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3298 if { (ac_try="$ac_link"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_link") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; then
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3329 rm -f conftest$ac_cv_exeext
3330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3338 if test "${ac_cv_objext+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 rm -f conftest.o conftest.obj
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; then
3367 for ac_file in conftest.o conftest.obj conftest.*; do
3368 test -f "$ac_file" || continue;
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3389 echo "${ECHO_T}$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } && {
3429 test -z "$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 } && test -s conftest.$ac_objext; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3446 GCC=`test $ac_compiler_gnu = yes && echo yes`
3447 ac_test_CFLAGS=${CFLAGS+set}
3448 ac_save_CFLAGS=$CFLAGS
3449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3451 if test "${ac_cv_prog_cc_g+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 ac_save_c_werror_flag=$ac_c_werror_flag
3455 ac_c_werror_flag=yes
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 ac_c_werror_flag=$ac_save_c_werror_flag
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_c_werror_flag=$ac_save_c_werror_flag
3584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3585 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3586 if test "$ac_test_CFLAGS" = set; then
3587 CFLAGS=$ac_save_CFLAGS
3588 elif test $ac_cv_prog_cc_g = yes; then
3589 if test "$GCC" = yes; then
3595 if test "$GCC" = yes; then
3601 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3602 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_cc_c89+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 ac_cv_prog_cc_c89=no
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 #include <sys/types.h>
3617 #include <sys/stat.h>
3618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3619 struct buf { int x; };
3620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621 static char *e (p, i)
3627 static char *f (char * (*g) (char **, int), char **p, ...)
3632 s = g (p, va_arg (v,int));
3637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3638 function prototypes and stuff, but not '\xHH' hex character constants.
3639 These don't provoke an error unfortunately, instead are silently treated
3640 as 'x'. The following induces an error, until -std is added to get
3641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3642 array size at least. It's necessary to write '\x00'==0 to get something
3643 that's true only with -std. */
3644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647 inside strings and character constants. */
3649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3651 int test (int i, double x);
3652 struct s1 {int (*f) (int a);};
3653 struct s2 {int (*f) (double a);};
3654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3668 CC="$ac_save_CC $ac_arg"
3669 rm -f conftest.$ac_objext
3670 if { (ac_try="$ac_compile"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_compile") 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } && {
3683 test -z "$ac_c_werror_flag" ||
3684 test ! -s conftest.err
3685 } && test -s conftest.$ac_objext; then
3686 ac_cv_prog_cc_c89=$ac_arg
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3694 rm -f core conftest.err conftest.$ac_objext
3695 test "x$ac_cv_prog_cc_c89" != "xno" && break
3697 rm -f conftest.$ac_ext
3702 case "x$ac_cv_prog_cc_c89" in
3704 { echo "$as_me:$LINENO: result: none needed" >&5
3705 echo "${ECHO_T}none needed" >&6; } ;;
3707 { echo "$as_me:$LINENO: result: unsupported" >&5
3708 echo "${ECHO_T}unsupported" >&6; } ;;
3710 CC="$CC $ac_cv_prog_cc_c89"
3711 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 depcc="$CC" am_compiler_list=
3724 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730 # We make a subdir and do the tests there. Otherwise we can end up
3731 # making bogus files that we don't know about and never remove. For
3732 # instance it was reported that on HP-UX the gcc test will end up
3733 # making a dummy file named `D' -- because `-MD' means `put the output
3736 # Copy depcomp to subdir because otherwise we won't find it if we're
3737 # using a relative directory.
3738 cp "$am_depcomp" conftest.dir
3740 # We will build objects and dependencies in a subdirectory because
3741 # it helps to detect inapplicable dependency modes. For instance
3742 # both Tru64's cc and ICC support -MD to output dependencies as a
3743 # side effect of compilation, but ICC will put the dependencies in
3744 # the current directory while Tru64 will put them in the object
3748 am_cv_CC_dependencies_compiler_type=none
3749 if test "$am_compiler_list" = ""; then
3750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3752 for depmode in $am_compiler_list; do
3753 # Setup a source with many dependencies, because some compilers
3754 # like to wrap large dependency lists on column 80 (with \), and
3755 # we should not choose a depcomp mode which is confused by this.
3757 # We need to recreate these files for each test, as the compiler may
3758 # overwrite some of them when testing with obscure command lines.
3759 # This happens at least with the AIX C compiler.
3761 for i in 1 2 3 4 5 6; do
3762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764 # Solaris 8's {/usr,}/bin/sh.
3765 touch sub/conftst$i.h
3767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3771 # after this tag, mechanisms are not by side-effect, so they'll
3772 # only be used when explicitly requested
3773 if test "x$enable_dependency_tracking" = xyes; then
3781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3782 # mode. It turns out that the SunPro C++ compiler does not properly
3783 # handle `-M -o', and we need to detect this.
3784 if depmode=$depmode \
3785 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3788 >/dev/null 2>conftest.err &&
3789 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3791 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792 # icc doesn't choke on unknown options, it will just issue warnings
3793 # or remarks (even with -Werror). So we grep stderr for any message
3794 # that says an option was ignored or not supported.
3795 # When given -MP, icc 7.0 and 7.1 complain thusly:
3796 # icc: Command line warning: ignoring option '-M'; no argument required
3797 # The diagnosis changed in icc 8.0:
3798 # icc: Command line remark: option '-MP' not supported
3799 if (grep 'ignoring option' conftest.err ||
3800 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801 am_cv_CC_dependencies_compiler_type=$depmode
3810 am_cv_CC_dependencies_compiler_type=none
3814 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821 test "x$enable_dependency_tracking" != xno \
3822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3824 am__fastdepCC_FALSE='#'
3826 am__fastdepCC_TRUE='#'
3827 am__fastdepCC_FALSE=
3835 # Check whether --with-tcp-wrappers was given.
3836 if test "${with_tcp_wrappers+set}" = set; then
3837 withval=$with_tcp_wrappers;
3838 if test "x$withval" != "xno" ; then
3840 saved_LDFLAGS="$LDFLAGS"
3841 saved_CPPFLAGS="$CPPFLAGS"
3842 if test -n "${withval}" -a "${withval}" != "yes"; then
3843 if test -d "${withval}/lib"; then
3844 if test -n "${need_dash_r}"; then
3845 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3847 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3850 if test -n "${need_dash_r}"; then
3851 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3853 LDFLAGS="-L${withval} ${LDFLAGS}"
3856 if test -d "${withval}/include"; then
3857 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3859 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3863 LIBS="$LIBWRAP $LIBS"
3864 { echo "$as_me:$LINENO: checking for libwrap" >&5
3865 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3874 int deny_severity = 0, allow_severity = 0;
3884 rm -f conftest.$ac_objext conftest$ac_exeext
3885 if { (ac_try="$ac_link"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_link") 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && {
3898 test -z "$ac_c_werror_flag" ||
3899 test ! -s conftest.err
3900 } && test -s conftest$ac_exeext &&
3901 $as_test_x conftest$ac_exeext; then
3903 { echo "$as_me:$LINENO: result: yes" >&5
3904 echo "${ECHO_T}yes" >&6; }
3907 cat >>confdefs.h <<\_ACEOF
3908 @%:@define LIBWRAP 1
3912 cat >>confdefs.h <<\_ACEOF
3913 @%:@define HAVE_LIBWRAP 1
3917 cat >>confdefs.h <<\_ACEOF
3918 @%:@define HAVE_TCP_WRAPPER 1
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3928 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3929 echo "$as_me: error: *** libwrap missing" >&2;}
3930 { (exit 1); exit 1; }; }
3935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3936 conftest$ac_exeext conftest.$ac_ext
3949 ac_config_headers="$ac_config_headers support/include/config.h"
3952 # Checks for programs.
3954 ac_cpp='$CXXCPP $CPPFLAGS'
3955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3958 if test -z "$CXX"; then
3959 if test -n "$CCC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_CXX+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test -n "$CXX"; then
3973 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 if test -n "$CXX"; then
3994 { echo "$as_me:$LINENO: result: $CXX" >&5
3995 echo "${ECHO_T}$CXX" >&6; }
3997 { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
4002 test -n "$CXX" && break
4005 if test -z "$CXX"; then
4007 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4009 # Extract the first word of "$ac_prog", so it can be a program name with args.
4010 set dummy $ac_prog; ac_word=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$ac_ct_CXX"; then
4017 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_prog_ac_ct_CXX="$ac_prog"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4041 { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4046 test -n "$ac_ct_CXX" && break
4049 if test "x$ac_ct_CXX" = x; then
4052 case $cross_compiling:$ac_tool_warned in
4054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4055 whose name does not start with the host triplet. If you think this
4056 configuration is useful to you, please write to autoconf@gnu.org." >&5
4057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet. If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4060 ac_tool_warned=yes ;;
4068 # Provide some information about the compiler.
4069 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4070 ac_compiler=`set X $ac_compile; echo $2`
4071 { (ac_try="$ac_compiler --version >&5"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_compiler --version >&5") 2>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }
4081 { (ac_try="$ac_compiler -v >&5"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compiler -v >&5") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }
4091 { (ac_try="$ac_compiler -V >&5"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_compiler -V >&5") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }
4102 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4103 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4104 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_cxx_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4154 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4155 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4156 GXX=`test $ac_compiler_gnu = yes && echo yes`
4157 ac_test_CXXFLAGS=${CXXFLAGS+set}
4158 ac_save_CXXFLAGS=$CXXFLAGS
4159 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4161 if test "${ac_cv_prog_cxx_g+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4165 ac_cxx_werror_flag=yes
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && {
4197 test -z "$ac_cxx_werror_flag" ||
4198 test ! -s conftest.err
4199 } && test -s conftest.$ac_objext; then
4200 ac_cv_prog_cxx_g=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_cxx_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_cxx_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest.$ac_objext; then
4277 ac_cv_prog_cxx_g=yes
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4295 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4296 if test "$ac_test_CXXFLAGS" = set; then
4297 CXXFLAGS=$ac_save_CXXFLAGS
4298 elif test $ac_cv_prog_cxx_g = yes; then
4299 if test "$GXX" = yes; then
4305 if test "$GXX" = yes; then
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 depcc="$CXX" am_compiler_list=
4319 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4321 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325 # We make a subdir and do the tests there. Otherwise we can end up
4326 # making bogus files that we don't know about and never remove. For
4327 # instance it was reported that on HP-UX the gcc test will end up
4328 # making a dummy file named `D' -- because `-MD' means `put the output
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4343 am_cv_CXX_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 for depmode in $am_compiler_list; do
4348 # Setup a source with many dependencies, because some compilers
4349 # like to wrap large dependency lists on column 80 (with \), and
4350 # we should not choose a depcomp mode which is confused by this.
4352 # We need to recreate these files for each test, as the compiler may
4353 # overwrite some of them when testing with obscure command lines.
4354 # This happens at least with the AIX C compiler.
4356 for i in 1 2 3 4 5 6; do
4357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4359 # Solaris 8's {/usr,}/bin/sh.
4360 touch sub/conftst$i.h
4362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366 # after this tag, mechanisms are not by side-effect, so they'll
4367 # only be used when explicitly requested
4368 if test "x$enable_dependency_tracking" = xyes; then
4376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle `-M -o', and we need to detect this.
4379 if depmode=$depmode \
4380 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4382 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4383 >/dev/null 2>conftest.err &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CXX_dependencies_compiler_type=$depmode
4405 am_cv_CXX_dependencies_compiler_type=none
4409 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4410 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4411 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4416 test "x$enable_dependency_tracking" != xno \
4417 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4418 am__fastdepCXX_TRUE=
4419 am__fastdepCXX_FALSE='#'
4421 am__fastdepCXX_TRUE='#'
4422 am__fastdepCXX_FALSE=
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 if test -n "$CC"; then
4461 { echo "$as_me:$LINENO: result: $CC" >&5
4462 echo "${ECHO_T}$CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4470 if test -z "$ac_cv_prog_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$ac_ct_CC"; then
4480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_ac_ct_CC="gcc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500 if test -n "$ac_ct_CC"; then
4501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4502 echo "${ECHO_T}$ac_ct_CC" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4508 if test "x$ac_ct_CC" = x; then
4511 case $cross_compiling:$ac_tool_warned in
4513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4514 whose name does not start with the host triplet. If you think this
4515 configuration is useful to you, please write to autoconf@gnu.org." >&5
4516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4517 whose name does not start with the host triplet. If you think this
4518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4519 ac_tool_warned=yes ;;
4527 if test -z "$CC"; then
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}cc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_CC="${ac_tool_prefix}cc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 if test -n "$CC"; then
4558 { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4568 if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570 set dummy cc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588 ac_prog_rejected=yes
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 if test $ac_prog_rejected = yes; then
4600 # We found a bogon in the path, so make sure we never use it.
4601 set dummy $ac_cv_prog_CC
4603 if test $@%:@ != 0; then
4604 # We chose a different compiler from the bogus one.
4605 # However, it has the same basename, so the bogon will be chosen
4606 # first if we set CC to just the basename; use the full file name.
4608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4614 if test -n "$CC"; then
4615 { echo "$as_me:$LINENO: result: $CC" >&5
4616 echo "${ECHO_T}$CC" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in cl.exe
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4665 test -n "$CC" && break
4668 if test -z "$CC"; then
4670 for ac_prog in cl.exe
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CC="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4702 echo "${ECHO_T}$ac_ct_CC" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4709 test -n "$ac_ct_CC" && break
4712 if test "x$ac_ct_CC" = x; then
4715 case $cross_compiling:$ac_tool_warned in
4717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4718 whose name does not start with the host triplet. If you think this
4719 configuration is useful to you, please write to autoconf@gnu.org." >&5
4720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4721 whose name does not start with the host triplet. If you think this
4722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4723 ac_tool_warned=yes ;;
4732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." >&2;}
4736 { (exit 1); exit 1; }; }
4738 # Provide some information about the compiler.
4739 echo "$as_me:$LINENO: checking for C compiler version" >&5
4740 ac_compiler=`set X $ac_compile; echo $2`
4741 { (ac_try="$ac_compiler --version >&5"
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747 (eval "$ac_compiler --version >&5") 2>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }
4751 { (ac_try="$ac_compiler -v >&5"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compiler -v >&5") 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }
4761 { (ac_try="$ac_compiler -V >&5"
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_compiler -V >&5") 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }
4772 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4773 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4774 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_compile") 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } && {
4809 test -z "$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 } && test -s conftest.$ac_objext; then
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4826 GCC=`test $ac_compiler_gnu = yes && echo yes`
4827 ac_test_CFLAGS=${CFLAGS+set}
4828 ac_save_CFLAGS=$CFLAGS
4829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_cc_g+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 ac_save_c_werror_flag=$ac_c_werror_flag
4835 ac_c_werror_flag=yes
4838 cat >conftest.$ac_ext <<_ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_compile") 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 ac_c_werror_flag=$ac_save_c_werror_flag
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4964 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4975 if test "$GCC" = yes; then
4981 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4982 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_cc_c89+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_prog_cc_c89=no
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5012 s = g (p, va_arg (v,int));
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std. */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027 inside strings and character constants. */
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048 CC="$ac_save_CC $ac_arg"
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_prog_cc_c89=$ac_arg
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5074 rm -f core conftest.err conftest.$ac_objext
5075 test "x$ac_cv_prog_cc_c89" != "xno" && break
5077 rm -f conftest.$ac_ext
5082 case "x$ac_cv_prog_cc_c89" in
5084 { echo "$as_me:$LINENO: result: none needed" >&5
5085 echo "${ECHO_T}none needed" >&6; } ;;
5087 { echo "$as_me:$LINENO: result: unsupported" >&5
5088 echo "${ECHO_T}unsupported" >&6; } ;;
5090 CC="$CC $ac_cv_prog_cc_c89"
5091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5092 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 depcc="$CC" am_compiler_list=
5104 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110 # We make a subdir and do the tests there. Otherwise we can end up
5111 # making bogus files that we don't know about and never remove. For
5112 # instance it was reported that on HP-UX the gcc test will end up
5113 # making a dummy file named `D' -- because `-MD' means `put the output
5116 # Copy depcomp to subdir because otherwise we won't find it if we're
5117 # using a relative directory.
5118 cp "$am_depcomp" conftest.dir
5120 # We will build objects and dependencies in a subdirectory because
5121 # it helps to detect inapplicable dependency modes. For instance
5122 # both Tru64's cc and ICC support -MD to output dependencies as a
5123 # side effect of compilation, but ICC will put the dependencies in
5124 # the current directory while Tru64 will put them in the object
5128 am_cv_CC_dependencies_compiler_type=none
5129 if test "$am_compiler_list" = ""; then
5130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5132 for depmode in $am_compiler_list; do
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5141 for i in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144 # Solaris 8's {/usr,}/bin/sh.
5145 touch sub/conftst$i.h
5147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5151 # after this tag, mechanisms are not by side-effect, so they'll
5152 # only be used when explicitly requested
5153 if test "x$enable_dependency_tracking" = xyes; then
5161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle `-M -o', and we need to detect this.
5164 if depmode=$depmode \
5165 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168 >/dev/null 2>conftest.err &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5190 am_cv_CC_dependencies_compiler_type=none
5194 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5201 test "x$enable_dependency_tracking" != xno \
5202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5204 am__fastdepCC_FALSE='#'
5206 am__fastdepCC_TRUE='#'
5207 am__fastdepCC_FALSE=
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218 # On Suns, sometimes $CPP names a directory.
5219 if test -n "$CPP" && test -d "$CPP"; then
5222 if test -z "$CPP"; then
5223 if test "${ac_cv_prog_CPP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 # Double quotes because CPP needs to be expanded
5227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5230 for ac_c_preproc_warn_flag in '' yes
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5245 @%:@ include <limits.h>
5247 @%:@ include <assert.h>
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 # Broken: fails on valid input.
5276 rm -f conftest.err conftest.$ac_ext
5278 # OK, works on sane cases. Now check whether nonexistent headers
5279 # can be detected and how.
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 @%:@include <ac_nonexistent.h>
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } >/dev/null && {
5301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5304 # Broken: success on invalid input.
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 # Passes both tests.
5315 rm -f conftest.err conftest.$ac_ext
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then
5332 { echo "$as_me:$LINENO: result: $CPP" >&5
5333 echo "${ECHO_T}$CPP" >&6; }
5335 for ac_c_preproc_warn_flag in '' yes
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5350 @%:@ include <limits.h>
5352 @%:@ include <assert.h>
5356 if { (ac_try="$ac_cpp conftest.$ac_ext"
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null && {
5369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Broken: fails on valid input.
5381 rm -f conftest.err conftest.$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 @%:@include <ac_nonexistent.h>
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null && {
5406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5407 test ! -s conftest.err
5409 # Broken: success on invalid input.
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 # Passes both tests.
5420 rm -f conftest.err conftest.$ac_ext
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 # Find a good install program. We prefer a C program (faster),
5442 # so one script is as good as another. But avoid the broken or
5443 # incompatible versions:
5444 # SysV /etc/install, /usr/sbin/install
5445 # SunOS /usr/etc/install
5446 # IRIX /sbin/install
5448 # AmigaOS /C/install, which installs bootblocks on floppy discs
5449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5452 # OS/2's system install, which has a completely different semantic
5453 # ./install, which can be erroneously created by make from ./install.sh.
5454 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5455 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5456 if test -z "$INSTALL"; then
5457 if test "${ac_cv_path_install+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 # Account for people who put trailing slashes in PATH elements.
5467 ./ | .// | /cC/* | \
5468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5469 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5472 # OSF1 and SCO ODT 3.0 have their own names for install.
5473 # Don't use installbsd from OSF since it installs stuff as root
5475 for ac_prog in ginstall scoinst install; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5478 if test $ac_prog = install &&
5479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5480 # AIX install. It has an incompatible calling convention.
5482 elif test $ac_prog = install &&
5483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5484 # program-specific install script used by HP pwplus--don't use.
5487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5500 if test "${ac_cv_path_install+set}" = set; then
5501 INSTALL=$ac_cv_path_install
5503 # As a last resort, use the slow shell script. Don't cache a
5504 # value for INSTALL within a source directory, because that will
5505 # break other packages using the cache if that directory is
5506 # removed, or if the value is a relative name.
5507 INSTALL=$ac_install_sh
5510 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5511 echo "${ECHO_T}$INSTALL" >&6; }
5513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5514 # It thinks the first close brace ends the variable substitution.
5515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5521 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5522 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5524 if test "$LN_S" = "ln -s"; then
5525 { echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6; }
5528 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5529 echo "${ECHO_T}no, using $LN_S" >&6; }
5532 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5534 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5535 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.make <<\_ACEOF
5541 @echo '@@@%%%=$(MAKE)=@@@%%%'
5543 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5544 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5546 eval ac_cv_prog_make_${ac_make}_set=yes;;
5548 eval ac_cv_prog_make_${ac_make}_set=no;;
5552 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5553 { echo "$as_me:$LINENO: result: yes" >&5
5554 echo "${ECHO_T}yes" >&6; }
5557 { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5559 SET_MAKE="MAKE=${MAKE-make}"
5562 # Check whether --enable-shared was given.
5563 if test "${enable_shared+set}" = set; then
5564 enableval=$enable_shared; p=${PACKAGE-default}
5566 yes) enable_shared=yes ;;
5567 no) enable_shared=no ;;
5570 # Look at the argument we got. We use all the common list separators.
5571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5572 for pkg in $enableval; do
5574 if test "X$pkg" = "X$p"; then
5586 # Check whether --enable-static was given.
5587 if test "${enable_static+set}" = set; then
5588 enableval=$enable_static; p=${PACKAGE-default}
5590 yes) enable_static=yes ;;
5591 no) enable_static=no ;;
5594 # Look at the argument we got. We use all the common list separators.
5595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5596 for pkg in $enableval; do
5598 if test "X$pkg" = "X$p"; then
5610 # Check whether --enable-fast-install was given.
5611 if test "${enable_fast_install+set}" = set; then
5612 enableval=$enable_fast_install; p=${PACKAGE-default}
5614 yes) enable_fast_install=yes ;;
5615 no) enable_fast_install=no ;;
5617 enable_fast_install=no
5618 # Look at the argument we got. We use all the common list separators.
5619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5620 for pkg in $enableval; do
5622 if test "X$pkg" = "X$p"; then
5623 enable_fast_install=yes
5630 enable_fast_install=yes
5634 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5635 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5636 if test "${lt_cv_path_SED+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 # Loop through the user's path and test for sed and gsed.
5640 # Then use that list of sed's as ones to test for truncation.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for lt_ac_prog in sed gsed; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5649 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5656 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5657 # along with /bin/sed that truncates output.
5658 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5659 test ! -f $lt_ac_sed && continue
5660 cat /dev/null > conftest.in
5662 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5663 # Check for GNU sed and select it if it is found.
5664 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5665 lt_cv_path_SED=$lt_ac_sed
5669 cat conftest.in conftest.in >conftest.tmp
5670 mv conftest.tmp conftest.in
5671 cp conftest.in conftest.nl
5673 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5674 cmp -s conftest.out conftest.nl || break
5675 # 10000 chars as input seems more than enough
5676 test $lt_ac_count -gt 10 && break
5677 lt_ac_count=`expr $lt_ac_count + 1`
5678 if test $lt_ac_count -gt $lt_ac_max; then
5679 lt_ac_max=$lt_ac_count
5680 lt_cv_path_SED=$lt_ac_sed
5688 { echo "$as_me:$LINENO: result: $SED" >&5
5689 echo "${ECHO_T}$SED" >&6; }
5691 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5692 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5693 if test "${ac_cv_path_GREP+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 # Extract the first word of "grep ggrep" to use in msg output
5697 if test -z "$GREP"; then
5698 set dummy grep ggrep; ac_prog_name=$2
5699 if test "${ac_cv_path_GREP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 ac_path_GREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708 test -z "$as_dir" && as_dir=.
5709 for ac_prog in grep ggrep; do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5712 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5713 # Check for GNU ac_path_GREP and select it if it is found.
5714 # Check for GNU $ac_path_GREP
5715 case `"$ac_path_GREP" --version 2>&1` in
5717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5720 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 echo 'GREP' >> "conftest.nl"
5727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 ac_count=`expr $ac_count + 1`
5730 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_GREP="$ac_path_GREP"
5733 ac_path_GREP_max=$ac_count
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742 $ac_path_GREP_found && break 3
5752 GREP="$ac_cv_path_GREP"
5753 if test -z "$GREP"; then
5754 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5755 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5756 { (exit 1); exit 1; }; }
5760 ac_cv_path_GREP=$GREP
5765 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5766 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5767 GREP="$ac_cv_path_GREP"
5770 { echo "$as_me:$LINENO: checking for egrep" >&5
5771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_EGREP+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5776 then ac_cv_path_EGREP="$GREP -E"
5778 # Extract the first word of "egrep" to use in msg output
5779 if test -z "$EGREP"; then
5780 set dummy egrep; ac_prog_name=$2
5781 if test "${ac_cv_path_EGREP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 ac_path_EGREP_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5790 test -z "$as_dir" && as_dir=.
5791 for ac_prog in egrep; do
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5794 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5795 # Check for GNU ac_path_EGREP and select it if it is found.
5796 # Check for GNU $ac_path_EGREP
5797 case `"$ac_path_EGREP" --version 2>&1` in
5799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5805 cat "conftest.in" "conftest.in" >"conftest.tmp"
5806 mv "conftest.tmp" "conftest.in"
5807 cp "conftest.in" "conftest.nl"
5808 echo 'EGREP' >> "conftest.nl"
5809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811 ac_count=`expr $ac_count + 1`
5812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5813 # Best one so far, save it but keep looking for a better one
5814 ac_cv_path_EGREP="$ac_path_EGREP"
5815 ac_path_EGREP_max=$ac_count
5817 # 10*(2^10) chars as input seems more than enough
5818 test $ac_count -gt 10 && break
5820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5824 $ac_path_EGREP_found && break 3
5834 EGREP="$ac_cv_path_EGREP"
5835 if test -z "$EGREP"; then
5836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5838 { (exit 1); exit 1; }; }
5842 ac_cv_path_EGREP=$EGREP
5848 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5849 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5850 EGREP="$ac_cv_path_EGREP"
5854 # Check whether --with-gnu-ld was given.
5855 if test "${with_gnu_ld+set}" = set; then
5856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5862 if test "$GCC" = yes; then
5863 # Check if gcc -print-prog-name=ld gives a path.
5864 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5865 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5868 # gcc leaves a trailing carriage return which upsets mingw
5869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5874 # Accept absolute paths.
5876 re_direlt='/[^/][^/]*/\.\./'
5877 # Canonicalize the pathname of ld
5878 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5879 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5880 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5882 test -z "$LD" && LD="$ac_prog"
5885 # If it fails, then pretend we aren't using GCC.
5889 # If it is relative, then search for the first ld in PATH.
5893 elif test "$with_gnu_ld" = yes; then
5894 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5895 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5897 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5898 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5900 if test "${lt_cv_path_LD+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 if test -z "$LD"; then
5904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5907 test -z "$ac_dir" && ac_dir=.
5908 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5909 lt_cv_path_LD="$ac_dir/$ac_prog"
5910 # Check to see if the program is GNU ld. I'd rather use --version,
5911 # but apparently some variants of GNU ld only accept -v.
5912 # Break only if it was the GNU/non-GNU ld that we prefer.
5913 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5914 *GNU* | *'with BFD'*)
5915 test "$with_gnu_ld" != no && break
5918 test "$with_gnu_ld" != yes && break
5925 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5930 if test -n "$LD"; then
5931 { echo "$as_me:$LINENO: result: $LD" >&5
5932 echo "${ECHO_T}$LD" >&6; }
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5937 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5938 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5939 { (exit 1); exit 1; }; }
5940 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5941 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948 lt_cv_prog_gnu_ld=yes
5951 lt_cv_prog_gnu_ld=no
5955 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5956 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5960 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5961 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5962 if test "${lt_cv_ld_reload_flag+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 lt_cv_ld_reload_flag='-r'
5967 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5968 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5969 reload_flag=$lt_cv_ld_reload_flag
5970 case $reload_flag in
5972 *) reload_flag=" $reload_flag" ;;
5974 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5977 if test "$GCC" = yes; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5985 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5986 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5987 if test "${lt_cv_path_NM+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$NM"; then
5991 # Let the user override the test.
5994 lt_nm_to_check="${ac_tool_prefix}nm"
5995 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5996 lt_nm_to_check="$lt_nm_to_check nm"
5998 for lt_tmp_nm in $lt_nm_to_check; do
5999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6002 test -z "$ac_dir" && ac_dir=.
6003 tmp_nm="$ac_dir/$lt_tmp_nm"
6004 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6005 # Check to see if the nm accepts a BSD-compat flag.
6006 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6007 # nm: unknown option "B" ignored
6008 # Tru64's nm complains that /dev/null is an invalid object file
6009 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6010 */dev/null* | *'Invalid file or object type'*)
6011 lt_cv_path_NM="$tmp_nm -B"
6015 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6017 lt_cv_path_NM="$tmp_nm -p"
6021 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6022 continue # so that we can try to find one that supports BSD flags
6031 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6034 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6035 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6038 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6039 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6040 if test "${lt_cv_deplibs_check_method+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 lt_cv_file_magic_cmd='$MAGIC_CMD'
6044 lt_cv_file_magic_test_file=
6045 lt_cv_deplibs_check_method='unknown'
6046 # Need to set the preceding variable on all platforms that support
6047 # interlibrary dependencies.
6048 # 'none' -- dependencies not supported.
6049 # `unknown' -- same as none, but documents that we really don't know.
6050 # 'pass_all' -- all dependencies passed with no checks.
6051 # 'test_compile' -- check by making test program.
6052 # 'file_magic [[regex]]' -- check by looking for files in library path
6053 # which responds to the $file_magic_cmd with a given extended regex.
6054 # If you have `file' or equivalent on your system and you're not sure
6055 # whether `pass_all' will *always* work, you probably want this one.
6059 lt_cv_deplibs_check_method=pass_all
6063 lt_cv_deplibs_check_method=pass_all
6067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6068 lt_cv_file_magic_cmd='/usr/bin/file -L'
6069 lt_cv_file_magic_test_file=/shlib/libc.so
6073 # func_win32_libid is a shell function defined in ltmain.sh
6074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6075 lt_cv_file_magic_cmd='func_win32_libid'
6079 # Base MSYS/MinGW do not provide the 'file' command needed by
6080 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6081 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6082 lt_cv_file_magic_cmd='$OBJDUMP -f'
6085 darwin* | rhapsody*)
6086 lt_cv_deplibs_check_method=pass_all
6089 freebsd* | dragonfly*)
6090 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6093 # Not sure whether the presence of OpenBSD here was a mistake.
6094 # Let's accept both of them until this is cleared up.
6095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6096 lt_cv_file_magic_cmd=/usr/bin/file
6097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6101 lt_cv_deplibs_check_method=pass_all
6106 lt_cv_deplibs_check_method=pass_all
6109 hpux10.20* | hpux11*)
6110 lt_cv_file_magic_cmd=/usr/bin/file
6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6117 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]'
6118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6132 irix5* | irix6* | nonstopux*)
6134 *-32|*"-32 ") libmagic=32-bit;;
6135 *-n32|*"-n32 ") libmagic=N32;;
6136 *-64|*"-64 ") libmagic=64-bit;;
6137 *) libmagic=never-match;;
6139 lt_cv_deplibs_check_method=pass_all
6142 # This must be Linux ELF.
6143 linux* | k*bsd*-gnu)
6144 lt_cv_deplibs_check_method=pass_all
6147 netbsd* | netbsdelf*-gnu)
6148 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6162 lt_cv_deplibs_check_method=unknown
6166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 osf3* | osf4* | osf5*)
6174 lt_cv_deplibs_check_method=pass_all
6178 lt_cv_deplibs_check_method=pass_all
6182 case $host_vendor in
6184 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]'
6185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6188 lt_cv_deplibs_check_method=pass_all
6191 lt_cv_file_magic_cmd='/bin/file'
6192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6195 lt_cv_file_magic_cmd='/bin/file'
6196 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197 lt_cv_file_magic_test_file=/lib/libc.so
6200 lt_cv_deplibs_check_method=pass_all
6203 lt_cv_deplibs_check_method=pass_all
6208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6209 lt_cv_deplibs_check_method=pass_all
6214 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6215 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6216 file_magic_cmd=$lt_cv_file_magic_cmd
6217 deplibs_check_method=$lt_cv_deplibs_check_method
6218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6223 # If no C compiler was specified, use CC.
6226 # If no C compiler flags were specified, use CFLAGS.
6227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6229 # Allow CC to be a program name with arguments.
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234 enableval=$enable_libtool_lock;
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6239 # Some flags need to be propagated to the compiler or linker for good
6243 # Find out which ABI we are using.
6244 echo 'int i;' > conftest.$ac_ext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; then
6250 case `/usr/bin/file conftest.$ac_objext` in
6262 # Find out which ABI we are using.
6263 echo '#line __oline__ "configure"' > conftest.$ac_ext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; then
6269 if test "$lt_cv_prog_gnu_ld" = yes; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6272 LD="${LD-ld} -melf32bsmip"
6275 LD="${LD-ld} -melf32bmipn32"
6278 LD="${LD-ld} -melf64bmip"
6282 case `/usr/bin/file conftest.$ac_objext` in
6298 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6299 # Find out which ABI we are using.
6300 echo 'int i;' > conftest.$ac_ext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; then
6306 case `/usr/bin/file conftest.o` in
6310 LD="${LD-ld} -m elf_i386"
6312 ppc64-*linux*|powerpc64-*linux*)
6313 LD="${LD-ld} -m elf32ppclinux"
6316 LD="${LD-ld} -m elf_s390"
6319 LD="${LD-ld} -m elf32_sparc"
6326 LD="${LD-ld} -m elf_x86_64"
6328 ppc*-*linux*|powerpc*-*linux*)
6329 LD="${LD-ld} -m elf64ppc"
6332 LD="${LD-ld} -m elf64_s390"
6335 LD="${LD-ld} -m elf64_sparc"
6345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6346 SAVE_CFLAGS="$CFLAGS"
6347 CFLAGS="$CFLAGS -belf"
6348 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6349 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6350 if test "${lt_cv_cc_needs_belf+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359 cat >conftest.$ac_ext <<_ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (ac_try="$ac_link"
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_link") 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_c_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest$ac_exeext &&
6391 $as_test_x conftest$ac_exeext; then
6392 lt_cv_cc_needs_belf=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 lt_cv_cc_needs_belf=no
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401 conftest$ac_exeext conftest.$ac_ext
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6410 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6411 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413 CFLAGS="$SAVE_CFLAGS"
6417 # Find out which ABI we are using.
6418 echo 'int i;' > conftest.$ac_ext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420 (eval $ac_compile) 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; then
6424 case `/usr/bin/file conftest.o` in
6426 case $lt_cv_prog_gnu_ld in
6427 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428 *) LD="${LD-ld} -64" ;;
6439 need_locks="$enable_libtool_lock"
6443 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6445 if test "${ac_cv_header_stdc+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.$ac_objext; then
6484 ac_cv_header_stdc=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_cv_header_stdc=no
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 if test $ac_cv_header_stdc = yes; then
6495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506 $EGREP "memchr" >/dev/null 2>&1; then
6509 ac_cv_header_stdc=no
6515 if test $ac_cv_header_stdc = yes; then
6516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6517 cat >conftest.$ac_ext <<_ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 $EGREP "free" >/dev/null 2>&1; then
6530 ac_cv_header_stdc=no
6536 if test $ac_cv_header_stdc = yes; then
6537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6538 if test "$cross_compiling" = yes; then
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6553 # define ISLOWER(c) \
6554 (('a' <= (c) && (c) <= 'i') \
6555 || ('j' <= (c) && (c) <= 'r') \
6556 || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6565 for (i = 0; i < 256; i++)
6566 if (XOR (islower (i), ISLOWER (i))
6567 || toupper (i) != TOUPPER (i))
6572 rm -f conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_link") 2>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6594 echo "$as_me: program exited with status $ac_status" >&5
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_header_stdc=no
6601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6607 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6608 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6609 if test $ac_cv_header_stdc = yes; then
6611 cat >>confdefs.h <<\_ACEOF
6612 @%:@define STDC_HEADERS 1
6617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6628 inttypes.h stdint.h unistd.h
6630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6644 @%:@include <$ac_header>
6646 rm -f conftest.$ac_objext
6647 if { (ac_try="$ac_compile"
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_compile") 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest.$ac_objext; then
6663 eval "$as_ac_Header=yes"
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 eval "$as_ac_Header=no"
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674 { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677 cat >>confdefs.h <<_ACEOF
6678 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6687 for ac_header in dlfcn.h
6689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_res=`eval echo '${'$as_ac_Header'}'`
6697 { echo "$as_me:$LINENO: result: $ac_res" >&5
6698 echo "${ECHO_T}$ac_res" >&6; }
6700 # Is the header compilable?
6701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6703 cat >conftest.$ac_ext <<_ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 $ac_includes_default
6710 @%:@include <$ac_header>
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6721 grep -v '^ *+' conftest.er1 >conftest.err
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.$ac_objext; then
6729 ac_header_compiler=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 ac_header_compiler=no
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6739 echo "${ECHO_T}$ac_header_compiler" >&6; }
6741 # Is the header present?
6742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 @%:@include <$ac_header>
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev/null && {
6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6768 ac_header_preproc=yes
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 ac_header_preproc=no
6776 rm -f conftest.err conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6778 echo "${ECHO_T}$ac_header_preproc" >&6; }
6780 # So? What about this header?
6781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6787 ac_header_preproc=yes
6790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6803 @%:@@%:@ ------------------------------- @%:@@%:@
6804 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6805 @%:@@%:@ ------------------------------- @%:@@%:@
6807 ) | sed "s/^/$as_me: WARNING: /" >&2
6810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 eval "$as_ac_Header=\$ac_header_preproc"
6817 ac_res=`eval echo '${'$as_ac_Header'}'`
6818 { echo "$as_me:$LINENO: result: $ac_res" >&5
6819 echo "${ECHO_T}$ac_res" >&6; }
6822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6823 cat >>confdefs.h <<_ACEOF
6824 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6833 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6834 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6835 (test "X$CXX" != "Xg++"))) ; then
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6842 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6843 if test -z "$CXXCPP"; then
6844 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 # Double quotes because CXXCPP needs to be expanded
6848 for CXXCPP in "$CXX -E" "/lib/cpp"
6851 for ac_cxx_preproc_warn_flag in '' yes
6853 # Use a header file that comes with gcc, so configuring glibc
6854 # with a fresh cross-compiler works.
6855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856 # <limits.h> exists even on freestanding compilers.
6857 # On the NeXT, cc -E runs the code through the compiler's parser,
6858 # not just through cpp. "Syntax error" is here to catch this case.
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6866 @%:@ include <limits.h>
6868 @%:@ include <assert.h>
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6880 grep -v '^ *+' conftest.er1 >conftest.err
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } >/dev/null && {
6885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6886 test ! -s conftest.err
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6893 # Broken: fails on valid input.
6897 rm -f conftest.err conftest.$ac_ext
6899 # OK, works on sane cases. Now check whether nonexistent headers
6900 # can be detected and how.
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 @%:@include <ac_nonexistent.h>
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null && {
6922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6923 test ! -s conftest.err
6925 # Broken: success on invalid input.
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 # Passes both tests.
6936 rm -f conftest.err conftest.$ac_ext
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then
6946 ac_cv_prog_CXXCPP=$CXXCPP
6949 CXXCPP=$ac_cv_prog_CXXCPP
6951 ac_cv_prog_CXXCPP=$CXXCPP
6953 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6954 echo "${ECHO_T}$CXXCPP" >&6; }
6956 for ac_cxx_preproc_warn_flag in '' yes
6958 # Use a header file that comes with gcc, so configuring glibc
6959 # with a fresh cross-compiler works.
6960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6961 # <limits.h> exists even on freestanding compilers.
6962 # On the NeXT, cc -E runs the code through the compiler's parser,
6963 # not just through cpp. "Syntax error" is here to catch this case.
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6971 @%:@ include <limits.h>
6973 @%:@ include <assert.h>
6977 if { (ac_try="$ac_cpp conftest.$ac_ext"
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev/null && {
6990 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6991 test ! -s conftest.err
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 # Broken: fails on valid input.
7002 rm -f conftest.err conftest.$ac_ext
7004 # OK, works on sane cases. Now check whether nonexistent headers
7005 # can be detected and how.
7006 cat >conftest.$ac_ext <<_ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 @%:@include <ac_nonexistent.h>
7014 if { (ac_try="$ac_cpp conftest.$ac_ext"
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7022 grep -v '^ *+' conftest.er1 >conftest.err
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } >/dev/null && {
7027 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7028 test ! -s conftest.err
7030 # Broken: success on invalid input.
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 # Passes both tests.
7041 rm -f conftest.err conftest.$ac_ext
7044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7045 rm -f conftest.err conftest.$ac_ext
7046 if $ac_preproc_ok; then
7049 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7050 See \`config.log' for more details." >&5
7051 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7052 See \`config.log' for more details." >&2;}
7053 { (exit 1); exit 1; }; }
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7066 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7067 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7069 if test -n "$ac_tool_prefix"; then
7070 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
7072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_F77+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 if test -n "$F77"; then
7080 ac_cv_prog_F77="$F77" # Let the user override the test.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 if test -n "$F77"; then
7101 { echo "$as_me:$LINENO: result: $F77" >&5
7102 echo "${ECHO_T}$F77" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 test -n "$F77" && break
7112 if test -z "$F77"; then
7114 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
7116 # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 if test -n "$ac_ct_F77"; then
7124 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_ac_ct_F77="$ac_prog"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7144 if test -n "$ac_ct_F77"; then
7145 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7146 echo "${ECHO_T}$ac_ct_F77" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7153 test -n "$ac_ct_F77" && break
7156 if test "x$ac_ct_F77" = x; then
7159 case $cross_compiling:$ac_tool_warned in
7161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet. If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&5
7164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7165 whose name does not start with the host triplet. If you think this
7166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7167 ac_tool_warned=yes ;;
7174 # Provide some information about the compiler.
7175 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7176 ac_compiler=`set X $ac_compile; echo $2`
7177 { (ac_try="$ac_compiler --version >&5"
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compiler --version >&5") 2>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }
7187 { (ac_try="$ac_compiler -v >&5"
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compiler -v >&5") 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }
7197 { (ac_try="$ac_compiler -V >&5"
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compiler -V >&5") 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }
7209 # If we don't use `.F' as extension, the preprocessor is not run on the
7210 # input file. (Note that this only needs to work for GNU compilers.)
7213 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7214 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7215 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 cat >conftest.$ac_ext <<_ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_f77_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7255 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7256 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7258 ac_test_FFLAGS=${FFLAGS+set}
7259 ac_save_FFLAGS=$FFLAGS
7261 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7262 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7263 if test "${ac_cv_prog_f77_g+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_f77_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_prog_f77_g=yes
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7301 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7302 if test "$ac_test_FFLAGS" = set; then
7303 FFLAGS=$ac_save_FFLAGS
7304 elif test $ac_cv_prog_f77_g = yes; then
7305 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7311 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7318 G77=`test $ac_compiler_gnu = yes && echo yes`
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7329 # find the maximum length of command line arguments
7330 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7331 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7332 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 # On DJGPP, this test can blow up pretty badly due to problems in libc
7341 # (any single argument exceeding 2000 bytes causes a buffer overrun
7342 # during glob expansion). Even if it were fixed, the result of this
7343 # check would be larger than it should be.
7344 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7348 # Under GNU Hurd, this test is not required because there is
7349 # no limit to the length of command line arguments.
7350 # Libtool will interpret -1 as no limit whatsoever
7351 lt_cv_sys_max_cmd_len=-1;
7355 # On Win9x/ME, this test blows up -- it succeeds, but takes
7356 # about 5 minutes as the teststring grows exponentially.
7357 # Worse, since 9x/ME are not pre-emptively multitasking,
7358 # you end up with a "frozen" computer, even though with patience
7359 # the test eventually succeeds (with a max line length of 256k).
7360 # Instead, let's just punt: use the minimum linelength reported by
7361 # all of the supported platforms: 8192 (on NT/2K/XP).
7362 lt_cv_sys_max_cmd_len=8192;
7366 # On AmigaOS with pdksh, this test takes hours, literally.
7367 # So we just punt and use a minimum line length of 8192.
7368 lt_cv_sys_max_cmd_len=8192;
7371 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7372 # This has been around since 386BSD, at least. Likely further.
7373 if test -x /sbin/sysctl; then
7374 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7375 elif test -x /usr/sbin/sysctl; then
7376 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7378 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7380 # And add a safety zone
7381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7386 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7387 lt_cv_sys_max_cmd_len=196608
7391 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7392 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7393 # nice to cause kernel panics so lets avoid the loop below.
7394 # First set a reasonable default.
7395 lt_cv_sys_max_cmd_len=16384
7397 if test -x /sbin/sysconfig; then
7398 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7399 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7404 lt_cv_sys_max_cmd_len=102400
7406 sysv5* | sco5v6* | sysv4.2uw2*)
7407 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7408 if test -n "$kargmax"; then
7409 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7411 lt_cv_sys_max_cmd_len=32768
7415 # If test is not a shell built-in, we'll probably end up computing a
7416 # maximum length that is only half of the actual maximum length, but
7418 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7419 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7420 = "XX$teststring") >/dev/null 2>&1 &&
7421 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7422 lt_cv_sys_max_cmd_len=$new_result &&
7423 test $i != 17 # 1/2 MB should be enough
7426 teststring=$teststring$teststring
7429 # Add a significant safety factor because C++ compilers can tack on massive
7430 # amounts of additional arguments before passing them to the linker.
7431 # It appears as though 1/2 is a usable value.
7432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7438 if test -n $lt_cv_sys_max_cmd_len ; then
7439 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7440 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7442 { echo "$as_me:$LINENO: result: none" >&5
7443 echo "${ECHO_T}none" >&6; }
7449 # Check for command to grab the raw symbol name followed by C symbol from nm.
7450 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7451 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7452 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 # These are sane defaults that work on at least a few old systems.
7457 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7459 # Character class describing NM global symbol codes.
7460 symcode='[BCDEGRST]'
7462 # Regexp to match symbols that can be accessed directly from C.
7463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7465 # Transform an extracted symbol line into a proper C declaration
7466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7468 # Transform an extracted symbol line into symbol name and symbol address
7469 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'"
7471 # Define system-specific variables.
7476 cygwin* | mingw* | pw32*)
7477 symcode='[ABCDGISTW]'
7479 hpux*) # Its linker distinguishes data from code symbols
7480 if test "$host_cpu" = ia64; then
7481 symcode='[ABCDEGRST]'
7483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7484 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'"
7486 linux* | k*bsd*-gnu)
7487 if test "$host_cpu" = ia64; then
7488 symcode='[ABCDGIRSTW]'
7489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7490 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'"
7494 symcode='[BCDEGRST]'
7497 symcode='[BCDEGQRST]'
7508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7516 # Handle CRLF in mingw tool chain
7520 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7524 # If we're using GNU nm, then use its standard symbol codes.
7525 case `$NM -V 2>&1` in
7526 *GNU* | *'with BFD'*)
7527 symcode='[ABCDGIRSTW]' ;;
7530 # Try without a prefix undercore, then with it.
7531 for ac_symprfx in "" "_"; do
7533 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7534 symxfrm="\\1 $ac_symprfx\\2 \\2"
7536 # Write the raw and C identifiers.
7537 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7539 # Check to see that the pipe works correctly.
7543 cat > conftest.$ac_ext <<EOF
7548 void nm_test_func(){}
7552 int main(){nm_test_var='a';nm_test_func();return(0);}
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; then
7560 # Now try to grab the symbols.
7562 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7563 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && test -s "$nlist"; then
7567 # Try sorting and uniquifying the output.
7568 if sort "$nlist" | uniq > "$nlist"T; then
7569 mv -f "$nlist"T "$nlist"
7574 # Make sure that we snagged all the symbols we need.
7575 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7576 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7577 cat <<EOF > conftest.$ac_ext
7583 # Now generate the symbol file.
7584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7586 cat <<EOF >> conftest.$ac_ext
7587 #if defined (__STDC__) && __STDC__
7588 # define lt_ptr_t void *
7590 # define lt_ptr_t char *
7594 /* The mapping between symbol names and symbols. */
7599 lt_preloaded_symbols[] =
7602 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7603 cat <<\EOF >> conftest.$ac_ext
7611 # Now try linking the two files.
7612 mv conftest.$ac_objext conftstm.$ac_objext
7613 lt_save_LIBS="$LIBS"
7614 lt_save_CFLAGS="$CFLAGS"
7615 LIBS="conftstm.$ac_objext"
7616 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7624 LIBS="$lt_save_LIBS"
7625 CFLAGS="$lt_save_CFLAGS"
7627 echo "cannot find nm_test_func in $nlist" >&5
7630 echo "cannot find nm_test_var in $nlist" >&5
7633 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7636 echo "$progname: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7639 rm -f conftest* conftst*
7641 # Do not use the global_symbol_pipe unless it works.
7642 if test "$pipe_works" = yes; then
7645 lt_cv_sys_global_symbol_pipe=
7651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7652 lt_cv_sys_global_symbol_to_cdecl=
7654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7655 { echo "$as_me:$LINENO: result: failed" >&5
7656 echo "${ECHO_T}failed" >&6; }
7658 { echo "$as_me:$LINENO: result: ok" >&5
7659 echo "${ECHO_T}ok" >&6; }
7662 { echo "$as_me:$LINENO: checking for objdir" >&5
7663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7664 if test "${lt_cv_objdir+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 rm -f .libs 2>/dev/null
7668 mkdir .libs 2>/dev/null
7669 if test -d .libs; then
7672 # MS-DOS does not allow filenames that begin with a dot.
7675 rmdir .libs 2>/dev/null
7677 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7678 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7679 objdir=$lt_cv_objdir
7687 # AIX sometimes has problems with the GCC collect2 program. For some
7688 # reason, if we set the COLLECT_NAMES environment variable, the problems
7689 # vanish in a puff of smoke.
7690 if test "X${COLLECT_NAMES+set}" != Xset; then
7692 export COLLECT_NAMES
7697 # Sed substitution that helps us do robust quoting. It backslashifies
7698 # metacharacters that are still active within double-quoted strings.
7699 Xsed='sed -e 1s/^X//'
7700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7702 # Same as above, but do not quote variable references.
7703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7705 # Sed substitution to delay expansion of an escaped shell variable in a
7706 # double_quote_subst'ed string.
7707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7709 # Sed substitution to avoid accidental globbing in evaled expressions
7710 no_glob_subst='s/\*/\\\*/g'
7716 default_ofile=libtool
7717 can_build_shared=yes
7719 # All known linkers require a `.a' archive for static linking (except MSVC,
7720 # which needs '.lib').
7722 ltmain="$ac_aux_dir/ltmain.sh"
7723 ofile="$default_ofile"
7724 with_gnu_ld="$lt_cv_prog_gnu_ld"
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}ar; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_prog_AR+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 if test -n "$AR"; then
7735 ac_cv_prog_AR="$AR" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_AR="${ac_tool_prefix}ar"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 if test -n "$AR"; then
7756 { echo "$as_me:$LINENO: result: $AR" >&5
7757 echo "${ECHO_T}$AR" >&6; }
7759 { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7765 if test -z "$ac_cv_prog_AR"; then
7767 # Extract the first word of "ar", so it can be a program name with args.
7768 set dummy ar; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test -n "$ac_ct_AR"; then
7775 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_ac_ct_AR="ar"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7795 if test -n "$ac_ct_AR"; then
7796 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7797 echo "${ECHO_T}$ac_ct_AR" >&6; }
7799 { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7803 if test "x$ac_ct_AR" = x; then
7806 case $cross_compiling:$ac_tool_warned in
7808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet. If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&5
7811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet. If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7814 ac_tool_warned=yes ;;
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_RANLIB+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 if test -n "$RANLIB"; then
7831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 RANLIB=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7853 echo "${ECHO_T}$RANLIB" >&6; }
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862 ac_ct_RANLIB=$RANLIB
7863 # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 if test -n "$ac_ct_RANLIB"; then
7871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_ac_ct_RANLIB="ranlib"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7893 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7899 if test "x$ac_ct_RANLIB" = x; then
7902 case $cross_compiling:$ac_tool_warned in
7904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7905 whose name does not start with the host triplet. If you think this
7906 configuration is useful to you, please write to autoconf@gnu.org." >&5
7907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7908 whose name does not start with the host triplet. If you think this
7909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7910 ac_tool_warned=yes ;;
7912 RANLIB=$ac_ct_RANLIB
7915 RANLIB="$ac_cv_prog_RANLIB"
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}strip; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_prog_STRIP+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 if test -n "$STRIP"; then
7927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 STRIP=$ac_cv_prog_STRIP
7947 if test -n "$STRIP"; then
7948 { echo "$as_me:$LINENO: result: $STRIP" >&5
7949 echo "${ECHO_T}$STRIP" >&6; }
7951 { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7957 if test -z "$ac_cv_prog_STRIP"; then
7959 # Extract the first word of "strip", so it can be a program name with args.
7960 set dummy strip; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 if test -n "$ac_ct_STRIP"; then
7967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_ac_ct_STRIP="strip"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7987 if test -n "$ac_ct_STRIP"; then
7988 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7989 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7991 { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7995 if test "x$ac_ct_STRIP" = x; then
7998 case $cross_compiling:$ac_tool_warned in
8000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8001 whose name does not start with the host triplet. If you think this
8002 configuration is useful to you, please write to autoconf@gnu.org." >&5
8003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8004 whose name does not start with the host triplet. If you think this
8005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8006 ac_tool_warned=yes ;;
8011 STRIP="$ac_cv_prog_STRIP"
8016 old_CFLAGS="$CFLAGS"
8018 # Set sane defaults for various variables
8019 test -z "$AR" && AR=ar
8020 test -z "$AR_FLAGS" && AR_FLAGS=cru
8021 test -z "$AS" && AS=as
8022 test -z "$CC" && CC=cc
8023 test -z "$LTCC" && LTCC=$CC
8024 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8025 test -z "$DLLTOOL" && DLLTOOL=dlltool
8026 test -z "$LD" && LD=ld
8027 test -z "$LN_S" && LN_S="ln -s"
8028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8029 test -z "$NM" && NM=nm
8030 test -z "$SED" && SED=sed
8031 test -z "$OBJDUMP" && OBJDUMP=objdump
8032 test -z "$RANLIB" && RANLIB=:
8033 test -z "$STRIP" && STRIP=:
8034 test -z "$ac_objext" && ac_objext=o
8036 # Determine commands to create old-style static archives.
8037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8038 old_postinstall_cmds='chmod 644 $oldlib'
8039 old_postuninstall_cmds=
8041 if test -n "$RANLIB"; then
8044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8053 for cc_temp in $compiler""; do
8055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8064 # Only perform the check for file, if the check method requires it
8065 case $deplibs_check_method in
8067 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8068 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8069 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8078 lt_save_MAGIC_CMD="$MAGIC_CMD"
8079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8081 for ac_dir in $ac_dummy; do
8083 test -z "$ac_dir" && ac_dir=.
8084 if test -f $ac_dir/${ac_tool_prefix}file; then
8085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8086 if test -n "$file_magic_test_file"; then
8087 case $deplibs_check_method in
8089 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8092 $EGREP "$file_magic_regex" > /dev/null; then
8097 *** Warning: the command libtool uses to detect shared libraries,
8098 *** $file_magic_cmd, produces output that libtool cannot recognize.
8099 *** The result is that libtool may fail to recognize shared libraries
8100 *** as such. This will affect the creation of libtool libraries that
8101 *** depend on shared libraries, but programs linked with such libtool
8102 *** libraries will work regardless of this problem. Nevertheless, you
8103 *** may want to report the problem to your system manager and/or to
8104 *** bug-libtool@gnu.org
8114 MAGIC_CMD="$lt_save_MAGIC_CMD"
8119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if test -n "$MAGIC_CMD"; then
8121 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8122 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8124 { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8128 if test -z "$lt_cv_path_MAGIC_CMD"; then
8129 if test -n "$ac_tool_prefix"; then
8130 { echo "$as_me:$LINENO: checking for file" >&5
8131 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8140 lt_save_MAGIC_CMD="$MAGIC_CMD"
8141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143 for ac_dir in $ac_dummy; do
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f $ac_dir/file; then
8147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8148 if test -n "$file_magic_test_file"; then
8149 case $deplibs_check_method in
8151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154 $EGREP "$file_magic_regex" > /dev/null; then
8159 *** Warning: the command libtool uses to detect shared libraries,
8160 *** $file_magic_cmd, produces output that libtool cannot recognize.
8161 *** The result is that libtool may fail to recognize shared libraries
8162 *** as such. This will affect the creation of libtool libraries that
8163 *** depend on shared libraries, but programs linked with such libtool
8164 *** libraries will work regardless of this problem. Nevertheless, you
8165 *** may want to report the problem to your system manager and/or to
8166 *** bug-libtool@gnu.org
8176 MAGIC_CMD="$lt_save_MAGIC_CMD"
8181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182 if test -n "$MAGIC_CMD"; then
8183 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8184 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8186 { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8202 # Check whether --enable-libtool-lock was given.
8203 if test "${enable_libtool_lock+set}" = set; then
8204 enableval=$enable_libtool_lock;
8207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8210 # Check whether --with-pic was given.
8211 if test "${with_pic+set}" = set; then
8212 withval=$with_pic; pic_mode="$withval"
8217 test -z "$pic_mode" && pic_mode=default
8219 # Use C for the default configuration in the libtool script
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229 # Source file extension for C test sources.
8232 # Object file extension for compiled C test sources.
8236 # Code to be used in simple compile tests
8237 lt_simple_compile_test_code="int some_variable = 0;\n"
8239 # Code to be used in simple link tests
8240 lt_simple_link_test_code='int main(){return(0);}\n'
8243 # If no C compiler was specified, use CC.
8246 # If no C compiler flags were specified, use CFLAGS.
8247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8249 # Allow CC to be a program name with arguments.
8253 # save warnings/boilerplate of simple test code
8254 ac_outfile=conftest.$ac_objext
8255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257 _lt_compiler_boilerplate=`cat conftest.err`
8260 ac_outfile=conftest.$ac_objext
8261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263 _lt_linker_boilerplate=`cat conftest.err`
8268 ## There is no encapsulation within the following macros, do not change
8269 ## the running order or otherwise move them around unless you know exactly
8270 ## what you are doing...
8272 lt_prog_compiler_no_builtin_flag=
8274 if test "$GCC" = yes; then
8275 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8278 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8279 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8280 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 lt_cv_prog_compiler_rtti_exceptions=no
8284 ac_outfile=conftest.$ac_objext
8285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8286 lt_compiler_flag="-fno-rtti -fno-exceptions"
8287 # Insert the option either (1) after the last *FLAGS variable, or
8288 # (2) before a word containing "conftest.", or (3) at the end.
8289 # Note that $ac_compile itself does not contain backslashes and begins
8290 # with a dollar sign (not a hyphen), so the echo should work correctly.
8291 # The option is referenced via a variable to avoid confusing sed.
8292 lt_compile=`echo "$ac_compile" | $SED \
8293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8295 -e 's:$: $lt_compiler_flag:'`
8296 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8297 (eval "$lt_compile" 2>conftest.err)
8299 cat conftest.err >&5
8300 echo "$as_me:__oline__: \$? = $ac_status" >&5
8301 if (exit $ac_status) && test -s "$ac_outfile"; then
8302 # The compiler can only warn and ignore the option if not recognized
8303 # So say no if there are warnings other than the usual output.
8304 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8307 lt_cv_prog_compiler_rtti_exceptions=yes
8313 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8314 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8316 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8317 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8324 lt_prog_compiler_wl=
8325 lt_prog_compiler_pic=
8326 lt_prog_compiler_static=
8328 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8329 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8331 if test "$GCC" = yes; then
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_static='-static'
8337 # All AIX code is PIC.
8338 if test "$host_cpu" = ia64; then
8339 # AIX 5 now supports IA64 processor
8340 lt_prog_compiler_static='-Bstatic'
8345 # FIXME: we need at least 68020 code to build shared libraries, but
8346 # adding the `-m68020' flag to GCC prevents building anything better,
8348 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8351 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8352 # PIC is the default for these OSes.
8355 mingw* | pw32* | os2*)
8356 # This hack is so that the source file can tell whether it is being
8357 # built for inclusion in a dll (and should export symbols for example).
8358 lt_prog_compiler_pic='-DDLL_EXPORT'
8361 darwin* | rhapsody*)
8362 # PIC is the default on this platform
8363 # Common symbols not allowed in MH_DYLIB files
8364 lt_prog_compiler_pic='-fno-common'
8368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8369 # Instead, we relocate shared libraries at runtime.
8373 # Just because we use GCC doesn't mean we suddenly get shared libraries
8374 # on systems that don't support them.
8375 lt_prog_compiler_can_build_shared=no
8380 if test -d /usr/nec; then
8381 lt_prog_compiler_pic=-Kconform_pic
8386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8393 lt_prog_compiler_pic='-fPIC'
8399 lt_prog_compiler_pic='-fPIC'
8403 # PORTME Check for flag to pass linker flags through the system compiler.
8406 lt_prog_compiler_wl='-Wl,'
8407 if test "$host_cpu" = ia64; then
8408 # AIX 5 now supports IA64 processor
8409 lt_prog_compiler_static='-Bstatic'
8411 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8415 # PIC is the default on this platform
8416 # Common symbols not allowed in MH_DYLIB files
8417 case $cc_basename in
8419 lt_prog_compiler_pic='-qnocommon'
8420 lt_prog_compiler_wl='-Wl,'
8425 mingw* | pw32* | os2*)
8426 # This hack is so that the source file can tell whether it is being
8427 # built for inclusion in a dll (and should export symbols for example).
8428 lt_prog_compiler_pic='-DDLL_EXPORT'
8431 hpux9* | hpux10* | hpux11*)
8432 lt_prog_compiler_wl='-Wl,'
8433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8440 lt_prog_compiler_pic='+Z'
8443 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8444 lt_prog_compiler_static='${wl}-a ${wl}archive'
8447 irix5* | irix6* | nonstopux*)
8448 lt_prog_compiler_wl='-Wl,'
8449 # PIC (with -KPIC) is the default.
8450 lt_prog_compiler_static='-non_shared'
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8458 linux* | k*bsd*-gnu)
8459 case $cc_basename in
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_pic='-KPIC'
8463 lt_prog_compiler_static='-static'
8465 pgcc* | pgf77* | pgf90* | pgf95*)
8466 # Portland Group compilers (*not* the Pentium gcc compiler,
8467 # which looks to be a dead project)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-fpic'
8470 lt_prog_compiler_static='-Bstatic'
8473 lt_prog_compiler_wl='-Wl,'
8474 # All Alpha code is PIC.
8475 lt_prog_compiler_static='-non_shared'
8480 osf3* | osf4* | osf5*)
8481 lt_prog_compiler_wl='-Wl,'
8482 # All OSF/1 code is PIC.
8483 lt_prog_compiler_static='-non_shared'
8487 lt_prog_compiler_pic='-KPIC'
8488 lt_prog_compiler_static='-Bstatic'
8489 case $cc_basename in
8491 lt_prog_compiler_wl='-Qoption ld ';;
8493 lt_prog_compiler_wl='-Wl,';;
8498 lt_prog_compiler_wl='-Qoption ld '
8499 lt_prog_compiler_pic='-PIC'
8500 lt_prog_compiler_static='-Bstatic'
8503 sysv4 | sysv4.2uw2* | sysv4.3*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8510 if test -d /usr/nec ;then
8511 lt_prog_compiler_pic='-Kconform_pic'
8512 lt_prog_compiler_static='-Bstatic'
8516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-KPIC'
8519 lt_prog_compiler_static='-Bstatic'
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_can_build_shared=no
8528 lt_prog_compiler_pic='-pic'
8529 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_can_build_shared=no
8538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8539 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8542 # Check to make sure the PIC flag actually works.
8544 if test -n "$lt_prog_compiler_pic"; then
8546 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8547 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8548 if test "${lt_prog_compiler_pic_works+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 lt_prog_compiler_pic_works=no
8552 ac_outfile=conftest.$ac_objext
8553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 # The option is referenced via a variable to avoid confusing sed.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>conftest.err)
8567 cat conftest.err >&5
8568 echo "$as_me:__oline__: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s "$ac_outfile"; then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings other than the usual output.
8572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575 lt_prog_compiler_pic_works=yes
8581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8582 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8584 if test x"$lt_prog_compiler_pic_works" = xyes; then
8585 case $lt_prog_compiler_pic in
8587 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8590 lt_prog_compiler_pic=
8591 lt_prog_compiler_can_build_shared=no
8596 # For platforms which do not support PIC, -DPIC is meaningless:
8598 lt_prog_compiler_pic=
8601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8606 # Check to make sure the static flag actually works.
8608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8609 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8610 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8611 if test "${lt_prog_compiler_static_works+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 lt_prog_compiler_static_works=no
8615 save_LDFLAGS="$LDFLAGS"
8616 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8617 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8618 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8619 # The linker can only warn and ignore the option if not recognized
8620 # So say no if there are warnings
8621 if test -s conftest.err; then
8622 # Append any errors to the config.log.
8623 cat conftest.err 1>&5
8624 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8626 if diff conftest.exp conftest.er2 >/dev/null; then
8627 lt_prog_compiler_static_works=yes
8630 lt_prog_compiler_static_works=yes
8634 LDFLAGS="$save_LDFLAGS"
8637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8638 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8640 if test x"$lt_prog_compiler_static_works" = xyes; then
8643 lt_prog_compiler_static=
8647 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8648 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8649 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 lt_cv_prog_compiler_c_o=no
8653 $rm -r conftest 2>/dev/null
8657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8659 lt_compiler_flag="-o out/conftest2.$ac_objext"
8660 # Insert the option either (1) after the last *FLAGS variable, or
8661 # (2) before a word containing "conftest.", or (3) at the end.
8662 # Note that $ac_compile itself does not contain backslashes and begins
8663 # with a dollar sign (not a hyphen), so the echo should work correctly.
8664 lt_compile=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>out/conftest.err)
8671 cat out/conftest.err >&5
8672 echo "$as_me:__oline__: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8675 # The compiler can only warn and ignore the option if not recognized
8676 # So say no if there are warnings
8677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8680 lt_cv_prog_compiler_c_o=yes
8685 # SGI C++ compiler will create directory out/ii_files/ for
8686 # template instantiation
8687 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8688 $rm out/* && rmdir out
8694 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8695 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8698 hard_links="nottested"
8699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8700 # do not overwrite the value of need_locks provided by the user
8701 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8702 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8707 ln conftest.a conftest.b 2>&5 || hard_links=no
8708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8709 { echo "$as_me:$LINENO: result: $hard_links" >&5
8710 echo "${ECHO_T}$hard_links" >&6; }
8711 if test "$hard_links" = no; then
8712 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8713 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8720 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8721 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8724 allow_undefined_flag=
8725 enable_shared_with_static_runtimes=no
8727 archive_expsym_cmds=
8728 old_archive_From_new_cmds=
8729 old_archive_from_expsyms_cmds=
8730 export_dynamic_flag_spec=
8731 whole_archive_flag_spec=
8732 thread_safe_flag_spec=
8733 hardcode_libdir_flag_spec=
8734 hardcode_libdir_flag_spec_ld=
8735 hardcode_libdir_separator=
8738 hardcode_shlibpath_var=unsupported
8739 link_all_deplibs=unknown
8740 hardcode_automatic=no
8743 always_export_symbols=no
8744 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8745 # include_expsyms should be a list of space-separated symbols to be *always*
8746 # included in the symbol list
8748 # exclude_expsyms can be an extended regexp of symbols to exclude
8749 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8751 # as well as any symbol that contains `d'.
8752 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8754 # platforms (ab)use it in PIC code, but their linkers get confused if
8755 # the symbol is explicitly referenced. Since portable code cannot
8756 # rely on this symbol name, it's probably fine to never include it in
8757 # preloaded symbol tables.
8758 extract_expsyms_cmds=
8759 # Just being paranoid about ensuring that cc_basename is set.
8760 for cc_temp in $compiler""; do
8762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8771 cygwin* | mingw* | pw32*)
8772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8773 # When not using gcc, we currently assume that we are using
8774 # Microsoft Visual C++.
8775 if test "$GCC" != yes; then
8780 # we just hope/assume this is gcc and not c89 (= MSVC++)
8789 if test "$with_gnu_ld" = yes; then
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8793 # Set some defaults for GNU ld with shared library support. These
8794 # are reset later if shared libraries are not supported. Putting them
8795 # here allows them to be overridden if necessary.
8796 runpath_var=LD_RUN_PATH
8797 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8798 export_dynamic_flag_spec='${wl}--export-dynamic'
8799 # ancient GNU ld didn't support --whole-archive et. al.
8800 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8801 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8803 whole_archive_flag_spec=
8805 supports_anon_versioning=no
8806 case `$LD -v 2>/dev/null` in
8807 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8808 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8809 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8810 *\ 2.11.*) ;; # other 2.11 versions
8811 *) supports_anon_versioning=yes ;;
8814 # See if GNU ld supports shared libraries.
8816 aix3* | aix4* | aix5*)
8817 # On AIX/PPC, the GNU linker is very broken
8818 if test "$host_cpu" != ia64; then
8822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8823 *** to be unable to reliably create shared libraries on AIX.
8824 *** Therefore, libtool is disabling shared libraries support. If you
8825 *** really care for shared libraries, you may want to modify your PATH
8826 *** so that a non-GNU linker is found, and then restart.
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8837 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8838 # that the semantics of dynamic libraries on AmigaOS, at least up
8839 # to version 4, is to share data among multiple programs linked
8840 # with the same dynamic library. Since this doesn't match the
8841 # behavior of shared libraries on other platforms, we can't use
8847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8848 allow_undefined_flag=unsupported
8849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8850 # support --undefined. This deserves some investigation. FIXME
8851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857 cygwin* | mingw* | pw32*)
8858 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8859 # as there is no search path for DLLs.
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 allow_undefined_flag=unsupported
8862 always_export_symbols=no
8863 enable_shared_with_static_runtimes=yes
8864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8866 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8868 # If the export-symbols file already is a .def file (1st line
8869 # is EXPORTS), use it as is; otherwise, prepend...
8870 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8871 cp $export_symbols $output_objdir/$soname.def;
8873 echo EXPORTS > $output_objdir/$soname.def;
8874 cat $export_symbols >> $output_objdir/$soname.def;
8876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8884 hardcode_shlibpath_var=no
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 export_dynamic_flag_spec='${wl}-E'
8887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8888 # Instead, shared libraries are loaded at an image base (0x10000000 by
8889 # default) and relocated if they conflict, which is a slow very memory
8890 # consuming and fragmenting process. To avoid this, we pick a random,
8891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8894 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'
8897 linux* | k*bsd*-gnu)
8898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8900 case $cc_basename,$host_cpu in
8901 pgcc*) # Portland Group C compiler
8902 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'
8903 tmp_addflag=' $pic_flag'
8905 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8906 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'
8907 tmp_addflag=' $pic_flag -Mnomain' ;;
8908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8909 tmp_addflag=' -i_dynamic' ;;
8910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8911 tmp_addflag=' -i_dynamic -nofor_main' ;;
8912 ifc* | ifort*) # Intel Fortran compiler
8913 tmp_addflag=' -nofor_main' ;;
8915 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 if test $supports_anon_versioning = yes; then
8918 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8920 $echo "local: *; };" >> $output_objdir/$libname.ver~
8921 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8929 netbsd* | netbsdelf*-gnu)
8930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8931 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8944 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8945 *** create shared libraries on Solaris systems. Therefore, libtool
8946 *** is disabling shared libraries support. We urge you to upgrade GNU
8947 *** binutils to release 2.9.1 or newer. Another option is to modify
8948 *** your PATH or compiler configuration so that the native linker is
8949 *** used, and then restart.
8952 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8961 case `$LD -v 2>&1` in
8962 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8966 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8967 *** reliably create shared libraries on SCO systems. Therefore, libtool
8968 *** is disabling shared libraries support. We urge you to upgrade GNU
8969 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8970 *** your PATH or compiler configuration so that the native linker is
8971 *** used, and then restart.
8976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8977 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8988 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_shlibpath_var=no
8995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 if test "$ld_shlibs" = no; then
9006 hardcode_libdir_flag_spec=
9007 export_dynamic_flag_spec=
9008 whole_archive_flag_spec=
9011 # PORTME fill in a description of your system's linker (not GNU ld)
9014 allow_undefined_flag=unsupported
9015 always_export_symbols=yes
9016 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'
9017 # Note: this linker hardcodes the directories in LIBPATH if there
9018 # are no directories specified by -L.
9019 hardcode_minus_L=yes
9020 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9021 # Neither direct hardcoding nor static linking is supported with a
9023 hardcode_direct=unsupported
9028 if test "$host_cpu" = ia64; then
9029 # On IA64, the linker does run time linking by default, so we don't
9030 # have to do anything special.
9031 aix_use_runtimelinking=no
9032 exp_sym_flag='-Bexport'
9035 # If we're using GNU nm, then we don't want the "-C" option.
9036 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9037 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9038 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'
9040 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'
9042 aix_use_runtimelinking=no
9044 # Test if we are trying to use run time linking or normal
9045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9046 # need to do runtime linking.
9047 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9048 for ld_flag in $LDFLAGS; do
9049 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9050 aix_use_runtimelinking=yes
9057 exp_sym_flag='-bexport'
9058 no_entry_flag='-bnoentry'
9061 # When large executables or shared objects are built, AIX ld can
9062 # have problems creating the table of contents. If linking a library
9063 # or program results in "error TOC overflow" add -mminimal-toc to
9064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9069 hardcode_libdir_separator=':'
9070 link_all_deplibs=yes
9072 if test "$GCC" = yes; then
9073 case $host_os in aix4.[012]|aix4.[012].*)
9074 # We only want to do this on AIX 4.2 and lower, the check
9075 # below for broken collect2 doesn't work under 4.3+
9076 collect2name=`${CC} -print-prog-name=collect2`
9077 if test -f "$collect2name" && \
9078 strings "$collect2name" | grep resolve_lib_name >/dev/null
9080 # We have reworked collect2
9083 # We have old collect2
9084 hardcode_direct=unsupported
9085 # It fails to find uninstalled libraries when the uninstalled
9086 # path is not listed in the libpath. Setting hardcode_minus_L
9087 # to unsupported forces relinking
9088 hardcode_minus_L=yes
9089 hardcode_libdir_flag_spec='-L$libdir'
9090 hardcode_libdir_separator=
9094 shared_flag='-shared'
9095 if test "$aix_use_runtimelinking" = yes; then
9096 shared_flag="$shared_flag "'${wl}-G'
9100 if test "$host_cpu" = ia64; then
9101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9102 # chokes on -Wl,-G. The following line is correct:
9105 if test "$aix_use_runtimelinking" = yes; then
9106 shared_flag='${wl}-G'
9108 shared_flag='${wl}-bM:SRE'
9113 # It seems that -bexpall does not export symbols beginning with
9114 # underscore (_), so it is better to generate a list of symbols to export.
9115 always_export_symbols=yes
9116 if test "$aix_use_runtimelinking" = yes; then
9117 # Warning - without using the other runtime loading flags (-brtl),
9118 # -berok will link without error, but may produce a broken library.
9119 allow_undefined_flag='-berok'
9120 # Determine the default libpath from the value encoded in an empty executable.
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_link") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest$ac_exeext &&
9153 $as_test_x conftest$ac_exeext; then
9155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9157 # Check for a 64-bit object if we didn't find anything.
9158 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9168 conftest$ac_exeext conftest.$ac_ext
9169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9171 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9172 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"
9174 if test "$host_cpu" = ia64; then
9175 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9176 allow_undefined_flag="-z nodefs"
9177 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"
9179 # Determine the default libpath from the value encoded in an empty executable.
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_link") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest$ac_exeext &&
9212 $as_test_x conftest$ac_exeext; then
9214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9216 # Check for a 64-bit object if we didn't find anything.
9217 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9230 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9231 # Warning - without using the other run time loading flags,
9232 # -berok will link without error, but may produce a broken library.
9233 no_undefined_flag=' ${wl}-bernotok'
9234 allow_undefined_flag=' ${wl}-berok'
9235 # Exported symbols can be pulled into shared objects from archives
9236 whole_archive_flag_spec='$convenience'
9237 archive_cmds_need_lc=yes
9238 # This is similar to how AIX traditionally builds its shared libraries.
9239 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'
9245 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)'
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_minus_L=yes
9248 # see comment about different semantics on the GNU ld section
9253 export_dynamic_flag_spec=-rdynamic
9256 cygwin* | mingw* | pw32*)
9257 # When not using gcc, we currently assume that we are using
9258 # Microsoft Visual C++.
9259 # hardcode_libdir_flag_spec is actually meaningless, as there is
9260 # no search path for DLLs.
9261 hardcode_libdir_flag_spec=' '
9262 allow_undefined_flag=unsupported
9263 # Tell ltmain to make .lib files, not .a files.
9265 # Tell ltmain to make .dll files, not .so files.
9267 # FIXME: Setting linknames here is a bad hack.
9268 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9269 # The linker will automatically build a .lib file if we build a DLL.
9270 old_archive_From_new_cmds='true'
9271 # FIXME: Should let the user specify the lib program.
9272 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9273 fix_srcfile_path='`cygpath -w "$srcfile"`'
9274 enable_shared_with_static_runtimes=yes
9277 darwin* | rhapsody*)
9279 rhapsody* | darwin1.[012])
9280 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9284 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9286 case ${MACOSX_DEPLOYMENT_TARGET} in
9288 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9291 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9297 archive_cmds_need_lc=no
9299 hardcode_automatic=yes
9300 hardcode_shlibpath_var=unsupported
9301 whole_archive_flag_spec=''
9302 link_all_deplibs=yes
9303 if test "$GCC" = yes ; then
9304 output_verbose_link_cmd='echo'
9305 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9306 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9307 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9308 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9309 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}'
9311 case $cc_basename in
9313 output_verbose_link_cmd='echo'
9314 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9315 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9317 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9318 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}'
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_shlibpath_var=no
9337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9338 # support. Future versions do this automatically, but an explicit c++rt0.o
9339 # does not break anything, and helps significantly (at the cost of a little
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9343 hardcode_libdir_flag_spec='-R$libdir'
9345 hardcode_shlibpath_var=no
9348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9357 freebsd* | dragonfly*)
9358 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9359 hardcode_libdir_flag_spec='-R$libdir'
9361 hardcode_shlibpath_var=no
9365 if test "$GCC" = yes; then
9366 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'
9368 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'
9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator=:
9374 # hardcode_minus_L: Not really in the search PATH,
9375 # but as the default location of the library.
9376 hardcode_minus_L=yes
9377 export_dynamic_flag_spec='${wl}-E'
9381 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9386 if test "$with_gnu_ld" = no; then
9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9388 hardcode_libdir_separator=:
9391 export_dynamic_flag_spec='${wl}-E'
9393 # hardcode_minus_L: Not really in the search PATH,
9394 # but as the default location of the library.
9395 hardcode_minus_L=yes
9400 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9425 if test "$with_gnu_ld" = no; then
9426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9427 hardcode_libdir_separator=:
9431 hardcode_libdir_flag_spec_ld='+b $libdir'
9433 hardcode_shlibpath_var=no
9437 export_dynamic_flag_spec='${wl}-E'
9439 # hardcode_minus_L: Not really in the search PATH,
9440 # but as the default location of the library.
9441 hardcode_minus_L=yes
9447 irix5* | irix6* | nonstopux*)
9448 if test "$GCC" = yes; then
9449 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'
9451 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'
9452 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 hardcode_libdir_separator=:
9456 link_all_deplibs=yes
9459 netbsd* | netbsdelf*-gnu)
9460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9463 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9465 hardcode_libdir_flag_spec='-R$libdir'
9467 hardcode_shlibpath_var=no
9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474 hardcode_libdir_separator=:
9475 hardcode_shlibpath_var=no
9480 hardcode_shlibpath_var=no
9481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9485 export_dynamic_flag_spec='${wl}-E'
9488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9490 hardcode_libdir_flag_spec='-R$libdir'
9493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_minus_L=yes
9503 allow_undefined_flag=unsupported
9504 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'
9505 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9509 if test "$GCC" = yes; then
9510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9511 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'
9513 allow_undefined_flag=' -expect_unresolved \*'
9514 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'
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
9520 osf4* | osf5*) # as osf3* with the addition of -msym flag
9521 if test "$GCC" = yes; then
9522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9523 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'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 allow_undefined_flag=' -expect_unresolved \*'
9527 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'
9528 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9529 $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'
9531 # Both c and cxx compiler support -rpath directly
9532 hardcode_libdir_flag_spec='-rpath $libdir'
9534 hardcode_libdir_separator=:
9538 no_undefined_flag=' -z text'
9539 if test "$GCC" = yes; then
9541 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9543 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9546 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9550 hardcode_libdir_flag_spec='-R$libdir'
9551 hardcode_shlibpath_var=no
9553 solaris2.[0-5] | solaris2.[0-5].*) ;;
9555 # The compiler driver will combine linker options so we
9556 # cannot just pass the convience library names through
9557 # without $wl, iff we do not link with $LD.
9558 # Luckily, gcc supports the same syntax we need for Sun Studio.
9559 # Supported since Solaris 2.6 (maybe 2.5.1?)
9562 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9564 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9567 link_all_deplibs=yes
9571 if test "x$host_vendor" = xsequent; then
9572 # Use $CC to link under sequent, because it throws in some extra .o
9573 # files that make .init and .fini sections work.
9574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_libdir_flag_spec='-L$libdir'
9580 hardcode_minus_L=yes
9581 hardcode_shlibpath_var=no
9585 case $host_vendor in
9587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_direct=yes # is this really true???
9591 ## LD is ld it makes a PLAMLIB
9592 ## CC just makes a GrossModule.
9593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9594 reload_cmds='$CC -r -o $output$reload_objs'
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9602 runpath_var='LD_RUN_PATH'
9603 hardcode_shlibpath_var=no
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_shlibpath_var=no
9609 export_dynamic_flag_spec='-Bexport'
9613 if test -d /usr/nec; then
9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_shlibpath_var=no
9616 runpath_var=LD_RUN_PATH
9617 hardcode_runpath_var=yes
9622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9623 no_undefined_flag='${wl}-z,text'
9624 archive_cmds_need_lc=no
9625 hardcode_shlibpath_var=no
9626 runpath_var='LD_RUN_PATH'
9628 if test "$GCC" = yes; then
9629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9637 sysv5* | sco3.2v5* | sco5v6*)
9638 # Note: We can NOT use -z defs as we might desire, because we do not
9639 # link with -lc, and that would cause any symbols used from libc to
9640 # always be unresolved, which means just about no library would
9641 # ever link correctly. If we're not using GNU ld we use -z text
9642 # though, which does catch some bad symbols but isn't as heavy-handed
9644 no_undefined_flag='${wl}-z,text'
9645 allow_undefined_flag='${wl}-z,nodefs'
9646 archive_cmds_need_lc=no
9647 hardcode_shlibpath_var=no
9648 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9649 hardcode_libdir_separator=':'
9650 link_all_deplibs=yes
9651 export_dynamic_flag_spec='${wl}-Bexport'
9652 runpath_var='LD_RUN_PATH'
9654 if test "$GCC" = yes; then
9655 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_shlibpath_var=no
9675 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9676 echo "${ECHO_T}$ld_shlibs" >&6; }
9677 test "$ld_shlibs" = no && can_build_shared=no
9680 # Do we need to explicitly link libc?
9682 case "x$archive_cmds_need_lc" in
9684 # Assume -lc should be added
9685 archive_cmds_need_lc=yes
9687 if test "$enable_shared" = yes && test "$GCC" = yes; then
9688 case $archive_cmds in
9690 # FIXME: we may have to deal with multi-command sequences.
9693 # Test whether the compiler implicitly links with -lc since on some
9694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9695 # to ld, don't add -lc before -lgcc.
9696 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9697 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } 2>conftest.err; then
9708 libobjs=conftest.$ac_objext
9710 wl=$lt_prog_compiler_wl
9711 pic_flag=$lt_prog_compiler_pic
9717 lt_save_allow_undefined_flag=$allow_undefined_flag
9718 allow_undefined_flag=
9719 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9720 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }
9725 archive_cmds_need_lc=no
9727 archive_cmds_need_lc=yes
9729 allow_undefined_flag=$lt_save_allow_undefined_flag
9731 cat conftest.err 1>&5
9734 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9735 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9745 libname_spec='lib$name'
9753 shlibpath_overrides_runpath=unknown
9755 dynamic_linker="$host_os ld.so"
9756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9757 if test "$GCC" = yes; then
9758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9760 # if the path contains ";" then we assume it to be the separator
9761 # otherwise default to the standard path separator (i.e. ":") - it is
9762 # assumed that no part of a normal pathname contains ";" but that should
9763 # okay in the real world where ";" in dirpaths is itself problematic.
9764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9771 need_lib_prefix=unknown
9772 hardcode_into_libs=no
9774 # when you set need_version to no, make sure it does not cause -set_version
9775 # flags to be left without arguments
9776 need_version=unknown
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9782 shlibpath_var=LIBPATH
9784 # AIX 3 has no versioning support, so we append a major version to the name.
9785 soname_spec='${libname}${release}${shared_ext}$major'
9792 hardcode_into_libs=yes
9793 if test "$host_cpu" = ia64; then
9794 # AIX 5 supports IA64
9795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9796 shlibpath_var=LD_LIBRARY_PATH
9798 # With GCC up to 2.95.x, collect2 would create an import file
9799 # for dependence libraries. The import file would start with
9800 # the line `#! .'. This would cause the generated library to
9801 # depend on `.', always an invalid library. This was fixed in
9802 # development snapshots of GCC prior to 3.0.
9804 aix4 | aix4.[01] | aix4.[01].*)
9805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9815 # soname into executable. Probably we can add versioning support to
9816 # collect2, so additional links can be useful in future.
9817 if test "$aix_use_runtimelinking" = yes; then
9818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9819 # instead of lib<name>.a to let people know that these are not
9820 # typical AIX shared libraries.
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 # We preserve .a as extension for shared libraries through AIX4.2
9824 # and later when we are not doing run time linking.
9825 library_names_spec='${libname}${release}.a $libname.a'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9828 shlibpath_var=LIBPATH
9833 library_names_spec='$libname.ixlibrary $libname.a'
9834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9835 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'
9839 library_names_spec='${libname}${shared_ext}'
9840 dynamic_linker="$host_os ld.so"
9841 shlibpath_var=LIBRARY_PATH
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9853 # the default ld.so.conf also contains /usr/contrib/lib and
9854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9855 # libtool to hard-code these into programs
9858 cygwin* | mingw* | pw32*)
9859 version_type=windows
9864 case $GCC,$host_os in
9865 yes,cygwin* | yes,mingw* | yes,pw32*)
9866 library_names_spec='$libname.dll.a'
9867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9868 postinstall_cmds='base_file=`basename \${file}`~
9869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9870 dldir=$destdir/`dirname \$dlpath`~
9871 test -d \$dldir || mkdir -p \$dldir~
9872 $install_prog $dir/$dlname \$dldir/$dlname~
9873 chmod a+x \$dldir/$dlname'
9874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9875 dlpath=$dir/\$dldll~
9877 shlibpath_overrides_runpath=yes
9881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9886 # MinGW DLLs use traditional 'lib' prefix
9887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9890 # It is most probably a Windows format PATH printed by
9891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9892 # path with ; separators, and with drive letters. We can handle the
9893 # drive letters (cygwin fileutils understands them), so leave them,
9894 # especially as we might pass files found there to a mingw objdump,
9895 # which wouldn't understand a cygwinified path. Ahh.
9896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9902 # pw32 DLLs use 'pw' prefix rather than 'lib'
9903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9912 dynamic_linker='Win32 ld.exe'
9913 # FIXME: first we should search . and the directory the executable is in
9917 darwin* | rhapsody*)
9918 dynamic_linker="$host_os dyld"
9922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9923 soname_spec='${libname}${release}${major}$shared_ext'
9924 shlibpath_overrides_runpath=yes
9925 shlibpath_var=DYLD_LIBRARY_PATH
9926 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9928 if test "$GCC" = yes; then
9929 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LD_LIBRARY_PATH
9949 freebsd* | dragonfly*)
9950 # DragonFly does not have aout. When/if they implement a new
9951 # versioning mechanism, adjust this.
9952 if test -x /usr/bin/objformat; then
9953 objformat=`/usr/bin/objformat`
9956 freebsd[123]*) objformat=aout ;;
9960 version_type=freebsd-$objformat
9961 case $version_type in
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9972 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=yes
9977 freebsd3.[01]* | freebsdelf3.[01]*)
9978 shlibpath_overrides_runpath=yes
9979 hardcode_into_libs=yes
9981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9983 shlibpath_overrides_runpath=no
9984 hardcode_into_libs=yes
9986 freebsd*) # from 4.6 on
9987 shlibpath_overrides_runpath=yes
9988 hardcode_into_libs=yes
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 hardcode_into_libs=yes
10003 hpux9* | hpux10* | hpux11*)
10004 # Give a soname corresponding to the major version so that dld.sl refuses to
10005 # link against other versions.
10012 hardcode_into_libs=yes
10013 dynamic_linker="$host_os dld.so"
10014 shlibpath_var=LD_LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 if test "X$HPUX_IA64_MODE" = X32; then
10019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10027 hardcode_into_libs=yes
10028 dynamic_linker="$host_os dld.sl"
10029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038 dynamic_linker="$host_os dld.sl"
10039 shlibpath_var=SHLIB_PATH
10040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10046 postinstall_cmds='chmod 555 $lib'
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=no
10058 hardcode_into_libs=yes
10061 irix5* | irix6* | nonstopux*)
10063 nonstopux*) version_type=nonstopux ;;
10065 if test "$lt_cv_prog_gnu_ld" = yes; then
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10076 irix5* | nonstopux*)
10077 libsuff= shlibsuff=
10080 case $LD in # libtool.m4 will add one of these switches to LD
10081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10082 libsuff= shlibsuff= libmagic=32-bit;;
10083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10084 libsuff=32 shlibsuff=N32 libmagic=N32;;
10085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10087 *) libsuff= shlibsuff= libmagic=never-match;;
10091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10092 shlibpath_overrides_runpath=no
10093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10095 hardcode_into_libs=yes
10098 # No shared lib support for Linux oldld, aout, or coff.
10099 linux*oldld* | linux*aout* | linux*coff*)
10103 # This must be Linux ELF.
10104 linux* | k*bsd*-gnu)
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=no
10113 # This implies no fast_install, which is unacceptable.
10114 # Some rework will be needed to allow for fast_install
10115 # before this can be enabled.
10116 hardcode_into_libs=yes
10118 # Append ld.so.conf contents to the search path
10119 if test -f /etc/ld.so.conf; then
10120 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10124 # We used to test for /lib/ld.so.1 and disable shared libraries on
10125 # powerpc, because MkLinux only supported shared libraries with the
10126 # GNU dynamic linker. Since this was broken with cross compilers,
10127 # most powerpc-linux boxes support dynamic linking these days and
10128 # people can always --disable-shared, the test was removed, and we
10129 # assume the GNU/Linux dynamic linker is in use.
10130 dynamic_linker='GNU/Linux ld.so'
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=no
10141 hardcode_into_libs=yes
10142 dynamic_linker='NetBSD ld.elf_so'
10149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10152 dynamic_linker='NetBSD (a.out) ld.so'
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 dynamic_linker='NetBSD ld.elf_so'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=yes
10160 hardcode_into_libs=yes
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath=yes
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10182 sys_lib_dlsearch_path_spec="/usr/lib"
10184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10187 *) need_version=no ;;
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10194 openbsd2.[89] | openbsd2.[89].*)
10195 shlibpath_overrides_runpath=no
10198 shlibpath_overrides_runpath=yes
10202 shlibpath_overrides_runpath=yes
10207 libname_spec='$name'
10210 library_names_spec='$libname${shared_ext} $libname.a'
10211 dynamic_linker='OS/2 ld.exe'
10212 shlibpath_var=LIBPATH
10215 osf3* | osf4* | osf5*)
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes
10234 hardcode_into_libs=yes
10235 # ldd complains unless libraries are executable
10236 postinstall_cmds='chmod +x $lib'
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10245 if test "$with_gnu_ld" = yes; then
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 case $host_vendor in
10258 shlibpath_overrides_runpath=no
10260 export_dynamic_flag_spec='${wl}-Blargedynsym'
10261 runpath_var=LD_RUN_PATH
10269 shlibpath_overrides_runpath=no
10270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10276 if test -d /usr/nec ;then
10278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10279 soname_spec='$libname${shared_ext}.$major'
10280 shlibpath_var=LD_LIBRARY_PATH
10284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10285 version_type=freebsd-elf
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 hardcode_into_libs=yes
10292 if test "$with_gnu_ld" = yes; then
10293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10294 shlibpath_overrides_runpath=no
10296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10297 shlibpath_overrides_runpath=yes
10300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10304 sys_lib_dlsearch_path_spec='/usr/lib'
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10318 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10319 echo "${ECHO_T}$dynamic_linker" >&6; }
10320 test "$dynamic_linker" = no && can_build_shared=no
10322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10323 if test "$GCC" = yes; then
10324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10327 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10330 if test -n "$hardcode_libdir_flag_spec" || \
10331 test -n "$runpath_var" || \
10332 test "X$hardcode_automatic" = "Xyes" ; then
10334 # We can hardcode non-existant directories.
10335 if test "$hardcode_direct" != no &&
10336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10337 # have to relink, otherwise we might link with an installed library
10338 # when we should be linking with a yet-to-be-installed one
10339 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10340 test "$hardcode_minus_L" != no; then
10341 # Linking always hardcodes the temporary library directory.
10342 hardcode_action=relink
10344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10345 hardcode_action=immediate
10348 # We cannot hardcode anything, or else we can only hardcode existing
10350 hardcode_action=unsupported
10352 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10353 echo "${ECHO_T}$hardcode_action" >&6; }
10355 if test "$hardcode_action" = relink; then
10356 # Fast installation is not supported
10357 enable_fast_install=no
10358 elif test "$shlibpath_overrides_runpath" = yes ||
10359 test "$enable_shared" = no; then
10360 # Fast installation is not necessary
10361 enable_fast_install=needless
10366 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10367 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10368 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10369 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10370 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10371 { echo "$as_me:$LINENO: result: yes" >&5
10372 echo "${ECHO_T}yes" >&6; }
10374 # FIXME - insert some real tests, host_os isn't really good enough
10377 if test -n "$STRIP" ; then
10378 striplib="$STRIP -x"
10379 { echo "$as_me:$LINENO: result: yes" >&5
10380 echo "${ECHO_T}yes" >&6; }
10382 { echo "$as_me:$LINENO: result: no" >&5
10383 echo "${ECHO_T}no" >&6; }
10387 { echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6; }
10393 if test "x$enable_dlopen" != xyes; then
10394 enable_dlopen=unknown
10395 enable_dlopen_self=unknown
10396 enable_dlopen_self_static=unknown
10403 lt_cv_dlopen="load_add_on"
10405 lt_cv_dlopen_self=yes
10409 lt_cv_dlopen="LoadLibrary"
10414 lt_cv_dlopen="dlopen"
10419 # if libdl is installed we need to link against it
10420 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10421 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10422 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 ac_check_lib_save_LIBS=$LIBS
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10434 /* Override any GCC internal prototype to avoid an error.
10435 Use char because int might match the return type of a GCC
10436 builtin and then its argument prototype would still apply. */
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && {
10463 test -z "$ac_c_werror_flag" ||
10464 test ! -s conftest.err
10465 } && test -s conftest$ac_exeext &&
10466 $as_test_x conftest$ac_exeext; then
10467 ac_cv_lib_dl_dlopen=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 ac_cv_lib_dl_dlopen=no
10475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10479 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10481 if test $ac_cv_lib_dl_dlopen = yes; then
10482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10485 lt_cv_dlopen="dyld"
10487 lt_cv_dlopen_self=yes
10494 { echo "$as_me:$LINENO: checking for shl_load" >&5
10495 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10496 if test "${ac_cv_func_shl_load+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10507 #define shl_load innocuous_shl_load
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char shl_load (); below.
10511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10512 <limits.h> exists even on freestanding compilers. */
10515 # include <limits.h>
10517 # include <assert.h>
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10529 /* The GNU C library defines this for functions which it implements
10530 to always fail with ENOSYS. Some functions are actually named
10531 something starting with __ and the normal name is an alias. */
10532 #if defined __stub_shl_load || defined __stub___shl_load
10539 return shl_load ();
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (ac_try="$ac_link"
10546 case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_link") 2>conftest.er1
10553 grep -v '^ *+' conftest.er1 >conftest.err
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_c_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest$ac_exeext &&
10561 $as_test_x conftest$ac_exeext; then
10562 ac_cv_func_shl_load=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_cv_func_shl_load=no
10570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10571 conftest$ac_exeext conftest.$ac_ext
10573 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10574 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10575 if test $ac_cv_func_shl_load = yes; then
10576 lt_cv_dlopen="shl_load"
10578 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10579 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 ac_check_lib_save_LIBS=$LIBS
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10592 /* Override any GCC internal prototype to avoid an error.
10593 Use char because int might match the return type of a GCC
10594 builtin and then its argument prototype would still apply. */
10602 return shl_load ();
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
10625 ac_cv_lib_dld_shl_load=yes
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 ac_cv_lib_dld_shl_load=no
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10638 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10639 if test $ac_cv_lib_dld_shl_load = yes; then
10640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10642 { echo "$as_me:$LINENO: checking for dlopen" >&5
10643 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10644 if test "${ac_cv_func_dlopen+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define dlopen innocuous_dlopen
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char dlopen (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10663 # include <limits.h>
10665 # include <assert.h>
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_dlopen || defined __stub___dlopen
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 ac_cv_func_dlopen=yes
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_func_dlopen=no
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10721 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10723 if test $ac_cv_func_dlopen = yes; then
10724 lt_cv_dlopen="dlopen"
10726 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 ac_check_lib_save_LIBS=$LIBS
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10740 /* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext &&
10772 $as_test_x conftest$ac_exeext; then
10773 ac_cv_lib_dl_dlopen=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10778 ac_cv_lib_dl_dlopen=no
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10785 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10787 if test $ac_cv_lib_dl_dlopen = yes; then
10788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10790 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10791 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10792 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lsvld $LIBS"
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (ac_try="$ac_link"
10821 case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_link") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext &&
10836 $as_test_x conftest$ac_exeext; then
10837 ac_cv_lib_svld_dlopen=yes
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_cv_lib_svld_dlopen=no
10845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10849 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10850 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10851 if test $ac_cv_lib_svld_dlopen = yes; then
10852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10854 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10855 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 ac_check_lib_save_LIBS=$LIBS
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10878 return dld_link ();
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_link") 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest$ac_exeext &&
10900 $as_test_x conftest$ac_exeext; then
10901 ac_cv_lib_dld_dld_link=yes
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_cv_lib_dld_dld_link=no
10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10914 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10915 if test $ac_cv_lib_dld_dld_link = yes; then
10916 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10937 if test "x$lt_cv_dlopen" != xno; then
10943 case $lt_cv_dlopen in
10945 save_CPPFLAGS="$CPPFLAGS"
10946 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10948 save_LDFLAGS="$LDFLAGS"
10949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10952 LIBS="$lt_cv_dlopen_libs $LIBS"
10954 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10955 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10956 if test "${lt_cv_dlopen_self+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 if test "$cross_compiling" = yes; then :
10960 lt_cv_dlopen_self=cross
10962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10963 lt_status=$lt_dlunknown
10964 cat > conftest.$ac_ext <<EOF
10965 #line __oline__ "configure"
10966 #include "confdefs.h"
10975 # define LT_DLGLOBAL RTLD_GLOBAL
10978 # define LT_DLGLOBAL DL_GLOBAL
10980 # define LT_DLGLOBAL 0
10984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10985 find out it does not work in some platform. */
10986 #ifndef LT_DLLAZY_OR_NOW
10988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10991 # define LT_DLLAZY_OR_NOW DL_LAZY
10994 # define LT_DLLAZY_OR_NOW RTLD_NOW
10997 # define LT_DLLAZY_OR_NOW DL_NOW
10999 # define LT_DLLAZY_OR_NOW 0
11007 extern "C" void exit (int);
11010 void fnord() { int i=42;}
11013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11014 int status = $lt_dlunknown;
11018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11020 /* dlclose (self); */
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11033 (./conftest; exit; ) >&5 2>/dev/null
11035 case x$lt_status in
11036 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11037 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11038 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11041 # compilation failed
11042 lt_cv_dlopen_self=no
11049 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11050 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11052 if test "x$lt_cv_dlopen_self" = xyes; then
11053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11054 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11055 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11056 if test "${lt_cv_dlopen_self_static+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 if test "$cross_compiling" = yes; then :
11060 lt_cv_dlopen_self_static=cross
11062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11063 lt_status=$lt_dlunknown
11064 cat > conftest.$ac_ext <<EOF
11065 #line __oline__ "configure"
11066 #include "confdefs.h"
11075 # define LT_DLGLOBAL RTLD_GLOBAL
11078 # define LT_DLGLOBAL DL_GLOBAL
11080 # define LT_DLGLOBAL 0
11084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11085 find out it does not work in some platform. */
11086 #ifndef LT_DLLAZY_OR_NOW
11088 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11091 # define LT_DLLAZY_OR_NOW DL_LAZY
11094 # define LT_DLLAZY_OR_NOW RTLD_NOW
11097 # define LT_DLLAZY_OR_NOW DL_NOW
11099 # define LT_DLLAZY_OR_NOW 0
11107 extern "C" void exit (int);
11110 void fnord() { int i=42;}
11113 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11114 int status = $lt_dlunknown;
11118 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11119 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11120 /* dlclose (self); */
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11133 (./conftest; exit; ) >&5 2>/dev/null
11135 case x$lt_status in
11136 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11137 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11138 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11141 # compilation failed
11142 lt_cv_dlopen_self_static=no
11149 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11150 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11153 CPPFLAGS="$save_CPPFLAGS"
11154 LDFLAGS="$save_LDFLAGS"
11159 case $lt_cv_dlopen_self in
11160 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11161 *) enable_dlopen_self=unknown ;;
11164 case $lt_cv_dlopen_self_static in
11165 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11166 *) enable_dlopen_self_static=unknown ;;
11171 # Report which library types will actually be built
11172 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11173 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11174 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11175 echo "${ECHO_T}$can_build_shared" >&6; }
11177 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11178 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11179 test "$can_build_shared" = "no" && enable_shared=no
11181 # On AIX, shared libraries and static libraries use the same namespace, and
11182 # are all built from PIC.
11185 test "$enable_shared" = yes && enable_static=no
11186 if test -n "$RANLIB"; then
11187 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11188 postinstall_cmds='$RANLIB $lib'
11193 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11194 test "$enable_shared" = yes && enable_static=no
11198 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11199 echo "${ECHO_T}$enable_shared" >&6; }
11201 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11202 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11203 # Make sure either enable_shared or enable_static is yes.
11204 test "$enable_shared" = yes || enable_static=yes
11205 { echo "$as_me:$LINENO: result: $enable_static" >&5
11206 echo "${ECHO_T}$enable_static" >&6; }
11208 # The else clause should only fire when bootstrapping the
11209 # libtool distribution, otherwise you forgot to ship ltmain.sh
11210 # with your package, and you will get complaints that there are
11211 # no rules to generate ltmain.sh.
11212 if test -f "$ltmain"; then
11213 # See if we are running on zsh, and set the options which allow our commands through
11214 # without removal of \ escapes.
11215 if test -n "${ZSH_VERSION+set}" ; then
11216 setopt NO_GLOB_SUBST
11218 # Now quote all the things that may contain metacharacters while being
11219 # careful not to overquote the AC_SUBSTed values. We take copies of the
11220 # variables and quote the copies for generation of the libtool script.
11221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11225 deplibs_check_method reload_flag reload_cmds need_locks \
11226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11227 lt_cv_sys_global_symbol_to_c_name_address \
11228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11229 old_postinstall_cmds old_postuninstall_cmds \
11233 lt_prog_compiler_wl \
11234 lt_prog_compiler_pic \
11235 lt_prog_compiler_static \
11236 lt_prog_compiler_no_builtin_flag \
11237 export_dynamic_flag_spec \
11238 thread_safe_flag_spec \
11239 whole_archive_flag_spec \
11240 enable_shared_with_static_runtimes \
11242 old_archive_from_new_cmds \
11247 compiler_lib_search_path \
11249 archive_expsym_cmds \
11251 postuninstall_cmds \
11252 old_archive_from_expsyms_cmds \
11253 allow_undefined_flag \
11254 no_undefined_flag \
11255 export_symbols_cmds \
11256 hardcode_libdir_flag_spec \
11257 hardcode_libdir_flag_spec_ld \
11258 hardcode_libdir_separator \
11259 hardcode_automatic \
11261 module_expsym_cmds \
11262 lt_cv_prog_compiler_c_o \
11264 include_expsyms; do
11267 old_archive_cmds | \
11268 old_archive_from_new_cmds | \
11270 archive_expsym_cmds | \
11272 module_expsym_cmds | \
11273 old_archive_from_expsyms_cmds | \
11274 export_symbols_cmds | \
11275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11276 postinstall_cmds | postuninstall_cmds | \
11277 old_postinstall_cmds | old_postuninstall_cmds | \
11278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11279 # Double-quote double-evaled strings.
11280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11289 *'\$0 --fallback-echo"')
11290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11294 cfgfile="${ofile}T"
11295 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11297 { echo "$as_me:$LINENO: creating $ofile" >&5
11298 echo "$as_me: creating $ofile" >&6;}
11300 cat <<__EOF__ >> "$cfgfile"
11303 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11304 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11307 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11308 # Free Software Foundation, Inc.
11310 # This file is part of GNU Libtool:
11311 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11313 # This program is free software; you can redistribute it and/or modify
11314 # it under the terms of the GNU General Public License as published by
11315 # the Free Software Foundation; either version 2 of the License, or
11316 # (at your option) any later version.
11318 # This program is distributed in the hope that it will be useful, but
11319 # WITHOUT ANY WARRANTY; without even the implied warranty of
11320 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11321 # General Public License for more details.
11323 # You should have received a copy of the GNU General Public License
11324 # along with this program; if not, write to the Free Software
11325 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11327 # As a special exception to the GNU General Public License, if you
11328 # distribute this file as part of a program that contains a
11329 # configuration script generated by Autoconf, you may include it under
11330 # the same distribution terms that you use for the rest of that program.
11332 # A sed program that does not truncate output.
11335 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11336 Xsed="$SED -e 1s/^X//"
11338 # The HP-UX ksh and POSIX shell print the target directory to stdout
11339 # if CDPATH is set.
11340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11342 # The names of the tagged configurations supported by this script.
11345 # ### BEGIN LIBTOOL CONFIG
11347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11349 # Shell to use when invoking shell scripts.
11352 # Whether or not to build shared libraries.
11353 build_libtool_libs=$enable_shared
11355 # Whether or not to build static libraries.
11356 build_old_libs=$enable_static
11358 # Whether or not to add -lc for building shared libraries.
11359 build_libtool_need_lc=$archive_cmds_need_lc
11361 # Whether or not to disallow shared libs when runtime libs are static
11362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11364 # Whether or not to optimize for fast installation.
11365 fast_install=$enable_fast_install
11368 host_alias=$host_alias
11372 # The build system.
11373 build_alias=$build_alias
11377 # An echo program that does not interpret backslashes.
11382 AR_FLAGS=$lt_AR_FLAGS
11387 # LTCC compiler flags.
11388 LTCFLAGS=$lt_LTCFLAGS
11390 # A language-specific compiler.
11393 # Is the compiler the GNU C compiler?
11399 # The linker used to build libraries.
11402 # Whether we need hard or soft links.
11405 # A BSD-compatible nm program.
11408 # A symbol stripping program
11411 # Used to examine libraries when file_magic_cmd begins "file"
11412 MAGIC_CMD=$MAGIC_CMD
11414 # Used on cygwin: DLL creation program.
11417 # Used on cygwin: object dumper.
11420 # Used on cygwin: assembler.
11423 # The name of the directory that contains temporary libtool files.
11426 # How to create reloadable object files.
11427 reload_flag=$lt_reload_flag
11428 reload_cmds=$lt_reload_cmds
11430 # How to pass a linker flag through the compiler.
11431 wl=$lt_lt_prog_compiler_wl
11433 # Object file suffix (normally "o").
11434 objext="$ac_objext"
11436 # Old archive suffix (normally "a").
11439 # Shared library suffix (normally ".so").
11440 shrext_cmds='$shrext_cmds'
11442 # Executable file suffix (normally "").
11445 # Additional compiler flags for building library objects.
11446 pic_flag=$lt_lt_prog_compiler_pic
11449 # What is the maximum length of a command?
11450 max_cmd_len=$lt_cv_sys_max_cmd_len
11452 # Does compiler simultaneously support -c and -o options?
11453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11455 # Must we lock files when doing compilation?
11456 need_locks=$lt_need_locks
11458 # Do we need the lib prefix for modules?
11459 need_lib_prefix=$need_lib_prefix
11461 # Do we need a version for libraries?
11462 need_version=$need_version
11464 # Whether dlopen is supported.
11465 dlopen_support=$enable_dlopen
11467 # Whether dlopen of programs is supported.
11468 dlopen_self=$enable_dlopen_self
11470 # Whether dlopen of statically linked programs is supported.
11471 dlopen_self_static=$enable_dlopen_self_static
11473 # Compiler flag to prevent dynamic linking.
11474 link_static_flag=$lt_lt_prog_compiler_static
11476 # Compiler flag to turn off builtin functions.
11477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11479 # Compiler flag to allow reflexive dlopens.
11480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11482 # Compiler flag to generate shared objects directly from archives.
11483 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11485 # Compiler flag to generate thread-safe objects.
11486 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11488 # Library versioning type.
11489 version_type=$version_type
11491 # Format of library name prefix.
11492 libname_spec=$lt_libname_spec
11494 # List of archive names. First name is the real one, the rest are links.
11495 # The last name is the one that the linker finds with -lNAME.
11496 library_names_spec=$lt_library_names_spec
11498 # The coded name of the library, if different from the real name.
11499 soname_spec=$lt_soname_spec
11501 # Commands used to build and install an old-style archive.
11503 old_archive_cmds=$lt_old_archive_cmds
11504 old_postinstall_cmds=$lt_old_postinstall_cmds
11505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11507 # Create an old-style archive from a shared archive.
11508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11510 # Create a temporary old-style archive to link instead of a shared archive.
11511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11513 # Commands used to build and install a shared archive.
11514 archive_cmds=$lt_archive_cmds
11515 archive_expsym_cmds=$lt_archive_expsym_cmds
11516 postinstall_cmds=$lt_postinstall_cmds
11517 postuninstall_cmds=$lt_postuninstall_cmds
11519 # Commands used to build a loadable module (assumed same as above if empty)
11520 module_cmds=$lt_module_cmds
11521 module_expsym_cmds=$lt_module_expsym_cmds
11523 # Commands to strip libraries.
11524 old_striplib=$lt_old_striplib
11525 striplib=$lt_striplib
11527 # Dependencies to place before the objects being linked to create a
11529 predep_objects=$lt_predep_objects
11531 # Dependencies to place after the objects being linked to create a
11533 postdep_objects=$lt_postdep_objects
11535 # Dependencies to place before the objects being linked to create a
11537 predeps=$lt_predeps
11539 # Dependencies to place after the objects being linked to create a
11541 postdeps=$lt_postdeps
11543 # The library search path used internally by the compiler when linking
11544 # a shared library.
11545 compiler_lib_search_path=$lt_compiler_lib_search_path
11547 # Method to check whether dependent libraries are shared objects.
11548 deplibs_check_method=$lt_deplibs_check_method
11550 # Command to use when deplibs_check_method == file_magic.
11551 file_magic_cmd=$lt_file_magic_cmd
11553 # Flag that allows shared libraries with undefined symbols to be built.
11554 allow_undefined_flag=$lt_allow_undefined_flag
11556 # Flag that forces no undefined symbols.
11557 no_undefined_flag=$lt_no_undefined_flag
11559 # Commands used to finish a libtool library installation in a directory.
11560 finish_cmds=$lt_finish_cmds
11562 # Same as above, but a single script fragment to be evaled but not shown.
11563 finish_eval=$lt_finish_eval
11565 # Take the output of nm and produce a listing of raw symbols and C names.
11566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11568 # Transform the output of nm in a proper C declaration
11569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11571 # Transform the output of nm in a C name address pair
11572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11574 # This is the shared library runtime path variable.
11575 runpath_var=$runpath_var
11577 # This is the shared library path variable.
11578 shlibpath_var=$shlibpath_var
11580 # Is shlibpath searched before the hard-coded library search path?
11581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11583 # How to hardcode a shared library path into an executable.
11584 hardcode_action=$hardcode_action
11586 # Whether we should hardcode library paths into libraries.
11587 hardcode_into_libs=$hardcode_into_libs
11589 # Flag to hardcode \$libdir into a binary during linking.
11590 # This must work even if \$libdir does not exist.
11591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11593 # If ld is used when linking, flag to hardcode \$libdir into
11594 # a binary during linking. This must work even if \$libdir does
11596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11598 # Whether we need a single -rpath flag with a separated argument.
11599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11602 # resulting binary.
11603 hardcode_direct=$hardcode_direct
11605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11606 # resulting binary.
11607 hardcode_minus_L=$hardcode_minus_L
11609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11610 # the resulting binary.
11611 hardcode_shlibpath_var=$hardcode_shlibpath_var
11613 # Set to yes if building a shared library automatically hardcodes DIR into the library
11614 # and all subsequent libraries and executables linked against it.
11615 hardcode_automatic=$hardcode_automatic
11617 # Variables whose values should be saved in libtool wrapper scripts and
11618 # restored at relink time.
11619 variables_saved_for_relink="$variables_saved_for_relink"
11621 # Whether libtool must link a program against all its dependency libraries.
11622 link_all_deplibs=$link_all_deplibs
11624 # Compile-time system search path for libraries
11625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11627 # Run-time system search path for libraries
11628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11630 # Fix the shell variable \$srcfile for the compiler.
11631 fix_srcfile_path="$fix_srcfile_path"
11633 # Set to yes if exported symbols are required.
11634 always_export_symbols=$always_export_symbols
11636 # The commands to list exported symbols.
11637 export_symbols_cmds=$lt_export_symbols_cmds
11639 # The commands to extract the exported symbol list from a shared archive.
11640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11642 # Symbols that should not be listed in the preloaded symbols.
11643 exclude_expsyms=$lt_exclude_expsyms
11645 # Symbols that must always be exported.
11646 include_expsyms=$lt_include_expsyms
11648 # ### END LIBTOOL CONFIG
11655 cat <<\EOF >> "$cfgfile"
11657 # AIX sometimes has problems with the GCC collect2 program. For some
11658 # reason, if we set the COLLECT_NAMES environment variable, the problems
11659 # vanish in a puff of smoke.
11660 if test "X${COLLECT_NAMES+set}" != Xset; then
11662 export COLLECT_NAMES
11668 # We use sed instead of cat because bash on DJGPP gets confused if
11669 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11670 # text mode, it properly converts lines to CR/LF. This bash problem
11671 # is reportedly fixed, but why not run on old versions too?
11672 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11674 mv -f "$cfgfile" "$ofile" || \
11675 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11679 # If there is no Makefile yet, we rely on a make rule to execute
11680 # `config.status --recheck' to rerun these tests and create the
11681 # libtool script then.
11682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11683 if test -f "$ltmain_in"; then
11684 test -f Makefile && make "$ltmain"
11690 ac_cpp='$CPP $CPPFLAGS'
11691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11698 # Check whether --with-tags was given.
11699 if test "${with_tags+set}" = set; then
11700 withval=$with_tags; tagnames="$withval"
11704 if test -f "$ltmain" && test -n "$tagnames"; then
11705 if test ! -f "${ofile}"; then
11706 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11707 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11710 if test -z "$LTCC"; then
11711 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11712 if test -z "$LTCC"; then
11713 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11714 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11717 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11720 if test -z "$LTCFLAGS"; then
11721 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11724 # Extract list of available tagged configurations in $ofile.
11725 # Note that this assumes the entire list is on one line.
11726 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11729 for tagname in $tagnames; do
11731 # Check whether tagname contains only valid characters
11732 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11734 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11735 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11736 { (exit 1); exit 1; }; }
11740 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11742 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11743 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11744 { (exit 1); exit 1; }; }
11747 # Update the list of available tags.
11748 if test -n "$tagname"; then
11749 echo appending configuration tag \"$tagname\" to $ofile
11753 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11754 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11755 (test "X$CXX" != "Xg++"))) ; then
11757 ac_cpp='$CXXCPP $CPPFLAGS'
11758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11765 archive_cmds_need_lc_CXX=no
11766 allow_undefined_flag_CXX=
11767 always_export_symbols_CXX=no
11768 archive_expsym_cmds_CXX=
11769 export_dynamic_flag_spec_CXX=
11770 hardcode_direct_CXX=no
11771 hardcode_libdir_flag_spec_CXX=
11772 hardcode_libdir_flag_spec_ld_CXX=
11773 hardcode_libdir_separator_CXX=
11774 hardcode_minus_L_CXX=no
11775 hardcode_shlibpath_var_CXX=unsupported
11776 hardcode_automatic_CXX=no
11778 module_expsym_cmds_CXX=
11779 link_all_deplibs_CXX=unknown
11780 old_archive_cmds_CXX=$old_archive_cmds
11781 no_undefined_flag_CXX=
11782 whole_archive_flag_spec_CXX=
11783 enable_shared_with_static_runtimes_CXX=no
11785 # Dependencies to place before and after the object being linked:
11786 predep_objects_CXX=
11787 postdep_objects_CXX=
11790 compiler_lib_search_path_CXX=
11792 # Source file extension for C++ test sources.
11795 # Object file extension for compiled C++ test sources.
11799 # Code to be used in simple compile tests
11800 lt_simple_compile_test_code="int some_variable = 0;\n"
11802 # Code to be used in simple link tests
11803 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11807 # If no C compiler was specified, use CC.
11810 # If no C compiler flags were specified, use CFLAGS.
11811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11813 # Allow CC to be a program name with arguments.
11817 # save warnings/boilerplate of simple test code
11818 ac_outfile=conftest.$ac_objext
11819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11821 _lt_compiler_boilerplate=`cat conftest.err`
11824 ac_outfile=conftest.$ac_objext
11825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11827 _lt_linker_boilerplate=`cat conftest.err`
11831 # Allow CC to be a program name with arguments.
11836 lt_save_with_gnu_ld=$with_gnu_ld
11837 lt_save_path_LD=$lt_cv_path_LD
11838 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11839 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11841 $as_unset lt_cv_prog_gnu_ld
11843 if test -n "${lt_cv_path_LDCXX+set}"; then
11844 lt_cv_path_LD=$lt_cv_path_LDCXX
11846 $as_unset lt_cv_path_LD
11848 test -z "${LDCXX+set}" || LD=$LDCXX
11852 for cc_temp in $compiler""; do
11854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11863 # We don't want -fno-exception wen compiling C++ code, so set the
11864 # no_builtin_flag separately
11865 if test "$GXX" = yes; then
11866 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11868 lt_prog_compiler_no_builtin_flag_CXX=
11871 if test "$GXX" = yes; then
11872 # Set up default GNU C++ configuration
11875 # Check whether --with-gnu-ld was given.
11876 if test "${with_gnu_ld+set}" = set; then
11877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11883 if test "$GCC" = yes; then
11884 # Check if gcc -print-prog-name=ld gives a path.
11885 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11889 # gcc leaves a trailing carriage return which upsets mingw
11890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11895 # Accept absolute paths.
11897 re_direlt='/[^/][^/]*/\.\./'
11898 # Canonicalize the pathname of ld
11899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11903 test -z "$LD" && LD="$ac_prog"
11906 # If it fails, then pretend we aren't using GCC.
11910 # If it is relative, then search for the first ld in PATH.
11911 with_gnu_ld=unknown
11914 elif test "$with_gnu_ld" = yes; then
11915 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11918 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11921 if test "${lt_cv_path_LD+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 if test -z "$LD"; then
11925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11926 for ac_dir in $PATH; do
11928 test -z "$ac_dir" && ac_dir=.
11929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11930 lt_cv_path_LD="$ac_dir/$ac_prog"
11931 # Check to see if the program is GNU ld. I'd rather use --version,
11932 # but apparently some variants of GNU ld only accept -v.
11933 # Break only if it was the GNU/non-GNU ld that we prefer.
11934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11935 *GNU* | *'with BFD'*)
11936 test "$with_gnu_ld" != no && break
11939 test "$with_gnu_ld" != yes && break
11946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11950 LD="$lt_cv_path_LD"
11951 if test -n "$LD"; then
11952 { echo "$as_me:$LINENO: result: $LD" >&5
11953 echo "${ECHO_T}$LD" >&6; }
11955 { echo "$as_me:$LINENO: result: no" >&5
11956 echo "${ECHO_T}no" >&6; }
11958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11960 { (exit 1); exit 1; }; }
11961 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11967 case `$LD -v 2>&1 </dev/null` in
11968 *GNU* | *'with BFD'*)
11969 lt_cv_prog_gnu_ld=yes
11972 lt_cv_prog_gnu_ld=no
11976 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11978 with_gnu_ld=$lt_cv_prog_gnu_ld
11982 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11983 # archiving commands below assume that GNU ld is being used.
11984 if test "$with_gnu_ld" = yes; then
11985 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11986 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'
11988 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11991 # If archive_cmds runs LD, not CC, wlarc should be empty
11992 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11993 # investigate it a little bit more. (MM)
11996 # ancient GNU ld didn't support --whole-archive et. al.
11997 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11998 grep 'no-whole-archive' > /dev/null; then
11999 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12001 whole_archive_flag_spec_CXX=
12007 # A generic and very simple default shared library creation
12008 # command for GNU C++ for the case where it uses the native
12009 # linker, instead of GNU ld. If possible, this setting should
12010 # overridden to take advantage of the native linker features on
12011 # the platform it is being used on.
12012 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12015 # Commands to make compiler produce verbose output that lists
12016 # what "hidden" libraries, object files and flags are used when
12017 # linking a shared library.
12018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12026 # PORTME: fill in a description of your system's C++ link characteristics
12027 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12032 # FIXME: insert proper C++ library support
12036 if test "$host_cpu" = ia64; then
12037 # On IA64, the linker does run time linking by default, so we don't
12038 # have to do anything special.
12039 aix_use_runtimelinking=no
12040 exp_sym_flag='-Bexport'
12043 aix_use_runtimelinking=no
12045 # Test if we are trying to use run time linking or normal
12046 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12047 # need to do runtime linking.
12048 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12049 for ld_flag in $LDFLAGS; do
12052 aix_use_runtimelinking=yes
12060 exp_sym_flag='-bexport'
12061 no_entry_flag='-bnoentry'
12064 # When large executables or shared objects are built, AIX ld can
12065 # have problems creating the table of contents. If linking a library
12066 # or program results in "error TOC overflow" add -mminimal-toc to
12067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12070 archive_cmds_CXX=''
12071 hardcode_direct_CXX=yes
12072 hardcode_libdir_separator_CXX=':'
12073 link_all_deplibs_CXX=yes
12075 if test "$GXX" = yes; then
12076 case $host_os in aix4.[012]|aix4.[012].*)
12077 # We only want to do this on AIX 4.2 and lower, the check
12078 # below for broken collect2 doesn't work under 4.3+
12079 collect2name=`${CC} -print-prog-name=collect2`
12080 if test -f "$collect2name" && \
12081 strings "$collect2name" | grep resolve_lib_name >/dev/null
12083 # We have reworked collect2
12084 hardcode_direct_CXX=yes
12086 # We have old collect2
12087 hardcode_direct_CXX=unsupported
12088 # It fails to find uninstalled libraries when the uninstalled
12089 # path is not listed in the libpath. Setting hardcode_minus_L
12090 # to unsupported forces relinking
12091 hardcode_minus_L_CXX=yes
12092 hardcode_libdir_flag_spec_CXX='-L$libdir'
12093 hardcode_libdir_separator_CXX=
12097 shared_flag='-shared'
12098 if test "$aix_use_runtimelinking" = yes; then
12099 shared_flag="$shared_flag "'${wl}-G'
12103 if test "$host_cpu" = ia64; then
12104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12105 # chokes on -Wl,-G. The following line is correct:
12108 if test "$aix_use_runtimelinking" = yes; then
12109 shared_flag='${wl}-G'
12111 shared_flag='${wl}-bM:SRE'
12116 # It seems that -bexpall does not export symbols beginning with
12117 # underscore (_), so it is better to generate a list of symbols to export.
12118 always_export_symbols_CXX=yes
12119 if test "$aix_use_runtimelinking" = yes; then
12120 # Warning - without using the other runtime loading flags (-brtl),
12121 # -berok will link without error, but may produce a broken library.
12122 allow_undefined_flag_CXX='-berok'
12123 # Determine the default libpath from the value encoded in an empty executable.
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_cxx_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest$ac_exeext &&
12156 $as_test_x conftest$ac_exeext; then
12158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12160 # Check for a 64-bit object if we didn't find anything.
12161 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12171 conftest$ac_exeext conftest.$ac_ext
12172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12174 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12176 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"
12178 if test "$host_cpu" = ia64; then
12179 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12180 allow_undefined_flag_CXX="-z nodefs"
12181 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"
12183 # Determine the default libpath from the value encoded in an empty executable.
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_cxx_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest$ac_exeext &&
12216 $as_test_x conftest$ac_exeext; then
12218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12220 # Check for a 64-bit object if we didn't find anything.
12221 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12231 conftest$ac_exeext conftest.$ac_ext
12232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12234 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12235 # Warning - without using the other run time loading flags,
12236 # -berok will link without error, but may produce a broken library.
12237 no_undefined_flag_CXX=' ${wl}-bernotok'
12238 allow_undefined_flag_CXX=' ${wl}-berok'
12239 # Exported symbols can be pulled into shared objects from archives
12240 whole_archive_flag_spec_CXX='$convenience'
12241 archive_cmds_need_lc_CXX=yes
12242 # This is similar to how AIX traditionally builds its shared libraries.
12243 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'
12249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12250 allow_undefined_flag_CXX=unsupported
12251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12252 # support --undefined. This deserves some investigation. FIXME
12253 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260 case $cc_basename in
12262 # FIXME: insert proper C++ library support
12268 cygwin* | mingw* | pw32*)
12269 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12270 # as there is no search path for DLLs.
12271 hardcode_libdir_flag_spec_CXX='-L$libdir'
12272 allow_undefined_flag_CXX=unsupported
12273 always_export_symbols_CXX=no
12274 enable_shared_with_static_runtimes_CXX=yes
12276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12277 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'
12278 # If the export-symbols file already is a .def file (1st line
12279 # is EXPORTS), use it as is; otherwise, prepend...
12280 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12281 cp $export_symbols $output_objdir/$soname.def;
12283 echo EXPORTS > $output_objdir/$soname.def;
12284 cat $export_symbols >> $output_objdir/$soname.def;
12286 $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'
12291 darwin* | rhapsody*)
12293 rhapsody* | darwin1.[012])
12294 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12297 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12298 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12300 case ${MACOSX_DEPLOYMENT_TARGET} in
12302 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12305 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12311 archive_cmds_need_lc_CXX=no
12312 hardcode_direct_CXX=no
12313 hardcode_automatic_CXX=yes
12314 hardcode_shlibpath_var_CXX=unsupported
12315 whole_archive_flag_spec_CXX=''
12316 link_all_deplibs_CXX=yes
12318 if test "$GXX" = yes ; then
12319 lt_int_apple_cc_single_mod=no
12320 output_verbose_link_cmd='echo'
12321 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12322 lt_int_apple_cc_single_mod=yes
12324 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12325 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12327 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'
12329 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12330 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12331 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12332 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12334 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12336 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}'
12338 case $cc_basename in
12340 output_verbose_link_cmd='echo'
12341 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12342 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12343 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12344 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12345 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}'
12355 case $cc_basename in
12357 # FIXME: insert proper C++ library support
12361 # Green Hills C++ Compiler
12362 # FIXME: insert proper C++ library support
12366 # FIXME: insert proper C++ library support
12372 # C++ shared libraries reported to be fairly broken before switch to ELF
12376 archive_cmds_need_lc_CXX=no
12378 freebsd* | dragonfly*)
12379 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12386 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12387 hardcode_libdir_separator_CXX=:
12388 export_dynamic_flag_spec_CXX='${wl}-E'
12389 hardcode_direct_CXX=yes
12390 hardcode_minus_L_CXX=yes # Not in the search PATH,
12391 # but as the default
12392 # location of the library.
12394 case $cc_basename in
12396 # FIXME: insert proper C++ library support
12400 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'
12401 # Commands to make compiler produce verbose output that lists
12402 # what "hidden" libraries, object files and flags are used when
12403 # linking a shared library.
12405 # There doesn't appear to be a way to prevent this compiler from
12406 # explicitly linking system object files so we need to strip them
12407 # from the output so that they don't get included in the library
12409 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'
12412 if test "$GXX" = yes; then
12413 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'
12415 # FIXME: insert proper C++ library support
12422 if test $with_gnu_ld = no; then
12423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12424 hardcode_libdir_separator_CXX=:
12428 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12431 export_dynamic_flag_spec_CXX='${wl}-E'
12437 hardcode_direct_CXX=no
12438 hardcode_shlibpath_var_CXX=no
12441 hardcode_direct_CXX=yes
12442 hardcode_minus_L_CXX=yes # Not in the search PATH,
12443 # but as the default
12444 # location of the library.
12448 case $cc_basename in
12450 # FIXME: insert proper C++ library support
12456 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12459 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12462 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12465 # Commands to make compiler produce verbose output that lists
12466 # what "hidden" libraries, object files and flags are used when
12467 # linking a shared library.
12469 # There doesn't appear to be a way to prevent this compiler from
12470 # explicitly linking system object files so we need to strip them
12471 # from the output so that they don't get included in the library
12473 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'
12476 if test "$GXX" = yes; then
12477 if test $with_gnu_ld = no; then
12480 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12483 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12486 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'
12491 # FIXME: insert proper C++ library support
12498 hardcode_direct_CXX=no
12499 hardcode_shlibpath_var_CXX=no
12500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12501 export_dynamic_flag_spec_CXX='${wl}-E'
12502 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12503 # Instead, shared libraries are loaded at an image base (0x10000000 by
12504 # default) and relocated if they conflict, which is a slow very memory
12505 # consuming and fragmenting process. To avoid this, we pick a random,
12506 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12507 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12508 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'
12509 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'
12512 case $cc_basename in
12515 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'
12517 # Archives containing C++ object files must be created using
12518 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12519 # necessary to make sure instantiated templates are included
12521 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12524 if test "$GXX" = yes; then
12525 if test "$with_gnu_ld" = no; then
12526 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'
12528 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'
12531 link_all_deplibs_CXX=yes
12534 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12535 hardcode_libdir_separator_CXX=:
12537 linux* | k*bsd*-gnu)
12538 case $cc_basename in
12540 # Kuck and Associates, Inc. (KAI) C++ Compiler
12542 # KCC will only create a shared library if the output file
12543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12544 # to its proper name (with version) after linking.
12545 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'
12546 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'
12547 # Commands to make compiler produce verbose output that lists
12548 # what "hidden" libraries, object files and flags are used when
12549 # linking a shared library.
12551 # There doesn't appear to be a way to prevent this compiler from
12552 # explicitly linking system object files so we need to strip them
12553 # from the output so that they don't get included in the library
12555 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'
12557 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12558 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12560 # Archives containing C++ object files must be created using
12561 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12562 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12567 # version 8.0 and above of icpc choke on multiply defined symbols
12568 # if we add $predep_objects and $postdep_objects, however 7.1 and
12569 # earlier do not add the objects themselves.
12570 case `$CC -V 2>&1` in
12572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12573 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'
12575 *) # Version 8.0 or newer
12578 ia64*) tmp_idyn=' -i_dynamic';;
12580 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12581 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'
12584 archive_cmds_need_lc_CXX=no
12585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12586 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12587 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12590 # Portland Group C++ compiler
12591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12592 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'
12594 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12596 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'
12600 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12601 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'
12603 runpath_var=LD_RUN_PATH
12604 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12605 hardcode_libdir_separator_CXX=:
12607 # Commands to make compiler produce verbose output that lists
12608 # what "hidden" libraries, object files and flags are used when
12609 # linking a shared library.
12611 # There doesn't appear to be a way to prevent this compiler from
12612 # explicitly linking system object files so we need to strip them
12613 # from the output so that they don't get included in the library
12615 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'
12620 # FIXME: insert proper C++ library support
12624 # FIXME: insert proper C++ library support
12628 case $cc_basename in
12630 # FIXME: insert proper C++ library support
12634 # FIXME: insert proper C++ library support
12639 netbsd* | netbsdelf*-gnu)
12640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12641 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12643 hardcode_libdir_flag_spec_CXX='-R$libdir'
12644 hardcode_direct_CXX=yes
12645 hardcode_shlibpath_var_CXX=no
12647 # Workaround some broken pre-1.5 toolchains
12648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12651 # C++ shared libraries are fairly broken
12655 hardcode_direct_CXX=yes
12656 hardcode_shlibpath_var_CXX=no
12657 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12660 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12661 export_dynamic_flag_spec_CXX='${wl}-E'
12662 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12664 output_verbose_link_cmd='echo'
12667 case $cc_basename in
12669 # Kuck and Associates, Inc. (KAI) C++ Compiler
12671 # KCC will only create a shared library if the output file
12672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12673 # to its proper name (with version) after linking.
12674 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'
12676 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12677 hardcode_libdir_separator_CXX=:
12679 # Archives containing C++ object files must be created using
12680 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12681 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12685 # Rational C++ 2.4.1
12686 # FIXME: insert proper C++ library support
12690 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12691 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'
12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12694 hardcode_libdir_separator_CXX=:
12696 # Commands to make compiler produce verbose output that lists
12697 # what "hidden" libraries, object files and flags are used when
12698 # linking a shared library.
12700 # There doesn't appear to be a way to prevent this compiler from
12701 # explicitly linking system object files so we need to strip them
12702 # from the output so that they don't get included in the library
12704 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'
12707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12709 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'
12711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12712 hardcode_libdir_separator_CXX=:
12714 # Commands to make compiler produce verbose output that lists
12715 # what "hidden" libraries, object files and flags are used when
12716 # linking a shared library.
12717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12720 # FIXME: insert proper C++ library support
12727 case $cc_basename in
12729 # Kuck and Associates, Inc. (KAI) C++ Compiler
12731 # KCC will only create a shared library if the output file
12732 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12733 # to its proper name (with version) after linking.
12734 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'
12736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12737 hardcode_libdir_separator_CXX=:
12739 # Archives containing C++ object files must be created using
12740 # the KAI C++ compiler.
12741 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12744 # Rational C++ 2.4.1
12745 # FIXME: insert proper C++ library support
12749 allow_undefined_flag_CXX=' -expect_unresolved \*'
12750 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'
12751 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12752 echo "-hidden">> $lib.exp~
12753 $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~
12756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12757 hardcode_libdir_separator_CXX=:
12759 # Commands to make compiler produce verbose output that lists
12760 # what "hidden" libraries, object files and flags are used when
12761 # linking a shared library.
12763 # There doesn't appear to be a way to prevent this compiler from
12764 # explicitly linking system object files so we need to strip them
12765 # from the output so that they don't get included in the library
12767 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'
12770 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12771 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12772 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'
12774 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12775 hardcode_libdir_separator_CXX=:
12777 # Commands to make compiler produce verbose output that lists
12778 # what "hidden" libraries, object files and flags are used when
12779 # linking a shared library.
12780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12783 # FIXME: insert proper C++ library support
12790 # FIXME: insert proper C++ library support
12794 case $cc_basename in
12797 # FIXME: insert proper C++ library support
12802 # FIXME: insert proper C++ library support
12806 # FIXME: insert proper C++ library support
12812 case $cc_basename in
12814 # Sun C++ 4.2, 5.x and Centerline C++
12815 archive_cmds_need_lc_CXX=yes
12816 no_undefined_flag_CXX=' -zdefs'
12817 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12819 $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'
12821 hardcode_libdir_flag_spec_CXX='-R$libdir'
12822 hardcode_shlibpath_var_CXX=no
12824 solaris2.[0-5] | solaris2.[0-5].*) ;;
12826 # The C++ compiler is used as linker so we must use $wl
12827 # flag to pass the commands to the underlying system
12828 # linker. We must also pass each convience library through
12829 # to the system linker between allextract/defaultextract.
12830 # The C++ compiler will combine linker options so we
12831 # cannot just pass the convience library names through
12833 # Supported since Solaris 2.6 (maybe 2.5.1?)
12834 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12837 link_all_deplibs_CXX=yes
12839 output_verbose_link_cmd='echo'
12841 # Archives containing C++ object files must be created using
12842 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12843 # necessary to make sure instantiated templates are included
12845 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12848 # Green Hills C++ Compiler
12849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12851 # The C++ compiler must be used to create the archive.
12852 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12855 # GNU C++ compiler with Solaris linker
12856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12857 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12858 if $CC --version | grep -v '^2\.7' > /dev/null; then
12859 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12860 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12861 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12863 # Commands to make compiler produce verbose output that lists
12864 # what "hidden" libraries, object files and flags are used when
12865 # linking a shared library.
12866 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12868 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12870 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12871 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12872 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12874 # Commands to make compiler produce verbose output that lists
12875 # what "hidden" libraries, object files and flags are used when
12876 # linking a shared library.
12877 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12880 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12885 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12886 no_undefined_flag_CXX='${wl}-z,text'
12887 archive_cmds_need_lc_CXX=no
12888 hardcode_shlibpath_var_CXX=no
12889 runpath_var='LD_RUN_PATH'
12891 case $cc_basename in
12893 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12894 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12897 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12898 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12902 sysv5* | sco3.2v5* | sco5v6*)
12903 # Note: We can NOT use -z defs as we might desire, because we do not
12904 # link with -lc, and that would cause any symbols used from libc to
12905 # always be unresolved, which means just about no library would
12906 # ever link correctly. If we're not using GNU ld we use -z text
12907 # though, which does catch some bad symbols but isn't as heavy-handed
12909 # For security reasons, it is highly recommended that you always
12910 # use absolute paths for naming shared libraries, and exclude the
12911 # DT_RUNPATH tag from executables and libraries. But doing so
12912 # requires that you compile everything twice, which is a pain.
12913 # So that behaviour is only enabled if SCOABSPATH is set to a
12914 # non-empty value in the environment. Most likely only useful for
12915 # creating official distributions of packages.
12916 # This is a hack until libtool officially supports absolute path
12917 # names for shared libraries.
12918 no_undefined_flag_CXX='${wl}-z,text'
12919 allow_undefined_flag_CXX='${wl}-z,nodefs'
12920 archive_cmds_need_lc_CXX=no
12921 hardcode_shlibpath_var_CXX=no
12922 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12923 hardcode_libdir_separator_CXX=':'
12924 link_all_deplibs_CXX=yes
12925 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12926 runpath_var='LD_RUN_PATH'
12928 case $cc_basename in
12930 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12931 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12934 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12935 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12940 case $cc_basename in
12942 # NonStop-UX NCC 3.20
12943 # FIXME: insert proper C++ library support
12947 # FIXME: insert proper C++ library support
12953 # FIXME: insert proper C++ library support
12957 # FIXME: insert proper C++ library support
12961 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12962 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12963 test "$ld_shlibs_CXX" = no && can_build_shared=no
12969 ## There is no encapsulation within the following macros, do not change
12970 ## the running order or otherwise move them around unless you know exactly
12971 ## what you are doing...
12973 cat > conftest.$ac_ext <<EOF
12977 Foo (void) { a = 0; }
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; then
12988 # Parse the compiler output and extract the necessary
12989 # objects, libraries and library flags.
12991 # Sentinel used to keep track of whether or not we are before
12992 # the conftest object file.
12993 pre_test_object_deps_done=no
12995 # The `*' in the case matches for architectures that use `case' in
12996 # $output_verbose_cmd can trigger glob expansion during the loop
12997 # eval without this substitution.
12998 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13000 for p in `eval $output_verbose_link_cmd`; do
13004 # Some compilers place space between "-{L,R}" and the path.
13005 # Remove the space.
13006 if test $p = "-L" \
13007 || test $p = "-R"; then
13014 if test "$pre_test_object_deps_done" = no; then
13017 # Internal compiler library paths should come after those
13018 # provided the user. The postdeps already come after the
13019 # user supplied libs so there is no need to process them.
13020 if test -z "$compiler_lib_search_path_CXX"; then
13021 compiler_lib_search_path_CXX="${prev}${p}"
13023 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13026 # The "-l" case would never come before the object being
13027 # linked, so don't bother handling this case.
13030 if test -z "$postdeps_CXX"; then
13031 postdeps_CXX="${prev}${p}"
13033 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13039 # This assumes that the test object file only shows up
13040 # once in the compiler output.
13041 if test "$p" = "conftest.$objext"; then
13042 pre_test_object_deps_done=yes
13046 if test "$pre_test_object_deps_done" = no; then
13047 if test -z "$predep_objects_CXX"; then
13048 predep_objects_CXX="$p"
13050 predep_objects_CXX="$predep_objects_CXX $p"
13053 if test -z "$postdep_objects_CXX"; then
13054 postdep_objects_CXX="$p"
13056 postdep_objects_CXX="$postdep_objects_CXX $p"
13061 *) ;; # Ignore the rest.
13069 echo "libtool.m4: error: problem compiling CXX test program"
13072 $rm -f confest.$objext
13074 # PORTME: override above test on systems where it is broken
13077 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13078 # hack all around it, let's just trust "g++" to DTRT.
13079 predep_objects_CXX=
13080 postdep_objects_CXX=
13085 case $cc_basename in
13087 # Adding this requires a known-good setup of shared libraries for
13088 # Sun compiler versions before 5.6, else PIC objects from an old
13089 # archive will be linked into the output, leading to subtle bugs.
13090 postdeps_CXX='-lCstd -lCrun'
13097 case " $postdeps_CXX " in
13098 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13101 lt_prog_compiler_wl_CXX=
13102 lt_prog_compiler_pic_CXX=
13103 lt_prog_compiler_static_CXX=
13105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13108 # C++ specific cases for pic, static, wl, etc.
13109 if test "$GXX" = yes; then
13110 lt_prog_compiler_wl_CXX='-Wl,'
13111 lt_prog_compiler_static_CXX='-static'
13115 # All AIX code is PIC.
13116 if test "$host_cpu" = ia64; then
13117 # AIX 5 now supports IA64 processor
13118 lt_prog_compiler_static_CXX='-Bstatic'
13122 # FIXME: we need at least 68020 code to build shared libraries, but
13123 # adding the `-m68020' flag to GCC prevents building anything better,
13125 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13128 # PIC is the default for these OSes.
13130 mingw* | os2* | pw32*)
13131 # This hack is so that the source file can tell whether it is being
13132 # built for inclusion in a dll (and should export symbols for example).
13133 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13135 darwin* | rhapsody*)
13136 # PIC is the default on this platform
13137 # Common symbols not allowed in MH_DYLIB files
13138 lt_prog_compiler_pic_CXX='-fno-common'
13141 # DJGPP does not support shared libraries at all
13142 lt_prog_compiler_pic_CXX=
13145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13146 # Instead, we relocate shared libraries at runtime.
13149 if test -d /usr/nec; then
13150 lt_prog_compiler_pic_CXX=-Kconform_pic
13154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13155 # not for PA HP-UX.
13160 lt_prog_compiler_pic_CXX='-fPIC'
13165 lt_prog_compiler_pic_CXX='-fPIC'
13171 # All AIX code is PIC.
13172 if test "$host_cpu" = ia64; then
13173 # AIX 5 now supports IA64 processor
13174 lt_prog_compiler_static_CXX='-Bstatic'
13176 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13180 case $cc_basename in
13182 # Green Hills C++ Compiler
13183 # _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"
13188 # PIC is the default on this platform
13189 # Common symbols not allowed in MH_DYLIB files
13190 case $cc_basename in
13192 lt_prog_compiler_pic_CXX='-qnocommon'
13193 lt_prog_compiler_wl_CXX='-Wl,'
13198 case $cc_basename in
13200 lt_prog_compiler_pic_CXX='-KPIC'
13203 # Green Hills C++ Compiler
13204 lt_prog_compiler_pic_CXX='-pic'
13210 freebsd* | dragonfly*)
13211 # FreeBSD uses GNU C++
13213 hpux9* | hpux10* | hpux11*)
13214 case $cc_basename in
13216 lt_prog_compiler_wl_CXX='-Wl,'
13217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13218 if test "$host_cpu" != ia64; then
13219 lt_prog_compiler_pic_CXX='+Z'
13223 lt_prog_compiler_wl_CXX='-Wl,'
13224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13230 lt_prog_compiler_pic_CXX='+Z'
13239 # This is c89, which is MS Visual C++ (no shared libs)
13240 # Anyone wants to do a port?
13242 irix5* | irix6* | nonstopux*)
13243 case $cc_basename in
13245 lt_prog_compiler_wl_CXX='-Wl,'
13246 lt_prog_compiler_static_CXX='-non_shared'
13247 # CC pic flag -KPIC is the default.
13253 linux* | k*bsd*-gnu)
13254 case $cc_basename in
13257 lt_prog_compiler_wl_CXX='--backend -Wl,'
13258 lt_prog_compiler_pic_CXX='-fPIC'
13262 lt_prog_compiler_wl_CXX='-Wl,'
13263 lt_prog_compiler_pic_CXX='-KPIC'
13264 lt_prog_compiler_static_CXX='-static'
13267 # Portland Group C++ compiler.
13268 lt_prog_compiler_wl_CXX='-Wl,'
13269 lt_prog_compiler_pic_CXX='-fpic'
13270 lt_prog_compiler_static_CXX='-Bstatic'
13274 # Make sure the PIC flag is empty. It appears that all Alpha
13275 # Linux and Compaq Tru64 Unix objects are PIC.
13276 lt_prog_compiler_pic_CXX=
13277 lt_prog_compiler_static_CXX='-non_shared'
13288 case $cc_basename in
13290 lt_prog_compiler_pic_CXX='-W c,exportall'
13296 netbsd* | netbsdelf*-gnu)
13298 osf3* | osf4* | osf5*)
13299 case $cc_basename in
13301 lt_prog_compiler_wl_CXX='--backend -Wl,'
13304 # Rational C++ 2.4.1
13305 lt_prog_compiler_pic_CXX='-pic'
13308 # Digital/Compaq C++
13309 lt_prog_compiler_wl_CXX='-Wl,'
13310 # Make sure the PIC flag is empty. It appears that all Alpha
13311 # Linux and Compaq Tru64 Unix objects are PIC.
13312 lt_prog_compiler_pic_CXX=
13313 lt_prog_compiler_static_CXX='-non_shared'
13322 case $cc_basename in
13324 # Sun C++ 4.2, 5.x and Centerline C++
13325 lt_prog_compiler_pic_CXX='-KPIC'
13326 lt_prog_compiler_static_CXX='-Bstatic'
13327 lt_prog_compiler_wl_CXX='-Qoption ld '
13330 # Green Hills C++ Compiler
13331 lt_prog_compiler_pic_CXX='-PIC'
13338 case $cc_basename in
13341 lt_prog_compiler_pic_CXX='-pic'
13342 lt_prog_compiler_static_CXX='-Bstatic'
13346 lt_prog_compiler_pic_CXX='-pic'
13353 case $cc_basename in
13355 # NonStop-UX NCC 3.20
13356 lt_prog_compiler_pic_CXX='-KPIC'
13362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13363 case $cc_basename in
13365 lt_prog_compiler_wl_CXX='-Wl,'
13366 lt_prog_compiler_pic_CXX='-KPIC'
13367 lt_prog_compiler_static_CXX='-Bstatic'
13374 lt_prog_compiler_can_build_shared_CXX=no
13379 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13380 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13383 # Check to make sure the PIC flag actually works.
13385 if test -n "$lt_prog_compiler_pic_CXX"; then
13387 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13388 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13389 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 lt_prog_compiler_pic_works_CXX=no
13393 ac_outfile=conftest.$ac_objext
13394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13395 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13396 # Insert the option either (1) after the last *FLAGS variable, or
13397 # (2) before a word containing "conftest.", or (3) at the end.
13398 # Note that $ac_compile itself does not contain backslashes and begins
13399 # with a dollar sign (not a hyphen), so the echo should work correctly.
13400 # The option is referenced via a variable to avoid confusing sed.
13401 lt_compile=`echo "$ac_compile" | $SED \
13402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13404 -e 's:$: $lt_compiler_flag:'`
13405 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13406 (eval "$lt_compile" 2>conftest.err)
13408 cat conftest.err >&5
13409 echo "$as_me:__oline__: \$? = $ac_status" >&5
13410 if (exit $ac_status) && test -s "$ac_outfile"; then
13411 # The compiler can only warn and ignore the option if not recognized
13412 # So say no if there are warnings other than the usual output.
13413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13416 lt_prog_compiler_pic_works_CXX=yes
13422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13423 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13425 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13426 case $lt_prog_compiler_pic_CXX in
13428 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13431 lt_prog_compiler_pic_CXX=
13432 lt_prog_compiler_can_build_shared_CXX=no
13437 # For platforms which do not support PIC, -DPIC is meaningless:
13439 lt_prog_compiler_pic_CXX=
13442 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13447 # Check to make sure the static flag actually works.
13449 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13450 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13451 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13452 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 lt_prog_compiler_static_works_CXX=no
13456 save_LDFLAGS="$LDFLAGS"
13457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13458 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13460 # The linker can only warn and ignore the option if not recognized
13461 # So say no if there are warnings
13462 if test -s conftest.err; then
13463 # Append any errors to the config.log.
13464 cat conftest.err 1>&5
13465 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13467 if diff conftest.exp conftest.er2 >/dev/null; then
13468 lt_prog_compiler_static_works_CXX=yes
13471 lt_prog_compiler_static_works_CXX=yes
13475 LDFLAGS="$save_LDFLAGS"
13478 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13479 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13481 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13484 lt_prog_compiler_static_CXX=
13488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13490 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 lt_cv_prog_compiler_c_o_CXX=no
13494 $rm -r conftest 2>/dev/null
13498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13500 lt_compiler_flag="-o out/conftest2.$ac_objext"
13501 # Insert the option either (1) after the last *FLAGS variable, or
13502 # (2) before a word containing "conftest.", or (3) at the end.
13503 # Note that $ac_compile itself does not contain backslashes and begins
13504 # with a dollar sign (not a hyphen), so the echo should work correctly.
13505 lt_compile=`echo "$ac_compile" | $SED \
13506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13508 -e 's:$: $lt_compiler_flag:'`
13509 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13510 (eval "$lt_compile" 2>out/conftest.err)
13512 cat out/conftest.err >&5
13513 echo "$as_me:__oline__: \$? = $ac_status" >&5
13514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13516 # The compiler can only warn and ignore the option if not recognized
13517 # So say no if there are warnings
13518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13521 lt_cv_prog_compiler_c_o_CXX=yes
13526 # SGI C++ compiler will create directory out/ii_files/ for
13527 # template instantiation
13528 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13529 $rm out/* && rmdir out
13535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13539 hard_links="nottested"
13540 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13541 # do not overwrite the value of need_locks provided by the user
13542 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13548 ln conftest.a conftest.b 2>&5 || hard_links=no
13549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13550 { echo "$as_me:$LINENO: result: $hard_links" >&5
13551 echo "${ECHO_T}$hard_links" >&6; }
13552 if test "$hard_links" = no; then
13553 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13564 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13567 # If we're using GNU nm, then we don't want the "-C" option.
13568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13569 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13570 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'
13572 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'
13576 export_symbols_cmds_CXX="$ltdll_cmds"
13579 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'
13581 linux* | k*bsd*-gnu)
13582 link_all_deplibs_CXX=no
13585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13589 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13590 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13591 test "$ld_shlibs_CXX" = no && can_build_shared=no
13594 # Do we need to explicitly link libc?
13596 case "x$archive_cmds_need_lc_CXX" in
13598 # Assume -lc should be added
13599 archive_cmds_need_lc_CXX=yes
13601 if test "$enable_shared" = yes && test "$GCC" = yes; then
13602 case $archive_cmds_CXX in
13604 # FIXME: we may have to deal with multi-command sequences.
13607 # Test whether the compiler implicitly links with -lc since on some
13608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13609 # to ld, don't add -lc before -lgcc.
13610 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13611 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616 (eval $ac_compile) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } 2>conftest.err; then
13622 libobjs=conftest.$ac_objext
13624 wl=$lt_prog_compiler_wl_CXX
13625 pic_flag=$lt_prog_compiler_pic_CXX
13631 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13632 allow_undefined_flag_CXX=
13633 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13634 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
13639 archive_cmds_need_lc_CXX=no
13641 archive_cmds_need_lc_CXX=yes
13643 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13645 cat conftest.err 1>&5
13648 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13649 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13656 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13657 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13658 library_names_spec=
13659 libname_spec='lib$name'
13663 postuninstall_cmds=
13667 shlibpath_overrides_runpath=unknown
13669 dynamic_linker="$host_os ld.so"
13670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13671 if test "$GCC" = yes; then
13672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13673 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13674 # if the path contains ";" then we assume it to be the separator
13675 # otherwise default to the standard path separator (i.e. ":") - it is
13676 # assumed that no part of a normal pathname contains ";" but that should
13677 # okay in the real world where ";" in dirpaths is itself problematic.
13678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13683 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13685 need_lib_prefix=unknown
13686 hardcode_into_libs=no
13688 # when you set need_version to no, make sure it does not cause -set_version
13689 # flags to be left without arguments
13690 need_version=unknown
13695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13696 shlibpath_var=LIBPATH
13698 # AIX 3 has no versioning support, so we append a major version to the name.
13699 soname_spec='${libname}${release}${shared_ext}$major'
13706 hardcode_into_libs=yes
13707 if test "$host_cpu" = ia64; then
13708 # AIX 5 supports IA64
13709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13710 shlibpath_var=LD_LIBRARY_PATH
13712 # With GCC up to 2.95.x, collect2 would create an import file
13713 # for dependence libraries. The import file would start with
13714 # the line `#! .'. This would cause the generated library to
13715 # depend on `.', always an invalid library. This was fixed in
13716 # development snapshots of GCC prior to 3.0.
13718 aix4 | aix4.[01] | aix4.[01].*)
13719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13721 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13724 can_build_shared=no
13728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13729 # soname into executable. Probably we can add versioning support to
13730 # collect2, so additional links can be useful in future.
13731 if test "$aix_use_runtimelinking" = yes; then
13732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13733 # instead of lib<name>.a to let people know that these are not
13734 # typical AIX shared libraries.
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13737 # We preserve .a as extension for shared libraries through AIX4.2
13738 # and later when we are not doing run time linking.
13739 library_names_spec='${libname}${release}.a $libname.a'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LIBPATH
13747 library_names_spec='$libname.ixlibrary $libname.a'
13748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13749 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'
13753 library_names_spec='${libname}${shared_ext}'
13754 dynamic_linker="$host_os ld.so"
13755 shlibpath_var=LIBRARY_PATH
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13764 shlibpath_var=LD_LIBRARY_PATH
13765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13767 # the default ld.so.conf also contains /usr/contrib/lib and
13768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13769 # libtool to hard-code these into programs
13772 cygwin* | mingw* | pw32*)
13773 version_type=windows
13778 case $GCC,$host_os in
13779 yes,cygwin* | yes,mingw* | yes,pw32*)
13780 library_names_spec='$libname.dll.a'
13781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13782 postinstall_cmds='base_file=`basename \${file}`~
13783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13784 dldir=$destdir/`dirname \$dlpath`~
13785 test -d \$dldir || mkdir -p \$dldir~
13786 $install_prog $dir/$dlname \$dldir/$dlname~
13787 chmod a+x \$dldir/$dlname'
13788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13789 dlpath=$dir/\$dldll~
13791 shlibpath_overrides_runpath=yes
13795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13796 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13797 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13800 # MinGW DLLs use traditional 'lib' prefix
13801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13802 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13803 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13804 # It is most probably a Windows format PATH printed by
13805 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13806 # path with ; separators, and with drive letters. We can handle the
13807 # drive letters (cygwin fileutils understands them), so leave them,
13808 # especially as we might pass files found there to a mingw objdump,
13809 # which wouldn't understand a cygwinified path. Ahh.
13810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13816 # pw32 DLLs use 'pw' prefix rather than 'lib'
13817 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13826 dynamic_linker='Win32 ld.exe'
13827 # FIXME: first we should search . and the directory the executable is in
13831 darwin* | rhapsody*)
13832 dynamic_linker="$host_os dyld"
13833 version_type=darwin
13836 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13837 soname_spec='${libname}${release}${major}$shared_ext'
13838 shlibpath_overrides_runpath=yes
13839 shlibpath_var=DYLD_LIBRARY_PATH
13840 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13841 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13842 if test "$GCC" = yes; then
13843 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13845 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13855 soname_spec='${libname}${release}${shared_ext}$major'
13856 shlibpath_var=LD_LIBRARY_PATH
13863 freebsd* | dragonfly*)
13864 # DragonFly does not have aout. When/if they implement a new
13865 # versioning mechanism, adjust this.
13866 if test -x /usr/bin/objformat; then
13867 objformat=`/usr/bin/objformat`
13870 freebsd[123]*) objformat=aout ;;
13871 *) objformat=elf ;;
13874 version_type=freebsd-$objformat
13875 case $version_type in
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13886 shlibpath_var=LD_LIBRARY_PATH
13889 shlibpath_overrides_runpath=yes
13891 freebsd3.[01]* | freebsdelf3.[01]*)
13892 shlibpath_overrides_runpath=yes
13893 hardcode_into_libs=yes
13895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13897 shlibpath_overrides_runpath=no
13898 hardcode_into_libs=yes
13900 freebsd*) # from 4.6 on
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 shlibpath_var=LD_LIBRARY_PATH
13914 hardcode_into_libs=yes
13917 hpux9* | hpux10* | hpux11*)
13918 # Give a soname corresponding to the major version so that dld.sl refuses to
13919 # link against other versions.
13926 hardcode_into_libs=yes
13927 dynamic_linker="$host_os dld.so"
13928 shlibpath_var=LD_LIBRARY_PATH
13929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 if test "X$HPUX_IA64_MODE" = X32; then
13933 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13941 hardcode_into_libs=yes
13942 dynamic_linker="$host_os dld.sl"
13943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13952 dynamic_linker="$host_os dld.sl"
13953 shlibpath_var=SHLIB_PATH
13954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13959 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13960 postinstall_cmds='chmod 555 $lib'
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13970 shlibpath_var=LD_LIBRARY_PATH
13971 shlibpath_overrides_runpath=no
13972 hardcode_into_libs=yes
13975 irix5* | irix6* | nonstopux*)
13977 nonstopux*) version_type=nonstopux ;;
13979 if test "$lt_cv_prog_gnu_ld" = yes; then
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13990 irix5* | nonstopux*)
13991 libsuff= shlibsuff=
13994 case $LD in # libtool.m4 will add one of these switches to LD
13995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13996 libsuff= shlibsuff= libmagic=32-bit;;
13997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13998 libsuff=32 shlibsuff=N32 libmagic=N32;;
13999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14001 *) libsuff= shlibsuff= libmagic=never-match;;
14005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14006 shlibpath_overrides_runpath=no
14007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14009 hardcode_into_libs=yes
14012 # No shared lib support for Linux oldld, aout, or coff.
14013 linux*oldld* | linux*aout* | linux*coff*)
14017 # This must be Linux ELF.
14018 linux* | k*bsd*-gnu)
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 shlibpath_overrides_runpath=no
14027 # This implies no fast_install, which is unacceptable.
14028 # Some rework will be needed to allow for fast_install
14029 # before this can be enabled.
14030 hardcode_into_libs=yes
14032 # Append ld.so.conf contents to the search path
14033 if test -f /etc/ld.so.conf; then
14034 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14038 # We used to test for /lib/ld.so.1 and disable shared libraries on
14039 # powerpc, because MkLinux only supported shared libraries with the
14040 # GNU dynamic linker. Since this was broken with cross compilers,
14041 # most powerpc-linux boxes support dynamic linking these days and
14042 # people can always --disable-shared, the test was removed, and we
14043 # assume the GNU/Linux dynamic linker is in use.
14044 dynamic_linker='GNU/Linux ld.so'
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 shlibpath_var=LD_LIBRARY_PATH
14054 shlibpath_overrides_runpath=no
14055 hardcode_into_libs=yes
14056 dynamic_linker='NetBSD ld.elf_so'
14063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14066 dynamic_linker='NetBSD (a.out) ld.so'
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 dynamic_linker='NetBSD ld.elf_so'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14074 hardcode_into_libs=yes
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 shlibpath_var=LD_LIBRARY_PATH
14081 shlibpath_overrides_runpath=yes
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 soname_spec='${libname}${release}${shared_ext}$major'
14090 shlibpath_var=LD_LIBRARY_PATH
14091 shlibpath_overrides_runpath=yes
14096 sys_lib_dlsearch_path_spec="/usr/lib"
14098 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14100 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14101 *) need_version=no ;;
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14105 shlibpath_var=LD_LIBRARY_PATH
14106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14108 openbsd2.[89] | openbsd2.[89].*)
14109 shlibpath_overrides_runpath=no
14112 shlibpath_overrides_runpath=yes
14116 shlibpath_overrides_runpath=yes
14121 libname_spec='$name'
14124 library_names_spec='$libname${shared_ext} $libname.a'
14125 dynamic_linker='OS/2 ld.exe'
14126 shlibpath_var=LIBPATH
14129 osf3* | osf4* | osf5*)
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 soname_spec='${libname}${release}${shared_ext}$major'
14146 shlibpath_var=LD_LIBRARY_PATH
14147 shlibpath_overrides_runpath=yes
14148 hardcode_into_libs=yes
14149 # ldd complains unless libraries are executable
14150 postinstall_cmds='chmod +x $lib'
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14157 shlibpath_var=LD_LIBRARY_PATH
14158 shlibpath_overrides_runpath=yes
14159 if test "$with_gnu_ld" = yes; then
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 case $host_vendor in
14172 shlibpath_overrides_runpath=no
14174 export_dynamic_flag_spec='${wl}-Blargedynsym'
14175 runpath_var=LD_RUN_PATH
14183 shlibpath_overrides_runpath=no
14184 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14190 if test -d /usr/nec ;then
14192 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14193 soname_spec='$libname${shared_ext}.$major'
14194 shlibpath_var=LD_LIBRARY_PATH
14198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14199 version_type=freebsd-elf
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 hardcode_into_libs=yes
14206 if test "$with_gnu_ld" = yes; then
14207 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14208 shlibpath_overrides_runpath=no
14210 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14211 shlibpath_overrides_runpath=yes
14214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14218 sys_lib_dlsearch_path_spec='/usr/lib'
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 soname_spec='${libname}${release}${shared_ext}$major'
14225 shlibpath_var=LD_LIBRARY_PATH
14232 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14233 echo "${ECHO_T}$dynamic_linker" >&6; }
14234 test "$dynamic_linker" = no && can_build_shared=no
14236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14237 if test "$GCC" = yes; then
14238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14241 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14243 hardcode_action_CXX=
14244 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14245 test -n "$runpath_var_CXX" || \
14246 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14248 # We can hardcode non-existant directories.
14249 if test "$hardcode_direct_CXX" != no &&
14250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14251 # have to relink, otherwise we might link with an installed library
14252 # when we should be linking with a yet-to-be-installed one
14253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14254 test "$hardcode_minus_L_CXX" != no; then
14255 # Linking always hardcodes the temporary library directory.
14256 hardcode_action_CXX=relink
14258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14259 hardcode_action_CXX=immediate
14262 # We cannot hardcode anything, or else we can only hardcode existing
14264 hardcode_action_CXX=unsupported
14266 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14267 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14269 if test "$hardcode_action_CXX" = relink; then
14270 # Fast installation is not supported
14271 enable_fast_install=no
14272 elif test "$shlibpath_overrides_runpath" = yes ||
14273 test "$enable_shared" = no; then
14274 # Fast installation is not necessary
14275 enable_fast_install=needless
14279 # The else clause should only fire when bootstrapping the
14280 # libtool distribution, otherwise you forgot to ship ltmain.sh
14281 # with your package, and you will get complaints that there are
14282 # no rules to generate ltmain.sh.
14283 if test -f "$ltmain"; then
14284 # See if we are running on zsh, and set the options which allow our commands through
14285 # without removal of \ escapes.
14286 if test -n "${ZSH_VERSION+set}" ; then
14287 setopt NO_GLOB_SUBST
14289 # Now quote all the things that may contain metacharacters while being
14290 # careful not to overquote the AC_SUBSTed values. We take copies of the
14291 # variables and quote the copies for generation of the libtool script.
14292 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14296 deplibs_check_method reload_flag reload_cmds need_locks \
14297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14298 lt_cv_sys_global_symbol_to_c_name_address \
14299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14300 old_postinstall_cmds old_postuninstall_cmds \
14304 lt_prog_compiler_wl_CXX \
14305 lt_prog_compiler_pic_CXX \
14306 lt_prog_compiler_static_CXX \
14307 lt_prog_compiler_no_builtin_flag_CXX \
14308 export_dynamic_flag_spec_CXX \
14309 thread_safe_flag_spec_CXX \
14310 whole_archive_flag_spec_CXX \
14311 enable_shared_with_static_runtimes_CXX \
14312 old_archive_cmds_CXX \
14313 old_archive_from_new_cmds_CXX \
14314 predep_objects_CXX \
14315 postdep_objects_CXX \
14318 compiler_lib_search_path_CXX \
14320 archive_expsym_cmds_CXX \
14321 postinstall_cmds_CXX \
14322 postuninstall_cmds_CXX \
14323 old_archive_from_expsyms_cmds_CXX \
14324 allow_undefined_flag_CXX \
14325 no_undefined_flag_CXX \
14326 export_symbols_cmds_CXX \
14327 hardcode_libdir_flag_spec_CXX \
14328 hardcode_libdir_flag_spec_ld_CXX \
14329 hardcode_libdir_separator_CXX \
14330 hardcode_automatic_CXX \
14332 module_expsym_cmds_CXX \
14333 lt_cv_prog_compiler_c_o_CXX \
14334 exclude_expsyms_CXX \
14335 include_expsyms_CXX; do
14338 old_archive_cmds_CXX | \
14339 old_archive_from_new_cmds_CXX | \
14340 archive_cmds_CXX | \
14341 archive_expsym_cmds_CXX | \
14342 module_cmds_CXX | \
14343 module_expsym_cmds_CXX | \
14344 old_archive_from_expsyms_cmds_CXX | \
14345 export_symbols_cmds_CXX | \
14346 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14347 postinstall_cmds | postuninstall_cmds | \
14348 old_postinstall_cmds | old_postuninstall_cmds | \
14349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14350 # Double-quote double-evaled strings.
14351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14360 *'\$0 --fallback-echo"')
14361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14367 cat <<__EOF__ >> "$cfgfile"
14368 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14372 # Shell to use when invoking shell scripts.
14375 # Whether or not to build shared libraries.
14376 build_libtool_libs=$enable_shared
14378 # Whether or not to build static libraries.
14379 build_old_libs=$enable_static
14381 # Whether or not to add -lc for building shared libraries.
14382 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14384 # Whether or not to disallow shared libs when runtime libs are static
14385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14387 # Whether or not to optimize for fast installation.
14388 fast_install=$enable_fast_install
14391 host_alias=$host_alias
14395 # The build system.
14396 build_alias=$build_alias
14400 # An echo program that does not interpret backslashes.
14405 AR_FLAGS=$lt_AR_FLAGS
14410 # LTCC compiler flags.
14411 LTCFLAGS=$lt_LTCFLAGS
14413 # A language-specific compiler.
14414 CC=$lt_compiler_CXX
14416 # Is the compiler the GNU C compiler?
14422 # The linker used to build libraries.
14425 # Whether we need hard or soft links.
14428 # A BSD-compatible nm program.
14431 # A symbol stripping program
14434 # Used to examine libraries when file_magic_cmd begins "file"
14435 MAGIC_CMD=$MAGIC_CMD
14437 # Used on cygwin: DLL creation program.
14440 # Used on cygwin: object dumper.
14443 # Used on cygwin: assembler.
14446 # The name of the directory that contains temporary libtool files.
14449 # How to create reloadable object files.
14450 reload_flag=$lt_reload_flag
14451 reload_cmds=$lt_reload_cmds
14453 # How to pass a linker flag through the compiler.
14454 wl=$lt_lt_prog_compiler_wl_CXX
14456 # Object file suffix (normally "o").
14457 objext="$ac_objext"
14459 # Old archive suffix (normally "a").
14462 # Shared library suffix (normally ".so").
14463 shrext_cmds='$shrext_cmds'
14465 # Executable file suffix (normally "").
14468 # Additional compiler flags for building library objects.
14469 pic_flag=$lt_lt_prog_compiler_pic_CXX
14472 # What is the maximum length of a command?
14473 max_cmd_len=$lt_cv_sys_max_cmd_len
14475 # Does compiler simultaneously support -c and -o options?
14476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14478 # Must we lock files when doing compilation?
14479 need_locks=$lt_need_locks
14481 # Do we need the lib prefix for modules?
14482 need_lib_prefix=$need_lib_prefix
14484 # Do we need a version for libraries?
14485 need_version=$need_version
14487 # Whether dlopen is supported.
14488 dlopen_support=$enable_dlopen
14490 # Whether dlopen of programs is supported.
14491 dlopen_self=$enable_dlopen_self
14493 # Whether dlopen of statically linked programs is supported.
14494 dlopen_self_static=$enable_dlopen_self_static
14496 # Compiler flag to prevent dynamic linking.
14497 link_static_flag=$lt_lt_prog_compiler_static_CXX
14499 # Compiler flag to turn off builtin functions.
14500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14502 # Compiler flag to allow reflexive dlopens.
14503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14505 # Compiler flag to generate shared objects directly from archives.
14506 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14508 # Compiler flag to generate thread-safe objects.
14509 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14511 # Library versioning type.
14512 version_type=$version_type
14514 # Format of library name prefix.
14515 libname_spec=$lt_libname_spec
14517 # List of archive names. First name is the real one, the rest are links.
14518 # The last name is the one that the linker finds with -lNAME.
14519 library_names_spec=$lt_library_names_spec
14521 # The coded name of the library, if different from the real name.
14522 soname_spec=$lt_soname_spec
14524 # Commands used to build and install an old-style archive.
14526 old_archive_cmds=$lt_old_archive_cmds_CXX
14527 old_postinstall_cmds=$lt_old_postinstall_cmds
14528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14530 # Create an old-style archive from a shared archive.
14531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14533 # Create a temporary old-style archive to link instead of a shared archive.
14534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14536 # Commands used to build and install a shared archive.
14537 archive_cmds=$lt_archive_cmds_CXX
14538 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14539 postinstall_cmds=$lt_postinstall_cmds
14540 postuninstall_cmds=$lt_postuninstall_cmds
14542 # Commands used to build a loadable module (assumed same as above if empty)
14543 module_cmds=$lt_module_cmds_CXX
14544 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14546 # Commands to strip libraries.
14547 old_striplib=$lt_old_striplib
14548 striplib=$lt_striplib
14550 # Dependencies to place before the objects being linked to create a
14552 predep_objects=$lt_predep_objects_CXX
14554 # Dependencies to place after the objects being linked to create a
14556 postdep_objects=$lt_postdep_objects_CXX
14558 # Dependencies to place before the objects being linked to create a
14560 predeps=$lt_predeps_CXX
14562 # Dependencies to place after the objects being linked to create a
14564 postdeps=$lt_postdeps_CXX
14566 # The library search path used internally by the compiler when linking
14567 # a shared library.
14568 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14570 # Method to check whether dependent libraries are shared objects.
14571 deplibs_check_method=$lt_deplibs_check_method
14573 # Command to use when deplibs_check_method == file_magic.
14574 file_magic_cmd=$lt_file_magic_cmd
14576 # Flag that allows shared libraries with undefined symbols to be built.
14577 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14579 # Flag that forces no undefined symbols.
14580 no_undefined_flag=$lt_no_undefined_flag_CXX
14582 # Commands used to finish a libtool library installation in a directory.
14583 finish_cmds=$lt_finish_cmds
14585 # Same as above, but a single script fragment to be evaled but not shown.
14586 finish_eval=$lt_finish_eval
14588 # Take the output of nm and produce a listing of raw symbols and C names.
14589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14591 # Transform the output of nm in a proper C declaration
14592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14594 # Transform the output of nm in a C name address pair
14595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14597 # This is the shared library runtime path variable.
14598 runpath_var=$runpath_var
14600 # This is the shared library path variable.
14601 shlibpath_var=$shlibpath_var
14603 # Is shlibpath searched before the hard-coded library search path?
14604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14606 # How to hardcode a shared library path into an executable.
14607 hardcode_action=$hardcode_action_CXX
14609 # Whether we should hardcode library paths into libraries.
14610 hardcode_into_libs=$hardcode_into_libs
14612 # Flag to hardcode \$libdir into a binary during linking.
14613 # This must work even if \$libdir does not exist.
14614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14616 # If ld is used when linking, flag to hardcode \$libdir into
14617 # a binary during linking. This must work even if \$libdir does
14619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14621 # Whether we need a single -rpath flag with a separated argument.
14622 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14625 # resulting binary.
14626 hardcode_direct=$hardcode_direct_CXX
14628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14629 # resulting binary.
14630 hardcode_minus_L=$hardcode_minus_L_CXX
14632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14633 # the resulting binary.
14634 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14636 # Set to yes if building a shared library automatically hardcodes DIR into the library
14637 # and all subsequent libraries and executables linked against it.
14638 hardcode_automatic=$hardcode_automatic_CXX
14640 # Variables whose values should be saved in libtool wrapper scripts and
14641 # restored at relink time.
14642 variables_saved_for_relink="$variables_saved_for_relink"
14644 # Whether libtool must link a program against all its dependency libraries.
14645 link_all_deplibs=$link_all_deplibs_CXX
14647 # Compile-time system search path for libraries
14648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14650 # Run-time system search path for libraries
14651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14653 # Fix the shell variable \$srcfile for the compiler.
14654 fix_srcfile_path="$fix_srcfile_path_CXX"
14656 # Set to yes if exported symbols are required.
14657 always_export_symbols=$always_export_symbols_CXX
14659 # The commands to list exported symbols.
14660 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14662 # The commands to extract the exported symbol list from a shared archive.
14663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14665 # Symbols that should not be listed in the preloaded symbols.
14666 exclude_expsyms=$lt_exclude_expsyms_CXX
14668 # Symbols that must always be exported.
14669 include_expsyms=$lt_include_expsyms_CXX
14671 # ### END LIBTOOL TAG CONFIG: $tagname
14677 # If there is no Makefile yet, we rely on a make rule to execute
14678 # `config.status --recheck' to rerun these tests and create the
14679 # libtool script then.
14680 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14681 if test -f "$ltmain_in"; then
14682 test -f Makefile && make "$ltmain"
14688 ac_cpp='$CPP $CPPFLAGS'
14689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14697 with_gnu_ldcxx=$with_gnu_ld
14698 with_gnu_ld=$lt_save_with_gnu_ld
14699 lt_cv_path_LDCXX=$lt_cv_path_LD
14700 lt_cv_path_LD=$lt_save_path_LD
14701 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14702 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14710 if test -n "$F77" && test "X$F77" != "Xno"; then
14713 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14714 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14718 archive_cmds_need_lc_F77=no
14719 allow_undefined_flag_F77=
14720 always_export_symbols_F77=no
14721 archive_expsym_cmds_F77=
14722 export_dynamic_flag_spec_F77=
14723 hardcode_direct_F77=no
14724 hardcode_libdir_flag_spec_F77=
14725 hardcode_libdir_flag_spec_ld_F77=
14726 hardcode_libdir_separator_F77=
14727 hardcode_minus_L_F77=no
14728 hardcode_automatic_F77=no
14730 module_expsym_cmds_F77=
14731 link_all_deplibs_F77=unknown
14732 old_archive_cmds_F77=$old_archive_cmds
14733 no_undefined_flag_F77=
14734 whole_archive_flag_spec_F77=
14735 enable_shared_with_static_runtimes_F77=no
14737 # Source file extension for f77 test sources.
14740 # Object file extension for compiled f77 test sources.
14744 # Code to be used in simple compile tests
14745 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14747 # Code to be used in simple link tests
14748 lt_simple_link_test_code=" program t\n end\n"
14750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14752 # If no C compiler was specified, use CC.
14755 # If no C compiler flags were specified, use CFLAGS.
14756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14758 # Allow CC to be a program name with arguments.
14762 # save warnings/boilerplate of simple test code
14763 ac_outfile=conftest.$ac_objext
14764 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14766 _lt_compiler_boilerplate=`cat conftest.err`
14769 ac_outfile=conftest.$ac_objext
14770 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14772 _lt_linker_boilerplate=`cat conftest.err`
14776 # Allow CC to be a program name with arguments.
14781 for cc_temp in $compiler""; do
14783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14792 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14793 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14794 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14795 echo "${ECHO_T}$can_build_shared" >&6; }
14797 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14798 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14799 test "$can_build_shared" = "no" && enable_shared=no
14801 # On AIX, shared libraries and static libraries use the same namespace, and
14802 # are all built from PIC.
14805 test "$enable_shared" = yes && enable_static=no
14806 if test -n "$RANLIB"; then
14807 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14808 postinstall_cmds='$RANLIB $lib'
14812 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14813 test "$enable_shared" = yes && enable_static=no
14817 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14818 echo "${ECHO_T}$enable_shared" >&6; }
14820 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14821 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14822 # Make sure either enable_shared or enable_static is yes.
14823 test "$enable_shared" = yes || enable_static=yes
14824 { echo "$as_me:$LINENO: result: $enable_static" >&5
14825 echo "${ECHO_T}$enable_static" >&6; }
14830 lt_prog_compiler_wl_F77=
14831 lt_prog_compiler_pic_F77=
14832 lt_prog_compiler_static_F77=
14834 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14837 if test "$GCC" = yes; then
14838 lt_prog_compiler_wl_F77='-Wl,'
14839 lt_prog_compiler_static_F77='-static'
14843 # All AIX code is PIC.
14844 if test "$host_cpu" = ia64; then
14845 # AIX 5 now supports IA64 processor
14846 lt_prog_compiler_static_F77='-Bstatic'
14851 # FIXME: we need at least 68020 code to build shared libraries, but
14852 # adding the `-m68020' flag to GCC prevents building anything better,
14854 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14858 # PIC is the default for these OSes.
14861 mingw* | pw32* | os2*)
14862 # This hack is so that the source file can tell whether it is being
14863 # built for inclusion in a dll (and should export symbols for example).
14864 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14867 darwin* | rhapsody*)
14868 # PIC is the default on this platform
14869 # Common symbols not allowed in MH_DYLIB files
14870 lt_prog_compiler_pic_F77='-fno-common'
14874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14875 # Instead, we relocate shared libraries at runtime.
14879 # Just because we use GCC doesn't mean we suddenly get shared libraries
14880 # on systems that don't support them.
14881 lt_prog_compiler_can_build_shared_F77=no
14886 if test -d /usr/nec; then
14887 lt_prog_compiler_pic_F77=-Kconform_pic
14892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14893 # not for PA HP-UX.
14899 lt_prog_compiler_pic_F77='-fPIC'
14905 lt_prog_compiler_pic_F77='-fPIC'
14909 # PORTME Check for flag to pass linker flags through the system compiler.
14912 lt_prog_compiler_wl_F77='-Wl,'
14913 if test "$host_cpu" = ia64; then
14914 # AIX 5 now supports IA64 processor
14915 lt_prog_compiler_static_F77='-Bstatic'
14917 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14921 # PIC is the default on this platform
14922 # Common symbols not allowed in MH_DYLIB files
14923 case $cc_basename in
14925 lt_prog_compiler_pic_F77='-qnocommon'
14926 lt_prog_compiler_wl_F77='-Wl,'
14931 mingw* | pw32* | os2*)
14932 # This hack is so that the source file can tell whether it is being
14933 # built for inclusion in a dll (and should export symbols for example).
14934 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14937 hpux9* | hpux10* | hpux11*)
14938 lt_prog_compiler_wl_F77='-Wl,'
14939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14940 # not for PA HP-UX.
14946 lt_prog_compiler_pic_F77='+Z'
14949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14950 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14953 irix5* | irix6* | nonstopux*)
14954 lt_prog_compiler_wl_F77='-Wl,'
14955 # PIC (with -KPIC) is the default.
14956 lt_prog_compiler_static_F77='-non_shared'
14960 lt_prog_compiler_pic_F77='-KPIC'
14961 lt_prog_compiler_static_F77='-Bstatic'
14964 linux* | k*bsd*-gnu)
14965 case $cc_basename in
14967 lt_prog_compiler_wl_F77='-Wl,'
14968 lt_prog_compiler_pic_F77='-KPIC'
14969 lt_prog_compiler_static_F77='-static'
14971 pgcc* | pgf77* | pgf90* | pgf95*)
14972 # Portland Group compilers (*not* the Pentium gcc compiler,
14973 # which looks to be a dead project)
14974 lt_prog_compiler_wl_F77='-Wl,'
14975 lt_prog_compiler_pic_F77='-fpic'
14976 lt_prog_compiler_static_F77='-Bstatic'
14979 lt_prog_compiler_wl_F77='-Wl,'
14980 # All Alpha code is PIC.
14981 lt_prog_compiler_static_F77='-non_shared'
14986 osf3* | osf4* | osf5*)
14987 lt_prog_compiler_wl_F77='-Wl,'
14988 # All OSF/1 code is PIC.
14989 lt_prog_compiler_static_F77='-non_shared'
14993 lt_prog_compiler_pic_F77='-KPIC'
14994 lt_prog_compiler_static_F77='-Bstatic'
14995 case $cc_basename in
14996 f77* | f90* | f95*)
14997 lt_prog_compiler_wl_F77='-Qoption ld ';;
14999 lt_prog_compiler_wl_F77='-Wl,';;
15004 lt_prog_compiler_wl_F77='-Qoption ld '
15005 lt_prog_compiler_pic_F77='-PIC'
15006 lt_prog_compiler_static_F77='-Bstatic'
15009 sysv4 | sysv4.2uw2* | sysv4.3*)
15010 lt_prog_compiler_wl_F77='-Wl,'
15011 lt_prog_compiler_pic_F77='-KPIC'
15012 lt_prog_compiler_static_F77='-Bstatic'
15016 if test -d /usr/nec ;then
15017 lt_prog_compiler_pic_F77='-Kconform_pic'
15018 lt_prog_compiler_static_F77='-Bstatic'
15022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15023 lt_prog_compiler_wl_F77='-Wl,'
15024 lt_prog_compiler_pic_F77='-KPIC'
15025 lt_prog_compiler_static_F77='-Bstatic'
15029 lt_prog_compiler_wl_F77='-Wl,'
15030 lt_prog_compiler_can_build_shared_F77=no
15034 lt_prog_compiler_pic_F77='-pic'
15035 lt_prog_compiler_static_F77='-Bstatic'
15039 lt_prog_compiler_can_build_shared_F77=no
15044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15045 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15048 # Check to make sure the PIC flag actually works.
15050 if test -n "$lt_prog_compiler_pic_F77"; then
15052 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15054 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 lt_prog_compiler_pic_works_F77=no
15058 ac_outfile=conftest.$ac_objext
15059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 # The option is referenced via a variable to avoid confusing sed.
15066 lt_compile=`echo "$ac_compile" | $SED \
15067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15069 -e 's:$: $lt_compiler_flag:'`
15070 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15071 (eval "$lt_compile" 2>conftest.err)
15073 cat conftest.err >&5
15074 echo "$as_me:__oline__: \$? = $ac_status" >&5
15075 if (exit $ac_status) && test -s "$ac_outfile"; then
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings other than the usual output.
15078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15081 lt_prog_compiler_pic_works_F77=yes
15087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15088 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15090 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15091 case $lt_prog_compiler_pic_F77 in
15093 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15096 lt_prog_compiler_pic_F77=
15097 lt_prog_compiler_can_build_shared_F77=no
15102 # For platforms which do not support PIC, -DPIC is meaningless:
15104 lt_prog_compiler_pic_F77=
15107 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15112 # Check to make sure the static flag actually works.
15114 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15115 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15117 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 lt_prog_compiler_static_works_F77=no
15121 save_LDFLAGS="$LDFLAGS"
15122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15125 # The linker can only warn and ignore the option if not recognized
15126 # So say no if there are warnings
15127 if test -s conftest.err; then
15128 # Append any errors to the config.log.
15129 cat conftest.err 1>&5
15130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15132 if diff conftest.exp conftest.er2 >/dev/null; then
15133 lt_prog_compiler_static_works_F77=yes
15136 lt_prog_compiler_static_works_F77=yes
15140 LDFLAGS="$save_LDFLAGS"
15143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15144 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15146 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15149 lt_prog_compiler_static_F77=
15153 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15155 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 lt_cv_prog_compiler_c_o_F77=no
15159 $rm -r conftest 2>/dev/null
15163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15165 lt_compiler_flag="-o out/conftest2.$ac_objext"
15166 # Insert the option either (1) after the last *FLAGS variable, or
15167 # (2) before a word containing "conftest.", or (3) at the end.
15168 # Note that $ac_compile itself does not contain backslashes and begins
15169 # with a dollar sign (not a hyphen), so the echo should work correctly.
15170 lt_compile=`echo "$ac_compile" | $SED \
15171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15173 -e 's:$: $lt_compiler_flag:'`
15174 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15175 (eval "$lt_compile" 2>out/conftest.err)
15177 cat out/conftest.err >&5
15178 echo "$as_me:__oline__: \$? = $ac_status" >&5
15179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15181 # The compiler can only warn and ignore the option if not recognized
15182 # So say no if there are warnings
15183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15186 lt_cv_prog_compiler_c_o_F77=yes
15191 # SGI C++ compiler will create directory out/ii_files/ for
15192 # template instantiation
15193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15194 $rm out/* && rmdir out
15200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15204 hard_links="nottested"
15205 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15206 # do not overwrite the value of need_locks provided by the user
15207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15213 ln conftest.a conftest.b 2>&5 || hard_links=no
15214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15215 { echo "$as_me:$LINENO: result: $hard_links" >&5
15216 echo "${ECHO_T}$hard_links" >&6; }
15217 if test "$hard_links" = no; then
15218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15230 allow_undefined_flag_F77=
15231 enable_shared_with_static_runtimes_F77=no
15233 archive_expsym_cmds_F77=
15234 old_archive_From_new_cmds_F77=
15235 old_archive_from_expsyms_cmds_F77=
15236 export_dynamic_flag_spec_F77=
15237 whole_archive_flag_spec_F77=
15238 thread_safe_flag_spec_F77=
15239 hardcode_libdir_flag_spec_F77=
15240 hardcode_libdir_flag_spec_ld_F77=
15241 hardcode_libdir_separator_F77=
15242 hardcode_direct_F77=no
15243 hardcode_minus_L_F77=no
15244 hardcode_shlibpath_var_F77=unsupported
15245 link_all_deplibs_F77=unknown
15246 hardcode_automatic_F77=no
15248 module_expsym_cmds_F77=
15249 always_export_symbols_F77=no
15250 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15251 # include_expsyms should be a list of space-separated symbols to be *always*
15252 # included in the symbol list
15253 include_expsyms_F77=
15254 # exclude_expsyms can be an extended regexp of symbols to exclude
15255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15257 # as well as any symbol that contains `d'.
15258 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15260 # platforms (ab)use it in PIC code, but their linkers get confused if
15261 # the symbol is explicitly referenced. Since portable code cannot
15262 # rely on this symbol name, it's probably fine to never include it in
15263 # preloaded symbol tables.
15264 extract_expsyms_cmds=
15265 # Just being paranoid about ensuring that cc_basename is set.
15266 for cc_temp in $compiler""; do
15268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15277 cygwin* | mingw* | pw32*)
15278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15279 # When not using gcc, we currently assume that we are using
15280 # Microsoft Visual C++.
15281 if test "$GCC" != yes; then
15286 # we just hope/assume this is gcc and not c89 (= MSVC++)
15295 if test "$with_gnu_ld" = yes; then
15296 # If archive_cmds runs LD, not CC, wlarc should be empty
15299 # Set some defaults for GNU ld with shared library support. These
15300 # are reset later if shared libraries are not supported. Putting them
15301 # here allows them to be overridden if necessary.
15302 runpath_var=LD_RUN_PATH
15303 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15304 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15305 # ancient GNU ld didn't support --whole-archive et. al.
15306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15307 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15309 whole_archive_flag_spec_F77=
15311 supports_anon_versioning=no
15312 case `$LD -v 2>/dev/null` in
15313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15316 *\ 2.11.*) ;; # other 2.11 versions
15317 *) supports_anon_versioning=yes ;;
15320 # See if GNU ld supports shared libraries.
15322 aix3* | aix4* | aix5*)
15323 # On AIX/PPC, the GNU linker is very broken
15324 if test "$host_cpu" != ia64; then
15328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15329 *** to be unable to reliably create shared libraries on AIX.
15330 *** Therefore, libtool is disabling shared libraries support. If you
15331 *** really care for shared libraries, you may want to modify your PATH
15332 *** so that a non-GNU linker is found, and then restart.
15339 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)'
15340 hardcode_libdir_flag_spec_F77='-L$libdir'
15341 hardcode_minus_L_F77=yes
15343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15344 # that the semantics of dynamic libraries on AmigaOS, at least up
15345 # to version 4, is to share data among multiple programs linked
15346 # with the same dynamic library. Since this doesn't match the
15347 # behavior of shared libraries on other platforms, we can't use
15353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15354 allow_undefined_flag_F77=unsupported
15355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15356 # support --undefined. This deserves some investigation. FIXME
15357 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15363 cygwin* | mingw* | pw32*)
15364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15365 # as there is no search path for DLLs.
15366 hardcode_libdir_flag_spec_F77='-L$libdir'
15367 allow_undefined_flag_F77=unsupported
15368 always_export_symbols_F77=no
15369 enable_shared_with_static_runtimes_F77=yes
15370 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15373 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15374 # If the export-symbols file already is a .def file (1st line
15375 # is EXPORTS), use it as is; otherwise, prepend...
15376 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15377 cp $export_symbols $output_objdir/$soname.def;
15379 echo EXPORTS > $output_objdir/$soname.def;
15380 cat $export_symbols >> $output_objdir/$soname.def;
15382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15389 hardcode_direct_F77=no
15390 hardcode_shlibpath_var_F77=no
15391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15392 export_dynamic_flag_spec_F77='${wl}-E'
15393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15394 # Instead, shared libraries are loaded at an image base (0x10000000 by
15395 # default) and relocated if they conflict, which is a slow very memory
15396 # consuming and fragmenting process. To avoid this, we pick a random,
15397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15399 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'
15400 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'
15403 linux* | k*bsd*-gnu)
15404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15406 case $cc_basename,$host_cpu in
15407 pgcc*) # Portland Group C compiler
15408 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'
15409 tmp_addflag=' $pic_flag'
15411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15412 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'
15413 tmp_addflag=' $pic_flag -Mnomain' ;;
15414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15415 tmp_addflag=' -i_dynamic' ;;
15416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15417 tmp_addflag=' -i_dynamic -nofor_main' ;;
15418 ifc* | ifort*) # Intel Fortran compiler
15419 tmp_addflag=' -nofor_main' ;;
15421 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15423 if test $supports_anon_versioning = yes; then
15424 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15426 $echo "local: *; };" >> $output_objdir/$libname.ver~
15427 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15429 link_all_deplibs_F77=no
15435 netbsd* | netbsdelf*-gnu)
15436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15437 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15440 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15446 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15451 *** create shared libraries on Solaris systems. Therefore, libtool
15452 *** is disabling shared libraries support. We urge you to upgrade GNU
15453 *** binutils to release 2.9.1 or newer. Another option is to modify
15454 *** your PATH or compiler configuration so that the native linker is
15455 *** used, and then restart.
15458 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15460 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15467 case `$LD -v 2>&1` in
15468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15473 *** reliably create shared libraries on SCO systems. Therefore, libtool
15474 *** is disabling shared libraries support. We urge you to upgrade GNU
15475 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15483 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15484 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15485 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15494 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_direct_F77=yes
15497 hardcode_shlibpath_var_F77=no
15501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15503 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15510 if test "$ld_shlibs_F77" = no; then
15512 hardcode_libdir_flag_spec_F77=
15513 export_dynamic_flag_spec_F77=
15514 whole_archive_flag_spec_F77=
15517 # PORTME fill in a description of your system's linker (not GNU ld)
15520 allow_undefined_flag_F77=unsupported
15521 always_export_symbols_F77=yes
15522 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'
15523 # Note: this linker hardcodes the directories in LIBPATH if there
15524 # are no directories specified by -L.
15525 hardcode_minus_L_F77=yes
15526 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15527 # Neither direct hardcoding nor static linking is supported with a
15529 hardcode_direct_F77=unsupported
15534 if test "$host_cpu" = ia64; then
15535 # On IA64, the linker does run time linking by default, so we don't
15536 # have to do anything special.
15537 aix_use_runtimelinking=no
15538 exp_sym_flag='-Bexport'
15541 # If we're using GNU nm, then we don't want the "-C" option.
15542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15543 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15544 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'
15546 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'
15548 aix_use_runtimelinking=no
15550 # Test if we are trying to use run time linking or normal
15551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15552 # need to do runtime linking.
15553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15554 for ld_flag in $LDFLAGS; do
15555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15556 aix_use_runtimelinking=yes
15563 exp_sym_flag='-bexport'
15564 no_entry_flag='-bnoentry'
15567 # When large executables or shared objects are built, AIX ld can
15568 # have problems creating the table of contents. If linking a library
15569 # or program results in "error TOC overflow" add -mminimal-toc to
15570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15573 archive_cmds_F77=''
15574 hardcode_direct_F77=yes
15575 hardcode_libdir_separator_F77=':'
15576 link_all_deplibs_F77=yes
15578 if test "$GCC" = yes; then
15579 case $host_os in aix4.[012]|aix4.[012].*)
15580 # We only want to do this on AIX 4.2 and lower, the check
15581 # below for broken collect2 doesn't work under 4.3+
15582 collect2name=`${CC} -print-prog-name=collect2`
15583 if test -f "$collect2name" && \
15584 strings "$collect2name" | grep resolve_lib_name >/dev/null
15586 # We have reworked collect2
15587 hardcode_direct_F77=yes
15589 # We have old collect2
15590 hardcode_direct_F77=unsupported
15591 # It fails to find uninstalled libraries when the uninstalled
15592 # path is not listed in the libpath. Setting hardcode_minus_L
15593 # to unsupported forces relinking
15594 hardcode_minus_L_F77=yes
15595 hardcode_libdir_flag_spec_F77='-L$libdir'
15596 hardcode_libdir_separator_F77=
15600 shared_flag='-shared'
15601 if test "$aix_use_runtimelinking" = yes; then
15602 shared_flag="$shared_flag "'${wl}-G'
15606 if test "$host_cpu" = ia64; then
15607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15608 # chokes on -Wl,-G. The following line is correct:
15611 if test "$aix_use_runtimelinking" = yes; then
15612 shared_flag='${wl}-G'
15614 shared_flag='${wl}-bM:SRE'
15619 # It seems that -bexpall does not export symbols beginning with
15620 # underscore (_), so it is better to generate a list of symbols to export.
15621 always_export_symbols_F77=yes
15622 if test "$aix_use_runtimelinking" = yes; then
15623 # Warning - without using the other runtime loading flags (-brtl),
15624 # -berok will link without error, but may produce a broken library.
15625 allow_undefined_flag_F77='-berok'
15626 # Determine the default libpath from the value encoded in an empty executable.
15627 cat >conftest.$ac_ext <<_ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_link") 2>conftest.er1
15641 grep -v '^ *+' conftest.er1 >conftest.err
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } && {
15646 test -z "$ac_f77_werror_flag" ||
15647 test ! -s conftest.err
15648 } && test -s conftest$ac_exeext &&
15649 $as_test_x conftest$ac_exeext; then
15651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15653 # Check for a 64-bit object if we didn't find anything.
15654 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15664 conftest$ac_exeext conftest.$ac_ext
15665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15667 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15668 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"
15670 if test "$host_cpu" = ia64; then
15671 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15672 allow_undefined_flag_F77="-z nodefs"
15673 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"
15675 # Determine the default libpath from the value encoded in an empty executable.
15676 cat >conftest.$ac_ext <<_ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && {
15695 test -z "$ac_f77_werror_flag" ||
15696 test ! -s conftest.err
15697 } && test -s conftest$ac_exeext &&
15698 $as_test_x conftest$ac_exeext; then
15700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15702 # Check for a 64-bit object if we didn't find anything.
15703 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15713 conftest$ac_exeext conftest.$ac_ext
15714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15717 # Warning - without using the other run time loading flags,
15718 # -berok will link without error, but may produce a broken library.
15719 no_undefined_flag_F77=' ${wl}-bernotok'
15720 allow_undefined_flag_F77=' ${wl}-berok'
15721 # Exported symbols can be pulled into shared objects from archives
15722 whole_archive_flag_spec_F77='$convenience'
15723 archive_cmds_need_lc_F77=yes
15724 # This is similar to how AIX traditionally builds its shared libraries.
15725 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'
15731 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)'
15732 hardcode_libdir_flag_spec_F77='-L$libdir'
15733 hardcode_minus_L_F77=yes
15734 # see comment about different semantics on the GNU ld section
15739 export_dynamic_flag_spec_F77=-rdynamic
15742 cygwin* | mingw* | pw32*)
15743 # When not using gcc, we currently assume that we are using
15744 # Microsoft Visual C++.
15745 # hardcode_libdir_flag_spec is actually meaningless, as there is
15746 # no search path for DLLs.
15747 hardcode_libdir_flag_spec_F77=' '
15748 allow_undefined_flag_F77=unsupported
15749 # Tell ltmain to make .lib files, not .a files.
15751 # Tell ltmain to make .dll files, not .so files.
15753 # FIXME: Setting linknames here is a bad hack.
15754 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15755 # The linker will automatically build a .lib file if we build a DLL.
15756 old_archive_From_new_cmds_F77='true'
15757 # FIXME: Should let the user specify the lib program.
15758 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15759 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15760 enable_shared_with_static_runtimes_F77=yes
15763 darwin* | rhapsody*)
15765 rhapsody* | darwin1.[012])
15766 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15769 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15770 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15772 case ${MACOSX_DEPLOYMENT_TARGET} in
15774 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15777 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15783 archive_cmds_need_lc_F77=no
15784 hardcode_direct_F77=no
15785 hardcode_automatic_F77=yes
15786 hardcode_shlibpath_var_F77=unsupported
15787 whole_archive_flag_spec_F77=''
15788 link_all_deplibs_F77=yes
15789 if test "$GCC" = yes ; then
15790 output_verbose_link_cmd='echo'
15791 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15792 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15793 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15794 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15795 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}'
15797 case $cc_basename in
15799 output_verbose_link_cmd='echo'
15800 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15801 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15803 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15804 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}'
15814 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15815 hardcode_libdir_flag_spec_F77='-L$libdir'
15816 hardcode_shlibpath_var_F77=no
15823 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15824 # support. Future versions do this automatically, but an explicit c++rt0.o
15825 # does not break anything, and helps significantly (at the cost of a little
15828 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15829 hardcode_libdir_flag_spec_F77='-R$libdir'
15830 hardcode_direct_F77=yes
15831 hardcode_shlibpath_var_F77=no
15834 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15836 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_direct_F77=yes
15838 hardcode_minus_L_F77=yes
15839 hardcode_shlibpath_var_F77=no
15842 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15843 freebsd* | dragonfly*)
15844 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15845 hardcode_libdir_flag_spec_F77='-R$libdir'
15846 hardcode_direct_F77=yes
15847 hardcode_shlibpath_var_F77=no
15851 if test "$GCC" = yes; then
15852 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'
15854 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'
15856 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15857 hardcode_libdir_separator_F77=:
15858 hardcode_direct_F77=yes
15860 # hardcode_minus_L: Not really in the search PATH,
15861 # but as the default location of the library.
15862 hardcode_minus_L_F77=yes
15863 export_dynamic_flag_spec_F77='${wl}-E'
15867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15868 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15870 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15872 if test "$with_gnu_ld" = no; then
15873 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15874 hardcode_libdir_separator_F77=:
15876 hardcode_direct_F77=yes
15877 export_dynamic_flag_spec_F77='${wl}-E'
15879 # hardcode_minus_L: Not really in the search PATH,
15880 # but as the default location of the library.
15881 hardcode_minus_L_F77=yes
15886 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15889 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15901 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15907 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15911 if test "$with_gnu_ld" = no; then
15912 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15913 hardcode_libdir_separator_F77=:
15917 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15918 hardcode_direct_F77=no
15919 hardcode_shlibpath_var_F77=no
15922 hardcode_direct_F77=yes
15923 export_dynamic_flag_spec_F77='${wl}-E'
15925 # hardcode_minus_L: Not really in the search PATH,
15926 # but as the default location of the library.
15927 hardcode_minus_L_F77=yes
15933 irix5* | irix6* | nonstopux*)
15934 if test "$GCC" = yes; then
15935 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'
15937 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'
15938 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15941 hardcode_libdir_separator_F77=:
15942 link_all_deplibs_F77=yes
15945 netbsd* | netbsdelf*-gnu)
15946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15947 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15949 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15951 hardcode_libdir_flag_spec_F77='-R$libdir'
15952 hardcode_direct_F77=yes
15953 hardcode_shlibpath_var_F77=no
15957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_direct_F77=yes
15959 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15960 hardcode_libdir_separator_F77=:
15961 hardcode_shlibpath_var_F77=no
15965 hardcode_direct_F77=yes
15966 hardcode_shlibpath_var_F77=no
15967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15970 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15971 export_dynamic_flag_spec_F77='${wl}-E'
15974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15976 hardcode_libdir_flag_spec_F77='-R$libdir'
15979 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15980 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15987 hardcode_libdir_flag_spec_F77='-L$libdir'
15988 hardcode_minus_L_F77=yes
15989 allow_undefined_flag_F77=unsupported
15990 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'
15991 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15995 if test "$GCC" = yes; then
15996 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15997 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'
15999 allow_undefined_flag_F77=' -expect_unresolved \*'
16000 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'
16002 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16003 hardcode_libdir_separator_F77=:
16006 osf4* | osf5*) # as osf3* with the addition of -msym flag
16007 if test "$GCC" = yes; then
16008 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16009 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'
16010 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16012 allow_undefined_flag_F77=' -expect_unresolved \*'
16013 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'
16014 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~
16015 $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'
16017 # Both c and cxx compiler support -rpath directly
16018 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16020 hardcode_libdir_separator_F77=:
16024 no_undefined_flag_F77=' -z text'
16025 if test "$GCC" = yes; then
16027 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16028 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16029 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16032 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16033 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16034 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16036 hardcode_libdir_flag_spec_F77='-R$libdir'
16037 hardcode_shlibpath_var_F77=no
16039 solaris2.[0-5] | solaris2.[0-5].*) ;;
16041 # The compiler driver will combine linker options so we
16042 # cannot just pass the convience library names through
16043 # without $wl, iff we do not link with $LD.
16044 # Luckily, gcc supports the same syntax we need for Sun Studio.
16045 # Supported since Solaris 2.6 (maybe 2.5.1?)
16048 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16050 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16053 link_all_deplibs_F77=yes
16057 if test "x$host_vendor" = xsequent; then
16058 # Use $CC to link under sequent, because it throws in some extra .o
16059 # files that make .init and .fini sections work.
16060 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16064 hardcode_libdir_flag_spec_F77='-L$libdir'
16065 hardcode_direct_F77=yes
16066 hardcode_minus_L_F77=yes
16067 hardcode_shlibpath_var_F77=no
16071 case $host_vendor in
16073 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_direct_F77=yes # is this really true???
16077 ## LD is ld it makes a PLAMLIB
16078 ## CC just makes a GrossModule.
16079 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16080 reload_cmds_F77='$CC -r -o $output$reload_objs'
16081 hardcode_direct_F77=no
16084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16088 runpath_var='LD_RUN_PATH'
16089 hardcode_shlibpath_var_F77=no
16093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094 hardcode_shlibpath_var_F77=no
16095 export_dynamic_flag_spec_F77='-Bexport'
16099 if test -d /usr/nec; then
16100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_shlibpath_var_F77=no
16102 runpath_var=LD_RUN_PATH
16103 hardcode_runpath_var=yes
16108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16109 no_undefined_flag_F77='${wl}-z,text'
16110 archive_cmds_need_lc_F77=no
16111 hardcode_shlibpath_var_F77=no
16112 runpath_var='LD_RUN_PATH'
16114 if test "$GCC" = yes; then
16115 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16119 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16123 sysv5* | sco3.2v5* | sco5v6*)
16124 # Note: We can NOT use -z defs as we might desire, because we do not
16125 # link with -lc, and that would cause any symbols used from libc to
16126 # always be unresolved, which means just about no library would
16127 # ever link correctly. If we're not using GNU ld we use -z text
16128 # though, which does catch some bad symbols but isn't as heavy-handed
16130 no_undefined_flag_F77='${wl}-z,text'
16131 allow_undefined_flag_F77='${wl}-z,nodefs'
16132 archive_cmds_need_lc_F77=no
16133 hardcode_shlibpath_var_F77=no
16134 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16135 hardcode_libdir_separator_F77=':'
16136 link_all_deplibs_F77=yes
16137 export_dynamic_flag_spec_F77='${wl}-Bexport'
16138 runpath_var='LD_RUN_PATH'
16140 if test "$GCC" = yes; then
16141 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16144 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16150 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_libdir_flag_spec_F77='-L$libdir'
16152 hardcode_shlibpath_var_F77=no
16161 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16162 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16163 test "$ld_shlibs_F77" = no && can_build_shared=no
16166 # Do we need to explicitly link libc?
16168 case "x$archive_cmds_need_lc_F77" in
16170 # Assume -lc should be added
16171 archive_cmds_need_lc_F77=yes
16173 if test "$enable_shared" = yes && test "$GCC" = yes; then
16174 case $archive_cmds_F77 in
16176 # FIXME: we may have to deal with multi-command sequences.
16179 # Test whether the compiler implicitly links with -lc since on some
16180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16181 # to ld, don't add -lc before -lgcc.
16182 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } 2>conftest.err; then
16194 libobjs=conftest.$ac_objext
16196 wl=$lt_prog_compiler_wl_F77
16197 pic_flag=$lt_prog_compiler_pic_F77
16203 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16204 allow_undefined_flag_F77=
16205 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16206 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }
16211 archive_cmds_need_lc_F77=no
16213 archive_cmds_need_lc_F77=yes
16215 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16217 cat conftest.err 1>&5
16220 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16221 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16228 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16230 library_names_spec=
16231 libname_spec='lib$name'
16235 postuninstall_cmds=
16239 shlibpath_overrides_runpath=unknown
16241 dynamic_linker="$host_os ld.so"
16242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16243 if test "$GCC" = yes; then
16244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16245 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16246 # if the path contains ";" then we assume it to be the separator
16247 # otherwise default to the standard path separator (i.e. ":") - it is
16248 # assumed that no part of a normal pathname contains ";" but that should
16249 # okay in the real world where ";" in dirpaths is itself problematic.
16250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16257 need_lib_prefix=unknown
16258 hardcode_into_libs=no
16260 # when you set need_version to no, make sure it does not cause -set_version
16261 # flags to be left without arguments
16262 need_version=unknown
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16268 shlibpath_var=LIBPATH
16270 # AIX 3 has no versioning support, so we append a major version to the name.
16271 soname_spec='${libname}${release}${shared_ext}$major'
16278 hardcode_into_libs=yes
16279 if test "$host_cpu" = ia64; then
16280 # AIX 5 supports IA64
16281 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16282 shlibpath_var=LD_LIBRARY_PATH
16284 # With GCC up to 2.95.x, collect2 would create an import file
16285 # for dependence libraries. The import file would start with
16286 # the line `#! .'. This would cause the generated library to
16287 # depend on `.', always an invalid library. This was fixed in
16288 # development snapshots of GCC prior to 3.0.
16290 aix4 | aix4.[01] | aix4.[01].*)
16291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16293 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16296 can_build_shared=no
16300 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16301 # soname into executable. Probably we can add versioning support to
16302 # collect2, so additional links can be useful in future.
16303 if test "$aix_use_runtimelinking" = yes; then
16304 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16305 # instead of lib<name>.a to let people know that these are not
16306 # typical AIX shared libraries.
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 # We preserve .a as extension for shared libraries through AIX4.2
16310 # and later when we are not doing run time linking.
16311 library_names_spec='${libname}${release}.a $libname.a'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LIBPATH
16319 library_names_spec='$libname.ixlibrary $libname.a'
16320 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16321 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'
16325 library_names_spec='${libname}${shared_ext}'
16326 dynamic_linker="$host_os ld.so"
16327 shlibpath_var=LIBRARY_PATH
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16338 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16339 # the default ld.so.conf also contains /usr/contrib/lib and
16340 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16341 # libtool to hard-code these into programs
16344 cygwin* | mingw* | pw32*)
16345 version_type=windows
16350 case $GCC,$host_os in
16351 yes,cygwin* | yes,mingw* | yes,pw32*)
16352 library_names_spec='$libname.dll.a'
16353 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16354 postinstall_cmds='base_file=`basename \${file}`~
16355 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16356 dldir=$destdir/`dirname \$dlpath`~
16357 test -d \$dldir || mkdir -p \$dldir~
16358 $install_prog $dir/$dlname \$dldir/$dlname~
16359 chmod a+x \$dldir/$dlname'
16360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16361 dlpath=$dir/\$dldll~
16363 shlibpath_overrides_runpath=yes
16367 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16368 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16369 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16372 # MinGW DLLs use traditional 'lib' prefix
16373 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16374 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16375 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16376 # It is most probably a Windows format PATH printed by
16377 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16378 # path with ; separators, and with drive letters. We can handle the
16379 # drive letters (cygwin fileutils understands them), so leave them,
16380 # especially as we might pass files found there to a mingw objdump,
16381 # which wouldn't understand a cygwinified path. Ahh.
16382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16388 # pw32 DLLs use 'pw' prefix rather than 'lib'
16389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16398 dynamic_linker='Win32 ld.exe'
16399 # FIXME: first we should search . and the directory the executable is in
16403 darwin* | rhapsody*)
16404 dynamic_linker="$host_os dyld"
16405 version_type=darwin
16408 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16409 soname_spec='${libname}${release}${major}$shared_ext'
16410 shlibpath_overrides_runpath=yes
16411 shlibpath_var=DYLD_LIBRARY_PATH
16412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16413 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16414 if test "$GCC" = yes; then
16415 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16417 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16435 freebsd* | dragonfly*)
16436 # DragonFly does not have aout. When/if they implement a new
16437 # versioning mechanism, adjust this.
16438 if test -x /usr/bin/objformat; then
16439 objformat=`/usr/bin/objformat`
16442 freebsd[123]*) objformat=aout ;;
16443 *) objformat=elf ;;
16446 version_type=freebsd-$objformat
16447 case $version_type in
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16458 shlibpath_var=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath=yes
16463 freebsd3.[01]* | freebsdelf3.[01]*)
16464 shlibpath_overrides_runpath=yes
16465 hardcode_into_libs=yes
16467 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16468 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16469 shlibpath_overrides_runpath=no
16470 hardcode_into_libs=yes
16472 freebsd*) # from 4.6 on
16473 shlibpath_overrides_runpath=yes
16474 hardcode_into_libs=yes
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 hardcode_into_libs=yes
16489 hpux9* | hpux10* | hpux11*)
16490 # Give a soname corresponding to the major version so that dld.sl refuses to
16491 # link against other versions.
16498 hardcode_into_libs=yes
16499 dynamic_linker="$host_os dld.so"
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 if test "X$HPUX_IA64_MODE" = X32; then
16505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16513 hardcode_into_libs=yes
16514 dynamic_linker="$host_os dld.sl"
16515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16524 dynamic_linker="$host_os dld.sl"
16525 shlibpath_var=SHLIB_PATH
16526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16532 postinstall_cmds='chmod 555 $lib'
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=no
16544 hardcode_into_libs=yes
16547 irix5* | irix6* | nonstopux*)
16549 nonstopux*) version_type=nonstopux ;;
16551 if test "$lt_cv_prog_gnu_ld" = yes; then
16559 soname_spec='${libname}${release}${shared_ext}$major'
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16562 irix5* | nonstopux*)
16563 libsuff= shlibsuff=
16566 case $LD in # libtool.m4 will add one of these switches to LD
16567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16568 libsuff= shlibsuff= libmagic=32-bit;;
16569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16570 libsuff=32 shlibsuff=N32 libmagic=N32;;
16571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16573 *) libsuff= shlibsuff= libmagic=never-match;;
16577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16578 shlibpath_overrides_runpath=no
16579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16581 hardcode_into_libs=yes
16584 # No shared lib support for Linux oldld, aout, or coff.
16585 linux*oldld* | linux*aout* | linux*coff*)
16589 # This must be Linux ELF.
16590 linux* | k*bsd*-gnu)
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=no
16599 # This implies no fast_install, which is unacceptable.
16600 # Some rework will be needed to allow for fast_install
16601 # before this can be enabled.
16602 hardcode_into_libs=yes
16604 # Append ld.so.conf contents to the search path
16605 if test -f /etc/ld.so.conf; then
16606 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16610 # We used to test for /lib/ld.so.1 and disable shared libraries on
16611 # powerpc, because MkLinux only supported shared libraries with the
16612 # GNU dynamic linker. Since this was broken with cross compilers,
16613 # most powerpc-linux boxes support dynamic linking these days and
16614 # people can always --disable-shared, the test was removed, and we
16615 # assume the GNU/Linux dynamic linker is in use.
16616 dynamic_linker='GNU/Linux ld.so'
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16624 soname_spec='${libname}${release}${shared_ext}$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 hardcode_into_libs=yes
16628 dynamic_linker='NetBSD ld.elf_so'
16635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16638 dynamic_linker='NetBSD (a.out) ld.so'
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 dynamic_linker='NetBSD ld.elf_so'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=yes
16646 hardcode_into_libs=yes
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=yes
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes
16668 sys_lib_dlsearch_path_spec="/usr/lib"
16670 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16672 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16673 *) need_version=no ;;
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16680 openbsd2.[89] | openbsd2.[89].*)
16681 shlibpath_overrides_runpath=no
16684 shlibpath_overrides_runpath=yes
16688 shlibpath_overrides_runpath=yes
16693 libname_spec='$name'
16696 library_names_spec='$libname${shared_ext} $libname.a'
16697 dynamic_linker='OS/2 ld.exe'
16698 shlibpath_var=LIBPATH
16701 osf3* | osf4* | osf5*)
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 shlibpath_var=LD_LIBRARY_PATH
16719 shlibpath_overrides_runpath=yes
16720 hardcode_into_libs=yes
16721 # ldd complains unless libraries are executable
16722 postinstall_cmds='chmod +x $lib'
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 shlibpath_overrides_runpath=yes
16731 if test "$with_gnu_ld" = yes; then
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 case $host_vendor in
16744 shlibpath_overrides_runpath=no
16746 export_dynamic_flag_spec='${wl}-Blargedynsym'
16747 runpath_var=LD_RUN_PATH
16755 shlibpath_overrides_runpath=no
16756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16762 if test -d /usr/nec ;then
16764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16765 soname_spec='$libname${shared_ext}.$major'
16766 shlibpath_var=LD_LIBRARY_PATH
16770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16771 version_type=freebsd-elf
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 hardcode_into_libs=yes
16778 if test "$with_gnu_ld" = yes; then
16779 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16780 shlibpath_overrides_runpath=no
16782 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16783 shlibpath_overrides_runpath=yes
16786 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16790 sys_lib_dlsearch_path_spec='/usr/lib'
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 shlibpath_var=LD_LIBRARY_PATH
16804 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16805 echo "${ECHO_T}$dynamic_linker" >&6; }
16806 test "$dynamic_linker" = no && can_build_shared=no
16808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16809 if test "$GCC" = yes; then
16810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16813 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16815 hardcode_action_F77=
16816 if test -n "$hardcode_libdir_flag_spec_F77" || \
16817 test -n "$runpath_var_F77" || \
16818 test "X$hardcode_automatic_F77" = "Xyes" ; then
16820 # We can hardcode non-existant directories.
16821 if test "$hardcode_direct_F77" != no &&
16822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16823 # have to relink, otherwise we might link with an installed library
16824 # when we should be linking with a yet-to-be-installed one
16825 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16826 test "$hardcode_minus_L_F77" != no; then
16827 # Linking always hardcodes the temporary library directory.
16828 hardcode_action_F77=relink
16830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16831 hardcode_action_F77=immediate
16834 # We cannot hardcode anything, or else we can only hardcode existing
16836 hardcode_action_F77=unsupported
16838 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16839 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16841 if test "$hardcode_action_F77" = relink; then
16842 # Fast installation is not supported
16843 enable_fast_install=no
16844 elif test "$shlibpath_overrides_runpath" = yes ||
16845 test "$enable_shared" = no; then
16846 # Fast installation is not necessary
16847 enable_fast_install=needless
16851 # The else clause should only fire when bootstrapping the
16852 # libtool distribution, otherwise you forgot to ship ltmain.sh
16853 # with your package, and you will get complaints that there are
16854 # no rules to generate ltmain.sh.
16855 if test -f "$ltmain"; then
16856 # See if we are running on zsh, and set the options which allow our commands through
16857 # without removal of \ escapes.
16858 if test -n "${ZSH_VERSION+set}" ; then
16859 setopt NO_GLOB_SUBST
16861 # Now quote all the things that may contain metacharacters while being
16862 # careful not to overquote the AC_SUBSTed values. We take copies of the
16863 # variables and quote the copies for generation of the libtool script.
16864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16868 deplibs_check_method reload_flag reload_cmds need_locks \
16869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16870 lt_cv_sys_global_symbol_to_c_name_address \
16871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16872 old_postinstall_cmds old_postuninstall_cmds \
16876 lt_prog_compiler_wl_F77 \
16877 lt_prog_compiler_pic_F77 \
16878 lt_prog_compiler_static_F77 \
16879 lt_prog_compiler_no_builtin_flag_F77 \
16880 export_dynamic_flag_spec_F77 \
16881 thread_safe_flag_spec_F77 \
16882 whole_archive_flag_spec_F77 \
16883 enable_shared_with_static_runtimes_F77 \
16884 old_archive_cmds_F77 \
16885 old_archive_from_new_cmds_F77 \
16886 predep_objects_F77 \
16887 postdep_objects_F77 \
16890 compiler_lib_search_path_F77 \
16892 archive_expsym_cmds_F77 \
16893 postinstall_cmds_F77 \
16894 postuninstall_cmds_F77 \
16895 old_archive_from_expsyms_cmds_F77 \
16896 allow_undefined_flag_F77 \
16897 no_undefined_flag_F77 \
16898 export_symbols_cmds_F77 \
16899 hardcode_libdir_flag_spec_F77 \
16900 hardcode_libdir_flag_spec_ld_F77 \
16901 hardcode_libdir_separator_F77 \
16902 hardcode_automatic_F77 \
16904 module_expsym_cmds_F77 \
16905 lt_cv_prog_compiler_c_o_F77 \
16906 exclude_expsyms_F77 \
16907 include_expsyms_F77; do
16910 old_archive_cmds_F77 | \
16911 old_archive_from_new_cmds_F77 | \
16912 archive_cmds_F77 | \
16913 archive_expsym_cmds_F77 | \
16914 module_cmds_F77 | \
16915 module_expsym_cmds_F77 | \
16916 old_archive_from_expsyms_cmds_F77 | \
16917 export_symbols_cmds_F77 | \
16918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16919 postinstall_cmds | postuninstall_cmds | \
16920 old_postinstall_cmds | old_postuninstall_cmds | \
16921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16922 # Double-quote double-evaled strings.
16923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16932 *'\$0 --fallback-echo"')
16933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16939 cat <<__EOF__ >> "$cfgfile"
16940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16944 # Shell to use when invoking shell scripts.
16947 # Whether or not to build shared libraries.
16948 build_libtool_libs=$enable_shared
16950 # Whether or not to build static libraries.
16951 build_old_libs=$enable_static
16953 # Whether or not to add -lc for building shared libraries.
16954 build_libtool_need_lc=$archive_cmds_need_lc_F77
16956 # Whether or not to disallow shared libs when runtime libs are static
16957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16959 # Whether or not to optimize for fast installation.
16960 fast_install=$enable_fast_install
16963 host_alias=$host_alias
16967 # The build system.
16968 build_alias=$build_alias
16972 # An echo program that does not interpret backslashes.
16977 AR_FLAGS=$lt_AR_FLAGS
16982 # LTCC compiler flags.
16983 LTCFLAGS=$lt_LTCFLAGS
16985 # A language-specific compiler.
16986 CC=$lt_compiler_F77
16988 # Is the compiler the GNU C compiler?
16994 # The linker used to build libraries.
16997 # Whether we need hard or soft links.
17000 # A BSD-compatible nm program.
17003 # A symbol stripping program
17006 # Used to examine libraries when file_magic_cmd begins "file"
17007 MAGIC_CMD=$MAGIC_CMD
17009 # Used on cygwin: DLL creation program.
17012 # Used on cygwin: object dumper.
17015 # Used on cygwin: assembler.
17018 # The name of the directory that contains temporary libtool files.
17021 # How to create reloadable object files.
17022 reload_flag=$lt_reload_flag
17023 reload_cmds=$lt_reload_cmds
17025 # How to pass a linker flag through the compiler.
17026 wl=$lt_lt_prog_compiler_wl_F77
17028 # Object file suffix (normally "o").
17029 objext="$ac_objext"
17031 # Old archive suffix (normally "a").
17034 # Shared library suffix (normally ".so").
17035 shrext_cmds='$shrext_cmds'
17037 # Executable file suffix (normally "").
17040 # Additional compiler flags for building library objects.
17041 pic_flag=$lt_lt_prog_compiler_pic_F77
17044 # What is the maximum length of a command?
17045 max_cmd_len=$lt_cv_sys_max_cmd_len
17047 # Does compiler simultaneously support -c and -o options?
17048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17050 # Must we lock files when doing compilation?
17051 need_locks=$lt_need_locks
17053 # Do we need the lib prefix for modules?
17054 need_lib_prefix=$need_lib_prefix
17056 # Do we need a version for libraries?
17057 need_version=$need_version
17059 # Whether dlopen is supported.
17060 dlopen_support=$enable_dlopen
17062 # Whether dlopen of programs is supported.
17063 dlopen_self=$enable_dlopen_self
17065 # Whether dlopen of statically linked programs is supported.
17066 dlopen_self_static=$enable_dlopen_self_static
17068 # Compiler flag to prevent dynamic linking.
17069 link_static_flag=$lt_lt_prog_compiler_static_F77
17071 # Compiler flag to turn off builtin functions.
17072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17074 # Compiler flag to allow reflexive dlopens.
17075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17077 # Compiler flag to generate shared objects directly from archives.
17078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17080 # Compiler flag to generate thread-safe objects.
17081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17083 # Library versioning type.
17084 version_type=$version_type
17086 # Format of library name prefix.
17087 libname_spec=$lt_libname_spec
17089 # List of archive names. First name is the real one, the rest are links.
17090 # The last name is the one that the linker finds with -lNAME.
17091 library_names_spec=$lt_library_names_spec
17093 # The coded name of the library, if different from the real name.
17094 soname_spec=$lt_soname_spec
17096 # Commands used to build and install an old-style archive.
17098 old_archive_cmds=$lt_old_archive_cmds_F77
17099 old_postinstall_cmds=$lt_old_postinstall_cmds
17100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17102 # Create an old-style archive from a shared archive.
17103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17105 # Create a temporary old-style archive to link instead of a shared archive.
17106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17108 # Commands used to build and install a shared archive.
17109 archive_cmds=$lt_archive_cmds_F77
17110 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17111 postinstall_cmds=$lt_postinstall_cmds
17112 postuninstall_cmds=$lt_postuninstall_cmds
17114 # Commands used to build a loadable module (assumed same as above if empty)
17115 module_cmds=$lt_module_cmds_F77
17116 module_expsym_cmds=$lt_module_expsym_cmds_F77
17118 # Commands to strip libraries.
17119 old_striplib=$lt_old_striplib
17120 striplib=$lt_striplib
17122 # Dependencies to place before the objects being linked to create a
17124 predep_objects=$lt_predep_objects_F77
17126 # Dependencies to place after the objects being linked to create a
17128 postdep_objects=$lt_postdep_objects_F77
17130 # Dependencies to place before the objects being linked to create a
17132 predeps=$lt_predeps_F77
17134 # Dependencies to place after the objects being linked to create a
17136 postdeps=$lt_postdeps_F77
17138 # The library search path used internally by the compiler when linking
17139 # a shared library.
17140 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17142 # Method to check whether dependent libraries are shared objects.
17143 deplibs_check_method=$lt_deplibs_check_method
17145 # Command to use when deplibs_check_method == file_magic.
17146 file_magic_cmd=$lt_file_magic_cmd
17148 # Flag that allows shared libraries with undefined symbols to be built.
17149 allow_undefined_flag=$lt_allow_undefined_flag_F77
17151 # Flag that forces no undefined symbols.
17152 no_undefined_flag=$lt_no_undefined_flag_F77
17154 # Commands used to finish a libtool library installation in a directory.
17155 finish_cmds=$lt_finish_cmds
17157 # Same as above, but a single script fragment to be evaled but not shown.
17158 finish_eval=$lt_finish_eval
17160 # Take the output of nm and produce a listing of raw symbols and C names.
17161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17163 # Transform the output of nm in a proper C declaration
17164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17166 # Transform the output of nm in a C name address pair
17167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17169 # This is the shared library runtime path variable.
17170 runpath_var=$runpath_var
17172 # This is the shared library path variable.
17173 shlibpath_var=$shlibpath_var
17175 # Is shlibpath searched before the hard-coded library search path?
17176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17178 # How to hardcode a shared library path into an executable.
17179 hardcode_action=$hardcode_action_F77
17181 # Whether we should hardcode library paths into libraries.
17182 hardcode_into_libs=$hardcode_into_libs
17184 # Flag to hardcode \$libdir into a binary during linking.
17185 # This must work even if \$libdir does not exist.
17186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17188 # If ld is used when linking, flag to hardcode \$libdir into
17189 # a binary during linking. This must work even if \$libdir does
17191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17193 # Whether we need a single -rpath flag with a separated argument.
17194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17196 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17197 # resulting binary.
17198 hardcode_direct=$hardcode_direct_F77
17200 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17201 # resulting binary.
17202 hardcode_minus_L=$hardcode_minus_L_F77
17204 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17205 # the resulting binary.
17206 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17208 # Set to yes if building a shared library automatically hardcodes DIR into the library
17209 # and all subsequent libraries and executables linked against it.
17210 hardcode_automatic=$hardcode_automatic_F77
17212 # Variables whose values should be saved in libtool wrapper scripts and
17213 # restored at relink time.
17214 variables_saved_for_relink="$variables_saved_for_relink"
17216 # Whether libtool must link a program against all its dependency libraries.
17217 link_all_deplibs=$link_all_deplibs_F77
17219 # Compile-time system search path for libraries
17220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17222 # Run-time system search path for libraries
17223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17225 # Fix the shell variable \$srcfile for the compiler.
17226 fix_srcfile_path="$fix_srcfile_path_F77"
17228 # Set to yes if exported symbols are required.
17229 always_export_symbols=$always_export_symbols_F77
17231 # The commands to list exported symbols.
17232 export_symbols_cmds=$lt_export_symbols_cmds_F77
17234 # The commands to extract the exported symbol list from a shared archive.
17235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17237 # Symbols that should not be listed in the preloaded symbols.
17238 exclude_expsyms=$lt_exclude_expsyms_F77
17240 # Symbols that must always be exported.
17241 include_expsyms=$lt_include_expsyms_F77
17243 # ### END LIBTOOL TAG CONFIG: $tagname
17249 # If there is no Makefile yet, we rely on a make rule to execute
17250 # `config.status --recheck' to rerun these tests and create the
17251 # libtool script then.
17252 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17253 if test -f "$ltmain_in"; then
17254 test -f Makefile && make "$ltmain"
17260 ac_cpp='$CPP $CPPFLAGS'
17261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17273 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17276 # Source file extension for Java test sources.
17279 # Object file extension for compiled Java test sources.
17283 # Code to be used in simple compile tests
17284 lt_simple_compile_test_code="class foo {}\n"
17286 # Code to be used in simple link tests
17287 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17291 # If no C compiler was specified, use CC.
17294 # If no C compiler flags were specified, use CFLAGS.
17295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17297 # Allow CC to be a program name with arguments.
17301 # save warnings/boilerplate of simple test code
17302 ac_outfile=conftest.$ac_objext
17303 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17305 _lt_compiler_boilerplate=`cat conftest.err`
17308 ac_outfile=conftest.$ac_objext
17309 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17311 _lt_linker_boilerplate=`cat conftest.err`
17315 # Allow CC to be a program name with arguments.
17320 for cc_temp in $compiler""; do
17322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17328 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17331 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17332 archive_cmds_need_lc_GCJ=no
17334 old_archive_cmds_GCJ=$old_archive_cmds
17337 ## There is no encapsulation within the following macros, do not change
17338 ## the running order or otherwise move them around unless you know exactly
17339 ## what you are doing...
17341 lt_prog_compiler_no_builtin_flag_GCJ=
17343 if test "$GCC" = yes; then
17344 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 lt_cv_prog_compiler_rtti_exceptions=no
17353 ac_outfile=conftest.$ac_objext
17354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17355 lt_compiler_flag="-fno-rtti -fno-exceptions"
17356 # Insert the option either (1) after the last *FLAGS variable, or
17357 # (2) before a word containing "conftest.", or (3) at the end.
17358 # Note that $ac_compile itself does not contain backslashes and begins
17359 # with a dollar sign (not a hyphen), so the echo should work correctly.
17360 # The option is referenced via a variable to avoid confusing sed.
17361 lt_compile=`echo "$ac_compile" | $SED \
17362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17364 -e 's:$: $lt_compiler_flag:'`
17365 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17366 (eval "$lt_compile" 2>conftest.err)
17368 cat conftest.err >&5
17369 echo "$as_me:__oline__: \$? = $ac_status" >&5
17370 if (exit $ac_status) && test -s "$ac_outfile"; then
17371 # The compiler can only warn and ignore the option if not recognized
17372 # So say no if there are warnings other than the usual output.
17373 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17376 lt_cv_prog_compiler_rtti_exceptions=yes
17382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17386 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17393 lt_prog_compiler_wl_GCJ=
17394 lt_prog_compiler_pic_GCJ=
17395 lt_prog_compiler_static_GCJ=
17397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17400 if test "$GCC" = yes; then
17401 lt_prog_compiler_wl_GCJ='-Wl,'
17402 lt_prog_compiler_static_GCJ='-static'
17406 # All AIX code is PIC.
17407 if test "$host_cpu" = ia64; then
17408 # AIX 5 now supports IA64 processor
17409 lt_prog_compiler_static_GCJ='-Bstatic'
17414 # FIXME: we need at least 68020 code to build shared libraries, but
17415 # adding the `-m68020' flag to GCC prevents building anything better,
17417 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17421 # PIC is the default for these OSes.
17424 mingw* | pw32* | os2*)
17425 # This hack is so that the source file can tell whether it is being
17426 # built for inclusion in a dll (and should export symbols for example).
17427 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17430 darwin* | rhapsody*)
17431 # PIC is the default on this platform
17432 # Common symbols not allowed in MH_DYLIB files
17433 lt_prog_compiler_pic_GCJ='-fno-common'
17437 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17438 # Instead, we relocate shared libraries at runtime.
17442 # Just because we use GCC doesn't mean we suddenly get shared libraries
17443 # on systems that don't support them.
17444 lt_prog_compiler_can_build_shared_GCJ=no
17449 if test -d /usr/nec; then
17450 lt_prog_compiler_pic_GCJ=-Kconform_pic
17455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17456 # not for PA HP-UX.
17462 lt_prog_compiler_pic_GCJ='-fPIC'
17468 lt_prog_compiler_pic_GCJ='-fPIC'
17472 # PORTME Check for flag to pass linker flags through the system compiler.
17475 lt_prog_compiler_wl_GCJ='-Wl,'
17476 if test "$host_cpu" = ia64; then
17477 # AIX 5 now supports IA64 processor
17478 lt_prog_compiler_static_GCJ='-Bstatic'
17480 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17484 # PIC is the default on this platform
17485 # Common symbols not allowed in MH_DYLIB files
17486 case $cc_basename in
17488 lt_prog_compiler_pic_GCJ='-qnocommon'
17489 lt_prog_compiler_wl_GCJ='-Wl,'
17494 mingw* | pw32* | os2*)
17495 # This hack is so that the source file can tell whether it is being
17496 # built for inclusion in a dll (and should export symbols for example).
17497 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17500 hpux9* | hpux10* | hpux11*)
17501 lt_prog_compiler_wl_GCJ='-Wl,'
17502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17503 # not for PA HP-UX.
17509 lt_prog_compiler_pic_GCJ='+Z'
17512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17513 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17516 irix5* | irix6* | nonstopux*)
17517 lt_prog_compiler_wl_GCJ='-Wl,'
17518 # PIC (with -KPIC) is the default.
17519 lt_prog_compiler_static_GCJ='-non_shared'
17523 lt_prog_compiler_pic_GCJ='-KPIC'
17524 lt_prog_compiler_static_GCJ='-Bstatic'
17527 linux* | k*bsd*-gnu)
17528 case $cc_basename in
17530 lt_prog_compiler_wl_GCJ='-Wl,'
17531 lt_prog_compiler_pic_GCJ='-KPIC'
17532 lt_prog_compiler_static_GCJ='-static'
17534 pgcc* | pgf77* | pgf90* | pgf95*)
17535 # Portland Group compilers (*not* the Pentium gcc compiler,
17536 # which looks to be a dead project)
17537 lt_prog_compiler_wl_GCJ='-Wl,'
17538 lt_prog_compiler_pic_GCJ='-fpic'
17539 lt_prog_compiler_static_GCJ='-Bstatic'
17542 lt_prog_compiler_wl_GCJ='-Wl,'
17543 # All Alpha code is PIC.
17544 lt_prog_compiler_static_GCJ='-non_shared'
17549 osf3* | osf4* | osf5*)
17550 lt_prog_compiler_wl_GCJ='-Wl,'
17551 # All OSF/1 code is PIC.
17552 lt_prog_compiler_static_GCJ='-non_shared'
17556 lt_prog_compiler_pic_GCJ='-KPIC'
17557 lt_prog_compiler_static_GCJ='-Bstatic'
17558 case $cc_basename in
17559 f77* | f90* | f95*)
17560 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17562 lt_prog_compiler_wl_GCJ='-Wl,';;
17567 lt_prog_compiler_wl_GCJ='-Qoption ld '
17568 lt_prog_compiler_pic_GCJ='-PIC'
17569 lt_prog_compiler_static_GCJ='-Bstatic'
17572 sysv4 | sysv4.2uw2* | sysv4.3*)
17573 lt_prog_compiler_wl_GCJ='-Wl,'
17574 lt_prog_compiler_pic_GCJ='-KPIC'
17575 lt_prog_compiler_static_GCJ='-Bstatic'
17579 if test -d /usr/nec ;then
17580 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17581 lt_prog_compiler_static_GCJ='-Bstatic'
17585 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17586 lt_prog_compiler_wl_GCJ='-Wl,'
17587 lt_prog_compiler_pic_GCJ='-KPIC'
17588 lt_prog_compiler_static_GCJ='-Bstatic'
17592 lt_prog_compiler_wl_GCJ='-Wl,'
17593 lt_prog_compiler_can_build_shared_GCJ=no
17597 lt_prog_compiler_pic_GCJ='-pic'
17598 lt_prog_compiler_static_GCJ='-Bstatic'
17602 lt_prog_compiler_can_build_shared_GCJ=no
17607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17608 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17611 # Check to make sure the PIC flag actually works.
17613 if test -n "$lt_prog_compiler_pic_GCJ"; then
17615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17617 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 lt_prog_compiler_pic_works_GCJ=no
17621 ac_outfile=conftest.$ac_objext
17622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17623 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17624 # Insert the option either (1) after the last *FLAGS variable, or
17625 # (2) before a word containing "conftest.", or (3) at the end.
17626 # Note that $ac_compile itself does not contain backslashes and begins
17627 # with a dollar sign (not a hyphen), so the echo should work correctly.
17628 # The option is referenced via a variable to avoid confusing sed.
17629 lt_compile=`echo "$ac_compile" | $SED \
17630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17632 -e 's:$: $lt_compiler_flag:'`
17633 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17634 (eval "$lt_compile" 2>conftest.err)
17636 cat conftest.err >&5
17637 echo "$as_me:__oline__: \$? = $ac_status" >&5
17638 if (exit $ac_status) && test -s "$ac_outfile"; then
17639 # The compiler can only warn and ignore the option if not recognized
17640 # So say no if there are warnings other than the usual output.
17641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17644 lt_prog_compiler_pic_works_GCJ=yes
17650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17651 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17653 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17654 case $lt_prog_compiler_pic_GCJ in
17656 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17659 lt_prog_compiler_pic_GCJ=
17660 lt_prog_compiler_can_build_shared_GCJ=no
17665 # For platforms which do not support PIC, -DPIC is meaningless:
17667 lt_prog_compiler_pic_GCJ=
17670 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17675 # Check to make sure the static flag actually works.
17677 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17680 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 lt_prog_compiler_static_works_GCJ=no
17684 save_LDFLAGS="$LDFLAGS"
17685 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17686 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17688 # The linker can only warn and ignore the option if not recognized
17689 # So say no if there are warnings
17690 if test -s conftest.err; then
17691 # Append any errors to the config.log.
17692 cat conftest.err 1>&5
17693 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17695 if diff conftest.exp conftest.er2 >/dev/null; then
17696 lt_prog_compiler_static_works_GCJ=yes
17699 lt_prog_compiler_static_works_GCJ=yes
17703 LDFLAGS="$save_LDFLAGS"
17706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17707 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17709 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17712 lt_prog_compiler_static_GCJ=
17716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17718 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 lt_cv_prog_compiler_c_o_GCJ=no
17722 $rm -r conftest 2>/dev/null
17726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17728 lt_compiler_flag="-o out/conftest2.$ac_objext"
17729 # Insert the option either (1) after the last *FLAGS variable, or
17730 # (2) before a word containing "conftest.", or (3) at the end.
17731 # Note that $ac_compile itself does not contain backslashes and begins
17732 # with a dollar sign (not a hyphen), so the echo should work correctly.
17733 lt_compile=`echo "$ac_compile" | $SED \
17734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17736 -e 's:$: $lt_compiler_flag:'`
17737 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17738 (eval "$lt_compile" 2>out/conftest.err)
17740 cat out/conftest.err >&5
17741 echo "$as_me:__oline__: \$? = $ac_status" >&5
17742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17744 # The compiler can only warn and ignore the option if not recognized
17745 # So say no if there are warnings
17746 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17749 lt_cv_prog_compiler_c_o_GCJ=yes
17754 # SGI C++ compiler will create directory out/ii_files/ for
17755 # template instantiation
17756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17757 $rm out/* && rmdir out
17763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17767 hard_links="nottested"
17768 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17769 # do not overwrite the value of need_locks provided by the user
17770 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17776 ln conftest.a conftest.b 2>&5 || hard_links=no
17777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17778 { echo "$as_me:$LINENO: result: $hard_links" >&5
17779 echo "${ECHO_T}$hard_links" >&6; }
17780 if test "$hard_links" = no; then
17781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17793 allow_undefined_flag_GCJ=
17794 enable_shared_with_static_runtimes_GCJ=no
17796 archive_expsym_cmds_GCJ=
17797 old_archive_From_new_cmds_GCJ=
17798 old_archive_from_expsyms_cmds_GCJ=
17799 export_dynamic_flag_spec_GCJ=
17800 whole_archive_flag_spec_GCJ=
17801 thread_safe_flag_spec_GCJ=
17802 hardcode_libdir_flag_spec_GCJ=
17803 hardcode_libdir_flag_spec_ld_GCJ=
17804 hardcode_libdir_separator_GCJ=
17805 hardcode_direct_GCJ=no
17806 hardcode_minus_L_GCJ=no
17807 hardcode_shlibpath_var_GCJ=unsupported
17808 link_all_deplibs_GCJ=unknown
17809 hardcode_automatic_GCJ=no
17811 module_expsym_cmds_GCJ=
17812 always_export_symbols_GCJ=no
17813 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17814 # include_expsyms should be a list of space-separated symbols to be *always*
17815 # included in the symbol list
17816 include_expsyms_GCJ=
17817 # exclude_expsyms can be an extended regexp of symbols to exclude
17818 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17820 # as well as any symbol that contains `d'.
17821 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17823 # platforms (ab)use it in PIC code, but their linkers get confused if
17824 # the symbol is explicitly referenced. Since portable code cannot
17825 # rely on this symbol name, it's probably fine to never include it in
17826 # preloaded symbol tables.
17827 extract_expsyms_cmds=
17828 # Just being paranoid about ensuring that cc_basename is set.
17829 for cc_temp in $compiler""; do
17831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17840 cygwin* | mingw* | pw32*)
17841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17842 # When not using gcc, we currently assume that we are using
17843 # Microsoft Visual C++.
17844 if test "$GCC" != yes; then
17849 # we just hope/assume this is gcc and not c89 (= MSVC++)
17858 if test "$with_gnu_ld" = yes; then
17859 # If archive_cmds runs LD, not CC, wlarc should be empty
17862 # Set some defaults for GNU ld with shared library support. These
17863 # are reset later if shared libraries are not supported. Putting them
17864 # here allows them to be overridden if necessary.
17865 runpath_var=LD_RUN_PATH
17866 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17867 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17868 # ancient GNU ld didn't support --whole-archive et. al.
17869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17870 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17872 whole_archive_flag_spec_GCJ=
17874 supports_anon_versioning=no
17875 case `$LD -v 2>/dev/null` in
17876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17879 *\ 2.11.*) ;; # other 2.11 versions
17880 *) supports_anon_versioning=yes ;;
17883 # See if GNU ld supports shared libraries.
17885 aix3* | aix4* | aix5*)
17886 # On AIX/PPC, the GNU linker is very broken
17887 if test "$host_cpu" != ia64; then
17891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17892 *** to be unable to reliably create shared libraries on AIX.
17893 *** Therefore, libtool is disabling shared libraries support. If you
17894 *** really care for shared libraries, you may want to modify your PATH
17895 *** so that a non-GNU linker is found, and then restart.
17902 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)'
17903 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17904 hardcode_minus_L_GCJ=yes
17906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17907 # that the semantics of dynamic libraries on AmigaOS, at least up
17908 # to version 4, is to share data among multiple programs linked
17909 # with the same dynamic library. Since this doesn't match the
17910 # behavior of shared libraries on other platforms, we can't use
17916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17917 allow_undefined_flag_GCJ=unsupported
17918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17919 # support --undefined. This deserves some investigation. FIXME
17920 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17926 cygwin* | mingw* | pw32*)
17927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17928 # as there is no search path for DLLs.
17929 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17930 allow_undefined_flag_GCJ=unsupported
17931 always_export_symbols_GCJ=no
17932 enable_shared_with_static_runtimes_GCJ=yes
17933 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17935 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17936 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17937 # If the export-symbols file already is a .def file (1st line
17938 # is EXPORTS), use it as is; otherwise, prepend...
17939 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17940 cp $export_symbols $output_objdir/$soname.def;
17942 echo EXPORTS > $output_objdir/$soname.def;
17943 cat $export_symbols >> $output_objdir/$soname.def;
17945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17952 hardcode_direct_GCJ=no
17953 hardcode_shlibpath_var_GCJ=no
17954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17955 export_dynamic_flag_spec_GCJ='${wl}-E'
17956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17957 # Instead, shared libraries are loaded at an image base (0x10000000 by
17958 # default) and relocated if they conflict, which is a slow very memory
17959 # consuming and fragmenting process. To avoid this, we pick a random,
17960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17962 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'
17963 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'
17966 linux* | k*bsd*-gnu)
17967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17969 case $cc_basename,$host_cpu in
17970 pgcc*) # Portland Group C compiler
17971 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'
17972 tmp_addflag=' $pic_flag'
17974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17975 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'
17976 tmp_addflag=' $pic_flag -Mnomain' ;;
17977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17978 tmp_addflag=' -i_dynamic' ;;
17979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17980 tmp_addflag=' -i_dynamic -nofor_main' ;;
17981 ifc* | ifort*) # Intel Fortran compiler
17982 tmp_addflag=' -nofor_main' ;;
17984 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17986 if test $supports_anon_versioning = yes; then
17987 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17989 $echo "local: *; };" >> $output_objdir/$libname.ver~
17990 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17992 link_all_deplibs_GCJ=no
17998 netbsd* | netbsdelf*-gnu)
17999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18000 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18009 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18014 *** create shared libraries on Solaris systems. Therefore, libtool
18015 *** is disabling shared libraries support. We urge you to upgrade GNU
18016 *** binutils to release 2.9.1 or newer. Another option is to modify
18017 *** your PATH or compiler configuration so that the native linker is
18018 *** used, and then restart.
18021 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18030 case `$LD -v 2>&1` in
18031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18036 *** reliably create shared libraries on SCO systems. Therefore, libtool
18037 *** is disabling shared libraries support. We urge you to upgrade GNU
18038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18039 *** your PATH or compiler configuration so that the native linker is
18040 *** used, and then restart.
18045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18046 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18057 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_direct_GCJ=yes
18060 hardcode_shlibpath_var_GCJ=no
18064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18065 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18066 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18073 if test "$ld_shlibs_GCJ" = no; then
18075 hardcode_libdir_flag_spec_GCJ=
18076 export_dynamic_flag_spec_GCJ=
18077 whole_archive_flag_spec_GCJ=
18080 # PORTME fill in a description of your system's linker (not GNU ld)
18083 allow_undefined_flag_GCJ=unsupported
18084 always_export_symbols_GCJ=yes
18085 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'
18086 # Note: this linker hardcodes the directories in LIBPATH if there
18087 # are no directories specified by -L.
18088 hardcode_minus_L_GCJ=yes
18089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18090 # Neither direct hardcoding nor static linking is supported with a
18092 hardcode_direct_GCJ=unsupported
18097 if test "$host_cpu" = ia64; then
18098 # On IA64, the linker does run time linking by default, so we don't
18099 # have to do anything special.
18100 aix_use_runtimelinking=no
18101 exp_sym_flag='-Bexport'
18104 # If we're using GNU nm, then we don't want the "-C" option.
18105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18106 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18107 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'
18109 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'
18111 aix_use_runtimelinking=no
18113 # Test if we are trying to use run time linking or normal
18114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18115 # need to do runtime linking.
18116 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18117 for ld_flag in $LDFLAGS; do
18118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18119 aix_use_runtimelinking=yes
18126 exp_sym_flag='-bexport'
18127 no_entry_flag='-bnoentry'
18130 # When large executables or shared objects are built, AIX ld can
18131 # have problems creating the table of contents. If linking a library
18132 # or program results in "error TOC overflow" add -mminimal-toc to
18133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18136 archive_cmds_GCJ=''
18137 hardcode_direct_GCJ=yes
18138 hardcode_libdir_separator_GCJ=':'
18139 link_all_deplibs_GCJ=yes
18141 if test "$GCC" = yes; then
18142 case $host_os in aix4.[012]|aix4.[012].*)
18143 # We only want to do this on AIX 4.2 and lower, the check
18144 # below for broken collect2 doesn't work under 4.3+
18145 collect2name=`${CC} -print-prog-name=collect2`
18146 if test -f "$collect2name" && \
18147 strings "$collect2name" | grep resolve_lib_name >/dev/null
18149 # We have reworked collect2
18150 hardcode_direct_GCJ=yes
18152 # We have old collect2
18153 hardcode_direct_GCJ=unsupported
18154 # It fails to find uninstalled libraries when the uninstalled
18155 # path is not listed in the libpath. Setting hardcode_minus_L
18156 # to unsupported forces relinking
18157 hardcode_minus_L_GCJ=yes
18158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18159 hardcode_libdir_separator_GCJ=
18163 shared_flag='-shared'
18164 if test "$aix_use_runtimelinking" = yes; then
18165 shared_flag="$shared_flag "'${wl}-G'
18169 if test "$host_cpu" = ia64; then
18170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18171 # chokes on -Wl,-G. The following line is correct:
18174 if test "$aix_use_runtimelinking" = yes; then
18175 shared_flag='${wl}-G'
18177 shared_flag='${wl}-bM:SRE'
18182 # It seems that -bexpall does not export symbols beginning with
18183 # underscore (_), so it is better to generate a list of symbols to export.
18184 always_export_symbols_GCJ=yes
18185 if test "$aix_use_runtimelinking" = yes; then
18186 # Warning - without using the other runtime loading flags (-brtl),
18187 # -berok will link without error, but may produce a broken library.
18188 allow_undefined_flag_GCJ='-berok'
18189 # Determine the default libpath from the value encoded in an empty executable.
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_link") 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest$ac_exeext &&
18222 $as_test_x conftest$ac_exeext; then
18224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18226 # Check for a 64-bit object if we didn't find anything.
18227 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18237 conftest$ac_exeext conftest.$ac_ext
18238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18240 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18241 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"
18243 if test "$host_cpu" = ia64; then
18244 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18245 allow_undefined_flag_GCJ="-z nodefs"
18246 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"
18248 # Determine the default libpath from the value encoded in an empty executable.
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (ac_try="$ac_link"
18266 case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_link") 2>conftest.er1
18273 grep -v '^ *+' conftest.er1 >conftest.err
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } && {
18278 test -z "$ac_c_werror_flag" ||
18279 test ! -s conftest.err
18280 } && test -s conftest$ac_exeext &&
18281 $as_test_x conftest$ac_exeext; then
18283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18285 # Check for a 64-bit object if we didn't find anything.
18286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18296 conftest$ac_exeext conftest.$ac_ext
18297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18299 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18300 # Warning - without using the other run time loading flags,
18301 # -berok will link without error, but may produce a broken library.
18302 no_undefined_flag_GCJ=' ${wl}-bernotok'
18303 allow_undefined_flag_GCJ=' ${wl}-berok'
18304 # Exported symbols can be pulled into shared objects from archives
18305 whole_archive_flag_spec_GCJ='$convenience'
18306 archive_cmds_need_lc_GCJ=yes
18307 # This is similar to how AIX traditionally builds its shared libraries.
18308 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'
18314 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)'
18315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18316 hardcode_minus_L_GCJ=yes
18317 # see comment about different semantics on the GNU ld section
18322 export_dynamic_flag_spec_GCJ=-rdynamic
18325 cygwin* | mingw* | pw32*)
18326 # When not using gcc, we currently assume that we are using
18327 # Microsoft Visual C++.
18328 # hardcode_libdir_flag_spec is actually meaningless, as there is
18329 # no search path for DLLs.
18330 hardcode_libdir_flag_spec_GCJ=' '
18331 allow_undefined_flag_GCJ=unsupported
18332 # Tell ltmain to make .lib files, not .a files.
18334 # Tell ltmain to make .dll files, not .so files.
18336 # FIXME: Setting linknames here is a bad hack.
18337 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18338 # The linker will automatically build a .lib file if we build a DLL.
18339 old_archive_From_new_cmds_GCJ='true'
18340 # FIXME: Should let the user specify the lib program.
18341 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18342 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18343 enable_shared_with_static_runtimes_GCJ=yes
18346 darwin* | rhapsody*)
18348 rhapsody* | darwin1.[012])
18349 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18353 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18355 case ${MACOSX_DEPLOYMENT_TARGET} in
18357 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18360 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18366 archive_cmds_need_lc_GCJ=no
18367 hardcode_direct_GCJ=no
18368 hardcode_automatic_GCJ=yes
18369 hardcode_shlibpath_var_GCJ=unsupported
18370 whole_archive_flag_spec_GCJ=''
18371 link_all_deplibs_GCJ=yes
18372 if test "$GCC" = yes ; then
18373 output_verbose_link_cmd='echo'
18374 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18375 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18376 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18377 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18378 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}'
18380 case $cc_basename in
18382 output_verbose_link_cmd='echo'
18383 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18384 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18386 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18387 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}'
18397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18399 hardcode_shlibpath_var_GCJ=no
18406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18407 # support. Future versions do this automatically, but an explicit c++rt0.o
18408 # does not break anything, and helps significantly (at the cost of a little
18411 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18412 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18413 hardcode_direct_GCJ=yes
18414 hardcode_shlibpath_var_GCJ=no
18417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18419 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18420 hardcode_direct_GCJ=yes
18421 hardcode_minus_L_GCJ=yes
18422 hardcode_shlibpath_var_GCJ=no
18425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18426 freebsd* | dragonfly*)
18427 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18428 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18429 hardcode_direct_GCJ=yes
18430 hardcode_shlibpath_var_GCJ=no
18434 if test "$GCC" = yes; then
18435 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'
18437 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'
18439 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18440 hardcode_libdir_separator_GCJ=:
18441 hardcode_direct_GCJ=yes
18443 # hardcode_minus_L: Not really in the search PATH,
18444 # but as the default location of the library.
18445 hardcode_minus_L_GCJ=yes
18446 export_dynamic_flag_spec_GCJ='${wl}-E'
18450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18451 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18453 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18455 if test "$with_gnu_ld" = no; then
18456 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18457 hardcode_libdir_separator_GCJ=:
18459 hardcode_direct_GCJ=yes
18460 export_dynamic_flag_spec_GCJ='${wl}-E'
18462 # hardcode_minus_L: Not really in the search PATH,
18463 # but as the default location of the library.
18464 hardcode_minus_L_GCJ=yes
18469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18472 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18475 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18478 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18484 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18487 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18490 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18494 if test "$with_gnu_ld" = no; then
18495 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18496 hardcode_libdir_separator_GCJ=:
18500 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18501 hardcode_direct_GCJ=no
18502 hardcode_shlibpath_var_GCJ=no
18505 hardcode_direct_GCJ=yes
18506 export_dynamic_flag_spec_GCJ='${wl}-E'
18508 # hardcode_minus_L: Not really in the search PATH,
18509 # but as the default location of the library.
18510 hardcode_minus_L_GCJ=yes
18516 irix5* | irix6* | nonstopux*)
18517 if test "$GCC" = yes; then
18518 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'
18520 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'
18521 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18523 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18524 hardcode_libdir_separator_GCJ=:
18525 link_all_deplibs_GCJ=yes
18528 netbsd* | netbsdelf*-gnu)
18529 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18530 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18532 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18535 hardcode_direct_GCJ=yes
18536 hardcode_shlibpath_var_GCJ=no
18540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18541 hardcode_direct_GCJ=yes
18542 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18543 hardcode_libdir_separator_GCJ=:
18544 hardcode_shlibpath_var_GCJ=no
18548 hardcode_direct_GCJ=yes
18549 hardcode_shlibpath_var_GCJ=no
18550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18551 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18552 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18554 export_dynamic_flag_spec_GCJ='${wl}-E'
18557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18558 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18559 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18562 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18563 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18570 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18571 hardcode_minus_L_GCJ=yes
18572 allow_undefined_flag_GCJ=unsupported
18573 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'
18574 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18578 if test "$GCC" = yes; then
18579 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18580 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'
18582 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18583 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'
18585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18586 hardcode_libdir_separator_GCJ=:
18589 osf4* | osf5*) # as osf3* with the addition of -msym flag
18590 if test "$GCC" = yes; then
18591 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18592 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'
18593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18595 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18596 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'
18597 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~
18598 $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'
18600 # Both c and cxx compiler support -rpath directly
18601 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18603 hardcode_libdir_separator_GCJ=:
18607 no_undefined_flag_GCJ=' -z text'
18608 if test "$GCC" = yes; then
18610 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18611 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18612 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18615 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18616 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18620 hardcode_shlibpath_var_GCJ=no
18622 solaris2.[0-5] | solaris2.[0-5].*) ;;
18624 # The compiler driver will combine linker options so we
18625 # cannot just pass the convience library names through
18626 # without $wl, iff we do not link with $LD.
18627 # Luckily, gcc supports the same syntax we need for Sun Studio.
18628 # Supported since Solaris 2.6 (maybe 2.5.1?)
18631 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18633 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18636 link_all_deplibs_GCJ=yes
18640 if test "x$host_vendor" = xsequent; then
18641 # Use $CC to link under sequent, because it throws in some extra .o
18642 # files that make .init and .fini sections work.
18643 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18645 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18648 hardcode_direct_GCJ=yes
18649 hardcode_minus_L_GCJ=yes
18650 hardcode_shlibpath_var_GCJ=no
18654 case $host_vendor in
18656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18657 hardcode_direct_GCJ=yes # is this really true???
18660 ## LD is ld it makes a PLAMLIB
18661 ## CC just makes a GrossModule.
18662 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18663 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18664 hardcode_direct_GCJ=no
18667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18668 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18671 runpath_var='LD_RUN_PATH'
18672 hardcode_shlibpath_var_GCJ=no
18676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18677 hardcode_shlibpath_var_GCJ=no
18678 export_dynamic_flag_spec_GCJ='-Bexport'
18682 if test -d /usr/nec; then
18683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18684 hardcode_shlibpath_var_GCJ=no
18685 runpath_var=LD_RUN_PATH
18686 hardcode_runpath_var=yes
18691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18692 no_undefined_flag_GCJ='${wl}-z,text'
18693 archive_cmds_need_lc_GCJ=no
18694 hardcode_shlibpath_var_GCJ=no
18695 runpath_var='LD_RUN_PATH'
18697 if test "$GCC" = yes; then
18698 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18699 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18701 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18702 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18706 sysv5* | sco3.2v5* | sco5v6*)
18707 # Note: We can NOT use -z defs as we might desire, because we do not
18708 # link with -lc, and that would cause any symbols used from libc to
18709 # always be unresolved, which means just about no library would
18710 # ever link correctly. If we're not using GNU ld we use -z text
18711 # though, which does catch some bad symbols but isn't as heavy-handed
18713 no_undefined_flag_GCJ='${wl}-z,text'
18714 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18715 archive_cmds_need_lc_GCJ=no
18716 hardcode_shlibpath_var_GCJ=no
18717 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18718 hardcode_libdir_separator_GCJ=':'
18719 link_all_deplibs_GCJ=yes
18720 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18721 runpath_var='LD_RUN_PATH'
18723 if test "$GCC" = yes; then
18724 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18725 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18727 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18728 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18735 hardcode_shlibpath_var_GCJ=no
18744 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18745 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18746 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18749 # Do we need to explicitly link libc?
18751 case "x$archive_cmds_need_lc_GCJ" in
18753 # Assume -lc should be added
18754 archive_cmds_need_lc_GCJ=yes
18756 if test "$enable_shared" = yes && test "$GCC" = yes; then
18757 case $archive_cmds_GCJ in
18759 # FIXME: we may have to deal with multi-command sequences.
18762 # Test whether the compiler implicitly links with -lc since on some
18763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18764 # to ld, don't add -lc before -lgcc.
18765 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } 2>conftest.err; then
18777 libobjs=conftest.$ac_objext
18779 wl=$lt_prog_compiler_wl_GCJ
18780 pic_flag=$lt_prog_compiler_pic_GCJ
18786 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18787 allow_undefined_flag_GCJ=
18788 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18789 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }
18794 archive_cmds_need_lc_GCJ=no
18796 archive_cmds_need_lc_GCJ=yes
18798 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18800 cat conftest.err 1>&5
18803 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18804 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18811 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18812 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18813 library_names_spec=
18814 libname_spec='lib$name'
18818 postuninstall_cmds=
18822 shlibpath_overrides_runpath=unknown
18824 dynamic_linker="$host_os ld.so"
18825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18826 if test "$GCC" = yes; then
18827 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18828 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18829 # if the path contains ";" then we assume it to be the separator
18830 # otherwise default to the standard path separator (i.e. ":") - it is
18831 # assumed that no part of a normal pathname contains ";" but that should
18832 # okay in the real world where ";" in dirpaths is itself problematic.
18833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18840 need_lib_prefix=unknown
18841 hardcode_into_libs=no
18843 # when you set need_version to no, make sure it does not cause -set_version
18844 # flags to be left without arguments
18845 need_version=unknown
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18851 shlibpath_var=LIBPATH
18853 # AIX 3 has no versioning support, so we append a major version to the name.
18854 soname_spec='${libname}${release}${shared_ext}$major'
18861 hardcode_into_libs=yes
18862 if test "$host_cpu" = ia64; then
18863 # AIX 5 supports IA64
18864 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18865 shlibpath_var=LD_LIBRARY_PATH
18867 # With GCC up to 2.95.x, collect2 would create an import file
18868 # for dependence libraries. The import file would start with
18869 # the line `#! .'. This would cause the generated library to
18870 # depend on `.', always an invalid library. This was fixed in
18871 # development snapshots of GCC prior to 3.0.
18873 aix4 | aix4.[01] | aix4.[01].*)
18874 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18876 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18879 can_build_shared=no
18883 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18884 # soname into executable. Probably we can add versioning support to
18885 # collect2, so additional links can be useful in future.
18886 if test "$aix_use_runtimelinking" = yes; then
18887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18888 # instead of lib<name>.a to let people know that these are not
18889 # typical AIX shared libraries.
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892 # We preserve .a as extension for shared libraries through AIX4.2
18893 # and later when we are not doing run time linking.
18894 library_names_spec='${libname}${release}.a $libname.a'
18895 soname_spec='${libname}${release}${shared_ext}$major'
18897 shlibpath_var=LIBPATH
18902 library_names_spec='$libname.ixlibrary $libname.a'
18903 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18904 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'
18908 library_names_spec='${libname}${shared_ext}'
18909 dynamic_linker="$host_os ld.so"
18910 shlibpath_var=LIBRARY_PATH
18916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18917 soname_spec='${libname}${release}${shared_ext}$major'
18918 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18919 shlibpath_var=LD_LIBRARY_PATH
18920 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18921 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18922 # the default ld.so.conf also contains /usr/contrib/lib and
18923 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18924 # libtool to hard-code these into programs
18927 cygwin* | mingw* | pw32*)
18928 version_type=windows
18933 case $GCC,$host_os in
18934 yes,cygwin* | yes,mingw* | yes,pw32*)
18935 library_names_spec='$libname.dll.a'
18936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18937 postinstall_cmds='base_file=`basename \${file}`~
18938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18939 dldir=$destdir/`dirname \$dlpath`~
18940 test -d \$dldir || mkdir -p \$dldir~
18941 $install_prog $dir/$dlname \$dldir/$dlname~
18942 chmod a+x \$dldir/$dlname'
18943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18944 dlpath=$dir/\$dldll~
18946 shlibpath_overrides_runpath=yes
18950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18952 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18955 # MinGW DLLs use traditional 'lib' prefix
18956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18957 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18958 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18959 # It is most probably a Windows format PATH printed by
18960 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18961 # path with ; separators, and with drive letters. We can handle the
18962 # drive letters (cygwin fileutils understands them), so leave them,
18963 # especially as we might pass files found there to a mingw objdump,
18964 # which wouldn't understand a cygwinified path. Ahh.
18965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18971 # pw32 DLLs use 'pw' prefix rather than 'lib'
18972 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18978 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18981 dynamic_linker='Win32 ld.exe'
18982 # FIXME: first we should search . and the directory the executable is in
18986 darwin* | rhapsody*)
18987 dynamic_linker="$host_os dyld"
18988 version_type=darwin
18991 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18992 soname_spec='${libname}${release}${major}$shared_ext'
18993 shlibpath_overrides_runpath=yes
18994 shlibpath_var=DYLD_LIBRARY_PATH
18995 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18996 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18997 if test "$GCC" = yes; then
18998 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19000 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19010 soname_spec='${libname}${release}${shared_ext}$major'
19011 shlibpath_var=LD_LIBRARY_PATH
19018 freebsd* | dragonfly*)
19019 # DragonFly does not have aout. When/if they implement a new
19020 # versioning mechanism, adjust this.
19021 if test -x /usr/bin/objformat; then
19022 objformat=`/usr/bin/objformat`
19025 freebsd[123]*) objformat=aout ;;
19026 *) objformat=elf ;;
19029 version_type=freebsd-$objformat
19030 case $version_type in
19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19041 shlibpath_var=LD_LIBRARY_PATH
19044 shlibpath_overrides_runpath=yes
19046 freebsd3.[01]* | freebsdelf3.[01]*)
19047 shlibpath_overrides_runpath=yes
19048 hardcode_into_libs=yes
19050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19052 shlibpath_overrides_runpath=no
19053 hardcode_into_libs=yes
19055 freebsd*) # from 4.6 on
19056 shlibpath_overrides_runpath=yes
19057 hardcode_into_libs=yes
19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19067 soname_spec='${libname}${release}${shared_ext}$major'
19068 shlibpath_var=LD_LIBRARY_PATH
19069 hardcode_into_libs=yes
19072 hpux9* | hpux10* | hpux11*)
19073 # Give a soname corresponding to the major version so that dld.sl refuses to
19074 # link against other versions.
19081 hardcode_into_libs=yes
19082 dynamic_linker="$host_os dld.so"
19083 shlibpath_var=LD_LIBRARY_PATH
19084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086 soname_spec='${libname}${release}${shared_ext}$major'
19087 if test "X$HPUX_IA64_MODE" = X32; then
19088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19096 hardcode_into_libs=yes
19097 dynamic_linker="$host_os dld.sl"
19098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 soname_spec='${libname}${release}${shared_ext}$major'
19102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19107 dynamic_linker="$host_os dld.sl"
19108 shlibpath_var=SHLIB_PATH
19109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19114 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19115 postinstall_cmds='chmod 555 $lib'
19122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19123 soname_spec='${libname}${release}${shared_ext}$major'
19124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19125 shlibpath_var=LD_LIBRARY_PATH
19126 shlibpath_overrides_runpath=no
19127 hardcode_into_libs=yes
19130 irix5* | irix6* | nonstopux*)
19132 nonstopux*) version_type=nonstopux ;;
19134 if test "$lt_cv_prog_gnu_ld" = yes; then
19142 soname_spec='${libname}${release}${shared_ext}$major'
19143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19145 irix5* | nonstopux*)
19146 libsuff= shlibsuff=
19149 case $LD in # libtool.m4 will add one of these switches to LD
19150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19151 libsuff= shlibsuff= libmagic=32-bit;;
19152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19153 libsuff=32 shlibsuff=N32 libmagic=N32;;
19154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19156 *) libsuff= shlibsuff= libmagic=never-match;;
19160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19161 shlibpath_overrides_runpath=no
19162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19164 hardcode_into_libs=yes
19167 # No shared lib support for Linux oldld, aout, or coff.
19168 linux*oldld* | linux*aout* | linux*coff*)
19172 # This must be Linux ELF.
19173 linux* | k*bsd*-gnu)
19177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19178 soname_spec='${libname}${release}${shared_ext}$major'
19179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19180 shlibpath_var=LD_LIBRARY_PATH
19181 shlibpath_overrides_runpath=no
19182 # This implies no fast_install, which is unacceptable.
19183 # Some rework will be needed to allow for fast_install
19184 # before this can be enabled.
19185 hardcode_into_libs=yes
19187 # Append ld.so.conf contents to the search path
19188 if test -f /etc/ld.so.conf; then
19189 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19193 # We used to test for /lib/ld.so.1 and disable shared libraries on
19194 # powerpc, because MkLinux only supported shared libraries with the
19195 # GNU dynamic linker. Since this was broken with cross compilers,
19196 # most powerpc-linux boxes support dynamic linking these days and
19197 # people can always --disable-shared, the test was removed, and we
19198 # assume the GNU/Linux dynamic linker is in use.
19199 dynamic_linker='GNU/Linux ld.so'
19206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19207 soname_spec='${libname}${release}${shared_ext}$major'
19208 shlibpath_var=LD_LIBRARY_PATH
19209 shlibpath_overrides_runpath=no
19210 hardcode_into_libs=yes
19211 dynamic_linker='NetBSD ld.elf_so'
19218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19221 dynamic_linker='NetBSD (a.out) ld.so'
19223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19224 soname_spec='${libname}${release}${shared_ext}$major'
19225 dynamic_linker='NetBSD ld.elf_so'
19227 shlibpath_var=LD_LIBRARY_PATH
19228 shlibpath_overrides_runpath=yes
19229 hardcode_into_libs=yes
19234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19235 shlibpath_var=LD_LIBRARY_PATH
19236 shlibpath_overrides_runpath=yes
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19244 soname_spec='${libname}${release}${shared_ext}$major'
19245 shlibpath_var=LD_LIBRARY_PATH
19246 shlibpath_overrides_runpath=yes
19251 sys_lib_dlsearch_path_spec="/usr/lib"
19253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19256 *) need_version=no ;;
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19260 shlibpath_var=LD_LIBRARY_PATH
19261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19263 openbsd2.[89] | openbsd2.[89].*)
19264 shlibpath_overrides_runpath=no
19267 shlibpath_overrides_runpath=yes
19271 shlibpath_overrides_runpath=yes
19276 libname_spec='$name'
19279 library_names_spec='$libname${shared_ext} $libname.a'
19280 dynamic_linker='OS/2 ld.exe'
19281 shlibpath_var=LIBPATH
19284 osf3* | osf4* | osf5*)
19288 soname_spec='${libname}${release}${shared_ext}$major'
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290 shlibpath_var=LD_LIBRARY_PATH
19291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300 soname_spec='${libname}${release}${shared_ext}$major'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath=yes
19303 hardcode_into_libs=yes
19304 # ldd complains unless libraries are executable
19305 postinstall_cmds='chmod +x $lib'
19310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19312 shlibpath_var=LD_LIBRARY_PATH
19313 shlibpath_overrides_runpath=yes
19314 if test "$with_gnu_ld" = yes; then
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 soname_spec='${libname}${release}${shared_ext}$major'
19324 shlibpath_var=LD_LIBRARY_PATH
19325 case $host_vendor in
19327 shlibpath_overrides_runpath=no
19329 export_dynamic_flag_spec='${wl}-Blargedynsym'
19330 runpath_var=LD_RUN_PATH
19338 shlibpath_overrides_runpath=no
19339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19345 if test -d /usr/nec ;then
19347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19348 soname_spec='$libname${shared_ext}.$major'
19349 shlibpath_var=LD_LIBRARY_PATH
19353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19354 version_type=freebsd-elf
19357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19358 soname_spec='${libname}${release}${shared_ext}$major'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 hardcode_into_libs=yes
19361 if test "$with_gnu_ld" = yes; then
19362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19363 shlibpath_overrides_runpath=no
19365 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19366 shlibpath_overrides_runpath=yes
19369 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19373 sys_lib_dlsearch_path_spec='/usr/lib'
19378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19379 soname_spec='${libname}${release}${shared_ext}$major'
19380 shlibpath_var=LD_LIBRARY_PATH
19387 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19388 echo "${ECHO_T}$dynamic_linker" >&6; }
19389 test "$dynamic_linker" = no && can_build_shared=no
19391 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19392 if test "$GCC" = yes; then
19393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19396 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19397 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19398 hardcode_action_GCJ=
19399 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19400 test -n "$runpath_var_GCJ" || \
19401 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19403 # We can hardcode non-existant directories.
19404 if test "$hardcode_direct_GCJ" != no &&
19405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19406 # have to relink, otherwise we might link with an installed library
19407 # when we should be linking with a yet-to-be-installed one
19408 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19409 test "$hardcode_minus_L_GCJ" != no; then
19410 # Linking always hardcodes the temporary library directory.
19411 hardcode_action_GCJ=relink
19413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19414 hardcode_action_GCJ=immediate
19417 # We cannot hardcode anything, or else we can only hardcode existing
19419 hardcode_action_GCJ=unsupported
19421 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19422 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19424 if test "$hardcode_action_GCJ" = relink; then
19425 # Fast installation is not supported
19426 enable_fast_install=no
19427 elif test "$shlibpath_overrides_runpath" = yes ||
19428 test "$enable_shared" = no; then
19429 # Fast installation is not necessary
19430 enable_fast_install=needless
19434 # The else clause should only fire when bootstrapping the
19435 # libtool distribution, otherwise you forgot to ship ltmain.sh
19436 # with your package, and you will get complaints that there are
19437 # no rules to generate ltmain.sh.
19438 if test -f "$ltmain"; then
19439 # See if we are running on zsh, and set the options which allow our commands through
19440 # without removal of \ escapes.
19441 if test -n "${ZSH_VERSION+set}" ; then
19442 setopt NO_GLOB_SUBST
19444 # Now quote all the things that may contain metacharacters while being
19445 # careful not to overquote the AC_SUBSTed values. We take copies of the
19446 # variables and quote the copies for generation of the libtool script.
19447 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19449 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19450 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19451 deplibs_check_method reload_flag reload_cmds need_locks \
19452 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19453 lt_cv_sys_global_symbol_to_c_name_address \
19454 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19455 old_postinstall_cmds old_postuninstall_cmds \
19459 lt_prog_compiler_wl_GCJ \
19460 lt_prog_compiler_pic_GCJ \
19461 lt_prog_compiler_static_GCJ \
19462 lt_prog_compiler_no_builtin_flag_GCJ \
19463 export_dynamic_flag_spec_GCJ \
19464 thread_safe_flag_spec_GCJ \
19465 whole_archive_flag_spec_GCJ \
19466 enable_shared_with_static_runtimes_GCJ \
19467 old_archive_cmds_GCJ \
19468 old_archive_from_new_cmds_GCJ \
19469 predep_objects_GCJ \
19470 postdep_objects_GCJ \
19473 compiler_lib_search_path_GCJ \
19475 archive_expsym_cmds_GCJ \
19476 postinstall_cmds_GCJ \
19477 postuninstall_cmds_GCJ \
19478 old_archive_from_expsyms_cmds_GCJ \
19479 allow_undefined_flag_GCJ \
19480 no_undefined_flag_GCJ \
19481 export_symbols_cmds_GCJ \
19482 hardcode_libdir_flag_spec_GCJ \
19483 hardcode_libdir_flag_spec_ld_GCJ \
19484 hardcode_libdir_separator_GCJ \
19485 hardcode_automatic_GCJ \
19487 module_expsym_cmds_GCJ \
19488 lt_cv_prog_compiler_c_o_GCJ \
19489 exclude_expsyms_GCJ \
19490 include_expsyms_GCJ; do
19493 old_archive_cmds_GCJ | \
19494 old_archive_from_new_cmds_GCJ | \
19495 archive_cmds_GCJ | \
19496 archive_expsym_cmds_GCJ | \
19497 module_cmds_GCJ | \
19498 module_expsym_cmds_GCJ | \
19499 old_archive_from_expsyms_cmds_GCJ | \
19500 export_symbols_cmds_GCJ | \
19501 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19502 postinstall_cmds | postuninstall_cmds | \
19503 old_postinstall_cmds | old_postuninstall_cmds | \
19504 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19505 # Double-quote double-evaled strings.
19506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19515 *'\$0 --fallback-echo"')
19516 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19522 cat <<__EOF__ >> "$cfgfile"
19523 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19525 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19527 # Shell to use when invoking shell scripts.
19530 # Whether or not to build shared libraries.
19531 build_libtool_libs=$enable_shared
19533 # Whether or not to build static libraries.
19534 build_old_libs=$enable_static
19536 # Whether or not to add -lc for building shared libraries.
19537 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19539 # Whether or not to disallow shared libs when runtime libs are static
19540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19542 # Whether or not to optimize for fast installation.
19543 fast_install=$enable_fast_install
19546 host_alias=$host_alias
19550 # The build system.
19551 build_alias=$build_alias
19555 # An echo program that does not interpret backslashes.
19560 AR_FLAGS=$lt_AR_FLAGS
19565 # LTCC compiler flags.
19566 LTCFLAGS=$lt_LTCFLAGS
19568 # A language-specific compiler.
19569 CC=$lt_compiler_GCJ
19571 # Is the compiler the GNU C compiler?
19577 # The linker used to build libraries.
19580 # Whether we need hard or soft links.
19583 # A BSD-compatible nm program.
19586 # A symbol stripping program
19589 # Used to examine libraries when file_magic_cmd begins "file"
19590 MAGIC_CMD=$MAGIC_CMD
19592 # Used on cygwin: DLL creation program.
19595 # Used on cygwin: object dumper.
19598 # Used on cygwin: assembler.
19601 # The name of the directory that contains temporary libtool files.
19604 # How to create reloadable object files.
19605 reload_flag=$lt_reload_flag
19606 reload_cmds=$lt_reload_cmds
19608 # How to pass a linker flag through the compiler.
19609 wl=$lt_lt_prog_compiler_wl_GCJ
19611 # Object file suffix (normally "o").
19612 objext="$ac_objext"
19614 # Old archive suffix (normally "a").
19617 # Shared library suffix (normally ".so").
19618 shrext_cmds='$shrext_cmds'
19620 # Executable file suffix (normally "").
19623 # Additional compiler flags for building library objects.
19624 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19627 # What is the maximum length of a command?
19628 max_cmd_len=$lt_cv_sys_max_cmd_len
19630 # Does compiler simultaneously support -c and -o options?
19631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19633 # Must we lock files when doing compilation?
19634 need_locks=$lt_need_locks
19636 # Do we need the lib prefix for modules?
19637 need_lib_prefix=$need_lib_prefix
19639 # Do we need a version for libraries?
19640 need_version=$need_version
19642 # Whether dlopen is supported.
19643 dlopen_support=$enable_dlopen
19645 # Whether dlopen of programs is supported.
19646 dlopen_self=$enable_dlopen_self
19648 # Whether dlopen of statically linked programs is supported.
19649 dlopen_self_static=$enable_dlopen_self_static
19651 # Compiler flag to prevent dynamic linking.
19652 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19654 # Compiler flag to turn off builtin functions.
19655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19657 # Compiler flag to allow reflexive dlopens.
19658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19660 # Compiler flag to generate shared objects directly from archives.
19661 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19663 # Compiler flag to generate thread-safe objects.
19664 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19666 # Library versioning type.
19667 version_type=$version_type
19669 # Format of library name prefix.
19670 libname_spec=$lt_libname_spec
19672 # List of archive names. First name is the real one, the rest are links.
19673 # The last name is the one that the linker finds with -lNAME.
19674 library_names_spec=$lt_library_names_spec
19676 # The coded name of the library, if different from the real name.
19677 soname_spec=$lt_soname_spec
19679 # Commands used to build and install an old-style archive.
19681 old_archive_cmds=$lt_old_archive_cmds_GCJ
19682 old_postinstall_cmds=$lt_old_postinstall_cmds
19683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19685 # Create an old-style archive from a shared archive.
19686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19688 # Create a temporary old-style archive to link instead of a shared archive.
19689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19691 # Commands used to build and install a shared archive.
19692 archive_cmds=$lt_archive_cmds_GCJ
19693 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19694 postinstall_cmds=$lt_postinstall_cmds
19695 postuninstall_cmds=$lt_postuninstall_cmds
19697 # Commands used to build a loadable module (assumed same as above if empty)
19698 module_cmds=$lt_module_cmds_GCJ
19699 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19701 # Commands to strip libraries.
19702 old_striplib=$lt_old_striplib
19703 striplib=$lt_striplib
19705 # Dependencies to place before the objects being linked to create a
19707 predep_objects=$lt_predep_objects_GCJ
19709 # Dependencies to place after the objects being linked to create a
19711 postdep_objects=$lt_postdep_objects_GCJ
19713 # Dependencies to place before the objects being linked to create a
19715 predeps=$lt_predeps_GCJ
19717 # Dependencies to place after the objects being linked to create a
19719 postdeps=$lt_postdeps_GCJ
19721 # The library search path used internally by the compiler when linking
19722 # a shared library.
19723 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19725 # Method to check whether dependent libraries are shared objects.
19726 deplibs_check_method=$lt_deplibs_check_method
19728 # Command to use when deplibs_check_method == file_magic.
19729 file_magic_cmd=$lt_file_magic_cmd
19731 # Flag that allows shared libraries with undefined symbols to be built.
19732 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19734 # Flag that forces no undefined symbols.
19735 no_undefined_flag=$lt_no_undefined_flag_GCJ
19737 # Commands used to finish a libtool library installation in a directory.
19738 finish_cmds=$lt_finish_cmds
19740 # Same as above, but a single script fragment to be evaled but not shown.
19741 finish_eval=$lt_finish_eval
19743 # Take the output of nm and produce a listing of raw symbols and C names.
19744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19746 # Transform the output of nm in a proper C declaration
19747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19749 # Transform the output of nm in a C name address pair
19750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19752 # This is the shared library runtime path variable.
19753 runpath_var=$runpath_var
19755 # This is the shared library path variable.
19756 shlibpath_var=$shlibpath_var
19758 # Is shlibpath searched before the hard-coded library search path?
19759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19761 # How to hardcode a shared library path into an executable.
19762 hardcode_action=$hardcode_action_GCJ
19764 # Whether we should hardcode library paths into libraries.
19765 hardcode_into_libs=$hardcode_into_libs
19767 # Flag to hardcode \$libdir into a binary during linking.
19768 # This must work even if \$libdir does not exist.
19769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19771 # If ld is used when linking, flag to hardcode \$libdir into
19772 # a binary during linking. This must work even if \$libdir does
19774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19776 # Whether we need a single -rpath flag with a separated argument.
19777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19780 # resulting binary.
19781 hardcode_direct=$hardcode_direct_GCJ
19783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19784 # resulting binary.
19785 hardcode_minus_L=$hardcode_minus_L_GCJ
19787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19788 # the resulting binary.
19789 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19791 # Set to yes if building a shared library automatically hardcodes DIR into the library
19792 # and all subsequent libraries and executables linked against it.
19793 hardcode_automatic=$hardcode_automatic_GCJ
19795 # Variables whose values should be saved in libtool wrapper scripts and
19796 # restored at relink time.
19797 variables_saved_for_relink="$variables_saved_for_relink"
19799 # Whether libtool must link a program against all its dependency libraries.
19800 link_all_deplibs=$link_all_deplibs_GCJ
19802 # Compile-time system search path for libraries
19803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19805 # Run-time system search path for libraries
19806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19808 # Fix the shell variable \$srcfile for the compiler.
19809 fix_srcfile_path="$fix_srcfile_path_GCJ"
19811 # Set to yes if exported symbols are required.
19812 always_export_symbols=$always_export_symbols_GCJ
19814 # The commands to list exported symbols.
19815 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19817 # The commands to extract the exported symbol list from a shared archive.
19818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19820 # Symbols that should not be listed in the preloaded symbols.
19821 exclude_expsyms=$lt_exclude_expsyms_GCJ
19823 # Symbols that must always be exported.
19824 include_expsyms=$lt_include_expsyms_GCJ
19826 # ### END LIBTOOL TAG CONFIG: $tagname
19832 # If there is no Makefile yet, we rely on a make rule to execute
19833 # `config.status --recheck' to rerun these tests and create the
19834 # libtool script then.
19835 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19836 if test -f "$ltmain_in"; then
19837 test -f Makefile && make "$ltmain"
19843 ac_cpp='$CPP $CPPFLAGS'
19844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19858 # Source file extension for RC test sources.
19861 # Object file extension for compiled RC test sources.
19865 # Code to be used in simple compile tests
19866 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19868 # Code to be used in simple link tests
19869 lt_simple_link_test_code="$lt_simple_compile_test_code"
19871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19873 # If no C compiler was specified, use CC.
19876 # If no C compiler flags were specified, use CFLAGS.
19877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19879 # Allow CC to be a program name with arguments.
19883 # save warnings/boilerplate of simple test code
19884 ac_outfile=conftest.$ac_objext
19885 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19887 _lt_compiler_boilerplate=`cat conftest.err`
19890 ac_outfile=conftest.$ac_objext
19891 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19893 _lt_linker_boilerplate=`cat conftest.err`
19897 # Allow CC to be a program name with arguments.
19902 for cc_temp in $compiler""; do
19904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19912 lt_cv_prog_compiler_c_o_RC=yes
19914 # The else clause should only fire when bootstrapping the
19915 # libtool distribution, otherwise you forgot to ship ltmain.sh
19916 # with your package, and you will get complaints that there are
19917 # no rules to generate ltmain.sh.
19918 if test -f "$ltmain"; then
19919 # See if we are running on zsh, and set the options which allow our commands through
19920 # without removal of \ escapes.
19921 if test -n "${ZSH_VERSION+set}" ; then
19922 setopt NO_GLOB_SUBST
19924 # Now quote all the things that may contain metacharacters while being
19925 # careful not to overquote the AC_SUBSTed values. We take copies of the
19926 # variables and quote the copies for generation of the libtool script.
19927 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19929 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19930 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19931 deplibs_check_method reload_flag reload_cmds need_locks \
19932 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19933 lt_cv_sys_global_symbol_to_c_name_address \
19934 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19935 old_postinstall_cmds old_postuninstall_cmds \
19939 lt_prog_compiler_wl_RC \
19940 lt_prog_compiler_pic_RC \
19941 lt_prog_compiler_static_RC \
19942 lt_prog_compiler_no_builtin_flag_RC \
19943 export_dynamic_flag_spec_RC \
19944 thread_safe_flag_spec_RC \
19945 whole_archive_flag_spec_RC \
19946 enable_shared_with_static_runtimes_RC \
19947 old_archive_cmds_RC \
19948 old_archive_from_new_cmds_RC \
19949 predep_objects_RC \
19950 postdep_objects_RC \
19953 compiler_lib_search_path_RC \
19955 archive_expsym_cmds_RC \
19956 postinstall_cmds_RC \
19957 postuninstall_cmds_RC \
19958 old_archive_from_expsyms_cmds_RC \
19959 allow_undefined_flag_RC \
19960 no_undefined_flag_RC \
19961 export_symbols_cmds_RC \
19962 hardcode_libdir_flag_spec_RC \
19963 hardcode_libdir_flag_spec_ld_RC \
19964 hardcode_libdir_separator_RC \
19965 hardcode_automatic_RC \
19967 module_expsym_cmds_RC \
19968 lt_cv_prog_compiler_c_o_RC \
19969 exclude_expsyms_RC \
19970 include_expsyms_RC; do
19973 old_archive_cmds_RC | \
19974 old_archive_from_new_cmds_RC | \
19975 archive_cmds_RC | \
19976 archive_expsym_cmds_RC | \
19978 module_expsym_cmds_RC | \
19979 old_archive_from_expsyms_cmds_RC | \
19980 export_symbols_cmds_RC | \
19981 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19982 postinstall_cmds | postuninstall_cmds | \
19983 old_postinstall_cmds | old_postuninstall_cmds | \
19984 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19985 # Double-quote double-evaled strings.
19986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19995 *'\$0 --fallback-echo"')
19996 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20002 cat <<__EOF__ >> "$cfgfile"
20003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20007 # Shell to use when invoking shell scripts.
20010 # Whether or not to build shared libraries.
20011 build_libtool_libs=$enable_shared
20013 # Whether or not to build static libraries.
20014 build_old_libs=$enable_static
20016 # Whether or not to add -lc for building shared libraries.
20017 build_libtool_need_lc=$archive_cmds_need_lc_RC
20019 # Whether or not to disallow shared libs when runtime libs are static
20020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20022 # Whether or not to optimize for fast installation.
20023 fast_install=$enable_fast_install
20026 host_alias=$host_alias
20030 # The build system.
20031 build_alias=$build_alias
20035 # An echo program that does not interpret backslashes.
20040 AR_FLAGS=$lt_AR_FLAGS
20045 # LTCC compiler flags.
20046 LTCFLAGS=$lt_LTCFLAGS
20048 # A language-specific compiler.
20051 # Is the compiler the GNU C compiler?
20057 # The linker used to build libraries.
20060 # Whether we need hard or soft links.
20063 # A BSD-compatible nm program.
20066 # A symbol stripping program
20069 # Used to examine libraries when file_magic_cmd begins "file"
20070 MAGIC_CMD=$MAGIC_CMD
20072 # Used on cygwin: DLL creation program.
20075 # Used on cygwin: object dumper.
20078 # Used on cygwin: assembler.
20081 # The name of the directory that contains temporary libtool files.
20084 # How to create reloadable object files.
20085 reload_flag=$lt_reload_flag
20086 reload_cmds=$lt_reload_cmds
20088 # How to pass a linker flag through the compiler.
20089 wl=$lt_lt_prog_compiler_wl_RC
20091 # Object file suffix (normally "o").
20092 objext="$ac_objext"
20094 # Old archive suffix (normally "a").
20097 # Shared library suffix (normally ".so").
20098 shrext_cmds='$shrext_cmds'
20100 # Executable file suffix (normally "").
20103 # Additional compiler flags for building library objects.
20104 pic_flag=$lt_lt_prog_compiler_pic_RC
20107 # What is the maximum length of a command?
20108 max_cmd_len=$lt_cv_sys_max_cmd_len
20110 # Does compiler simultaneously support -c and -o options?
20111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20113 # Must we lock files when doing compilation?
20114 need_locks=$lt_need_locks
20116 # Do we need the lib prefix for modules?
20117 need_lib_prefix=$need_lib_prefix
20119 # Do we need a version for libraries?
20120 need_version=$need_version
20122 # Whether dlopen is supported.
20123 dlopen_support=$enable_dlopen
20125 # Whether dlopen of programs is supported.
20126 dlopen_self=$enable_dlopen_self
20128 # Whether dlopen of statically linked programs is supported.
20129 dlopen_self_static=$enable_dlopen_self_static
20131 # Compiler flag to prevent dynamic linking.
20132 link_static_flag=$lt_lt_prog_compiler_static_RC
20134 # Compiler flag to turn off builtin functions.
20135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20137 # Compiler flag to allow reflexive dlopens.
20138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20140 # Compiler flag to generate shared objects directly from archives.
20141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20143 # Compiler flag to generate thread-safe objects.
20144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20146 # Library versioning type.
20147 version_type=$version_type
20149 # Format of library name prefix.
20150 libname_spec=$lt_libname_spec
20152 # List of archive names. First name is the real one, the rest are links.
20153 # The last name is the one that the linker finds with -lNAME.
20154 library_names_spec=$lt_library_names_spec
20156 # The coded name of the library, if different from the real name.
20157 soname_spec=$lt_soname_spec
20159 # Commands used to build and install an old-style archive.
20161 old_archive_cmds=$lt_old_archive_cmds_RC
20162 old_postinstall_cmds=$lt_old_postinstall_cmds
20163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20165 # Create an old-style archive from a shared archive.
20166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20168 # Create a temporary old-style archive to link instead of a shared archive.
20169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20171 # Commands used to build and install a shared archive.
20172 archive_cmds=$lt_archive_cmds_RC
20173 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20174 postinstall_cmds=$lt_postinstall_cmds
20175 postuninstall_cmds=$lt_postuninstall_cmds
20177 # Commands used to build a loadable module (assumed same as above if empty)
20178 module_cmds=$lt_module_cmds_RC
20179 module_expsym_cmds=$lt_module_expsym_cmds_RC
20181 # Commands to strip libraries.
20182 old_striplib=$lt_old_striplib
20183 striplib=$lt_striplib
20185 # Dependencies to place before the objects being linked to create a
20187 predep_objects=$lt_predep_objects_RC
20189 # Dependencies to place after the objects being linked to create a
20191 postdep_objects=$lt_postdep_objects_RC
20193 # Dependencies to place before the objects being linked to create a
20195 predeps=$lt_predeps_RC
20197 # Dependencies to place after the objects being linked to create a
20199 postdeps=$lt_postdeps_RC
20201 # The library search path used internally by the compiler when linking
20202 # a shared library.
20203 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20205 # Method to check whether dependent libraries are shared objects.
20206 deplibs_check_method=$lt_deplibs_check_method
20208 # Command to use when deplibs_check_method == file_magic.
20209 file_magic_cmd=$lt_file_magic_cmd
20211 # Flag that allows shared libraries with undefined symbols to be built.
20212 allow_undefined_flag=$lt_allow_undefined_flag_RC
20214 # Flag that forces no undefined symbols.
20215 no_undefined_flag=$lt_no_undefined_flag_RC
20217 # Commands used to finish a libtool library installation in a directory.
20218 finish_cmds=$lt_finish_cmds
20220 # Same as above, but a single script fragment to be evaled but not shown.
20221 finish_eval=$lt_finish_eval
20223 # Take the output of nm and produce a listing of raw symbols and C names.
20224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20226 # Transform the output of nm in a proper C declaration
20227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20229 # Transform the output of nm in a C name address pair
20230 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20232 # This is the shared library runtime path variable.
20233 runpath_var=$runpath_var
20235 # This is the shared library path variable.
20236 shlibpath_var=$shlibpath_var
20238 # Is shlibpath searched before the hard-coded library search path?
20239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20241 # How to hardcode a shared library path into an executable.
20242 hardcode_action=$hardcode_action_RC
20244 # Whether we should hardcode library paths into libraries.
20245 hardcode_into_libs=$hardcode_into_libs
20247 # Flag to hardcode \$libdir into a binary during linking.
20248 # This must work even if \$libdir does not exist.
20249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20251 # If ld is used when linking, flag to hardcode \$libdir into
20252 # a binary during linking. This must work even if \$libdir does
20254 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20256 # Whether we need a single -rpath flag with a separated argument.
20257 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20259 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20260 # resulting binary.
20261 hardcode_direct=$hardcode_direct_RC
20263 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20264 # resulting binary.
20265 hardcode_minus_L=$hardcode_minus_L_RC
20267 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20268 # the resulting binary.
20269 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20271 # Set to yes if building a shared library automatically hardcodes DIR into the library
20272 # and all subsequent libraries and executables linked against it.
20273 hardcode_automatic=$hardcode_automatic_RC
20275 # Variables whose values should be saved in libtool wrapper scripts and
20276 # restored at relink time.
20277 variables_saved_for_relink="$variables_saved_for_relink"
20279 # Whether libtool must link a program against all its dependency libraries.
20280 link_all_deplibs=$link_all_deplibs_RC
20282 # Compile-time system search path for libraries
20283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20285 # Run-time system search path for libraries
20286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20288 # Fix the shell variable \$srcfile for the compiler.
20289 fix_srcfile_path="$fix_srcfile_path_RC"
20291 # Set to yes if exported symbols are required.
20292 always_export_symbols=$always_export_symbols_RC
20294 # The commands to list exported symbols.
20295 export_symbols_cmds=$lt_export_symbols_cmds_RC
20297 # The commands to extract the exported symbol list from a shared archive.
20298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20300 # Symbols that should not be listed in the preloaded symbols.
20301 exclude_expsyms=$lt_exclude_expsyms_RC
20303 # Symbols that must always be exported.
20304 include_expsyms=$lt_include_expsyms_RC
20306 # ### END LIBTOOL TAG CONFIG: $tagname
20312 # If there is no Makefile yet, we rely on a make rule to execute
20313 # `config.status --recheck' to rerun these tests and create the
20314 # libtool script then.
20315 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20316 if test -f "$ltmain_in"; then
20317 test -f Makefile && make "$ltmain"
20323 ac_cpp='$CPP $CPPFLAGS'
20324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20333 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20334 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20335 { (exit 1); exit 1; }; }
20339 # Append the new tag name to the list of available tags.
20340 if test -n "$tagname" ; then
20341 available_tags="$available_tags $tagname"
20347 # Now substitute the updated list of available tags.
20348 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20349 mv "${ofile}T" "$ofile"
20353 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20354 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20355 { (exit 1); exit 1; }; }
20361 # This can be used to rebuild libtool when needed
20362 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20364 # Always use our own libtool.
20365 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20367 # Prevent multiple expansion
20389 if test "x$cross_compiling" = "xno"; then
20390 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20392 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20397 if test -n "$ac_tool_prefix"; then
20398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20399 set dummy ${ac_tool_prefix}ar; ac_word=$2
20400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20402 if test "${ac_cv_prog_AR+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 if test -n "$AR"; then
20406 ac_cv_prog_AR="$AR" # Let the user override the test.
20408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20409 for as_dir in $PATH
20412 test -z "$as_dir" && as_dir=.
20413 for ac_exec_ext in '' $ac_executable_extensions; do
20414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20415 ac_cv_prog_AR="${ac_tool_prefix}ar"
20416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20426 if test -n "$AR"; then
20427 { echo "$as_me:$LINENO: result: $AR" >&5
20428 echo "${ECHO_T}$AR" >&6; }
20430 { echo "$as_me:$LINENO: result: no" >&5
20431 echo "${ECHO_T}no" >&6; }
20436 if test -z "$ac_cv_prog_AR"; then
20438 # Extract the first word of "ar", so it can be a program name with args.
20439 set dummy ar; ac_word=$2
20440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20442 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 if test -n "$ac_ct_AR"; then
20446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449 for as_dir in $PATH
20452 test -z "$as_dir" && as_dir=.
20453 for ac_exec_ext in '' $ac_executable_extensions; do
20454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20455 ac_cv_prog_ac_ct_AR="ar"
20456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20466 if test -n "$ac_ct_AR"; then
20467 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20468 echo "${ECHO_T}$ac_ct_AR" >&6; }
20470 { echo "$as_me:$LINENO: result: no" >&5
20471 echo "${ECHO_T}no" >&6; }
20474 if test "x$ac_ct_AR" = x; then
20477 case $cross_compiling:$ac_tool_warned in
20479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20480 whose name does not start with the host triplet. If you think this
20481 configuration is useful to you, please write to autoconf@gnu.org." >&5
20482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20483 whose name does not start with the host triplet. If you think this
20484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20485 ac_tool_warned=yes ;;
20490 AR="$ac_cv_prog_AR"
20493 if test -n "$ac_tool_prefix"; then
20494 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20495 set dummy ${ac_tool_prefix}ld; ac_word=$2
20496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20498 if test "${ac_cv_prog_LD+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 if test -n "$LD"; then
20502 ac_cv_prog_LD="$LD" # Let the user override the test.
20504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20505 for as_dir in $PATH
20508 test -z "$as_dir" && as_dir=.
20509 for ac_exec_ext in '' $ac_executable_extensions; do
20510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20511 ac_cv_prog_LD="${ac_tool_prefix}ld"
20512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20522 if test -n "$LD"; then
20523 { echo "$as_me:$LINENO: result: $LD" >&5
20524 echo "${ECHO_T}$LD" >&6; }
20526 { echo "$as_me:$LINENO: result: no" >&5
20527 echo "${ECHO_T}no" >&6; }
20532 if test -z "$ac_cv_prog_LD"; then
20534 # Extract the first word of "ld", so it can be a program name with args.
20535 set dummy ld; ac_word=$2
20536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20538 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 if test -n "$ac_ct_LD"; then
20542 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20545 for as_dir in $PATH
20548 test -z "$as_dir" && as_dir=.
20549 for ac_exec_ext in '' $ac_executable_extensions; do
20550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20551 ac_cv_prog_ac_ct_LD="ld"
20552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20561 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20562 if test -n "$ac_ct_LD"; then
20563 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20564 echo "${ECHO_T}$ac_ct_LD" >&6; }
20566 { echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6; }
20570 if test "x$ac_ct_LD" = x; then
20573 case $cross_compiling:$ac_tool_warned in
20575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20576 whose name does not start with the host triplet. If you think this
20577 configuration is useful to you, please write to autoconf@gnu.org." >&5
20578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20579 whose name does not start with the host triplet. If you think this
20580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20581 ac_tool_warned=yes ;;
20586 LD="$ac_cv_prog_LD"
20590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20592 if test "${ac_cv_header_stdc+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include <stdlib.h>
20602 #include <stdarg.h>
20603 #include <string.h>
20614 rm -f conftest.$ac_objext
20615 if { (ac_try="$ac_compile"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_compile") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest.$ac_objext; then
20631 ac_cv_header_stdc=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_cv_header_stdc=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 if test $ac_cv_header_stdc = yes; then
20642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20649 #include <string.h>
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653 $EGREP "memchr" >/dev/null 2>&1; then
20656 ac_cv_header_stdc=no
20662 if test $ac_cv_header_stdc = yes; then
20663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <stdlib.h>
20673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20674 $EGREP "free" >/dev/null 2>&1; then
20677 ac_cv_header_stdc=no
20683 if test $ac_cv_header_stdc = yes; then
20684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20685 if test "$cross_compiling" = yes; then
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20695 #include <stdlib.h>
20696 #if ((' ' & 0x0FF) == 0x020)
20697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20700 # define ISLOWER(c) \
20701 (('a' <= (c) && (c) <= 'i') \
20702 || ('j' <= (c) && (c) <= 'r') \
20703 || ('s' <= (c) && (c) <= 'z'))
20704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20712 for (i = 0; i < 256; i++)
20713 if (XOR (islower (i), ISLOWER (i))
20714 || toupper (i) != TOUPPER (i))
20719 rm -f conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20730 { (case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_try") 2>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20741 echo "$as_me: program exited with status $ac_status" >&5
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ( exit $ac_status )
20746 ac_cv_header_stdc=no
20748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20756 if test $ac_cv_header_stdc = yes; then
20758 cat >>confdefs.h <<\_ACEOF
20759 @%:@define STDC_HEADERS 1
20765 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20766 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20767 if test "${knfsd_cv_glibc2+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 #include <features.h>
20778 #if !defined(__GLIBC__)
20783 if { (ac_try="$ac_cpp conftest.$ac_ext"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20791 grep -v '^ *+' conftest.er1 >conftest.err
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } >/dev/null && {
20796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20799 knfsd_cv_glibc2=yes
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20807 rm -f conftest.err conftest.$ac_ext
20810 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20811 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20812 if test $knfsd_cv_glibc2 = yes; then
20813 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20814 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20818 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20819 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20820 if test "${knfsd_cv_bsd_signals+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 if test "$cross_compiling" = yes; then
20824 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20825 See \`config.log' for more details." >&5
20826 echo "$as_me: error: cannot run test program while cross compiling
20827 See \`config.log' for more details." >&2;}
20828 { (exit 1); exit 1; }; }
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20837 #include <signal.h>
20838 #include <unistd.h>
20839 #include <sys/wait.h>
20841 static int counter = 0;
20842 static RETSIGTYPE handler(int num) { counter++; }
20847 if ((s = fork()) < 0) return 1;
20849 if (wait(&s) < 0) return 1;
20850 return WIFSIGNALED(s)? 1 : 0;
20853 signal(SIGHUP, handler);
20854 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20855 return (counter == 2)? 0 : 1;
20859 rm -f conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20870 { (case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_try") 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 knfsd_cv_bsd_signals=yes
20881 echo "$as_me: program exited with status $ac_status" >&5
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ( exit $ac_status )
20886 knfsd_cv_bsd_signals=no
20888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20893 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20894 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20895 test $knfsd_cv_bsd_signals = yes &&
20896 cat >>confdefs.h <<\_ACEOF
20897 @%:@define HAVE_BSD_SIGNALS 1
20902 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20903 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20904 if test "${ac_cv_func_gethostbyname+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20915 #define gethostbyname innocuous_gethostbyname
20917 /* System header to define __stub macros and hopefully few prototypes,
20918 which can conflict with char gethostbyname (); below.
20919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20920 <limits.h> exists even on freestanding compilers. */
20923 # include <limits.h>
20925 # include <assert.h>
20928 #undef gethostbyname
20930 /* Override any GCC internal prototype to avoid an error.
20931 Use char because int might match the return type of a GCC
20932 builtin and then its argument prototype would still apply. */
20936 char gethostbyname ();
20937 /* The GNU C library defines this for functions which it implements
20938 to always fail with ENOSYS. Some functions are actually named
20939 something starting with __ and the normal name is an alias. */
20940 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20947 return gethostbyname ();
20952 rm -f conftest.$ac_objext conftest$ac_exeext
20953 if { (ac_try="$ac_link"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_link") 2>conftest.er1
20961 grep -v '^ *+' conftest.er1 >conftest.err
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } && {
20966 test -z "$ac_c_werror_flag" ||
20967 test ! -s conftest.err
20968 } && test -s conftest$ac_exeext &&
20969 $as_test_x conftest$ac_exeext; then
20970 ac_cv_func_gethostbyname=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 ac_cv_func_gethostbyname=no
20978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20979 conftest$ac_exeext conftest.$ac_ext
20981 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20982 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20983 if test $ac_cv_func_gethostbyname = yes; then
20986 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20987 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20988 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 ac_check_lib_save_LIBS=$LIBS
20993 cat >conftest.$ac_ext <<_ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
21000 /* Override any GCC internal prototype to avoid an error.
21001 Use char because int might match the return type of a GCC
21002 builtin and then its argument prototype would still apply. */
21006 char gethostbyname ();
21010 return gethostbyname ();
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 (eval "$ac_link") 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && {
21029 test -z "$ac_c_werror_flag" ||
21030 test ! -s conftest.err
21031 } && test -s conftest$ac_exeext &&
21032 $as_test_x conftest$ac_exeext; then
21033 ac_cv_lib_nsl_gethostbyname=yes
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 ac_cv_lib_nsl_gethostbyname=no
21041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21042 conftest$ac_exeext conftest.$ac_ext
21043 LIBS=$ac_check_lib_save_LIBS
21045 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21046 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21047 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21055 { echo "$as_me:$LINENO: checking for connect" >&5
21056 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21057 if test "${ac_cv_func_connect+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21068 #define connect innocuous_connect
21070 /* System header to define __stub macros and hopefully few prototypes,
21071 which can conflict with char connect (); below.
21072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073 <limits.h> exists even on freestanding compilers. */
21076 # include <limits.h>
21078 # include <assert.h>
21083 /* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
21090 /* The GNU C library defines this for functions which it implements
21091 to always fail with ENOSYS. Some functions are actually named
21092 something starting with __ and the normal name is an alias. */
21093 #if defined __stub_connect || defined __stub___connect
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (ac_try="$ac_link"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_link") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest$ac_exeext &&
21122 $as_test_x conftest$ac_exeext; then
21123 ac_cv_func_connect=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_cv_func_connect=no
21131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21132 conftest$ac_exeext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21135 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21136 if test $ac_cv_func_connect = yes; then
21139 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21140 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21141 if test "${ac_cv_lib_socket_connect+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 ac_check_lib_save_LIBS=$LIBS
21145 LIBS="-lsocket $LIBNSL $LIBS"
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21153 /* Override any GCC internal prototype to avoid an error.
21154 Use char because int might match the return type of a GCC
21155 builtin and then its argument prototype would still apply. */
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_link") 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest$ac_exeext &&
21185 $as_test_x conftest$ac_exeext; then
21186 ac_cv_lib_socket_connect=yes
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_lib_socket_connect=no
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195 conftest$ac_exeext conftest.$ac_ext
21196 LIBS=$ac_check_lib_save_LIBS
21198 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21199 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21200 if test $ac_cv_lib_socket_connect = yes; then
21201 LIBSOCKET="-lsocket"
21203 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21204 echo "$as_me: error: Function 'socket' not found." >&2;}
21205 { (exit 1); exit 1; }; }
21211 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21212 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21213 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 ac_check_lib_save_LIBS=$LIBS
21217 LIBS="-lcrypt $LIBS"
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21225 /* Override any GCC internal prototype to avoid an error.
21226 Use char because int might match the return type of a GCC
21227 builtin and then its argument prototype would still apply. */
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (ac_try="$ac_link"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_link") 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest$ac_exeext &&
21257 $as_test_x conftest$ac_exeext; then
21258 ac_cv_lib_crypt_crypt=yes
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_cv_lib_crypt_crypt=no
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267 conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21270 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21271 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21272 if test $ac_cv_lib_crypt_crypt = yes; then
21276 if test "$enable_nfsv4" = yes; then
21277 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21278 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21279 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 ac_check_lib_save_LIBS=$LIBS
21283 LIBS="-levent $LIBS"
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21291 /* Override any GCC internal prototype to avoid an error.
21292 Use char because int might match the return type of a GCC
21293 builtin and then its argument prototype would still apply. */
21297 char event_dispatch ();
21301 return event_dispatch ();
21306 rm -f conftest.$ac_objext conftest$ac_exeext
21307 if { (ac_try="$ac_link"
21308 case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_link") 2>conftest.er1
21315 grep -v '^ *+' conftest.er1 >conftest.err
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } && {
21320 test -z "$ac_c_werror_flag" ||
21321 test ! -s conftest.err
21322 } && test -s conftest$ac_exeext &&
21323 $as_test_x conftest$ac_exeext; then
21324 ac_cv_lib_event_event_dispatch=yes
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21329 ac_cv_lib_event_event_dispatch=no
21332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21333 conftest$ac_exeext conftest.$ac_ext
21334 LIBS=$ac_check_lib_save_LIBS
21336 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21337 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21338 if test $ac_cv_lib_event_event_dispatch = yes; then
21341 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21342 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21343 { (exit 1); exit 1; }; }
21346 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21347 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21348 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 ac_check_lib_save_LIBS=$LIBS
21352 LIBS="-lnfsidmap $LIBS"
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21360 /* Override any GCC internal prototype to avoid an error.
21361 Use char because int might match the return type of a GCC
21362 builtin and then its argument prototype would still apply. */
21366 char nfs4_init_name_mapping ();
21370 return nfs4_init_name_mapping ();
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (ac_try="$ac_link"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_link") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest$ac_exeext &&
21392 $as_test_x conftest$ac_exeext; then
21393 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21402 conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21405 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21406 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21407 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21410 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21411 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21412 { (exit 1); exit 1; }; }
21416 for ac_header in event.h
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426 { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21429 # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 $ac_includes_default
21439 @%:@include <$ac_header>
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_compile") 2>conftest.er1
21450 grep -v '^ *+' conftest.er1 >conftest.err
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && {
21455 test -z "$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 } && test -s conftest.$ac_objext; then
21458 ac_header_compiler=yes
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 ac_header_compiler=no
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468 echo "${ECHO_T}$ac_header_compiler" >&6; }
21470 # Is the header present?
21471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 @%:@include <$ac_header>
21481 if { (ac_try="$ac_cpp conftest.$ac_ext"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } >/dev/null && {
21494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21497 ac_header_preproc=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 ac_header_preproc=no
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21509 # So? What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516 ac_header_preproc=yes
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21532 @%:@@%:@ ------------------------------- @%:@@%:@
21533 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21534 @%:@@%:@ ------------------------------- @%:@@%:@
21536 ) | sed "s/^/$as_me: WARNING: /" >&2
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 eval "$as_ac_Header=\$ac_header_preproc"
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552 cat >>confdefs.h <<_ACEOF
21553 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21557 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21558 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21559 { (exit 1); exit 1; }; }
21565 for ac_header in nfsidmap.h
21567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 ac_res=`eval echo '${'$as_ac_Header'}'`
21575 { echo "$as_me:$LINENO: result: $ac_res" >&5
21576 echo "${ECHO_T}$ac_res" >&6; }
21578 # Is the header compilable?
21579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 $ac_includes_default
21588 @%:@include <$ac_header>
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_compile") 2>conftest.er1
21599 grep -v '^ *+' conftest.er1 >conftest.err
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && {
21604 test -z "$ac_c_werror_flag" ||
21605 test ! -s conftest.err
21606 } && test -s conftest.$ac_objext; then
21607 ac_header_compiler=yes
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 ac_header_compiler=no
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21617 echo "${ECHO_T}$ac_header_compiler" >&6; }
21619 # Is the header present?
21620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 @%:@include <$ac_header>
21630 if { (ac_try="$ac_cpp conftest.$ac_ext"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } >/dev/null && {
21643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21646 ac_header_preproc=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_header_preproc=no
21654 rm -f conftest.err conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21656 echo "${ECHO_T}$ac_header_preproc" >&6; }
21658 # So? What about this header?
21659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21665 ac_header_preproc=yes
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21681 @%:@@%:@ ------------------------------- @%:@@%:@
21682 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21683 @%:@@%:@ ------------------------------- @%:@@%:@
21685 ) | sed "s/^/$as_me: WARNING: /" >&2
21688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 eval "$as_ac_Header=\$ac_header_preproc"
21695 ac_res=`eval echo '${'$as_ac_Header'}'`
21696 { echo "$as_me:$LINENO: result: $ac_res" >&5
21697 echo "${ECHO_T}$ac_res" >&6; }
21700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21701 cat >>confdefs.h <<_ACEOF
21702 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21706 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21707 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21708 { (exit 1); exit 1; }; }
21713 if test "$enable_gss" = yes; then
21716 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21717 if test -n "$ac_tool_prefix"; then
21718 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21719 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21722 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 case $PKG_CONFIG in
21727 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21731 for as_dir in $PATH
21734 test -z "$as_dir" && as_dir=.
21735 for ac_exec_ext in '' $ac_executable_extensions; do
21736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21737 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21748 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21749 if test -n "$PKG_CONFIG"; then
21750 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21751 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21753 { echo "$as_me:$LINENO: result: no" >&5
21754 echo "${ECHO_T}no" >&6; }
21759 if test -z "$ac_cv_path_PKG_CONFIG"; then
21760 ac_pt_PKG_CONFIG=$PKG_CONFIG
21761 # Extract the first word of "pkg-config", so it can be a program name with args.
21762 set dummy pkg-config; ac_word=$2
21763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21765 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 case $ac_pt_PKG_CONFIG in
21770 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21774 for as_dir in $PATH
21777 test -z "$as_dir" && as_dir=.
21778 for ac_exec_ext in '' $ac_executable_extensions; do
21779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21780 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21791 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21792 if test -n "$ac_pt_PKG_CONFIG"; then
21793 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21794 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21796 { echo "$as_me:$LINENO: result: no" >&5
21797 echo "${ECHO_T}no" >&6; }
21800 if test "x$ac_pt_PKG_CONFIG" = x; then
21803 case $cross_compiling:$ac_tool_warned in
21805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21806 whose name does not start with the host triplet. If you think this
21807 configuration is useful to you, please write to autoconf@gnu.org." >&5
21808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21809 whose name does not start with the host triplet. If you think this
21810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21811 ac_tool_warned=yes ;;
21813 PKG_CONFIG=$ac_pt_PKG_CONFIG
21816 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21820 if test -n "$PKG_CONFIG"; then
21821 _pkg_min_version=0.9.0
21822 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21823 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21824 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21825 { echo "$as_me:$LINENO: result: yes" >&5
21826 echo "${ECHO_T}yes" >&6; }
21828 { echo "$as_me:$LINENO: result: no" >&5
21829 echo "${ECHO_T}no" >&6; }
21836 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21837 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21839 if test -n "$PKG_CONFIG"; then
21840 if test -n "$RPCSECGSS_CFLAGS"; then
21841 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21843 if test -n "$PKG_CONFIG" && \
21844 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21845 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; then
21849 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21857 if test -n "$PKG_CONFIG"; then
21858 if test -n "$RPCSECGSS_LIBS"; then
21859 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21861 if test -n "$PKG_CONFIG" && \
21862 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21863 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; then
21867 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21878 if test $pkg_failed = yes; then
21880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21881 _pkg_short_errors_supported=yes
21883 _pkg_short_errors_supported=no
21885 if test $_pkg_short_errors_supported = yes; then
21886 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21888 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21890 # Put the nasty error message in config.log where it belongs
21891 echo "$RPCSECGSS_PKG_ERRORS" >&5
21893 { echo "$as_me:$LINENO: result: no" >&5
21894 echo "${ECHO_T}no" >&6; }
21895 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21896 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21897 { (exit 1); exit 1; }; }
21900 elif test $pkg_failed = untried; then
21901 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21902 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21903 { (exit 1); exit 1; }; }
21907 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21908 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21909 { echo "$as_me:$LINENO: result: yes" >&5
21910 echo "${ECHO_T}yes" >&6; }
21915 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21916 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21918 if test -n "$PKG_CONFIG"; then
21919 if test -n "$GSSAPI_CFLAGS"; then
21920 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21922 if test -n "$PKG_CONFIG" && \
21923 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21924 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; then
21928 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21936 if test -n "$PKG_CONFIG"; then
21937 if test -n "$GSSAPI_LIBS"; then
21938 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21940 if test -n "$PKG_CONFIG" && \
21941 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21942 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; then
21946 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21957 if test $pkg_failed = yes; then
21959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21960 _pkg_short_errors_supported=yes
21962 _pkg_short_errors_supported=no
21964 if test $_pkg_short_errors_supported = yes; then
21965 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21967 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21969 # Put the nasty error message in config.log where it belongs
21970 echo "$GSSAPI_PKG_ERRORS" >&5
21972 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21977 installed software in a non-standard prefix.
21979 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21980 and GSSAPI_LIBS to avoid the need to call pkg-config.
21981 See the pkg-config man page for more details.
21983 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21987 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21988 installed software in a non-standard prefix.
21990 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21991 and GSSAPI_LIBS to avoid the need to call pkg-config.
21992 See the pkg-config man page for more details.
21994 { (exit 1); exit 1; }; }
21995 elif test $pkg_failed = untried; then
21996 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21997 is in your PATH or set the PKG_CONFIG environment variable to the full
21998 path to pkg-config.
22000 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22001 and GSSAPI_LIBS to avoid the need to call pkg-config.
22002 See the pkg-config man page for more details.
22004 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22005 See \`config.log' for more details." >&5
22006 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22007 is in your PATH or set the PKG_CONFIG environment variable to the full
22008 path to pkg-config.
22010 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22011 and GSSAPI_LIBS to avoid the need to call pkg-config.
22012 See the pkg-config man page for more details.
22014 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22015 See \`config.log' for more details." >&2;}
22016 { (exit 1); exit 1; }; }
22018 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22019 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22020 { echo "$as_me:$LINENO: result: yes" >&5
22021 echo "${ECHO_T}yes" >&6; }
22027 if test "$knfsd_cv_glibc2" = no; then
22028 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22029 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22030 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 ac_check_lib_save_LIBS=$LIBS
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22042 /* Override any GCC internal prototype to avoid an error.
22043 Use char because int might match the return type of a GCC
22044 builtin and then its argument prototype would still apply. */
22057 rm -f conftest.$ac_objext conftest$ac_exeext
22058 if { (ac_try="$ac_link"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_link") 2>conftest.er1
22066 grep -v '^ *+' conftest.er1 >conftest.err
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } && {
22071 test -z "$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 } && test -s conftest$ac_exeext &&
22074 $as_test_x conftest$ac_exeext; then
22075 ac_cv_lib_bsd_daemon=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_cv_lib_bsd_daemon=no
22083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22084 conftest$ac_exeext conftest.$ac_ext
22085 LIBS=$ac_check_lib_save_LIBS
22087 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22088 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22089 if test $ac_cv_lib_bsd_daemon = yes; then
22098 if test "$enable_gss" = yes; then
22100 for ac_header in nfsidmap.h
22102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110 { echo "$as_me:$LINENO: result: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22113 # Is the header compilable?
22114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 $ac_includes_default
22123 @%:@include <$ac_header>
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 ac_header_compiler=yes
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_header_compiler=no
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22152 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154 # Is the header present?
22155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 @%:@include <$ac_header>
22165 if { (ac_try="$ac_cpp conftest.$ac_ext"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } >/dev/null && {
22178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22181 ac_header_preproc=yes
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_header_preproc=no
22189 rm -f conftest.err conftest.$ac_ext
22190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22191 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193 # So? What about this header?
22194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22200 ac_header_preproc=yes
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22216 @%:@@%:@ ------------------------------- @%:@@%:@
22217 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22218 @%:@@%:@ ------------------------------- @%:@@%:@
22220 ) | sed "s/^/$as_me: WARNING: /" >&2
22223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 eval "$as_ac_Header=\$ac_header_preproc"
22230 ac_res=`eval echo '${'$as_ac_Header'}'`
22231 { echo "$as_me:$LINENO: result: $ac_res" >&5
22232 echo "${ECHO_T}$ac_res" >&6; }
22235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22236 cat >>confdefs.h <<_ACEOF
22237 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22241 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22242 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22243 { (exit 1); exit 1; }; }
22249 for ac_header in spkm3.h
22251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 ac_res=`eval echo '${'$as_ac_Header'}'`
22259 { echo "$as_me:$LINENO: result: $ac_res" >&5
22260 echo "${ECHO_T}$ac_res" >&6; }
22262 # Is the header compilable?
22263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22272 @%:@include <$ac_header>
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22291 ac_header_compiler=yes
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_header_compiler=no
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22301 echo "${ECHO_T}$ac_header_compiler" >&6; }
22303 # Is the header present?
22304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22306 cat >conftest.$ac_ext <<_ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 @%:@include <$ac_header>
22314 if { (ac_try="$ac_cpp conftest.$ac_ext"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22322 grep -v '^ *+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } >/dev/null && {
22327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22330 ac_header_preproc=yes
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ac_header_preproc=no
22338 rm -f conftest.err conftest.$ac_ext
22339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22340 echo "${ECHO_T}$ac_header_preproc" >&6; }
22342 # So? What about this header?
22343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22349 ac_header_preproc=yes
22352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22365 @%:@@%:@ ------------------------------- @%:@@%:@
22366 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22367 @%:@@%:@ ------------------------------- @%:@@%:@
22369 ) | sed "s/^/$as_me: WARNING: /" >&2
22372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 eval "$as_ac_Header=\$ac_header_preproc"
22379 ac_res=`eval echo '${'$as_ac_Header'}'`
22380 { echo "$as_me:$LINENO: result: $ac_res" >&5
22381 echo "${ECHO_T}$ac_res" >&6; }
22384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22385 cat >>confdefs.h <<_ACEOF
22386 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22390 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22391 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22396 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22397 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22398 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 ac_check_lib_save_LIBS=$LIBS
22402 LIBS="-lnfsidmap $LIBS"
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22410 /* Override any GCC internal prototype to avoid an error.
22411 Use char because int might match the return type of a GCC
22412 builtin and then its argument prototype would still apply. */
22416 char nfs4_set_debug ();
22420 return nfs4_set_debug ();
22425 rm -f conftest.$ac_objext conftest$ac_exeext
22426 if { (ac_try="$ac_link"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_link") 2>conftest.er1
22434 grep -v '^ *+' conftest.er1 >conftest.err
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest$ac_exeext &&
22442 $as_test_x conftest$ac_exeext; then
22443 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_cv_lib_nfsidmap_nfs4_set_debug=no
22451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22452 conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22455 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22456 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22457 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22459 cat >>confdefs.h <<\_ACEOF
22460 @%:@define HAVE_NFS4_SET_DEBUG 1
22467 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22468 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22470 # Check whether --with-krb5 was given.
22471 if test "${with_krb5+set}" = set; then
22472 withval=$with_krb5; case "$withval" in
22477 krb5_with="$withval"
22484 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22485 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22487 if test -f $dir/bin/krb5-config; then
22488 K5CONFIG=$dir/bin/krb5-config
22489 elif test -f "/usr/kerberos/bin/krb5-config"; then
22490 K5CONFIG="/usr/kerberos/bin/krb5-config"
22491 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22492 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22494 if test "$K5CONFIG" != ""; then
22495 KRBCFLAGS=`$K5CONFIG --cflags`
22496 KRBLIBS=`$K5CONFIG --libs gssapi`
22497 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22499 cat >>confdefs.h <<_ACEOF
22500 @%:@define KRB5_VERSION $K5VERS
22503 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22504 \( -f $dir/lib/libgssapi_krb5.a -o \
22505 -f $dir/lib/libgssapi_krb5.so \) ; then
22507 cat >>confdefs.h <<\_ACEOF
22508 @%:@define HAVE_KRB5 1
22512 if test $K5VERS -le 131; then
22514 cat >>confdefs.h <<\_ACEOF
22515 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22519 gssapi_lib=gssapi_krb5
22521 elif test \( -f $dir/include/heim_err.h -o\
22522 -f $dir/include/heimdal/heim_err.h \) -a \
22523 -f $dir/lib/libroken.a; then
22525 cat >>confdefs.h <<\_ACEOF
22526 @%:@define HAVE_HEIMDAL 1
22535 if test "x$KRBDIR" = "x"; then
22536 if test "x$krb5_with" = "x"; then
22537 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22538 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22539 { (exit 1); exit 1; }; }
22541 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22542 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22543 { (exit 1); exit 1; }; }
22546 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22547 echo "${ECHO_T}$KRBDIR" >&6; }
22549 echo "The current KRBDIR is $KRBDIR"
22550 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22551 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22553 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22556 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22559 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22560 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22561 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22562 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22574 /* Override any GCC internal prototype to avoid an error.
22575 Use char because int might match the return type of a GCC
22576 builtin and then its argument prototype would still apply. */
22580 char gss_krb5_export_lucid_sec_context ();
22584 return gss_krb5_export_lucid_sec_context ();
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_link") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1 >conftest.err
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest$ac_exeext &&
22606 $as_test_x conftest$ac_exeext; then
22607 eval "$as_ac_Lib=yes"
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 eval "$as_ac_Lib=no"
22615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22616 conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22619 ac_res=`eval echo '${'$as_ac_Lib'}'`
22620 { echo "$as_me:$LINENO: result: $ac_res" >&5
22621 echo "${ECHO_T}$ac_res" >&6; }
22622 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22624 cat >>confdefs.h <<\_ACEOF
22625 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22630 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22631 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22632 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22633 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 ac_check_lib_save_LIBS=$LIBS
22637 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22638 cat >conftest.$ac_ext <<_ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22645 /* Override any GCC internal prototype to avoid an error.
22646 Use char because int might match the return type of a GCC
22647 builtin and then its argument prototype would still apply. */
22651 char gss_krb5_set_allowable_enctypes ();
22655 return gss_krb5_set_allowable_enctypes ();
22660 rm -f conftest.$ac_objext conftest$ac_exeext
22661 if { (ac_try="$ac_link"
22662 case "(($ac_try" in
22663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664 *) ac_try_echo=$ac_try;;
22666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667 (eval "$ac_link") 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest$ac_exeext &&
22677 $as_test_x conftest$ac_exeext; then
22678 eval "$as_ac_Lib=yes"
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 eval "$as_ac_Lib=no"
22686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22687 conftest$ac_exeext conftest.$ac_ext
22688 LIBS=$ac_check_lib_save_LIBS
22690 ac_res=`eval echo '${'$as_ac_Lib'}'`
22691 { echo "$as_me:$LINENO: result: $ac_res" >&5
22692 echo "${ECHO_T}$ac_res" >&6; }
22693 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22695 cat >>confdefs.h <<\_ACEOF
22696 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22701 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22702 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22703 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22704 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 ac_check_lib_save_LIBS=$LIBS
22708 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22709 cat >conftest.$ac_ext <<_ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22716 /* Override any GCC internal prototype to avoid an error.
22717 Use char because int might match the return type of a GCC
22718 builtin and then its argument prototype would still apply. */
22722 char gss_krb5_ccache_name ();
22726 return gss_krb5_ccache_name ();
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_link") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest$ac_exeext &&
22748 $as_test_x conftest$ac_exeext; then
22749 eval "$as_ac_Lib=yes"
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 eval "$as_ac_Lib=no"
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758 conftest$ac_exeext conftest.$ac_ext
22759 LIBS=$ac_check_lib_save_LIBS
22761 ac_res=`eval echo '${'$as_ac_Lib'}'`
22762 { echo "$as_me:$LINENO: result: $ac_res" >&5
22763 echo "${ECHO_T}$ac_res" >&6; }
22764 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22766 cat >>confdefs.h <<\_ACEOF
22767 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
22773 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22774 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22775 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22786 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22787 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22788 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22791 ac_check_lib_save_LIBS=$LIBS
22792 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22800 /* Override any GCC internal prototype to avoid an error.
22801 Use char because int might match the return type of a GCC
22802 builtin and then its argument prototype would still apply. */
22806 char authgss_create_default ();
22810 return authgss_create_default ();
22815 rm -f conftest.$ac_objext conftest$ac_exeext
22816 if { (ac_try="$ac_link"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_link") 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest$ac_exeext &&
22832 $as_test_x conftest$ac_exeext; then
22833 ac_cv_lib_rpcsecgss_authgss_create_default=yes
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_cv_lib_rpcsecgss_authgss_create_default=no
22841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22842 conftest$ac_exeext conftest.$ac_ext
22843 LIBS=$ac_check_lib_save_LIBS
22845 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22846 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22847 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22850 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22851 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22852 { (exit 1); exit 1; }; }
22855 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22856 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22857 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 ac_check_lib_save_LIBS=$LIBS
22861 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22869 /* Override any GCC internal prototype to avoid an error.
22870 Use char because int might match the return type of a GCC
22871 builtin and then its argument prototype would still apply. */
22875 char authgss_set_debug_level ();
22879 return authgss_set_debug_level ();
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (ac_try="$ac_link"
22886 case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_link") 2>conftest.er1
22893 grep -v '^ *+' conftest.er1 >conftest.err
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest$ac_exeext &&
22901 $as_test_x conftest$ac_exeext; then
22902 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22904 echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22907 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22911 conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22914 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22915 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22916 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22918 cat >>confdefs.h <<\_ACEOF
22919 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22950 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22951 malloc.h memory.h netdb.h netinet/in.h paths.h \
22952 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22953 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22954 syslog.h unistd.h com_err.h et/com_err.h \
22957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22964 ac_res=`eval echo '${'$as_ac_Header'}'`
22965 { echo "$as_me:$LINENO: result: $ac_res" >&5
22966 echo "${ECHO_T}$ac_res" >&6; }
22968 # Is the header compilable?
22969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22971 cat >conftest.$ac_ext <<_ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 $ac_includes_default
22978 @%:@include <$ac_header>
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_compile") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest.$ac_objext; then
22997 ac_header_compiler=yes
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_header_compiler=no
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23007 echo "${ECHO_T}$ac_header_compiler" >&6; }
23009 # Is the header present?
23010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 @%:@include <$ac_header>
23020 if { (ac_try="$ac_cpp conftest.$ac_ext"
23021 case "(($ac_try" in
23022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023 *) ac_try_echo=$ac_try;;
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } >/dev/null && {
23033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23034 test ! -s conftest.err
23036 ac_header_preproc=yes
23038 echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23041 ac_header_preproc=no
23044 rm -f conftest.err conftest.$ac_ext
23045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23046 echo "${ECHO_T}$ac_header_preproc" >&6; }
23048 # So? What about this header?
23049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23055 ac_header_preproc=yes
23058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23071 @%:@@%:@ ------------------------------- @%:@@%:@
23072 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23073 @%:@@%:@ ------------------------------- @%:@@%:@
23075 ) | sed "s/^/$as_me: WARNING: /" >&2
23078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 eval "$as_ac_Header=\$ac_header_preproc"
23085 ac_res=`eval echo '${'$as_ac_Header'}'`
23086 { echo "$as_me:$LINENO: result: $ac_res" >&5
23087 echo "${ECHO_T}$ac_res" >&6; }
23090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23091 cat >>confdefs.h <<_ACEOF
23092 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23100 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23102 if test "${ac_cv_c_const+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 cat >conftest.$ac_ext <<_ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h. */
23115 /* FIXME: Include the comments suggested by Paul. */
23116 #ifndef __cplusplus
23117 /* Ultrix mips cc rejects this. */
23118 typedef int charset[2];
23120 /* SunOS 4.1.1 cc rejects this. */
23121 char const *const *pcpcc;
23123 /* NEC SVR4.0.2 mips cc rejects this. */
23124 struct point {int x, y;};
23125 static struct point const zero = {0,0};
23126 /* AIX XL C 1.02.0.0 rejects this.
23127 It does not let you subtract one const X* pointer from another in
23128 an arm of an if-expression whose if-part is not a constant
23130 const char *g = "string";
23131 pcpcc = &g + (g ? g-g : 0);
23132 /* HPUX 7.0 cc rejects these. */
23134 ppc = (char**) pcpcc;
23135 pcpcc = (char const *const *) ppc;
23136 { /* SCO 3.2v4 cc rejects this. */
23138 char const *s = 0 ? (char *) 0 : (char const *) 0;
23143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23144 int x[] = {25, 17};
23145 const int *foo = &x[0];
23148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23149 typedef const int *iptr;
23153 { /* AIX XL C 1.02.0.0 rejects this saying
23154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23155 struct s { int j; const int *ap[3]; };
23156 struct s *b; b->j = 5;
23158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23159 const int foo = 10;
23160 if (!foo) return 0;
23162 return !cs[0] && !zero.x;
23169 rm -f conftest.$ac_objext
23170 if { (ac_try="$ac_compile"
23171 case "(($ac_try" in
23172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173 *) ac_try_echo=$ac_try;;
23175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176 (eval "$ac_compile") 2>conftest.er1
23178 grep -v '^ *+' conftest.er1 >conftest.err
23180 cat conftest.err >&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } && {
23183 test -z "$ac_c_werror_flag" ||
23184 test ! -s conftest.err
23185 } && test -s conftest.$ac_objext; then
23188 echo "$as_me: failed program was:" >&5
23189 sed 's/^/| /' conftest.$ac_ext >&5
23194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23196 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23197 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23198 if test $ac_cv_c_const = no; then
23200 cat >>confdefs.h <<\_ACEOF
23206 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23207 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23208 if test "${ac_cv_type_uid_t+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23211 cat >conftest.$ac_ext <<_ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 #include <sys/types.h>
23220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23221 $EGREP "uid_t" >/dev/null 2>&1; then
23222 ac_cv_type_uid_t=yes
23224 ac_cv_type_uid_t=no
23229 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23230 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23231 if test $ac_cv_type_uid_t = no; then
23233 cat >>confdefs.h <<\_ACEOF
23234 @%:@define uid_t int
23238 cat >>confdefs.h <<\_ACEOF
23239 @%:@define gid_t int
23244 { echo "$as_me:$LINENO: checking for inline" >&5
23245 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23246 if test "${ac_cv_c_inline+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 for ac_kw in inline __inline__ __inline; do
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #ifndef __cplusplus
23259 static $ac_kw foo_t static_foo () {return 0; }
23260 $ac_kw foo_t foo () {return 0; }
23264 rm -f conftest.$ac_objext
23265 if { (ac_try="$ac_compile"
23266 case "(($ac_try" in
23267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268 *) ac_try_echo=$ac_try;;
23270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271 (eval "$ac_compile") 2>conftest.er1
23273 grep -v '^ *+' conftest.er1 >conftest.err
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } && {
23278 test -z "$ac_c_werror_flag" ||
23279 test ! -s conftest.err
23280 } && test -s conftest.$ac_objext; then
23281 ac_cv_c_inline=$ac_kw
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290 test "$ac_cv_c_inline" != no && break
23294 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23295 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23298 case $ac_cv_c_inline in
23301 case $ac_cv_c_inline in
23303 *) ac_val=$ac_cv_c_inline;;
23305 cat >>confdefs.h <<_ACEOF
23306 #ifndef __cplusplus
23307 #define inline $ac_val
23313 { echo "$as_me:$LINENO: checking for off_t" >&5
23314 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23315 if test "${ac_cv_type_off_t+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 cat >conftest.$ac_ext <<_ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 $ac_includes_default
23325 typedef off_t ac__type_new_;
23329 if ((ac__type_new_ *) 0)
23331 if (sizeof (ac__type_new_))
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_cv_type_off_t=yes
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_cv_type_off_t=no
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23365 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23366 if test $ac_cv_type_off_t = yes; then
23370 cat >>confdefs.h <<_ACEOF
23371 @%:@define off_t long int
23376 { echo "$as_me:$LINENO: checking for pid_t" >&5
23377 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23378 if test "${ac_cv_type_pid_t+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 cat >conftest.$ac_ext <<_ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 $ac_includes_default
23388 typedef pid_t ac__type_new_;
23392 if ((ac__type_new_ *) 0)
23394 if (sizeof (ac__type_new_))
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407 (eval "$ac_compile") 2>conftest.er1
23409 grep -v '^ *+' conftest.er1 >conftest.err
23411 cat conftest.err >&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } && {
23414 test -z "$ac_c_werror_flag" ||
23415 test ! -s conftest.err
23416 } && test -s conftest.$ac_objext; then
23417 ac_cv_type_pid_t=yes
23419 echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23422 ac_cv_type_pid_t=no
23425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23428 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23429 if test $ac_cv_type_pid_t = yes; then
23433 cat >>confdefs.h <<_ACEOF
23434 @%:@define pid_t int
23439 { echo "$as_me:$LINENO: checking for size_t" >&5
23440 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23441 if test "${ac_cv_type_size_t+set}" = set; then
23442 echo $ECHO_N "(cached) $ECHO_C" >&6
23444 cat >conftest.$ac_ext <<_ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h. */
23450 $ac_includes_default
23451 typedef size_t ac__type_new_;
23455 if ((ac__type_new_ *) 0)
23457 if (sizeof (ac__type_new_))
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_compile") 2>conftest.er1
23472 grep -v '^ *+' conftest.er1 >conftest.err
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest.$ac_objext; then
23480 ac_cv_type_size_t=yes
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 ac_cv_type_size_t=no
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23491 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23492 if test $ac_cv_type_size_t = yes; then
23496 cat >>confdefs.h <<_ACEOF
23497 @%:@define size_t unsigned int
23502 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23503 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23504 if test "${ac_cv_header_time+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 #include <sys/types.h>
23514 #include <sys/time.h>
23520 if ((struct tm *) 0)
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23535 grep -v '^ *+' conftest.er1 >conftest.err
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 ac_cv_header_time=yes
23545 echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23548 ac_cv_header_time=no
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23554 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23555 if test $ac_cv_header_time = yes; then
23557 cat >>confdefs.h <<\_ACEOF
23558 @%:@define TIME_WITH_SYS_TIME 1
23563 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23564 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23565 if test "${ac_cv_struct_tm+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 cat >conftest.$ac_ext <<_ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 #include <sys/types.h>
23581 int *p = &tm.tm_sec;
23587 rm -f conftest.$ac_objext
23588 if { (ac_try="$ac_compile"
23589 case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_compile") 2>conftest.er1
23596 grep -v '^ *+' conftest.er1 >conftest.err
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && {
23601 test -z "$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 } && test -s conftest.$ac_objext; then
23604 ac_cv_struct_tm=time.h
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 ac_cv_struct_tm=sys/time.h
23612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23615 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23616 if test $ac_cv_struct_tm = sys/time.h; then
23618 cat >>confdefs.h <<\_ACEOF
23619 @%:@define TM_IN_SYS_TIME 1
23625 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23626 # for constant arguments. Useless!
23627 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23628 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23629 if test "${ac_cv_working_alloca_h+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 @%:@include <alloca.h>
23642 char *p = (char *) alloca (2 * sizeof (int));
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655 (eval "$ac_link") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest$ac_exeext &&
23665 $as_test_x conftest$ac_exeext; then
23666 ac_cv_working_alloca_h=yes
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ac_cv_working_alloca_h=no
23674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23675 conftest$ac_exeext conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23678 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23679 if test $ac_cv_working_alloca_h = yes; then
23681 cat >>confdefs.h <<\_ACEOF
23682 @%:@define HAVE_ALLOCA_H 1
23687 { echo "$as_me:$LINENO: checking for alloca" >&5
23688 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23689 if test "${ac_cv_func_alloca_works+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23699 # define alloca __builtin_alloca
23702 # include <malloc.h>
23703 # define alloca _alloca
23705 # ifdef HAVE_ALLOCA_H
23706 # include <alloca.h>
23711 # ifndef alloca /* predefined by HP cc +Olibcalls */
23722 char *p = (char *) alloca (1);
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (ac_try="$ac_link"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_link") 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest$ac_exeext &&
23745 $as_test_x conftest$ac_exeext; then
23746 ac_cv_func_alloca_works=yes
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_cv_func_alloca_works=no
23754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23755 conftest$ac_exeext conftest.$ac_ext
23757 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23758 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23760 if test $ac_cv_func_alloca_works = yes; then
23762 cat >>confdefs.h <<\_ACEOF
23763 @%:@define HAVE_ALLOCA 1
23767 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23768 # that cause trouble. Some versions do not even contain alloca or
23769 # contain a buggy version. If you still want to use their alloca,
23770 # use ar to extract alloca.o from them instead of compiling alloca.c.
23772 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23774 cat >>confdefs.h <<\_ACEOF
23775 @%:@define C_ALLOCA 1
23779 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23780 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23781 if test "${ac_cv_os_cray+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 cat >conftest.$ac_ext <<_ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 #if defined CRAY && ! defined CRAY2
23797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23798 $EGREP "webecray" >/dev/null 2>&1; then
23806 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23807 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23808 if test $ac_cv_os_cray = yes; then
23809 for ac_func in _getb67 GETB67 getb67; do
23810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23814 echo $ECHO_N "(cached) $ECHO_C" >&6
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23824 #define $ac_func innocuous_$ac_func
23826 /* System header to define __stub macros and hopefully few prototypes,
23827 which can conflict with char $ac_func (); below.
23828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23829 <limits.h> exists even on freestanding compilers. */
23832 # include <limits.h>
23834 # include <assert.h>
23839 /* Override any GCC internal prototype to avoid an error.
23840 Use char because int might match the return type of a GCC
23841 builtin and then its argument prototype would still apply. */
23846 /* The GNU C library defines this for functions which it implements
23847 to always fail with ENOSYS. Some functions are actually named
23848 something starting with __ and the normal name is an alias. */
23849 #if defined __stub_$ac_func || defined __stub___$ac_func
23856 return $ac_func ();
23861 rm -f conftest.$ac_objext conftest$ac_exeext
23862 if { (ac_try="$ac_link"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_link") 2>conftest.er1
23870 grep -v '^ *+' conftest.er1 >conftest.err
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } && {
23875 test -z "$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 } && test -s conftest$ac_exeext &&
23878 $as_test_x conftest$ac_exeext; then
23879 eval "$as_ac_var=yes"
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 eval "$as_ac_var=no"
23887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23888 conftest$ac_exeext conftest.$ac_ext
23890 ac_res=`eval echo '${'$as_ac_var'}'`
23891 { echo "$as_me:$LINENO: result: $ac_res" >&5
23892 echo "${ECHO_T}$ac_res" >&6; }
23893 if test `eval echo '${'$as_ac_var'}'` = yes; then
23895 cat >>confdefs.h <<_ACEOF
23896 @%:@define CRAY_STACKSEG_END $ac_func
23905 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23906 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23907 if test "${ac_cv_c_stack_direction+set}" = set; then
23908 echo $ECHO_N "(cached) $ECHO_C" >&6
23910 if test "$cross_compiling" = yes; then
23911 ac_cv_c_stack_direction=0
23913 cat >conftest.$ac_ext <<_ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h. */
23919 $ac_includes_default
23921 find_stack_direction ()
23923 static char *addr = 0;
23928 return find_stack_direction ();
23931 return (&dummy > addr) ? 1 : -1;
23937 return find_stack_direction () < 0;
23940 rm -f conftest$ac_exeext
23941 if { (ac_try="$ac_link"
23942 case "(($ac_try" in
23943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944 *) ac_try_echo=$ac_try;;
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947 (eval "$ac_link") 2>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23951 { (case "(($ac_try" in
23952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23953 *) ac_try_echo=$ac_try;;
23955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23956 (eval "$ac_try") 2>&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23960 ac_cv_c_stack_direction=1
23962 echo "$as_me: program exited with status $ac_status" >&5
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23966 ( exit $ac_status )
23967 ac_cv_c_stack_direction=-1
23969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23974 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23975 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23977 cat >>confdefs.h <<_ACEOF
23978 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
23989 ac_header_dirent=no
23990 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23991 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23992 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23993 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23997 cat >conftest.$ac_ext <<_ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 #include <sys/types.h>
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_compile") 2>conftest.er1
24024 grep -v '^ *+' conftest.er1 >conftest.err
24026 cat conftest.err >&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } && {
24029 test -z "$ac_c_werror_flag" ||
24030 test ! -s conftest.err
24031 } && test -s conftest.$ac_objext; then
24032 eval "$as_ac_Header=yes"
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24037 eval "$as_ac_Header=no"
24040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042 ac_res=`eval echo '${'$as_ac_Header'}'`
24043 { echo "$as_me:$LINENO: result: $ac_res" >&5
24044 echo "${ECHO_T}$ac_res" >&6; }
24045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24046 cat >>confdefs.h <<_ACEOF
24047 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24050 ac_header_dirent=$ac_hdr; break
24054 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24055 if test $ac_header_dirent = dirent.h; then
24056 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24057 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24058 if test "${ac_cv_search_opendir+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24061 ac_func_search_save_LIBS=$LIBS
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24069 /* Override any GCC internal prototype to avoid an error.
24070 Use char because int might match the return type of a GCC
24071 builtin and then its argument prototype would still apply. */
24084 for ac_lib in '' dir; do
24085 if test -z "$ac_lib"; then
24086 ac_res="none required"
24089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24091 rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (ac_try="$ac_link"
24093 case "(($ac_try" in
24094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095 *) ac_try_echo=$ac_try;;
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098 (eval "$ac_link") 2>conftest.er1
24100 grep -v '^ *+' conftest.er1 >conftest.err
24102 cat conftest.err >&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } && {
24105 test -z "$ac_c_werror_flag" ||
24106 test ! -s conftest.err
24107 } && test -s conftest$ac_exeext &&
24108 $as_test_x conftest$ac_exeext; then
24109 ac_cv_search_opendir=$ac_res
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24119 if test "${ac_cv_search_opendir+set}" = set; then
24123 if test "${ac_cv_search_opendir+set}" = set; then
24126 ac_cv_search_opendir=no
24128 rm conftest.$ac_ext
24129 LIBS=$ac_func_search_save_LIBS
24131 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24132 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24133 ac_res=$ac_cv_search_opendir
24134 if test "$ac_res" != no; then
24135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24140 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24142 if test "${ac_cv_search_opendir+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 ac_func_search_save_LIBS=$LIBS
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24153 /* Override any GCC internal prototype to avoid an error.
24154 Use char because int might match the return type of a GCC
24155 builtin and then its argument prototype would still apply. */
24168 for ac_lib in '' x; do
24169 if test -z "$ac_lib"; then
24170 ac_res="none required"
24173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24175 rm -f conftest.$ac_objext conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_link") 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && {
24189 test -z "$ac_c_werror_flag" ||
24190 test ! -s conftest.err
24191 } && test -s conftest$ac_exeext &&
24192 $as_test_x conftest$ac_exeext; then
24193 ac_cv_search_opendir=$ac_res
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24203 if test "${ac_cv_search_opendir+set}" = set; then
24207 if test "${ac_cv_search_opendir+set}" = set; then
24210 ac_cv_search_opendir=no
24212 rm conftest.$ac_ext
24213 LIBS=$ac_func_search_save_LIBS
24215 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24216 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24217 ac_res=$ac_cv_search_opendir
24218 if test "$ac_res" != no; then
24219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24225 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24226 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24227 if test "${ac_cv_func_closedir_void+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24230 if test "$cross_compiling" = yes; then
24231 ac_cv_func_closedir_void=yes
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 $ac_includes_default
24240 #include <$ac_header_dirent>
24241 #ifndef __cplusplus
24248 return closedir (opendir (".")) != 0;
24253 rm -f conftest$ac_exeext
24254 if { (ac_try="$ac_link"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_link") 2>&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264 { (case "(($ac_try" in
24265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24266 *) ac_try_echo=$ac_try;;
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269 (eval "$ac_try") 2>&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273 ac_cv_func_closedir_void=no
24275 echo "$as_me: program exited with status $ac_status" >&5
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ( exit $ac_status )
24280 ac_cv_func_closedir_void=yes
24282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24288 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24289 if test $ac_cv_func_closedir_void = yes; then
24291 cat >>confdefs.h <<\_ACEOF
24292 @%:@define CLOSEDIR_VOID 1
24297 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24298 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24299 if test "${ac_cv_lib_error_at_line+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24312 error_at_line (0, 0, "", 0, "an error occurred");
24317 rm -f conftest.$ac_objext conftest$ac_exeext
24318 if { (ac_try="$ac_link"
24319 case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_link") 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } && {
24331 test -z "$ac_c_werror_flag" ||
24332 test ! -s conftest.err
24333 } && test -s conftest$ac_exeext &&
24334 $as_test_x conftest$ac_exeext; then
24335 ac_cv_lib_error_at_line=yes
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 ac_cv_lib_error_at_line=no
24343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24344 conftest$ac_exeext conftest.$ac_ext
24346 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24347 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24348 if test $ac_cv_lib_error_at_line = no; then
24349 case " $LIB@&t@OBJS " in
24350 *" error.$ac_objext "* ) ;;
24351 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24358 for ac_header in vfork.h
24360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24367 ac_res=`eval echo '${'$as_ac_Header'}'`
24368 { echo "$as_me:$LINENO: result: $ac_res" >&5
24369 echo "${ECHO_T}$ac_res" >&6; }
24371 # Is the header compilable?
24372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24374 cat >conftest.$ac_ext <<_ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h. */
24380 $ac_includes_default
24381 @%:@include <$ac_header>
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_compile") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest.$ac_objext; then
24400 ac_header_compiler=yes
24402 echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24405 ac_header_compiler=no
24408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24410 echo "${ECHO_T}$ac_header_compiler" >&6; }
24412 # Is the header present?
24413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24421 @%:@include <$ac_header>
24423 if { (ac_try="$ac_cpp conftest.$ac_ext"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24431 grep -v '^ *+' conftest.er1 >conftest.err
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } >/dev/null && {
24436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24437 test ! -s conftest.err
24439 ac_header_preproc=yes
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24444 ac_header_preproc=no
24447 rm -f conftest.err conftest.$ac_ext
24448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24449 echo "${ECHO_T}$ac_header_preproc" >&6; }
24451 # So? What about this header?
24452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24458 ac_header_preproc=yes
24461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24474 @%:@@%:@ ------------------------------- @%:@@%:@
24475 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24476 @%:@@%:@ ------------------------------- @%:@@%:@
24478 ) | sed "s/^/$as_me: WARNING: /" >&2
24481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24484 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 eval "$as_ac_Header=\$ac_header_preproc"
24488 ac_res=`eval echo '${'$as_ac_Header'}'`
24489 { echo "$as_me:$LINENO: result: $ac_res" >&5
24490 echo "${ECHO_T}$ac_res" >&6; }
24493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24494 cat >>confdefs.h <<_ACEOF
24495 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24504 for ac_func in fork vfork
24506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24520 #define $ac_func innocuous_$ac_func
24522 /* System header to define __stub macros and hopefully few prototypes,
24523 which can conflict with char $ac_func (); below.
24524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24525 <limits.h> exists even on freestanding compilers. */
24528 # include <limits.h>
24530 # include <assert.h>
24535 /* Override any GCC internal prototype to avoid an error.
24536 Use char because int might match the return type of a GCC
24537 builtin and then its argument prototype would still apply. */
24542 /* The GNU C library defines this for functions which it implements
24543 to always fail with ENOSYS. Some functions are actually named
24544 something starting with __ and the normal name is an alias. */
24545 #if defined __stub_$ac_func || defined __stub___$ac_func
24552 return $ac_func ();
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (ac_try="$ac_link"
24559 case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_link") 2>conftest.er1
24566 grep -v '^ *+' conftest.er1 >conftest.err
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && {
24571 test -z "$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 } && test -s conftest$ac_exeext &&
24574 $as_test_x conftest$ac_exeext; then
24575 eval "$as_ac_var=yes"
24577 echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24580 eval "$as_ac_var=no"
24583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24584 conftest$ac_exeext conftest.$ac_ext
24586 ac_res=`eval echo '${'$as_ac_var'}'`
24587 { echo "$as_me:$LINENO: result: $ac_res" >&5
24588 echo "${ECHO_T}$ac_res" >&6; }
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590 cat >>confdefs.h <<_ACEOF
24591 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24597 if test "x$ac_cv_func_fork" = xyes; then
24598 { echo "$as_me:$LINENO: checking for working fork" >&5
24599 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24600 if test "${ac_cv_func_fork_works+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24603 if test "$cross_compiling" = yes; then
24604 ac_cv_func_fork_works=cross
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 $ac_includes_default
24617 /* By Ruediger Kuhlmann. */
24618 return fork () < 0;
24624 rm -f conftest$ac_exeext
24625 if { (ac_try="$ac_link"
24626 case "(($ac_try" in
24627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628 *) ac_try_echo=$ac_try;;
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631 (eval "$ac_link") 2>&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24635 { (case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_try") 2>&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); }; }; then
24644 ac_cv_func_fork_works=yes
24646 echo "$as_me: program exited with status $ac_status" >&5
24647 echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24650 ( exit $ac_status )
24651 ac_cv_func_fork_works=no
24653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24658 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24659 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24662 ac_cv_func_fork_works=$ac_cv_func_fork
24664 if test "x$ac_cv_func_fork_works" = xcross; then
24666 *-*-amigaos* | *-*-msdosdjgpp*)
24667 # Override, as these systems have only a dummy fork() stub
24668 ac_cv_func_fork_works=no
24671 ac_cv_func_fork_works=yes
24674 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24675 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24677 ac_cv_func_vfork_works=$ac_cv_func_vfork
24678 if test "x$ac_cv_func_vfork" = xyes; then
24679 { echo "$as_me:$LINENO: checking for working vfork" >&5
24680 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24681 if test "${ac_cv_func_vfork_works+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24684 if test "$cross_compiling" = yes; then
24685 ac_cv_func_vfork_works=cross
24687 cat >conftest.$ac_ext <<_ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h. */
24693 /* Thanks to Paul Eggert for this test. */
24694 $ac_includes_default
24695 #include <sys/wait.h>
24696 #ifdef HAVE_VFORK_H
24697 # include <vfork.h>
24699 /* On some sparc systems, changes by the child to local and incoming
24700 argument registers are propagated back to the parent. The compiler
24701 is told about this with #include <vfork.h>, but some compilers
24702 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24703 static variable whose address is put into a register that is
24704 clobbered by the vfork. */
24707 sparc_address_test (int arg)
24709 sparc_address_test (arg) int arg;
24712 static pid_t child;
24730 pid_t parent = getpid ();
24733 sparc_address_test (0);
24738 /* Here is another test for sparc vfork register problems. This
24739 test uses lots of local variables, at least as many local
24740 variables as main has allocated so far including compiler
24741 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24742 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24743 reuse the register of parent for one of the local variables,
24744 since it will think that parent can't possibly be used any more
24745 in this routine. Assigning to the local variable will thus
24746 munge parent in the parent process. */
24748 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24749 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24750 /* Convince the compiler that p..p7 are live; otherwise, it might
24751 use the same hardware register for all 8 local variables. */
24752 if (p != p1 || p != p2 || p != p3 || p != p4
24753 || p != p5 || p != p6 || p != p7)
24756 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24757 from child file descriptors. If the child closes a descriptor
24758 before it execs or exits, this munges the parent's descriptor
24759 as well. Test for this by closing stdout in the child. */
24760 _exit(close(fileno(stdout)) != 0);
24765 while (wait(&status) != child)
24768 /* Was there some problem with vforking? */
24771 /* Did the child fail? (This shouldn't happen.) */
24774 /* Did the vfork/compiler bug occur? */
24775 || parent != getpid()
24777 /* Did the file descriptor bug occur? */
24778 || fstat(fileno(stdout), &st) != 0
24783 rm -f conftest$ac_exeext
24784 if { (ac_try="$ac_link"
24785 case "(($ac_try" in
24786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24790 (eval "$ac_link") 2>&5
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24794 { (case "(($ac_try" in
24795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796 *) ac_try_echo=$ac_try;;
24798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799 (eval "$ac_try") 2>&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; }; then
24803 ac_cv_func_vfork_works=yes
24805 echo "$as_me: program exited with status $ac_status" >&5
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24809 ( exit $ac_status )
24810 ac_cv_func_vfork_works=no
24812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24817 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24818 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24821 if test "x$ac_cv_func_fork_works" = xcross; then
24822 ac_cv_func_vfork_works=$ac_cv_func_vfork
24823 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24824 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24827 if test "x$ac_cv_func_vfork_works" = xyes; then
24829 cat >>confdefs.h <<\_ACEOF
24830 @%:@define HAVE_WORKING_VFORK 1
24835 cat >>confdefs.h <<\_ACEOF
24836 @%:@define vfork fork
24840 if test "x$ac_cv_func_fork_works" = xyes; then
24842 cat >>confdefs.h <<\_ACEOF
24843 @%:@define HAVE_WORKING_FORK 1
24848 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24849 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24850 if test "${ac_cv_type_getgroups+set}" = set; then
24851 echo $ECHO_N "(cached) $ECHO_C" >&6
24853 if test "$cross_compiling" = yes; then
24854 ac_cv_type_getgroups=cross
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24862 /* Thanks to Mike Rendell for this test. */
24863 $ac_includes_default
24866 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24871 gid_t gidset[NGID];
24873 union { gid_t gval; long int lval; } val;
24876 for (i = 0; i < NGID; i++)
24877 gidset[i] = val.gval;
24878 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24880 /* Exit non-zero if getgroups seems to require an array of ints. This
24881 happens when gid_t is short int but getgroups modifies an array
24883 return n > 0 && gidset[n] != val.gval;
24886 rm -f conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_link") 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24897 { (case "(($ac_try" in
24898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899 *) ac_try_echo=$ac_try;;
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902 (eval "$ac_try") 2>&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906 ac_cv_type_getgroups=gid_t
24908 echo "$as_me: program exited with status $ac_status" >&5
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ( exit $ac_status )
24913 ac_cv_type_getgroups=int
24915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24919 if test $ac_cv_type_getgroups = cross; then
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24926 #include <unistd.h>
24929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24930 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24931 ac_cv_type_getgroups=gid_t
24933 ac_cv_type_getgroups=int
24939 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24940 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24942 cat >>confdefs.h <<_ACEOF
24943 @%:@define GETGROUPS_T $ac_cv_type_getgroups
24947 { echo "$as_me:$LINENO: checking for getgroups" >&5
24948 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24949 if test "${ac_cv_func_getgroups+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24952 cat >conftest.$ac_ext <<_ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24960 #define getgroups innocuous_getgroups
24962 /* System header to define __stub macros and hopefully few prototypes,
24963 which can conflict with char getgroups (); below.
24964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24965 <limits.h> exists even on freestanding compilers. */
24968 # include <limits.h>
24970 # include <assert.h>
24975 /* Override any GCC internal prototype to avoid an error.
24976 Use char because int might match the return type of a GCC
24977 builtin and then its argument prototype would still apply. */
24982 /* The GNU C library defines this for functions which it implements
24983 to always fail with ENOSYS. Some functions are actually named
24984 something starting with __ and the normal name is an alias. */
24985 #if defined __stub_getgroups || defined __stub___getgroups
24992 return getgroups ();
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (ac_try="$ac_link"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_link") 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && {
25011 test -z "$ac_c_werror_flag" ||
25012 test ! -s conftest.err
25013 } && test -s conftest$ac_exeext &&
25014 $as_test_x conftest$ac_exeext; then
25015 ac_cv_func_getgroups=yes
25017 echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25020 ac_cv_func_getgroups=no
25023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25024 conftest$ac_exeext conftest.$ac_ext
25026 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25027 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25030 # If we don't yet have getgroups, see if it's in -lbsd.
25031 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25033 if test $ac_cv_func_getgroups = no; then
25034 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25035 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25036 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25039 ac_check_lib_save_LIBS=$LIBS
25041 cat >conftest.$ac_ext <<_ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25048 /* Override any GCC internal prototype to avoid an error.
25049 Use char because int might match the return type of a GCC
25050 builtin and then its argument prototype would still apply. */
25058 return getgroups ();
25063 rm -f conftest.$ac_objext conftest$ac_exeext
25064 if { (ac_try="$ac_link"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_link") 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest$ac_exeext &&
25080 $as_test_x conftest$ac_exeext; then
25081 ac_cv_lib_bsd_getgroups=yes
25083 echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25086 ac_cv_lib_bsd_getgroups=no
25089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25090 conftest$ac_exeext conftest.$ac_ext
25091 LIBS=$ac_check_lib_save_LIBS
25093 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25094 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25095 if test $ac_cv_lib_bsd_getgroups = yes; then
25096 GETGROUPS_LIB=-lbsd
25101 # Run the program to test the functionality of the system-supplied
25102 # getgroups function only if there is such a function.
25103 if test $ac_cv_func_getgroups = yes; then
25104 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25105 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25106 if test "${ac_cv_func_getgroups_works+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25109 if test "$cross_compiling" = yes; then
25110 ac_cv_func_getgroups_works=no
25112 cat >conftest.$ac_ext <<_ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25118 $ac_includes_default
25122 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25123 return getgroups (0, 0) == -1;
25128 rm -f conftest$ac_exeext
25129 if { (ac_try="$ac_link"
25130 case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135 (eval "$ac_link") 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25139 { (case "(($ac_try" in
25140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141 *) ac_try_echo=$ac_try;;
25143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144 (eval "$ac_try") 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; }; then
25148 ac_cv_func_getgroups_works=yes
25150 echo "$as_me: program exited with status $ac_status" >&5
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25154 ( exit $ac_status )
25155 ac_cv_func_getgroups_works=no
25157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25163 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25164 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25165 if test $ac_cv_func_getgroups_works = yes; then
25167 cat >>confdefs.h <<\_ACEOF
25168 @%:@define HAVE_GETGROUPS 1
25175 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25176 # -lseq on Dynix/PTX, -lgen on Unixware.
25177 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25178 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25179 if test "${ac_cv_search_getmntent+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 ac_func_search_save_LIBS=$LIBS
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25190 /* Override any GCC internal prototype to avoid an error.
25191 Use char because int might match the return type of a GCC
25192 builtin and then its argument prototype would still apply. */
25200 return getmntent ();
25205 for ac_lib in '' sun seq gen; do
25206 if test -z "$ac_lib"; then
25207 ac_res="none required"
25210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25212 rm -f conftest.$ac_objext conftest$ac_exeext
25213 if { (ac_try="$ac_link"
25214 case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_link") 2>conftest.er1
25221 grep -v '^ *+' conftest.er1 >conftest.err
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && {
25226 test -z "$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25228 } && test -s conftest$ac_exeext &&
25229 $as_test_x conftest$ac_exeext; then
25230 ac_cv_search_getmntent=$ac_res
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25240 if test "${ac_cv_search_getmntent+set}" = set; then
25244 if test "${ac_cv_search_getmntent+set}" = set; then
25247 ac_cv_search_getmntent=no
25249 rm conftest.$ac_ext
25250 LIBS=$ac_func_search_save_LIBS
25252 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25253 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25254 ac_res=$ac_cv_search_getmntent
25255 if test "$ac_res" != no; then
25256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25257 ac_cv_func_getmntent=yes
25259 cat >>confdefs.h <<\_ACEOF
25260 @%:@define HAVE_GETMNTENT 1
25264 ac_cv_func_getmntent=no
25268 if test $ac_cv_c_compiler_gnu = yes; then
25269 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25270 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25271 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25274 ac_pattern="Autoconf.*'x'"
25275 cat >conftest.$ac_ext <<_ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h. */
25284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25285 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25286 ac_cv_prog_gcc_traditional=yes
25288 ac_cv_prog_gcc_traditional=no
25293 if test $ac_cv_prog_gcc_traditional = no; then
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 #include <termio.h>
25303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25304 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25305 ac_cv_prog_gcc_traditional=yes
25311 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25312 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25313 if test $ac_cv_prog_gcc_traditional = yes; then
25314 CC="$CC -traditional"
25318 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25319 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25320 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 rm -f conftest.sym conftest.file
25324 echo >conftest.file
25325 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25326 if test "$cross_compiling" = yes; then
25327 ac_cv_func_lstat_dereferences_slashed_symlink=no
25329 cat >conftest.$ac_ext <<_ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 $ac_includes_default
25340 /* Linux will dereference the symlink and fail.
25341 That is better in the sense that it means we will not
25342 have to compile and use the lstat wrapper. */
25343 return lstat ("conftest.sym/", &sbuf) == 0;
25348 rm -f conftest$ac_exeext
25349 if { (ac_try="$ac_link"
25350 case "(($ac_try" in
25351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352 *) ac_try_echo=$ac_try;;
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355 (eval "$ac_link") 2>&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359 { (case "(($ac_try" in
25360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361 *) ac_try_echo=$ac_try;;
25363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364 (eval "$ac_try") 2>&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); }; }; then
25368 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25370 echo "$as_me: program exited with status $ac_status" >&5
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ( exit $ac_status )
25375 ac_cv_func_lstat_dereferences_slashed_symlink=no
25377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25382 # If the `ln -s' command failed, then we probably don't even
25383 # have an lstat function.
25384 ac_cv_func_lstat_dereferences_slashed_symlink=no
25386 rm -f conftest.sym conftest.file
25389 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25390 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25392 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25394 cat >>confdefs.h <<_ACEOF
25395 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25399 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25400 case " $LIB@&t@OBJS " in
25401 *" lstat.$ac_objext "* ) ;;
25402 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25408 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25409 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25410 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25411 echo $ECHO_N "(cached) $ECHO_C" >&6
25413 if test "$cross_compiling" = yes; then
25414 ac_cv_func_lstat_empty_string_bug=yes
25416 cat >conftest.$ac_ext <<_ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25422 $ac_includes_default
25427 return lstat ("", &sbuf) == 0;
25432 rm -f conftest$ac_exeext
25433 if { (ac_try="$ac_link"
25434 case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439 (eval "$ac_link") 2>&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25443 { (case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_try") 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; }; then
25452 ac_cv_func_lstat_empty_string_bug=no
25454 echo "$as_me: program exited with status $ac_status" >&5
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 ( exit $ac_status )
25459 ac_cv_func_lstat_empty_string_bug=yes
25461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25466 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25467 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25468 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25469 case " $LIB@&t@OBJS " in
25470 *" lstat.$ac_objext "* ) ;;
25471 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25476 cat >>confdefs.h <<_ACEOF
25477 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25482 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25483 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25484 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25487 rm -f conftest.sym conftest.file
25488 echo >conftest.file
25489 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25490 if test "$cross_compiling" = yes; then
25491 ac_cv_func_lstat_dereferences_slashed_symlink=no
25493 cat >conftest.$ac_ext <<_ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25499 $ac_includes_default
25504 /* Linux will dereference the symlink and fail.
25505 That is better in the sense that it means we will not
25506 have to compile and use the lstat wrapper. */
25507 return lstat ("conftest.sym/", &sbuf) == 0;
25512 rm -f conftest$ac_exeext
25513 if { (ac_try="$ac_link"
25514 case "(($ac_try" in
25515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516 *) ac_try_echo=$ac_try;;
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519 (eval "$ac_link") 2>&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25523 { (case "(($ac_try" in
25524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525 *) ac_try_echo=$ac_try;;
25527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25528 (eval "$ac_try") 2>&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; }; then
25532 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25534 echo "$as_me: program exited with status $ac_status" >&5
25535 echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25538 ( exit $ac_status )
25539 ac_cv_func_lstat_dereferences_slashed_symlink=no
25541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25546 # If the `ln -s' command failed, then we probably don't even
25547 # have an lstat function.
25548 ac_cv_func_lstat_dereferences_slashed_symlink=no
25550 rm -f conftest.sym conftest.file
25553 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25554 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25556 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25558 cat >>confdefs.h <<_ACEOF
25559 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25563 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25564 case " $LIB@&t@OBJS " in
25565 *" lstat.$ac_objext "* ) ;;
25566 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25572 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25573 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25574 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 @%:@include <sys/types.h>
25587 return makedev(0, 0);
25592 rm -f conftest.$ac_objext conftest$ac_exeext
25593 if { (ac_try="$ac_link"
25594 case "(($ac_try" in
25595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596 *) ac_try_echo=$ac_try;;
25598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25599 (eval "$ac_link") 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest$ac_exeext &&
25609 $as_test_x conftest$ac_exeext; then
25610 ac_cv_header_sys_types_h_makedev=yes
25612 echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 ac_cv_header_sys_types_h_makedev=no
25618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25619 conftest$ac_exeext conftest.$ac_ext
25622 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25623 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25625 if test $ac_cv_header_sys_types_h_makedev = no; then
25626 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25627 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25628 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25629 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25633 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25635 # Is the header compilable?
25636 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25637 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25638 cat >conftest.$ac_ext <<_ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h. */
25644 $ac_includes_default
25645 @%:@include <sys/mkdev.h>
25647 rm -f conftest.$ac_objext
25648 if { (ac_try="$ac_compile"
25649 case "(($ac_try" in
25650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25651 *) ac_try_echo=$ac_try;;
25653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25654 (eval "$ac_compile") 2>conftest.er1
25656 grep -v '^ *+' conftest.er1 >conftest.err
25658 cat conftest.err >&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); } && {
25661 test -z "$ac_c_werror_flag" ||
25662 test ! -s conftest.err
25663 } && test -s conftest.$ac_objext; then
25664 ac_header_compiler=yes
25666 echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25669 ac_header_compiler=no
25672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25674 echo "${ECHO_T}$ac_header_compiler" >&6; }
25676 # Is the header present?
25677 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25678 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25679 cat >conftest.$ac_ext <<_ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25685 @%:@include <sys/mkdev.h>
25687 if { (ac_try="$ac_cpp conftest.$ac_ext"
25688 case "(($ac_try" in
25689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690 *) ac_try_echo=$ac_try;;
25692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25695 grep -v '^ *+' conftest.er1 >conftest.err
25697 cat conftest.err >&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } >/dev/null && {
25700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25701 test ! -s conftest.err
25703 ac_header_preproc=yes
25705 echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25708 ac_header_preproc=no
25711 rm -f conftest.err conftest.$ac_ext
25712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25713 echo "${ECHO_T}$ac_header_preproc" >&6; }
25715 # So? What about this header?
25716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25718 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25719 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25721 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25722 ac_header_preproc=yes
25725 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25726 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25727 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25728 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25729 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25730 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25731 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25732 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25733 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25734 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25735 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25736 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25738 @%:@@%:@ ------------------------------- @%:@@%:@
25739 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25740 @%:@@%:@ ------------------------------- @%:@@%:@
25742 ) | sed "s/^/$as_me: WARNING: /" >&2
25745 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25746 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25747 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25752 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25753 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25756 if test $ac_cv_header_sys_mkdev_h = yes; then
25758 cat >>confdefs.h <<\_ACEOF
25759 @%:@define MAJOR_IN_MKDEV 1
25766 if test $ac_cv_header_sys_mkdev_h = no; then
25767 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25768 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25769 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25770 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25771 echo $ECHO_N "(cached) $ECHO_C" >&6
25773 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25774 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25776 # Is the header compilable?
25777 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25778 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 $ac_includes_default
25786 @%:@include <sys/sysmacros.h>
25788 rm -f conftest.$ac_objext
25789 if { (ac_try="$ac_compile"
25790 case "(($ac_try" in
25791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792 *) ac_try_echo=$ac_try;;
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795 (eval "$ac_compile") 2>conftest.er1
25797 grep -v '^ *+' conftest.er1 >conftest.err
25799 cat conftest.err >&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } && {
25802 test -z "$ac_c_werror_flag" ||
25803 test ! -s conftest.err
25804 } && test -s conftest.$ac_objext; then
25805 ac_header_compiler=yes
25807 echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25810 ac_header_compiler=no
25813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25815 echo "${ECHO_T}$ac_header_compiler" >&6; }
25817 # Is the header present?
25818 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25819 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25826 @%:@include <sys/sysmacros.h>
25828 if { (ac_try="$ac_cpp conftest.$ac_ext"
25829 case "(($ac_try" in
25830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831 *) ac_try_echo=$ac_try;;
25833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25836 grep -v '^ *+' conftest.er1 >conftest.err
25838 cat conftest.err >&5
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); } >/dev/null && {
25841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25842 test ! -s conftest.err
25844 ac_header_preproc=yes
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25849 ac_header_preproc=no
25852 rm -f conftest.err conftest.$ac_ext
25853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25854 echo "${ECHO_T}$ac_header_preproc" >&6; }
25856 # So? What about this header?
25857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25859 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25860 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25861 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25862 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25863 ac_header_preproc=yes
25866 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25867 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25868 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25869 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25870 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25871 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25872 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25873 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25874 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25875 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25876 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25877 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25879 @%:@@%:@ ------------------------------- @%:@@%:@
25880 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25881 @%:@@%:@ ------------------------------- @%:@@%:@
25883 ) | sed "s/^/$as_me: WARNING: /" >&2
25886 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25887 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25888 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25889 echo $ECHO_N "(cached) $ECHO_C" >&6
25891 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25893 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25894 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25897 if test $ac_cv_header_sys_sysmacros_h = yes; then
25899 cat >>confdefs.h <<\_ACEOF
25900 @%:@define MAJOR_IN_SYSMACROS 1
25910 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25911 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25912 if test "${ac_cv_func_memcmp_working+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 if test "$cross_compiling" = yes; then
25916 ac_cv_func_memcmp_working=no
25918 cat >conftest.$ac_ext <<_ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h. */
25924 $ac_includes_default
25929 /* Some versions of memcmp are not 8-bit clean. */
25930 char c0 = '\100', c1 = '\200', c2 = '\201';
25931 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25934 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25935 or more and with at least one buffer not starting on a 4-byte boundary.
25936 William Lewis provided this test program. */
25941 for (i = 0; i < 4; i++)
25945 strcpy (a, "--------01111111");
25946 strcpy (b, "--------10000000");
25947 if (memcmp (a, b, 16) >= 0)
25957 rm -f conftest$ac_exeext
25958 if { (ac_try="$ac_link"
25959 case "(($ac_try" in
25960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25961 *) ac_try_echo=$ac_try;;
25963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25964 (eval "$ac_link") 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25968 { (case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_try") 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 ac_cv_func_memcmp_working=yes
25979 echo "$as_me: program exited with status $ac_status" >&5
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 ( exit $ac_status )
25984 ac_cv_func_memcmp_working=no
25986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25991 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25992 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25993 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
25994 *" memcmp.$ac_objext "* ) ;;
25995 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
26003 for ac_header in sys/select.h sys/socket.h
26005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 ac_res=`eval echo '${'$as_ac_Header'}'`
26013 { echo "$as_me:$LINENO: result: $ac_res" >&5
26014 echo "${ECHO_T}$ac_res" >&6; }
26016 # Is the header compilable?
26017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26019 cat >conftest.$ac_ext <<_ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h. */
26025 $ac_includes_default
26026 @%:@include <$ac_header>
26028 rm -f conftest.$ac_objext
26029 if { (ac_try="$ac_compile"
26030 case "(($ac_try" in
26031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26032 *) ac_try_echo=$ac_try;;
26034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26035 (eval "$ac_compile") 2>conftest.er1
26037 grep -v '^ *+' conftest.er1 >conftest.err
26039 cat conftest.err >&5
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } && {
26042 test -z "$ac_c_werror_flag" ||
26043 test ! -s conftest.err
26044 } && test -s conftest.$ac_objext; then
26045 ac_header_compiler=yes
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_header_compiler=no
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26055 echo "${ECHO_T}$ac_header_compiler" >&6; }
26057 # Is the header present?
26058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26060 cat >conftest.$ac_ext <<_ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h. */
26066 @%:@include <$ac_header>
26068 if { (ac_try="$ac_cpp conftest.$ac_ext"
26069 case "(($ac_try" in
26070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071 *) ac_try_echo=$ac_try;;
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26076 grep -v '^ *+' conftest.er1 >conftest.err
26078 cat conftest.err >&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); } >/dev/null && {
26081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26082 test ! -s conftest.err
26084 ac_header_preproc=yes
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 ac_header_preproc=no
26092 rm -f conftest.err conftest.$ac_ext
26093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26094 echo "${ECHO_T}$ac_header_preproc" >&6; }
26096 # So? What about this header?
26097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26103 ac_header_preproc=yes
26106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26119 @%:@@%:@ ------------------------------- @%:@@%:@
26120 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26121 @%:@@%:@ ------------------------------- @%:@@%:@
26123 ) | sed "s/^/$as_me: WARNING: /" >&2
26126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26129 echo $ECHO_N "(cached) $ECHO_C" >&6
26131 eval "$as_ac_Header=\$ac_header_preproc"
26133 ac_res=`eval echo '${'$as_ac_Header'}'`
26134 { echo "$as_me:$LINENO: result: $ac_res" >&5
26135 echo "${ECHO_T}$ac_res" >&6; }
26138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26139 cat >>confdefs.h <<_ACEOF
26140 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26147 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26148 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26149 if test "${ac_cv_func_select_args+set}" = set; then
26150 echo $ECHO_N "(cached) $ECHO_C" >&6
26152 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26153 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26154 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26155 cat >conftest.$ac_ext <<_ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h. */
26161 $ac_includes_default
26162 #ifdef HAVE_SYS_SELECT_H
26163 # include <sys/select.h>
26165 #ifdef HAVE_SYS_SOCKET_H
26166 # include <sys/socket.h>
26172 extern int select ($ac_arg1,
26173 $ac_arg234, $ac_arg234, $ac_arg234,
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183 *) ac_try_echo=$ac_try;;
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186 (eval "$ac_compile") 2>conftest.er1
26188 grep -v '^ *+' conftest.er1 >conftest.err
26190 cat conftest.err >&5
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } && {
26193 test -z "$ac_c_werror_flag" ||
26194 test ! -s conftest.err
26195 } && test -s conftest.$ac_objext; then
26196 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26198 echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26208 # Provide a safe default value.
26209 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26212 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26213 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26214 ac_save_IFS=$IFS; IFS=','
26215 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26219 cat >>confdefs.h <<_ACEOF
26220 @%:@define SELECT_TYPE_ARG1 $1
26224 cat >>confdefs.h <<_ACEOF
26225 @%:@define SELECT_TYPE_ARG234 ($2)
26229 cat >>confdefs.h <<_ACEOF
26230 @%:@define SELECT_TYPE_ARG5 ($3)
26235 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26236 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26237 if test "${ac_cv_type_signal+set}" = set; then
26238 echo $ECHO_N "(cached) $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 #include <sys/types.h>
26247 #include <signal.h>
26252 return *(signal (0, 0)) (0) == 1;
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264 (eval "$ac_compile") 2>conftest.er1
26266 grep -v '^ *+' conftest.er1 >conftest.err
26268 cat conftest.err >&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } && {
26271 test -z "$ac_c_werror_flag" ||
26272 test ! -s conftest.err
26273 } && test -s conftest.$ac_objext; then
26274 ac_cv_type_signal=int
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 ac_cv_type_signal=void
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26285 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26287 cat >>confdefs.h <<_ACEOF
26288 @%:@define RETSIGTYPE $ac_cv_type_signal
26292 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26293 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26294 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26295 echo $ECHO_N "(cached) $ECHO_C" >&6
26297 if test "$cross_compiling" = yes; then
26298 ac_cv_func_stat_empty_string_bug=yes
26300 cat >conftest.$ac_ext <<_ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 $ac_includes_default
26311 return stat ("", &sbuf) == 0;
26316 rm -f conftest$ac_exeext
26317 if { (ac_try="$ac_link"
26318 case "(($ac_try" in
26319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320 *) ac_try_echo=$ac_try;;
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323 (eval "$ac_link") 2>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26327 { (case "(($ac_try" in
26328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26329 *) ac_try_echo=$ac_try;;
26331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26332 (eval "$ac_try") 2>&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; }; then
26336 ac_cv_func_stat_empty_string_bug=no
26338 echo "$as_me: program exited with status $ac_status" >&5
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ( exit $ac_status )
26343 ac_cv_func_stat_empty_string_bug=yes
26345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26350 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26351 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26352 if test $ac_cv_func_stat_empty_string_bug = yes; then
26353 case " $LIB@&t@OBJS " in
26354 *" stat.$ac_objext "* ) ;;
26355 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26360 cat >>confdefs.h <<_ACEOF
26361 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26367 for ac_func in vprintf
26369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26373 echo $ECHO_N "(cached) $ECHO_C" >&6
26375 cat >conftest.$ac_ext <<_ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h. */
26381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26383 #define $ac_func innocuous_$ac_func
26385 /* System header to define __stub macros and hopefully few prototypes,
26386 which can conflict with char $ac_func (); below.
26387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26388 <limits.h> exists even on freestanding compilers. */
26391 # include <limits.h>
26393 # include <assert.h>
26398 /* Override any GCC internal prototype to avoid an error.
26399 Use char because int might match the return type of a GCC
26400 builtin and then its argument prototype would still apply. */
26405 /* The GNU C library defines this for functions which it implements
26406 to always fail with ENOSYS. Some functions are actually named
26407 something starting with __ and the normal name is an alias. */
26408 #if defined __stub_$ac_func || defined __stub___$ac_func
26415 return $ac_func ();
26420 rm -f conftest.$ac_objext conftest$ac_exeext
26421 if { (ac_try="$ac_link"
26422 case "(($ac_try" in
26423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424 *) ac_try_echo=$ac_try;;
26426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427 (eval "$ac_link") 2>conftest.er1
26429 grep -v '^ *+' conftest.er1 >conftest.err
26431 cat conftest.err >&5
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } && {
26434 test -z "$ac_c_werror_flag" ||
26435 test ! -s conftest.err
26436 } && test -s conftest$ac_exeext &&
26437 $as_test_x conftest$ac_exeext; then
26438 eval "$as_ac_var=yes"
26440 echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.$ac_ext >&5
26443 eval "$as_ac_var=no"
26446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26447 conftest$ac_exeext conftest.$ac_ext
26449 ac_res=`eval echo '${'$as_ac_var'}'`
26450 { echo "$as_me:$LINENO: result: $ac_res" >&5
26451 echo "${ECHO_T}$ac_res" >&6; }
26452 if test `eval echo '${'$as_ac_var'}'` = yes; then
26453 cat >>confdefs.h <<_ACEOF
26454 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26457 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26458 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26459 if test "${ac_cv_func__doprnt+set}" = set; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26462 cat >conftest.$ac_ext <<_ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h. */
26468 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26470 #define _doprnt innocuous__doprnt
26472 /* System header to define __stub macros and hopefully few prototypes,
26473 which can conflict with char _doprnt (); below.
26474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26475 <limits.h> exists even on freestanding compilers. */
26478 # include <limits.h>
26480 # include <assert.h>
26485 /* Override any GCC internal prototype to avoid an error.
26486 Use char because int might match the return type of a GCC
26487 builtin and then its argument prototype would still apply. */
26492 /* The GNU C library defines this for functions which it implements
26493 to always fail with ENOSYS. Some functions are actually named
26494 something starting with __ and the normal name is an alias. */
26495 #if defined __stub__doprnt || defined __stub____doprnt
26507 rm -f conftest.$ac_objext conftest$ac_exeext
26508 if { (ac_try="$ac_link"
26509 case "(($ac_try" in
26510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26511 *) ac_try_echo=$ac_try;;
26513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26514 (eval "$ac_link") 2>conftest.er1
26516 grep -v '^ *+' conftest.er1 >conftest.err
26518 cat conftest.err >&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } && {
26521 test -z "$ac_c_werror_flag" ||
26522 test ! -s conftest.err
26523 } && test -s conftest$ac_exeext &&
26524 $as_test_x conftest$ac_exeext; then
26525 ac_cv_func__doprnt=yes
26527 echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26530 ac_cv_func__doprnt=no
26533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26534 conftest$ac_exeext conftest.$ac_ext
26536 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26537 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26538 if test $ac_cv_func__doprnt = yes; then
26540 cat >>confdefs.h <<\_ACEOF
26541 @%:@define HAVE_DOPRNT 1
26579 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26580 gethostbyaddr gethostbyname gethostname getmntent \
26581 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26582 realpath rmdir select socket strcasecmp strchr strdup \
26583 strerror strrchr strtol strtoul sigprocmask
26585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 cat >conftest.$ac_ext <<_ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26599 #define $ac_func innocuous_$ac_func
26601 /* System header to define __stub macros and hopefully few prototypes,
26602 which can conflict with char $ac_func (); below.
26603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26604 <limits.h> exists even on freestanding compilers. */
26607 # include <limits.h>
26609 # include <assert.h>
26614 /* Override any GCC internal prototype to avoid an error.
26615 Use char because int might match the return type of a GCC
26616 builtin and then its argument prototype would still apply. */
26621 /* The GNU C library defines this for functions which it implements
26622 to always fail with ENOSYS. Some functions are actually named
26623 something starting with __ and the normal name is an alias. */
26624 #if defined __stub_$ac_func || defined __stub___$ac_func
26631 return $ac_func ();
26636 rm -f conftest.$ac_objext conftest$ac_exeext
26637 if { (ac_try="$ac_link"
26638 case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_link") 2>conftest.er1
26645 grep -v '^ *+' conftest.er1 >conftest.err
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } && {
26650 test -z "$ac_c_werror_flag" ||
26651 test ! -s conftest.err
26652 } && test -s conftest$ac_exeext &&
26653 $as_test_x conftest$ac_exeext; then
26654 eval "$as_ac_var=yes"
26656 echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26659 eval "$as_ac_var=no"
26662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26663 conftest$ac_exeext conftest.$ac_ext
26665 ac_res=`eval echo '${'$as_ac_var'}'`
26666 { echo "$as_me:$LINENO: result: $ac_res" >&5
26667 echo "${ECHO_T}$ac_res" >&6; }
26668 if test `eval echo '${'$as_ac_var'}'` = yes; then
26669 cat >>confdefs.h <<_ACEOF
26670 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26678 { echo "$as_me:$LINENO: checking for short" >&5
26679 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26680 if test "${ac_cv_type_short+set}" = set; then
26681 echo $ECHO_N "(cached) $ECHO_C" >&6
26683 cat >conftest.$ac_ext <<_ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h. */
26689 $ac_includes_default
26690 typedef short ac__type_new_;
26694 if ((ac__type_new_ *) 0)
26696 if (sizeof (ac__type_new_))
26702 rm -f conftest.$ac_objext
26703 if { (ac_try="$ac_compile"
26704 case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709 (eval "$ac_compile") 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && {
26716 test -z "$ac_c_werror_flag" ||
26717 test ! -s conftest.err
26718 } && test -s conftest.$ac_objext; then
26719 ac_cv_type_short=yes
26721 echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26724 ac_cv_type_short=no
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26729 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26730 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26732 # The cast to long int works around a bug in the HP C Compiler
26733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26735 # This bug is HP SR number 8606223364.
26736 { echo "$as_me:$LINENO: checking size of short" >&5
26737 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26738 if test "${ac_cv_sizeof_short+set}" = set; then
26739 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 if test "$cross_compiling" = yes; then
26742 # Depending upon the size, compute the lo and hi bounds.
26743 cat >conftest.$ac_ext <<_ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 $ac_includes_default
26750 typedef short ac__type_sizeof_;
26754 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
26755 test_array @<:@0@:>@ = 0
26761 rm -f conftest.$ac_objext
26762 if { (ac_try="$ac_compile"
26763 case "(($ac_try" in
26764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26765 *) ac_try_echo=$ac_try;;
26767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26768 (eval "$ac_compile") 2>conftest.er1
26770 grep -v '^ *+' conftest.er1 >conftest.err
26772 cat conftest.err >&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } && {
26775 test -z "$ac_c_werror_flag" ||
26776 test ! -s conftest.err
26777 } && test -s conftest.$ac_objext; then
26780 cat >conftest.$ac_ext <<_ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h. */
26786 $ac_includes_default
26787 typedef short ac__type_sizeof_;
26791 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26792 test_array @<:@0@:>@ = 0
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802 *) ac_try_echo=$ac_try;;
26804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26805 (eval "$ac_compile") 2>conftest.er1
26807 grep -v '^ *+' conftest.er1 >conftest.err
26809 cat conftest.err >&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } && {
26812 test -z "$ac_c_werror_flag" ||
26813 test ! -s conftest.err
26814 } && test -s conftest.$ac_objext; then
26815 ac_hi=$ac_mid; break
26817 echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26820 ac_lo=`expr $ac_mid + 1`
26821 if test $ac_lo -le $ac_mid; then
26825 ac_mid=`expr 2 '*' $ac_mid + 1`
26828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26831 echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26834 cat >conftest.$ac_ext <<_ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h. */
26840 $ac_includes_default
26841 typedef short ac__type_sizeof_;
26845 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
26846 test_array @<:@0@:>@ = 0
26852 rm -f conftest.$ac_objext
26853 if { (ac_try="$ac_compile"
26854 case "(($ac_try" in
26855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856 *) ac_try_echo=$ac_try;;
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859 (eval "$ac_compile") 2>conftest.er1
26861 grep -v '^ *+' conftest.er1 >conftest.err
26863 cat conftest.err >&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); } && {
26866 test -z "$ac_c_werror_flag" ||
26867 test ! -s conftest.err
26868 } && test -s conftest.$ac_objext; then
26871 cat >conftest.$ac_ext <<_ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h. */
26877 $ac_includes_default
26878 typedef short ac__type_sizeof_;
26882 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
26883 test_array @<:@0@:>@ = 0
26889 rm -f conftest.$ac_objext
26890 if { (ac_try="$ac_compile"
26891 case "(($ac_try" in
26892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893 *) ac_try_echo=$ac_try;;
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896 (eval "$ac_compile") 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } && {
26903 test -z "$ac_c_werror_flag" ||
26904 test ! -s conftest.err
26905 } && test -s conftest.$ac_objext; then
26906 ac_lo=$ac_mid; break
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26911 ac_hi=`expr '(' $ac_mid ')' - 1`
26912 if test $ac_mid -le $ac_hi; then
26916 ac_mid=`expr 2 '*' $ac_mid`
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26922 echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 # Binary search between lo and hi bounds.
26933 while test "x$ac_lo" != "x$ac_hi"; do
26934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26935 cat >conftest.$ac_ext <<_ACEOF
26938 cat confdefs.h >>conftest.$ac_ext
26939 cat >>conftest.$ac_ext <<_ACEOF
26940 /* end confdefs.h. */
26941 $ac_includes_default
26942 typedef short ac__type_sizeof_;
26946 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26947 test_array @<:@0@:>@ = 0
26953 rm -f conftest.$ac_objext
26954 if { (ac_try="$ac_compile"
26955 case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_compile") 2>conftest.er1
26962 grep -v '^ *+' conftest.er1 >conftest.err
26964 cat conftest.err >&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
26969 } && test -s conftest.$ac_objext; then
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 ac_lo=`expr '(' $ac_mid ')' + 1`
26978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981 ?*) ac_cv_sizeof_short=$ac_lo;;
26982 '') if test "$ac_cv_type_short" = yes; then
26983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26984 See \`config.log' for more details." >&5
26985 echo "$as_me: error: cannot compute sizeof (short)
26986 See \`config.log' for more details." >&2;}
26987 { (exit 77); exit 77; }; }
26989 ac_cv_sizeof_short=0
26993 cat >conftest.$ac_ext <<_ACEOF
26996 cat confdefs.h >>conftest.$ac_ext
26997 cat >>conftest.$ac_ext <<_ACEOF
26998 /* end confdefs.h. */
26999 $ac_includes_default
27000 typedef short ac__type_sizeof_;
27001 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27002 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27003 @%:@include <stdio.h>
27004 @%:@include <stdlib.h>
27009 FILE *f = fopen ("conftest.val", "w");
27012 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27014 long int i = longval ();
27015 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27017 fprintf (f, "%ld\n", i);
27021 unsigned long int i = ulongval ();
27022 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27024 fprintf (f, "%lu\n", i);
27026 return ferror (f) || fclose (f) != 0;
27032 rm -f conftest$ac_exeext
27033 if { (ac_try="$ac_link"
27034 case "(($ac_try" in
27035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036 *) ac_try_echo=$ac_try;;
27038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27039 (eval "$ac_link") 2>&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_sizeof_short=`cat conftest.val`
27054 echo "$as_me: program exited with status $ac_status" >&5
27055 echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27058 ( exit $ac_status )
27059 if test "$ac_cv_type_short" = yes; then
27060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27061 See \`config.log' for more details." >&5
27062 echo "$as_me: error: cannot compute sizeof (short)
27063 See \`config.log' for more details." >&2;}
27064 { (exit 77); exit 77; }; }
27066 ac_cv_sizeof_short=0
27069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27073 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27074 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27078 cat >>confdefs.h <<_ACEOF
27079 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27083 { echo "$as_me:$LINENO: checking for int" >&5
27084 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27085 if test "${ac_cv_type_int+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 $ac_includes_default
27095 typedef int ac__type_new_;
27099 if ((ac__type_new_ *) 0)
27101 if (sizeof (ac__type_new_))
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_compile") 2>conftest.er1
27116 grep -v '^ *+' conftest.er1 >conftest.err
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } && {
27121 test -z "$ac_c_werror_flag" ||
27122 test ! -s conftest.err
27123 } && test -s conftest.$ac_objext; then
27126 echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27135 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27137 # The cast to long int works around a bug in the HP C Compiler
27138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27140 # This bug is HP SR number 8606223364.
27141 { echo "$as_me:$LINENO: checking size of int" >&5
27142 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27143 if test "${ac_cv_sizeof_int+set}" = set; then
27144 echo $ECHO_N "(cached) $ECHO_C" >&6
27146 if test "$cross_compiling" = yes; then
27147 # Depending upon the size, compute the lo and hi bounds.
27148 cat >conftest.$ac_ext <<_ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h. */
27154 $ac_includes_default
27155 typedef int ac__type_sizeof_;
27159 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27160 test_array @<:@0@:>@ = 0
27166 rm -f conftest.$ac_objext
27167 if { (ac_try="$ac_compile"
27168 case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_compile") 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } && {
27180 test -z "$ac_c_werror_flag" ||
27181 test ! -s conftest.err
27182 } && test -s conftest.$ac_objext; then
27185 cat >conftest.$ac_ext <<_ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h. */
27191 $ac_includes_default
27192 typedef int ac__type_sizeof_;
27196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27197 test_array @<:@0@:>@ = 0
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_compile") 2>conftest.er1
27212 grep -v '^ *+' conftest.er1 >conftest.err
27214 cat conftest.err >&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } && {
27217 test -z "$ac_c_werror_flag" ||
27218 test ! -s conftest.err
27219 } && test -s conftest.$ac_objext; then
27220 ac_hi=$ac_mid; break
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27225 ac_lo=`expr $ac_mid + 1`
27226 if test $ac_lo -le $ac_mid; then
27230 ac_mid=`expr 2 '*' $ac_mid + 1`
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236 echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 $ac_includes_default
27246 typedef int ac__type_sizeof_;
27250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27251 test_array @<:@0@:>@ = 0
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264 (eval "$ac_compile") 2>conftest.er1
27266 grep -v '^ *+' conftest.er1 >conftest.err
27268 cat conftest.err >&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } && {
27271 test -z "$ac_c_werror_flag" ||
27272 test ! -s conftest.err
27273 } && test -s conftest.$ac_objext; then
27276 cat >conftest.$ac_ext <<_ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27282 $ac_includes_default
27283 typedef int ac__type_sizeof_;
27287 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27288 test_array @<:@0@:>@ = 0
27294 rm -f conftest.$ac_objext
27295 if { (ac_try="$ac_compile"
27296 case "(($ac_try" in
27297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301 (eval "$ac_compile") 2>conftest.er1
27303 grep -v '^ *+' conftest.er1 >conftest.err
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } && {
27308 test -z "$ac_c_werror_flag" ||
27309 test ! -s conftest.err
27310 } && test -s conftest.$ac_objext; then
27311 ac_lo=$ac_mid; break
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27316 ac_hi=`expr '(' $ac_mid ')' - 1`
27317 if test $ac_mid -le $ac_hi; then
27321 ac_mid=`expr 2 '*' $ac_mid`
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27327 echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337 # Binary search between lo and hi bounds.
27338 while test "x$ac_lo" != "x$ac_hi"; do
27339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27346 $ac_includes_default
27347 typedef int ac__type_sizeof_;
27351 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27352 test_array @<:@0@:>@ = 0
27358 rm -f conftest.$ac_objext
27359 if { (ac_try="$ac_compile"
27360 case "(($ac_try" in
27361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362 *) ac_try_echo=$ac_try;;
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365 (eval "$ac_compile") 2>conftest.er1
27367 grep -v '^ *+' conftest.er1 >conftest.err
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } && {
27372 test -z "$ac_c_werror_flag" ||
27373 test ! -s conftest.err
27374 } && test -s conftest.$ac_objext; then
27377 echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27380 ac_lo=`expr '(' $ac_mid ')' + 1`
27383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27386 ?*) ac_cv_sizeof_int=$ac_lo;;
27387 '') if test "$ac_cv_type_int" = yes; then
27388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27389 See \`config.log' for more details." >&5
27390 echo "$as_me: error: cannot compute sizeof (int)
27391 See \`config.log' for more details." >&2;}
27392 { (exit 77); exit 77; }; }
27398 cat >conftest.$ac_ext <<_ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h. */
27404 $ac_includes_default
27405 typedef int ac__type_sizeof_;
27406 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27407 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27408 @%:@include <stdio.h>
27409 @%:@include <stdlib.h>
27414 FILE *f = fopen ("conftest.val", "w");
27417 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27419 long int i = longval ();
27420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27422 fprintf (f, "%ld\n", i);
27426 unsigned long int i = ulongval ();
27427 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27429 fprintf (f, "%lu\n", i);
27431 return ferror (f) || fclose (f) != 0;
27437 rm -f conftest$ac_exeext
27438 if { (ac_try="$ac_link"
27439 case "(($ac_try" in
27440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441 *) ac_try_echo=$ac_try;;
27443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444 (eval "$ac_link") 2>&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457 ac_cv_sizeof_int=`cat conftest.val`
27459 echo "$as_me: program exited with status $ac_status" >&5
27460 echo "$as_me: failed program was:" >&5
27461 sed 's/^/| /' conftest.$ac_ext >&5
27463 ( exit $ac_status )
27464 if test "$ac_cv_type_int" = yes; then
27465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27466 See \`config.log' for more details." >&5
27467 echo "$as_me: error: cannot compute sizeof (int)
27468 See \`config.log' for more details." >&2;}
27469 { (exit 77); exit 77; }; }
27474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27478 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27479 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27483 cat >>confdefs.h <<_ACEOF
27484 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27488 { echo "$as_me:$LINENO: checking for long" >&5
27489 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27490 if test "${ac_cv_type_long+set}" = set; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27493 cat >conftest.$ac_ext <<_ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h. */
27499 $ac_includes_default
27500 typedef long ac__type_new_;
27504 if ((ac__type_new_ *) 0)
27506 if (sizeof (ac__type_new_))
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_compile") 2>conftest.er1
27521 grep -v '^ *+' conftest.er1 >conftest.err
27523 cat conftest.err >&5
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && {
27526 test -z "$ac_c_werror_flag" ||
27527 test ! -s conftest.err
27528 } && test -s conftest.$ac_objext; then
27529 ac_cv_type_long=yes
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27540 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27542 # The cast to long int works around a bug in the HP C Compiler
27543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27545 # This bug is HP SR number 8606223364.
27546 { echo "$as_me:$LINENO: checking size of long" >&5
27547 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27548 if test "${ac_cv_sizeof_long+set}" = set; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27551 if test "$cross_compiling" = yes; then
27552 # Depending upon the size, compute the lo and hi bounds.
27553 cat >conftest.$ac_ext <<_ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h. */
27559 $ac_includes_default
27560 typedef long ac__type_sizeof_;
27564 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27565 test_array @<:@0@:>@ = 0
27571 rm -f conftest.$ac_objext
27572 if { (ac_try="$ac_compile"
27573 case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_compile") 2>conftest.er1
27580 grep -v '^ *+' conftest.er1 >conftest.err
27582 cat conftest.err >&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); } && {
27585 test -z "$ac_c_werror_flag" ||
27586 test ! -s conftest.err
27587 } && test -s conftest.$ac_objext; then
27590 cat >conftest.$ac_ext <<_ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h. */
27596 $ac_includes_default
27597 typedef long ac__type_sizeof_;
27601 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27602 test_array @<:@0@:>@ = 0
27608 rm -f conftest.$ac_objext
27609 if { (ac_try="$ac_compile"
27610 case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_compile") 2>conftest.er1
27617 grep -v '^ *+' conftest.er1 >conftest.err
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } && {
27622 test -z "$ac_c_werror_flag" ||
27623 test ! -s conftest.err
27624 } && test -s conftest.$ac_objext; then
27625 ac_hi=$ac_mid; break
27627 echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27630 ac_lo=`expr $ac_mid + 1`
27631 if test $ac_lo -le $ac_mid; then
27635 ac_mid=`expr 2 '*' $ac_mid + 1`
27638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 cat >conftest.$ac_ext <<_ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h. */
27650 $ac_includes_default
27651 typedef long ac__type_sizeof_;
27655 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27656 test_array @<:@0@:>@ = 0
27662 rm -f conftest.$ac_objext
27663 if { (ac_try="$ac_compile"
27664 case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_compile") 2>conftest.er1
27671 grep -v '^ *+' conftest.er1 >conftest.err
27673 cat conftest.err >&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); } && {
27676 test -z "$ac_c_werror_flag" ||
27677 test ! -s conftest.err
27678 } && test -s conftest.$ac_objext; then
27681 cat >conftest.$ac_ext <<_ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 $ac_includes_default
27688 typedef long ac__type_sizeof_;
27692 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27693 test_array @<:@0@:>@ = 0
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_compile") 2>conftest.er1
27708 grep -v '^ *+' conftest.er1 >conftest.err
27710 cat conftest.err >&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } && {
27713 test -z "$ac_c_werror_flag" ||
27714 test ! -s conftest.err
27715 } && test -s conftest.$ac_objext; then
27716 ac_lo=$ac_mid; break
27718 echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27721 ac_hi=`expr '(' $ac_mid ')' - 1`
27722 if test $ac_mid -le $ac_hi; then
27726 ac_mid=`expr 2 '*' $ac_mid`
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27742 # Binary search between lo and hi bounds.
27743 while test "x$ac_lo" != "x$ac_hi"; do
27744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27751 $ac_includes_default
27752 typedef long ac__type_sizeof_;
27756 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27757 test_array @<:@0@:>@ = 0
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_compile") 2>conftest.er1
27772 grep -v '^ *+' conftest.er1 >conftest.err
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } && {
27777 test -z "$ac_c_werror_flag" ||
27778 test ! -s conftest.err
27779 } && test -s conftest.$ac_objext; then
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ac_lo=`expr '(' $ac_mid ')' + 1`
27788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27791 ?*) ac_cv_sizeof_long=$ac_lo;;
27792 '') if test "$ac_cv_type_long" = yes; then
27793 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27794 See \`config.log' for more details." >&5
27795 echo "$as_me: error: cannot compute sizeof (long)
27796 See \`config.log' for more details." >&2;}
27797 { (exit 77); exit 77; }; }
27799 ac_cv_sizeof_long=0
27803 cat >conftest.$ac_ext <<_ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h. */
27809 $ac_includes_default
27810 typedef long ac__type_sizeof_;
27811 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27812 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27813 @%:@include <stdio.h>
27814 @%:@include <stdlib.h>
27819 FILE *f = fopen ("conftest.val", "w");
27822 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27824 long int i = longval ();
27825 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27827 fprintf (f, "%ld\n", i);
27831 unsigned long int i = ulongval ();
27832 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27834 fprintf (f, "%lu\n", i);
27836 return ferror (f) || fclose (f) != 0;
27842 rm -f conftest$ac_exeext
27843 if { (ac_try="$ac_link"
27844 case "(($ac_try" in
27845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846 *) ac_try_echo=$ac_try;;
27848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27849 (eval "$ac_link") 2>&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27853 { (case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_try") 2>&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; }; then
27862 ac_cv_sizeof_long=`cat conftest.val`
27864 echo "$as_me: program exited with status $ac_status" >&5
27865 echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27868 ( exit $ac_status )
27869 if test "$ac_cv_type_long" = yes; then
27870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27871 See \`config.log' for more details." >&5
27872 echo "$as_me: error: cannot compute sizeof (long)
27873 See \`config.log' for more details." >&2;}
27874 { (exit 77); exit 77; }; }
27876 ac_cv_sizeof_long=0
27879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27883 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27884 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27888 cat >>confdefs.h <<_ACEOF
27889 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
27893 { echo "$as_me:$LINENO: checking for size_t" >&5
27894 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27895 if test "${ac_cv_type_size_t+set}" = set; then
27896 echo $ECHO_N "(cached) $ECHO_C" >&6
27898 cat >conftest.$ac_ext <<_ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h. */
27904 $ac_includes_default
27905 typedef size_t ac__type_new_;
27909 if ((ac__type_new_ *) 0)
27911 if (sizeof (ac__type_new_))
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924 (eval "$ac_compile") 2>conftest.er1
27926 grep -v '^ *+' conftest.er1 >conftest.err
27928 cat conftest.err >&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } && {
27931 test -z "$ac_c_werror_flag" ||
27932 test ! -s conftest.err
27933 } && test -s conftest.$ac_objext; then
27934 ac_cv_type_size_t=yes
27936 echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27939 ac_cv_type_size_t=no
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27944 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27945 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27947 # The cast to long int works around a bug in the HP C Compiler
27948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27950 # This bug is HP SR number 8606223364.
27951 { echo "$as_me:$LINENO: checking size of size_t" >&5
27952 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27953 if test "${ac_cv_sizeof_size_t+set}" = set; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
27956 if test "$cross_compiling" = yes; then
27957 # Depending upon the size, compute the lo and hi bounds.
27958 cat >conftest.$ac_ext <<_ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h. */
27964 $ac_includes_default
27965 typedef size_t ac__type_sizeof_;
27969 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27970 test_array @<:@0@:>@ = 0
27976 rm -f conftest.$ac_objext
27977 if { (ac_try="$ac_compile"
27978 case "(($ac_try" in
27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_compile") 2>conftest.er1
27985 grep -v '^ *+' conftest.er1 >conftest.err
27987 cat conftest.err >&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } && {
27990 test -z "$ac_c_werror_flag" ||
27991 test ! -s conftest.err
27992 } && test -s conftest.$ac_objext; then
27995 cat >conftest.$ac_ext <<_ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h. */
28001 $ac_includes_default
28002 typedef size_t ac__type_sizeof_;
28006 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28007 test_array @<:@0@:>@ = 0
28013 rm -f conftest.$ac_objext
28014 if { (ac_try="$ac_compile"
28015 case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_compile") 2>conftest.er1
28022 grep -v '^ *+' conftest.er1 >conftest.err
28024 cat conftest.err >&5
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); } && {
28027 test -z "$ac_c_werror_flag" ||
28028 test ! -s conftest.err
28029 } && test -s conftest.$ac_objext; then
28030 ac_hi=$ac_mid; break
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 ac_lo=`expr $ac_mid + 1`
28036 if test $ac_lo -le $ac_mid; then
28040 ac_mid=`expr 2 '*' $ac_mid + 1`
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046 echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28049 cat >conftest.$ac_ext <<_ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h. */
28055 $ac_includes_default
28056 typedef size_t ac__type_sizeof_;
28060 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28061 test_array @<:@0@:>@ = 0
28067 rm -f conftest.$ac_objext
28068 if { (ac_try="$ac_compile"
28069 case "(($ac_try" in
28070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071 *) ac_try_echo=$ac_try;;
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074 (eval "$ac_compile") 2>conftest.er1
28076 grep -v '^ *+' conftest.er1 >conftest.err
28078 cat conftest.err >&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } && {
28081 test -z "$ac_c_werror_flag" ||
28082 test ! -s conftest.err
28083 } && test -s conftest.$ac_objext; then
28086 cat >conftest.$ac_ext <<_ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h. */
28092 $ac_includes_default
28093 typedef size_t ac__type_sizeof_;
28097 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28098 test_array @<:@0@:>@ = 0
28104 rm -f conftest.$ac_objext
28105 if { (ac_try="$ac_compile"
28106 case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_compile") 2>conftest.er1
28113 grep -v '^ *+' conftest.er1 >conftest.err
28115 cat conftest.err >&5
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } && {
28118 test -z "$ac_c_werror_flag" ||
28119 test ! -s conftest.err
28120 } && test -s conftest.$ac_objext; then
28121 ac_lo=$ac_mid; break
28123 echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28126 ac_hi=`expr '(' $ac_mid ')' - 1`
28127 if test $ac_mid -le $ac_hi; then
28131 ac_mid=`expr 2 '*' $ac_mid`
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147 # Binary search between lo and hi bounds.
28148 while test "x$ac_lo" != "x$ac_hi"; do
28149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28150 cat >conftest.$ac_ext <<_ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h. */
28156 $ac_includes_default
28157 typedef size_t ac__type_sizeof_;
28161 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28162 test_array @<:@0@:>@ = 0
28168 rm -f conftest.$ac_objext
28169 if { (ac_try="$ac_compile"
28170 case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_compile") 2>conftest.er1
28177 grep -v '^ *+' conftest.er1 >conftest.err
28179 cat conftest.err >&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } && {
28182 test -z "$ac_c_werror_flag" ||
28183 test ! -s conftest.err
28184 } && test -s conftest.$ac_objext; then
28187 echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28190 ac_lo=`expr '(' $ac_mid ')' + 1`
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28196 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28197 '') if test "$ac_cv_type_size_t" = yes; then
28198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28199 See \`config.log' for more details." >&5
28200 echo "$as_me: error: cannot compute sizeof (size_t)
28201 See \`config.log' for more details." >&2;}
28202 { (exit 77); exit 77; }; }
28204 ac_cv_sizeof_size_t=0
28208 cat >conftest.$ac_ext <<_ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h. */
28214 $ac_includes_default
28215 typedef size_t ac__type_sizeof_;
28216 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28217 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28218 @%:@include <stdio.h>
28219 @%:@include <stdlib.h>
28224 FILE *f = fopen ("conftest.val", "w");
28227 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28229 long int i = longval ();
28230 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28232 fprintf (f, "%ld\n", i);
28236 unsigned long int i = ulongval ();
28237 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28239 fprintf (f, "%lu\n", i);
28241 return ferror (f) || fclose (f) != 0;
28247 rm -f conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_link") 2>&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28258 { (case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_try") 2>&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; }; then
28267 ac_cv_sizeof_size_t=`cat conftest.val`
28269 echo "$as_me: program exited with status $ac_status" >&5
28270 echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28273 ( exit $ac_status )
28274 if test "$ac_cv_type_size_t" = yes; then
28275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28276 See \`config.log' for more details." >&5
28277 echo "$as_me: error: cannot compute sizeof (size_t)
28278 See \`config.log' for more details." >&2;}
28279 { (exit 77); exit 77; }; }
28281 ac_cv_sizeof_size_t=0
28284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28288 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28289 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28293 cat >>confdefs.h <<_ACEOF
28294 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28298 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28299 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28300 if test "${ac_cv_type_socklen_t+set}" = set; then
28301 echo $ECHO_N "(cached) $ECHO_C" >&6
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28309 $ac_includes_default
28310 typedef socklen_t ac__type_new_;
28314 if ((ac__type_new_ *) 0)
28316 if (sizeof (ac__type_new_))
28322 rm -f conftest.$ac_objext
28323 if { (ac_try="$ac_compile"
28324 case "(($ac_try" in
28325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326 *) ac_try_echo=$ac_try;;
28328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329 (eval "$ac_compile") 2>conftest.er1
28331 grep -v '^ *+' conftest.er1 >conftest.err
28333 cat conftest.err >&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } && {
28336 test -z "$ac_c_werror_flag" ||
28337 test ! -s conftest.err
28338 } && test -s conftest.$ac_objext; then
28339 ac_cv_type_socklen_t=yes
28341 echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28344 ac_cv_type_socklen_t=no
28347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28349 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28350 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28352 # The cast to long int works around a bug in the HP C Compiler
28353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28355 # This bug is HP SR number 8606223364.
28356 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28357 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28358 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28359 echo $ECHO_N "(cached) $ECHO_C" >&6
28361 if test "$cross_compiling" = yes; then
28362 # Depending upon the size, compute the lo and hi bounds.
28363 cat >conftest.$ac_ext <<_ACEOF
28366 cat confdefs.h >>conftest.$ac_ext
28367 cat >>conftest.$ac_ext <<_ACEOF
28368 /* end confdefs.h. */
28369 $ac_includes_default
28370 typedef socklen_t ac__type_sizeof_;
28374 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28375 test_array @<:@0@:>@ = 0
28381 rm -f conftest.$ac_objext
28382 if { (ac_try="$ac_compile"
28383 case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_compile") 2>conftest.er1
28390 grep -v '^ *+' conftest.er1 >conftest.err
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } && {
28395 test -z "$ac_c_werror_flag" ||
28396 test ! -s conftest.err
28397 } && test -s conftest.$ac_objext; then
28400 cat >conftest.$ac_ext <<_ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h. */
28406 $ac_includes_default
28407 typedef socklen_t ac__type_sizeof_;
28411 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28412 test_array @<:@0@:>@ = 0
28418 rm -f conftest.$ac_objext
28419 if { (ac_try="$ac_compile"
28420 case "(($ac_try" in
28421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422 *) ac_try_echo=$ac_try;;
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425 (eval "$ac_compile") 2>conftest.er1
28427 grep -v '^ *+' conftest.er1 >conftest.err
28429 cat conftest.err >&5
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); } && {
28432 test -z "$ac_c_werror_flag" ||
28433 test ! -s conftest.err
28434 } && test -s conftest.$ac_objext; then
28435 ac_hi=$ac_mid; break
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28440 ac_lo=`expr $ac_mid + 1`
28441 if test $ac_lo -le $ac_mid; then
28445 ac_mid=`expr 2 '*' $ac_mid + 1`
28448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28451 echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28454 cat >conftest.$ac_ext <<_ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h. */
28460 $ac_includes_default
28461 typedef socklen_t ac__type_sizeof_;
28465 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28466 test_array @<:@0@:>@ = 0
28472 rm -f conftest.$ac_objext
28473 if { (ac_try="$ac_compile"
28474 case "(($ac_try" in
28475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28476 *) ac_try_echo=$ac_try;;
28478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28479 (eval "$ac_compile") 2>conftest.er1
28481 grep -v '^ *+' conftest.er1 >conftest.err
28483 cat conftest.err >&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); } && {
28486 test -z "$ac_c_werror_flag" ||
28487 test ! -s conftest.err
28488 } && test -s conftest.$ac_objext; then
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28497 $ac_includes_default
28498 typedef socklen_t ac__type_sizeof_;
28502 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28503 test_array @<:@0@:>@ = 0
28509 rm -f conftest.$ac_objext
28510 if { (ac_try="$ac_compile"
28511 case "(($ac_try" in
28512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513 *) ac_try_echo=$ac_try;;
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516 (eval "$ac_compile") 2>conftest.er1
28518 grep -v '^ *+' conftest.er1 >conftest.err
28520 cat conftest.err >&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } && {
28523 test -z "$ac_c_werror_flag" ||
28524 test ! -s conftest.err
28525 } && test -s conftest.$ac_objext; then
28526 ac_lo=$ac_mid; break
28528 echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28531 ac_hi=`expr '(' $ac_mid ')' - 1`
28532 if test $ac_mid -le $ac_hi; then
28536 ac_mid=`expr 2 '*' $ac_mid`
28539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28542 echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552 # Binary search between lo and hi bounds.
28553 while test "x$ac_lo" != "x$ac_hi"; do
28554 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28555 cat >conftest.$ac_ext <<_ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28561 $ac_includes_default
28562 typedef socklen_t ac__type_sizeof_;
28566 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28567 test_array @<:@0@:>@ = 0
28573 rm -f conftest.$ac_objext
28574 if { (ac_try="$ac_compile"
28575 case "(($ac_try" in
28576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28577 *) ac_try_echo=$ac_try;;
28579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28580 (eval "$ac_compile") 2>conftest.er1
28582 grep -v '^ *+' conftest.er1 >conftest.err
28584 cat conftest.err >&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); } && {
28587 test -z "$ac_c_werror_flag" ||
28588 test ! -s conftest.err
28589 } && test -s conftest.$ac_objext; then
28592 echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28595 ac_lo=`expr '(' $ac_mid ')' + 1`
28598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28601 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28602 '') if test "$ac_cv_type_socklen_t" = yes; then
28603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28604 See \`config.log' for more details." >&5
28605 echo "$as_me: error: cannot compute sizeof (socklen_t)
28606 See \`config.log' for more details." >&2;}
28607 { (exit 77); exit 77; }; }
28609 ac_cv_sizeof_socklen_t=0
28613 cat >conftest.$ac_ext <<_ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h. */
28619 $ac_includes_default
28620 typedef socklen_t ac__type_sizeof_;
28621 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28622 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28623 @%:@include <stdio.h>
28624 @%:@include <stdlib.h>
28629 FILE *f = fopen ("conftest.val", "w");
28632 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28634 long int i = longval ();
28635 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28637 fprintf (f, "%ld\n", i);
28641 unsigned long int i = ulongval ();
28642 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28644 fprintf (f, "%lu\n", i);
28646 return ferror (f) || fclose (f) != 0;
28652 rm -f conftest$ac_exeext
28653 if { (ac_try="$ac_link"
28654 case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659 (eval "$ac_link") 2>&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28663 { (case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_try") 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; }; then
28672 ac_cv_sizeof_socklen_t=`cat conftest.val`
28674 echo "$as_me: program exited with status $ac_status" >&5
28675 echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28678 ( exit $ac_status )
28679 if test "$ac_cv_type_socklen_t" = yes; then
28680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28681 See \`config.log' for more details." >&5
28682 echo "$as_me: error: cannot compute sizeof (socklen_t)
28683 See \`config.log' for more details." >&2;}
28684 { (exit 77); exit 77; }; }
28686 ac_cv_sizeof_socklen_t=0
28689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28693 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28694 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28698 cat >>confdefs.h <<_ACEOF
28699 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28706 cat >>confdefs.h <<_ACEOF
28707 @%:@define NFS_STATEDIR "$statedir"
28711 if test "x$cross_compiling" = "xno"; then
28712 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28713 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28714 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28715 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28717 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28718 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28719 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28720 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28735 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28740 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28742 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28744 AM_CFLAGS="$my_am_cflags"
28747 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28748 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28751 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28753 cat >confcache <<\_ACEOF
28754 # This file is a shell script that caches the results of configure
28755 # tests run on this system so they can be shared between configure
28756 # scripts and configure runs, see configure's option --config-cache.
28757 # It is not useful on other systems. If it contains results you don't
28758 # want to keep, you may remove or edit it.
28760 # config.status only pays attention to the cache file if you give it
28761 # the --recheck option to rerun configure.
28763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28765 # following values.
28769 # The following way of writing the cache mishandles newlines in values,
28770 # but we know of no workaround that is simple, portable, and efficient.
28771 # So, we kill variables containing newlines.
28772 # Ultrix sh set writes to stderr and can't be redirected directly,
28773 # and sets the high bit in the cache file unless we assign to the vars.
28775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28776 eval ac_val=\$$ac_var
28780 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28781 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28784 _ | IFS | as_nl) ;; #(
28785 *) $as_unset $ac_var ;;
28791 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28792 *${as_nl}ac_space=\ *)
28793 # `set' does not quote correctly, so add quotes (double-quote
28794 # substitution turns \\\\ into \\, and sed turns \\ into \).
28797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28800 # `set' quotes correctly as required by POSIX, so do not add quotes.
28801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28812 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28814 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28815 if test -w "$cache_file"; then
28816 test "x$cache_file" != "x/dev/null" &&
28817 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28818 echo "$as_me: updating cache $cache_file" >&6;}
28819 cat confcache >$cache_file
28821 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28822 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28828 # Let make expand exec_prefix.
28829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28831 DEFS=-DHAVE_CONFIG_H
28835 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
28836 # 1. Remove the extension, and $U if already installed.
28837 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28838 ac_i=`echo "$ac_i" | sed "$ac_script"`
28839 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28840 # will be set to the directory where LIBOBJS objects are built.
28841 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28842 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28844 LIB@&t@OBJS=$ac_libobjs
28846 LTLIBOBJS=$ac_ltlibobjs
28849 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28850 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28851 Usually this means the macro was only invoked conditionally." >&5
28852 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&2;}
28854 { (exit 1); exit 1; }; }
28856 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28857 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28858 Usually this means the macro was only invoked conditionally." >&5
28859 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&2;}
28861 { (exit 1); exit 1; }; }
28863 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28864 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28865 Usually this means the macro was only invoked conditionally." >&5
28866 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&2;}
28868 { (exit 1); exit 1; }; }
28870 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28871 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28872 Usually this means the macro was only invoked conditionally." >&5
28873 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&2;}
28875 { (exit 1); exit 1; }; }
28877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28878 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28879 Usually this means the macro was only invoked conditionally." >&5
28880 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28881 Usually this means the macro was only invoked conditionally." >&2;}
28882 { (exit 1); exit 1; }; }
28884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28885 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28886 Usually this means the macro was only invoked conditionally." >&5
28887 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28888 Usually this means the macro was only invoked conditionally." >&2;}
28889 { (exit 1); exit 1; }; }
28891 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28892 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28893 Usually this means the macro was only invoked conditionally." >&5
28894 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28895 Usually this means the macro was only invoked conditionally." >&2;}
28896 { (exit 1); exit 1; }; }
28898 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28899 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28900 Usually this means the macro was only invoked conditionally." >&5
28901 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28902 Usually this means the macro was only invoked conditionally." >&2;}
28903 { (exit 1); exit 1; }; }
28906 : ${CONFIG_STATUS=./config.status}
28907 ac_clean_files_save=$ac_clean_files
28908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28911 cat >$CONFIG_STATUS <<_ACEOF
28913 # Generated by $as_me.
28914 # Run this file to recreate the current configuration.
28915 # Compiler output produced by configure, useful for debugging
28916 # configure, is in config.log if it exists.
28919 ac_cs_recheck=false
28921 SHELL=\${CONFIG_SHELL-$SHELL}
28924 cat >>$CONFIG_STATUS <<\_ACEOF
28925 ## --------------------- ##
28926 ## M4sh Initialization. ##
28927 ## --------------------- ##
28929 # Be more Bourne compatible
28930 DUALCASE=1; export DUALCASE # for MKS sh
28931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28934 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28935 # is contrary to our usage. Disable this feature.
28936 alias -g '${1+"$@"}'='"$@"'
28937 setopt NO_GLOB_SUBST
28939 case `(set -o) 2>/dev/null` in
28940 *posix*) set -o posix ;;
28949 # Avoid depending upon Character Ranges.
28950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28953 as_cr_digits='0123456789'
28954 as_cr_alnum=$as_cr_Letters$as_cr_digits
28956 # The user is always right.
28957 if test "${PATH_SEPARATOR+set}" != set; then
28958 echo "#! /bin/sh" >conf$$.sh
28959 echo "exit 0" >>conf$$.sh
28961 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28969 # Support unset when possible.
28970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28978 # We need space, tab and new line, in precisely that order. Quoting is
28979 # there to prevent editors from complaining about space-tab.
28980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28981 # splitting by setting IFS to empty value.)
28986 # Find who we are. Look in the path if we contain no directory separator.
28988 *[\\/]* ) as_myself=$0 ;;
28989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28990 for as_dir in $PATH
28993 test -z "$as_dir" && as_dir=.
28994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29000 # We did not find ourselves, most probably we were run as `sh COMMAND'
29001 # in which case we are not to be found in the path.
29002 if test "x$as_myself" = x; then
29005 if test ! -f "$as_myself"; then
29006 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29007 { (exit 1); exit 1; }
29010 # Work around bugs in pre-3.0 UWIN ksh.
29011 for as_var in ENV MAIL MAILPATH
29012 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29020 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29021 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29022 LC_TELEPHONE LC_TIME
29024 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29025 eval $as_var=C; export $as_var
29027 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29031 # Required to use basename.
29032 if expr a : '\(a\)' >/dev/null 2>&1 &&
29033 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29039 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29040 as_basename=basename
29046 # Name of the executable.
29047 as_me=`$as_basename -- "$0" ||
29048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29049 X"$0" : 'X\(//\)$' \| \
29050 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29052 sed '/^.*\/\([^/][^/]*\)\/*$/{
29071 as_lineno_1=$LINENO
29072 as_lineno_2=$LINENO
29073 test "x$as_lineno_1" != "x$as_lineno_2" &&
29074 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29076 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29077 # uniformly replaced by the line number. The first 'sed' inserts a
29078 # line-number line after each line using $LINENO; the second 'sed'
29079 # does the real work. The second script uses 'N' to pair each
29080 # line-number line with the line containing $LINENO, and appends
29081 # trailing '-' during substitution so that $LINENO is not a special
29082 # case at line end.
29083 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29084 # scripts with optimization help from Paolo Bonzini. Blame Lee
29085 # E. McMahon (1931-1989) for sed's syntax. :-)
29097 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29100 ' >$as_me.lineno &&
29101 chmod +x "$as_me.lineno" ||
29102 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29103 { (exit 1); exit 1; }; }
29105 # Don't try to exec as it changes $[0], causing all sort of problems
29106 # (the dirname of $[0] is not the place where we might find the
29107 # original and so on. Autoconf is especially sensitive to this).
29108 . "./$as_me.lineno"
29109 # Exit status is that of the last command.
29114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29120 ECHO_C= ECHO_N= ECHO_T=
29121 case `echo -n x` in
29123 case `echo 'x\c'` in
29124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29131 if expr a : '\(a\)' >/dev/null 2>&1 &&
29132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29138 rm -f conf$$ conf$$.exe conf$$.file
29139 if test -d conf$$.dir; then
29140 rm -f conf$$.dir/conf$$.file
29146 if ln -s conf$$.file conf$$ 2>/dev/null; then
29148 # ... but there are two gotchas:
29149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29151 # In both cases, we have to default to `cp -p'.
29152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29154 elif ln conf$$.file conf$$ 2>/dev/null; then
29159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29160 rmdir conf$$.dir 2>/dev/null
29162 if mkdir -p . 2>/dev/null; then
29165 test -d ./-p && rmdir ./-p
29169 if test -x / >/dev/null 2>&1; then
29170 as_test_x='test -x'
29172 if ls -dL / >/dev/null 2>&1; then
29179 if test -d "$1"; then
29185 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29186 ???[sx]*):;;*)false;;esac;fi
29190 as_executable_p=$as_test_x
29192 # Sed expression to map a string onto a valid CPP name.
29193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29195 # Sed expression to map a string onto a valid variable name.
29196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29201 # Save the log message, to keep $[0] and so on meaningful, and to
29202 # report actual input values of CONFIG_FILES etc. instead of their
29203 # values after options handling.
29205 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29206 generated by GNU Autoconf 2.61. Invocation command line was
29208 CONFIG_FILES = $CONFIG_FILES
29209 CONFIG_HEADERS = $CONFIG_HEADERS
29210 CONFIG_LINKS = $CONFIG_LINKS
29211 CONFIG_COMMANDS = $CONFIG_COMMANDS
29214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29219 cat >>$CONFIG_STATUS <<_ACEOF
29220 # Files that config.status was made for.
29221 config_files="$ac_config_files"
29222 config_headers="$ac_config_headers"
29223 config_commands="$ac_config_commands"
29227 cat >>$CONFIG_STATUS <<\_ACEOF
29229 \`$as_me' instantiates files from templates according to the
29230 current configuration.
29232 Usage: $0 [OPTIONS] [FILE]...
29234 -h, --help print this help, then exit
29235 -V, --version print version number and configuration settings, then exit
29236 -q, --quiet do not print progress messages
29237 -d, --debug don't remove temporary files
29238 --recheck update $as_me by reconfiguring in the same conditions
29239 --file=FILE[:TEMPLATE]
29240 instantiate the configuration file FILE
29241 --header=FILE[:TEMPLATE]
29242 instantiate the configuration header FILE
29244 Configuration files:
29247 Configuration headers:
29250 Configuration commands:
29253 Report bugs to <bug-autoconf@gnu.org>."
29256 cat >>$CONFIG_STATUS <<_ACEOF
29258 linux nfs-utils config.status 1.0.10
29259 configured by $0, generated by GNU Autoconf 2.61,
29260 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29262 Copyright (C) 2006 Free Software Foundation, Inc.
29263 This config.status script is free software; the Free Software Foundation
29264 gives unlimited permission to copy, distribute and modify it."
29271 cat >>$CONFIG_STATUS <<\_ACEOF
29272 # If no file are specified by the user, then we need to provide default
29273 # value. By we need to know if files were specified by the user.
29279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29291 # Handling of the options.
29292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29295 echo "$ac_cs_version"; exit ;;
29296 --debug | --debu | --deb | --de | --d | -d )
29298 --file | --fil | --fi | --f )
29300 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29301 ac_need_defaults=false;;
29302 --header | --heade | --head | --hea )
29304 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29305 ac_need_defaults=false;;
29307 # Conflict between --help and --header
29308 { echo "$as_me: error: ambiguous option: $1
29309 Try \`$0 --help' for more information." >&2
29310 { (exit 1); exit 1; }; };;
29311 --help | --hel | -h )
29312 echo "$ac_cs_usage"; exit ;;
29313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29317 # This is an error.
29318 -*) { echo "$as_me: error: unrecognized option: $1
29319 Try \`$0 --help' for more information." >&2
29320 { (exit 1); exit 1; }; } ;;
29322 *) ac_config_targets="$ac_config_targets $1"
29323 ac_need_defaults=false ;;
29329 ac_configure_extra_args=
29331 if $ac_cs_silent; then
29333 ac_configure_extra_args="$ac_configure_extra_args --silent"
29337 cat >>$CONFIG_STATUS <<_ACEOF
29338 if \$ac_cs_recheck; then
29339 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29340 CONFIG_SHELL=$SHELL
29341 export CONFIG_SHELL
29342 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29346 cat >>$CONFIG_STATUS <<\_ACEOF
29350 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29351 @%:@@%:@ Running $as_me. @%:@@%:@
29357 cat >>$CONFIG_STATUS <<_ACEOF
29361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29365 cat >>$CONFIG_STATUS <<\_ACEOF
29367 # Handling of arguments.
29368 for ac_config_target in $ac_config_targets
29370 case $ac_config_target in
29371 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29372 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29373 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29374 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29375 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29376 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29377 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29378 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29379 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29380 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29381 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29382 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29383 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29384 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29385 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29386 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29387 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29388 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29389 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29390 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29391 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29392 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29393 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29394 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29395 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29396 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29397 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29398 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29399 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29400 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29401 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29402 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29404 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29406 { (exit 1); exit 1; }; };;
29411 # If the user did not use the arguments to specify the items to instantiate,
29412 # then the envvar interface is used. Set only those that are not.
29413 # We use the long form for the default assignment because of an extremely
29414 # bizarre bug on SunOS 4.1.3.
29415 if $ac_need_defaults; then
29416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29417 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29418 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29421 # Have a temporary directory for convenience. Make it in the build tree
29422 # simply because there is no reason against having it here, and in addition,
29423 # creating and moving files from /tmp can sometimes cause problems.
29424 # Hook for its removal unless debugging.
29425 # Note that there is a small window in which the directory will not be cleaned:
29426 # after its creation but before its name has been assigned to `$tmp'.
29430 trap 'exit_status=$?
29431 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29433 trap '{ (exit 1); exit 1; }' 1 2 13 15
29435 # Create a (secure) tmp directory for tmp files.
29438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29439 test -n "$tmp" && test -d "$tmp"
29442 tmp=./conf$$-$RANDOM
29443 (umask 077 && mkdir "$tmp")
29446 echo "$me: cannot create a temporary directory in ." >&2
29447 { (exit 1); exit 1; }
29451 # Set up the sed scripts for CONFIG_FILES section.
29454 # No need to generate the scripts if there are no CONFIG_FILES.
29455 # This happens for instance when ./config.status config.h
29456 if test -n "$CONFIG_FILES"; then
29463 for ac_last_try in false false false false false :; do
29464 cat >conf$$subs.sed <<_ACEOF
29465 SHELL!$SHELL$ac_delim
29466 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29467 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29468 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29469 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29470 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29471 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29472 exec_prefix!$exec_prefix$ac_delim
29473 prefix!$prefix$ac_delim
29474 program_transform_name!$program_transform_name$ac_delim
29475 bindir!$bindir$ac_delim
29476 sbindir!$sbindir$ac_delim
29477 libexecdir!$libexecdir$ac_delim
29478 datarootdir!$datarootdir$ac_delim
29479 datadir!$datadir$ac_delim
29480 sysconfdir!$sysconfdir$ac_delim
29481 sharedstatedir!$sharedstatedir$ac_delim
29482 localstatedir!$localstatedir$ac_delim
29483 includedir!$includedir$ac_delim
29484 oldincludedir!$oldincludedir$ac_delim
29485 docdir!$docdir$ac_delim
29486 infodir!$infodir$ac_delim
29487 htmldir!$htmldir$ac_delim
29488 dvidir!$dvidir$ac_delim
29489 pdfdir!$pdfdir$ac_delim
29490 psdir!$psdir$ac_delim
29491 libdir!$libdir$ac_delim
29492 localedir!$localedir$ac_delim
29493 mandir!$mandir$ac_delim
29494 DEFS!$DEFS$ac_delim
29495 ECHO_C!$ECHO_C$ac_delim
29496 ECHO_N!$ECHO_N$ac_delim
29497 ECHO_T!$ECHO_T$ac_delim
29498 LIBS!$LIBS$ac_delim
29499 build_alias!$build_alias$ac_delim
29500 host_alias!$host_alias$ac_delim
29501 target_alias!$target_alias$ac_delim
29502 build!$build$ac_delim
29503 build_cpu!$build_cpu$ac_delim
29504 build_vendor!$build_vendor$ac_delim
29505 build_os!$build_os$ac_delim
29506 host!$host$ac_delim
29507 host_cpu!$host_cpu$ac_delim
29508 host_vendor!$host_vendor$ac_delim
29509 host_os!$host_os$ac_delim
29510 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29511 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29512 INSTALL_DATA!$INSTALL_DATA$ac_delim
29513 CYGPATH_W!$CYGPATH_W$ac_delim
29514 PACKAGE!$PACKAGE$ac_delim
29515 VERSION!$VERSION$ac_delim
29516 ACLOCAL!$ACLOCAL$ac_delim
29517 AUTOCONF!$AUTOCONF$ac_delim
29518 AUTOMAKE!$AUTOMAKE$ac_delim
29519 AUTOHEADER!$AUTOHEADER$ac_delim
29520 MAKEINFO!$MAKEINFO$ac_delim
29521 install_sh!$install_sh$ac_delim
29522 STRIP!$STRIP$ac_delim
29523 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29524 mkdir_p!$mkdir_p$ac_delim
29526 SET_MAKE!$SET_MAKE$ac_delim
29527 am__leading_dot!$am__leading_dot$ac_delim
29528 AMTAR!$AMTAR$ac_delim
29529 am__tar!$am__tar$ac_delim
29530 am__untar!$am__untar$ac_delim
29531 RELEASE!$RELEASE$ac_delim
29532 statedir!$statedir$ac_delim
29533 statduser!$statduser$ac_delim
29534 enable_nfsv3!$enable_nfsv3$ac_delim
29535 IDMAPD!$IDMAPD$ac_delim
29536 enable_nfsv4!$enable_nfsv4$ac_delim
29537 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29538 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29539 GSSD!$GSSD$ac_delim
29540 SVCGSSD!$SVCGSSD$ac_delim
29541 enable_gss!$enable_gss$ac_delim
29542 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29543 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29544 kprefix!$kprefix$ac_delim
29545 secure_statd!$secure_statd$ac_delim
29546 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29547 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29548 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29549 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29551 CFLAGS!$CFLAGS$ac_delim
29552 LDFLAGS!$LDFLAGS$ac_delim
29553 CPPFLAGS!$CPPFLAGS$ac_delim
29554 ac_ct_CC!$ac_ct_CC$ac_delim
29555 EXEEXT!$EXEEXT$ac_delim
29556 OBJEXT!$OBJEXT$ac_delim
29557 DEPDIR!$DEPDIR$ac_delim
29558 am__include!$am__include$ac_delim
29559 am__quote!$am__quote$ac_delim
29560 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29561 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29564 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29566 elif $ac_last_try; then
29567 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29568 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29569 { (exit 1); exit 1; }; }
29571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29575 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29576 if test -n "$ac_eof"; then
29577 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29578 ac_eof=`expr $ac_eof + 1`
29581 cat >>$CONFIG_STATUS <<_ACEOF
29582 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29586 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29587 s/^/s,@/; s/!/@,|#_!!_#|/
29590 s/'"$ac_delim"'$/,g/; t
29592 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29593 ' >>$CONFIG_STATUS <conf$$subs.sed
29594 rm -f conf$$subs.sed
29595 cat >>$CONFIG_STATUS <<_ACEOF
29601 for ac_last_try in false false false false false :; do
29602 cat >conf$$subs.sed <<_ACEOF
29603 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29604 CCDEPMODE!$CCDEPMODE$ac_delim
29605 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29606 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29607 LIBWRAP!$LIBWRAP$ac_delim
29608 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29609 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29611 CXXFLAGS!$CXXFLAGS$ac_delim
29612 ac_ct_CXX!$ac_ct_CXX$ac_delim
29613 CXXDEPMODE!$CXXDEPMODE$ac_delim
29614 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29615 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29617 LN_S!$LN_S$ac_delim
29618 GREP!$GREP$ac_delim
29619 EGREP!$EGREP$ac_delim
29620 ECHO!$ECHO$ac_delim
29622 RANLIB!$RANLIB$ac_delim
29623 CXXCPP!$CXXCPP$ac_delim
29625 FFLAGS!$FFLAGS$ac_delim
29626 ac_ct_F77!$ac_ct_F77$ac_delim
29627 LIBTOOL!$LIBTOOL$ac_delim
29628 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29630 LIBNSL!$LIBNSL$ac_delim
29631 PKG_CONFIG!$PKG_CONFIG$ac_delim
29632 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29633 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29634 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29635 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29636 LIBSOCKET!$LIBSOCKET$ac_delim
29637 LIBCRYPT!$LIBCRYPT$ac_delim
29638 LIBBSD!$LIBBSD$ac_delim
29639 KRBDIR!$KRBDIR$ac_delim
29640 KRBLIBS!$KRBLIBS$ac_delim
29641 KRBCFLAGS!$KRBCFLAGS$ac_delim
29642 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29643 K5VERS!$K5VERS$ac_delim
29644 ALLOCA!$ALLOCA$ac_delim
29645 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29646 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29647 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29648 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29649 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29650 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29651 AM_CFLAGS!$AM_CFLAGS$ac_delim
29652 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29653 LTLIBOBJS!$LTLIBOBJS$ac_delim
29656 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
29658 elif $ac_last_try; then
29659 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29660 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29661 { (exit 1); exit 1; }; }
29663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29667 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29668 if test -n "$ac_eof"; then
29669 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29670 ac_eof=`expr $ac_eof + 1`
29673 cat >>$CONFIG_STATUS <<_ACEOF
29674 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29678 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29679 s/^/s,@/; s/!/@,|#_!!_#|/
29682 s/'"$ac_delim"'$/,g/; t
29684 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29685 ' >>$CONFIG_STATUS <conf$$subs.sed
29686 rm -f conf$$subs.sed
29687 cat >>$CONFIG_STATUS <<_ACEOF
29694 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29695 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29696 # trailing colons and then remove the whole line if VPATH becomes empty
29697 # (actually we leave an empty line to preserve line numbers).
29698 if test "x$srcdir" = x.; then
29699 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29700 s/:*\$(srcdir):*/:/
29701 s/:*\${srcdir}:*/:/
29703 s/^\([^=]*=[ ]*\):*/\1/
29709 cat >>$CONFIG_STATUS <<\_ACEOF
29710 fi # test -n "$CONFIG_FILES"
29713 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29716 :[FHLC]) ac_mode=$ac_tag; continue;;
29718 case $ac_mode$ac_tag in
29720 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29721 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29722 { (exit 1); exit 1; }; };;
29723 :[FH]-) ac_tag=-:-;;
29724 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29741 -) ac_f="$tmp/stdin";;
29742 *) # Look for the file first in the build tree, then in the source tree
29743 # (if the path is not absolute). The absolute path cannot be DOS-style,
29744 # because $ac_f cannot contain `:'.
29748 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29750 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29751 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29752 { (exit 1); exit 1; }; };;
29754 ac_file_inputs="$ac_file_inputs $ac_f"
29757 # Let's still pretend it is `configure' which instantiates (i.e., don't
29758 # use $as_me), people would be surprised to read:
29759 # /* config.h. Generated by config.status. */
29760 configure_input="Generated from "`IFS=:
29761 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29762 if test x"$ac_file" != x-; then
29763 configure_input="$ac_file. $configure_input"
29764 { echo "$as_me:$LINENO: creating $ac_file" >&5
29765 echo "$as_me: creating $ac_file" >&6;}
29769 *:-:* | *:-) cat >"$tmp/stdin";;
29774 ac_dir=`$as_dirname -- "$ac_file" ||
29775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29776 X"$ac_file" : 'X\(//\)[^/]' \| \
29777 X"$ac_file" : 'X\(//\)$' \| \
29778 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29784 /^X\(\/\/\)[^/].*/{
29799 -*) as_dir=./$as_dir;;
29801 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29805 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29806 *) as_qdir=$as_dir;;
29808 as_dirs="'$as_qdir' $as_dirs"
29809 as_dir=`$as_dirname -- "$as_dir" ||
29810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29811 X"$as_dir" : 'X\(//\)[^/]' \| \
29812 X"$as_dir" : 'X\(//\)$' \| \
29813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29819 /^X\(\/\/\)[^/].*/{
29832 test -d "$as_dir" && break
29834 test -z "$as_dirs" || eval "mkdir $as_dirs"
29835 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29836 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29837 { (exit 1); exit 1; }; }; }
29841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29843 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29844 # A ".." for each directory in $ac_dir_suffix.
29845 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29846 case $ac_top_builddir_sub in
29847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29851 ac_abs_top_builddir=$ac_pwd
29852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29853 # for backward compatibility:
29854 ac_top_builddir=$ac_top_build_prefix
29857 .) # We are building in place.
29859 ac_top_srcdir=$ac_top_builddir_sub
29860 ac_abs_top_srcdir=$ac_pwd ;;
29861 [\\/]* | ?:[\\/]* ) # Absolute name.
29862 ac_srcdir=$srcdir$ac_dir_suffix;
29863 ac_top_srcdir=$srcdir
29864 ac_abs_top_srcdir=$srcdir ;;
29865 *) # Relative name.
29866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29867 ac_top_srcdir=$ac_top_build_prefix$srcdir
29868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29885 cat >>$CONFIG_STATUS <<\_ACEOF
29886 # If the template does not know about datarootdir, expand it.
29887 # FIXME: This hack should be removed a few years after 2.60.
29888 ac_datarootdir_hack=; ac_datarootdir_seen=
29890 case `sed -n '/datarootdir/ {
29899 ' $ac_file_inputs` in
29900 *datarootdir*) ac_datarootdir_seen=yes;;
29901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29902 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29903 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29905 cat >>$CONFIG_STATUS <<_ACEOF
29906 ac_datarootdir_hack='
29907 s&@datadir@&$datadir&g
29908 s&@docdir@&$docdir&g
29909 s&@infodir@&$infodir&g
29910 s&@localedir@&$localedir&g
29911 s&@mandir@&$mandir&g
29912 s&\\\${datarootdir}&$datarootdir&g' ;;
29916 # Neutralize VPATH when `$srcdir' = `.'.
29917 # Shell code in configure.ac might set extrasub.
29918 # FIXME: do we really want to maintain this feature?
29919 cat >>$CONFIG_STATUS <<_ACEOF
29923 cat >>$CONFIG_STATUS <<\_ACEOF
29925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29926 s&@configure_input@&$configure_input&;t t
29927 s&@top_builddir@&$ac_top_builddir_sub&;t t
29928 s&@srcdir@&$ac_srcdir&;t t
29929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29930 s&@top_srcdir@&$ac_top_srcdir&;t t
29931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29932 s&@builddir@&$ac_builddir&;t t
29933 s&@abs_builddir@&$ac_abs_builddir&;t t
29934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29935 s&@INSTALL@&$ac_INSTALL&;t t
29936 $ac_datarootdir_hack
29937 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29940 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29942 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29943 which seems to be undefined. Please make sure it is defined." >&5
29944 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29945 which seems to be undefined. Please make sure it is defined." >&2;}
29949 -) cat "$tmp/out"; rm -f "$tmp/out";;
29950 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29959 # Transform confdefs.h into a sed script `conftest.defines', that
29960 # substitutes the proper values into config.h.in to produce config.h.
29961 rm -f conftest.defines conftest.tail
29962 # First, append a space to every undef/define line, to ease matching.
29963 echo 's/$/ /' >conftest.defines
29964 # Then, protect against being on the right side of a sed subst, or in
29965 # an unquoted here document, in config.status. If some macros were
29966 # called several times there might be several #defines for the same
29967 # symbol, which is useless. But do not sort them, since the last
29968 # AC_DEFINE must be honored.
29969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29970 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29971 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29972 # PARAMS is the parameter list in the macro definition--in most cases, it's
29973 # just an empty string.
29974 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29975 ac_dB='\\)[ (].*,\\1define\\2'
29983 s/^[ ]*#[ ]*define[ ][ ]*//
29988 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29989 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29990 ' >>conftest.defines
29992 # Remove the space that was appended to ease matching.
29993 # Then replace #undef with comments. This is necessary, for
29994 # example, in the case of _POSIX_SOURCE, which is predefined and required
29995 # on some systems where configure will not decide to define it.
29996 # (The regexp can be short, since the line contains either #define or #undef.)
29998 s,^[ #]*u.*,/* & */,' >>conftest.defines
30000 # Break up conftest.defines:
30001 ac_max_sed_lines=50
30003 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30004 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30005 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30007 ac_in='$ac_file_inputs'
30008 ac_out='"$tmp/out1"'
30009 ac_nxt='"$tmp/out2"'
30013 # Write a here document:
30014 cat >>$CONFIG_STATUS <<_ACEOF
30015 # First, check the format of the line:
30016 cat >"\$tmp/defines.sed" <<\\CEOF
30017 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30018 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30022 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30024 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30025 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30026 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30027 grep . conftest.tail >/dev/null || break
30028 rm -f conftest.defines
30029 mv conftest.tail conftest.defines
30031 rm -f conftest.defines conftest.tail
30033 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30034 cat >>$CONFIG_STATUS <<\_ACEOF
30035 if test x"$ac_file" != x-; then
30036 echo "/* $configure_input */" >"$tmp/config.h"
30037 cat "$ac_result" >>"$tmp/config.h"
30038 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30039 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30040 echo "$as_me: $ac_file is unchanged" >&6;}
30043 mv "$tmp/config.h" $ac_file
30046 echo "/* $configure_input */"
30050 # Compute $ac_file's index in $config_headers.
30052 for _am_header in $config_headers :; do
30053 case $_am_header in
30054 $ac_file | $ac_file:* )
30057 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30060 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30061 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30062 X$ac_file : 'X\(//\)[^/]' \| \
30063 X$ac_file : 'X\(//\)$' \| \
30064 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30070 /^X\(\/\/\)[^/].*/{
30082 s/.*/./; q'`/stamp-h$_am_stamp_count
30085 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30086 echo "$as_me: executing $ac_file commands" >&6;}
30091 case $ac_file$ac_mode in
30092 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30093 # Strip MF so we end up with the name of the file.
30094 mf=`echo "$mf" | sed -e 's/:.*$//'`
30095 # Check whether this is an Automake generated Makefile or not.
30096 # We used to match only the files named `Makefile.in', but
30097 # some people rename them; so instead we look at the file content.
30098 # Grep'ing the first line is not enough: some people post-process
30099 # each Makefile.in and add a new line on top of each file to say so.
30100 # So let's grep whole file.
30101 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30102 dirpart=`$as_dirname -- "$mf" ||
30103 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30104 X"$mf" : 'X\(//\)[^/]' \| \
30105 X"$mf" : 'X\(//\)$' \| \
30106 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30112 /^X\(\/\/\)[^/].*/{
30128 # Extract the definition of DEPDIR, am__include, and am__quote
30129 # from the Makefile without running `make'.
30130 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30131 test -z "$DEPDIR" && continue
30132 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30133 test -z "am__include" && continue
30134 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30135 # When using ansi2knr, U may be empty or an underscore; expand it
30136 U=`sed -n 's/^U = //p' < "$mf"`
30137 # Find all dependency output files, they are included files with
30138 # $(DEPDIR) in their names. We invoke sed twice because it is the
30139 # simplest approach to changing $(DEPDIR) to its actual value in the
30141 for file in `sed -n "
30142 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30144 # Make sure the directory exists.
30145 test -f "$dirpart/$file" && continue
30146 fdir=`$as_dirname -- "$file" ||
30147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30148 X"$file" : 'X\(//\)[^/]' \| \
30149 X"$file" : 'X\(//\)$' \| \
30150 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30156 /^X\(\/\/\)[^/].*/{
30169 { as_dir=$dirpart/$fdir
30171 -*) as_dir=./$as_dir;;
30173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30177 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30178 *) as_qdir=$as_dir;;
30180 as_dirs="'$as_qdir' $as_dirs"
30181 as_dir=`$as_dirname -- "$as_dir" ||
30182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30183 X"$as_dir" : 'X\(//\)[^/]' \| \
30184 X"$as_dir" : 'X\(//\)$' \| \
30185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30191 /^X\(\/\/\)[^/].*/{
30204 test -d "$as_dir" && break
30206 test -z "$as_dirs" || eval "mkdir $as_dirs"
30207 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30208 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30209 { (exit 1); exit 1; }; }; }
30210 # echo "creating $dirpart/$file"
30211 echo '# dummy' > "$dirpart/$file"
30220 { (exit 0); exit 0; }
30222 chmod +x $CONFIG_STATUS
30223 ac_clean_files=$ac_clean_files_save
30226 # configure is writing to config.log, and then calls config.status.
30227 # config.status does its own redirection, appending to config.log.
30228 # Unfortunately, on DOS this fails, as config.log is still kept open
30229 # by configure, so config.status won't be able to write to it; its
30230 # output is simply discarded. So we exec the FD to /dev/null,
30231 # effectively closing config.log, so it can be properly (re)opened and
30232 # appended to by config.status. When coming back to configure, we
30233 # need to make the FD available again.
30234 if test "$no_create" != yes; then
30236 ac_config_status_args=
30237 test "$silent" = yes &&
30238 ac_config_status_args="$ac_config_status_args --quiet"
30240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30243 # would make configure fail if this is the last instruction.
30244 $ac_cs_success || { (exit 1); exit 1; }