2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for linux nfs-utils 1.2.2.
5 # Report bugs to <linux-nfs@vger.kernel.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='linux nfs-utils'
747 PACKAGE_TARNAME='nfs-utils'
748 PACKAGE_VERSION='1.2.2'
749 PACKAGE_STRING='linux nfs-utils 1.2.2'
750 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
752 ac_default_prefix=/usr
753 # Factoring default headers for most tests.
754 ac_includes_default="\
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
766 # ifdef HAVE_STDLIB_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
789 ac_unique_file="support/include/config.h.in"
790 ac_subst_vars='am__EXEEXT_FALSE
896 MAINTAINER_MODE_FALSE
906 INSTALL_STRIP_PROGRAM
956 program_transform_name
968 enable_option_checking
969 enable_maintainer_mode
987 enable_dependency_tracking
998 ac_precious_vars='build_alias
1018 # Initialize some variables set by options.
1020 ac_init_version=false
1021 ac_unrecognized_opts=
1022 ac_unrecognized_sep=
1023 # The variables have the same names as the options, with
1024 # dashes changed to underlines.
1025 cache_file=/dev/null
1032 program_transform_name=s,x,x,
1040 # Installation directory options.
1041 # These are left unexpanded so users can "make install exec_prefix=/foo"
1042 # and all the variables that are supposed to be based on exec_prefix
1043 # by default will actually change.
1044 # Use braces instead of parens because sh, perl, etc. also accept them.
1045 # (The list follows the same order as the GNU Coding Standards.)
1046 bindir='${exec_prefix}/bin'
1047 sbindir='${exec_prefix}/sbin'
1048 libexecdir='${exec_prefix}/libexec'
1049 datarootdir='${prefix}/share'
1050 datadir='${datarootdir}'
1051 sysconfdir='${prefix}/etc'
1052 sharedstatedir='${prefix}/com'
1053 localstatedir='${prefix}/var'
1054 includedir='${prefix}/include'
1055 oldincludedir='/usr/include'
1056 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1057 infodir='${datarootdir}/info'
1062 libdir='${exec_prefix}/lib'
1063 localedir='${datarootdir}/locale'
1064 mandir='${datarootdir}/man'
1070 # If the previous option needs an argument, assign it.
1071 if test -n "$ac_prev"; then
1072 eval $ac_prev=\$ac_option
1078 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082 # Accept the important Cygnus configure options, so we can diagnose typos.
1084 case $ac_dashdash$ac_option in
1088 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1090 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1091 bindir=$ac_optarg ;;
1093 -build | --build | --buil | --bui | --bu)
1094 ac_prev=build_alias ;;
1095 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1096 build_alias=$ac_optarg ;;
1098 -cache-file | --cache-file | --cache-fil | --cache-fi \
1099 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1100 ac_prev=cache_file ;;
1101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1103 cache_file=$ac_optarg ;;
1105 --config-cache | -C)
1106 cache_file=config.cache ;;
1108 -datadir | --datadir | --datadi | --datad)
1110 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1111 datadir=$ac_optarg ;;
1113 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1114 | --dataroo | --dataro | --datar)
1115 ac_prev=datarootdir ;;
1116 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1117 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1118 datarootdir=$ac_optarg ;;
1120 -disable-* | --disable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval enable_$ac_useropt=no ;;
1137 -docdir | --docdir | --docdi | --doc | --do)
1139 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1140 docdir=$ac_optarg ;;
1142 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1144 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1145 dvidir=$ac_optarg ;;
1147 -enable-* | --enable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "enable_$ac_useropt"
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval enable_$ac_useropt=\$ac_optarg ;;
1164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1166 | --exec | --exe | --ex)
1167 ac_prev=exec_prefix ;;
1168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1170 | --exec=* | --exe=* | --ex=*)
1171 exec_prefix=$ac_optarg ;;
1173 -gas | --gas | --ga | --g)
1174 # Obsolete; use --with-gas.
1177 -help | --help | --hel | --he | -h)
1178 ac_init_help=long ;;
1179 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1180 ac_init_help=recursive ;;
1181 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1182 ac_init_help=short ;;
1184 -host | --host | --hos | --ho)
1185 ac_prev=host_alias ;;
1186 -host=* | --host=* | --hos=* | --ho=*)
1187 host_alias=$ac_optarg ;;
1189 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1191 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1193 htmldir=$ac_optarg ;;
1195 -includedir | --includedir | --includedi | --included | --include \
1196 | --includ | --inclu | --incl | --inc)
1197 ac_prev=includedir ;;
1198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1199 | --includ=* | --inclu=* | --incl=* | --inc=*)
1200 includedir=$ac_optarg ;;
1202 -infodir | --infodir | --infodi | --infod | --info | --inf)
1204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1205 infodir=$ac_optarg ;;
1207 -libdir | --libdir | --libdi | --libd)
1209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1210 libdir=$ac_optarg ;;
1212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1213 | --libexe | --libex | --libe)
1214 ac_prev=libexecdir ;;
1215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1216 | --libexe=* | --libex=* | --libe=*)
1217 libexecdir=$ac_optarg ;;
1219 -localedir | --localedir | --localedi | --localed | --locale)
1220 ac_prev=localedir ;;
1221 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1222 localedir=$ac_optarg ;;
1224 -localstatedir | --localstatedir | --localstatedi | --localstated \
1225 | --localstate | --localstat | --localsta | --localst | --locals)
1226 ac_prev=localstatedir ;;
1227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1228 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1229 localstatedir=$ac_optarg ;;
1231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1234 mandir=$ac_optarg ;;
1236 -nfp | --nfp | --nf)
1237 # Obsolete; use --without-fp.
1240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1241 | --no-cr | --no-c | -n)
1244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1250 | --oldin | --oldi | --old | --ol | --o)
1251 ac_prev=oldincludedir ;;
1252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1255 oldincludedir=$ac_optarg ;;
1257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1260 prefix=$ac_optarg ;;
1262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1263 | --program-pre | --program-pr | --program-p)
1264 ac_prev=program_prefix ;;
1265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1267 program_prefix=$ac_optarg ;;
1269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1270 | --program-suf | --program-su | --program-s)
1271 ac_prev=program_suffix ;;
1272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1274 program_suffix=$ac_optarg ;;
1276 -program-transform-name | --program-transform-name \
1277 | --program-transform-nam | --program-transform-na \
1278 | --program-transform-n | --program-transform- \
1279 | --program-transform | --program-transfor \
1280 | --program-transfo | --program-transf \
1281 | --program-trans | --program-tran \
1282 | --progr-tra | --program-tr | --program-t)
1283 ac_prev=program_transform_name ;;
1284 -program-transform-name=* | --program-transform-name=* \
1285 | --program-transform-nam=* | --program-transform-na=* \
1286 | --program-transform-n=* | --program-transform-=* \
1287 | --program-transform=* | --program-transfor=* \
1288 | --program-transfo=* | --program-transf=* \
1289 | --program-trans=* | --program-tran=* \
1290 | --progr-tra=* | --program-tr=* | --program-t=*)
1291 program_transform_name=$ac_optarg ;;
1293 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1295 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1296 pdfdir=$ac_optarg ;;
1298 -psdir | --psdir | --psdi | --psd | --ps)
1300 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1304 | -silent | --silent | --silen | --sile | --sil)
1307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1311 sbindir=$ac_optarg ;;
1313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1315 | --sharedst | --shareds | --shared | --share | --shar \
1317 ac_prev=sharedstatedir ;;
1318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1322 sharedstatedir=$ac_optarg ;;
1324 -site | --site | --sit)
1326 -site=* | --site=* | --sit=*)
1329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1332 srcdir=$ac_optarg ;;
1334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1335 | --syscon | --sysco | --sysc | --sys | --sy)
1336 ac_prev=sysconfdir ;;
1337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1339 sysconfdir=$ac_optarg ;;
1341 -target | --target | --targe | --targ | --tar | --ta | --t)
1342 ac_prev=target_alias ;;
1343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1344 target_alias=$ac_optarg ;;
1346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1349 -version | --version | --versio | --versi | --vers | -V)
1350 ac_init_version=: ;;
1353 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1357 { (exit 1); exit 1; }; }
1358 ac_useropt_orig=$ac_useropt
1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1365 ac_unrecognized_sep=', ';;
1367 eval with_$ac_useropt=\$ac_optarg ;;
1369 -without-* | --without-*)
1370 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1374 { (exit 1); exit 1; }; }
1375 ac_useropt_orig=$ac_useropt
1376 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377 case $ac_user_opts in
1381 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1382 ac_unrecognized_sep=', ';;
1384 eval with_$ac_useropt=no ;;
1387 # Obsolete; use --with-x.
1390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1391 | --x-incl | --x-inc | --x-in | --x-i)
1392 ac_prev=x_includes ;;
1393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1395 x_includes=$ac_optarg ;;
1397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1399 ac_prev=x_libraries ;;
1400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1402 x_libraries=$ac_optarg ;;
1404 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1405 Try \`$0 --help' for more information." >&2
1406 { (exit 1); exit 1; }; }
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1413 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1414 { (exit 1); exit 1; }; }
1415 eval $ac_envvar=\$ac_optarg
1416 export $ac_envvar ;;
1419 # FIXME: should be removed in autoconf 3.0.
1420 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1421 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1423 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1429 if test -n "$ac_prev"; then
1430 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1431 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1432 { (exit 1); exit 1; }; }
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1438 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1439 { (exit 1); exit 1; }; } ;;
1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1444 # Check all directory arguments for consistency.
1445 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir
1450 eval ac_val=\$$ac_var
1451 # Remove trailing slashes.
1454 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455 eval $ac_var=\$ac_val;;
1457 # Be sure to have absolute directory names.
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463 { (exit 1); exit 1; }; }
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478 If a cross compiler is detected then cross compile mode will be used." >&2
1479 elif test "x$build_alias" != "x$host_alias"; then
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487 test "$silent" = yes && exec 6>/dev/null
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1494 { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1497 { (exit 1); exit 1; }; }
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502 ac_srcdir_defaulted=yes
1503 # Try the directory containing this script, then the parent directory.
1504 ac_confdir=`$as_dirname -- "$as_myself" ||
1505 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506 X"$as_myself" : 'X\(//\)[^/]' \| \
1507 X"$as_myself" : 'X\(//\)$' \| \
1508 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1509 $as_echo X"$as_myself" |
1510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1532 ac_srcdir_defaulted=no
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537 { (exit 1); exit 1; }; }
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1542 { (exit 1); exit 1; }; }
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 for ac_var in $ac_precious_vars; do
1555 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556 eval ac_env_${ac_var}_value=\$${ac_var}
1557 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 # Report the --help message.
1564 if test "$ac_init_help" = "long"; then
1565 # Omit some internal or obsolete options to make the list less imposing.
1566 # This message is too long to be a string in the A/UX 3.1 sh.
1568 \`configure' configures linux nfs-utils 1.2.2 to adapt to many kinds of systems.
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE. See below for descriptions of some of the useful variables.
1575 Defaults for the options are specified in brackets.
1578 -h, --help display this help and exit
1579 --help=short display options specific to this package
1580 --help=recursive display the short help of all the included packages
1581 -V, --version display version information and exit
1582 -q, --quiet, --silent do not print \`checking...' messages
1583 --cache-file=FILE cache test results in FILE [disabled]
1584 -C, --config-cache alias for \`--cache-file=config.cache'
1585 -n, --no-create do not create output files
1586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1588 Installation directories:
1589 --prefix=PREFIX install architecture-independent files in PREFIX
1590 [$ac_default_prefix]
1591 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1599 For better control, use the options below.
1601 Fine tuning of the installation directories:
1602 --bindir=DIR user executables [EPREFIX/bin]
1603 --sbindir=DIR system admin executables [EPREFIX/sbin]
1604 --libexecdir=DIR program executables [EPREFIX/libexec]
1605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1608 --libdir=DIR object code libraries [EPREFIX/lib]
1609 --includedir=DIR C header files [PREFIX/include]
1610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1611 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1612 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1613 --infodir=DIR info documentation [DATAROOTDIR/info]
1614 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1615 --mandir=DIR man documentation [DATAROOTDIR/man]
1616 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1617 --htmldir=DIR html documentation [DOCDIR]
1618 --dvidir=DIR dvi documentation [DOCDIR]
1619 --pdfdir=DIR pdf documentation [DOCDIR]
1620 --psdir=DIR ps documentation [DOCDIR]
1626 --program-prefix=PREFIX prepend PREFIX to installed program names
1627 --program-suffix=SUFFIX append SUFFIX to installed program names
1628 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1631 --build=BUILD configure for building on BUILD [guessed]
1632 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1636 if test -n "$ac_init_help"; then
1637 case $ac_init_help in
1638 short | recursive ) echo "Configuration of linux nfs-utils 1.2.2:";;
1643 --disable-option-checking ignore unrecognized --enable/--with options
1644 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1645 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1646 --enable-maintainer-mode enable make rules and dependencies not useful
1647 (and sometimes confusing) to the casual installer
1648 --enable-nfsv3 enable support for NFSv3 [default=yes]
1649 --enable-nfsv4 enable support for NFSv4 [default=yes]
1650 --enable-nfsv41 enable support for NFSv41 [default=no]
1651 --enable-gss enable support for rpcsec_gss [default=yes]
1652 --enable-kprefix install progs as rpc.knfsd etc
1653 --disable-uuid Exclude uuid support to avoid buggy libblkid
1654 --enable-mount Create mount.nfs and don't use the util-linux
1655 mount(8) functionality. [default=yes]
1656 --enable-tirpc enable use of TI-RPC [default=yes]
1657 --enable-ipv6 enable support for IPv6 [default=no]
1658 --enable-mountconfig enable mount to use a configuration file
1659 --disable-dependency-tracking speeds up one-time build
1660 --enable-dependency-tracking do not reject slow dependency extractors
1661 --disable-largefile omit support for large files
1662 --enable-shared[=PKGS] build shared libraries [default=yes]
1663 --enable-static[=PKGS] build static libraries [default=yes]
1664 --enable-fast-install[=PKGS]
1665 optimize for fast installation [default=yes]
1666 --disable-libtool-lock avoid locking (might break parallel builds)
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-release=XXX set release to XXX [1]
1672 --with-statedir=/foo use state dir /foo /var/lib/nfs
1673 --with-statduser=rpcuser
1674 statd to run under [rpcuser or nobody]
1675 --with-start-statd=scriptname
1676 When an nfs filesystems is mounted with locking, run
1678 --with-rpcgen=internal use internal rpcgen instead of system one
1679 --with-mountfile=filename
1680 Using filename as the NFS mount options file
1681 [/etc/nfsmounts.conf]
1682 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1683 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1684 (optionally in PATH)
1685 --with-pic try to use only PIC/non-PIC objects [default=use
1687 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1688 --with-krb5=DIR use Kerberos v5 installation in DIR
1690 Some influential environment variables:
1691 CC C compiler command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1694 nonstandard directory <lib dir>
1695 LIBS libraries to pass to the linker, e.g. -l<library>
1696 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1697 you have headers in a nonstandard directory <include dir>
1699 CXX C++ compiler command
1700 CXXFLAGS C++ compiler flags
1701 CXXCPP C++ preprocessor
1702 PKG_CONFIG path to pkg-config utility
1704 C compiler flags for GSSGLUE, overriding pkg-config
1706 linker flags for GSSGLUE, overriding pkg-config
1708 C compiler flags for RPCSECGSS, overriding pkg-config
1710 linker flags for RPCSECGSS, overriding pkg-config
1712 Use these variables to override the choices made by `configure' or to help
1713 it to find libraries and programs with nonstandard names/locations.
1715 Report bugs to <linux-nfs@vger.kernel.org>.
1720 if test "$ac_init_help" = "recursive"; then
1721 # If there are subdirs, report their specific --help.
1722 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1723 test -d "$ac_dir" ||
1724 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1732 # A ".." for each directory in $ac_dir_suffix.
1733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1734 case $ac_top_builddir_sub in
1735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 ac_abs_top_builddir=$ac_pwd
1740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1741 # for backward compatibility:
1742 ac_top_builddir=$ac_top_build_prefix
1745 .) # We are building in place.
1747 ac_top_srcdir=$ac_top_builddir_sub
1748 ac_abs_top_srcdir=$ac_pwd ;;
1749 [\\/]* | ?:[\\/]* ) # Absolute name.
1750 ac_srcdir=$srcdir$ac_dir_suffix;
1751 ac_top_srcdir=$srcdir
1752 ac_abs_top_srcdir=$srcdir ;;
1754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1755 ac_top_srcdir=$ac_top_build_prefix$srcdir
1756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760 cd "$ac_dir" || { ac_status=$?; continue; }
1761 # Check for guested configure.
1762 if test -f "$ac_srcdir/configure.gnu"; then
1764 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1765 elif test -f "$ac_srcdir/configure"; then
1767 $SHELL "$ac_srcdir/configure" --help=recursive
1769 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 cd "$ac_pwd" || { ac_status=$?; break; }
1775 test -n "$ac_init_help" && exit $ac_status
1776 if $ac_init_version; then
1778 linux nfs-utils configure 1.2.2
1779 generated by GNU Autoconf 2.63
1781 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1782 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1788 cat >config.log <<_ACEOF
1789 This file contains any messages produced by compilers while
1790 running configure, to aid debugging if configure makes a mistake.
1792 It was created by linux nfs-utils $as_me 1.2.2, which was
1793 generated by GNU Autoconf 2.63. Invocation command line was
1805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1814 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 test -z "$as_dir" && as_dir=.
1829 $as_echo "PATH: $as_dir"
1845 # Keep a trace of the command line.
1846 # Strip out --no-create and --no-recursion so they do not pile up.
1847 # Strip out --silent because we don't want to record it for future runs.
1848 # Also quote any args containing shell meta-characters.
1849 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_must_keep_next=false
1859 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861 | -silent | --silent | --silen | --sile | --sil)
1864 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1869 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1870 if test $ac_must_keep_next = true; then
1871 ac_must_keep_next=false # Got value, back to normal.
1874 *=* | --config-cache | -C | -disable-* | --disable-* \
1875 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877 | -with-* | --with-* | -without-* | --without-* | --x)
1878 case "$ac_configure_args0 " in
1879 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882 -* ) ac_must_keep_next=true ;;
1885 ac_configure_args="$ac_configure_args '$ac_arg'"
1890 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1891 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1893 # When interrupted or exit'd, cleanup temporary files, and complete
1894 # config.log. We remove comments because anyway the quotes in there
1895 # would cause problems or look ugly.
1896 # WARNING: Use '\'' to represent an apostrophe within the trap.
1897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898 trap 'exit_status=$?
1899 # Save into config.log some information that might help in debugging.
1904 ## ---------------- ##
1905 ## Cache variables. ##
1906 ## ---------------- ##
1909 # The following way of writing the cache mishandles newlines in values,
1911 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1912 eval ac_val=\$$ac_var
1916 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 _ | IFS | as_nl) ;; #(
1921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1922 *) $as_unset $ac_var ;;
1927 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928 *${as_nl}ac_space=\ *)
1930 "s/'\''/'\''\\\\'\'''\''/g;
1931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 ## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##
1947 for ac_var in $ac_subst_vars
1949 eval ac_val=\$$ac_var
1951 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 $as_echo "$ac_var='\''$ac_val'\''"
1957 if test -n "$ac_subst_files"; then
1959 ## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##
1964 for ac_var in $ac_subst_files
1966 eval ac_val=\$$ac_var
1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970 $as_echo "$ac_var='\''$ac_val'\''"
1975 if test -s confdefs.h; then
1985 test "$ac_signal" != 0 &&
1986 $as_echo "$as_me: caught signal $ac_signal"
1987 $as_echo "$as_me: exit $exit_status"
1989 rm -f core *.core core.conftest.* &&
1990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993 for ac_signal in 1 2 13 15; do
1994 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2001 # Predefined preprocessor variables.
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer an explicitly selected file to automatically selected ones.
2032 if test -n "$CONFIG_SITE"; then
2033 ac_site_file1=$CONFIG_SITE
2034 elif test "x$prefix" != xNONE; then
2035 ac_site_file1=$prefix/share/config.site
2036 ac_site_file2=$prefix/etc/config.site
2038 ac_site_file1=$ac_default_prefix/share/config.site
2039 ac_site_file2=$ac_default_prefix/etc/config.site
2041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2043 test "x$ac_site_file" = xNONE && continue
2044 if test -r "$ac_site_file"; then
2045 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2047 sed 's/^/| /' "$ac_site_file" >&5
2052 if test -r "$cache_file"; then
2053 # Some versions of bash will fail to source /dev/null (special
2054 # files actually), so we avoid doing that.
2055 if test -f "$cache_file"; then
2056 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2057 $as_echo "$as_me: loading cache $cache_file" >&6;}
2059 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060 *) . "./$cache_file";;
2064 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2065 $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 # Check that the precious variables saved in the cache have kept the same
2071 ac_cache_corrupted=false
2072 for ac_var in $ac_precious_vars; do
2073 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2074 eval ac_new_set=\$ac_env_${ac_var}_set
2075 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2076 eval ac_new_val=\$ac_env_${ac_var}_value
2077 case $ac_old_set,$ac_new_set in
2079 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2083 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2088 if test "x$ac_old_val" != "x$ac_new_val"; then
2089 # differences in whitespace do not lead to failure.
2090 ac_old_val_w=`echo x $ac_old_val`
2091 ac_new_val_w=`echo x $ac_new_val`
2092 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2093 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2095 ac_cache_corrupted=:
2097 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2099 eval $ac_var=\$ac_old_val
2101 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2102 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2103 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2104 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2107 # Pass precious variables to config.status.
2108 if test "$ac_new_set" = set; then
2110 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2111 *) ac_arg=$ac_var=$ac_new_val ;;
2113 case " $ac_configure_args " in
2114 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2115 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2119 if $ac_cache_corrupted; then
2120 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2124 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2125 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2126 { (exit 1); exit 1; }; }
2154 ac_cpp='$CPP $CPPFLAGS'
2155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2162 if test -f "$ac_dir/install-sh"; then
2164 ac_install_sh="$ac_aux_dir/install-sh -c"
2166 elif test -f "$ac_dir/install.sh"; then
2168 ac_install_sh="$ac_aux_dir/install.sh -c"
2170 elif test -f "$ac_dir/shtool"; then
2172 ac_install_sh="$ac_aux_dir/shtool install -c"
2176 if test -z "$ac_aux_dir"; then
2177 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2178 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2179 { (exit 1); exit 1; }; }
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2191 # Make sure we can run config.sub.
2192 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2193 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2194 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2195 { (exit 1); exit 1; }; }
2197 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2198 $as_echo_n "checking build system type... " >&6; }
2199 if test "${ac_cv_build+set}" = set; then
2200 $as_echo_n "(cached) " >&6
2202 ac_build_alias=$build_alias
2203 test "x$ac_build_alias" = x &&
2204 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2205 test "x$ac_build_alias" = x &&
2206 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2207 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2208 { (exit 1); exit 1; }; }
2209 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2210 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2211 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2212 { (exit 1); exit 1; }; }
2215 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2216 $as_echo "$ac_cv_build" >&6; }
2217 case $ac_cv_build in
2219 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2220 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2221 { (exit 1); exit 1; }; };;
2224 ac_save_IFS=$IFS; IFS='-'
2230 # Remember, the first character of IFS is used to create $*,
2231 # except with old shells:
2234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2237 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2238 $as_echo_n "checking host system type... " >&6; }
2239 if test "${ac_cv_host+set}" = set; then
2240 $as_echo_n "(cached) " >&6
2242 if test "x$host_alias" = x; then
2243 ac_cv_host=$ac_cv_build
2245 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2246 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2247 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2248 { (exit 1); exit 1; }; }
2252 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2253 $as_echo "$ac_cv_host" >&6; }
2256 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2257 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2258 { (exit 1); exit 1; }; };;
2261 ac_save_IFS=$IFS; IFS='-'
2267 # Remember, the first character of IFS is used to create $*,
2268 # except with old shells:
2271 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2275 am__api_version='1.11'
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if test "${ac_cv_path_install+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2304 ./ | .// | /cC/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2346 rm -rf conftest.one conftest.two conftest.dir
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2359 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2374 echo timestamp > conftest.file
2375 # Reject unsafe characters in $srcdir or the absolute working directory
2376 # name. Accept space and tab only in the latter.
2380 *[\\\"\#\$\&\'\`$am_lf]*)
2381 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2382 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2383 { (exit 1); exit 1; }; };;
2386 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2387 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2388 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2389 { (exit 1); exit 1; }; };;
2392 # Do `set' in a subshell so we don't clobber the current shell's
2393 # arguments. Must try -L first in case configure is actually a
2394 # symlink; some systems play weird games with the mod time of symlinks
2395 # (eg FreeBSD returns the mod time of the symlink's containing
2398 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399 if test "$*" = "X"; then
2401 set X `ls -t "$srcdir/configure" conftest.file`
2404 if test "$*" != "X $srcdir/configure conftest.file" \
2405 && test "$*" != "X conftest.file $srcdir/configure"; then
2407 # If neither matched, then we have a broken ls. This can happen
2408 # if, for instance, CONFIG_SHELL is bash and it inherits a
2409 # broken ls alias from the environment. This has actually
2410 # happened. Such a system could not be considered "sane".
2411 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2412 alias in your environment" >&5
2413 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2414 alias in your environment" >&2;}
2415 { (exit 1); exit 1; }; }
2418 test "$2" = conftest.file
2424 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2425 Check your system clock" >&5
2426 $as_echo "$as_me: error: newly created file is older than distributed files!
2427 Check your system clock" >&2;}
2428 { (exit 1); exit 1; }; }
2430 { $as_echo "$as_me:$LINENO: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2445 if test x"${MISSING+set}" != xset; then
2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2450 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455 am_missing_run="$MISSING --run "
2458 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 if test x"${install_sh}" != xset; then
2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2467 install_sh="\${SHELL} $am_aux_dir/install-sh"
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'. However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_STRIP+set}" = set; then
2482 $as_echo_n "(cached) " >&6
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2509 { $as_echo "$as_me:$LINENO: result: no" >&5
2510 $as_echo "no" >&6; }
2515 if test -z "$ac_cv_prog_STRIP"; then
2517 # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2522 $as_echo_n "(cached) " >&6
2524 if test -n "$ac_ct_STRIP"; then
2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_STRIP="strip"
2535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2549 { $as_echo "$as_me:$LINENO: result: no" >&5
2550 $as_echo "no" >&6; }
2553 if test "x$ac_ct_STRIP" = x; then
2556 case $cross_compiling:$ac_tool_warned in
2558 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2565 STRIP="$ac_cv_prog_STRIP"
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2571 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574 if test "${ac_cv_path_mkdir+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2581 test -z "$as_dir" && as_dir=.
2582 for ac_prog in mkdir gmkdir; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586 'mkdir (GNU coreutils) '* | \
2587 'mkdir (coreutils) '* | \
2588 'mkdir (fileutils) '4.1*)
2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 if test "${ac_cv_path_mkdir+set}" = set; then
2600 MKDIR_P="$ac_cv_path_mkdir -p"
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for MKDIR_P within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 test -d ./--version && rmdir ./--version
2607 MKDIR_P="$ac_install_sh -d"
2610 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2615 [\\/$]* | ?:[\\/]*) ;;
2616 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2619 for ac_prog in gawk mawk nawk awk
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_AWK+set}" = set; then
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$AWK"; then
2629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_AWK="$ac_prog"
2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test -n "$AWK"; then
2650 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2653 { $as_echo "$as_me:$LINENO: result: no" >&5
2654 $as_echo "no" >&6; }
2658 test -n "$AWK" && break
2661 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2666 $as_echo_n "(cached) " >&6
2668 cat >conftest.make <<\_ACEOF
2671 @echo '@@@%%%=$(MAKE)=@@@%%%'
2673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2676 eval ac_cv_prog_make_${ac_make}_set=yes;;
2678 eval ac_cv_prog_make_${ac_make}_set=no;;
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683 { $as_echo "$as_me:$LINENO: result: yes" >&5
2684 $as_echo "yes" >&6; }
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2689 SET_MAKE="MAKE=${MAKE-make}"
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2699 rmdir .tst 2>/dev/null
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703 # is not polluted with repeated "-I."
2704 am__isrc=' -I$(srcdir)'
2705 # test to see if srcdir already configured
2706 if test -f $srcdir/config.status; then
2707 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2708 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2709 { (exit 1); exit 1; }; }
2713 # test whether we have cygpath
2714 if test -z "$CYGPATH_W"; then
2715 if (cygpath --version) >/dev/null 2>/dev/null; then
2716 CYGPATH_W='cygpath -w'
2723 # Define the identity of the package.
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE "$PACKAGE"
2733 cat >>confdefs.h <<_ACEOF
2734 #define VERSION "$VERSION"
2737 # Some tools Automake needs.
2739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2753 # We need awk for the "check" target. The system "awk" is bad on
2755 # Always define AMTAR for backward compatibility.
2757 AMTAR=${AMTAR-"${am_missing_run}tar"}
2759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2768 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2769 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2770 # Check whether --enable-maintainer-mode was given.
2771 if test "${enable_maintainer_mode+set}" = set; then
2772 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2774 USE_MAINTAINER_MODE=no
2777 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2778 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2779 if test $USE_MAINTAINER_MODE = yes; then
2780 MAINTAINER_MODE_TRUE=
2781 MAINTAINER_MODE_FALSE='#'
2783 MAINTAINER_MODE_TRUE='#'
2784 MAINTAINER_MODE_FALSE=
2787 MAINT=$MAINTAINER_MODE_TRUE
2792 # Check whether --with-release was given.
2793 if test "${with_release+set}" = set; then
2794 withval=$with_release; RELEASE=$withval
2801 # Check whether --with-statedir was given.
2802 if test "${with_statedir+set}" = set; then
2803 withval=$with_statedir; statedir=$withval
2805 statedir=/var/lib/nfs
2810 # Check whether --with-statduser was given.
2811 if test "${with_statduser+set}" = set; then
2812 withval=$with_statduser; statduser=$withval
2814 if test "x$cross_compiling" = "xno"; then
2815 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2827 # Check whether --with-start-statd was given.
2828 if test "${with_start_statd+set}" = set; then
2829 withval=$with_start_statd; startstatd=$withval
2831 startstatd=/usr/sbin/start-statd
2837 cat >>confdefs.h <<_ACEOF
2838 #define START_STATD "$startstatd"
2841 # Check whether --enable-nfsv3 was given.
2842 if test "${enable_nfsv3+set}" = set; then
2843 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2848 if test "$enable_nfsv3" = yes; then
2850 cat >>confdefs.h <<\_ACEOF
2851 #define NFS3_SUPPORTED 1
2858 # Check whether --enable-nfsv4 was given.
2859 if test "${enable_nfsv4+set}" = set; then
2860 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2865 if test "$enable_nfsv4" = yes; then
2867 cat >>confdefs.h <<\_ACEOF
2868 #define NFS4_SUPPORTED 1
2878 if test "$enable_nfsv4" = "yes"; then
2880 CONFIG_NFSV4_FALSE='#'
2882 CONFIG_NFSV4_TRUE='#'
2887 # Check whether --enable-nfsv41 was given.
2888 if test "${enable_nfsv41+set}" = set; then
2889 enableval=$enable_nfsv41; enable_nfsv41=$enableval
2894 if test "$enable_nfsv41" = yes; then
2896 cat >>confdefs.h <<\_ACEOF
2897 #define NFS41_SUPPORTED 1
2904 if test "$enable_nfsv41" = "yes"; then
2906 CONFIG_NFSV41_FALSE='#'
2908 CONFIG_NFSV41_TRUE='#'
2909 CONFIG_NFSV41_FALSE=
2913 # Check whether --enable-gss was given.
2914 if test "${enable_gss+set}" = set; then
2915 enableval=$enable_gss; enable_gss=$enableval
2920 if test "$enable_gss" = yes; then
2922 cat >>confdefs.h <<\_ACEOF
2923 #define GSS_SUPPORTED 1
2936 if test "$enable_gss" = "yes"; then
2938 CONFIG_GSS_FALSE='#'
2944 # Check whether --enable-kprefix was given.
2945 if test "${enable_kprefix+set}" = set; then
2946 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2953 # Check whether --with-rpcgen was given.
2954 if test "${with_rpcgen+set}" = set; then
2955 withval=$with_rpcgen; rpcgen_path=$withval
2961 if test "$rpcgen_path" == "yes"; then
2962 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2963 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2964 elif test "$rpcgen_path" != "internal"; then
2965 RPCGEN_PATH=$rpcgen_path
2968 if test "$RPCGEN_PATH" == ""; then
2970 CONFIG_RPCGEN_FALSE='#'
2972 CONFIG_RPCGEN_TRUE='#'
2973 CONFIG_RPCGEN_FALSE=
2976 # Check whether --enable-uuid was given.
2977 if test "${enable_uuid+set}" = set; then
2978 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2980 choose_blkid=default
2983 # Check whether --enable-mount was given.
2984 if test "${enable_mount+set}" = set; then
2985 enableval=$enable_mount; enable_mount=$enableval
2990 if test "$enable_mount" = "yes"; then
2992 CONFIG_MOUNT_FALSE='#'
2994 CONFIG_MOUNT_TRUE='#'
2998 # Check whether --enable-tirpc was given.
2999 if test "${enable_tirpc+set}" = set; then
3000 enableval=$enable_tirpc; enable_tirpc=$enableval
3005 # Check whether --enable-ipv6 was given.
3006 if test "${enable_ipv6+set}" = set; then
3007 enableval=$enable_ipv6; enable_ipv6=$enableval
3012 if test "$enable_ipv6" = yes; then
3014 cat >>confdefs.h <<\_ACEOF
3015 #define IPV6_SUPPORTED 1
3022 if test "$enable_ipv6" = "yes"; then
3024 CONFIG_IPV6_FALSE='#'
3026 CONFIG_IPV6_TRUE='#'
3031 if test "$enable_mount" = yes; then
3032 # Check whether --enable-mountconfig was given.
3033 if test "${enable_mountconfig+set}" = set; then
3034 enableval=$enable_mountconfig; mountconfig=$enableval
3039 if test "$enable_mountconfig" = yes; then
3041 cat >>confdefs.h <<\_ACEOF
3042 #define MOUNT_CONFIG 1
3046 # Check whether --with-mountfile was given.
3047 if test "${with_mountfile+set}" = set; then
3048 withval=$with_mountfile; mountfile=$withval
3050 mountfile=/etc/nfsmount.conf
3055 cat >>confdefs.h <<_ACEOF
3056 #define MOUNTOPTS_CONFFILE "$mountfile"
3063 if test "$enable_mountconfig" = "yes"; then
3065 MOUNT_CONFIG_FALSE='#'
3067 MOUNT_CONFIG_TRUE='#'
3072 if test "$enable_mount" = "yes"; then
3074 MOUNT_CONFIG_FALSE='#'
3076 MOUNT_CONFIG_TRUE='#'
3082 DEPDIR="${am__leading_dot}deps"
3084 ac_config_commands="$ac_config_commands depfiles"
3087 am_make=${MAKE-make}
3088 cat > confinc << 'END'
3090 @echo this is the am__doit target
3093 # If we don't find an include directive, just comment out the code.
3094 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3095 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3099 # First try GNU make style include.
3100 echo "include confinc" > confmf
3101 # Ignore all kinds of additional output from `make'.
3102 case `$am_make -s -f confmf 2> /dev/null` in #(
3103 *the\ am__doit\ target*)
3109 # Now try BSD make style include.
3110 if test "$am__include" = "#"; then
3111 echo '.include "confinc"' > confmf
3112 case `$am_make -s -f confmf 2> /dev/null` in #(
3113 *the\ am__doit\ target*)
3114 am__include=.include
3122 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3123 $as_echo "$_am_result" >&6; }
3124 rm -f confinc confmf
3126 # Check whether --enable-dependency-tracking was given.
3127 if test "${enable_dependency_tracking+set}" = set; then
3128 enableval=$enable_dependency_tracking;
3131 if test "x$enable_dependency_tracking" != xno; then
3132 am_depcomp="$ac_aux_dir/depcomp"
3135 if test "x$enable_dependency_tracking" != xno; then
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="gcc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected=yes
3306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy $ac_cv_prog_CC
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3332 { $as_echo "$as_me:$LINENO: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3374 { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3382 if test -z "$CC"; then
3384 for ac_prog in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="$ac_prog"
3404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3418 { $as_echo "$as_me:$LINENO: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3426 if test "x$ac_ct_CC" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&5
3446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }; }
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3454 { (ac_try="$ac_compiler --version >&5"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461 (eval "$ac_compiler --version >&5") 2>&5
3463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }
3465 { (ac_try="$ac_compiler -v >&5"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_compiler -v >&5") 2>&5
3474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 { (ac_try="$ac_compiler -V >&5"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compiler -V >&5") 2>&5
3485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516 for ac_file in $ac_files
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3525 if { (ac_try="$ac_link_default"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532 (eval "$ac_link_default") 2>&5
3534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; then
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3541 for ac_file in $ac_files ''
3543 test -f "$ac_file" || continue
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 # We found the default executable, but exeext='' is most
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 $as_echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584 { (exit 77); exit 77; }; }; }
3587 ac_exeext=$ac_cv_exeext
3589 # Check that the compiler produces executables we can run. If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596 if { ac_try='./$ac_file'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_try") 2>&5
3605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3609 if test "$cross_compiling" = maybe; then
3612 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 $as_echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }; }
3624 { $as_echo "$as_me:$LINENO: result: yes" >&5
3625 $as_echo "yes" >&6; }
3627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { (ac_try="$ac_link"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645 (eval "$ac_link") 2>&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; then
3649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 for ac_file in conftest.exe conftest conftest.*; do
3654 test -f "$ac_file" || continue
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." >&2;}
3669 { (exit 1); exit 1; }; }; }
3672 rm -f conftest$ac_cv_exeext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3699 rm -f conftest.o conftest.obj
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 for ac_file in conftest.o conftest.obj conftest.*; do
3712 test -f "$ac_file" || continue;
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&5
3727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&2;}
3729 { (exit 1); exit 1; }; }; }
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769 (eval "$ac_compile") 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3805 ac_save_c_werror_flag=$ac_c_werror_flag
3806 ac_c_werror_flag=yes
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_c_werror_flag=$ac_save_c_werror_flag
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 ac_c_werror_flag=$ac_save_c_werror_flag
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 $as_echo "$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941 CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943 if test "$GCC" = yes; then
3949 if test "$GCC" = yes; then
3955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3960 ac_cv_prog_cc_c89=no
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3986 s = g (p, va_arg (v,int));
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3992 function prototypes and stuff, but not '\xHH' hex character constants.
3993 These don't provoke an error unfortunately, instead are silently treated
3994 as 'x'. The following induces an error, until -std is added to get
3995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3996 array size at least. It's necessary to write '\x00'==0 to get something
3997 that's true only with -std. */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001 inside strings and character constants. */
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 CC="$ac_save_CC $ac_arg"
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030 $as_echo "$ac_try_echo") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4041 ac_cv_prog_cc_c89=$ac_arg
4043 $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c89" != "xno" && break
4052 rm -f conftest.$ac_ext
4057 case "x$ac_cv_prog_cc_c89" in
4059 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4062 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4065 CC="$CC $ac_cv_prog_cc_c89"
4066 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 depcc="$CC" am_compiler_list=
4079 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4080 $as_echo_n "checking dependency style of $depcc... " >&6; }
4081 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085 # We make a subdir and do the tests there. Otherwise we can end up
4086 # making bogus files that we don't know about and never remove. For
4087 # instance it was reported that on HP-UX the gcc test will end up
4088 # making a dummy file named `D' -- because `-MD' means `put the output
4091 # Copy depcomp to subdir because otherwise we won't find it if we're
4092 # using a relative directory.
4093 cp "$am_depcomp" conftest.dir
4095 # We will build objects and dependencies in a subdirectory because
4096 # it helps to detect inapplicable dependency modes. For instance
4097 # both Tru64's cc and ICC support -MD to output dependencies as a
4098 # side effect of compilation, but ICC will put the dependencies in
4099 # the current directory while Tru64 will put them in the object
4103 am_cv_CC_dependencies_compiler_type=none
4104 if test "$am_compiler_list" = ""; then
4105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108 case " $depcc " in #(
4109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 for depmode in $am_compiler_list; do
4113 # Setup a source with many dependencies, because some compilers
4114 # like to wrap large dependency lists on column 80 (with \), and
4115 # we should not choose a depcomp mode which is confused by this.
4117 # We need to recreate these files for each test, as the compiler may
4118 # overwrite some of them when testing with obscure command lines.
4119 # This happens at least with the AIX C compiler.
4121 for i in 1 2 3 4 5 6; do
4122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4124 # Solaris 8's {/usr,}/bin/sh.
4125 touch sub/conftst$i.h
4127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4130 # mode. It turns out that the SunPro C++ compiler does not properly
4131 # handle `-M -o', and we need to detect this. Also, some Intel
4132 # versions had trouble with output in subdirs
4133 am__obj=sub/conftest.${OBJEXT-o}
4134 am__minus_obj="-o $am__obj"
4137 # This depmode causes a compiler race in universal mode.
4138 test "$am__universal" = false || continue
4141 # after this tag, mechanisms are not by side-effect, so they'll
4142 # only be used when explicitly requested
4143 if test "x$enable_dependency_tracking" = xyes; then
4149 msvisualcpp | msvcmsys)
4150 # This compiler won't grok `-c -o', but also, the minuso test has
4151 # not run yet. These depmodes are late enough in the game, and
4152 # so weak that their functioning should not be impacted.
4153 am__obj=conftest.${OBJEXT-o}
4158 if depmode=$depmode \
4159 source=sub/conftest.c object=$am__obj \
4160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162 >/dev/null 2>conftest.err &&
4163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167 # icc doesn't choke on unknown options, it will just issue warnings
4168 # or remarks (even with -Werror). So we grep stderr for any message
4169 # that says an option was ignored or not supported.
4170 # When given -MP, icc 7.0 and 7.1 complain thusly:
4171 # icc: Command line warning: ignoring option '-M'; no argument required
4172 # The diagnosis changed in icc 8.0:
4173 # icc: Command line remark: option '-MP' not supported
4174 if (grep 'ignoring option' conftest.err ||
4175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176 am_cv_CC_dependencies_compiler_type=$depmode
4185 am_cv_CC_dependencies_compiler_type=none
4189 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194 test "x$enable_dependency_tracking" != xno \
4195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4197 am__fastdepCC_FALSE='#'
4199 am__fastdepCC_TRUE='#'
4200 am__fastdepCC_FALSE=
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4216 if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 $as_echo_n "(cached) " >&6
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 # include <limits.h>
4241 # include <assert.h>
4245 if { (ac_try="$ac_cpp conftest.$ac_ext"
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4251 $as_echo "$ac_try_echo") >&5
4252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev/null && {
4259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4264 $as_echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 # Broken: fails on valid input.
4271 rm -f conftest.err conftest.$ac_ext
4273 # OK, works on sane cases. Now check whether nonexistent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4283 if { (ac_try="$ac_cpp conftest.$ac_ext"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } >/dev/null && {
4297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4300 # Broken: success on invalid input.
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 # Passes both tests.
4311 rm -f conftest.err conftest.$ac_ext
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4328 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4329 $as_echo "$CPP" >&6; }
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4346 # include <limits.h>
4348 # include <assert.h>
4352 if { (ac_try="$ac_cpp conftest.$ac_ext"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4358 $as_echo "$ac_try_echo") >&5
4359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null && {
4366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4371 $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Broken: fails on valid input.
4378 rm -f conftest.err conftest.$ac_ext
4380 # OK, works on sane cases. Now check whether nonexistent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4390 if { (ac_try="$ac_cpp conftest.$ac_ext"
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4396 $as_echo "$ac_try_echo") >&5
4397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev/null && {
4404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4407 # Broken: success on invalid input.
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 # Passes both tests.
4418 rm -f conftest.err conftest.$ac_ext
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4426 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4443 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444 if test "${ac_cv_path_GREP+set}" = set; then
4445 $as_echo_n "(cached) " >&6
4447 if test -z "$GREP"; then
4448 ac_path_GREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in grep ggrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4459 # Check for GNU ac_path_GREP and select it if it is found.
4460 # Check for GNU $ac_path_GREP
4461 case `"$ac_path_GREP" --version 2>&1` in
4463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4466 $as_echo_n 0123456789 >"conftest.in"
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'GREP' >> "conftest.nl"
4473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 ac_count=`expr $ac_count + 1`
4476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_GREP="$ac_path_GREP"
4479 ac_path_GREP_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 $ac_path_GREP_found && break 3
4492 if test -z "$ac_cv_path_GREP"; then
4493 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4494 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4495 { (exit 1); exit 1; }; }
4498 ac_cv_path_GREP=$GREP
4502 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4503 $as_echo "$ac_cv_path_GREP" >&6; }
4504 GREP="$ac_cv_path_GREP"
4507 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4508 $as_echo_n "checking for egrep... " >&6; }
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 $as_echo_n "(cached) " >&6
4512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513 then ac_cv_path_EGREP="$GREP -E"
4515 if test -z "$EGREP"; then
4516 ac_path_EGREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in egrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4527 # Check for GNU ac_path_EGREP and select it if it is found.
4528 # Check for GNU $ac_path_EGREP
4529 case `"$ac_path_EGREP" --version 2>&1` in
4531 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4534 $as_echo_n 0123456789 >"conftest.in"
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'EGREP' >> "conftest.nl"
4541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 ac_count=`expr $ac_count + 1`
4544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_EGREP="$ac_path_EGREP"
4547 ac_path_EGREP_max=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555 $ac_path_EGREP_found && break 3
4560 if test -z "$ac_cv_path_EGREP"; then
4561 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4562 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4563 { (exit 1); exit 1; }; }
4566 ac_cv_path_EGREP=$EGREP
4571 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4572 $as_echo "$ac_cv_path_EGREP" >&6; }
4573 EGREP="$ac_cv_path_EGREP"
4576 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4577 $as_echo_n "checking for ANSI C header files... " >&6; }
4578 if test "${ac_cv_header_stdc+set}" = set; then
4579 $as_echo_n "(cached) " >&6
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4600 rm -f conftest.$ac_objext
4601 if { (ac_try="$ac_compile"
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4607 $as_echo "$ac_try_echo") >&5
4608 (eval "$ac_compile") 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && {
4615 test -z "$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4617 } && test -s conftest.$ac_objext; then
4618 ac_cv_header_stdc=yes
4620 $as_echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_cv_header_stdc=no
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640 $EGREP "memchr" >/dev/null 2>&1; then
4643 ac_cv_header_stdc=no
4649 if test $ac_cv_header_stdc = yes; then
4650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "free" >/dev/null 2>&1; then
4664 ac_cv_header_stdc=no
4670 if test $ac_cv_header_stdc = yes; then
4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672 if test "$cross_compiling" = yes; then
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687 # define ISLOWER(c) \
4688 (('a' <= (c) && (c) <= 'i') \
4689 || ('j' <= (c) && (c) <= 'r') \
4690 || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4699 for (i = 0; i < 256; i++)
4700 if (XOR (islower (i), ISLOWER (i))
4701 || toupper (i) != TOUPPER (i))
4706 rm -f conftest$ac_exeext
4707 if { (ac_try="$ac_link"
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_link") 2>&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4718 { (case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4723 $as_echo "$ac_try_echo") >&5
4724 (eval "$ac_try") 2>&5
4726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4730 $as_echo "$as_me: program exited with status $ac_status" >&5
4731 $as_echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_header_stdc=no
4737 rm -rf conftest.dSYM
4738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4745 $as_echo "$ac_cv_header_stdc" >&6; }
4746 if test $ac_cv_header_stdc = yes; then
4748 cat >>confdefs.h <<\_ACEOF
4749 #define STDC_HEADERS 1
4754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4765 inttypes.h stdint.h unistd.h
4767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4769 $as_echo_n "checking for $ac_header... " >&6; }
4770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4771 $as_echo_n "(cached) " >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4781 #include <$ac_header>
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791 (eval "$ac_compile") 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } && {
4798 test -z "$ac_c_werror_flag" ||
4799 test ! -s conftest.err
4800 } && test -s conftest.$ac_objext; then
4801 eval "$as_ac_Header=yes"
4803 $as_echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 eval "$as_ac_Header=no"
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 ac_res=`eval 'as_val=${'$as_ac_Header'}
4812 $as_echo "$as_val"'`
4813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4814 $as_echo "$ac_res" >&6; }
4815 as_val=`eval 'as_val=${'$as_ac_Header'}
4816 $as_echo "$as_val"'`
4817 if test "x$as_val" = x""yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830 # Check whether --with-tirpcinclude was given.
4831 if test "${with_tirpcinclude+set}" = set; then
4832 withval=$with_tirpcinclude; tirpc_header_dir=$withval
4834 tirpc_header_dir=/usr/include/tirpc
4839 if test "$enable_tirpc" != "no"; then
4842 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
4843 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4844 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4847 ac_check_lib_save_LIBS=$LIBS
4848 LIBS="-ltirpc $LIBS"
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 /* Override any GCC internal prototype to avoid an error.
4857 Use char because int might match the return type of a GCC
4858 builtin and then its argument prototype would still apply. */
4862 char clnt_tli_create ();
4866 return clnt_tli_create ();
4871 rm -f conftest.$ac_objext conftest$ac_exeext
4872 if { (ac_try="$ac_link"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879 (eval "$ac_link") 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && {
4886 test -z "$ac_c_werror_flag" ||
4887 test ! -s conftest.err
4888 } && test -s conftest$ac_exeext && {
4889 test "$cross_compiling" = yes ||
4890 $as_test_x conftest$ac_exeext
4892 ac_cv_lib_tirpc_clnt_tli_create=yes
4894 $as_echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ac_cv_lib_tirpc_clnt_tli_create=no
4900 rm -rf conftest.dSYM
4901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4902 conftest$ac_exeext conftest.$ac_ext
4903 LIBS=$ac_check_lib_save_LIBS
4905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
4906 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
4907 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
4908 cat >>confdefs.h <<_ACEOF
4909 #define HAVE_LIBTIRPC 1
4912 LIBS="-ltirpc $LIBS"
4915 if test "$enable_tirpc" = "yes"; then
4916 { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
4917 $as_echo "$as_me: error: libtirpc not found." >&2;}
4918 { (exit 1); exit 1; }; }
4920 { $as_echo "$as_me:$LINENO: WARNING: libtirpc not found. TIRPC disabled!" >&5
4921 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
4928 if test "$enable_tirpc" != "no"; then
4930 for ac_header in ${tirpc_header_dir}/netconfig.h
4932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4935 $as_echo_n "checking for $ac_header... " >&6; }
4936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4937 $as_echo_n "(cached) " >&6
4939 ac_res=`eval 'as_val=${'$as_ac_Header'}
4940 $as_echo "$as_val"'`
4941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4942 $as_echo "$ac_res" >&6; }
4944 # Is the header compilable?
4945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4946 $as_echo_n "checking $ac_header usability... " >&6; }
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 $ac_includes_default
4954 #include <$ac_header>
4956 rm -f conftest.$ac_objext
4957 if { (ac_try="$ac_compile"
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963 $as_echo "$ac_try_echo") >&5
4964 (eval "$ac_compile") 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && {
4971 test -z "$ac_c_werror_flag" ||
4972 test ! -s conftest.err
4973 } && test -s conftest.$ac_objext; then
4974 ac_header_compiler=yes
4976 $as_echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 ac_header_compiler=no
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4984 $as_echo "$ac_header_compiler" >&6; }
4986 # Is the header present?
4987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4988 $as_echo_n "checking $ac_header presence... " >&6; }
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 #include <$ac_header>
4997 if { (ac_try="$ac_cpp conftest.$ac_ext"
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003 $as_echo "$ac_try_echo") >&5
5004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } >/dev/null && {
5011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5014 ac_header_preproc=yes
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 ac_header_preproc=no
5022 rm -f conftest.err conftest.$ac_ext
5023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5024 $as_echo "$ac_header_preproc" >&6; }
5026 # So? What about this header?
5027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5033 ac_header_preproc=yes
5036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5039 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5043 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5049 ## ---------------------------------------- ##
5050 ## Report this to linux-nfs@vger.kernel.org ##
5051 ## ---------------------------------------- ##
5053 ) | sed "s/^/$as_me: WARNING: /" >&2
5056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 $as_echo_n "checking for $ac_header... " >&6; }
5058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5059 $as_echo_n "(cached) " >&6
5061 eval "$as_ac_Header=\$ac_header_preproc"
5063 ac_res=`eval 'as_val=${'$as_ac_Header'}
5064 $as_echo "$as_val"'`
5065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5066 $as_echo "$ac_res" >&6; }
5069 as_val=`eval 'as_val=${'$as_ac_Header'}
5070 $as_echo "$as_val"'`
5071 if test "x$as_val" = x""yes; then
5072 cat >>confdefs.h <<_ACEOF
5073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075 AM_CPPFLAGS="-I${tirpc_header_dir}"
5078 if test "$enable_tirpc" = "yes"; then
5079 { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
5080 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
5081 { (exit 1); exit 1; }; }
5083 { $as_echo "$as_me:$LINENO: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5084 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5098 { $as_echo "$as_me:$LINENO: checking for prctl" >&5
5099 $as_echo_n "checking for prctl... " >&6; }
5100 if test "${ac_cv_func_prctl+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 /* Define prctl to an innocuous variant, in case <limits.h> declares prctl.
5110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5111 #define prctl innocuous_prctl
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char prctl (); below.
5115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 <limits.h> exists even on freestanding compilers. */
5119 # include <limits.h>
5121 # include <assert.h>
5126 /* Override any GCC internal prototype to avoid an error.
5127 Use char because int might match the return type of a GCC
5128 builtin and then its argument prototype would still apply. */
5133 /* The GNU C library defines this for functions which it implements
5134 to always fail with ENOSYS. Some functions are actually named
5135 something starting with __ and the normal name is an alias. */
5136 #if defined __stub_prctl || defined __stub___prctl
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (ac_try="$ac_link"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155 $as_echo "$ac_try_echo") >&5
5156 (eval "$ac_link") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1 >conftest.err
5160 cat conftest.err >&5
5161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && {
5163 test -z "$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 } && test -s conftest$ac_exeext && {
5166 test "$cross_compiling" = yes ||
5167 $as_test_x conftest$ac_exeext
5169 ac_cv_func_prctl=yes
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5177 rm -rf conftest.dSYM
5178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5179 conftest$ac_exeext conftest.$ac_ext
5181 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_prctl" >&5
5182 $as_echo "$ac_cv_func_prctl" >&6; }
5185 { $as_echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
5186 $as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
5187 if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
5188 $as_echo_n "(cached) " >&6
5190 ac_check_lib_save_LIBS=$LIBS
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 /* Override any GCC internal prototype to avoid an error.
5200 Use char because int might match the return type of a GCC
5201 builtin and then its argument prototype would still apply. */
5205 char cap_get_proc ();
5209 return cap_get_proc ();
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (ac_try="$ac_link"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221 $as_echo "$ac_try_echo") >&5
5222 (eval "$ac_link") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest$ac_exeext && {
5232 test "$cross_compiling" = yes ||
5233 $as_test_x conftest$ac_exeext
5235 ac_cv_lib_cap_cap_get_proc=yes
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_lib_cap_cap_get_proc=no
5243 rm -rf conftest.dSYM
5244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245 conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
5249 $as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
5250 if test "x$ac_cv_lib_cap_cap_get_proc" = x""yes; then
5257 for ac_header in sys/capability.h
5259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5262 $as_echo_n "checking for $ac_header... " >&6; }
5263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5264 $as_echo_n "(cached) " >&6
5266 ac_res=`eval 'as_val=${'$as_ac_Header'}
5267 $as_echo "$as_val"'`
5268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5269 $as_echo "$ac_res" >&6; }
5271 # Is the header compilable?
5272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5273 $as_echo_n "checking $ac_header usability... " >&6; }
5274 cat >conftest.$ac_ext <<_ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5281 #include <$ac_header>
5283 rm -f conftest.$ac_objext
5284 if { (ac_try="$ac_compile"
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5290 $as_echo "$ac_try_echo") >&5
5291 (eval "$ac_compile") 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && {
5298 test -z "$ac_c_werror_flag" ||
5299 test ! -s conftest.err
5300 } && test -s conftest.$ac_objext; then
5301 ac_header_compiler=yes
5303 $as_echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 ac_header_compiler=no
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5311 $as_echo "$ac_header_compiler" >&6; }
5313 # Is the header present?
5314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5315 $as_echo_n "checking $ac_header presence... " >&6; }
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <$ac_header>
5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5330 $as_echo "$ac_try_echo") >&5
5331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } >/dev/null && {
5338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5341 ac_header_preproc=yes
5343 $as_echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_header_preproc=no
5349 rm -f conftest.err conftest.$ac_ext
5350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5351 $as_echo "$ac_header_preproc" >&6; }
5353 # So? What about this header?
5354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5360 ac_header_preproc=yes
5363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5376 ## ---------------------------------------- ##
5377 ## Report this to linux-nfs@vger.kernel.org ##
5378 ## ---------------------------------------- ##
5380 ) | sed "s/^/$as_me: WARNING: /" >&2
5383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5384 $as_echo_n "checking for $ac_header... " >&6; }
5385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386 $as_echo_n "(cached) " >&6
5388 eval "$as_ac_Header=\$ac_header_preproc"
5390 ac_res=`eval 'as_val=${'$as_ac_Header'}
5391 $as_echo "$as_val"'`
5392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5393 $as_echo "$ac_res" >&6; }
5396 as_val=`eval 'as_val=${'$as_ac_Header'}
5397 $as_echo "$as_val"'`
5398 if test "x$as_val" = x""yes; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 { { $as_echo "$as_me:$LINENO: error: libcap headers not found." >&5
5405 $as_echo "$as_me: error: libcap headers not found." >&2;}
5406 { (exit 1); exit 1; }; }
5414 # Check whether user wants TCP wrappers support
5418 # Check whether --with-tcp-wrappers was given.
5419 if test "${with_tcp_wrappers+set}" = set; then
5420 withval=$with_tcp_wrappers; with_tcpw=$withval
5425 if test "x$with_tcpw" != "xno" ; then
5427 saved_LDFLAGS="$LDFLAGS"
5428 saved_CPPFLAGS="$CPPFLAGS"
5429 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5430 if test -d "${with_tcpw}/lib"; then
5431 if test -n "${need_dash_r}"; then
5432 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5434 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5437 if test -n "${need_dash_r}"; then
5438 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5440 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5443 if test -d "${with_tcpw}/include"; then
5444 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5446 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5450 LIBS="$LIBWRAP $LIBS"
5451 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
5452 $as_echo_n "checking for libwrap... " >&6; }
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5461 int deny_severity = 0, allow_severity = 0;
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (ac_try="$ac_link"
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5478 $as_echo "$ac_try_echo") >&5
5479 (eval "$ac_link") 2>conftest.er1
5481 grep -v '^ *+' conftest.er1 >conftest.err
5483 cat conftest.err >&5
5484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && {
5486 test -z "$ac_c_werror_flag" ||
5487 test ! -s conftest.err
5488 } && test -s conftest$ac_exeext && {
5489 test "$cross_compiling" = yes ||
5490 $as_test_x conftest$ac_exeext
5493 { $as_echo "$as_me:$LINENO: result: yes" >&5
5494 $as_echo "yes" >&6; }
5497 cat >>confdefs.h <<\_ACEOF
5502 cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_LIBWRAP 1
5507 cat >>confdefs.h <<\_ACEOF
5508 #define HAVE_TCP_WRAPPER 1
5514 $as_echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5518 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
5519 $as_echo "$as_me: error: *** libwrap missing" >&2;}
5520 { (exit 1); exit 1; }; }
5525 rm -rf conftest.dSYM
5526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5527 conftest$ac_exeext conftest.$ac_ext
5535 # Arrange for large-file support
5536 # Check whether --enable-largefile was given.
5537 if test "${enable_largefile+set}" = set; then
5538 enableval=$enable_largefile;
5541 if test "$enable_largefile" != no; then
5543 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5544 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5545 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5546 $as_echo_n "(cached) " >&6
5548 ac_cv_sys_largefile_CC=no
5549 if test "$GCC" != yes; then
5552 # IRIX 6.2 and later do not support large files by default,
5553 # so use the C compiler's -n32 option if that helps.
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <sys/types.h>
5561 /* Check that off_t can represent 2**63 - 1 correctly.
5562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5563 since some C++ compilers masquerading as C compilers
5564 incorrectly reject 9223372036854775807. */
5565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5567 && LARGE_OFF_T % 2147483647 == 1)
5577 rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584 $as_echo "$ac_try_echo") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && {
5592 test -z "$ac_c_werror_flag" ||
5593 test ! -s conftest.err
5594 } && test -s conftest.$ac_objext; then
5597 $as_echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5603 rm -f core conftest.err conftest.$ac_objext
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612 $as_echo "$ac_try_echo") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_sys_largefile_CC=' -n32'; break
5625 $as_echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5631 rm -f core conftest.err conftest.$ac_objext
5635 rm -f conftest.$ac_ext
5638 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5639 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5640 if test "$ac_cv_sys_largefile_CC" != no; then
5641 CC=$CC$ac_cv_sys_largefile_CC
5644 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5645 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5646 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5647 $as_echo_n "(cached) " >&6
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5680 $as_echo "$ac_try_echo") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.$ac_objext; then
5691 ac_cv_sys_file_offset_bits=no; break
5693 $as_echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #define _FILE_OFFSET_BITS 64
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5731 $as_echo "$ac_try_echo") >&5
5732 (eval "$ac_compile") 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest.$ac_objext; then
5742 ac_cv_sys_file_offset_bits=64; break
5744 $as_echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 ac_cv_sys_file_offset_bits=unknown
5755 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5756 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5757 case $ac_cv_sys_file_offset_bits in #(
5760 cat >>confdefs.h <<_ACEOF
5761 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5766 if test $ac_cv_sys_file_offset_bits = unknown; then
5767 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5768 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5769 if test "${ac_cv_sys_large_files+set}" = set; then
5770 $as_echo_n "(cached) " >&6
5773 cat >conftest.$ac_ext <<_ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 ac_cv_sys_large_files=no; break
5816 $as_echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 #define _LARGE_FILES 1
5830 #include <sys/types.h>
5831 /* Check that off_t can represent 2**63 - 1 correctly.
5832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5833 since some C++ compilers masquerading as C compilers
5834 incorrectly reject 9223372036854775807. */
5835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5837 && LARGE_OFF_T % 2147483647 == 1)
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 ac_cv_sys_large_files=1; break
5867 $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 ac_cv_sys_large_files=unknown
5878 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5879 $as_echo "$ac_cv_sys_large_files" >&6; }
5880 case $ac_cv_sys_large_files in #(
5883 cat >>confdefs.h <<_ACEOF
5884 #define _LARGE_FILES $ac_cv_sys_large_files
5894 ac_config_headers="$ac_config_headers support/include/config.h"
5897 # Checks for programs.
5899 ac_cpp='$CXXCPP $CPPFLAGS'
5900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5903 if test -z "$CXX"; then
5904 if test -n "$CCC"; then
5907 if test -n "$ac_tool_prefix"; then
5908 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_CXX+set}" = set; then
5915 $as_echo_n "(cached) " >&6
5917 if test -n "$CXX"; then
5918 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 if test -n "$CXX"; then
5939 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5940 $as_echo "$CXX" >&6; }
5942 { $as_echo "$as_me:$LINENO: result: no" >&5
5943 $as_echo "no" >&6; }
5947 test -n "$CXX" && break
5950 if test -z "$CXX"; then
5952 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5954 # Extract the first word of "$ac_prog", so it can be a program name with args.
5955 set dummy $ac_prog; ac_word=$2
5956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5959 $as_echo_n "(cached) " >&6
5961 if test -n "$ac_ct_CXX"; then
5962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_CXX="$ac_prog"
5972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5982 if test -n "$ac_ct_CXX"; then
5983 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5984 $as_echo "$ac_ct_CXX" >&6; }
5986 { $as_echo "$as_me:$LINENO: result: no" >&5
5987 $as_echo "no" >&6; }
5991 test -n "$ac_ct_CXX" && break
5994 if test "x$ac_ct_CXX" = x; then
5997 case $cross_compiling:$ac_tool_warned in
5999 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6009 # Provide some information about the compiler.
6010 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6013 { (ac_try="$ac_compiler --version >&5"
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_compiler --version >&5") 2>&5
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }
6024 { (ac_try="$ac_compiler -v >&5"
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6030 $as_echo "$ac_try_echo") >&5
6031 (eval "$ac_compiler -v >&5") 2>&5
6033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }
6035 { (ac_try="$ac_compiler -V >&5"
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042 (eval "$ac_compiler -V >&5") 2>&5
6044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }
6047 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6048 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6049 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6050 $as_echo_n "(cached) " >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_cxx_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6090 $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6100 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6101 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6102 if test $ac_compiler_gnu = yes; then
6107 ac_test_CXXFLAGS=${CXXFLAGS+set}
6108 ac_save_CXXFLAGS=$CXXFLAGS
6109 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6110 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6111 if test "${ac_cv_prog_cxx_g+set}" = set; then
6112 $as_echo_n "(cached) " >&6
6114 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6115 ac_cxx_werror_flag=yes
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_cxx_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_cv_prog_cxx_g=yes
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_cxx_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_cxx_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 ac_cv_prog_cxx_g=yes
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6247 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6248 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6249 if test "$ac_test_CXXFLAGS" = set; then
6250 CXXFLAGS=$ac_save_CXXFLAGS
6251 elif test $ac_cv_prog_cxx_g = yes; then
6252 if test "$GXX" = yes; then
6258 if test "$GXX" = yes; then
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270 depcc="$CXX" am_compiler_list=
6272 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6273 $as_echo_n "checking dependency style of $depcc... " >&6; }
6274 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6275 $as_echo_n "(cached) " >&6
6277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6278 # We make a subdir and do the tests there. Otherwise we can end up
6279 # making bogus files that we don't know about and never remove. For
6280 # instance it was reported that on HP-UX the gcc test will end up
6281 # making a dummy file named `D' -- because `-MD' means `put the output
6284 # Copy depcomp to subdir because otherwise we won't find it if we're
6285 # using a relative directory.
6286 cp "$am_depcomp" conftest.dir
6288 # We will build objects and dependencies in a subdirectory because
6289 # it helps to detect inapplicable dependency modes. For instance
6290 # both Tru64's cc and ICC support -MD to output dependencies as a
6291 # side effect of compilation, but ICC will put the dependencies in
6292 # the current directory while Tru64 will put them in the object
6296 am_cv_CXX_dependencies_compiler_type=none
6297 if test "$am_compiler_list" = ""; then
6298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6301 case " $depcc " in #(
6302 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6305 for depmode in $am_compiler_list; do
6306 # Setup a source with many dependencies, because some compilers
6307 # like to wrap large dependency lists on column 80 (with \), and
6308 # we should not choose a depcomp mode which is confused by this.
6310 # We need to recreate these files for each test, as the compiler may
6311 # overwrite some of them when testing with obscure command lines.
6312 # This happens at least with the AIX C compiler.
6314 for i in 1 2 3 4 5 6; do
6315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6316 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6317 # Solaris 8's {/usr,}/bin/sh.
6318 touch sub/conftst$i.h
6320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6322 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6323 # mode. It turns out that the SunPro C++ compiler does not properly
6324 # handle `-M -o', and we need to detect this. Also, some Intel
6325 # versions had trouble with output in subdirs
6326 am__obj=sub/conftest.${OBJEXT-o}
6327 am__minus_obj="-o $am__obj"
6330 # This depmode causes a compiler race in universal mode.
6331 test "$am__universal" = false || continue
6334 # after this tag, mechanisms are not by side-effect, so they'll
6335 # only be used when explicitly requested
6336 if test "x$enable_dependency_tracking" = xyes; then
6342 msvisualcpp | msvcmsys)
6343 # This compiler won't grok `-c -o', but also, the minuso test has
6344 # not run yet. These depmodes are late enough in the game, and
6345 # so weak that their functioning should not be impacted.
6346 am__obj=conftest.${OBJEXT-o}
6351 if depmode=$depmode \
6352 source=sub/conftest.c object=$am__obj \
6353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6354 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6355 >/dev/null 2>conftest.err &&
6356 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6357 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6358 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6359 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6360 # icc doesn't choke on unknown options, it will just issue warnings
6361 # or remarks (even with -Werror). So we grep stderr for any message
6362 # that says an option was ignored or not supported.
6363 # When given -MP, icc 7.0 and 7.1 complain thusly:
6364 # icc: Command line warning: ignoring option '-M'; no argument required
6365 # The diagnosis changed in icc 8.0:
6366 # icc: Command line remark: option '-MP' not supported
6367 if (grep 'ignoring option' conftest.err ||
6368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6369 am_cv_CXX_dependencies_compiler_type=$depmode
6378 am_cv_CXX_dependencies_compiler_type=none
6382 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6383 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6384 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6387 test "x$enable_dependency_tracking" != xno \
6388 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6389 am__fastdepCXX_TRUE=
6390 am__fastdepCXX_FALSE='#'
6392 am__fastdepCXX_TRUE='#'
6393 am__fastdepCXX_FALSE=
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_CC+set}" = set; then
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$CC"; then
6411 ac_cv_prog_CC="$CC" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 if test -n "$CC"; then
6432 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6433 $as_echo "$CC" >&6; }
6435 { $as_echo "$as_me:$LINENO: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_CC"; then
6443 # Extract the first word of "gcc", so it can be a program name with args.
6444 set dummy gcc; ac_word=$2
6445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_CC"; then
6451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_CC="gcc"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6471 if test -n "$ac_ct_CC"; then
6472 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6473 $as_echo "$ac_ct_CC" >&6; }
6475 { $as_echo "$as_me:$LINENO: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_CC" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6494 if test -z "$CC"; then
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}cc; ac_word=$2
6498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_prog_CC+set}" = set; then
6501 $as_echo_n "(cached) " >&6
6503 if test -n "$CC"; then
6504 ac_cv_prog_CC="$CC" # Let the user override the test.
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_CC="${ac_tool_prefix}cc"
6514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 if test -n "$CC"; then
6525 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6526 $as_echo "$CC" >&6; }
6528 { $as_echo "$as_me:$LINENO: result: no" >&5
6529 $as_echo "no" >&6; }
6535 if test -z "$CC"; then
6536 # Extract the first word of "cc", so it can be a program name with args.
6537 set dummy cc; ac_word=$2
6538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_CC+set}" = set; then
6541 $as_echo_n "(cached) " >&6
6543 if test -n "$CC"; then
6544 ac_cv_prog_CC="$CC" # Let the user override the test.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6555 ac_prog_rejected=yes
6559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 if test $ac_prog_rejected = yes; then
6567 # We found a bogon in the path, so make sure we never use it.
6568 set dummy $ac_cv_prog_CC
6570 if test $# != 0; then
6571 # We chose a different compiler from the bogus one.
6572 # However, it has the same basename, so the bogon will be chosen
6573 # first if we set CC to just the basename; use the full file name.
6575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6581 if test -n "$CC"; then
6582 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6583 $as_echo "$CC" >&6; }
6585 { $as_echo "$as_me:$LINENO: result: no" >&5
6586 $as_echo "no" >&6; }
6591 if test -z "$CC"; then
6592 if test -n "$ac_tool_prefix"; then
6593 for ac_prog in cl.exe
6595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_CC+set}" = set; then
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$CC"; then
6603 ac_cv_prog_CC="$CC" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 if test -n "$CC"; then
6624 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6625 $as_echo "$CC" >&6; }
6627 { $as_echo "$as_me:$LINENO: result: no" >&5
6628 $as_echo "no" >&6; }
6632 test -n "$CC" && break
6635 if test -z "$CC"; then
6637 for ac_prog in cl.exe
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$ac_ct_CC"; then
6647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_ac_ct_CC="$ac_prog"
6657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6667 if test -n "$ac_ct_CC"; then
6668 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6669 $as_echo "$ac_ct_CC" >&6; }
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6676 test -n "$ac_ct_CC" && break
6679 if test "x$ac_ct_CC" = x; then
6682 case $cross_compiling:$ac_tool_warned in
6684 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6695 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6697 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6698 See \`config.log' for more details." >&5
6699 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6700 See \`config.log' for more details." >&2;}
6701 { (exit 1); exit 1; }; }; }
6703 # Provide some information about the compiler.
6704 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6707 { (ac_try="$ac_compiler --version >&5"
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6713 $as_echo "$ac_try_echo") >&5
6714 (eval "$ac_compiler --version >&5") 2>&5
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }
6718 { (ac_try="$ac_compiler -v >&5"
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6724 $as_echo "$ac_try_echo") >&5
6725 (eval "$ac_compiler -v >&5") 2>&5
6727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }
6729 { (ac_try="$ac_compiler -V >&5"
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6735 $as_echo "$ac_try_echo") >&5
6736 (eval "$ac_compiler -V >&5") 2>&5
6738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }
6741 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6743 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6744 $as_echo_n "(cached) " >&6
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6774 grep -v '^ *+' conftest.er1 >conftest.err
6776 cat conftest.err >&5
6777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.$ac_objext; then
6784 $as_echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6794 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6796 if test $ac_compiler_gnu = yes; then
6801 ac_test_CFLAGS=${CFLAGS+set}
6802 ac_save_CFLAGS=$CFLAGS
6803 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6805 if test "${ac_cv_prog_cc_g+set}" = set; then
6806 $as_echo_n "(cached) " >&6
6808 ac_save_c_werror_flag=$ac_c_werror_flag
6809 ac_c_werror_flag=yes
6812 cat >conftest.$ac_ext <<_ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834 $as_echo "$ac_try_echo") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6837 grep -v '^ *+' conftest.er1 >conftest.err
6839 cat conftest.err >&5
6840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
6847 $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6886 $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_c_werror_flag=$ac_save_c_werror_flag
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914 (eval "$ac_compile") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 } && test -s conftest.$ac_objext; then
6926 $as_echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 ac_c_werror_flag=$ac_save_c_werror_flag
6941 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6942 $as_echo "$ac_cv_prog_cc_g" >&6; }
6943 if test "$ac_test_CFLAGS" = set; then
6944 CFLAGS=$ac_save_CFLAGS
6945 elif test $ac_cv_prog_cc_g = yes; then
6946 if test "$GCC" = yes; then
6952 if test "$GCC" = yes; then
6958 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6960 if test "${ac_cv_prog_cc_c89+set}" = set; then
6961 $as_echo_n "(cached) " >&6
6963 ac_cv_prog_cc_c89=no
6965 cat >conftest.$ac_ext <<_ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6973 #include <sys/types.h>
6974 #include <sys/stat.h>
6975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6976 struct buf { int x; };
6977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6978 static char *e (p, i)
6984 static char *f (char * (*g) (char **, int), char **p, ...)
6989 s = g (p, va_arg (v,int));
6994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6995 function prototypes and stuff, but not '\xHH' hex character constants.
6996 These don't provoke an error unfortunately, instead are silently treated
6997 as 'x'. The following induces an error, until -std is added to get
6998 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6999 array size at least. It's necessary to write '\x00'==0 to get something
7000 that's true only with -std. */
7001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7004 inside strings and character constants. */
7006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7008 int test (int i, double x);
7009 struct s1 {int (*f) (int a);};
7010 struct s2 {int (*f) (double a);};
7011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7023 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7025 CC="$ac_save_CC $ac_arg"
7026 rm -f conftest.$ac_objext
7027 if { (ac_try="$ac_compile"
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7033 $as_echo "$ac_try_echo") >&5
7034 (eval "$ac_compile") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest.$ac_objext; then
7044 ac_cv_prog_cc_c89=$ac_arg
7046 $as_echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7052 rm -f core conftest.err conftest.$ac_objext
7053 test "x$ac_cv_prog_cc_c89" != "xno" && break
7055 rm -f conftest.$ac_ext
7060 case "x$ac_cv_prog_cc_c89" in
7062 { $as_echo "$as_me:$LINENO: result: none needed" >&5
7063 $as_echo "none needed" >&6; } ;;
7065 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
7066 $as_echo "unsupported" >&6; } ;;
7068 CC="$CC $ac_cv_prog_cc_c89"
7069 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080 depcc="$CC" am_compiler_list=
7082 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7083 $as_echo_n "checking dependency style of $depcc... " >&6; }
7084 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7085 $as_echo_n "(cached) " >&6
7087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7088 # We make a subdir and do the tests there. Otherwise we can end up
7089 # making bogus files that we don't know about and never remove. For
7090 # instance it was reported that on HP-UX the gcc test will end up
7091 # making a dummy file named `D' -- because `-MD' means `put the output
7094 # Copy depcomp to subdir because otherwise we won't find it if we're
7095 # using a relative directory.
7096 cp "$am_depcomp" conftest.dir
7098 # We will build objects and dependencies in a subdirectory because
7099 # it helps to detect inapplicable dependency modes. For instance
7100 # both Tru64's cc and ICC support -MD to output dependencies as a
7101 # side effect of compilation, but ICC will put the dependencies in
7102 # the current directory while Tru64 will put them in the object
7106 am_cv_CC_dependencies_compiler_type=none
7107 if test "$am_compiler_list" = ""; then
7108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7111 case " $depcc " in #(
7112 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7115 for depmode in $am_compiler_list; do
7116 # Setup a source with many dependencies, because some compilers
7117 # like to wrap large dependency lists on column 80 (with \), and
7118 # we should not choose a depcomp mode which is confused by this.
7120 # We need to recreate these files for each test, as the compiler may
7121 # overwrite some of them when testing with obscure command lines.
7122 # This happens at least with the AIX C compiler.
7124 for i in 1 2 3 4 5 6; do
7125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7126 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7127 # Solaris 8's {/usr,}/bin/sh.
7128 touch sub/conftst$i.h
7130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7132 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7133 # mode. It turns out that the SunPro C++ compiler does not properly
7134 # handle `-M -o', and we need to detect this. Also, some Intel
7135 # versions had trouble with output in subdirs
7136 am__obj=sub/conftest.${OBJEXT-o}
7137 am__minus_obj="-o $am__obj"
7140 # This depmode causes a compiler race in universal mode.
7141 test "$am__universal" = false || continue
7144 # after this tag, mechanisms are not by side-effect, so they'll
7145 # only be used when explicitly requested
7146 if test "x$enable_dependency_tracking" = xyes; then
7152 msvisualcpp | msvcmsys)
7153 # This compiler won't grok `-c -o', but also, the minuso test has
7154 # not run yet. These depmodes are late enough in the game, and
7155 # so weak that their functioning should not be impacted.
7156 am__obj=conftest.${OBJEXT-o}
7161 if depmode=$depmode \
7162 source=sub/conftest.c object=$am__obj \
7163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7165 >/dev/null 2>conftest.err &&
7166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7170 # icc doesn't choke on unknown options, it will just issue warnings
7171 # or remarks (even with -Werror). So we grep stderr for any message
7172 # that says an option was ignored or not supported.
7173 # When given -MP, icc 7.0 and 7.1 complain thusly:
7174 # icc: Command line warning: ignoring option '-M'; no argument required
7175 # The diagnosis changed in icc 8.0:
7176 # icc: Command line remark: option '-MP' not supported
7177 if (grep 'ignoring option' conftest.err ||
7178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7179 am_cv_CC_dependencies_compiler_type=$depmode
7188 am_cv_CC_dependencies_compiler_type=none
7192 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7193 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7197 test "x$enable_dependency_tracking" != xno \
7198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7200 am__fastdepCC_FALSE='#'
7202 am__fastdepCC_TRUE='#'
7203 am__fastdepCC_FALSE=
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7214 # On Suns, sometimes $CPP names a directory.
7215 if test -n "$CPP" && test -d "$CPP"; then
7218 if test -z "$CPP"; then
7219 if test "${ac_cv_prog_CPP+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7222 # Double quotes because CPP needs to be expanded
7223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7226 for ac_c_preproc_warn_flag in '' yes
7228 # Use a header file that comes with gcc, so configuring glibc
7229 # with a fresh cross-compiler works.
7230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231 # <limits.h> exists even on freestanding compilers.
7232 # On the NeXT, cc -E runs the code through the compiler's parser,
7233 # not just through cpp. "Syntax error" is here to catch this case.
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7241 # include <limits.h>
7243 # include <assert.h>
7247 if { (ac_try="$ac_cpp conftest.$ac_ext"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } >/dev/null && {
7261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7266 $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 # Broken: fails on valid input.
7273 rm -f conftest.err conftest.$ac_ext
7275 # OK, works on sane cases. Now check whether nonexistent headers
7276 # can be detected and how.
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 #include <ac_nonexistent.h>
7285 if { (ac_try="$ac_cpp conftest.$ac_ext"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } >/dev/null && {
7299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7302 # Broken: success on invalid input.
7305 $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 # Passes both tests.
7313 rm -f conftest.err conftest.$ac_ext
7316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317 rm -f conftest.err conftest.$ac_ext
7318 if $ac_preproc_ok; then
7330 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7331 $as_echo "$CPP" >&6; }
7333 for ac_c_preproc_warn_flag in '' yes
7335 # Use a header file that comes with gcc, so configuring glibc
7336 # with a fresh cross-compiler works.
7337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338 # <limits.h> exists even on freestanding compilers.
7339 # On the NeXT, cc -E runs the code through the compiler's parser,
7340 # not just through cpp. "Syntax error" is here to catch this case.
7341 cat >conftest.$ac_ext <<_ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7348 # include <limits.h>
7350 # include <assert.h>
7354 if { (ac_try="$ac_cpp conftest.$ac_ext"
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } >/dev/null && {
7368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7373 $as_echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 # Broken: fails on valid input.
7380 rm -f conftest.err conftest.$ac_ext
7382 # OK, works on sane cases. Now check whether nonexistent headers
7383 # can be detected and how.
7384 cat >conftest.$ac_ext <<_ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <ac_nonexistent.h>
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7398 $as_echo "$ac_try_echo") >&5
7399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } >/dev/null && {
7406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7409 # Broken: success on invalid input.
7412 $as_echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 # Passes both tests.
7420 rm -f conftest.err conftest.$ac_ext
7423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7424 rm -f conftest.err conftest.$ac_ext
7425 if $ac_preproc_ok; then
7428 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7430 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7431 See \`config.log' for more details." >&5
7432 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7433 See \`config.log' for more details." >&2;}
7434 { (exit 1); exit 1; }; }; }
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443 # Find a good install program. We prefer a C program (faster),
7444 # so one script is as good as another. But avoid the broken or
7445 # incompatible versions:
7446 # SysV /etc/install, /usr/sbin/install
7447 # SunOS /usr/etc/install
7448 # IRIX /sbin/install
7450 # AmigaOS /C/install, which installs bootblocks on floppy discs
7451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7454 # OS/2's system install, which has a completely different semantic
7455 # ./install, which can be erroneously created by make from ./install.sh.
7456 # Reject install programs that cannot install multiple files.
7457 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7459 if test -z "$INSTALL"; then
7460 if test "${ac_cv_path_install+set}" = set; then
7461 $as_echo_n "(cached) " >&6
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 # Account for people who put trailing slashes in PATH elements.
7470 ./ | .// | /cC/* | \
7471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7475 # OSF1 and SCO ODT 3.0 have their own names for install.
7476 # Don't use installbsd from OSF since it installs stuff as root
7478 for ac_prog in ginstall scoinst install; do
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7481 if test $ac_prog = install &&
7482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7483 # AIX install. It has an incompatible calling convention.
7485 elif test $ac_prog = install &&
7486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7487 # program-specific install script used by HP pwplus--don't use.
7490 rm -rf conftest.one conftest.two conftest.dir
7491 echo one > conftest.one
7492 echo two > conftest.two
7494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7495 test -s conftest.one && test -s conftest.two &&
7496 test -s conftest.dir/conftest.one &&
7497 test -s conftest.dir/conftest.two
7499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7512 rm -rf conftest.one conftest.two conftest.dir
7515 if test "${ac_cv_path_install+set}" = set; then
7516 INSTALL=$ac_cv_path_install
7518 # As a last resort, use the slow shell script. Don't cache a
7519 # value for INSTALL within a source directory, because that will
7520 # break other packages using the cache if that directory is
7521 # removed, or if the value is a relative name.
7522 INSTALL=$ac_install_sh
7525 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7526 $as_echo "$INSTALL" >&6; }
7528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7529 # It thinks the first close brace ends the variable substitution.
7530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7536 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7537 $as_echo_n "checking whether ln -s works... " >&6; }
7539 if test "$LN_S" = "ln -s"; then
7540 { $as_echo "$as_me:$LINENO: result: yes" >&5
7541 $as_echo "yes" >&6; }
7543 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7544 $as_echo "no, using $LN_S" >&6; }
7547 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7548 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7550 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7551 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7552 $as_echo_n "(cached) " >&6
7554 cat >conftest.make <<\_ACEOF
7557 @echo '@@@%%%=$(MAKE)=@@@%%%'
7559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7560 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7562 eval ac_cv_prog_make_${ac_make}_set=yes;;
7564 eval ac_cv_prog_make_${ac_make}_set=no;;
7568 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7569 { $as_echo "$as_me:$LINENO: result: yes" >&5
7570 $as_echo "yes" >&6; }
7573 { $as_echo "$as_me:$LINENO: result: no" >&5
7574 $as_echo "no" >&6; }
7575 SET_MAKE="MAKE=${MAKE-make}"
7580 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7581 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7586 macro_version='2.2.6b'
7587 macro_revision='1.3017'
7601 ltmain="$ac_aux_dir/ltmain.sh"
7603 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7604 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7605 if test "${ac_cv_path_SED+set}" = set; then
7606 $as_echo_n "(cached) " >&6
7608 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7609 for ac_i in 1 2 3 4 5 6 7; do
7610 ac_script="$ac_script$as_nl$ac_script"
7612 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7613 $as_unset ac_script || ac_script=
7614 if test -z "$SED"; then
7615 ac_path_SED_found=false
7616 # Loop through the user's path and test for each of PROGNAME-LIST
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_prog in sed gsed; do
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7625 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7626 # Check for GNU ac_path_SED and select it if it is found.
7627 # Check for GNU $ac_path_SED
7628 case `"$ac_path_SED" --version 2>&1` in
7630 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7633 $as_echo_n 0123456789 >"conftest.in"
7636 cat "conftest.in" "conftest.in" >"conftest.tmp"
7637 mv "conftest.tmp" "conftest.in"
7638 cp "conftest.in" "conftest.nl"
7639 $as_echo '' >> "conftest.nl"
7640 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7642 ac_count=`expr $ac_count + 1`
7643 if test $ac_count -gt ${ac_path_SED_max-0}; then
7644 # Best one so far, save it but keep looking for a better one
7645 ac_cv_path_SED="$ac_path_SED"
7646 ac_path_SED_max=$ac_count
7648 # 10*(2^10) chars as input seems more than enough
7649 test $ac_count -gt 10 && break
7651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7654 $ac_path_SED_found && break 3
7659 if test -z "$ac_cv_path_SED"; then
7660 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7661 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7662 { (exit 1); exit 1; }; }
7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7670 $as_echo "$ac_cv_path_SED" >&6; }
7671 SED="$ac_cv_path_SED"
7674 test -z "$SED" && SED=sed
7675 Xsed="$SED -e 1s/^X//"
7687 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7688 $as_echo_n "checking for fgrep... " >&6; }
7689 if test "${ac_cv_path_FGREP+set}" = set; then
7690 $as_echo_n "(cached) " >&6
7692 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7693 then ac_cv_path_FGREP="$GREP -F"
7695 if test -z "$FGREP"; then
7696 ac_path_FGREP_found=false
7697 # Loop through the user's path and test for each of PROGNAME-LIST
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7702 test -z "$as_dir" && as_dir=.
7703 for ac_prog in fgrep; do
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7706 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7707 # Check for GNU ac_path_FGREP and select it if it is found.
7708 # Check for GNU $ac_path_FGREP
7709 case `"$ac_path_FGREP" --version 2>&1` in
7711 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7714 $as_echo_n 0123456789 >"conftest.in"
7717 cat "conftest.in" "conftest.in" >"conftest.tmp"
7718 mv "conftest.tmp" "conftest.in"
7719 cp "conftest.in" "conftest.nl"
7720 $as_echo 'FGREP' >> "conftest.nl"
7721 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7723 ac_count=`expr $ac_count + 1`
7724 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7725 # Best one so far, save it but keep looking for a better one
7726 ac_cv_path_FGREP="$ac_path_FGREP"
7727 ac_path_FGREP_max=$ac_count
7729 # 10*(2^10) chars as input seems more than enough
7730 test $ac_count -gt 10 && break
7732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7735 $ac_path_FGREP_found && break 3
7740 if test -z "$ac_cv_path_FGREP"; then
7741 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7742 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7743 { (exit 1); exit 1; }; }
7746 ac_cv_path_FGREP=$FGREP
7751 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7752 $as_echo "$ac_cv_path_FGREP" >&6; }
7753 FGREP="$ac_cv_path_FGREP"
7756 test -z "$GREP" && GREP=grep
7776 # Check whether --with-gnu-ld was given.
7777 if test "${with_gnu_ld+set}" = set; then
7778 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7784 if test "$GCC" = yes; then
7785 # Check if gcc -print-prog-name=ld gives a path.
7786 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7787 $as_echo_n "checking for ld used by $CC... " >&6; }
7790 # gcc leaves a trailing carriage return which upsets mingw
7791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7796 # Accept absolute paths.
7798 re_direlt='/[^/][^/]*/\.\./'
7799 # Canonicalize the pathname of ld
7800 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7801 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7802 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7804 test -z "$LD" && LD="$ac_prog"
7807 # If it fails, then pretend we aren't using GCC.
7811 # If it is relative, then search for the first ld in PATH.
7815 elif test "$with_gnu_ld" = yes; then
7816 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7817 $as_echo_n "checking for GNU ld... " >&6; }
7819 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7820 $as_echo_n "checking for non-GNU ld... " >&6; }
7822 if test "${lt_cv_path_LD+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7825 if test -z "$LD"; then
7826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7827 for ac_dir in $PATH; do
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7831 lt_cv_path_LD="$ac_dir/$ac_prog"
7832 # Check to see if the program is GNU ld. I'd rather use --version,
7833 # but apparently some variants of GNU ld only accept -v.
7834 # Break only if it was the GNU/non-GNU ld that we prefer.
7835 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7836 *GNU* | *'with BFD'*)
7837 test "$with_gnu_ld" != no && break
7840 test "$with_gnu_ld" != yes && break
7847 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7852 if test -n "$LD"; then
7853 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7854 $as_echo "$LD" >&6; }
7856 { $as_echo "$as_me:$LINENO: result: no" >&5
7857 $as_echo "no" >&6; }
7859 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7860 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7861 { (exit 1); exit 1; }; }
7862 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7864 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7865 $as_echo_n "(cached) " >&6
7867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7868 case `$LD -v 2>&1 </dev/null` in
7869 *GNU* | *'with BFD'*)
7870 lt_cv_prog_gnu_ld=yes
7873 lt_cv_prog_gnu_ld=no
7877 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7879 with_gnu_ld=$lt_cv_prog_gnu_ld
7889 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7891 if test "${lt_cv_path_NM+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7894 if test -n "$NM"; then
7895 # Let the user override the test.
7898 lt_nm_to_check="${ac_tool_prefix}nm"
7899 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7900 lt_nm_to_check="$lt_nm_to_check nm"
7902 for lt_tmp_nm in $lt_nm_to_check; do
7903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7904 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7906 test -z "$ac_dir" && ac_dir=.
7907 tmp_nm="$ac_dir/$lt_tmp_nm"
7908 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7909 # Check to see if the nm accepts a BSD-compat flag.
7910 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7911 # nm: unknown option "B" ignored
7912 # Tru64's nm complains that /dev/null is an invalid object file
7913 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7914 */dev/null* | *'Invalid file or object type'*)
7915 lt_cv_path_NM="$tmp_nm -B"
7919 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7921 lt_cv_path_NM="$tmp_nm -p"
7925 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7926 continue # so that we can try to find one that supports BSD flags
7935 : ${lt_cv_path_NM=no}
7938 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7939 $as_echo "$lt_cv_path_NM" >&6; }
7940 if test "$lt_cv_path_NM" != "no"; then
7943 # Didn't find any BSD compatible name lister, look for dumpbin.
7944 if test -n "$ac_tool_prefix"; then
7945 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7952 $as_echo_n "(cached) " >&6
7954 if test -n "$DUMPBIN"; then
7955 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 DUMPBIN=$ac_cv_prog_DUMPBIN
7975 if test -n "$DUMPBIN"; then
7976 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7977 $as_echo "$DUMPBIN" >&6; }
7979 { $as_echo "$as_me:$LINENO: result: no" >&5
7980 $as_echo "no" >&6; }
7984 test -n "$DUMPBIN" && break
7987 if test -z "$DUMPBIN"; then
7988 ac_ct_DUMPBIN=$DUMPBIN
7989 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7991 # Extract the first word of "$ac_prog", so it can be a program name with args.
7992 set dummy $ac_prog; ac_word=$2
7993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7998 if test -n "$ac_ct_DUMPBIN"; then
7999 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8019 if test -n "$ac_ct_DUMPBIN"; then
8020 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8021 $as_echo "$ac_ct_DUMPBIN" >&6; }
8023 { $as_echo "$as_me:$LINENO: result: no" >&5
8024 $as_echo "no" >&6; }
8028 test -n "$ac_ct_DUMPBIN" && break
8031 if test "x$ac_ct_DUMPBIN" = x; then
8034 case $cross_compiling:$ac_tool_warned in
8036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8040 DUMPBIN=$ac_ct_DUMPBIN
8045 if test "$DUMPBIN" != ":"; then
8049 test -z "$NM" && NM=nm
8056 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8057 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8058 if test "${lt_cv_nm_interface+set}" = set; then
8059 $as_echo_n "(cached) " >&6
8061 lt_cv_nm_interface="BSD nm"
8062 echo "int some_variable = 0;" > conftest.$ac_ext
8063 (eval echo "\"\$as_me:8063: $ac_compile\"" >&5)
8064 (eval "$ac_compile" 2>conftest.err)
8065 cat conftest.err >&5
8066 (eval echo "\"\$as_me:8066: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8067 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8068 cat conftest.err >&5
8069 (eval echo "\"\$as_me:8069: output\"" >&5)
8070 cat conftest.out >&5
8071 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8072 lt_cv_nm_interface="MS dumpbin"
8076 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8077 $as_echo "$lt_cv_nm_interface" >&6; }
8079 # find the maximum length of command line arguments
8080 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8081 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8082 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8083 $as_echo_n "(cached) " >&6
8090 # On DJGPP, this test can blow up pretty badly due to problems in libc
8091 # (any single argument exceeding 2000 bytes causes a buffer overrun
8092 # during glob expansion). Even if it were fixed, the result of this
8093 # check would be larger than it should be.
8094 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8098 # Under GNU Hurd, this test is not required because there is
8099 # no limit to the length of command line arguments.
8100 # Libtool will interpret -1 as no limit whatsoever
8101 lt_cv_sys_max_cmd_len=-1;
8104 cygwin* | mingw* | cegcc*)
8105 # On Win9x/ME, this test blows up -- it succeeds, but takes
8106 # about 5 minutes as the teststring grows exponentially.
8107 # Worse, since 9x/ME are not pre-emptively multitasking,
8108 # you end up with a "frozen" computer, even though with patience
8109 # the test eventually succeeds (with a max line length of 256k).
8110 # Instead, let's just punt: use the minimum linelength reported by
8111 # all of the supported platforms: 8192 (on NT/2K/XP).
8112 lt_cv_sys_max_cmd_len=8192;
8116 # On AmigaOS with pdksh, this test takes hours, literally.
8117 # So we just punt and use a minimum line length of 8192.
8118 lt_cv_sys_max_cmd_len=8192;
8121 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8122 # This has been around since 386BSD, at least. Likely further.
8123 if test -x /sbin/sysctl; then
8124 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8125 elif test -x /usr/sbin/sysctl; then
8126 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8128 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8130 # And add a safety zone
8131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8136 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8137 lt_cv_sys_max_cmd_len=196608
8141 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8142 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8143 # nice to cause kernel panics so lets avoid the loop below.
8144 # First set a reasonable default.
8145 lt_cv_sys_max_cmd_len=16384
8147 if test -x /sbin/sysconfig; then
8148 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8149 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8154 lt_cv_sys_max_cmd_len=102400
8156 sysv5* | sco5v6* | sysv4.2uw2*)
8157 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8158 if test -n "$kargmax"; then
8159 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8161 lt_cv_sys_max_cmd_len=32768
8165 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8166 if test -n "$lt_cv_sys_max_cmd_len"; then
8167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8170 # Make teststring a little bigger before we do anything with it.
8171 # a 1K string should be a reasonable start.
8172 for i in 1 2 3 4 5 6 7 8 ; do
8173 teststring=$teststring$teststring
8175 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8176 # If test is not a shell built-in, we'll probably end up computing a
8177 # maximum length that is only half of the actual maximum length, but
8179 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8180 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8181 test $i != 17 # 1/2 MB should be enough
8184 teststring=$teststring$teststring
8186 # Only check the string length outside the loop.
8187 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8189 # Add a significant safety factor because C++ compilers can tack on
8190 # massive amounts of additional arguments before passing them to the
8191 # linker. It appears as though 1/2 is a usable value.
8192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8199 if test -n $lt_cv_sys_max_cmd_len ; then
8200 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8201 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8203 { $as_echo "$as_me:$LINENO: result: none" >&5
8204 $as_echo "none" >&6; }
8206 max_cmd_len=$lt_cv_sys_max_cmd_len
8217 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8218 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8219 # Try some XSI features
8222 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8224 && eval 'test $(( 1 + 1 )) -eq 2 \
8225 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8227 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
8228 $as_echo "$xsi_shell" >&6; }
8231 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8232 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8234 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8236 && lt_shell_append=yes
8237 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8238 $as_echo "$lt_shell_append" >&6; }
8241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8251 # test EBCDIC or ASCII
8252 case `echo X|tr X '\101'` in
8253 A) # ASCII based system
8254 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8255 lt_SP2NL='tr \040 \012'
8256 lt_NL2SP='tr \015\012 \040\040'
8258 *) # EBCDIC based system
8259 lt_SP2NL='tr \100 \n'
8260 lt_NL2SP='tr \r\n \100\100'
8272 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8273 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8274 if test "${lt_cv_ld_reload_flag+set}" = set; then
8275 $as_echo_n "(cached) " >&6
8277 lt_cv_ld_reload_flag='-r'
8279 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8280 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8281 reload_flag=$lt_cv_ld_reload_flag
8282 case $reload_flag in
8284 *) reload_flag=" $reload_flag" ;;
8286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8289 if test "$GCC" = yes; then
8290 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8292 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8305 if test -n "$ac_tool_prefix"; then
8306 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8307 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8311 $as_echo_n "(cached) " >&6
8313 if test -n "$OBJDUMP"; then
8314 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 OBJDUMP=$ac_cv_prog_OBJDUMP
8334 if test -n "$OBJDUMP"; then
8335 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8336 $as_echo "$OBJDUMP" >&6; }
8338 { $as_echo "$as_me:$LINENO: result: no" >&5
8339 $as_echo "no" >&6; }
8344 if test -z "$ac_cv_prog_OBJDUMP"; then
8345 ac_ct_OBJDUMP=$OBJDUMP
8346 # Extract the first word of "objdump", so it can be a program name with args.
8347 set dummy objdump; ac_word=$2
8348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8351 $as_echo_n "(cached) " >&6
8353 if test -n "$ac_ct_OBJDUMP"; then
8354 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8374 if test -n "$ac_ct_OBJDUMP"; then
8375 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8376 $as_echo "$ac_ct_OBJDUMP" >&6; }
8378 { $as_echo "$as_me:$LINENO: result: no" >&5
8379 $as_echo "no" >&6; }
8382 if test "x$ac_ct_OBJDUMP" = x; then
8385 case $cross_compiling:$ac_tool_warned in
8387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8389 ac_tool_warned=yes ;;
8391 OBJDUMP=$ac_ct_OBJDUMP
8394 OBJDUMP="$ac_cv_prog_OBJDUMP"
8397 test -z "$OBJDUMP" && OBJDUMP=objdump
8407 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8408 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8409 if test "${lt_cv_deplibs_check_method+set}" = set; then
8410 $as_echo_n "(cached) " >&6
8412 lt_cv_file_magic_cmd='$MAGIC_CMD'
8413 lt_cv_file_magic_test_file=
8414 lt_cv_deplibs_check_method='unknown'
8415 # Need to set the preceding variable on all platforms that support
8416 # interlibrary dependencies.
8417 # 'none' -- dependencies not supported.
8418 # `unknown' -- same as none, but documents that we really don't know.
8419 # 'pass_all' -- all dependencies passed with no checks.
8420 # 'test_compile' -- check by making test program.
8421 # 'file_magic [[regex]]' -- check by looking for files in library path
8422 # which responds to the $file_magic_cmd with a given extended regex.
8423 # If you have `file' or equivalent on your system and you're not sure
8424 # whether `pass_all' will *always* work, you probably want this one.
8428 lt_cv_deplibs_check_method=pass_all
8432 lt_cv_deplibs_check_method=pass_all
8436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8437 lt_cv_file_magic_cmd='/usr/bin/file -L'
8438 lt_cv_file_magic_test_file=/shlib/libc.so
8442 # func_win32_libid is a shell function defined in ltmain.sh
8443 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8444 lt_cv_file_magic_cmd='func_win32_libid'
8448 # Base MSYS/MinGW do not provide the 'file' command needed by
8449 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8450 # unless we find 'file', for example because we are cross-compiling.
8451 if ( file / ) >/dev/null 2>&1; then
8452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8453 lt_cv_file_magic_cmd='func_win32_libid'
8455 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8456 lt_cv_file_magic_cmd='$OBJDUMP -f'
8461 # use the weaker test based on 'objdump'. See mingw*.
8462 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8463 lt_cv_file_magic_cmd='$OBJDUMP -f'
8466 darwin* | rhapsody*)
8467 lt_cv_deplibs_check_method=pass_all
8470 freebsd* | dragonfly*)
8471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8474 # Not sure whether the presence of OpenBSD here was a mistake.
8475 # Let's accept both of them until this is cleared up.
8476 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8477 lt_cv_file_magic_cmd=/usr/bin/file
8478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8482 lt_cv_deplibs_check_method=pass_all
8487 lt_cv_deplibs_check_method=pass_all
8490 hpux10.20* | hpux11*)
8491 lt_cv_file_magic_cmd=/usr/bin/file
8494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8495 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8498 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]'
8499 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8503 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8509 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8513 irix5* | irix6* | nonstopux*)
8515 *-32|*"-32 ") libmagic=32-bit;;
8516 *-n32|*"-n32 ") libmagic=N32;;
8517 *-64|*"-64 ") libmagic=64-bit;;
8518 *) libmagic=never-match;;
8520 lt_cv_deplibs_check_method=pass_all
8523 # This must be Linux ELF.
8524 linux* | k*bsd*-gnu)
8525 lt_cv_deplibs_check_method=pass_all
8529 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8538 lt_cv_file_magic_cmd=/usr/bin/file
8539 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8543 lt_cv_deplibs_check_method=pass_all
8547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8554 osf3* | osf4* | osf5*)
8555 lt_cv_deplibs_check_method=pass_all
8559 lt_cv_deplibs_check_method=pass_all
8563 lt_cv_deplibs_check_method=pass_all
8566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8567 lt_cv_deplibs_check_method=pass_all
8571 case $host_vendor in
8573 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]'
8574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8577 lt_cv_deplibs_check_method=pass_all
8580 lt_cv_file_magic_cmd='/bin/file'
8581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8584 lt_cv_file_magic_cmd='/bin/file'
8585 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8586 lt_cv_file_magic_test_file=/lib/libc.so
8589 lt_cv_deplibs_check_method=pass_all
8592 lt_cv_deplibs_check_method=pass_all
8598 lt_cv_deplibs_check_method=pass_all
8603 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8604 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8605 file_magic_cmd=$lt_cv_file_magic_cmd
8606 deplibs_check_method=$lt_cv_deplibs_check_method
8607 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8620 if test -n "$ac_tool_prefix"; then
8621 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8622 set dummy ${ac_tool_prefix}ar; ac_word=$2
8623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_prog_AR+set}" = set; then
8626 $as_echo_n "(cached) " >&6
8628 if test -n "$AR"; then
8629 ac_cv_prog_AR="$AR" # Let the user override the test.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8638 ac_cv_prog_AR="${ac_tool_prefix}ar"
8639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 if test -n "$AR"; then
8650 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8651 $as_echo "$AR" >&6; }
8653 { $as_echo "$as_me:$LINENO: result: no" >&5
8654 $as_echo "no" >&6; }
8659 if test -z "$ac_cv_prog_AR"; then
8661 # Extract the first word of "ar", so it can be a program name with args.
8662 set dummy ar; ac_word=$2
8663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8666 $as_echo_n "(cached) " >&6
8668 if test -n "$ac_ct_AR"; then
8669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_ac_ct_AR="ar"
8679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8689 if test -n "$ac_ct_AR"; then
8690 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8691 $as_echo "$ac_ct_AR" >&6; }
8693 { $as_echo "$as_me:$LINENO: result: no" >&5
8694 $as_echo "no" >&6; }
8697 if test "x$ac_ct_AR" = x; then
8700 case $cross_compiling:$ac_tool_warned in
8702 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8704 ac_tool_warned=yes ;;
8712 test -z "$AR" && AR=ar
8713 test -z "$AR_FLAGS" && AR_FLAGS=cru
8725 if test -n "$ac_tool_prefix"; then
8726 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8727 set dummy ${ac_tool_prefix}strip; ac_word=$2
8728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if test "${ac_cv_prog_STRIP+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8733 if test -n "$STRIP"; then
8734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 STRIP=$ac_cv_prog_STRIP
8754 if test -n "$STRIP"; then
8755 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8756 $as_echo "$STRIP" >&6; }
8758 { $as_echo "$as_me:$LINENO: result: no" >&5
8759 $as_echo "no" >&6; }
8764 if test -z "$ac_cv_prog_STRIP"; then
8766 # Extract the first word of "strip", so it can be a program name with args.
8767 set dummy strip; ac_word=$2
8768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8771 $as_echo_n "(cached) " >&6
8773 if test -n "$ac_ct_STRIP"; then
8774 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8783 ac_cv_prog_ac_ct_STRIP="strip"
8784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8794 if test -n "$ac_ct_STRIP"; then
8795 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8796 $as_echo "$ac_ct_STRIP" >&6; }
8798 { $as_echo "$as_me:$LINENO: result: no" >&5
8799 $as_echo "no" >&6; }
8802 if test "x$ac_ct_STRIP" = x; then
8805 case $cross_compiling:$ac_tool_warned in
8807 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8809 ac_tool_warned=yes ;;
8814 STRIP="$ac_cv_prog_STRIP"
8817 test -z "$STRIP" && STRIP=:
8824 if test -n "$ac_tool_prefix"; then
8825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8826 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if test "${ac_cv_prog_RANLIB+set}" = set; then
8830 $as_echo_n "(cached) " >&6
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 RANLIB=$ac_cv_prog_RANLIB
8853 if test -n "$RANLIB"; then
8854 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8855 $as_echo "$RANLIB" >&6; }
8857 { $as_echo "$as_me:$LINENO: result: no" >&5
8858 $as_echo "no" >&6; }
8863 if test -z "$ac_cv_prog_RANLIB"; then
8864 ac_ct_RANLIB=$RANLIB
8865 # Extract the first word of "ranlib", so it can be a program name with args.
8866 set dummy ranlib; ac_word=$2
8867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8870 $as_echo_n "(cached) " >&6
8872 if test -n "$ac_ct_RANLIB"; then
8873 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 test -z "$as_dir" && as_dir=.
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8882 ac_cv_prog_ac_ct_RANLIB="ranlib"
8883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8893 if test -n "$ac_ct_RANLIB"; then
8894 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8895 $as_echo "$ac_ct_RANLIB" >&6; }
8897 { $as_echo "$as_me:$LINENO: result: no" >&5
8898 $as_echo "no" >&6; }
8901 if test "x$ac_ct_RANLIB" = x; then
8904 case $cross_compiling:$ac_tool_warned in
8906 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8908 ac_tool_warned=yes ;;
8910 RANLIB=$ac_ct_RANLIB
8913 RANLIB="$ac_cv_prog_RANLIB"
8916 test -z "$RANLIB" && RANLIB=:
8923 # Determine commands to create old-style static archives.
8924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8925 old_postinstall_cmds='chmod 644 $oldlib'
8926 old_postuninstall_cmds=
8928 if test -n "$RANLIB"; then
8931 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8934 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8937 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8973 # If no C compiler was specified, use CC.
8976 # If no C compiler flags were specified, use CFLAGS.
8977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8979 # Allow CC to be a program name with arguments.
8983 # Check for command to grab the raw symbol name followed by C symbol from nm.
8984 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8985 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8986 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8987 $as_echo_n "(cached) " >&6
8990 # These are sane defaults that work on at least a few old systems.
8991 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8993 # Character class describing NM global symbol codes.
8994 symcode='[BCDEGRST]'
8996 # Regexp to match symbols that can be accessed directly from C.
8997 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8999 # Define system-specific variables.
9004 cygwin* | mingw* | pw32* | cegcc*)
9005 symcode='[ABCDGISTW]'
9008 if test "$host_cpu" = ia64; then
9009 symcode='[ABCDEGRST]'
9013 symcode='[BCDEGRST]'
9016 symcode='[BCDEGQRST]'
9027 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9035 # If we're using GNU nm, then use its standard symbol codes.
9036 case `$NM -V 2>&1` in
9037 *GNU* | *'with BFD'*)
9038 symcode='[ABCDGIRSTW]' ;;
9041 # Transform an extracted symbol line into a proper C declaration.
9042 # Some systems (esp. on ia64) link data and code symbols differently,
9043 # so use this general approach.
9044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9046 # Transform an extracted symbol line into symbol name and symbol address
9047 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9048 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9050 # Handle CRLF in mingw tool chain
9054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9058 # Try without a prefix underscore, then with it.
9059 for ac_symprfx in "" "_"; do
9061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9062 symxfrm="\\1 $ac_symprfx\\2 \\2"
9064 # Write the raw and C identifiers.
9065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9066 # Fake it for dumpbin and say T for any non-static function
9067 # and D for any global variable.
9068 # Also find C++ and __fastcall symbols from MSVC++,
9069 # which start with @ or ?.
9070 lt_cv_sys_global_symbol_pipe="$AWK '"\
9071 " {last_section=section; section=\$ 3};"\
9072 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9073 " \$ 0!~/External *\|/{next};"\
9074 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9075 " {if(hide[section]) next};"\
9076 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9077 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9078 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9079 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9080 " ' prfx=^$ac_symprfx"
9082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9085 # Check to see that the pipe works correctly.
9089 cat > conftest.$ac_ext <<_LT_EOF
9094 void nm_test_func(void);
9095 void nm_test_func(void){}
9099 int main(){nm_test_var='a';nm_test_func();return(0);}
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>&5
9105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; then
9107 # Now try to grab the symbols.
9109 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9110 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && test -s "$nlist"; then
9114 # Try sorting and uniquifying the output.
9115 if sort "$nlist" | uniq > "$nlist"T; then
9116 mv -f "$nlist"T "$nlist"
9121 # Make sure that we snagged all the symbols we need.
9122 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9123 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9124 cat <<_LT_EOF > conftest.$ac_ext
9130 # Now generate the symbol file.
9131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9133 cat <<_LT_EOF >> conftest.$ac_ext
9135 /* The mapping between symbol names and symbols. */
9140 lt__PROGRAM__LTX_preloaded_symbols[] =
9142 { "@PROGRAM@", (void *) 0 },
9144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9145 cat <<\_LT_EOF >> conftest.$ac_ext
9149 /* This works around a problem in FreeBSD linker */
9150 #ifdef FREEBSD_WORKAROUND
9151 static const void *lt_preloaded_setup() {
9152 return lt__PROGRAM__LTX_preloaded_symbols;
9160 # Now try linking the two files.
9161 mv conftest.$ac_objext conftstm.$ac_objext
9162 lt_save_LIBS="$LIBS"
9163 lt_save_CFLAGS="$CFLAGS"
9164 LIBS="conftstm.$ac_objext"
9165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>&5
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9173 LIBS="$lt_save_LIBS"
9174 CFLAGS="$lt_save_CFLAGS"
9176 echo "cannot find nm_test_func in $nlist" >&5
9179 echo "cannot find nm_test_var in $nlist" >&5
9182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9185 echo "$progname: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 rm -rf conftest* conftst*
9190 # Do not use the global_symbol_pipe unless it works.
9191 if test "$pipe_works" = yes; then
9194 lt_cv_sys_global_symbol_pipe=
9200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9201 lt_cv_sys_global_symbol_to_cdecl=
9203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9204 { $as_echo "$as_me:$LINENO: result: failed" >&5
9205 $as_echo "failed" >&6; }
9207 { $as_echo "$as_me:$LINENO: result: ok" >&5
9208 $as_echo "ok" >&6; }
9232 # Check whether --enable-libtool-lock was given.
9233 if test "${enable_libtool_lock+set}" = set; then
9234 enableval=$enable_libtool_lock;
9237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9239 # Some flags need to be propagated to the compiler or linker for good
9243 # Find out which ABI we are using.
9244 echo 'int i;' > conftest.$ac_ext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>&5
9248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; then
9250 case `/usr/bin/file conftest.$ac_objext` in
9262 # Find out which ABI we are using.
9263 echo '#line 9263 "configure"' > conftest.$ac_ext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265 (eval $ac_compile) 2>&5
9267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; then
9269 if test "$lt_cv_prog_gnu_ld" = yes; then
9270 case `/usr/bin/file conftest.$ac_objext` in
9272 LD="${LD-ld} -melf32bsmip"
9275 LD="${LD-ld} -melf32bmipn32"
9278 LD="${LD-ld} -melf64bmip"
9282 case `/usr/bin/file conftest.$ac_objext` in
9298 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9299 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9300 # Find out which ABI we are using.
9301 echo 'int i;' > conftest.$ac_ext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303 (eval $ac_compile) 2>&5
9305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; then
9307 case `/usr/bin/file conftest.o` in
9310 x86_64-*kfreebsd*-gnu)
9311 LD="${LD-ld} -m elf_i386_fbsd"
9314 LD="${LD-ld} -m elf_i386"
9316 ppc64-*linux*|powerpc64-*linux*)
9317 LD="${LD-ld} -m elf32ppclinux"
9320 LD="${LD-ld} -m elf_s390"
9323 LD="${LD-ld} -m elf32_sparc"
9329 x86_64-*kfreebsd*-gnu)
9330 LD="${LD-ld} -m elf_x86_64_fbsd"
9333 LD="${LD-ld} -m elf_x86_64"
9335 ppc*-*linux*|powerpc*-*linux*)
9336 LD="${LD-ld} -m elf64ppc"
9338 s390*-*linux*|s390*-*tpf*)
9339 LD="${LD-ld} -m elf64_s390"
9342 LD="${LD-ld} -m elf64_sparc"
9352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9353 SAVE_CFLAGS="$CFLAGS"
9354 CFLAGS="$CFLAGS -belf"
9355 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9356 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9357 if test "${lt_cv_cc_needs_belf+set}" = set; then
9358 $as_echo_n "(cached) " >&6
9361 ac_cpp='$CPP $CPPFLAGS'
9362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9388 $as_echo "$ac_try_echo") >&5
9389 (eval "$ac_link") 2>conftest.er1
9391 grep -v '^ *+' conftest.er1 >conftest.err
9393 cat conftest.err >&5
9394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest$ac_exeext && {
9399 test "$cross_compiling" = yes ||
9400 $as_test_x conftest$ac_exeext
9402 lt_cv_cc_needs_belf=yes
9404 $as_echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 lt_cv_cc_needs_belf=no
9410 rm -rf conftest.dSYM
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412 conftest$ac_exeext conftest.$ac_ext
9414 ac_cpp='$CPP $CPPFLAGS'
9415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9420 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9421 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9422 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9423 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9424 CFLAGS="$SAVE_CFLAGS"
9428 # Find out which ABI we are using.
9429 echo 'int i;' > conftest.$ac_ext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431 (eval $ac_compile) 2>&5
9433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; then
9435 case `/usr/bin/file conftest.o` in
9437 case $lt_cv_prog_gnu_ld in
9438 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9452 need_locks="$enable_libtool_lock"
9456 rhapsody* | darwin*)
9457 if test -n "$ac_tool_prefix"; then
9458 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9459 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9463 $as_echo_n "(cached) " >&6
9465 if test -n "$DSYMUTIL"; then
9466 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9486 if test -n "$DSYMUTIL"; then
9487 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9488 $as_echo "$DSYMUTIL" >&6; }
9490 { $as_echo "$as_me:$LINENO: result: no" >&5
9491 $as_echo "no" >&6; }
9496 if test -z "$ac_cv_prog_DSYMUTIL"; then
9497 ac_ct_DSYMUTIL=$DSYMUTIL
9498 # Extract the first word of "dsymutil", so it can be a program name with args.
9499 set dummy dsymutil; ac_word=$2
9500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9503 $as_echo_n "(cached) " >&6
9505 if test -n "$ac_ct_DSYMUTIL"; then
9506 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9515 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9526 if test -n "$ac_ct_DSYMUTIL"; then
9527 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9528 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9530 { $as_echo "$as_me:$LINENO: result: no" >&5
9531 $as_echo "no" >&6; }
9534 if test "x$ac_ct_DSYMUTIL" = x; then
9537 case $cross_compiling:$ac_tool_warned in
9539 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9541 ac_tool_warned=yes ;;
9543 DSYMUTIL=$ac_ct_DSYMUTIL
9546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9549 if test -n "$ac_tool_prefix"; then
9550 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9551 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9555 $as_echo_n "(cached) " >&6
9557 if test -n "$NMEDIT"; then
9558 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 NMEDIT=$ac_cv_prog_NMEDIT
9578 if test -n "$NMEDIT"; then
9579 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9580 $as_echo "$NMEDIT" >&6; }
9582 { $as_echo "$as_me:$LINENO: result: no" >&5
9583 $as_echo "no" >&6; }
9588 if test -z "$ac_cv_prog_NMEDIT"; then
9589 ac_ct_NMEDIT=$NMEDIT
9590 # Extract the first word of "nmedit", so it can be a program name with args.
9591 set dummy nmedit; ac_word=$2
9592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9595 $as_echo_n "(cached) " >&6
9597 if test -n "$ac_ct_NMEDIT"; then
9598 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 test -z "$as_dir" && as_dir=.
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9618 if test -n "$ac_ct_NMEDIT"; then
9619 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9620 $as_echo "$ac_ct_NMEDIT" >&6; }
9622 { $as_echo "$as_me:$LINENO: result: no" >&5
9623 $as_echo "no" >&6; }
9626 if test "x$ac_ct_NMEDIT" = x; then
9629 case $cross_compiling:$ac_tool_warned in
9631 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9633 ac_tool_warned=yes ;;
9635 NMEDIT=$ac_ct_NMEDIT
9638 NMEDIT="$ac_cv_prog_NMEDIT"
9641 if test -n "$ac_tool_prefix"; then
9642 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9643 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if test "${ac_cv_prog_LIPO+set}" = set; then
9647 $as_echo_n "(cached) " >&6
9649 if test -n "$LIPO"; then
9650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 LIPO=$ac_cv_prog_LIPO
9670 if test -n "$LIPO"; then
9671 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9672 $as_echo "$LIPO" >&6; }
9674 { $as_echo "$as_me:$LINENO: result: no" >&5
9675 $as_echo "no" >&6; }
9680 if test -z "$ac_cv_prog_LIPO"; then
9682 # Extract the first word of "lipo", so it can be a program name with args.
9683 set dummy lipo; ac_word=$2
9684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9687 $as_echo_n "(cached) " >&6
9689 if test -n "$ac_ct_LIPO"; then
9690 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9699 ac_cv_prog_ac_ct_LIPO="lipo"
9700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9710 if test -n "$ac_ct_LIPO"; then
9711 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9712 $as_echo "$ac_ct_LIPO" >&6; }
9714 { $as_echo "$as_me:$LINENO: result: no" >&5
9715 $as_echo "no" >&6; }
9718 if test "x$ac_ct_LIPO" = x; then
9721 case $cross_compiling:$ac_tool_warned in
9723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9725 ac_tool_warned=yes ;;
9730 LIPO="$ac_cv_prog_LIPO"
9733 if test -n "$ac_tool_prefix"; then
9734 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9735 set dummy ${ac_tool_prefix}otool; ac_word=$2
9736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if test "${ac_cv_prog_OTOOL+set}" = set; then
9739 $as_echo_n "(cached) " >&6
9741 if test -n "$OTOOL"; then
9742 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 OTOOL=$ac_cv_prog_OTOOL
9762 if test -n "$OTOOL"; then
9763 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9764 $as_echo "$OTOOL" >&6; }
9766 { $as_echo "$as_me:$LINENO: result: no" >&5
9767 $as_echo "no" >&6; }
9772 if test -z "$ac_cv_prog_OTOOL"; then
9774 # Extract the first word of "otool", so it can be a program name with args.
9775 set dummy otool; ac_word=$2
9776 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9779 $as_echo_n "(cached) " >&6
9781 if test -n "$ac_ct_OTOOL"; then
9782 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_prog_ac_ct_OTOOL="otool"
9792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9801 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9802 if test -n "$ac_ct_OTOOL"; then
9803 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9804 $as_echo "$ac_ct_OTOOL" >&6; }
9806 { $as_echo "$as_me:$LINENO: result: no" >&5
9807 $as_echo "no" >&6; }
9810 if test "x$ac_ct_OTOOL" = x; then
9813 case $cross_compiling:$ac_tool_warned in
9815 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9817 ac_tool_warned=yes ;;
9822 OTOOL="$ac_cv_prog_OTOOL"
9825 if test -n "$ac_tool_prefix"; then
9826 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9827 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9829 $as_echo_n "checking for $ac_word... " >&6; }
9830 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9831 $as_echo_n "(cached) " >&6
9833 if test -n "$OTOOL64"; then
9834 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 test -z "$as_dir" && as_dir=.
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 OTOOL64=$ac_cv_prog_OTOOL64
9854 if test -n "$OTOOL64"; then
9855 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9856 $as_echo "$OTOOL64" >&6; }
9858 { $as_echo "$as_me:$LINENO: result: no" >&5
9859 $as_echo "no" >&6; }
9864 if test -z "$ac_cv_prog_OTOOL64"; then
9865 ac_ct_OTOOL64=$OTOOL64
9866 # Extract the first word of "otool64", so it can be a program name with args.
9867 set dummy otool64; ac_word=$2
9868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9871 $as_echo_n "(cached) " >&6
9873 if test -n "$ac_ct_OTOOL64"; then
9874 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_ac_ct_OTOOL64="otool64"
9884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9894 if test -n "$ac_ct_OTOOL64"; then
9895 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9896 $as_echo "$ac_ct_OTOOL64" >&6; }
9898 { $as_echo "$as_me:$LINENO: result: no" >&5
9899 $as_echo "no" >&6; }
9902 if test "x$ac_ct_OTOOL64" = x; then
9905 case $cross_compiling:$ac_tool_warned in
9907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9909 ac_tool_warned=yes ;;
9911 OTOOL64=$ac_ct_OTOOL64
9914 OTOOL64="$ac_cv_prog_OTOOL64"
9943 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9944 $as_echo_n "checking for -single_module linker flag... " >&6; }
9945 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9946 $as_echo_n "(cached) " >&6
9948 lt_cv_apple_cc_single_mod=no
9949 if test -z "${LT_MULTI_MODULE}"; then
9950 # By default we will add the -single_module flag. You can override
9951 # by either setting the environment variable LT_MULTI_MODULE
9952 # non-empty at configure time, or by adding -multi_module to the
9954 rm -rf libconftest.dylib*
9955 echo "int foo(void){return 1;}" > conftest.c
9956 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9957 -dynamiclib -Wl,-single_module conftest.c" >&5
9958 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9959 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9961 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9962 lt_cv_apple_cc_single_mod=yes
9964 cat conftest.err >&5
9966 rm -rf libconftest.dylib*
9970 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9971 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9972 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9973 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9974 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9975 $as_echo_n "(cached) " >&6
9977 lt_cv_ld_exported_symbols_list=no
9978 save_LDFLAGS=$LDFLAGS
9979 echo "_main" > conftest.sym
9980 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9981 cat >conftest.$ac_ext <<_ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004 (eval "$ac_link") 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest$ac_exeext && {
10014 test "$cross_compiling" = yes ||
10015 $as_test_x conftest$ac_exeext
10017 lt_cv_ld_exported_symbols_list=yes
10019 $as_echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 lt_cv_ld_exported_symbols_list=no
10025 rm -rf conftest.dSYM
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LDFLAGS="$save_LDFLAGS"
10031 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10032 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10034 rhapsody* | darwin1.[012])
10035 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10037 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10038 darwin*) # darwin 5.x on
10039 # if running on 10.5 or later, the deployment target defaults
10040 # to the OS version, if on x86, and 10.4, the deployment
10041 # target defaults to 10.4. Don't you love it?
10042 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10043 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10044 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10048 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10052 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10053 _lt_dar_single_mod='$single_module'
10055 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10056 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10058 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10060 if test "$DSYMUTIL" != ":"; then
10061 _lt_dsymutil='~$DSYMUTIL $lib || :'
10069 for ac_header in dlfcn.h
10071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10073 $as_echo_n "checking for $ac_header... " >&6; }
10074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10075 $as_echo_n "(cached) " >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10085 #include <$ac_header>
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10094 $as_echo "$ac_try_echo") >&5
10095 (eval "$ac_compile") 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && {
10102 test -z "$ac_c_werror_flag" ||
10103 test ! -s conftest.err
10104 } && test -s conftest.$ac_objext; then
10105 eval "$as_ac_Header=yes"
10107 $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 eval "$as_ac_Header=no"
10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 ac_res=`eval 'as_val=${'$as_ac_Header'}
10116 $as_echo "$as_val"'`
10117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10118 $as_echo "$ac_res" >&6; }
10119 as_val=`eval 'as_val=${'$as_ac_Header'}
10120 $as_echo "$as_val"'`
10121 if test "x$as_val" = x""yes; then
10122 cat >>confdefs.h <<_ACEOF
10123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10133 ac_cpp='$CXXCPP $CPPFLAGS'
10134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10137 if test -z "$CXX"; then
10138 if test -n "$CCC"; then
10141 if test -n "$ac_tool_prefix"; then
10142 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if test "${ac_cv_prog_CXX+set}" = set; then
10149 $as_echo_n "(cached) " >&6
10151 if test -n "$CXX"; then
10152 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 CXX=$ac_cv_prog_CXX
10172 if test -n "$CXX"; then
10173 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
10174 $as_echo "$CXX" >&6; }
10176 { $as_echo "$as_me:$LINENO: result: no" >&5
10177 $as_echo "no" >&6; }
10181 test -n "$CXX" && break
10184 if test -z "$CXX"; then
10186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10188 # Extract the first word of "$ac_prog", so it can be a program name with args.
10189 set dummy $ac_prog; ac_word=$2
10190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10193 $as_echo_n "(cached) " >&6
10195 if test -n "$ac_ct_CXX"; then
10196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205 ac_cv_prog_ac_ct_CXX="$ac_prog"
10206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10216 if test -n "$ac_ct_CXX"; then
10217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10218 $as_echo "$ac_ct_CXX" >&6; }
10220 { $as_echo "$as_me:$LINENO: result: no" >&5
10221 $as_echo "no" >&6; }
10225 test -n "$ac_ct_CXX" && break
10228 if test "x$ac_ct_CXX" = x; then
10231 case $cross_compiling:$ac_tool_warned in
10233 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235 ac_tool_warned=yes ;;
10243 # Provide some information about the compiler.
10244 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10247 { (ac_try="$ac_compiler --version >&5"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254 (eval "$ac_compiler --version >&5") 2>&5
10256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }
10258 { (ac_try="$ac_compiler -v >&5"
10259 case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10264 $as_echo "$ac_try_echo") >&5
10265 (eval "$ac_compiler -v >&5") 2>&5
10267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }
10269 { (ac_try="$ac_compiler -V >&5"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276 (eval "$ac_compiler -V >&5") 2>&5
10278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }
10281 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10282 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10283 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10284 $as_echo_n "(cached) " >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10311 $as_echo "$ac_try_echo") >&5
10312 (eval "$ac_compile") 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } && {
10319 test -z "$ac_cxx_werror_flag" ||
10320 test ! -s conftest.err
10321 } && test -s conftest.$ac_objext; then
10322 ac_compiler_gnu=yes
10324 $as_echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10334 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10336 if test $ac_compiler_gnu = yes; then
10341 ac_test_CXXFLAGS=${CXXFLAGS+set}
10342 ac_save_CXXFLAGS=$CXXFLAGS
10343 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10345 if test "${ac_cv_prog_cxx_g+set}" = set; then
10346 $as_echo_n "(cached) " >&6
10348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10349 ac_cxx_werror_flag=yes
10350 ac_cv_prog_cxx_g=no
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10374 $as_echo "$ac_try_echo") >&5
10375 (eval "$ac_compile") 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && {
10382 test -z "$ac_cxx_werror_flag" ||
10383 test ! -s conftest.err
10384 } && test -s conftest.$ac_objext; then
10385 ac_cv_prog_cxx_g=yes
10387 $as_echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_cxx_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10426 $as_echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_compile") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_cxx_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest.$ac_objext; then
10464 ac_cv_prog_cxx_g=yes
10466 $as_echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10481 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10483 if test "$ac_test_CXXFLAGS" = set; then
10484 CXXFLAGS=$ac_save_CXXFLAGS
10485 elif test $ac_cv_prog_cxx_g = yes; then
10486 if test "$GXX" = yes; then
10492 if test "$GXX" = yes; then
10499 ac_cpp='$CPP $CPPFLAGS'
10500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10504 depcc="$CXX" am_compiler_list=
10506 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10507 $as_echo_n "checking dependency style of $depcc... " >&6; }
10508 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10509 $as_echo_n "(cached) " >&6
10511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10512 # We make a subdir and do the tests there. Otherwise we can end up
10513 # making bogus files that we don't know about and never remove. For
10514 # instance it was reported that on HP-UX the gcc test will end up
10515 # making a dummy file named `D' -- because `-MD' means `put the output
10518 # Copy depcomp to subdir because otherwise we won't find it if we're
10519 # using a relative directory.
10520 cp "$am_depcomp" conftest.dir
10522 # We will build objects and dependencies in a subdirectory because
10523 # it helps to detect inapplicable dependency modes. For instance
10524 # both Tru64's cc and ICC support -MD to output dependencies as a
10525 # side effect of compilation, but ICC will put the dependencies in
10526 # the current directory while Tru64 will put them in the object
10530 am_cv_CXX_dependencies_compiler_type=none
10531 if test "$am_compiler_list" = ""; then
10532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10534 am__universal=false
10535 case " $depcc " in #(
10536 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10539 for depmode in $am_compiler_list; do
10540 # Setup a source with many dependencies, because some compilers
10541 # like to wrap large dependency lists on column 80 (with \), and
10542 # we should not choose a depcomp mode which is confused by this.
10544 # We need to recreate these files for each test, as the compiler may
10545 # overwrite some of them when testing with obscure command lines.
10546 # This happens at least with the AIX C compiler.
10548 for i in 1 2 3 4 5 6; do
10549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10551 # Solaris 8's {/usr,}/bin/sh.
10552 touch sub/conftst$i.h
10554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10557 # mode. It turns out that the SunPro C++ compiler does not properly
10558 # handle `-M -o', and we need to detect this. Also, some Intel
10559 # versions had trouble with output in subdirs
10560 am__obj=sub/conftest.${OBJEXT-o}
10561 am__minus_obj="-o $am__obj"
10564 # This depmode causes a compiler race in universal mode.
10565 test "$am__universal" = false || continue
10568 # after this tag, mechanisms are not by side-effect, so they'll
10569 # only be used when explicitly requested
10570 if test "x$enable_dependency_tracking" = xyes; then
10576 msvisualcpp | msvcmsys)
10577 # This compiler won't grok `-c -o', but also, the minuso test has
10578 # not run yet. These depmodes are late enough in the game, and
10579 # so weak that their functioning should not be impacted.
10580 am__obj=conftest.${OBJEXT-o}
10585 if depmode=$depmode \
10586 source=sub/conftest.c object=$am__obj \
10587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10589 >/dev/null 2>conftest.err &&
10590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10594 # icc doesn't choke on unknown options, it will just issue warnings
10595 # or remarks (even with -Werror). So we grep stderr for any message
10596 # that says an option was ignored or not supported.
10597 # When given -MP, icc 7.0 and 7.1 complain thusly:
10598 # icc: Command line warning: ignoring option '-M'; no argument required
10599 # The diagnosis changed in icc 8.0:
10600 # icc: Command line remark: option '-MP' not supported
10601 if (grep 'ignoring option' conftest.err ||
10602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10603 am_cv_CXX_dependencies_compiler_type=$depmode
10610 rm -rf conftest.dir
10612 am_cv_CXX_dependencies_compiler_type=none
10616 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10617 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10618 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10621 test "x$enable_dependency_tracking" != xno \
10622 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10623 am__fastdepCXX_TRUE=
10624 am__fastdepCXX_FALSE='#'
10626 am__fastdepCXX_TRUE='#'
10627 am__fastdepCXX_FALSE=
10631 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10632 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10633 (test "X$CXX" != "Xg++"))) ; then
10635 ac_cpp='$CXXCPP $CPPFLAGS'
10636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10639 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10640 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10641 if test -z "$CXXCPP"; then
10642 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10643 $as_echo_n "(cached) " >&6
10645 # Double quotes because CXXCPP needs to be expanded
10646 for CXXCPP in "$CXX -E" "/lib/cpp"
10648 ac_preproc_ok=false
10649 for ac_cxx_preproc_warn_flag in '' yes
10651 # Use a header file that comes with gcc, so configuring glibc
10652 # with a fresh cross-compiler works.
10653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 # <limits.h> exists even on freestanding compilers.
10655 # On the NeXT, cc -E runs the code through the compiler's parser,
10656 # not just through cpp. "Syntax error" is here to catch this case.
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10664 # include <limits.h>
10666 # include <assert.h>
10670 if { (ac_try="$ac_cpp conftest.$ac_ext"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10676 $as_echo "$ac_try_echo") >&5
10677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } >/dev/null && {
10684 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10685 test ! -s conftest.err
10689 $as_echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 # Broken: fails on valid input.
10696 rm -f conftest.err conftest.$ac_ext
10698 # OK, works on sane cases. Now check whether nonexistent headers
10699 # can be detected and how.
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 #include <ac_nonexistent.h>
10708 if { (ac_try="$ac_cpp conftest.$ac_ext"
10709 case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714 $as_echo "$ac_try_echo") >&5
10715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } >/dev/null && {
10722 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10723 test ! -s conftest.err
10725 # Broken: success on invalid input.
10728 $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 # Passes both tests.
10736 rm -f conftest.err conftest.$ac_ext
10739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10740 rm -f conftest.err conftest.$ac_ext
10741 if $ac_preproc_ok; then
10746 ac_cv_prog_CXXCPP=$CXXCPP
10749 CXXCPP=$ac_cv_prog_CXXCPP
10751 ac_cv_prog_CXXCPP=$CXXCPP
10753 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10754 $as_echo "$CXXCPP" >&6; }
10755 ac_preproc_ok=false
10756 for ac_cxx_preproc_warn_flag in '' yes
10758 # Use a header file that comes with gcc, so configuring glibc
10759 # with a fresh cross-compiler works.
10760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10761 # <limits.h> exists even on freestanding compilers.
10762 # On the NeXT, cc -E runs the code through the compiler's parser,
10763 # not just through cpp. "Syntax error" is here to catch this case.
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10771 # include <limits.h>
10773 # include <assert.h>
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10783 $as_echo "$ac_try_echo") >&5
10784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null && {
10791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10792 test ! -s conftest.err
10796 $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 # Broken: fails on valid input.
10803 rm -f conftest.err conftest.$ac_ext
10805 # OK, works on sane cases. Now check whether nonexistent headers
10806 # can be detected and how.
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <ac_nonexistent.h>
10815 if { (ac_try="$ac_cpp conftest.$ac_ext"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } >/dev/null && {
10829 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10830 test ! -s conftest.err
10832 # Broken: success on invalid input.
10835 $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 # Passes both tests.
10843 rm -f conftest.err conftest.$ac_ext
10846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10847 rm -f conftest.err conftest.$ac_ext
10848 if $ac_preproc_ok; then
10851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10853 _lt_caught_CXX_error=yes; }
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863 _lt_caught_CXX_error=yes
10877 enable_win32_dll=no
10880 # Check whether --enable-shared was given.
10881 if test "${enable_shared+set}" = set; then
10882 enableval=$enable_shared; p=${PACKAGE-default}
10884 yes) enable_shared=yes ;;
10885 no) enable_shared=no ;;
10888 # Look at the argument we got. We use all the common list separators.
10889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10890 for pkg in $enableval; do
10892 if test "X$pkg" = "X$p"; then
10911 # Check whether --enable-static was given.
10912 if test "${enable_static+set}" = set; then
10913 enableval=$enable_static; p=${PACKAGE-default}
10915 yes) enable_static=yes ;;
10916 no) enable_static=no ;;
10919 # Look at the argument we got. We use all the common list separators.
10920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10921 for pkg in $enableval; do
10923 if test "X$pkg" = "X$p"; then
10943 # Check whether --with-pic was given.
10944 if test "${with_pic+set}" = set; then
10945 withval=$with_pic; pic_mode="$withval"
10951 test -z "$pic_mode" && pic_mode=default
10959 # Check whether --enable-fast-install was given.
10960 if test "${enable_fast_install+set}" = set; then
10961 enableval=$enable_fast_install; p=${PACKAGE-default}
10963 yes) enable_fast_install=yes ;;
10964 no) enable_fast_install=no ;;
10966 enable_fast_install=no
10967 # Look at the argument we got. We use all the common list separators.
10968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10969 for pkg in $enableval; do
10971 if test "X$pkg" = "X$p"; then
10972 enable_fast_install=yes
10979 enable_fast_install=yes
10992 # This can be used to rebuild libtool when needed
10993 LIBTOOL_DEPS="$ltmain"
10995 # Always use our own libtool.
10996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11022 test -z "$LN_S" && LN_S="ln -s"
11037 if test -n "${ZSH_VERSION+set}" ; then
11038 setopt NO_GLOB_SUBST
11041 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
11042 $as_echo_n "checking for objdir... " >&6; }
11043 if test "${lt_cv_objdir+set}" = set; then
11044 $as_echo_n "(cached) " >&6
11046 rm -f .libs 2>/dev/null
11047 mkdir .libs 2>/dev/null
11048 if test -d .libs; then
11051 # MS-DOS does not allow filenames that begin with a dot.
11054 rmdir .libs 2>/dev/null
11056 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11057 $as_echo "$lt_cv_objdir" >&6; }
11058 objdir=$lt_cv_objdir
11064 cat >>confdefs.h <<_ACEOF
11065 #define LT_OBJDIR "$lt_cv_objdir/"
11086 # AIX sometimes has problems with the GCC collect2 program. For some
11087 # reason, if we set the COLLECT_NAMES environment variable, the problems
11088 # vanish in a puff of smoke.
11089 if test "X${COLLECT_NAMES+set}" != Xset; then
11091 export COLLECT_NAMES
11096 # Sed substitution that helps us do robust quoting. It backslashifies
11097 # metacharacters that are still active within double-quoted strings.
11098 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11100 # Same as above, but do not quote variable references.
11101 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11103 # Sed substitution to delay expansion of an escaped shell variable in a
11104 # double_quote_subst'ed string.
11105 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11107 # Sed substitution to delay expansion of an escaped single quote.
11108 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11110 # Sed substitution to avoid accidental globbing in evaled expressions
11111 no_glob_subst='s/\*/\\\*/g'
11113 # Global variables:
11115 can_build_shared=yes
11117 # All known linkers require a `.a' archive for static linking (except MSVC,
11118 # which needs '.lib').
11121 with_gnu_ld="$lt_cv_prog_gnu_ld"
11124 old_CFLAGS="$CFLAGS"
11126 # Set sane defaults for various variables
11127 test -z "$CC" && CC=cc
11128 test -z "$LTCC" && LTCC=$CC
11129 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11130 test -z "$LD" && LD=ld
11131 test -z "$ac_objext" && ac_objext=o
11133 for cc_temp in $compiler""; do
11135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11144 # Only perform the check for file, if the check method requires it
11145 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11146 case $deplibs_check_method in
11148 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11149 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11150 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11152 $as_echo_n "(cached) " >&6
11156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11159 lt_save_MAGIC_CMD="$MAGIC_CMD"
11160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11162 for ac_dir in $ac_dummy; do
11164 test -z "$ac_dir" && ac_dir=.
11165 if test -f $ac_dir/${ac_tool_prefix}file; then
11166 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11167 if test -n "$file_magic_test_file"; then
11168 case $deplibs_check_method in
11170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11173 $EGREP "$file_magic_regex" > /dev/null; then
11178 *** Warning: the command libtool uses to detect shared libraries,
11179 *** $file_magic_cmd, produces output that libtool cannot recognize.
11180 *** The result is that libtool may fail to recognize shared libraries
11181 *** as such. This will affect the creation of libtool libraries that
11182 *** depend on shared libraries, but programs linked with such libtool
11183 *** libraries will work regardless of this problem. Nevertheless, you
11184 *** may want to report the problem to your system manager and/or to
11185 *** bug-libtool@gnu.org
11195 MAGIC_CMD="$lt_save_MAGIC_CMD"
11200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11201 if test -n "$MAGIC_CMD"; then
11202 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11203 $as_echo "$MAGIC_CMD" >&6; }
11205 { $as_echo "$as_me:$LINENO: result: no" >&5
11206 $as_echo "no" >&6; }
11213 if test -z "$lt_cv_path_MAGIC_CMD"; then
11214 if test -n "$ac_tool_prefix"; then
11215 { $as_echo "$as_me:$LINENO: checking for file" >&5
11216 $as_echo_n "checking for file... " >&6; }
11217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11225 lt_save_MAGIC_CMD="$MAGIC_CMD"
11226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11228 for ac_dir in $ac_dummy; do
11230 test -z "$ac_dir" && ac_dir=.
11231 if test -f $ac_dir/file; then
11232 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11233 if test -n "$file_magic_test_file"; then
11234 case $deplibs_check_method in
11236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11239 $EGREP "$file_magic_regex" > /dev/null; then
11244 *** Warning: the command libtool uses to detect shared libraries,
11245 *** $file_magic_cmd, produces output that libtool cannot recognize.
11246 *** The result is that libtool may fail to recognize shared libraries
11247 *** as such. This will affect the creation of libtool libraries that
11248 *** depend on shared libraries, but programs linked with such libtool
11249 *** libraries will work regardless of this problem. Nevertheless, you
11250 *** may want to report the problem to your system manager and/or to
11251 *** bug-libtool@gnu.org
11261 MAGIC_CMD="$lt_save_MAGIC_CMD"
11266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11267 if test -n "$MAGIC_CMD"; then
11268 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11269 $as_echo "$MAGIC_CMD" >&6; }
11271 { $as_echo "$as_me:$LINENO: result: no" >&5
11272 $as_echo "no" >&6; }
11285 # Use C for the default configuration in the libtool script
11289 ac_cpp='$CPP $CPPFLAGS'
11290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11295 # Source file extension for C test sources.
11298 # Object file extension for compiled C test sources.
11302 # Code to be used in simple compile tests
11303 lt_simple_compile_test_code="int some_variable = 0;"
11305 # Code to be used in simple link tests
11306 lt_simple_link_test_code='int main(){return(0);}'
11314 # If no C compiler was specified, use CC.
11317 # If no C compiler flags were specified, use CFLAGS.
11318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11320 # Allow CC to be a program name with arguments.
11323 # Save the default compiler, since it gets overwritten when the other
11324 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11325 compiler_DEFAULT=$CC
11327 # save warnings/boilerplate of simple test code
11328 ac_outfile=conftest.$ac_objext
11329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11331 _lt_compiler_boilerplate=`cat conftest.err`
11334 ac_outfile=conftest.$ac_objext
11335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11337 _lt_linker_boilerplate=`cat conftest.err`
11341 if test -n "$compiler"; then
11343 lt_prog_compiler_no_builtin_flag=
11345 if test "$GCC" = yes; then
11346 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11350 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11351 $as_echo_n "(cached) " >&6
11353 lt_cv_prog_compiler_rtti_exceptions=no
11354 ac_outfile=conftest.$ac_objext
11355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11356 lt_compiler_flag="-fno-rtti -fno-exceptions"
11357 # Insert the option either (1) after the last *FLAGS variable, or
11358 # (2) before a word containing "conftest.", or (3) at the end.
11359 # Note that $ac_compile itself does not contain backslashes and begins
11360 # with a dollar sign (not a hyphen), so the echo should work correctly.
11361 # The option is referenced via a variable to avoid confusing sed.
11362 lt_compile=`echo "$ac_compile" | $SED \
11363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11365 -e 's:$: $lt_compiler_flag:'`
11366 (eval echo "\"\$as_me:11366: $lt_compile\"" >&5)
11367 (eval "$lt_compile" 2>conftest.err)
11369 cat conftest.err >&5
11370 echo "$as_me:11370: \$? = $ac_status" >&5
11371 if (exit $ac_status) && test -s "$ac_outfile"; then
11372 # The compiler can only warn and ignore the option if not recognized
11373 # So say no if there are warnings other than the usual output.
11374 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11377 lt_cv_prog_compiler_rtti_exceptions=yes
11383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11399 lt_prog_compiler_wl=
11400 lt_prog_compiler_pic=
11401 lt_prog_compiler_static=
11403 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11404 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11406 if test "$GCC" = yes; then
11407 lt_prog_compiler_wl='-Wl,'
11408 lt_prog_compiler_static='-static'
11412 # All AIX code is PIC.
11413 if test "$host_cpu" = ia64; then
11414 # AIX 5 now supports IA64 processor
11415 lt_prog_compiler_static='-Bstatic'
11422 # see comment about AmigaOS4 .so support
11423 lt_prog_compiler_pic='-fPIC'
11426 # FIXME: we need at least 68020 code to build shared libraries, but
11427 # adding the `-m68020' flag to GCC prevents building anything better,
11429 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11435 # PIC is the default for these OSes.
11438 mingw* | cygwin* | pw32* | os2* | cegcc*)
11439 # This hack is so that the source file can tell whether it is being
11440 # built for inclusion in a dll (and should export symbols for example).
11441 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11442 # (--disable-auto-import) libraries
11443 lt_prog_compiler_pic='-DDLL_EXPORT'
11446 darwin* | rhapsody*)
11447 # PIC is the default on this platform
11448 # Common symbols not allowed in MH_DYLIB files
11449 lt_prog_compiler_pic='-fno-common'
11453 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11454 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11455 # sets the default TLS model and affects inlining.
11461 lt_prog_compiler_pic='-fPIC'
11467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11468 # Instead, we relocate shared libraries at runtime.
11472 # Just because we use GCC doesn't mean we suddenly get shared libraries
11473 # on systems that don't support them.
11474 lt_prog_compiler_can_build_shared=no
11479 # QNX uses GNU C++, but need to define -shared option too, otherwise
11480 # it will coredump.
11481 lt_prog_compiler_pic='-fPIC -shared'
11485 if test -d /usr/nec; then
11486 lt_prog_compiler_pic=-Kconform_pic
11491 lt_prog_compiler_pic='-fPIC'
11495 # PORTME Check for flag to pass linker flags through the system compiler.
11498 lt_prog_compiler_wl='-Wl,'
11499 if test "$host_cpu" = ia64; then
11500 # AIX 5 now supports IA64 processor
11501 lt_prog_compiler_static='-Bstatic'
11503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11507 mingw* | cygwin* | pw32* | os2* | cegcc*)
11508 # This hack is so that the source file can tell whether it is being
11509 # built for inclusion in a dll (and should export symbols for example).
11510 lt_prog_compiler_pic='-DDLL_EXPORT'
11513 hpux9* | hpux10* | hpux11*)
11514 lt_prog_compiler_wl='-Wl,'
11515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11516 # not for PA HP-UX.
11522 lt_prog_compiler_pic='+Z'
11525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11526 lt_prog_compiler_static='${wl}-a ${wl}archive'
11529 irix5* | irix6* | nonstopux*)
11530 lt_prog_compiler_wl='-Wl,'
11531 # PIC (with -KPIC) is the default.
11532 lt_prog_compiler_static='-non_shared'
11535 linux* | k*bsd*-gnu)
11536 case $cc_basename in
11537 # old Intel for x86_64 which still supported -KPIC.
11539 lt_prog_compiler_wl='-Wl,'
11540 lt_prog_compiler_pic='-KPIC'
11541 lt_prog_compiler_static='-static'
11543 # icc used to be incompatible with GCC.
11544 # ICC 10 doesn't accept -KPIC any more.
11546 lt_prog_compiler_wl='-Wl,'
11547 lt_prog_compiler_pic='-fPIC'
11548 lt_prog_compiler_static='-static'
11550 # Lahey Fortran 8.1.
11552 lt_prog_compiler_wl='-Wl,'
11553 lt_prog_compiler_pic='--shared'
11554 lt_prog_compiler_static='--static'
11556 pgcc* | pgf77* | pgf90* | pgf95*)
11557 # Portland Group compilers (*not* the Pentium gcc compiler,
11558 # which looks to be a dead project)
11559 lt_prog_compiler_wl='-Wl,'
11560 lt_prog_compiler_pic='-fpic'
11561 lt_prog_compiler_static='-Bstatic'
11564 lt_prog_compiler_wl='-Wl,'
11565 # All Alpha code is PIC.
11566 lt_prog_compiler_static='-non_shared'
11569 # IBM XL C 8.0/Fortran 10.1 on PPC
11570 lt_prog_compiler_wl='-Wl,'
11571 lt_prog_compiler_pic='-qpic'
11572 lt_prog_compiler_static='-qstaticlink'
11575 case `$CC -V 2>&1 | sed 5q` in
11578 lt_prog_compiler_pic='-KPIC'
11579 lt_prog_compiler_static='-Bstatic'
11580 lt_prog_compiler_wl='-Wl,'
11583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11584 lt_prog_compiler_pic='-KPIC'
11585 lt_prog_compiler_static='-Bstatic'
11586 lt_prog_compiler_wl=''
11594 lt_prog_compiler_pic='-KPIC'
11595 lt_prog_compiler_static='-Bstatic'
11599 # QNX uses GNU C++, but need to define -shared option too, otherwise
11600 # it will coredump.
11601 lt_prog_compiler_pic='-fPIC -shared'
11604 osf3* | osf4* | osf5*)
11605 lt_prog_compiler_wl='-Wl,'
11606 # All OSF/1 code is PIC.
11607 lt_prog_compiler_static='-non_shared'
11611 lt_prog_compiler_static='-non_shared'
11615 lt_prog_compiler_pic='-KPIC'
11616 lt_prog_compiler_static='-Bstatic'
11617 case $cc_basename in
11618 f77* | f90* | f95*)
11619 lt_prog_compiler_wl='-Qoption ld ';;
11621 lt_prog_compiler_wl='-Wl,';;
11626 lt_prog_compiler_wl='-Qoption ld '
11627 lt_prog_compiler_pic='-PIC'
11628 lt_prog_compiler_static='-Bstatic'
11631 sysv4 | sysv4.2uw2* | sysv4.3*)
11632 lt_prog_compiler_wl='-Wl,'
11633 lt_prog_compiler_pic='-KPIC'
11634 lt_prog_compiler_static='-Bstatic'
11638 if test -d /usr/nec ;then
11639 lt_prog_compiler_pic='-Kconform_pic'
11640 lt_prog_compiler_static='-Bstatic'
11644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11645 lt_prog_compiler_wl='-Wl,'
11646 lt_prog_compiler_pic='-KPIC'
11647 lt_prog_compiler_static='-Bstatic'
11651 lt_prog_compiler_wl='-Wl,'
11652 lt_prog_compiler_can_build_shared=no
11656 lt_prog_compiler_pic='-pic'
11657 lt_prog_compiler_static='-Bstatic'
11661 lt_prog_compiler_can_build_shared=no
11667 # For platforms which do not support PIC, -DPIC is meaningless:
11669 lt_prog_compiler_pic=
11672 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11675 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11676 $as_echo "$lt_prog_compiler_pic" >&6; }
11684 # Check to make sure the PIC flag actually works.
11686 if test -n "$lt_prog_compiler_pic"; then
11687 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11689 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11690 $as_echo_n "(cached) " >&6
11692 lt_cv_prog_compiler_pic_works=no
11693 ac_outfile=conftest.$ac_objext
11694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11696 # Insert the option either (1) after the last *FLAGS variable, or
11697 # (2) before a word containing "conftest.", or (3) at the end.
11698 # Note that $ac_compile itself does not contain backslashes and begins
11699 # with a dollar sign (not a hyphen), so the echo should work correctly.
11700 # The option is referenced via a variable to avoid confusing sed.
11701 lt_compile=`echo "$ac_compile" | $SED \
11702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11704 -e 's:$: $lt_compiler_flag:'`
11705 (eval echo "\"\$as_me:11705: $lt_compile\"" >&5)
11706 (eval "$lt_compile" 2>conftest.err)
11708 cat conftest.err >&5
11709 echo "$as_me:11709: \$? = $ac_status" >&5
11710 if (exit $ac_status) && test -s "$ac_outfile"; then
11711 # The compiler can only warn and ignore the option if not recognized
11712 # So say no if there are warnings other than the usual output.
11713 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11716 lt_cv_prog_compiler_pic_works=yes
11722 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11725 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11726 case $lt_prog_compiler_pic in
11728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11731 lt_prog_compiler_pic=
11732 lt_prog_compiler_can_build_shared=no
11743 # Check to make sure the static flag actually works.
11745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11746 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11748 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11749 $as_echo_n "(cached) " >&6
11751 lt_cv_prog_compiler_static_works=no
11752 save_LDFLAGS="$LDFLAGS"
11753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11756 # The linker can only warn and ignore the option if not recognized
11757 # So say no if there are warnings
11758 if test -s conftest.err; then
11759 # Append any errors to the config.log.
11760 cat conftest.err 1>&5
11761 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11763 if diff conftest.exp conftest.er2 >/dev/null; then
11764 lt_cv_prog_compiler_static_works=yes
11767 lt_cv_prog_compiler_static_works=yes
11771 LDFLAGS="$save_LDFLAGS"
11774 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11775 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11777 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11780 lt_prog_compiler_static=
11789 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11791 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11792 $as_echo_n "(cached) " >&6
11794 lt_cv_prog_compiler_c_o=no
11795 $RM -r conftest 2>/dev/null
11799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11801 lt_compiler_flag="-o out/conftest2.$ac_objext"
11802 # Insert the option either (1) after the last *FLAGS variable, or
11803 # (2) before a word containing "conftest.", or (3) at the end.
11804 # Note that $ac_compile itself does not contain backslashes and begins
11805 # with a dollar sign (not a hyphen), so the echo should work correctly.
11806 lt_compile=`echo "$ac_compile" | $SED \
11807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11809 -e 's:$: $lt_compiler_flag:'`
11810 (eval echo "\"\$as_me:11810: $lt_compile\"" >&5)
11811 (eval "$lt_compile" 2>out/conftest.err)
11813 cat out/conftest.err >&5
11814 echo "$as_me:11814: \$? = $ac_status" >&5
11815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11817 # The compiler can only warn and ignore the option if not recognized
11818 # So say no if there are warnings
11819 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11822 lt_cv_prog_compiler_c_o=yes
11827 # SGI C++ compiler will create directory out/ii_files/ for
11828 # template instantiation
11829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11830 $RM out/* && rmdir out
11836 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11844 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11847 $as_echo_n "(cached) " >&6
11849 lt_cv_prog_compiler_c_o=no
11850 $RM -r conftest 2>/dev/null
11854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11856 lt_compiler_flag="-o out/conftest2.$ac_objext"
11857 # Insert the option either (1) after the last *FLAGS variable, or
11858 # (2) before a word containing "conftest.", or (3) at the end.
11859 # Note that $ac_compile itself does not contain backslashes and begins
11860 # with a dollar sign (not a hyphen), so the echo should work correctly.
11861 lt_compile=`echo "$ac_compile" | $SED \
11862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11864 -e 's:$: $lt_compiler_flag:'`
11865 (eval echo "\"\$as_me:11865: $lt_compile\"" >&5)
11866 (eval "$lt_compile" 2>out/conftest.err)
11868 cat out/conftest.err >&5
11869 echo "$as_me:11869: \$? = $ac_status" >&5
11870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11872 # The compiler can only warn and ignore the option if not recognized
11873 # So say no if there are warnings
11874 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11877 lt_cv_prog_compiler_c_o=yes
11882 # SGI C++ compiler will create directory out/ii_files/ for
11883 # template instantiation
11884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11885 $RM out/* && rmdir out
11891 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11897 hard_links="nottested"
11898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11899 # do not overwrite the value of need_locks provided by the user
11900 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11901 $as_echo_n "checking if we can lock with hard links... " >&6; }
11904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11906 ln conftest.a conftest.b 2>&5 || hard_links=no
11907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11908 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11909 $as_echo "$hard_links" >&6; }
11910 if test "$hard_links" = no; then
11911 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11924 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11928 allow_undefined_flag=
11929 always_export_symbols=no
11931 archive_expsym_cmds=
11932 compiler_needs_object=no
11933 enable_shared_with_static_runtimes=no
11934 export_dynamic_flag_spec=
11935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11936 hardcode_automatic=no
11938 hardcode_direct_absolute=no
11939 hardcode_libdir_flag_spec=
11940 hardcode_libdir_flag_spec_ld=
11941 hardcode_libdir_separator=
11942 hardcode_minus_L=no
11943 hardcode_shlibpath_var=unsupported
11945 link_all_deplibs=unknown
11947 module_expsym_cmds=
11948 old_archive_from_new_cmds=
11949 old_archive_from_expsyms_cmds=
11950 thread_safe_flag_spec=
11951 whole_archive_flag_spec=
11952 # include_expsyms should be a list of space-separated symbols to be *always*
11953 # included in the symbol list
11955 # exclude_expsyms can be an extended regexp of symbols to exclude
11956 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11957 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11958 # as well as any symbol that contains `d'.
11959 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11960 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11961 # platforms (ab)use it in PIC code, but their linkers get confused if
11962 # the symbol is explicitly referenced. Since portable code cannot
11963 # rely on this symbol name, it's probably fine to never include it in
11964 # preloaded symbol tables.
11965 # Exclude shared library initialization/finalization symbols.
11966 extract_expsyms_cmds=
11969 cygwin* | mingw* | pw32* | cegcc*)
11970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11971 # When not using gcc, we currently assume that we are using
11972 # Microsoft Visual C++.
11973 if test "$GCC" != yes; then
11978 # we just hope/assume this is gcc and not c89 (= MSVC++)
11987 if test "$with_gnu_ld" = yes; then
11988 # If archive_cmds runs LD, not CC, wlarc should be empty
11991 # Set some defaults for GNU ld with shared library support. These
11992 # are reset later if shared libraries are not supported. Putting them
11993 # here allows them to be overridden if necessary.
11994 runpath_var=LD_RUN_PATH
11995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11996 export_dynamic_flag_spec='${wl}--export-dynamic'
11997 # ancient GNU ld didn't support --whole-archive et. al.
11998 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12001 whole_archive_flag_spec=
12003 supports_anon_versioning=no
12004 case `$LD -v 2>&1` in
12005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12008 *\ 2.11.*) ;; # other 2.11 versions
12009 *) supports_anon_versioning=yes ;;
12012 # See if GNU ld supports shared libraries.
12015 # On AIX/PPC, the GNU linker is very broken
12016 if test "$host_cpu" != ia64; then
12020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12021 *** to be unable to reliably create shared libraries on AIX.
12022 *** Therefore, libtool is disabling shared libraries support. If you
12023 *** really care for shared libraries, you may want to modify your PATH
12024 *** so that a non-GNU linker is found, and then restart.
12033 # see comment about AmigaOS4 .so support
12034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12035 archive_expsym_cmds=''
12038 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)'
12039 hardcode_libdir_flag_spec='-L$libdir'
12040 hardcode_minus_L=yes
12046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12047 allow_undefined_flag=unsupported
12048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12049 # support --undefined. This deserves some investigation. FIXME
12050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12056 cygwin* | mingw* | pw32* | cegcc*)
12057 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12058 # as there is no search path for DLLs.
12059 hardcode_libdir_flag_spec='-L$libdir'
12060 allow_undefined_flag=unsupported
12061 always_export_symbols=no
12062 enable_shared_with_static_runtimes=yes
12063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12065 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12067 # If the export-symbols file already is a .def file (1st line
12068 # is EXPORTS), use it as is; otherwise, prepend...
12069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12070 cp $export_symbols $output_objdir/$soname.def;
12072 echo EXPORTS > $output_objdir/$soname.def;
12073 cat $export_symbols >> $output_objdir/$soname.def;
12075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12083 hardcode_shlibpath_var=no
12084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12085 export_dynamic_flag_spec='${wl}-E'
12086 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12087 # Instead, shared libraries are loaded at an image base (0x10000000 by
12088 # default) and relocated if they conflict, which is a slow very memory
12089 # consuming and fragmenting process. To avoid this, we pick a random,
12090 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12091 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12093 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'
12096 gnu* | linux* | tpf* | k*bsd*-gnu)
12098 if test "$host_os" = linux-dietlibc; then
12099 case $cc_basename in
12100 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12103 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12104 && test "$tmp_diet" = no
12107 tmp_sharedflag='-shared'
12108 case $cc_basename,$host_cpu in
12109 pgcc*) # Portland Group C compiler
12110 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'
12111 tmp_addflag=' $pic_flag'
12113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12114 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'
12115 tmp_addflag=' $pic_flag -Mnomain' ;;
12116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12117 tmp_addflag=' -i_dynamic' ;;
12118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12119 tmp_addflag=' -i_dynamic -nofor_main' ;;
12120 ifc* | ifort*) # Intel Fortran compiler
12121 tmp_addflag=' -nofor_main' ;;
12122 lf95*) # Lahey Fortran 8.1
12123 whole_archive_flag_spec=
12124 tmp_sharedflag='--shared' ;;
12125 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12126 tmp_sharedflag='-qmkshrobj'
12129 case `$CC -V 2>&1 | sed 5q` in
12130 *Sun\ C*) # Sun C 5.9
12131 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12132 compiler_needs_object=yes
12133 tmp_sharedflag='-G' ;;
12134 *Sun\ F*) # Sun Fortran 8.3
12135 tmp_sharedflag='-G' ;;
12137 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12139 if test "x$supports_anon_versioning" = xyes; then
12140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12142 echo "local: *; };" >> $output_objdir/$libname.ver~
12143 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12146 case $cc_basename in
12148 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12149 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12150 hardcode_libdir_flag_spec=
12151 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12152 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12153 if test "x$supports_anon_versioning" = xyes; then
12154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12156 echo "local: *; };" >> $output_objdir/$libname.ver~
12157 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12168 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12177 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12182 *** create shared libraries on Solaris systems. Therefore, libtool
12183 *** is disabling shared libraries support. We urge you to upgrade GNU
12184 *** binutils to release 2.9.1 or newer. Another option is to modify
12185 *** your PATH or compiler configuration so that the native linker is
12186 *** used, and then restart.
12189 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12198 case `$LD -v 2>&1` in
12199 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12204 *** reliably create shared libraries on SCO systems. Therefore, libtool
12205 *** is disabling shared libraries support. We urge you to upgrade GNU
12206 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12207 *** your PATH or compiler configuration so that the native linker is
12208 *** used, and then restart.
12213 # For security reasons, it is highly recommended that you always
12214 # use absolute paths for naming shared libraries, and exclude the
12215 # DT_RUNPATH tag from executables and libraries. But doing so
12216 # requires that you compile everything twice, which is a pain.
12217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12231 hardcode_direct=yes
12232 hardcode_shlibpath_var=no
12236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12245 if test "$ld_shlibs" = no; then
12247 hardcode_libdir_flag_spec=
12248 export_dynamic_flag_spec=
12249 whole_archive_flag_spec=
12252 # PORTME fill in a description of your system's linker (not GNU ld)
12255 allow_undefined_flag=unsupported
12256 always_export_symbols=yes
12257 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'
12258 # Note: this linker hardcodes the directories in LIBPATH if there
12259 # are no directories specified by -L.
12260 hardcode_minus_L=yes
12261 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12262 # Neither direct hardcoding nor static linking is supported with a
12264 hardcode_direct=unsupported
12269 if test "$host_cpu" = ia64; then
12270 # On IA64, the linker does run time linking by default, so we don't
12271 # have to do anything special.
12272 aix_use_runtimelinking=no
12273 exp_sym_flag='-Bexport'
12276 # If we're using GNU nm, then we don't want the "-C" option.
12277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12278 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12279 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'
12281 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'
12283 aix_use_runtimelinking=no
12285 # Test if we are trying to use run time linking or normal
12286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12287 # need to do runtime linking.
12288 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12289 for ld_flag in $LDFLAGS; do
12290 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12291 aix_use_runtimelinking=yes
12298 exp_sym_flag='-bexport'
12299 no_entry_flag='-bnoentry'
12302 # When large executables or shared objects are built, AIX ld can
12303 # have problems creating the table of contents. If linking a library
12304 # or program results in "error TOC overflow" add -mminimal-toc to
12305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12309 hardcode_direct=yes
12310 hardcode_direct_absolute=yes
12311 hardcode_libdir_separator=':'
12312 link_all_deplibs=yes
12313 file_list_spec='${wl}-f,'
12315 if test "$GCC" = yes; then
12316 case $host_os in aix4.[012]|aix4.[012].*)
12317 # We only want to do this on AIX 4.2 and lower, the check
12318 # below for broken collect2 doesn't work under 4.3+
12319 collect2name=`${CC} -print-prog-name=collect2`
12320 if test -f "$collect2name" &&
12321 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12323 # We have reworked collect2
12326 # We have old collect2
12327 hardcode_direct=unsupported
12328 # It fails to find uninstalled libraries when the uninstalled
12329 # path is not listed in the libpath. Setting hardcode_minus_L
12330 # to unsupported forces relinking
12331 hardcode_minus_L=yes
12332 hardcode_libdir_flag_spec='-L$libdir'
12333 hardcode_libdir_separator=
12337 shared_flag='-shared'
12338 if test "$aix_use_runtimelinking" = yes; then
12339 shared_flag="$shared_flag "'${wl}-G'
12343 if test "$host_cpu" = ia64; then
12344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12345 # chokes on -Wl,-G. The following line is correct:
12348 if test "$aix_use_runtimelinking" = yes; then
12349 shared_flag='${wl}-G'
12351 shared_flag='${wl}-bM:SRE'
12356 export_dynamic_flag_spec='${wl}-bexpall'
12357 # It seems that -bexpall does not export symbols beginning with
12358 # underscore (_), so it is better to generate a list of symbols to export.
12359 always_export_symbols=yes
12360 if test "$aix_use_runtimelinking" = yes; then
12361 # Warning - without using the other runtime loading flags (-brtl),
12362 # -berok will link without error, but may produce a broken library.
12363 allow_undefined_flag='-berok'
12364 # Determine the default libpath from the value encoded in an
12365 # empty executable.
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (ac_try="$ac_link"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12388 $as_echo "$ac_try_echo") >&5
12389 (eval "$ac_link") 2>conftest.er1
12391 grep -v '^ *+' conftest.er1 >conftest.err
12393 cat conftest.err >&5
12394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } && {
12396 test -z "$ac_c_werror_flag" ||
12397 test ! -s conftest.err
12398 } && test -s conftest$ac_exeext && {
12399 test "$cross_compiling" = yes ||
12400 $as_test_x conftest$ac_exeext
12403 lt_aix_libpath_sed='
12404 /Import File Strings/,/^$/ {
12410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 # Check for a 64-bit object if we didn't find anything.
12412 if test -z "$aix_libpath"; then
12413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12427 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12428 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12430 if test "$host_cpu" = ia64; then
12431 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12432 allow_undefined_flag="-z nodefs"
12433 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"
12435 # Determine the default libpath from the value encoded in an
12436 # empty executable.
12437 cat >conftest.$ac_ext <<_ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12459 $as_echo "$ac_try_echo") >&5
12460 (eval "$ac_link") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest$ac_exeext && {
12470 test "$cross_compiling" = yes ||
12471 $as_test_x conftest$ac_exeext
12474 lt_aix_libpath_sed='
12475 /Import File Strings/,/^$/ {
12481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482 # Check for a 64-bit object if we didn't find anything.
12483 if test -z "$aix_libpath"; then
12484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12487 $as_echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12493 rm -rf conftest.dSYM
12494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12495 conftest$ac_exeext conftest.$ac_ext
12496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12499 # Warning - without using the other run time loading flags,
12500 # -berok will link without error, but may produce a broken library.
12501 no_undefined_flag=' ${wl}-bernotok'
12502 allow_undefined_flag=' ${wl}-berok'
12503 # Exported symbols can be pulled into shared objects from archives
12504 whole_archive_flag_spec='$convenience'
12505 archive_cmds_need_lc=yes
12506 # This is similar to how AIX traditionally builds its shared libraries.
12507 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'
12515 # see comment about AmigaOS4 .so support
12516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12517 archive_expsym_cmds=''
12520 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)'
12521 hardcode_libdir_flag_spec='-L$libdir'
12522 hardcode_minus_L=yes
12528 export_dynamic_flag_spec=-rdynamic
12531 cygwin* | mingw* | pw32* | cegcc*)
12532 # When not using gcc, we currently assume that we are using
12533 # Microsoft Visual C++.
12534 # hardcode_libdir_flag_spec is actually meaningless, as there is
12535 # no search path for DLLs.
12536 hardcode_libdir_flag_spec=' '
12537 allow_undefined_flag=unsupported
12538 # Tell ltmain to make .lib files, not .a files.
12540 # Tell ltmain to make .dll files, not .so files.
12542 # FIXME: Setting linknames here is a bad hack.
12543 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12544 # The linker will automatically build a .lib file if we build a DLL.
12545 old_archive_from_new_cmds='true'
12546 # FIXME: Should let the user specify the lib program.
12547 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12548 fix_srcfile_path='`cygpath -w "$srcfile"`'
12549 enable_shared_with_static_runtimes=yes
12552 darwin* | rhapsody*)
12555 archive_cmds_need_lc=no
12557 hardcode_automatic=yes
12558 hardcode_shlibpath_var=unsupported
12559 whole_archive_flag_spec=''
12560 link_all_deplibs=yes
12561 allow_undefined_flag="$_lt_dar_allow_undefined"
12562 case $cc_basename in
12563 ifort*) _lt_dar_can_shared=yes ;;
12564 *) _lt_dar_can_shared=$GCC ;;
12566 if test "$_lt_dar_can_shared" = "yes"; then
12567 output_verbose_link_cmd=echo
12568 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12569 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12570 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12571 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12581 hardcode_libdir_flag_spec='-L$libdir'
12582 hardcode_shlibpath_var=no
12589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12590 # support. Future versions do this automatically, but an explicit c++rt0.o
12591 # does not break anything, and helps significantly (at the cost of a little
12594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12595 hardcode_libdir_flag_spec='-R$libdir'
12596 hardcode_direct=yes
12597 hardcode_shlibpath_var=no
12600 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12603 hardcode_direct=yes
12604 hardcode_minus_L=yes
12605 hardcode_shlibpath_var=no
12608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12609 freebsd* | dragonfly*)
12610 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12611 hardcode_libdir_flag_spec='-R$libdir'
12612 hardcode_direct=yes
12613 hardcode_shlibpath_var=no
12617 if test "$GCC" = yes; then
12618 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'
12620 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'
12622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12623 hardcode_libdir_separator=:
12624 hardcode_direct=yes
12626 # hardcode_minus_L: Not really in the search PATH,
12627 # but as the default location of the library.
12628 hardcode_minus_L=yes
12629 export_dynamic_flag_spec='${wl}-E'
12633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12634 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12636 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12638 if test "$with_gnu_ld" = no; then
12639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12640 hardcode_libdir_flag_spec_ld='+b $libdir'
12641 hardcode_libdir_separator=:
12642 hardcode_direct=yes
12643 hardcode_direct_absolute=yes
12644 export_dynamic_flag_spec='${wl}-E'
12645 # hardcode_minus_L: Not really in the search PATH,
12646 # but as the default location of the library.
12647 hardcode_minus_L=yes
12652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12655 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12661 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12667 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12677 if test "$with_gnu_ld" = no; then
12678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12679 hardcode_libdir_separator=:
12684 hardcode_shlibpath_var=no
12687 hardcode_direct=yes
12688 hardcode_direct_absolute=yes
12689 export_dynamic_flag_spec='${wl}-E'
12691 # hardcode_minus_L: Not really in the search PATH,
12692 # but as the default location of the library.
12693 hardcode_minus_L=yes
12699 irix5* | irix6* | nonstopux*)
12700 if test "$GCC" = yes; then
12701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12702 # Try to use the -exported_symbol ld option, if it does not
12703 # work, assume that -exports_file does not work either and
12704 # implicitly export all symbols.
12705 save_LDFLAGS="$LDFLAGS"
12706 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12707 cat >conftest.$ac_ext <<_ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717 $as_echo "$ac_try_echo") >&5
12718 (eval "$ac_link") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest$ac_exeext && {
12728 test "$cross_compiling" = yes ||
12729 $as_test_x conftest$ac_exeext
12731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12734 $as_echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12740 rm -rf conftest.dSYM
12741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LDFLAGS="$save_LDFLAGS"
12745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12748 archive_cmds_need_lc='no'
12749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12750 hardcode_libdir_separator=:
12752 link_all_deplibs=yes
12756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12761 hardcode_libdir_flag_spec='-R$libdir'
12762 hardcode_direct=yes
12763 hardcode_shlibpath_var=no
12767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12768 hardcode_direct=yes
12769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12770 hardcode_libdir_separator=:
12771 hardcode_shlibpath_var=no
12778 if test -f /usr/libexec/ld.so; then
12779 hardcode_direct=yes
12780 hardcode_shlibpath_var=no
12781 hardcode_direct_absolute=yes
12782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12786 export_dynamic_flag_spec='${wl}-E'
12789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12791 hardcode_libdir_flag_spec='-R$libdir'
12794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12805 hardcode_libdir_flag_spec='-L$libdir'
12806 hardcode_minus_L=yes
12807 allow_undefined_flag=unsupported
12808 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'
12809 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12813 if test "$GCC" = yes; then
12814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12815 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12817 allow_undefined_flag=' -expect_unresolved \*'
12818 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12820 archive_cmds_need_lc='no'
12821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12822 hardcode_libdir_separator=:
12825 osf4* | osf5*) # as osf3* with the addition of -msym flag
12826 if test "$GCC" = yes; then
12827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12828 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12831 allow_undefined_flag=' -expect_unresolved \*'
12832 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12833 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12834 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12836 # Both c and cxx compiler support -rpath directly
12837 hardcode_libdir_flag_spec='-rpath $libdir'
12839 archive_cmds_need_lc='no'
12840 hardcode_libdir_separator=:
12844 no_undefined_flag=' -z defs'
12845 if test "$GCC" = yes; then
12847 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12849 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12851 case `$CC -V 2>&1` in
12854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12860 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12862 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12866 hardcode_libdir_flag_spec='-R$libdir'
12867 hardcode_shlibpath_var=no
12869 solaris2.[0-5] | solaris2.[0-5].*) ;;
12871 # The compiler driver will combine and reorder linker options,
12872 # but understands `-z linker_flag'. GCC discards it without `$wl',
12873 # but is careful enough not to reorder.
12874 # Supported since Solaris 2.6 (maybe 2.5.1?)
12875 if test "$GCC" = yes; then
12876 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12882 link_all_deplibs=yes
12886 if test "x$host_vendor" = xsequent; then
12887 # Use $CC to link under sequent, because it throws in some extra .o
12888 # files that make .init and .fini sections work.
12889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12893 hardcode_libdir_flag_spec='-L$libdir'
12894 hardcode_direct=yes
12895 hardcode_minus_L=yes
12896 hardcode_shlibpath_var=no
12900 case $host_vendor in
12902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12903 hardcode_direct=yes # is this really true???
12906 ## LD is ld it makes a PLAMLIB
12907 ## CC just makes a GrossModule.
12908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12909 reload_cmds='$CC -r -o $output$reload_objs'
12913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12917 runpath_var='LD_RUN_PATH'
12918 hardcode_shlibpath_var=no
12922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_shlibpath_var=no
12924 export_dynamic_flag_spec='-Bexport'
12928 if test -d /usr/nec; then
12929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12930 hardcode_shlibpath_var=no
12931 runpath_var=LD_RUN_PATH
12932 hardcode_runpath_var=yes
12937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12938 no_undefined_flag='${wl}-z,text'
12939 archive_cmds_need_lc=no
12940 hardcode_shlibpath_var=no
12941 runpath_var='LD_RUN_PATH'
12943 if test "$GCC" = yes; then
12944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12952 sysv5* | sco3.2v5* | sco5v6*)
12953 # Note: We can NOT use -z defs as we might desire, because we do not
12954 # link with -lc, and that would cause any symbols used from libc to
12955 # always be unresolved, which means just about no library would
12956 # ever link correctly. If we're not using GNU ld we use -z text
12957 # though, which does catch some bad symbols but isn't as heavy-handed
12959 no_undefined_flag='${wl}-z,text'
12960 allow_undefined_flag='${wl}-z,nodefs'
12961 archive_cmds_need_lc=no
12962 hardcode_shlibpath_var=no
12963 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12964 hardcode_libdir_separator=':'
12965 link_all_deplibs=yes
12966 export_dynamic_flag_spec='${wl}-Bexport'
12967 runpath_var='LD_RUN_PATH'
12969 if test "$GCC" = yes; then
12970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12980 hardcode_libdir_flag_spec='-L$libdir'
12981 hardcode_shlibpath_var=no
12989 if test x$host_vendor = xsni; then
12991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12992 export_dynamic_flag_spec='${wl}-Blargedynsym'
12998 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12999 $as_echo "$ld_shlibs" >&6; }
13000 test "$ld_shlibs" = no && can_build_shared=no
13002 with_gnu_ld=$with_gnu_ld
13019 # Do we need to explicitly link libc?
13021 case "x$archive_cmds_need_lc" in
13023 # Assume -lc should be added
13024 archive_cmds_need_lc=yes
13026 if test "$enable_shared" = yes && test "$GCC" = yes; then
13027 case $archive_cmds in
13029 # FIXME: we may have to deal with multi-command sequences.
13032 # Test whether the compiler implicitly links with -lc since on some
13033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13034 # to ld, don't add -lc before -lgcc.
13035 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13036 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>&5
13043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } 2>conftest.err; then
13047 libobjs=conftest.$ac_objext
13049 wl=$lt_prog_compiler_wl
13050 pic_flag=$lt_prog_compiler_pic
13056 lt_save_allow_undefined_flag=$allow_undefined_flag
13057 allow_undefined_flag=
13058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }
13064 archive_cmds_need_lc=no
13066 archive_cmds_need_lc=yes
13068 allow_undefined_flag=$lt_save_allow_undefined_flag
13070 cat conftest.err 1>&5
13073 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13074 $as_echo "$archive_cmds_need_lc" >&6; }
13237 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13238 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13240 if test "$GCC" = yes; then
13242 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13243 *) lt_awk_arg="/^libraries:/" ;;
13245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13246 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13247 # if the path contains ";" then we assume it to be the separator
13248 # otherwise default to the standard path separator (i.e. ":") - it is
13249 # assumed that no part of a normal pathname contains ";" but that should
13250 # okay in the real world where ";" in dirpaths is itself problematic.
13251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13255 # Ok, now we have the path, separated by spaces, we can step through it
13256 # and add multilib dir if necessary.
13257 lt_tmp_lt_search_path_spec=
13258 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13259 for lt_sys_path in $lt_search_path_spec; do
13260 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13263 test -d "$lt_sys_path" && \
13264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13267 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13268 BEGIN {RS=" "; FS="/|\n";} {
13271 for (lt_i = NF; lt_i > 0; lt_i--) {
13272 if ($lt_i != "" && $lt_i != ".") {
13273 if ($lt_i == "..") {
13276 if (lt_count == 0) {
13277 lt_foo="/" $lt_i lt_foo;
13284 if (lt_foo != "") { lt_freq[lt_foo]++; }
13285 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13287 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13291 library_names_spec=
13292 libname_spec='lib$name'
13296 postuninstall_cmds=
13300 shlibpath_overrides_runpath=unknown
13302 dynamic_linker="$host_os ld.so"
13303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13304 need_lib_prefix=unknown
13305 hardcode_into_libs=no
13307 # when you set need_version to no, make sure it does not cause -set_version
13308 # flags to be left without arguments
13309 need_version=unknown
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13315 shlibpath_var=LIBPATH
13317 # AIX 3 has no versioning support, so we append a major version to the name.
13318 soname_spec='${libname}${release}${shared_ext}$major'
13325 hardcode_into_libs=yes
13326 if test "$host_cpu" = ia64; then
13327 # AIX 5 supports IA64
13328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13329 shlibpath_var=LD_LIBRARY_PATH
13331 # With GCC up to 2.95.x, collect2 would create an import file
13332 # for dependence libraries. The import file would start with
13333 # the line `#! .'. This would cause the generated library to
13334 # depend on `.', always an invalid library. This was fixed in
13335 # development snapshots of GCC prior to 3.0.
13337 aix4 | aix4.[01] | aix4.[01].*)
13338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13343 can_build_shared=no
13347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13348 # soname into executable. Probably we can add versioning support to
13349 # collect2, so additional links can be useful in future.
13350 if test "$aix_use_runtimelinking" = yes; then
13351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13352 # instead of lib<name>.a to let people know that these are not
13353 # typical AIX shared libraries.
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13356 # We preserve .a as extension for shared libraries through AIX4.2
13357 # and later when we are not doing run time linking.
13358 library_names_spec='${libname}${release}.a $libname.a'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13361 shlibpath_var=LIBPATH
13368 # Since July 2007 AmigaOS4 officially supports .so libraries.
13369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13373 library_names_spec='$libname.ixlibrary $libname.a'
13374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13375 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'
13381 library_names_spec='${libname}${shared_ext}'
13382 dynamic_linker="$host_os ld.so"
13383 shlibpath_var=LIBRARY_PATH
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390 soname_spec='${libname}${release}${shared_ext}$major'
13391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13395 # the default ld.so.conf also contains /usr/contrib/lib and
13396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13397 # libtool to hard-code these into programs
13400 cygwin* | mingw* | pw32* | cegcc*)
13401 version_type=windows
13406 case $GCC,$host_os in
13407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13408 library_names_spec='$libname.dll.a'
13409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13410 postinstall_cmds='base_file=`basename \${file}`~
13411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13412 dldir=$destdir/`dirname \$dlpath`~
13413 test -d \$dldir || mkdir -p \$dldir~
13414 $install_prog $dir/$dlname \$dldir/$dlname~
13415 chmod a+x \$dldir/$dlname~
13416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13420 dlpath=$dir/\$dldll~
13422 shlibpath_overrides_runpath=yes
13426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13431 # MinGW DLLs use traditional 'lib' prefix
13432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13433 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13435 # It is most probably a Windows format PATH printed by
13436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13437 # path with ; separators, and with drive letters. We can handle the
13438 # drive letters (cygwin fileutils understands them), so leave them,
13439 # especially as we might pass files found there to a mingw objdump,
13440 # which wouldn't understand a cygwinified path. Ahh.
13441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13447 # pw32 DLLs use 'pw' prefix rather than 'lib'
13448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13457 dynamic_linker='Win32 ld.exe'
13458 # FIXME: first we should search . and the directory the executable is in
13462 darwin* | rhapsody*)
13463 dynamic_linker="$host_os dyld"
13464 version_type=darwin
13467 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13468 soname_spec='${libname}${release}${major}$shared_ext'
13469 shlibpath_overrides_runpath=yes
13470 shlibpath_var=DYLD_LIBRARY_PATH
13471 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 shlibpath_var=LD_LIBRARY_PATH
13490 freebsd* | dragonfly*)
13491 # DragonFly does not have aout. When/if they implement a new
13492 # versioning mechanism, adjust this.
13493 if test -x /usr/bin/objformat; then
13494 objformat=`/usr/bin/objformat`
13497 freebsd[123]*) objformat=aout ;;
13498 *) objformat=elf ;;
13501 version_type=freebsd-$objformat
13502 case $version_type in
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13513 shlibpath_var=LD_LIBRARY_PATH
13516 shlibpath_overrides_runpath=yes
13518 freebsd3.[01]* | freebsdelf3.[01]*)
13519 shlibpath_overrides_runpath=yes
13520 hardcode_into_libs=yes
13522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13524 shlibpath_overrides_runpath=no
13525 hardcode_into_libs=yes
13527 *) # from 4.6 on, and DragonFly
13528 shlibpath_overrides_runpath=yes
13529 hardcode_into_libs=yes
13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13539 soname_spec='${libname}${release}${shared_ext}$major'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 hardcode_into_libs=yes
13544 hpux9* | hpux10* | hpux11*)
13545 # Give a soname corresponding to the major version so that dld.sl refuses to
13546 # link against other versions.
13553 hardcode_into_libs=yes
13554 dynamic_linker="$host_os dld.so"
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 soname_spec='${libname}${release}${shared_ext}$major'
13559 if test "X$HPUX_IA64_MODE" = X32; then
13560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13568 hardcode_into_libs=yes
13569 dynamic_linker="$host_os dld.sl"
13570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13579 dynamic_linker="$host_os dld.sl"
13580 shlibpath_var=SHLIB_PATH
13581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13587 postinstall_cmds='chmod 555 $lib'
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13597 shlibpath_var=LD_LIBRARY_PATH
13598 shlibpath_overrides_runpath=no
13599 hardcode_into_libs=yes
13602 irix5* | irix6* | nonstopux*)
13604 nonstopux*) version_type=nonstopux ;;
13606 if test "$lt_cv_prog_gnu_ld" = yes; then
13614 soname_spec='${libname}${release}${shared_ext}$major'
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13617 irix5* | nonstopux*)
13618 libsuff= shlibsuff=
13621 case $LD in # libtool.m4 will add one of these switches to LD
13622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13623 libsuff= shlibsuff= libmagic=32-bit;;
13624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13625 libsuff=32 shlibsuff=N32 libmagic=N32;;
13626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13628 *) libsuff= shlibsuff= libmagic=never-match;;
13632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13633 shlibpath_overrides_runpath=no
13634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13636 hardcode_into_libs=yes
13639 # No shared lib support for Linux oldld, aout, or coff.
13640 linux*oldld* | linux*aout* | linux*coff*)
13644 # This must be Linux ELF.
13645 linux* | k*bsd*-gnu)
13649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13650 soname_spec='${libname}${release}${shared_ext}$major'
13651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 shlibpath_overrides_runpath=no
13654 # Some binutils ld are patched to set DT_RUNPATH
13655 save_LDFLAGS=$LDFLAGS
13656 save_libdir=$libdir
13657 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13658 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (ac_try="$ac_link"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13681 $as_echo "$ac_try_echo") >&5
13682 (eval "$ac_link") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest$ac_exeext && {
13692 test "$cross_compiling" = yes ||
13693 $as_test_x conftest$ac_exeext
13695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13696 shlibpath_overrides_runpath=yes
13700 $as_echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13706 rm -rf conftest.dSYM
13707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LDFLAGS=$save_LDFLAGS
13710 libdir=$save_libdir
13712 # This implies no fast_install, which is unacceptable.
13713 # Some rework will be needed to allow for fast_install
13714 # before this can be enabled.
13715 hardcode_into_libs=yes
13717 # Add ABI-specific directories to the system library path.
13718 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13720 # Append ld.so.conf contents to the search path
13721 if test -f /etc/ld.so.conf; then
13722 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13723 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13726 # We used to test for /lib/ld.so.1 and disable shared libraries on
13727 # powerpc, because MkLinux only supported shared libraries with the
13728 # GNU dynamic linker. Since this was broken with cross compilers,
13729 # most powerpc-linux boxes support dynamic linking these days and
13730 # people can always --disable-shared, the test was removed, and we
13731 # assume the GNU/Linux dynamic linker is in use.
13732 dynamic_linker='GNU/Linux ld.so'
13739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13742 dynamic_linker='NetBSD (a.out) ld.so'
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 dynamic_linker='NetBSD ld.elf_so'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 shlibpath_overrides_runpath=yes
13750 hardcode_into_libs=yes
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 shlibpath_overrides_runpath=yes
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 soname_spec='${libname}${release}${shared_ext}$major'
13766 shlibpath_var=LD_LIBRARY_PATH
13767 shlibpath_overrides_runpath=no
13768 hardcode_into_libs=yes
13769 dynamic_linker='ldqnx.so'
13774 sys_lib_dlsearch_path_spec="/usr/lib"
13776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13778 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13779 *) need_version=no ;;
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13786 openbsd2.[89] | openbsd2.[89].*)
13787 shlibpath_overrides_runpath=no
13790 shlibpath_overrides_runpath=yes
13794 shlibpath_overrides_runpath=yes
13799 libname_spec='$name'
13802 library_names_spec='$libname${shared_ext} $libname.a'
13803 dynamic_linker='OS/2 ld.exe'
13804 shlibpath_var=LIBPATH
13807 osf3* | osf4* | osf5*)
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13813 shlibpath_var=LD_LIBRARY_PATH
13814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13815 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13830 hardcode_into_libs=yes
13831 # ldd complains unless libraries are executable
13832 postinstall_cmds='chmod +x $lib'
13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13839 shlibpath_var=LD_LIBRARY_PATH
13840 shlibpath_overrides_runpath=yes
13841 if test "$with_gnu_ld" = yes; then
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 case $host_vendor in
13854 shlibpath_overrides_runpath=no
13856 runpath_var=LD_RUN_PATH
13864 shlibpath_overrides_runpath=no
13865 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13871 if test -d /usr/nec ;then
13873 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13874 soname_spec='$libname${shared_ext}.$major'
13875 shlibpath_var=LD_LIBRARY_PATH
13879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13880 version_type=freebsd-elf
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 shlibpath_overrides_runpath=yes
13887 hardcode_into_libs=yes
13888 if test "$with_gnu_ld" = yes; then
13889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13891 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13894 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13898 sys_lib_dlsearch_path_spec='/usr/lib'
13902 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=no
13909 hardcode_into_libs=yes
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13915 soname_spec='${libname}${release}${shared_ext}$major'
13916 shlibpath_var=LD_LIBRARY_PATH
13923 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13924 $as_echo "$dynamic_linker" >&6; }
13925 test "$dynamic_linker" = no && can_build_shared=no
13927 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13928 if test "$GCC" = yes; then
13929 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13932 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13933 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13935 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13936 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14025 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14028 if test -n "$hardcode_libdir_flag_spec" ||
14029 test -n "$runpath_var" ||
14030 test "X$hardcode_automatic" = "Xyes" ; then
14032 # We can hardcode non-existent directories.
14033 if test "$hardcode_direct" != no &&
14034 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14035 # have to relink, otherwise we might link with an installed library
14036 # when we should be linking with a yet-to-be-installed one
14037 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14038 test "$hardcode_minus_L" != no; then
14039 # Linking always hardcodes the temporary library directory.
14040 hardcode_action=relink
14042 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14043 hardcode_action=immediate
14046 # We cannot hardcode anything, or else we can only hardcode existing
14048 hardcode_action=unsupported
14050 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
14051 $as_echo "$hardcode_action" >&6; }
14053 if test "$hardcode_action" = relink ||
14054 test "$inherit_rpath" = yes; then
14055 # Fast installation is not supported
14056 enable_fast_install=no
14057 elif test "$shlibpath_overrides_runpath" = yes ||
14058 test "$enable_shared" = no; then
14059 # Fast installation is not necessary
14060 enable_fast_install=needless
14068 if test "x$enable_dlopen" != xyes; then
14069 enable_dlopen=unknown
14070 enable_dlopen_self=unknown
14071 enable_dlopen_self_static=unknown
14078 lt_cv_dlopen="load_add_on"
14080 lt_cv_dlopen_self=yes
14083 mingw* | pw32* | cegcc*)
14084 lt_cv_dlopen="LoadLibrary"
14089 lt_cv_dlopen="dlopen"
14094 # if libdl is installed we need to link against it
14095 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14098 $as_echo_n "(cached) " >&6
14100 ac_check_lib_save_LIBS=$LIBS
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14131 $as_echo "$ac_try_echo") >&5
14132 (eval "$ac_link") 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
14136 cat conftest.err >&5
14137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } && {
14139 test -z "$ac_c_werror_flag" ||
14140 test ! -s conftest.err
14141 } && test -s conftest$ac_exeext && {
14142 test "$cross_compiling" = yes ||
14143 $as_test_x conftest$ac_exeext
14145 ac_cv_lib_dl_dlopen=yes
14147 $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_cv_lib_dl_dlopen=no
14153 rm -rf conftest.dSYM
14154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14160 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14164 lt_cv_dlopen="dyld"
14166 lt_cv_dlopen_self=yes
14173 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
14174 $as_echo_n "checking for shl_load... " >&6; }
14175 if test "${ac_cv_func_shl_load+set}" = set; then
14176 $as_echo_n "(cached) " >&6
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14186 #define shl_load innocuous_shl_load
14188 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char shl_load (); below.
14190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14191 <limits.h> exists even on freestanding compilers. */
14194 # include <limits.h>
14196 # include <assert.h>
14201 /* Override any GCC internal prototype to avoid an error.
14202 Use char because int might match the return type of a GCC
14203 builtin and then its argument prototype would still apply. */
14208 /* The GNU C library defines this for functions which it implements
14209 to always fail with ENOSYS. Some functions are actually named
14210 something starting with __ and the normal name is an alias. */
14211 #if defined __stub_shl_load || defined __stub___shl_load
14218 return shl_load ();
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (ac_try="$ac_link"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230 $as_echo "$ac_try_echo") >&5
14231 (eval "$ac_link") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1 >conftest.err
14235 cat conftest.err >&5
14236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } && {
14238 test -z "$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 } && test -s conftest$ac_exeext && {
14241 test "$cross_compiling" = yes ||
14242 $as_test_x conftest$ac_exeext
14244 ac_cv_func_shl_load=yes
14246 $as_echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_cv_func_shl_load=no
14252 rm -rf conftest.dSYM
14253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14254 conftest$ac_exeext conftest.$ac_ext
14256 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14257 $as_echo "$ac_cv_func_shl_load" >&6; }
14258 if test "x$ac_cv_func_shl_load" = x""yes; then
14259 lt_cv_dlopen="shl_load"
14261 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14262 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14263 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14264 $as_echo_n "(cached) " >&6
14266 ac_check_lib_save_LIBS=$LIBS
14268 cat >conftest.$ac_ext <<_ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14275 /* Override any GCC internal prototype to avoid an error.
14276 Use char because int might match the return type of a GCC
14277 builtin and then its argument prototype would still apply. */
14285 return shl_load ();
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298 (eval "$ac_link") 2>conftest.er1
14300 grep -v '^ *+' conftest.er1 >conftest.err
14302 cat conftest.err >&5
14303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest$ac_exeext && {
14308 test "$cross_compiling" = yes ||
14309 $as_test_x conftest$ac_exeext
14311 ac_cv_lib_dld_shl_load=yes
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 ac_cv_lib_dld_shl_load=no
14319 rm -rf conftest.dSYM
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321 conftest$ac_exeext conftest.$ac_ext
14322 LIBS=$ac_check_lib_save_LIBS
14324 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14325 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14326 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
14327 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14329 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
14330 $as_echo_n "checking for dlopen... " >&6; }
14331 if test "${ac_cv_func_dlopen+set}" = set; then
14332 $as_echo_n "(cached) " >&6
14334 cat >conftest.$ac_ext <<_ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14342 #define dlopen innocuous_dlopen
14344 /* System header to define __stub macros and hopefully few prototypes,
14345 which can conflict with char dlopen (); below.
14346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14347 <limits.h> exists even on freestanding compilers. */
14350 # include <limits.h>
14352 # include <assert.h>
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14364 /* The GNU C library defines this for functions which it implements
14365 to always fail with ENOSYS. Some functions are actually named
14366 something starting with __ and the normal name is an alias. */
14367 #if defined __stub_dlopen || defined __stub___dlopen
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14386 $as_echo "$ac_try_echo") >&5
14387 (eval "$ac_link") 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } && {
14394 test -z "$ac_c_werror_flag" ||
14395 test ! -s conftest.err
14396 } && test -s conftest$ac_exeext && {
14397 test "$cross_compiling" = yes ||
14398 $as_test_x conftest$ac_exeext
14400 ac_cv_func_dlopen=yes
14402 $as_echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_func_dlopen=no
14408 rm -rf conftest.dSYM
14409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14410 conftest$ac_exeext conftest.$ac_ext
14412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14413 $as_echo "$ac_cv_func_dlopen" >&6; }
14414 if test "x$ac_cv_func_dlopen" = x""yes; then
14415 lt_cv_dlopen="dlopen"
14417 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14420 $as_echo_n "(cached) " >&6
14422 ac_check_lib_save_LIBS=$LIBS
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14453 $as_echo "$ac_try_echo") >&5
14454 (eval "$ac_link") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest$ac_exeext && {
14464 test "$cross_compiling" = yes ||
14465 $as_test_x conftest$ac_exeext
14467 ac_cv_lib_dl_dlopen=yes
14469 $as_echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 ac_cv_lib_dl_dlopen=no
14475 rm -rf conftest.dSYM
14476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14485 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14487 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14488 $as_echo_n "(cached) " >&6
14490 ac_check_lib_save_LIBS=$LIBS
14491 LIBS="-lsvld $LIBS"
14492 cat >conftest.$ac_ext <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14499 /* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (ac_try="$ac_link"
14516 case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14521 $as_echo "$ac_try_echo") >&5
14522 (eval "$ac_link") 2>conftest.er1
14524 grep -v '^ *+' conftest.er1 >conftest.err
14526 cat conftest.err >&5
14527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && {
14529 test -z "$ac_c_werror_flag" ||
14530 test ! -s conftest.err
14531 } && test -s conftest$ac_exeext && {
14532 test "$cross_compiling" = yes ||
14533 $as_test_x conftest$ac_exeext
14535 ac_cv_lib_svld_dlopen=yes
14537 $as_echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_cv_lib_svld_dlopen=no
14543 rm -rf conftest.dSYM
14544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14545 conftest$ac_exeext conftest.$ac_ext
14546 LIBS=$ac_check_lib_save_LIBS
14548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14549 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14550 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14553 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14554 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14555 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14556 $as_echo_n "(cached) " >&6
14558 ac_check_lib_save_LIBS=$LIBS
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14567 /* Override any GCC internal prototype to avoid an error.
14568 Use char because int might match the return type of a GCC
14569 builtin and then its argument prototype would still apply. */
14577 return dld_link ();
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (ac_try="$ac_link"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14589 $as_echo "$ac_try_echo") >&5
14590 (eval "$ac_link") 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } && {
14597 test -z "$ac_c_werror_flag" ||
14598 test ! -s conftest.err
14599 } && test -s conftest$ac_exeext && {
14600 test "$cross_compiling" = yes ||
14601 $as_test_x conftest$ac_exeext
14603 ac_cv_lib_dld_dld_link=yes
14605 $as_echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_cv_lib_dld_dld_link=no
14611 rm -rf conftest.dSYM
14612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14613 conftest$ac_exeext conftest.$ac_ext
14614 LIBS=$ac_check_lib_save_LIBS
14616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14617 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14618 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14619 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14640 if test "x$lt_cv_dlopen" != xno; then
14646 case $lt_cv_dlopen in
14648 save_CPPFLAGS="$CPPFLAGS"
14649 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14651 save_LDFLAGS="$LDFLAGS"
14652 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14655 LIBS="$lt_cv_dlopen_libs $LIBS"
14657 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14658 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14659 if test "${lt_cv_dlopen_self+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14662 if test "$cross_compiling" = yes; then :
14663 lt_cv_dlopen_self=cross
14665 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14666 lt_status=$lt_dlunknown
14667 cat > conftest.$ac_ext <<_LT_EOF
14668 #line 14668 "configure"
14669 #include "confdefs.h"
14678 # define LT_DLGLOBAL RTLD_GLOBAL
14681 # define LT_DLGLOBAL DL_GLOBAL
14683 # define LT_DLGLOBAL 0
14687 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14688 find out it does not work in some platform. */
14689 #ifndef LT_DLLAZY_OR_NOW
14691 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14694 # define LT_DLLAZY_OR_NOW DL_LAZY
14697 # define LT_DLLAZY_OR_NOW RTLD_NOW
14700 # define LT_DLLAZY_OR_NOW DL_NOW
14702 # define LT_DLLAZY_OR_NOW 0
14709 void fnord() { int i=42;}
14712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14713 int status = $lt_dlunknown;
14717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14719 /* dlclose (self); */
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14732 (./conftest; exit; ) >&5 2>/dev/null
14734 case x$lt_status in
14735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14740 # compilation failed
14741 lt_cv_dlopen_self=no
14748 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14749 $as_echo "$lt_cv_dlopen_self" >&6; }
14751 if test "x$lt_cv_dlopen_self" = xyes; then
14752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14753 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14755 if test "${lt_cv_dlopen_self_static+set}" = set; then
14756 $as_echo_n "(cached) " >&6
14758 if test "$cross_compiling" = yes; then :
14759 lt_cv_dlopen_self_static=cross
14761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14762 lt_status=$lt_dlunknown
14763 cat > conftest.$ac_ext <<_LT_EOF
14764 #line 14764 "configure"
14765 #include "confdefs.h"
14774 # define LT_DLGLOBAL RTLD_GLOBAL
14777 # define LT_DLGLOBAL DL_GLOBAL
14779 # define LT_DLGLOBAL 0
14783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14784 find out it does not work in some platform. */
14785 #ifndef LT_DLLAZY_OR_NOW
14787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14790 # define LT_DLLAZY_OR_NOW DL_LAZY
14793 # define LT_DLLAZY_OR_NOW RTLD_NOW
14796 # define LT_DLLAZY_OR_NOW DL_NOW
14798 # define LT_DLLAZY_OR_NOW 0
14805 void fnord() { int i=42;}
14808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14809 int status = $lt_dlunknown;
14813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14815 /* dlclose (self); */
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14828 (./conftest; exit; ) >&5 2>/dev/null
14830 case x$lt_status in
14831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14833 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14836 # compilation failed
14837 lt_cv_dlopen_self_static=no
14844 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14845 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14848 CPPFLAGS="$save_CPPFLAGS"
14849 LDFLAGS="$save_LDFLAGS"
14854 case $lt_cv_dlopen_self in
14855 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14856 *) enable_dlopen_self=unknown ;;
14859 case $lt_cv_dlopen_self_static in
14860 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14861 *) enable_dlopen_self_static=unknown ;;
14883 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14884 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14885 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14886 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14887 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14888 { $as_echo "$as_me:$LINENO: result: yes" >&5
14889 $as_echo "yes" >&6; }
14891 # FIXME - insert some real tests, host_os isn't really good enough
14894 if test -n "$STRIP" ; then
14895 striplib="$STRIP -x"
14896 old_striplib="$STRIP -S"
14897 { $as_echo "$as_me:$LINENO: result: yes" >&5
14898 $as_echo "yes" >&6; }
14900 { $as_echo "$as_me:$LINENO: result: no" >&5
14901 $as_echo "no" >&6; }
14905 { $as_echo "$as_me:$LINENO: result: no" >&5
14906 $as_echo "no" >&6; }
14922 # Report which library types will actually be built
14923 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14924 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14925 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14926 $as_echo "$can_build_shared" >&6; }
14928 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14929 $as_echo_n "checking whether to build shared libraries... " >&6; }
14930 test "$can_build_shared" = "no" && enable_shared=no
14932 # On AIX, shared libraries and static libraries use the same namespace, and
14933 # are all built from PIC.
14936 test "$enable_shared" = yes && enable_static=no
14937 if test -n "$RANLIB"; then
14938 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14939 postinstall_cmds='$RANLIB $lib'
14944 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14945 test "$enable_shared" = yes && enable_static=no
14949 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14950 $as_echo "$enable_shared" >&6; }
14952 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14953 $as_echo_n "checking whether to build static libraries... " >&6; }
14954 # Make sure either enable_shared or enable_static is yes.
14955 test "$enable_shared" = yes || enable_static=yes
14956 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14957 $as_echo "$enable_static" >&6; }
14964 ac_cpp='$CPP $CPPFLAGS'
14965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14973 ac_cpp='$CXXCPP $CPPFLAGS'
14974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14978 archive_cmds_need_lc_CXX=no
14979 allow_undefined_flag_CXX=
14980 always_export_symbols_CXX=no
14981 archive_expsym_cmds_CXX=
14982 compiler_needs_object_CXX=no
14983 export_dynamic_flag_spec_CXX=
14984 hardcode_direct_CXX=no
14985 hardcode_direct_absolute_CXX=no
14986 hardcode_libdir_flag_spec_CXX=
14987 hardcode_libdir_flag_spec_ld_CXX=
14988 hardcode_libdir_separator_CXX=
14989 hardcode_minus_L_CXX=no
14990 hardcode_shlibpath_var_CXX=unsupported
14991 hardcode_automatic_CXX=no
14992 inherit_rpath_CXX=no
14994 module_expsym_cmds_CXX=
14995 link_all_deplibs_CXX=unknown
14996 old_archive_cmds_CXX=$old_archive_cmds
14997 no_undefined_flag_CXX=
14998 whole_archive_flag_spec_CXX=
14999 enable_shared_with_static_runtimes_CXX=no
15001 # Source file extension for C++ test sources.
15004 # Object file extension for compiled C++ test sources.
15008 # No sense in running all these tests if we already determined that
15009 # the CXX compiler isn't working. Some variables (like enable_shared)
15010 # are currently assumed to apply to all compilers on this platform,
15011 # and will be corrupted by setting them based on a non-working compiler.
15012 if test "$_lt_caught_CXX_error" != yes; then
15013 # Code to be used in simple compile tests
15014 lt_simple_compile_test_code="int some_variable = 0;"
15016 # Code to be used in simple link tests
15017 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15019 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15026 # If no C compiler was specified, use CC.
15029 # If no C compiler flags were specified, use CFLAGS.
15030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15032 # Allow CC to be a program name with arguments.
15036 # save warnings/boilerplate of simple test code
15037 ac_outfile=conftest.$ac_objext
15038 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15039 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15040 _lt_compiler_boilerplate=`cat conftest.err`
15043 ac_outfile=conftest.$ac_objext
15044 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15045 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15046 _lt_linker_boilerplate=`cat conftest.err`
15050 # Allow CC to be a program name with arguments.
15055 lt_save_with_gnu_ld=$with_gnu_ld
15056 lt_save_path_LD=$lt_cv_path_LD
15057 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15058 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15060 $as_unset lt_cv_prog_gnu_ld
15062 if test -n "${lt_cv_path_LDCXX+set}"; then
15063 lt_cv_path_LD=$lt_cv_path_LDCXX
15065 $as_unset lt_cv_path_LD
15067 test -z "${LDCXX+set}" || LD=$LDCXX
15071 for cc_temp in $compiler""; do
15073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15079 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15082 if test -n "$compiler"; then
15083 # We don't want -fno-exception when compiling C++ code, so set the
15084 # no_builtin_flag separately
15085 if test "$GXX" = yes; then
15086 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15088 lt_prog_compiler_no_builtin_flag_CXX=
15091 if test "$GXX" = yes; then
15092 # Set up default GNU C++ configuration
15096 # Check whether --with-gnu-ld was given.
15097 if test "${with_gnu_ld+set}" = set; then
15098 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15104 if test "$GCC" = yes; then
15105 # Check if gcc -print-prog-name=ld gives a path.
15106 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15107 $as_echo_n "checking for ld used by $CC... " >&6; }
15110 # gcc leaves a trailing carriage return which upsets mingw
15111 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15113 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15116 # Accept absolute paths.
15118 re_direlt='/[^/][^/]*/\.\./'
15119 # Canonicalize the pathname of ld
15120 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15121 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15122 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15124 test -z "$LD" && LD="$ac_prog"
15127 # If it fails, then pretend we aren't using GCC.
15131 # If it is relative, then search for the first ld in PATH.
15132 with_gnu_ld=unknown
15135 elif test "$with_gnu_ld" = yes; then
15136 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15137 $as_echo_n "checking for GNU ld... " >&6; }
15139 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15140 $as_echo_n "checking for non-GNU ld... " >&6; }
15142 if test "${lt_cv_path_LD+set}" = set; then
15143 $as_echo_n "(cached) " >&6
15145 if test -z "$LD"; then
15146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15147 for ac_dir in $PATH; do
15149 test -z "$ac_dir" && ac_dir=.
15150 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15151 lt_cv_path_LD="$ac_dir/$ac_prog"
15152 # Check to see if the program is GNU ld. I'd rather use --version,
15153 # but apparently some variants of GNU ld only accept -v.
15154 # Break only if it was the GNU/non-GNU ld that we prefer.
15155 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15156 *GNU* | *'with BFD'*)
15157 test "$with_gnu_ld" != no && break
15160 test "$with_gnu_ld" != yes && break
15167 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15171 LD="$lt_cv_path_LD"
15172 if test -n "$LD"; then
15173 { $as_echo "$as_me:$LINENO: result: $LD" >&5
15174 $as_echo "$LD" >&6; }
15176 { $as_echo "$as_me:$LINENO: result: no" >&5
15177 $as_echo "no" >&6; }
15179 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15180 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15181 { (exit 1); exit 1; }; }
15182 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15184 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15185 $as_echo_n "(cached) " >&6
15187 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15188 case `$LD -v 2>&1 </dev/null` in
15189 *GNU* | *'with BFD'*)
15190 lt_cv_prog_gnu_ld=yes
15193 lt_cv_prog_gnu_ld=no
15197 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15199 with_gnu_ld=$lt_cv_prog_gnu_ld
15207 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15208 # archiving commands below assume that GNU ld is being used.
15209 if test "$with_gnu_ld" = yes; then
15210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211 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'
15213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15216 # If archive_cmds runs LD, not CC, wlarc should be empty
15217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15218 # investigate it a little bit more. (MM)
15221 # ancient GNU ld didn't support --whole-archive et. al.
15222 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15223 $GREP 'no-whole-archive' > /dev/null; then
15224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15226 whole_archive_flag_spec_CXX=
15232 # A generic and very simple default shared library creation
15233 # command for GNU C++ for the case where it uses the native
15234 # linker, instead of GNU ld. If possible, this setting should
15235 # overridden to take advantage of the native linker features on
15236 # the platform it is being used on.
15237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15240 # Commands to make compiler produce verbose output that lists
15241 # what "hidden" libraries, object files and flags are used when
15242 # linking a shared library.
15243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15251 # PORTME: fill in a description of your system's C++ link characteristics
15252 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15257 # FIXME: insert proper C++ library support
15261 if test "$host_cpu" = ia64; then
15262 # On IA64, the linker does run time linking by default, so we don't
15263 # have to do anything special.
15264 aix_use_runtimelinking=no
15265 exp_sym_flag='-Bexport'
15268 aix_use_runtimelinking=no
15270 # Test if we are trying to use run time linking or normal
15271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15272 # need to do runtime linking.
15273 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15274 for ld_flag in $LDFLAGS; do
15277 aix_use_runtimelinking=yes
15285 exp_sym_flag='-bexport'
15286 no_entry_flag='-bnoentry'
15289 # When large executables or shared objects are built, AIX ld can
15290 # have problems creating the table of contents. If linking a library
15291 # or program results in "error TOC overflow" add -mminimal-toc to
15292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15295 archive_cmds_CXX=''
15296 hardcode_direct_CXX=yes
15297 hardcode_direct_absolute_CXX=yes
15298 hardcode_libdir_separator_CXX=':'
15299 link_all_deplibs_CXX=yes
15300 file_list_spec_CXX='${wl}-f,'
15302 if test "$GXX" = yes; then
15303 case $host_os in aix4.[012]|aix4.[012].*)
15304 # We only want to do this on AIX 4.2 and lower, the check
15305 # below for broken collect2 doesn't work under 4.3+
15306 collect2name=`${CC} -print-prog-name=collect2`
15307 if test -f "$collect2name" &&
15308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15310 # We have reworked collect2
15313 # We have old collect2
15314 hardcode_direct_CXX=unsupported
15315 # It fails to find uninstalled libraries when the uninstalled
15316 # path is not listed in the libpath. Setting hardcode_minus_L
15317 # to unsupported forces relinking
15318 hardcode_minus_L_CXX=yes
15319 hardcode_libdir_flag_spec_CXX='-L$libdir'
15320 hardcode_libdir_separator_CXX=
15323 shared_flag='-shared'
15324 if test "$aix_use_runtimelinking" = yes; then
15325 shared_flag="$shared_flag "'${wl}-G'
15329 if test "$host_cpu" = ia64; then
15330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15331 # chokes on -Wl,-G. The following line is correct:
15334 if test "$aix_use_runtimelinking" = yes; then
15335 shared_flag='${wl}-G'
15337 shared_flag='${wl}-bM:SRE'
15342 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15343 # It seems that -bexpall does not export symbols beginning with
15344 # underscore (_), so it is better to generate a list of symbols to
15346 always_export_symbols_CXX=yes
15347 if test "$aix_use_runtimelinking" = yes; then
15348 # Warning - without using the other runtime loading flags (-brtl),
15349 # -berok will link without error, but may produce a broken library.
15350 allow_undefined_flag_CXX='-berok'
15351 # Determine the default libpath from the value encoded in an empty
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (ac_try="$ac_link"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15375 $as_echo "$ac_try_echo") >&5
15376 (eval "$ac_link") 2>conftest.er1
15378 grep -v '^ *+' conftest.er1 >conftest.err
15380 cat conftest.err >&5
15381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } && {
15383 test -z "$ac_cxx_werror_flag" ||
15384 test ! -s conftest.err
15385 } && test -s conftest$ac_exeext && {
15386 test "$cross_compiling" = yes ||
15387 $as_test_x conftest$ac_exeext
15390 lt_aix_libpath_sed='
15391 /Import File Strings/,/^$/ {
15397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398 # Check for a 64-bit object if we didn't find anything.
15399 if test -z "$aix_libpath"; then
15400 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15403 $as_echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15409 rm -rf conftest.dSYM
15410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15411 conftest$ac_exeext conftest.$ac_ext
15412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15414 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15416 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15418 if test "$host_cpu" = ia64; then
15419 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15420 allow_undefined_flag_CXX="-z nodefs"
15421 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"
15423 # Determine the default libpath from the value encoded in an
15424 # empty executable.
15425 cat >conftest.$ac_ext <<_ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15447 $as_echo "$ac_try_echo") >&5
15448 (eval "$ac_link") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_cxx_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext && {
15458 test "$cross_compiling" = yes ||
15459 $as_test_x conftest$ac_exeext
15462 lt_aix_libpath_sed='
15463 /Import File Strings/,/^$/ {
15469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15470 # Check for a 64-bit object if we didn't find anything.
15471 if test -z "$aix_libpath"; then
15472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15475 $as_echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15481 rm -rf conftest.dSYM
15482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15483 conftest$ac_exeext conftest.$ac_ext
15484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15486 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15487 # Warning - without using the other run time loading flags,
15488 # -berok will link without error, but may produce a broken library.
15489 no_undefined_flag_CXX=' ${wl}-bernotok'
15490 allow_undefined_flag_CXX=' ${wl}-berok'
15491 # Exported symbols can be pulled into shared objects from archives
15492 whole_archive_flag_spec_CXX='$convenience'
15493 archive_cmds_need_lc_CXX=yes
15494 # This is similar to how AIX traditionally builds its shared
15496 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'
15502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15503 allow_undefined_flag_CXX=unsupported
15504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15505 # support --undefined. This deserves some investigation. FIXME
15506 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15513 case $cc_basename in
15515 # FIXME: insert proper C++ library support
15521 cygwin* | mingw* | pw32* | cegcc*)
15522 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15523 # as there is no search path for DLLs.
15524 hardcode_libdir_flag_spec_CXX='-L$libdir'
15525 allow_undefined_flag_CXX=unsupported
15526 always_export_symbols_CXX=no
15527 enable_shared_with_static_runtimes_CXX=yes
15529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15530 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'
15531 # If the export-symbols file already is a .def file (1st line
15532 # is EXPORTS), use it as is; otherwise, prepend...
15533 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15534 cp $export_symbols $output_objdir/$soname.def;
15536 echo EXPORTS > $output_objdir/$soname.def;
15537 cat $export_symbols >> $output_objdir/$soname.def;
15539 $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'
15544 darwin* | rhapsody*)
15547 archive_cmds_need_lc_CXX=no
15548 hardcode_direct_CXX=no
15549 hardcode_automatic_CXX=yes
15550 hardcode_shlibpath_var_CXX=unsupported
15551 whole_archive_flag_spec_CXX=''
15552 link_all_deplibs_CXX=yes
15553 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15554 case $cc_basename in
15555 ifort*) _lt_dar_can_shared=yes ;;
15556 *) _lt_dar_can_shared=$GCC ;;
15558 if test "$_lt_dar_can_shared" = "yes"; then
15559 output_verbose_link_cmd=echo
15560 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15561 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15562 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15563 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15564 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15565 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15566 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15576 case $cc_basename in
15578 # FIXME: insert proper C++ library support
15582 # Green Hills C++ Compiler
15583 # FIXME: insert proper C++ library support
15587 # FIXME: insert proper C++ library support
15594 # C++ shared libraries reported to be fairly broken before
15600 archive_cmds_need_lc_CXX=no
15603 freebsd* | dragonfly*)
15604 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15613 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15614 hardcode_libdir_separator_CXX=:
15615 export_dynamic_flag_spec_CXX='${wl}-E'
15616 hardcode_direct_CXX=yes
15617 hardcode_minus_L_CXX=yes # Not in the search PATH,
15618 # but as the default
15619 # location of the library.
15621 case $cc_basename in
15623 # FIXME: insert proper C++ library support
15627 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'
15628 # Commands to make compiler produce verbose output that lists
15629 # what "hidden" libraries, object files and flags are used when
15630 # linking a shared library.
15632 # There doesn't appear to be a way to prevent this compiler from
15633 # explicitly linking system object files so we need to strip them
15634 # from the output so that they don't get included in the library
15636 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15639 if test "$GXX" = yes; then
15640 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'
15642 # FIXME: insert proper C++ library support
15650 if test $with_gnu_ld = no; then
15651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15652 hardcode_libdir_separator_CXX=:
15658 export_dynamic_flag_spec_CXX='${wl}-E'
15664 hardcode_direct_CXX=no
15665 hardcode_shlibpath_var_CXX=no
15668 hardcode_direct_CXX=yes
15669 hardcode_direct_absolute_CXX=yes
15670 hardcode_minus_L_CXX=yes # Not in the search PATH,
15671 # but as the default
15672 # location of the library.
15676 case $cc_basename in
15678 # FIXME: insert proper C++ library support
15684 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15687 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15690 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15693 # Commands to make compiler produce verbose output that lists
15694 # what "hidden" libraries, object files and flags are used when
15695 # linking a shared library.
15697 # There doesn't appear to be a way to prevent this compiler from
15698 # explicitly linking system object files so we need to strip them
15699 # from the output so that they don't get included in the library
15701 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 "X$list" | $Xsed'
15704 if test "$GXX" = yes; then
15705 if test $with_gnu_ld = no; then
15708 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15711 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15714 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'
15719 # FIXME: insert proper C++ library support
15727 hardcode_direct_CXX=no
15728 hardcode_shlibpath_var_CXX=no
15729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15730 export_dynamic_flag_spec_CXX='${wl}-E'
15731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15732 # Instead, shared libraries are loaded at an image base (0x10000000 by
15733 # default) and relocated if they conflict, which is a slow very memory
15734 # consuming and fragmenting process. To avoid this, we pick a random,
15735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15737 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'
15738 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'
15741 case $cc_basename in
15744 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15746 # Archives containing C++ object files must be created using
15747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15748 # necessary to make sure instantiated templates are included
15750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15753 if test "$GXX" = yes; then
15754 if test "$with_gnu_ld" = no; then
15755 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15757 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15760 link_all_deplibs_CXX=yes
15763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15764 hardcode_libdir_separator_CXX=:
15765 inherit_rpath_CXX=yes
15768 linux* | k*bsd*-gnu)
15769 case $cc_basename in
15771 # Kuck and Associates, Inc. (KAI) C++ Compiler
15773 # KCC will only create a shared library if the output file
15774 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15775 # to its proper name (with version) after linking.
15776 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'
15777 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'
15778 # Commands to make compiler produce verbose output that lists
15779 # what "hidden" libraries, object files and flags are used when
15780 # linking a shared library.
15782 # There doesn't appear to be a way to prevent this compiler from
15783 # explicitly linking system object files so we need to strip them
15784 # from the output so that they don't get included in the library
15786 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 "X$list" | $Xsed'
15788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15791 # Archives containing C++ object files must be created using
15792 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15793 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15798 # version 8.0 and above of icpc choke on multiply defined symbols
15799 # if we add $predep_objects and $postdep_objects, however 7.1 and
15800 # earlier do not add the objects themselves.
15801 case `$CC -V 2>&1` in
15803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804 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'
15806 *) # Version 8.0 or newer
15809 ia64*) tmp_idyn=' -i_dynamic';;
15811 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812 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'
15815 archive_cmds_need_lc_CXX=no
15816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15818 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15821 # Portland Group C++ compiler
15823 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15824 prelink_cmds_CXX='tpldir=Template.dir~
15826 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15827 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15828 old_archive_cmds_CXX='tpldir=Template.dir~
15830 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15831 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15833 archive_cmds_CXX='tpldir=Template.dir~
15835 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15836 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15837 archive_expsym_cmds_CXX='tpldir=Template.dir~
15839 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15840 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15842 *) # Version 6 will use weak symbols
15843 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15844 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'
15848 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15850 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'
15854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855 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'
15857 runpath_var=LD_RUN_PATH
15858 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15859 hardcode_libdir_separator_CXX=:
15861 # Commands to make compiler produce verbose output that lists
15862 # what "hidden" libraries, object files and flags are used when
15863 # linking a shared library.
15865 # There doesn't appear to be a way to prevent this compiler from
15866 # explicitly linking system object files so we need to strip them
15867 # from the output so that they don't get included in the library
15869 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15872 # IBM XL 8.0 on PPC, with GNU ld
15873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15875 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15876 if test "x$supports_anon_versioning" = xyes; then
15877 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15879 echo "local: *; };" >> $output_objdir/$libname.ver~
15880 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15884 case `$CC -V 2>&1 | sed 5q` in
15887 no_undefined_flag_CXX=' -zdefs'
15888 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15889 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15890 hardcode_libdir_flag_spec_CXX='-R$libdir'
15891 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15892 compiler_needs_object_CXX=yes
15894 # Not sure whether something based on
15895 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15897 output_verbose_link_cmd='echo'
15899 # Archives containing C++ object files must be created using
15900 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15901 # necessary to make sure instantiated templates are included
15903 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15911 # FIXME: insert proper C++ library support
15916 # FIXME: insert proper C++ library support
15921 case $cc_basename in
15923 # FIXME: insert proper C++ library support
15927 # FIXME: insert proper C++ library support
15934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15935 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15937 hardcode_libdir_flag_spec_CXX='-R$libdir'
15938 hardcode_direct_CXX=yes
15939 hardcode_shlibpath_var_CXX=no
15941 # Workaround some broken pre-1.5 toolchains
15942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15950 # C++ shared libraries are fairly broken
15955 if test -f /usr/libexec/ld.so; then
15956 hardcode_direct_CXX=yes
15957 hardcode_shlibpath_var_CXX=no
15958 hardcode_direct_absolute_CXX=yes
15959 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15960 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15962 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15963 export_dynamic_flag_spec_CXX='${wl}-E'
15964 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15966 output_verbose_link_cmd=echo
15972 osf3* | osf4* | osf5*)
15973 case $cc_basename in
15975 # Kuck and Associates, Inc. (KAI) C++ Compiler
15977 # KCC will only create a shared library if the output file
15978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15979 # to its proper name (with version) after linking.
15980 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'
15982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15983 hardcode_libdir_separator_CXX=:
15985 # Archives containing C++ object files must be created using
15986 # the KAI C++ compiler.
15988 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15989 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15993 # Rational C++ 2.4.1
15994 # FIXME: insert proper C++ library support
16000 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16001 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16005 allow_undefined_flag_CXX=' -expect_unresolved \*'
16006 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16008 echo "-hidden">> $lib.exp~
16009 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16011 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16015 hardcode_libdir_separator_CXX=:
16017 # Commands to make compiler produce verbose output that lists
16018 # what "hidden" libraries, object files and flags are used when
16019 # linking a shared library.
16021 # There doesn't appear to be a way to prevent this compiler from
16022 # explicitly linking system object files so we need to strip them
16023 # from the output so that they don't get included in the library
16025 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
16028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16029 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16032 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16035 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16040 hardcode_libdir_separator_CXX=:
16042 # Commands to make compiler produce verbose output that lists
16043 # what "hidden" libraries, object files and flags are used when
16044 # linking a shared library.
16045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16048 # FIXME: insert proper C++ library support
16056 # FIXME: insert proper C++ library support
16061 case $cc_basename in
16064 # FIXME: insert proper C++ library support
16069 # FIXME: insert proper C++ library support
16073 # FIXME: insert proper C++ library support
16080 case $cc_basename in
16082 # Sun C++ 4.2, 5.x and Centerline C++
16083 archive_cmds_need_lc_CXX=yes
16084 no_undefined_flag_CXX=' -zdefs'
16085 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16086 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16087 $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'
16089 hardcode_libdir_flag_spec_CXX='-R$libdir'
16090 hardcode_shlibpath_var_CXX=no
16092 solaris2.[0-5] | solaris2.[0-5].*) ;;
16094 # The compiler driver will combine and reorder linker options,
16095 # but understands `-z linker_flag'.
16096 # Supported since Solaris 2.6 (maybe 2.5.1?)
16097 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16100 link_all_deplibs_CXX=yes
16102 output_verbose_link_cmd='echo'
16104 # Archives containing C++ object files must be created using
16105 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16106 # necessary to make sure instantiated templates are included
16108 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16111 # Green Hills C++ Compiler
16112 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16114 # The C++ compiler must be used to create the archive.
16115 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16118 # GNU C++ compiler with Solaris linker
16119 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16120 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16121 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16122 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16123 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16124 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16126 # Commands to make compiler produce verbose output that lists
16127 # what "hidden" libraries, object files and flags are used when
16128 # linking a shared library.
16129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16131 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16133 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16134 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16135 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16137 # Commands to make compiler produce verbose output that lists
16138 # what "hidden" libraries, object files and flags are used when
16139 # linking a shared library.
16140 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16143 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16145 solaris2.[0-5] | solaris2.[0-5].*) ;;
16147 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16156 no_undefined_flag_CXX='${wl}-z,text'
16157 archive_cmds_need_lc_CXX=no
16158 hardcode_shlibpath_var_CXX=no
16159 runpath_var='LD_RUN_PATH'
16161 case $cc_basename in
16163 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16173 sysv5* | sco3.2v5* | sco5v6*)
16174 # Note: We can NOT use -z defs as we might desire, because we do not
16175 # link with -lc, and that would cause any symbols used from libc to
16176 # always be unresolved, which means just about no library would
16177 # ever link correctly. If we're not using GNU ld we use -z text
16178 # though, which does catch some bad symbols but isn't as heavy-handed
16180 no_undefined_flag_CXX='${wl}-z,text'
16181 allow_undefined_flag_CXX='${wl}-z,nodefs'
16182 archive_cmds_need_lc_CXX=no
16183 hardcode_shlibpath_var_CXX=no
16184 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16185 hardcode_libdir_separator_CXX=':'
16186 link_all_deplibs_CXX=yes
16187 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16188 runpath_var='LD_RUN_PATH'
16190 case $cc_basename in
16192 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16193 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16203 case $cc_basename in
16205 # NonStop-UX NCC 3.20
16206 # FIXME: insert proper C++ library support
16210 # FIXME: insert proper C++ library support
16217 # FIXME: insert proper C++ library support
16222 # FIXME: insert proper C++ library support
16227 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16228 $as_echo "$ld_shlibs_CXX" >&6; }
16229 test "$ld_shlibs_CXX" = no && can_build_shared=no
16235 ## There is no encapsulation within the following macros, do not change
16236 ## the running order or otherwise move them around unless you know exactly
16237 ## what you are doing...
16238 # Dependencies to place before and after the object being linked:
16239 predep_objects_CXX=
16240 postdep_objects_CXX=
16243 compiler_lib_search_path_CXX=
16245 cat > conftest.$ac_ext <<_LT_EOF
16249 Foo (void) { a = 0; }
16255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16256 (eval $ac_compile) 2>&5
16258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; then
16260 # Parse the compiler output and extract the necessary
16261 # objects, libraries and library flags.
16263 # Sentinel used to keep track of whether or not we are before
16264 # the conftest object file.
16265 pre_test_object_deps_done=no
16267 for p in `eval "$output_verbose_link_cmd"`; do
16271 # Some compilers place space between "-{L,R}" and the path.
16272 # Remove the space.
16273 if test $p = "-L" ||
16274 test $p = "-R"; then
16281 if test "$pre_test_object_deps_done" = no; then
16284 # Internal compiler library paths should come after those
16285 # provided the user. The postdeps already come after the
16286 # user supplied libs so there is no need to process them.
16287 if test -z "$compiler_lib_search_path_CXX"; then
16288 compiler_lib_search_path_CXX="${prev}${p}"
16290 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16293 # The "-l" case would never come before the object being
16294 # linked, so don't bother handling this case.
16297 if test -z "$postdeps_CXX"; then
16298 postdeps_CXX="${prev}${p}"
16300 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16306 # This assumes that the test object file only shows up
16307 # once in the compiler output.
16308 if test "$p" = "conftest.$objext"; then
16309 pre_test_object_deps_done=yes
16313 if test "$pre_test_object_deps_done" = no; then
16314 if test -z "$predep_objects_CXX"; then
16315 predep_objects_CXX="$p"
16317 predep_objects_CXX="$predep_objects_CXX $p"
16320 if test -z "$postdep_objects_CXX"; then
16321 postdep_objects_CXX="$p"
16323 postdep_objects_CXX="$postdep_objects_CXX $p"
16328 *) ;; # Ignore the rest.
16336 echo "libtool.m4: error: problem compiling CXX test program"
16339 $RM -f confest.$objext
16341 # PORTME: override above test on systems where it is broken
16344 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16345 # hack all around it, let's just trust "g++" to DTRT.
16346 predep_objects_CXX=
16347 postdep_objects_CXX=
16352 case `$CC -V 2>&1 | sed 5q` in
16356 # The more standards-conforming stlport4 library is
16357 # incompatible with the Cstd library. Avoid specifying
16358 # it if it's in CXXFLAGS. Ignore libCrun as
16359 # -library=stlport4 depends on it.
16360 case " $CXX $CXXFLAGS " in
16361 *" -library=stlport4 "*)
16362 solaris_use_stlport4=yes
16366 if test "$solaris_use_stlport4" != yes; then
16367 postdeps_CXX='-library=Cstd -library=Crun'
16374 case $cc_basename in
16376 # The more standards-conforming stlport4 library is
16377 # incompatible with the Cstd library. Avoid specifying
16378 # it if it's in CXXFLAGS. Ignore libCrun as
16379 # -library=stlport4 depends on it.
16380 case " $CXX $CXXFLAGS " in
16381 *" -library=stlport4 "*)
16382 solaris_use_stlport4=yes
16386 # Adding this requires a known-good setup of shared libraries for
16387 # Sun compiler versions before 5.6, else PIC objects from an old
16388 # archive will be linked into the output, leading to subtle bugs.
16389 if test "$solaris_use_stlport4" != yes; then
16390 postdeps_CXX='-library=Cstd -library=Crun'
16398 case " $postdeps_CXX " in
16399 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16401 compiler_lib_search_dirs_CXX=
16402 if test -n "${compiler_lib_search_path_CXX}"; then
16403 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16436 lt_prog_compiler_wl_CXX=
16437 lt_prog_compiler_pic_CXX=
16438 lt_prog_compiler_static_CXX=
16440 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16441 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16443 # C++ specific cases for pic, static, wl, etc.
16444 if test "$GXX" = yes; then
16445 lt_prog_compiler_wl_CXX='-Wl,'
16446 lt_prog_compiler_static_CXX='-static'
16450 # All AIX code is PIC.
16451 if test "$host_cpu" = ia64; then
16452 # AIX 5 now supports IA64 processor
16453 lt_prog_compiler_static_CXX='-Bstatic'
16460 # see comment about AmigaOS4 .so support
16461 lt_prog_compiler_pic_CXX='-fPIC'
16464 # FIXME: we need at least 68020 code to build shared libraries, but
16465 # adding the `-m68020' flag to GCC prevents building anything better,
16467 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16473 # PIC is the default for these OSes.
16475 mingw* | cygwin* | os2* | pw32* | cegcc*)
16476 # This hack is so that the source file can tell whether it is being
16477 # built for inclusion in a dll (and should export symbols for example).
16478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16479 # (--disable-auto-import) libraries
16480 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16482 darwin* | rhapsody*)
16483 # PIC is the default on this platform
16484 # Common symbols not allowed in MH_DYLIB files
16485 lt_prog_compiler_pic_CXX='-fno-common'
16488 # DJGPP does not support shared libraries at all
16489 lt_prog_compiler_pic_CXX=
16492 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16493 # Instead, we relocate shared libraries at runtime.
16496 if test -d /usr/nec; then
16497 lt_prog_compiler_pic_CXX=-Kconform_pic
16501 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16502 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16503 # sets the default TLS model and affects inlining.
16508 lt_prog_compiler_pic_CXX='-fPIC'
16513 # QNX uses GNU C++, but need to define -shared option too, otherwise
16514 # it will coredump.
16515 lt_prog_compiler_pic_CXX='-fPIC -shared'
16518 lt_prog_compiler_pic_CXX='-fPIC'
16524 # All AIX code is PIC.
16525 if test "$host_cpu" = ia64; then
16526 # AIX 5 now supports IA64 processor
16527 lt_prog_compiler_static_CXX='-Bstatic'
16529 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16533 case $cc_basename in
16535 # Green Hills C++ Compiler
16536 # _LT_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"
16541 case $cc_basename in
16543 lt_prog_compiler_pic_CXX='-KPIC'
16546 # Green Hills C++ Compiler
16547 lt_prog_compiler_pic_CXX='-pic'
16553 freebsd* | dragonfly*)
16554 # FreeBSD uses GNU C++
16556 hpux9* | hpux10* | hpux11*)
16557 case $cc_basename in
16559 lt_prog_compiler_wl_CXX='-Wl,'
16560 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16561 if test "$host_cpu" != ia64; then
16562 lt_prog_compiler_pic_CXX='+Z'
16566 lt_prog_compiler_wl_CXX='-Wl,'
16567 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16573 lt_prog_compiler_pic_CXX='+Z'
16582 # This is c89, which is MS Visual C++ (no shared libs)
16583 # Anyone wants to do a port?
16585 irix5* | irix6* | nonstopux*)
16586 case $cc_basename in
16588 lt_prog_compiler_wl_CXX='-Wl,'
16589 lt_prog_compiler_static_CXX='-non_shared'
16590 # CC pic flag -KPIC is the default.
16596 linux* | k*bsd*-gnu)
16597 case $cc_basename in
16600 lt_prog_compiler_wl_CXX='--backend -Wl,'
16601 lt_prog_compiler_pic_CXX='-fPIC'
16604 # old Intel C++ for x86_64 which still supported -KPIC.
16605 lt_prog_compiler_wl_CXX='-Wl,'
16606 lt_prog_compiler_pic_CXX='-KPIC'
16607 lt_prog_compiler_static_CXX='-static'
16610 # Intel C++, used to be incompatible with GCC.
16611 # ICC 10 doesn't accept -KPIC any more.
16612 lt_prog_compiler_wl_CXX='-Wl,'
16613 lt_prog_compiler_pic_CXX='-fPIC'
16614 lt_prog_compiler_static_CXX='-static'
16617 # Portland Group C++ compiler
16618 lt_prog_compiler_wl_CXX='-Wl,'
16619 lt_prog_compiler_pic_CXX='-fpic'
16620 lt_prog_compiler_static_CXX='-Bstatic'
16624 # Make sure the PIC flag is empty. It appears that all Alpha
16625 # Linux and Compaq Tru64 Unix objects are PIC.
16626 lt_prog_compiler_pic_CXX=
16627 lt_prog_compiler_static_CXX='-non_shared'
16630 # IBM XL 8.0 on PPC
16631 lt_prog_compiler_wl_CXX='-Wl,'
16632 lt_prog_compiler_pic_CXX='-qpic'
16633 lt_prog_compiler_static_CXX='-qstaticlink'
16636 case `$CC -V 2>&1 | sed 5q` in
16639 lt_prog_compiler_pic_CXX='-KPIC'
16640 lt_prog_compiler_static_CXX='-Bstatic'
16641 lt_prog_compiler_wl_CXX='-Qoption ld '
16652 case $cc_basename in
16654 lt_prog_compiler_pic_CXX='-W c,exportall'
16663 # QNX uses GNU C++, but need to define -shared option too, otherwise
16664 # it will coredump.
16665 lt_prog_compiler_pic_CXX='-fPIC -shared'
16667 osf3* | osf4* | osf5*)
16668 case $cc_basename in
16670 lt_prog_compiler_wl_CXX='--backend -Wl,'
16673 # Rational C++ 2.4.1
16674 lt_prog_compiler_pic_CXX='-pic'
16677 # Digital/Compaq C++
16678 lt_prog_compiler_wl_CXX='-Wl,'
16679 # Make sure the PIC flag is empty. It appears that all Alpha
16680 # Linux and Compaq Tru64 Unix objects are PIC.
16681 lt_prog_compiler_pic_CXX=
16682 lt_prog_compiler_static_CXX='-non_shared'
16691 case $cc_basename in
16693 # Sun C++ 4.2, 5.x and Centerline C++
16694 lt_prog_compiler_pic_CXX='-KPIC'
16695 lt_prog_compiler_static_CXX='-Bstatic'
16696 lt_prog_compiler_wl_CXX='-Qoption ld '
16699 # Green Hills C++ Compiler
16700 lt_prog_compiler_pic_CXX='-PIC'
16707 case $cc_basename in
16710 lt_prog_compiler_pic_CXX='-pic'
16711 lt_prog_compiler_static_CXX='-Bstatic'
16715 lt_prog_compiler_pic_CXX='-pic'
16721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16722 case $cc_basename in
16724 lt_prog_compiler_wl_CXX='-Wl,'
16725 lt_prog_compiler_pic_CXX='-KPIC'
16726 lt_prog_compiler_static_CXX='-Bstatic'
16731 case $cc_basename in
16733 # NonStop-UX NCC 3.20
16734 lt_prog_compiler_pic_CXX='-KPIC'
16743 lt_prog_compiler_can_build_shared_CXX=no
16749 # For platforms which do not support PIC, -DPIC is meaningless:
16751 lt_prog_compiler_pic_CXX=
16754 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16757 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16758 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16763 # Check to make sure the PIC flag actually works.
16765 if test -n "$lt_prog_compiler_pic_CXX"; then
16766 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16767 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16768 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16769 $as_echo_n "(cached) " >&6
16771 lt_cv_prog_compiler_pic_works_CXX=no
16772 ac_outfile=conftest.$ac_objext
16773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16774 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16775 # Insert the option either (1) after the last *FLAGS variable, or
16776 # (2) before a word containing "conftest.", or (3) at the end.
16777 # Note that $ac_compile itself does not contain backslashes and begins
16778 # with a dollar sign (not a hyphen), so the echo should work correctly.
16779 # The option is referenced via a variable to avoid confusing sed.
16780 lt_compile=`echo "$ac_compile" | $SED \
16781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16783 -e 's:$: $lt_compiler_flag:'`
16784 (eval echo "\"\$as_me:16784: $lt_compile\"" >&5)
16785 (eval "$lt_compile" 2>conftest.err)
16787 cat conftest.err >&5
16788 echo "$as_me:16788: \$? = $ac_status" >&5
16789 if (exit $ac_status) && test -s "$ac_outfile"; then
16790 # The compiler can only warn and ignore the option if not recognized
16791 # So say no if there are warnings other than the usual output.
16792 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16795 lt_cv_prog_compiler_pic_works_CXX=yes
16801 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16802 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16804 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16805 case $lt_prog_compiler_pic_CXX in
16807 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16810 lt_prog_compiler_pic_CXX=
16811 lt_prog_compiler_can_build_shared_CXX=no
16819 # Check to make sure the static flag actually works.
16821 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16822 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16824 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16825 $as_echo_n "(cached) " >&6
16827 lt_cv_prog_compiler_static_works_CXX=no
16828 save_LDFLAGS="$LDFLAGS"
16829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16832 # The linker can only warn and ignore the option if not recognized
16833 # So say no if there are warnings
16834 if test -s conftest.err; then
16835 # Append any errors to the config.log.
16836 cat conftest.err 1>&5
16837 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16839 if diff conftest.exp conftest.er2 >/dev/null; then
16840 lt_cv_prog_compiler_static_works_CXX=yes
16843 lt_cv_prog_compiler_static_works_CXX=yes
16847 LDFLAGS="$save_LDFLAGS"
16850 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16851 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16853 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16856 lt_prog_compiler_static_CXX=
16862 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16864 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16865 $as_echo_n "(cached) " >&6
16867 lt_cv_prog_compiler_c_o_CXX=no
16868 $RM -r conftest 2>/dev/null
16872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16874 lt_compiler_flag="-o out/conftest2.$ac_objext"
16875 # Insert the option either (1) after the last *FLAGS variable, or
16876 # (2) before a word containing "conftest.", or (3) at the end.
16877 # Note that $ac_compile itself does not contain backslashes and begins
16878 # with a dollar sign (not a hyphen), so the echo should work correctly.
16879 lt_compile=`echo "$ac_compile" | $SED \
16880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16882 -e 's:$: $lt_compiler_flag:'`
16883 (eval echo "\"\$as_me:16883: $lt_compile\"" >&5)
16884 (eval "$lt_compile" 2>out/conftest.err)
16886 cat out/conftest.err >&5
16887 echo "$as_me:16887: \$? = $ac_status" >&5
16888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16890 # The compiler can only warn and ignore the option if not recognized
16891 # So say no if there are warnings
16892 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16895 lt_cv_prog_compiler_c_o_CXX=yes
16900 # SGI C++ compiler will create directory out/ii_files/ for
16901 # template instantiation
16902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16903 $RM out/* && rmdir out
16909 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16910 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16914 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16916 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16917 $as_echo_n "(cached) " >&6
16919 lt_cv_prog_compiler_c_o_CXX=no
16920 $RM -r conftest 2>/dev/null
16924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16926 lt_compiler_flag="-o out/conftest2.$ac_objext"
16927 # Insert the option either (1) after the last *FLAGS variable, or
16928 # (2) before a word containing "conftest.", or (3) at the end.
16929 # Note that $ac_compile itself does not contain backslashes and begins
16930 # with a dollar sign (not a hyphen), so the echo should work correctly.
16931 lt_compile=`echo "$ac_compile" | $SED \
16932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16934 -e 's:$: $lt_compiler_flag:'`
16935 (eval echo "\"\$as_me:16935: $lt_compile\"" >&5)
16936 (eval "$lt_compile" 2>out/conftest.err)
16938 cat out/conftest.err >&5
16939 echo "$as_me:16939: \$? = $ac_status" >&5
16940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16942 # The compiler can only warn and ignore the option if not recognized
16943 # So say no if there are warnings
16944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16947 lt_cv_prog_compiler_c_o_CXX=yes
16952 # SGI C++ compiler will create directory out/ii_files/ for
16953 # template instantiation
16954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16955 $RM out/* && rmdir out
16961 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16962 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16967 hard_links="nottested"
16968 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16969 # do not overwrite the value of need_locks provided by the user
16970 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16971 $as_echo_n "checking if we can lock with hard links... " >&6; }
16974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16976 ln conftest.a conftest.b 2>&5 || hard_links=no
16977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16978 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16979 $as_echo "$hard_links" >&6; }
16980 if test "$hard_links" = no; then
16981 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16982 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16991 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16992 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16997 # If we're using GNU nm, then we don't want the "-C" option.
16998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16999 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17000 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'
17002 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'
17006 export_symbols_cmds_CXX="$ltdll_cmds"
17008 cygwin* | mingw* | cegcc*)
17009 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'
17012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17015 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17017 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17018 $as_echo "$ld_shlibs_CXX" >&6; }
17019 test "$ld_shlibs_CXX" = no && can_build_shared=no
17021 with_gnu_ld_CXX=$with_gnu_ld
17029 # Do we need to explicitly link libc?
17031 case "x$archive_cmds_need_lc_CXX" in
17033 # Assume -lc should be added
17034 archive_cmds_need_lc_CXX=yes
17036 if test "$enable_shared" = yes && test "$GCC" = yes; then
17037 case $archive_cmds_CXX in
17039 # FIXME: we may have to deal with multi-command sequences.
17042 # Test whether the compiler implicitly links with -lc since on some
17043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17044 # to ld, don't add -lc before -lgcc.
17045 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17046 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>&5
17053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } 2>conftest.err; then
17057 libobjs=conftest.$ac_objext
17059 wl=$lt_prog_compiler_wl_CXX
17060 pic_flag=$lt_prog_compiler_pic_CXX
17066 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17067 allow_undefined_flag_CXX=
17068 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17069 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }
17074 archive_cmds_need_lc_CXX=no
17076 archive_cmds_need_lc_CXX=yes
17078 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17080 cat conftest.err 1>&5
17083 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17084 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17154 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17155 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17157 library_names_spec=
17158 libname_spec='lib$name'
17162 postuninstall_cmds=
17166 shlibpath_overrides_runpath=unknown
17168 dynamic_linker="$host_os ld.so"
17169 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17170 need_lib_prefix=unknown
17171 hardcode_into_libs=no
17173 # when you set need_version to no, make sure it does not cause -set_version
17174 # flags to be left without arguments
17175 need_version=unknown
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17181 shlibpath_var=LIBPATH
17183 # AIX 3 has no versioning support, so we append a major version to the name.
17184 soname_spec='${libname}${release}${shared_ext}$major'
17191 hardcode_into_libs=yes
17192 if test "$host_cpu" = ia64; then
17193 # AIX 5 supports IA64
17194 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17195 shlibpath_var=LD_LIBRARY_PATH
17197 # With GCC up to 2.95.x, collect2 would create an import file
17198 # for dependence libraries. The import file would start with
17199 # the line `#! .'. This would cause the generated library to
17200 # depend on `.', always an invalid library. This was fixed in
17201 # development snapshots of GCC prior to 3.0.
17203 aix4 | aix4.[01] | aix4.[01].*)
17204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17206 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17209 can_build_shared=no
17213 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17214 # soname into executable. Probably we can add versioning support to
17215 # collect2, so additional links can be useful in future.
17216 if test "$aix_use_runtimelinking" = yes; then
17217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17218 # instead of lib<name>.a to let people know that these are not
17219 # typical AIX shared libraries.
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 # We preserve .a as extension for shared libraries through AIX4.2
17223 # and later when we are not doing run time linking.
17224 library_names_spec='${libname}${release}.a $libname.a'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LIBPATH
17234 # Since July 2007 AmigaOS4 officially supports .so libraries.
17235 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239 library_names_spec='$libname.ixlibrary $libname.a'
17240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17241 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'
17247 library_names_spec='${libname}${shared_ext}'
17248 dynamic_linker="$host_os ld.so"
17249 shlibpath_var=LIBRARY_PATH
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17261 # the default ld.so.conf also contains /usr/contrib/lib and
17262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17263 # libtool to hard-code these into programs
17266 cygwin* | mingw* | pw32* | cegcc*)
17267 version_type=windows
17272 case $GCC,$host_os in
17273 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17274 library_names_spec='$libname.dll.a'
17275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17276 postinstall_cmds='base_file=`basename \${file}`~
17277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17278 dldir=$destdir/`dirname \$dlpath`~
17279 test -d \$dldir || mkdir -p \$dldir~
17280 $install_prog $dir/$dlname \$dldir/$dlname~
17281 chmod a+x \$dldir/$dlname~
17282 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17283 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17286 dlpath=$dir/\$dldll~
17288 shlibpath_overrides_runpath=yes
17292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17297 # MinGW DLLs use traditional 'lib' prefix
17298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17299 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17301 # It is most probably a Windows format PATH printed by
17302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17303 # path with ; separators, and with drive letters. We can handle the
17304 # drive letters (cygwin fileutils understands them), so leave them,
17305 # especially as we might pass files found there to a mingw objdump,
17306 # which wouldn't understand a cygwinified path. Ahh.
17307 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17313 # pw32 DLLs use 'pw' prefix rather than 'lib'
17314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17323 dynamic_linker='Win32 ld.exe'
17324 # FIXME: first we should search . and the directory the executable is in
17328 darwin* | rhapsody*)
17329 dynamic_linker="$host_os dyld"
17330 version_type=darwin
17333 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17334 soname_spec='${libname}${release}${major}$shared_ext'
17335 shlibpath_overrides_runpath=yes
17336 shlibpath_var=DYLD_LIBRARY_PATH
17337 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17347 soname_spec='${libname}${release}${shared_ext}$major'
17348 shlibpath_var=LD_LIBRARY_PATH
17355 freebsd* | dragonfly*)
17356 # DragonFly does not have aout. When/if they implement a new
17357 # versioning mechanism, adjust this.
17358 if test -x /usr/bin/objformat; then
17359 objformat=`/usr/bin/objformat`
17362 freebsd[123]*) objformat=aout ;;
17363 *) objformat=elf ;;
17366 version_type=freebsd-$objformat
17367 case $version_type in
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17378 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=yes
17383 freebsd3.[01]* | freebsdelf3.[01]*)
17384 shlibpath_overrides_runpath=yes
17385 hardcode_into_libs=yes
17387 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17388 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17389 shlibpath_overrides_runpath=no
17390 hardcode_into_libs=yes
17392 *) # from 4.6 on, and DragonFly
17393 shlibpath_overrides_runpath=yes
17394 hardcode_into_libs=yes
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 hardcode_into_libs=yes
17409 hpux9* | hpux10* | hpux11*)
17410 # Give a soname corresponding to the major version so that dld.sl refuses to
17411 # link against other versions.
17418 hardcode_into_libs=yes
17419 dynamic_linker="$host_os dld.so"
17420 shlibpath_var=LD_LIBRARY_PATH
17421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 if test "X$HPUX_IA64_MODE" = X32; then
17425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17433 hardcode_into_libs=yes
17434 dynamic_linker="$host_os dld.sl"
17435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17444 dynamic_linker="$host_os dld.sl"
17445 shlibpath_var=SHLIB_PATH
17446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448 soname_spec='${libname}${release}${shared_ext}$major'
17451 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17452 postinstall_cmds='chmod 555 $lib'
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17467 irix5* | irix6* | nonstopux*)
17469 nonstopux*) version_type=nonstopux ;;
17471 if test "$lt_cv_prog_gnu_ld" = yes; then
17479 soname_spec='${libname}${release}${shared_ext}$major'
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17482 irix5* | nonstopux*)
17483 libsuff= shlibsuff=
17486 case $LD in # libtool.m4 will add one of these switches to LD
17487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17488 libsuff= shlibsuff= libmagic=32-bit;;
17489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17490 libsuff=32 shlibsuff=N32 libmagic=N32;;
17491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17493 *) libsuff= shlibsuff= libmagic=never-match;;
17497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17498 shlibpath_overrides_runpath=no
17499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17501 hardcode_into_libs=yes
17504 # No shared lib support for Linux oldld, aout, or coff.
17505 linux*oldld* | linux*aout* | linux*coff*)
17509 # This must be Linux ELF.
17510 linux* | k*bsd*-gnu)
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=no
17519 # Some binutils ld are patched to set DT_RUNPATH
17520 save_LDFLAGS=$LDFLAGS
17521 save_libdir=$libdir
17522 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17523 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17539 rm -f conftest.$ac_objext conftest$ac_exeext
17540 if { (ac_try="$ac_link"
17541 case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17546 $as_echo "$ac_try_echo") >&5
17547 (eval "$ac_link") 2>conftest.er1
17549 grep -v '^ *+' conftest.er1 >conftest.err
17551 cat conftest.err >&5
17552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } && {
17554 test -z "$ac_cxx_werror_flag" ||
17555 test ! -s conftest.err
17556 } && test -s conftest$ac_exeext && {
17557 test "$cross_compiling" = yes ||
17558 $as_test_x conftest$ac_exeext
17560 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17561 shlibpath_overrides_runpath=yes
17565 $as_echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17571 rm -rf conftest.dSYM
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573 conftest$ac_exeext conftest.$ac_ext
17574 LDFLAGS=$save_LDFLAGS
17575 libdir=$save_libdir
17577 # This implies no fast_install, which is unacceptable.
17578 # Some rework will be needed to allow for fast_install
17579 # before this can be enabled.
17580 hardcode_into_libs=yes
17582 # Add ABI-specific directories to the system library path.
17583 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17585 # Append ld.so.conf contents to the search path
17586 if test -f /etc/ld.so.conf; then
17587 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17588 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17591 # We used to test for /lib/ld.so.1 and disable shared libraries on
17592 # powerpc, because MkLinux only supported shared libraries with the
17593 # GNU dynamic linker. Since this was broken with cross compilers,
17594 # most powerpc-linux boxes support dynamic linking these days and
17595 # people can always --disable-shared, the test was removed, and we
17596 # assume the GNU/Linux dynamic linker is in use.
17597 dynamic_linker='GNU/Linux ld.so'
17604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17607 dynamic_linker='NetBSD (a.out) ld.so'
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 dynamic_linker='NetBSD ld.elf_so'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 shlibpath_overrides_runpath=yes
17615 hardcode_into_libs=yes
17620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 shlibpath_overrides_runpath=yes
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17630 soname_spec='${libname}${release}${shared_ext}$major'
17631 shlibpath_var=LD_LIBRARY_PATH
17632 shlibpath_overrides_runpath=no
17633 hardcode_into_libs=yes
17634 dynamic_linker='ldqnx.so'
17639 sys_lib_dlsearch_path_spec="/usr/lib"
17641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17644 *) need_version=no ;;
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17648 shlibpath_var=LD_LIBRARY_PATH
17649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17651 openbsd2.[89] | openbsd2.[89].*)
17652 shlibpath_overrides_runpath=no
17655 shlibpath_overrides_runpath=yes
17659 shlibpath_overrides_runpath=yes
17664 libname_spec='$name'
17667 library_names_spec='$libname${shared_ext} $libname.a'
17668 dynamic_linker='OS/2 ld.exe'
17669 shlibpath_var=LIBPATH
17672 osf3* | osf4* | osf5*)
17676 soname_spec='${libname}${release}${shared_ext}$major'
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678 shlibpath_var=LD_LIBRARY_PATH
17679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692 soname_spec='${libname}${release}${shared_ext}$major'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=yes
17695 hardcode_into_libs=yes
17696 # ldd complains unless libraries are executable
17697 postinstall_cmds='chmod +x $lib'
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17704 shlibpath_var=LD_LIBRARY_PATH
17705 shlibpath_overrides_runpath=yes
17706 if test "$with_gnu_ld" = yes; then
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 case $host_vendor in
17719 shlibpath_overrides_runpath=no
17721 runpath_var=LD_RUN_PATH
17729 shlibpath_overrides_runpath=no
17730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17736 if test -d /usr/nec ;then
17738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17739 soname_spec='$libname${shared_ext}.$major'
17740 shlibpath_var=LD_LIBRARY_PATH
17744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17745 version_type=freebsd-elf
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 shlibpath_var=LD_LIBRARY_PATH
17751 shlibpath_overrides_runpath=yes
17752 hardcode_into_libs=yes
17753 if test "$with_gnu_ld" = yes; then
17754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17763 sys_lib_dlsearch_path_spec='/usr/lib'
17767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 shlibpath_overrides_runpath=no
17774 hardcode_into_libs=yes
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780 soname_spec='${libname}${release}${shared_ext}$major'
17781 shlibpath_var=LD_LIBRARY_PATH
17788 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17789 $as_echo "$dynamic_linker" >&6; }
17790 test "$dynamic_linker" = no && can_build_shared=no
17792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17793 if test "$GCC" = yes; then
17794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17839 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17840 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17841 hardcode_action_CXX=
17842 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17843 test -n "$runpath_var_CXX" ||
17844 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17846 # We can hardcode non-existent directories.
17847 if test "$hardcode_direct_CXX" != no &&
17848 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17849 # have to relink, otherwise we might link with an installed library
17850 # when we should be linking with a yet-to-be-installed one
17851 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17852 test "$hardcode_minus_L_CXX" != no; then
17853 # Linking always hardcodes the temporary library directory.
17854 hardcode_action_CXX=relink
17856 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17857 hardcode_action_CXX=immediate
17860 # We cannot hardcode anything, or else we can only hardcode existing
17862 hardcode_action_CXX=unsupported
17864 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17865 $as_echo "$hardcode_action_CXX" >&6; }
17867 if test "$hardcode_action_CXX" = relink ||
17868 test "$inherit_rpath_CXX" = yes; then
17869 # Fast installation is not supported
17870 enable_fast_install=no
17871 elif test "$shlibpath_overrides_runpath" = yes ||
17872 test "$enable_shared" = no; then
17873 # Fast installation is not necessary
17874 enable_fast_install=needless
17883 fi # test -n "$compiler"
17889 with_gnu_ld=$lt_save_with_gnu_ld
17890 lt_cv_path_LDCXX=$lt_cv_path_LD
17891 lt_cv_path_LD=$lt_save_path_LD
17892 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17893 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17894 fi # test "$_lt_caught_CXX_error" != yes
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914 ac_config_commands="$ac_config_commands libtool"
17919 # Only expand once:
17922 if test "x$CC" != xcc; then
17923 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
17924 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17926 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
17927 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17929 set dummy $CC; ac_cc=`$as_echo "$2" |
17930 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17931 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
17932 $as_echo_n "(cached) " >&6
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17949 # Make sure it works both with $CC and with simple cc.
17950 # We do the test twice because some compilers refuse to overwrite an
17951 # existing .o file with -o, though they will create one.
17952 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17954 if { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17959 $as_echo "$ac_try_echo") >&5
17960 (eval "$ac_try") 2>&5
17962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 test -f conftest2.$ac_objext && { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17969 $as_echo "$ac_try_echo") >&5
17970 (eval "$ac_try") 2>&5
17972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); };
17975 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17976 if test "x$CC" != xcc; then
17977 # Test first that cc exists at all.
17978 if { ac_try='cc -c conftest.$ac_ext >&5'
17979 { (case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17984 $as_echo "$ac_try_echo") >&5
17985 (eval "$ac_try") 2>&5
17987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17991 if { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17996 $as_echo "$ac_try_echo") >&5
17997 (eval "$ac_try") 2>&5
17999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 test -f conftest2.$ac_objext && { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18006 $as_echo "$ac_try_echo") >&5
18007 (eval "$ac_try") 2>&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); };
18015 # cc exists but doesn't like -o.
18016 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18021 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18023 rm -f core conftest*
18026 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18027 { $as_echo "$as_me:$LINENO: result: yes" >&5
18028 $as_echo "yes" >&6; }
18030 { $as_echo "$as_me:$LINENO: result: no" >&5
18031 $as_echo "no" >&6; }
18033 cat >>confdefs.h <<\_ACEOF
18034 #define NO_MINUS_C_MINUS_O 1
18039 # FIXME: we rely on the cache variable name because
18040 # there is no other way.
18042 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18043 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18044 if test "$am_t" != yes; then
18045 # Losing compiler, so override with the script.
18046 # FIXME: It is wrong to rewrite CC.
18047 # But if we don't then we get into trouble of one sort or another.
18048 # A longer-term fix would be to have automake use am__CC in this case,
18049 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18050 CC="$am_aux_dir/compile $CC"
18055 if test "x$cross_compiling" = "xno"; then
18056 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
18058 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
18063 if test -n "$ac_tool_prefix"; then
18064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18065 set dummy ${ac_tool_prefix}ar; ac_word=$2
18066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18067 $as_echo_n "checking for $ac_word... " >&6; }
18068 if test "${ac_cv_prog_AR+set}" = set; then
18069 $as_echo_n "(cached) " >&6
18071 if test -n "$AR"; then
18072 ac_cv_prog_AR="$AR" # Let the user override the test.
18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075 for as_dir in $PATH
18078 test -z "$as_dir" && as_dir=.
18079 for ac_exec_ext in '' $ac_executable_extensions; do
18080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18081 ac_cv_prog_AR="${ac_tool_prefix}ar"
18082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18092 if test -n "$AR"; then
18093 { $as_echo "$as_me:$LINENO: result: $AR" >&5
18094 $as_echo "$AR" >&6; }
18096 { $as_echo "$as_me:$LINENO: result: no" >&5
18097 $as_echo "no" >&6; }
18102 if test -z "$ac_cv_prog_AR"; then
18104 # Extract the first word of "ar", so it can be a program name with args.
18105 set dummy ar; ac_word=$2
18106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18107 $as_echo_n "checking for $ac_word... " >&6; }
18108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18109 $as_echo_n "(cached) " >&6
18111 if test -n "$ac_ct_AR"; then
18112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115 for as_dir in $PATH
18118 test -z "$as_dir" && as_dir=.
18119 for ac_exec_ext in '' $ac_executable_extensions; do
18120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18121 ac_cv_prog_ac_ct_AR="ar"
18122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18132 if test -n "$ac_ct_AR"; then
18133 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18134 $as_echo "$ac_ct_AR" >&6; }
18136 { $as_echo "$as_me:$LINENO: result: no" >&5
18137 $as_echo "no" >&6; }
18140 if test "x$ac_ct_AR" = x; then
18143 case $cross_compiling:$ac_tool_warned in
18145 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18147 ac_tool_warned=yes ;;
18152 AR="$ac_cv_prog_AR"
18155 if test -n "$ac_tool_prefix"; then
18156 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
18157 set dummy ${ac_tool_prefix}ld; ac_word=$2
18158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18159 $as_echo_n "checking for $ac_word... " >&6; }
18160 if test "${ac_cv_prog_LD+set}" = set; then
18161 $as_echo_n "(cached) " >&6
18163 if test -n "$LD"; then
18164 ac_cv_prog_LD="$LD" # Let the user override the test.
18166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18167 for as_dir in $PATH
18170 test -z "$as_dir" && as_dir=.
18171 for ac_exec_ext in '' $ac_executable_extensions; do
18172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18173 ac_cv_prog_LD="${ac_tool_prefix}ld"
18174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18184 if test -n "$LD"; then
18185 { $as_echo "$as_me:$LINENO: result: $LD" >&5
18186 $as_echo "$LD" >&6; }
18188 { $as_echo "$as_me:$LINENO: result: no" >&5
18189 $as_echo "no" >&6; }
18194 if test -z "$ac_cv_prog_LD"; then
18196 # Extract the first word of "ld", so it can be a program name with args.
18197 set dummy ld; ac_word=$2
18198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18199 $as_echo_n "checking for $ac_word... " >&6; }
18200 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
18201 $as_echo_n "(cached) " >&6
18203 if test -n "$ac_ct_LD"; then
18204 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
18206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18207 for as_dir in $PATH
18210 test -z "$as_dir" && as_dir=.
18211 for ac_exec_ext in '' $ac_executable_extensions; do
18212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18213 ac_cv_prog_ac_ct_LD="ld"
18214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18223 ac_ct_LD=$ac_cv_prog_ac_ct_LD
18224 if test -n "$ac_ct_LD"; then
18225 { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
18226 $as_echo "$ac_ct_LD" >&6; }
18228 { $as_echo "$as_me:$LINENO: result: no" >&5
18229 $as_echo "no" >&6; }
18232 if test "x$ac_ct_LD" = x; then
18235 case $cross_compiling:$ac_tool_warned in
18237 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
18238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18239 ac_tool_warned=yes ;;
18244 LD="$ac_cv_prog_LD"
18248 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18249 $as_echo_n "checking for ANSI C header files... " >&6; }
18250 if test "${ac_cv_header_stdc+set}" = set; then
18251 $as_echo_n "(cached) " >&6
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 #include <stdlib.h>
18260 #include <stdarg.h>
18261 #include <string.h>
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18279 $as_echo "$ac_try_echo") >&5
18280 (eval "$ac_compile") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest.$ac_objext; then
18290 ac_cv_header_stdc=yes
18292 $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_cv_header_stdc=no
18298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18300 if test $ac_cv_header_stdc = yes; then
18301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 #include <string.h>
18311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18312 $EGREP "memchr" >/dev/null 2>&1; then
18315 ac_cv_header_stdc=no
18321 if test $ac_cv_header_stdc = yes; then
18322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18323 cat >conftest.$ac_ext <<_ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 #include <stdlib.h>
18332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18333 $EGREP "free" >/dev/null 2>&1; then
18336 ac_cv_header_stdc=no
18342 if test $ac_cv_header_stdc = yes; then
18343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18344 if test "$cross_compiling" = yes; then
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18354 #include <stdlib.h>
18355 #if ((' ' & 0x0FF) == 0x020)
18356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18359 # define ISLOWER(c) \
18360 (('a' <= (c) && (c) <= 'i') \
18361 || ('j' <= (c) && (c) <= 'r') \
18362 || ('s' <= (c) && (c) <= 'z'))
18363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18371 for (i = 0; i < 256; i++)
18372 if (XOR (islower (i), ISLOWER (i))
18373 || toupper (i) != TOUPPER (i))
18378 rm -f conftest$ac_exeext
18379 if { (ac_try="$ac_link"
18380 case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18385 $as_echo "$ac_try_echo") >&5
18386 (eval "$ac_link") 2>&5
18388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18390 { (case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18395 $as_echo "$ac_try_echo") >&5
18396 (eval "$ac_try") 2>&5
18398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18402 $as_echo "$as_me: program exited with status $ac_status" >&5
18403 $as_echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18406 ( exit $ac_status )
18407 ac_cv_header_stdc=no
18409 rm -rf conftest.dSYM
18410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18416 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18417 $as_echo "$ac_cv_header_stdc" >&6; }
18418 if test $ac_cv_header_stdc = yes; then
18420 cat >>confdefs.h <<\_ACEOF
18421 #define STDC_HEADERS 1
18427 { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
18428 $as_echo_n "checking for GNU libc2... " >&6; }
18429 if test "${knfsd_cv_glibc2+set}" = set; then
18430 $as_echo_n "(cached) " >&6
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18439 #include <features.h>
18440 #if !defined(__GLIBC__)
18445 if { (ac_try="$ac_cpp conftest.$ac_ext"
18446 case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18451 $as_echo "$ac_try_echo") >&5
18452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18454 grep -v '^ *+' conftest.er1 >conftest.err
18456 cat conftest.err >&5
18457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } >/dev/null && {
18459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18460 test ! -s conftest.err
18462 knfsd_cv_glibc2=yes
18464 $as_echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18470 rm -f conftest.err conftest.$ac_ext
18473 { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
18474 $as_echo "$knfsd_cv_glibc2" >&6; }
18475 if test $knfsd_cv_glibc2 = yes; then
18476 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18477 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
18481 { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
18482 $as_echo_n "checking for BSD signal semantics... " >&6; }
18483 if test "${knfsd_cv_bsd_signals+set}" = set; then
18484 $as_echo_n "(cached) " >&6
18486 if test "$cross_compiling" = yes; then
18489 *linux*) knfsd_cv_bsd_signals=no;;
18490 *bsd*) knfsd_cv_bsd_signals=yes;;
18491 *) { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
18492 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
18493 { (exit 1); exit 1; }; };;
18497 cat >conftest.$ac_ext <<_ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18504 #include <signal.h>
18505 #include <unistd.h>
18506 #include <sys/wait.h>
18508 static int counter = 0;
18509 static RETSIGTYPE handler(int num) { counter++; }
18514 if ((s = fork()) < 0) return 1;
18516 if (wait(&s) < 0) return 1;
18517 return WIFSIGNALED(s)? 1 : 0;
18520 signal(SIGHUP, handler);
18521 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
18522 return (counter == 2)? 0 : 1;
18526 rm -f conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533 $as_echo "$ac_try_echo") >&5
18534 (eval "$ac_link") 2>&5
18536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18543 $as_echo "$ac_try_echo") >&5
18544 (eval "$ac_try") 2>&5
18546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 knfsd_cv_bsd_signals=yes
18550 $as_echo "$as_me: program exited with status $ac_status" >&5
18551 $as_echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ( exit $ac_status )
18555 knfsd_cv_bsd_signals=no
18557 rm -rf conftest.dSYM
18558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18563 { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
18564 $as_echo "$knfsd_cv_bsd_signals" >&6; }
18565 test $knfsd_cv_bsd_signals = yes &&
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE_BSD_SIGNALS 1
18573 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
18574 $as_echo_n "checking for gethostbyname... " >&6; }
18575 if test "${ac_cv_func_gethostbyname+set}" = set; then
18576 $as_echo_n "(cached) " >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586 #define gethostbyname innocuous_gethostbyname
18588 /* System header to define __stub macros and hopefully few prototypes,
18589 which can conflict with char gethostbyname (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
18594 # include <limits.h>
18596 # include <assert.h>
18599 #undef gethostbyname
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18607 char gethostbyname ();
18608 /* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
18611 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18618 return gethostbyname ();
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631 (eval "$ac_link") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext && {
18641 test "$cross_compiling" = yes ||
18642 $as_test_x conftest$ac_exeext
18644 ac_cv_func_gethostbyname=yes
18646 $as_echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_func_gethostbyname=no
18652 rm -rf conftest.dSYM
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654 conftest$ac_exeext conftest.$ac_ext
18656 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18657 $as_echo "$ac_cv_func_gethostbyname" >&6; }
18658 if test "x$ac_cv_func_gethostbyname" = x""yes; then
18661 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18662 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18663 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18664 $as_echo_n "(cached) " >&6
18666 ac_check_lib_save_LIBS=$LIBS
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 /* Override any GCC internal prototype to avoid an error.
18676 Use char because int might match the return type of a GCC
18677 builtin and then its argument prototype would still apply. */
18681 char gethostbyname ();
18685 return gethostbyname ();
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18697 $as_echo "$ac_try_echo") >&5
18698 (eval "$ac_link") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest$ac_exeext && {
18708 test "$cross_compiling" = yes ||
18709 $as_test_x conftest$ac_exeext
18711 ac_cv_lib_nsl_gethostbyname=yes
18713 $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_cv_lib_nsl_gethostbyname=no
18719 rm -rf conftest.dSYM
18720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18721 conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18724 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18725 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18726 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
18734 { $as_echo "$as_me:$LINENO: checking for connect" >&5
18735 $as_echo_n "checking for connect... " >&6; }
18736 if test "${ac_cv_func_connect+set}" = set; then
18737 $as_echo_n "(cached) " >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18747 #define connect innocuous_connect
18749 /* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char connect (); below.
18751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 <limits.h> exists even on freestanding compilers. */
18755 # include <limits.h>
18757 # include <assert.h>
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18769 /* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772 #if defined __stub_connect || defined __stub___connect
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792 (eval "$ac_link") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest$ac_exeext && {
18802 test "$cross_compiling" = yes ||
18803 $as_test_x conftest$ac_exeext
18805 ac_cv_func_connect=yes
18807 $as_echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_cv_func_connect=no
18813 rm -rf conftest.dSYM
18814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815 conftest$ac_exeext conftest.$ac_ext
18817 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18818 $as_echo "$ac_cv_func_connect" >&6; }
18819 if test "x$ac_cv_func_connect" = x""yes; then
18822 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18823 $as_echo_n "checking for connect in -lsocket... " >&6; }
18824 if test "${ac_cv_lib_socket_connect+set}" = set; then
18825 $as_echo_n "(cached) " >&6
18827 ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lsocket $LIBNSL $LIBS"
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18836 /* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18858 $as_echo "$ac_try_echo") >&5
18859 (eval "$ac_link") 2>conftest.er1
18861 grep -v '^ *+' conftest.er1 >conftest.err
18863 cat conftest.err >&5
18864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } && {
18866 test -z "$ac_c_werror_flag" ||
18867 test ! -s conftest.err
18868 } && test -s conftest$ac_exeext && {
18869 test "$cross_compiling" = yes ||
18870 $as_test_x conftest$ac_exeext
18872 ac_cv_lib_socket_connect=yes
18874 $as_echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_cv_lib_socket_connect=no
18880 rm -rf conftest.dSYM
18881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18886 $as_echo "$ac_cv_lib_socket_connect" >&6; }
18887 if test "x$ac_cv_lib_socket_connect" = x""yes; then
18888 LIBSOCKET="-lsocket"
18890 { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
18891 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
18892 { (exit 1); exit 1; }; }
18898 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18899 $as_echo_n "checking for getaddrinfo... " >&6; }
18900 if test "${ac_cv_func_getaddrinfo+set}" = set; then
18901 $as_echo_n "(cached) " >&6
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
18910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18911 #define getaddrinfo innocuous_getaddrinfo
18913 /* System header to define __stub macros and hopefully few prototypes,
18914 which can conflict with char getaddrinfo (); below.
18915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18916 <limits.h> exists even on freestanding compilers. */
18919 # include <limits.h>
18921 # include <assert.h>
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18932 char getaddrinfo ();
18933 /* The GNU C library defines this for functions which it implements
18934 to always fail with ENOSYS. Some functions are actually named
18935 something starting with __ and the normal name is an alias. */
18936 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
18943 return getaddrinfo ();
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (ac_try="$ac_link"
18950 case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18955 $as_echo "$ac_try_echo") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest$ac_exeext && {
18966 test "$cross_compiling" = yes ||
18967 $as_test_x conftest$ac_exeext
18969 ac_cv_func_getaddrinfo=yes
18971 $as_echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_cv_func_getaddrinfo=no
18977 rm -rf conftest.dSYM
18978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18979 conftest$ac_exeext conftest.$ac_ext
18981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
18982 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
18983 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
18986 { { $as_echo "$as_me:$LINENO: error: Function 'getaddrinfo' not found." >&5
18987 $as_echo "$as_me: error: Function 'getaddrinfo' not found." >&2;}
18988 { (exit 1); exit 1; }; }
18992 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
18993 $as_echo_n "checking for getrpcbynumber... " >&6; }
18994 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
18995 $as_echo_n "(cached) " >&6
18997 cat >conftest.$ac_ext <<_ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
19004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19005 #define getrpcbynumber innocuous_getrpcbynumber
19007 /* System header to define __stub macros and hopefully few prototypes,
19008 which can conflict with char getrpcbynumber (); below.
19009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19010 <limits.h> exists even on freestanding compilers. */
19013 # include <limits.h>
19015 # include <assert.h>
19018 #undef getrpcbynumber
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19026 char getrpcbynumber ();
19027 /* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
19037 return getrpcbynumber ();
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (ac_try="$ac_link"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19049 $as_echo "$ac_try_echo") >&5
19050 (eval "$ac_link") 2>conftest.er1
19052 grep -v '^ *+' conftest.er1 >conftest.err
19054 cat conftest.err >&5
19055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } && {
19057 test -z "$ac_c_werror_flag" ||
19058 test ! -s conftest.err
19059 } && test -s conftest$ac_exeext && {
19060 test "$cross_compiling" = yes ||
19061 $as_test_x conftest$ac_exeext
19063 ac_cv_func_getrpcbynumber=yes
19065 $as_echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 ac_cv_func_getrpcbynumber=no
19071 rm -rf conftest.dSYM
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19075 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
19076 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
19077 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then
19080 { { $as_echo "$as_me:$LINENO: error: Function 'getrpcbynumber' not found." >&5
19081 $as_echo "$as_me: error: Function 'getrpcbynumber' not found." >&2;}
19082 { (exit 1); exit 1; }; }
19086 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
19087 $as_echo_n "checking for getservbyname... " >&6; }
19088 if test "${ac_cv_func_getservbyname+set}" = set; then
19089 $as_echo_n "(cached) " >&6
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
19098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19099 #define getservbyname innocuous_getservbyname
19101 /* System header to define __stub macros and hopefully few prototypes,
19102 which can conflict with char getservbyname (); below.
19103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19104 <limits.h> exists even on freestanding compilers. */
19107 # include <limits.h>
19109 # include <assert.h>
19112 #undef getservbyname
19114 /* Override any GCC internal prototype to avoid an error.
19115 Use char because int might match the return type of a GCC
19116 builtin and then its argument prototype would still apply. */
19120 char getservbyname ();
19121 /* The GNU C library defines this for functions which it implements
19122 to always fail with ENOSYS. Some functions are actually named
19123 something starting with __ and the normal name is an alias. */
19124 #if defined __stub_getservbyname || defined __stub___getservbyname
19131 return getservbyname ();
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19143 $as_echo "$ac_try_echo") >&5
19144 (eval "$ac_link") 2>conftest.er1
19146 grep -v '^ *+' conftest.er1 >conftest.err
19148 cat conftest.err >&5
19149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest$ac_exeext && {
19154 test "$cross_compiling" = yes ||
19155 $as_test_x conftest$ac_exeext
19157 ac_cv_func_getservbyname=yes
19159 $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_func_getservbyname=no
19165 rm -rf conftest.dSYM
19166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19167 conftest$ac_exeext conftest.$ac_ext
19169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
19170 $as_echo "$ac_cv_func_getservbyname" >&6; }
19171 if test "x$ac_cv_func_getservbyname" = x""yes; then
19174 { { $as_echo "$as_me:$LINENO: error: Function 'getservbyname' not found." >&5
19175 $as_echo "$as_me: error: Function 'getservbyname' not found." >&2;}
19176 { (exit 1); exit 1; }; }
19180 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19181 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
19182 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19183 $as_echo_n "(cached) " >&6
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lcrypt $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19216 $as_echo "$ac_try_echo") >&5
19217 (eval "$ac_link") 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } && {
19224 test -z "$ac_c_werror_flag" ||
19225 test ! -s conftest.err
19226 } && test -s conftest$ac_exeext && {
19227 test "$cross_compiling" = yes ||
19228 $as_test_x conftest$ac_exeext
19230 ac_cv_lib_crypt_crypt=yes
19232 $as_echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_cv_lib_crypt_crypt=no
19238 rm -rf conftest.dSYM
19239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19240 conftest$ac_exeext conftest.$ac_ext
19241 LIBS=$ac_check_lib_save_LIBS
19243 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19244 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19245 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
19250 if test "$enable_nfsv4" = yes; then
19253 { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
19254 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
19255 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
19256 $as_echo_n "(cached) " >&6
19258 ac_check_lib_save_LIBS=$LIBS
19259 LIBS="-levent $LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19273 char event_dispatch ();
19277 return event_dispatch ();
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19289 $as_echo "$ac_try_echo") >&5
19290 (eval "$ac_link") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } && {
19297 test -z "$ac_c_werror_flag" ||
19298 test ! -s conftest.err
19299 } && test -s conftest$ac_exeext && {
19300 test "$cross_compiling" = yes ||
19301 $as_test_x conftest$ac_exeext
19303 ac_cv_lib_event_event_dispatch=yes
19305 $as_echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_cv_lib_event_event_dispatch=no
19311 rm -rf conftest.dSYM
19312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19313 conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19316 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
19317 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
19318 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
19321 { { $as_echo "$as_me:$LINENO: error: libevent not found." >&5
19322 $as_echo "$as_me: error: libevent not found." >&2;}
19323 { (exit 1); exit 1; }; }
19328 for ac_header in event.h
19330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19333 $as_echo_n "checking for $ac_header... " >&6; }
19334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19335 $as_echo_n "(cached) " >&6
19337 ac_res=`eval 'as_val=${'$as_ac_Header'}
19338 $as_echo "$as_val"'`
19339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19340 $as_echo "$ac_res" >&6; }
19342 # Is the header compilable?
19343 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19344 $as_echo_n "checking $ac_header usability... " >&6; }
19345 cat >conftest.$ac_ext <<_ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351 $ac_includes_default
19352 #include <$ac_header>
19354 rm -f conftest.$ac_objext
19355 if { (ac_try="$ac_compile"
19356 case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19361 $as_echo "$ac_try_echo") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19364 grep -v '^ *+' conftest.er1 >conftest.err
19366 cat conftest.err >&5
19367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest.$ac_objext; then
19372 ac_header_compiler=yes
19374 $as_echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_header_compiler=no
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19382 $as_echo "$ac_header_compiler" >&6; }
19384 # Is the header present?
19385 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19386 $as_echo_n "checking $ac_header presence... " >&6; }
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19393 #include <$ac_header>
19395 if { (ac_try="$ac_cpp conftest.$ac_ext"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19401 $as_echo "$ac_try_echo") >&5
19402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } >/dev/null && {
19409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19412 ac_header_preproc=yes
19414 $as_echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_header_preproc=no
19420 rm -f conftest.err conftest.$ac_ext
19421 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19422 $as_echo "$ac_header_preproc" >&6; }
19424 # So? What about this header?
19425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19428 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19431 ac_header_preproc=yes
19434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19435 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19437 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19439 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19441 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19443 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19445 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19447 ## ---------------------------------------- ##
19448 ## Report this to linux-nfs@vger.kernel.org ##
19449 ## ---------------------------------------- ##
19451 ) | sed "s/^/$as_me: WARNING: /" >&2
19454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19455 $as_echo_n "checking for $ac_header... " >&6; }
19456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19457 $as_echo_n "(cached) " >&6
19459 eval "$as_ac_Header=\$ac_header_preproc"
19461 ac_res=`eval 'as_val=${'$as_ac_Header'}
19462 $as_echo "$as_val"'`
19463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19464 $as_echo "$ac_res" >&6; }
19467 as_val=`eval 'as_val=${'$as_ac_Header'}
19468 $as_echo "$as_val"'`
19469 if test "x$as_val" = x""yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19475 { { $as_echo "$as_me:$LINENO: error: libevent headers not found." >&5
19476 $as_echo "$as_me: error: libevent headers not found." >&2;}
19477 { (exit 1); exit 1; }; }
19487 { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
19488 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
19489 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
19490 $as_echo_n "(cached) " >&6
19492 ac_check_lib_save_LIBS=$LIBS
19493 LIBS="-lnfsidmap $LIBS"
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19501 /* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19507 char nfs4_init_name_mapping ();
19511 return nfs4_init_name_mapping ();
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524 (eval "$ac_link") 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext && {
19534 test "$cross_compiling" = yes ||
19535 $as_test_x conftest$ac_exeext
19537 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
19539 $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19542 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
19545 rm -rf conftest.dSYM
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547 conftest$ac_exeext conftest.$ac_ext
19548 LIBS=$ac_check_lib_save_LIBS
19550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
19551 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
19552 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
19555 { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
19556 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
19557 { (exit 1); exit 1; }; }
19562 for ac_header in nfsidmap.h
19564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19567 $as_echo_n "checking for $ac_header... " >&6; }
19568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19569 $as_echo_n "(cached) " >&6
19571 ac_res=`eval 'as_val=${'$as_ac_Header'}
19572 $as_echo "$as_val"'`
19573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19574 $as_echo "$ac_res" >&6; }
19576 # Is the header compilable?
19577 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19578 $as_echo_n "checking $ac_header usability... " >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 $ac_includes_default
19586 #include <$ac_header>
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19595 $as_echo "$ac_try_echo") >&5
19596 (eval "$ac_compile") 2>conftest.er1
19598 grep -v '^ *+' conftest.er1 >conftest.err
19600 cat conftest.err >&5
19601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } && {
19603 test -z "$ac_c_werror_flag" ||
19604 test ! -s conftest.err
19605 } && test -s conftest.$ac_objext; then
19606 ac_header_compiler=yes
19608 $as_echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_header_compiler=no
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19616 $as_echo "$ac_header_compiler" >&6; }
19618 # Is the header present?
19619 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19620 $as_echo_n "checking $ac_header presence... " >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <$ac_header>
19629 if { (ac_try="$ac_cpp conftest.$ac_ext"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19635 $as_echo "$ac_try_echo") >&5
19636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null && {
19643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19646 ac_header_preproc=yes
19648 $as_echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_header_preproc=no
19654 rm -f conftest.err conftest.$ac_ext
19655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 $as_echo "$ac_header_preproc" >&6; }
19658 # So? What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19662 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19665 ac_header_preproc=yes
19668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19669 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19671 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19673 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19675 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19679 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19681 ## ---------------------------------------- ##
19682 ## Report this to linux-nfs@vger.kernel.org ##
19683 ## ---------------------------------------- ##
19685 ) | sed "s/^/$as_me: WARNING: /" >&2
19688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19689 $as_echo_n "checking for $ac_header... " >&6; }
19690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19691 $as_echo_n "(cached) " >&6
19693 eval "$as_ac_Header=\$ac_header_preproc"
19695 ac_res=`eval 'as_val=${'$as_ac_Header'}
19696 $as_echo "$as_val"'`
19697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19698 $as_echo "$ac_res" >&6; }
19701 as_val=`eval 'as_val=${'$as_ac_Header'}
19702 $as_echo "$as_val"'`
19703 if test "x$as_val" = x""yes; then
19704 cat >>confdefs.h <<_ACEOF
19705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19709 { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
19710 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
19711 { (exit 1); exit 1; }; }
19717 { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
19718 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
19719 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
19720 $as_echo_n "(cached) " >&6
19722 ac_check_lib_save_LIBS=$LIBS
19723 LIBS="-lnfsidmap $LIBS"
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19731 /* Override any GCC internal prototype to avoid an error.
19732 Use char because int might match the return type of a GCC
19733 builtin and then its argument prototype would still apply. */
19737 char nfs4_set_debug ();
19741 return nfs4_set_debug ();
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19753 $as_echo "$ac_try_echo") >&5
19754 (eval "$ac_link") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } && {
19761 test -z "$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 } && test -s conftest$ac_exeext && {
19764 test "$cross_compiling" = yes ||
19765 $as_test_x conftest$ac_exeext
19767 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
19769 $as_echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ac_cv_lib_nfsidmap_nfs4_set_debug=no
19775 rm -rf conftest.dSYM
19776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19777 conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
19781 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
19782 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_NFS4_SET_DEBUG 1
19793 if test "$enable_gss" = yes; then
19796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19797 if test -n "$ac_tool_prefix"; then
19798 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19799 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19801 $as_echo_n "checking for $ac_word... " >&6; }
19802 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19803 $as_echo_n "(cached) " >&6
19805 case $PKG_CONFIG in
19807 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19811 for as_dir in $PATH
19814 test -z "$as_dir" && as_dir=.
19815 for ac_exec_ext in '' $ac_executable_extensions; do
19816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19817 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19829 if test -n "$PKG_CONFIG"; then
19830 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19831 $as_echo "$PKG_CONFIG" >&6; }
19833 { $as_echo "$as_me:$LINENO: result: no" >&5
19834 $as_echo "no" >&6; }
19839 if test -z "$ac_cv_path_PKG_CONFIG"; then
19840 ac_pt_PKG_CONFIG=$PKG_CONFIG
19841 # Extract the first word of "pkg-config", so it can be a program name with args.
19842 set dummy pkg-config; ac_word=$2
19843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19844 $as_echo_n "checking for $ac_word... " >&6; }
19845 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19846 $as_echo_n "(cached) " >&6
19848 case $ac_pt_PKG_CONFIG in
19850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19854 for as_dir in $PATH
19857 test -z "$as_dir" && as_dir=.
19858 for ac_exec_ext in '' $ac_executable_extensions; do
19859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19860 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19871 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19872 if test -n "$ac_pt_PKG_CONFIG"; then
19873 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19874 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19876 { $as_echo "$as_me:$LINENO: result: no" >&5
19877 $as_echo "no" >&6; }
19880 if test "x$ac_pt_PKG_CONFIG" = x; then
19883 case $cross_compiling:$ac_tool_warned in
19885 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19887 ac_tool_warned=yes ;;
19889 PKG_CONFIG=$ac_pt_PKG_CONFIG
19892 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19896 if test -n "$PKG_CONFIG"; then
19897 _pkg_min_version=0.9.0
19898 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19899 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19900 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19901 { $as_echo "$as_me:$LINENO: result: yes" >&5
19902 $as_echo "yes" >&6; }
19904 { $as_echo "$as_me:$LINENO: result: no" >&5
19905 $as_echo "no" >&6; }
19914 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
19915 $as_echo_n "checking for GSSGLUE... " >&6; }
19917 if test -n "$GSSGLUE_CFLAGS"; then
19918 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
19919 elif test -n "$PKG_CONFIG"; then
19920 if test -n "$PKG_CONFIG" && \
19921 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19922 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; then
19926 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
19933 if test -n "$GSSGLUE_LIBS"; then
19934 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
19935 elif test -n "$PKG_CONFIG"; then
19936 if test -n "$PKG_CONFIG" && \
19937 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19938 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; then
19942 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
19952 if test $pkg_failed = yes; then
19954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19955 _pkg_short_errors_supported=yes
19957 _pkg_short_errors_supported=no
19959 if test $_pkg_short_errors_supported = yes; then
19960 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
19962 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
19964 # Put the nasty error message in config.log where it belongs
19965 echo "$GSSGLUE_PKG_ERRORS" >&5
19967 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
19969 $GSSGLUE_PKG_ERRORS
19971 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19972 installed software in a non-standard prefix.
19974 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19975 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19976 See the pkg-config man page for more details.
19978 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
19980 $GSSGLUE_PKG_ERRORS
19982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19983 installed software in a non-standard prefix.
19985 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19986 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19987 See the pkg-config man page for more details.
19989 { (exit 1); exit 1; }; }
19990 elif test $pkg_failed = untried; then
19991 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19993 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19994 is in your PATH or set the PKG_CONFIG environment variable to the full
19995 path to pkg-config.
19997 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19998 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19999 See the pkg-config man page for more details.
20001 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20002 See \`config.log' for more details." >&5
20003 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20004 is in your PATH or set the PKG_CONFIG environment variable to the full
20005 path to pkg-config.
20007 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
20008 and GSSGLUE_LIBS to avoid the need to call pkg-config.
20009 See the pkg-config man page for more details.
20011 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20012 See \`config.log' for more details." >&2;}
20013 { (exit 1); exit 1; }; }; }
20015 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
20016 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
20017 { $as_echo "$as_me:$LINENO: result: yes" >&5
20018 $as_echo "yes" >&6; }
20022 if test "$enable_tirpc" = no; then
20025 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20026 $as_echo_n "checking for RPCSECGSS... " >&6; }
20028 if test -n "$RPCSECGSS_CFLAGS"; then
20029 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20030 elif test -n "$PKG_CONFIG"; then
20031 if test -n "$PKG_CONFIG" && \
20032 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
20033 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
20035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; then
20037 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
20044 if test -n "$RPCSECGSS_LIBS"; then
20045 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20046 elif test -n "$PKG_CONFIG"; then
20047 if test -n "$PKG_CONFIG" && \
20048 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
20049 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
20051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; then
20053 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
20063 if test $pkg_failed = yes; then
20065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20066 _pkg_short_errors_supported=yes
20068 _pkg_short_errors_supported=no
20070 if test $_pkg_short_errors_supported = yes; then
20071 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
20073 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
20075 # Put the nasty error message in config.log where it belongs
20076 echo "$RPCSECGSS_PKG_ERRORS" >&5
20078 { { $as_echo "$as_me:$LINENO: error: Package requirements (librpcsecgss >= 0.16) were not met:
20080 $RPCSECGSS_PKG_ERRORS
20082 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20083 installed software in a non-standard prefix.
20085 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20086 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20087 See the pkg-config man page for more details.
20089 $as_echo "$as_me: error: Package requirements (librpcsecgss >= 0.16) were not met:
20091 $RPCSECGSS_PKG_ERRORS
20093 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20094 installed software in a non-standard prefix.
20096 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20097 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20098 See the pkg-config man page for more details.
20100 { (exit 1); exit 1; }; }
20101 elif test $pkg_failed = untried; then
20102 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20104 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20105 is in your PATH or set the PKG_CONFIG environment variable to the full
20106 path to pkg-config.
20108 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20109 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20110 See the pkg-config man page for more details.
20112 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20113 See \`config.log' for more details." >&5
20114 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20115 is in your PATH or set the PKG_CONFIG environment variable to the full
20116 path to pkg-config.
20118 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
20119 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
20120 See the pkg-config man page for more details.
20122 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20123 See \`config.log' for more details." >&2;}
20124 { (exit 1); exit 1; }; }; }
20126 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
20127 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
20128 { $as_echo "$as_me:$LINENO: result: yes" >&5
20129 $as_echo "yes" >&6; }
20138 if test "$knfsd_cv_glibc2" = no; then
20139 { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20140 $as_echo_n "checking for daemon in -lbsd... " >&6; }
20141 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20142 $as_echo_n "(cached) " >&6
20144 ac_check_lib_save_LIBS=$LIBS
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 /* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20175 $as_echo "$ac_try_echo") >&5
20176 (eval "$ac_link") 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && {
20183 test -z "$ac_c_werror_flag" ||
20184 test ! -s conftest.err
20185 } && test -s conftest$ac_exeext && {
20186 test "$cross_compiling" = yes ||
20187 $as_test_x conftest$ac_exeext
20189 ac_cv_lib_bsd_daemon=yes
20191 $as_echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_bsd_daemon=no
20197 rm -rf conftest.dSYM
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
20203 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
20204 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
20210 if test "$choose_blkid" != no; then
20211 { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
20212 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
20213 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
20214 $as_echo_n "(cached) " >&6
20216 ac_check_lib_save_LIBS=$LIBS
20217 LIBS="-lblkid $LIBS"
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20225 /* Override any GCC internal prototype to avoid an error.
20226 Use char because int might match the return type of a GCC
20227 builtin and then its argument prototype would still apply. */
20231 char blkid_get_library_version ();
20235 return blkid_get_library_version ();
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20247 $as_echo "$ac_try_echo") >&5
20248 (eval "$ac_link") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest$ac_exeext && {
20258 test "$cross_compiling" = yes ||
20259 $as_test_x conftest$ac_exeext
20261 ac_cv_lib_blkid_blkid_get_library_version=yes
20263 $as_echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_cv_lib_blkid_blkid_get_library_version=no
20269 rm -rf conftest.dSYM
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
20275 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
20276 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
20279 { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
20280 $as_echo "$as_me: error: libblkid needed" >&2;}
20281 { (exit 1); exit 1; }; }
20284 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20285 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
20286 $as_echo_n "checking for blkid/blkid.h... " >&6; }
20287 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20288 $as_echo_n "(cached) " >&6
20290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
20291 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
20293 # Is the header compilable?
20294 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
20295 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 $ac_includes_default
20303 #include <blkid/blkid.h>
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20312 $as_echo "$ac_try_echo") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20315 grep -v '^ *+' conftest.er1 >conftest.err
20317 cat conftest.err >&5
20318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && {
20320 test -z "$ac_c_werror_flag" ||
20321 test ! -s conftest.err
20322 } && test -s conftest.$ac_objext; then
20323 ac_header_compiler=yes
20325 $as_echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_header_compiler=no
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20333 $as_echo "$ac_header_compiler" >&6; }
20335 # Is the header present?
20336 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
20337 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344 #include <blkid/blkid.h>
20346 if { (ac_try="$ac_cpp conftest.$ac_ext"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20352 $as_echo "$ac_try_echo") >&5
20353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } >/dev/null && {
20360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20363 ac_header_preproc=yes
20365 $as_echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_header_preproc=no
20371 rm -f conftest.err conftest.$ac_ext
20372 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20373 $as_echo "$ac_header_preproc" >&6; }
20375 # So? What about this header?
20376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20378 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20379 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20380 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
20381 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
20382 ac_header_preproc=yes
20385 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
20386 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
20387 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
20388 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
20389 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
20390 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
20391 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
20392 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
20393 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
20394 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
20395 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
20396 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
20398 ## ---------------------------------------- ##
20399 ## Report this to linux-nfs@vger.kernel.org ##
20400 ## ---------------------------------------- ##
20402 ) | sed "s/^/$as_me: WARNING: /" >&2
20405 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
20406 $as_echo_n "checking for blkid/blkid.h... " >&6; }
20407 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20408 $as_echo_n "(cached) " >&6
20410 ac_cv_header_blkid_blkid_h=$ac_header_preproc
20412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
20413 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
20416 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
20419 { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
20420 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
20421 { (exit 1); exit 1; }; }
20426 { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
20427 $as_echo_n "checking for suitable libblkid version... " >&6; }
20428 if test "${libblkid_cv_is_recent+set}" = set; then
20429 $as_echo_n "(cached) " >&6
20434 if test "$cross_compiling" = yes; then
20435 libblkid_cv_is_recent=unknown
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20444 #include <blkid/blkid.h>
20447 int vers = blkid_get_library_version(0, 0);
20448 return vers >= 140 ? 0 : 1;
20452 rm -f conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20459 $as_echo "$ac_try_echo") >&5
20460 (eval "$ac_link") 2>&5
20462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20464 { (case "(($ac_try" in
20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466 *) ac_try_echo=$ac_try;;
20468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20469 $as_echo "$ac_try_echo") >&5
20470 (eval "$ac_try") 2>&5
20472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 libblkid_cv_is_recent=yes
20476 $as_echo "$as_me: program exited with status $ac_status" >&5
20477 $as_echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ( exit $ac_status )
20481 libblkid_cv_is_recent=no
20483 rm -rf conftest.dSYM
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20491 { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
20492 $as_echo "$libblkid_cv_is_recent" >&6; }
20494 if test $choose_blkid = yes; then
20496 test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
20497 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
20499 if test $libblkid_cv_is_recent = yes
20502 { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
20503 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
20507 cat >>confdefs.h <<_ACEOF
20508 #define USE_BLKID $use_blkid
20517 if test "$enable_gss" = yes; then
20518 { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
20519 $as_echo_n "checking for getnameinfo... " >&6; }
20520 if test "${ac_cv_func_getnameinfo+set}" = set; then
20521 $as_echo_n "(cached) " >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define getnameinfo innocuous_getnameinfo
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char getnameinfo (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20539 # include <limits.h>
20541 # include <assert.h>
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20552 char getnameinfo ();
20553 /* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556 #if defined __stub_getnameinfo || defined __stub___getnameinfo
20563 return getnameinfo ();
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576 (eval "$ac_link") 2>conftest.er1
20578 grep -v '^ *+' conftest.er1 >conftest.err
20580 cat conftest.err >&5
20581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest$ac_exeext && {
20586 test "$cross_compiling" = yes ||
20587 $as_test_x conftest$ac_exeext
20589 ac_cv_func_getnameinfo=yes
20591 $as_echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ac_cv_func_getnameinfo=no
20597 rm -rf conftest.dSYM
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599 conftest$ac_exeext conftest.$ac_ext
20601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
20602 $as_echo "$ac_cv_func_getnameinfo" >&6; }
20603 if test "x$ac_cv_func_getnameinfo" = x""yes; then
20606 { { $as_echo "$as_me:$LINENO: error: GSSAPI support requires 'getnameinfo' function" >&5
20607 $as_echo "$as_me: error: GSSAPI support requires 'getnameinfo' function" >&2;}
20608 { (exit 1); exit 1; }; }
20614 { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20615 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
20616 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20617 $as_echo_n "(cached) " >&6
20619 ac_check_lib_save_LIBS=$LIBS
20620 LIBS="-lnfsidmap $LIBS"
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20628 /* Override any GCC internal prototype to avoid an error.
20629 Use char because int might match the return type of a GCC
20630 builtin and then its argument prototype would still apply. */
20634 char nfs4_init_name_mapping ();
20638 return nfs4_init_name_mapping ();
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651 (eval "$ac_link") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest$ac_exeext && {
20661 test "$cross_compiling" = yes ||
20662 $as_test_x conftest$ac_exeext
20664 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20666 $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20672 rm -rf conftest.dSYM
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20678 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
20679 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
20682 { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
20683 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
20684 { (exit 1); exit 1; }; }
20689 for ac_header in nfsidmap.h
20691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20694 $as_echo_n "checking for $ac_header... " >&6; }
20695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20696 $as_echo_n "(cached) " >&6
20698 ac_res=`eval 'as_val=${'$as_ac_Header'}
20699 $as_echo "$as_val"'`
20700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20701 $as_echo "$ac_res" >&6; }
20703 # Is the header compilable?
20704 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20705 $as_echo_n "checking $ac_header usability... " >&6; }
20706 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 $ac_includes_default
20713 #include <$ac_header>
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20722 $as_echo "$ac_try_echo") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest.$ac_objext; then
20733 ac_header_compiler=yes
20735 $as_echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ac_header_compiler=no
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20743 $as_echo "$ac_header_compiler" >&6; }
20745 # Is the header present?
20746 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20747 $as_echo_n "checking $ac_header presence... " >&6; }
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 #include <$ac_header>
20756 if { (ac_try="$ac_cpp conftest.$ac_ext"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20762 $as_echo "$ac_try_echo") >&5
20763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20765 grep -v '^ *+' conftest.er1 >conftest.err
20767 cat conftest.err >&5
20768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } >/dev/null && {
20770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20771 test ! -s conftest.err
20773 ac_header_preproc=yes
20775 $as_echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 ac_header_preproc=no
20781 rm -f conftest.err conftest.$ac_ext
20782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20783 $as_echo "$ac_header_preproc" >&6; }
20785 # So? What about this header?
20786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20789 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20792 ac_header_preproc=yes
20795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20796 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20798 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20800 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20802 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20806 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20808 ## ---------------------------------------- ##
20809 ## Report this to linux-nfs@vger.kernel.org ##
20810 ## ---------------------------------------- ##
20812 ) | sed "s/^/$as_me: WARNING: /" >&2
20815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20816 $as_echo_n "checking for $ac_header... " >&6; }
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818 $as_echo_n "(cached) " >&6
20820 eval "$as_ac_Header=\$ac_header_preproc"
20822 ac_res=`eval 'as_val=${'$as_ac_Header'}
20823 $as_echo "$as_val"'`
20824 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20825 $as_echo "$ac_res" >&6; }
20828 as_val=`eval 'as_val=${'$as_ac_Header'}
20829 $as_echo "$as_val"'`
20830 if test "x$as_val" = x""yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836 { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
20837 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
20838 { (exit 1); exit 1; }; }
20844 { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
20845 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
20846 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
20847 $as_echo_n "(cached) " >&6
20849 ac_check_lib_save_LIBS=$LIBS
20850 LIBS="-lnfsidmap $LIBS"
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20858 /* Override any GCC internal prototype to avoid an error.
20859 Use char because int might match the return type of a GCC
20860 builtin and then its argument prototype would still apply. */
20864 char nfs4_set_debug ();
20868 return nfs4_set_debug ();
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20880 $as_echo "$ac_try_echo") >&5
20881 (eval "$ac_link") 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest$ac_exeext && {
20891 test "$cross_compiling" = yes ||
20892 $as_test_x conftest$ac_exeext
20894 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
20896 $as_echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 ac_cv_lib_nfsidmap_nfs4_set_debug=no
20902 rm -rf conftest.dSYM
20903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20904 conftest$ac_exeext conftest.$ac_ext
20905 LIBS=$ac_check_lib_save_LIBS
20907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
20908 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
20909 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
20911 cat >>confdefs.h <<\_ACEOF
20912 #define HAVE_NFS4_SET_DEBUG 1
20921 for ac_header in spkm3.h
20923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20926 $as_echo_n "checking for $ac_header... " >&6; }
20927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20928 $as_echo_n "(cached) " >&6
20930 ac_res=`eval 'as_val=${'$as_ac_Header'}
20931 $as_echo "$as_val"'`
20932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20933 $as_echo "$ac_res" >&6; }
20935 # Is the header compilable?
20936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20937 $as_echo_n "checking $ac_header usability... " >&6; }
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 $ac_includes_default
20945 #include <$ac_header>
20947 rm -f conftest.$ac_objext
20948 if { (ac_try="$ac_compile"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20954 $as_echo "$ac_try_echo") >&5
20955 (eval "$ac_compile") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest.$ac_objext; then
20965 ac_header_compiler=yes
20967 $as_echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_header_compiler=no
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20975 $as_echo "$ac_header_compiler" >&6; }
20977 # Is the header present?
20978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20979 $as_echo_n "checking $ac_header presence... " >&6; }
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 #include <$ac_header>
20988 if { (ac_try="$ac_cpp conftest.$ac_ext"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } >/dev/null && {
21002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21005 ac_header_preproc=yes
21007 $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_preproc=no
21013 rm -f conftest.err conftest.$ac_ext
21014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21015 $as_echo "$ac_header_preproc" >&6; }
21017 # So? What about this header?
21018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21024 ac_header_preproc=yes
21027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21030 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21034 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21040 ## ---------------------------------------- ##
21041 ## Report this to linux-nfs@vger.kernel.org ##
21042 ## ---------------------------------------- ##
21044 ) | sed "s/^/$as_me: WARNING: /" >&2
21047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 $as_echo_n "checking for $ac_header... " >&6; }
21049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21050 $as_echo_n "(cached) " >&6
21052 eval "$as_ac_Header=\$ac_header_preproc"
21054 ac_res=`eval 'as_val=${'$as_ac_Header'}
21055 $as_echo "$as_val"'`
21056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21057 $as_echo "$ac_res" >&6; }
21060 as_val=`eval 'as_val=${'$as_ac_Header'}
21061 $as_echo "$as_val"'`
21062 if test "x$as_val" = x""yes; then
21063 cat >>confdefs.h <<_ACEOF
21064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21068 { $as_echo "$as_me:$LINENO: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
21069 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21076 { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21077 $as_echo_n "checking for Kerberos v5... " >&6; }
21079 # Check whether --with-krb5 was given.
21080 if test "${with_krb5+set}" = set; then
21081 withval=$with_krb5; case "$withval" in
21086 krb5_with="$withval"
21093 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21094 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21096 if test -f $dir/bin/krb5-config; then
21097 K5CONFIG=$dir/bin/krb5-config
21098 elif test -f "/usr/kerberos/bin/krb5-config"; then
21099 K5CONFIG="/usr/kerberos/bin/krb5-config"
21100 elif test -f "/usr/lib/mit/bin/krb5-config"; then
21101 K5CONFIG="/usr/lib/mit/bin/krb5-config"
21103 if test "$K5CONFIG" != ""; then
21104 KRBCFLAGS=`$K5CONFIG --cflags`
21105 KRBLIBS=`$K5CONFIG --libs gssapi`
21106 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21108 cat >>confdefs.h <<_ACEOF
21109 #define KRB5_VERSION $K5VERS
21112 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21113 \( -f $dir/lib/libgssapi_krb5.a -o \
21114 -f $dir/lib64/libgssapi_krb5.a -o \
21115 -f $dir/lib64/libgssapi_krb5.so -o \
21116 -f $dir/lib/libgssapi_krb5.so \) ; then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_KRB5 1
21123 if test $K5VERS -le 131; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define USE_GSS_KRB5_CCACHE_NAME 1
21130 gssapi_lib=gssapi_krb5
21132 elif test \( -f $dir/include/heim_err.h -o\
21133 -f $dir/include/heimdal/heim_err.h \) -a \
21134 -f $dir/lib/libroken.a; then
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_HEIMDAL 1
21146 if test "x$KRBDIR" = "x"; then
21147 if test "x$krb5_with" = "x"; then
21148 { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21149 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21150 { (exit 1); exit 1; }; }
21152 { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21153 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21154 { (exit 1); exit 1; }; }
21157 { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
21158 $as_echo "$KRBDIR" >&6; }
21160 echo "The current KRBDIR is $KRBDIR"
21161 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
21162 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
21164 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
21167 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
21170 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21171 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21172 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
21173 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21174 $as_echo_n "(cached) " >&6
21176 ac_check_lib_save_LIBS=$LIBS
21177 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21191 char gss_krb5_export_lucid_sec_context ();
21195 return gss_krb5_export_lucid_sec_context ();
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21207 $as_echo "$ac_try_echo") >&5
21208 (eval "$ac_link") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext && {
21218 test "$cross_compiling" = yes ||
21219 $as_test_x conftest$ac_exeext
21221 eval "$as_ac_Lib=yes"
21223 $as_echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 eval "$as_ac_Lib=no"
21229 rm -rf conftest.dSYM
21230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21231 conftest$ac_exeext conftest.$ac_ext
21232 LIBS=$ac_check_lib_save_LIBS
21234 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21235 $as_echo "$as_val"'`
21236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21237 $as_echo "$ac_res" >&6; }
21238 as_val=`eval 'as_val=${'$as_ac_Lib'}
21239 $as_echo "$as_val"'`
21240 if test "x$as_val" = x""yes; then
21242 cat >>confdefs.h <<\_ACEOF
21243 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21248 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21249 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21250 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
21251 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21252 $as_echo_n "(cached) " >&6
21254 ac_check_lib_save_LIBS=$LIBS
21255 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21263 /* Override any GCC internal prototype to avoid an error.
21264 Use char because int might match the return type of a GCC
21265 builtin and then its argument prototype would still apply. */
21269 char gss_krb5_set_allowable_enctypes ();
21273 return gss_krb5_set_allowable_enctypes ();
21278 rm -f conftest.$ac_objext conftest$ac_exeext
21279 if { (ac_try="$ac_link"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21285 $as_echo "$ac_try_echo") >&5
21286 (eval "$ac_link") 2>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest$ac_exeext && {
21296 test "$cross_compiling" = yes ||
21297 $as_test_x conftest$ac_exeext
21299 eval "$as_ac_Lib=yes"
21301 $as_echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21304 eval "$as_ac_Lib=no"
21307 rm -rf conftest.dSYM
21308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21309 conftest$ac_exeext conftest.$ac_ext
21310 LIBS=$ac_check_lib_save_LIBS
21312 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21313 $as_echo "$as_val"'`
21314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21315 $as_echo "$ac_res" >&6; }
21316 as_val=`eval 'as_val=${'$as_ac_Lib'}
21317 $as_echo "$as_val"'`
21318 if test "x$as_val" = x""yes; then
21320 cat >>confdefs.h <<\_ACEOF
21321 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21326 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21327 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21328 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
21329 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21330 $as_echo_n "(cached) " >&6
21332 ac_check_lib_save_LIBS=$LIBS
21333 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21347 char gss_krb5_ccache_name ();
21351 return gss_krb5_ccache_name ();
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (ac_try="$ac_link"
21358 case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21363 $as_echo "$ac_try_echo") >&5
21364 (eval "$ac_link") 2>conftest.er1
21366 grep -v '^ *+' conftest.er1 >conftest.err
21368 cat conftest.err >&5
21369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } && {
21371 test -z "$ac_c_werror_flag" ||
21372 test ! -s conftest.err
21373 } && test -s conftest$ac_exeext && {
21374 test "$cross_compiling" = yes ||
21375 $as_test_x conftest$ac_exeext
21377 eval "$as_ac_Lib=yes"
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 eval "$as_ac_Lib=no"
21385 rm -rf conftest.dSYM
21386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21387 conftest$ac_exeext conftest.$ac_ext
21388 LIBS=$ac_check_lib_save_LIBS
21390 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21391 $as_echo "$as_val"'`
21392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21393 $as_echo "$ac_res" >&6; }
21394 as_val=`eval 'as_val=${'$as_ac_Lib'}
21395 $as_echo "$as_val"'`
21396 if test "x$as_val" = x""yes; then
21398 cat >>confdefs.h <<\_ACEOF
21399 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21405 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
21406 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
21407 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
21408 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21409 $as_echo_n "(cached) " >&6
21411 ac_check_lib_save_LIBS=$LIBS
21412 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21413 cat >conftest.$ac_ext <<_ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21426 char krb5_get_error_message ();
21430 return krb5_get_error_message ();
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21442 $as_echo "$ac_try_echo") >&5
21443 (eval "$ac_link") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest$ac_exeext && {
21453 test "$cross_compiling" = yes ||
21454 $as_test_x conftest$ac_exeext
21456 eval "$as_ac_Lib=yes"
21458 $as_echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 eval "$as_ac_Lib=no"
21464 rm -rf conftest.dSYM
21465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21466 conftest$ac_exeext conftest.$ac_ext
21467 LIBS=$ac_check_lib_save_LIBS
21469 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21470 $as_echo "$as_val"'`
21471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21472 $as_echo "$ac_res" >&6; }
21473 as_val=`eval 'as_val=${'$as_ac_Lib'}
21474 $as_echo "$as_val"'`
21475 if test "x$as_val" = x""yes; then
21477 cat >>confdefs.h <<\_ACEOF
21478 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
21484 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
21485 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
21486 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
21487 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21488 $as_echo_n "(cached) " >&6
21490 ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21492 cat >conftest.$ac_ext <<_ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21499 /* Override any GCC internal prototype to avoid an error.
21500 Use char because int might match the return type of a GCC
21501 builtin and then its argument prototype would still apply. */
21505 char krb5_get_init_creds_opt_set_addressless ();
21509 return krb5_get_init_creds_opt_set_addressless ();
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21521 $as_echo "$ac_try_echo") >&5
21522 (eval "$ac_link") 2>conftest.er1
21524 grep -v '^ *+' conftest.er1 >conftest.err
21526 cat conftest.err >&5
21527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && {
21529 test -z "$ac_c_werror_flag" ||
21530 test ! -s conftest.err
21531 } && test -s conftest$ac_exeext && {
21532 test "$cross_compiling" = yes ||
21533 $as_test_x conftest$ac_exeext
21535 eval "$as_ac_Lib=yes"
21537 $as_echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 eval "$as_ac_Lib=no"
21543 rm -rf conftest.dSYM
21544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21545 conftest$ac_exeext conftest.$ac_ext
21546 LIBS=$ac_check_lib_save_LIBS
21548 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21549 $as_echo "$as_val"'`
21550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21551 $as_echo "$ac_res" >&6; }
21552 as_val=`eval 'as_val=${'$as_ac_Lib'}
21553 $as_echo "$as_val"'`
21554 if test "x$as_val" = x""yes; then
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
21563 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21564 { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21565 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21578 if test "$enable_tirpc" = no; then
21580 { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21581 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
21582 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21583 $as_echo_n "(cached) " >&6
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lrpcsecgss $LIBS"
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21600 char authgss_create_default ();
21604 return authgss_create_default ();
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21616 $as_echo "$ac_try_echo") >&5
21617 (eval "$ac_link") 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } && {
21624 test -z "$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21626 } && test -s conftest$ac_exeext && {
21627 test "$cross_compiling" = yes ||
21628 $as_test_x conftest$ac_exeext
21630 ac_cv_lib_rpcsecgss_authgss_create_default=yes
21632 $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_cv_lib_rpcsecgss_authgss_create_default=no
21638 rm -rf conftest.dSYM
21639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21640 conftest$ac_exeext conftest.$ac_ext
21641 LIBS=$ac_check_lib_save_LIBS
21643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21644 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
21645 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
21648 { { $as_echo "$as_me:$LINENO: error: librpcsecgss not found." >&5
21649 $as_echo "$as_me: error: librpcsecgss not found." >&2;}
21650 { (exit 1); exit 1; }; }
21654 { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21655 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
21656 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21657 $as_echo_n "(cached) " >&6
21659 ac_check_lib_save_LIBS=$LIBS
21660 LIBS="-lrpcsecgss $LIBS"
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21668 /* Override any GCC internal prototype to avoid an error.
21669 Use char because int might match the return type of a GCC
21670 builtin and then its argument prototype would still apply. */
21674 char authgss_set_debug_level ();
21678 return authgss_set_debug_level ();
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21704 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715 LIBS=$ac_check_lib_save_LIBS
21717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21718 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
21719 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
21721 cat >>confdefs.h <<\_ACEOF
21722 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21736 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21737 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21738 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21739 $as_echo_n "(cached) " >&6
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21752 #ifndef AI_ADDRCONFIG
21753 (void) AI_ADDRCONFIG;
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21767 $as_echo "$ac_try_echo") >&5
21768 (eval "$ac_compile") 2>conftest.er1
21770 grep -v '^ *+' conftest.er1 >conftest.err
21772 cat conftest.err >&5
21773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } && {
21775 test -z "$ac_c_werror_flag" ||
21776 test ! -s conftest.err
21777 } && test -s conftest.$ac_objext; then
21778 ac_cv_have_decl_AI_ADDRCONFIG=yes
21780 $as_echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ac_cv_have_decl_AI_ADDRCONFIG=no
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21789 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21790 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21792 cat >>confdefs.h <<\_ACEOF
21793 #define HAVE_DECL_AI_ADDRCONFIG 1
21799 if test "$enable_ipv6" = yes; then
21801 if test "$enable_tirpc" = no; then
21802 { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires TIRPC support." >&5
21803 $as_echo "$as_me: error: '--enable-ipv6' requires TIRPC support." >&2;}
21804 { (exit 1); exit 1; }; }
21810 for ac_func in getifaddrs getnameinfo bindresvport_sa
21812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21813 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21814 $as_echo_n "checking for $ac_func... " >&6; }
21815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21816 $as_echo_n "(cached) " >&6
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21826 #define $ac_func innocuous_$ac_func
21828 /* System header to define __stub macros and hopefully few prototypes,
21829 which can conflict with char $ac_func (); below.
21830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21831 <limits.h> exists even on freestanding compilers. */
21834 # include <limits.h>
21836 # include <assert.h>
21841 /* Override any GCC internal prototype to avoid an error.
21842 Use char because int might match the return type of a GCC
21843 builtin and then its argument prototype would still apply. */
21848 /* The GNU C library defines this for functions which it implements
21849 to always fail with ENOSYS. Some functions are actually named
21850 something starting with __ and the normal name is an alias. */
21851 #if defined __stub_$ac_func || defined __stub___$ac_func
21858 return $ac_func ();
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (ac_try="$ac_link"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870 $as_echo "$ac_try_echo") >&5
21871 (eval "$ac_link") 2>conftest.er1
21873 grep -v '^ *+' conftest.er1 >conftest.err
21875 cat conftest.err >&5
21876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && {
21878 test -z "$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 } && test -s conftest$ac_exeext && {
21881 test "$cross_compiling" = yes ||
21882 $as_test_x conftest$ac_exeext
21884 eval "$as_ac_var=yes"
21886 $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 eval "$as_ac_var=no"
21892 rm -rf conftest.dSYM
21893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21894 conftest$ac_exeext conftest.$ac_ext
21896 ac_res=`eval 'as_val=${'$as_ac_var'}
21897 $as_echo "$as_val"'`
21898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21899 $as_echo "$ac_res" >&6; }
21900 as_val=`eval 'as_val=${'$as_ac_var'}
21901 $as_echo "$as_val"'`
21902 if test "x$as_val" = x""yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21908 { { $as_echo "$as_me:$LINENO: error: Missing library functions needed for IPv6." >&5
21909 $as_echo "$as_me: error: Missing library functions needed for IPv6." >&2;}
21910 { (exit 1); exit 1; }; }
21915 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21916 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21917 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21918 $as_echo_n "(cached) " >&6
21920 cat >conftest.$ac_ext <<_ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h. */
21931 #ifndef AI_ADDRCONFIG
21932 (void) AI_ADDRCONFIG;
21939 rm -f conftest.$ac_objext
21940 if { (ac_try="$ac_compile"
21941 case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21946 $as_echo "$ac_try_echo") >&5
21947 (eval "$ac_compile") 2>conftest.er1
21949 grep -v '^ *+' conftest.er1 >conftest.err
21951 cat conftest.err >&5
21952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } && {
21954 test -z "$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 } && test -s conftest.$ac_objext; then
21957 ac_cv_have_decl_AI_ADDRCONFIG=yes
21959 $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_cv_have_decl_AI_ADDRCONFIG=no
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21968 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21969 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21972 { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
21973 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
21974 { (exit 1); exit 1; }; }
22005 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22006 malloc.h memory.h netdb.h netinet/in.h paths.h \
22007 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22008 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22009 syslog.h unistd.h com_err.h et/com_err.h \
22012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22015 $as_echo_n "checking for $ac_header... " >&6; }
22016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22017 $as_echo_n "(cached) " >&6
22019 ac_res=`eval 'as_val=${'$as_ac_Header'}
22020 $as_echo "$as_val"'`
22021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22022 $as_echo "$ac_res" >&6; }
22024 # Is the header compilable?
22025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22026 $as_echo_n "checking $ac_header usability... " >&6; }
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 $ac_includes_default
22034 #include <$ac_header>
22036 rm -f conftest.$ac_objext
22037 if { (ac_try="$ac_compile"
22038 case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22043 $as_echo "$ac_try_echo") >&5
22044 (eval "$ac_compile") 2>conftest.er1
22046 grep -v '^ *+' conftest.er1 >conftest.err
22048 cat conftest.err >&5
22049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } && {
22051 test -z "$ac_c_werror_flag" ||
22052 test ! -s conftest.err
22053 } && test -s conftest.$ac_objext; then
22054 ac_header_compiler=yes
22056 $as_echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22059 ac_header_compiler=no
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22064 $as_echo "$ac_header_compiler" >&6; }
22066 # Is the header present?
22067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22068 $as_echo_n "checking $ac_header presence... " >&6; }
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 #include <$ac_header>
22077 if { (ac_try="$ac_cpp conftest.$ac_ext"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22083 $as_echo "$ac_try_echo") >&5
22084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } >/dev/null && {
22091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22094 ac_header_preproc=yes
22096 $as_echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_preproc=no
22102 rm -f conftest.err conftest.$ac_ext
22103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22104 $as_echo "$ac_header_preproc" >&6; }
22106 # So? What about this header?
22107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22113 ac_header_preproc=yes
22116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22119 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22123 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22129 ## ---------------------------------------- ##
22130 ## Report this to linux-nfs@vger.kernel.org ##
22131 ## ---------------------------------------- ##
22133 ) | sed "s/^/$as_me: WARNING: /" >&2
22136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22137 $as_echo_n "checking for $ac_header... " >&6; }
22138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22139 $as_echo_n "(cached) " >&6
22141 eval "$as_ac_Header=\$ac_header_preproc"
22143 ac_res=`eval 'as_val=${'$as_ac_Header'}
22144 $as_echo "$as_val"'`
22145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22146 $as_echo "$ac_res" >&6; }
22149 as_val=`eval 'as_val=${'$as_ac_Header'}
22150 $as_echo "$as_val"'`
22151 if test "x$as_val" = x""yes; then
22152 cat >>confdefs.h <<_ACEOF
22153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22161 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22162 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22163 if test "${ac_cv_c_const+set}" = set; then
22164 $as_echo_n "(cached) " >&6
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22176 /* FIXME: Include the comments suggested by Paul. */
22177 #ifndef __cplusplus
22178 /* Ultrix mips cc rejects this. */
22179 typedef int charset[2];
22181 /* SunOS 4.1.1 cc rejects this. */
22182 char const *const *pcpcc;
22184 /* NEC SVR4.0.2 mips cc rejects this. */
22185 struct point {int x, y;};
22186 static struct point const zero = {0,0};
22187 /* AIX XL C 1.02.0.0 rejects this.
22188 It does not let you subtract one const X* pointer from another in
22189 an arm of an if-expression whose if-part is not a constant
22191 const char *g = "string";
22192 pcpcc = &g + (g ? g-g : 0);
22193 /* HPUX 7.0 cc rejects these. */
22195 ppc = (char**) pcpcc;
22196 pcpcc = (char const *const *) ppc;
22197 { /* SCO 3.2v4 cc rejects this. */
22199 char const *s = 0 ? (char *) 0 : (char const *) 0;
22204 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22205 int x[] = {25, 17};
22206 const int *foo = &x[0];
22209 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22210 typedef const int *iptr;
22214 { /* AIX XL C 1.02.0.0 rejects this saying
22215 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22216 struct s { int j; const int *ap[3]; };
22217 struct s *b; b->j = 5;
22219 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22220 const int foo = 10;
22221 if (!foo) return 0;
22223 return !cs[0] && !zero.x;
22230 rm -f conftest.$ac_objext
22231 if { (ac_try="$ac_compile"
22232 case "(($ac_try" in
22233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234 *) ac_try_echo=$ac_try;;
22236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22237 $as_echo "$ac_try_echo") >&5
22238 (eval "$ac_compile") 2>conftest.er1
22240 grep -v '^ *+' conftest.er1 >conftest.err
22242 cat conftest.err >&5
22243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && {
22245 test -z "$ac_c_werror_flag" ||
22246 test ! -s conftest.err
22247 } && test -s conftest.$ac_objext; then
22250 $as_echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22259 $as_echo "$ac_cv_c_const" >&6; }
22260 if test $ac_cv_c_const = no; then
22262 cat >>confdefs.h <<\_ACEOF
22268 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22269 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22270 if test "${ac_cv_type_uid_t+set}" = set; then
22271 $as_echo_n "(cached) " >&6
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <sys/types.h>
22282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22283 $EGREP "uid_t" >/dev/null 2>&1; then
22284 ac_cv_type_uid_t=yes
22286 ac_cv_type_uid_t=no
22291 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22292 $as_echo "$ac_cv_type_uid_t" >&6; }
22293 if test $ac_cv_type_uid_t = no; then
22295 cat >>confdefs.h <<\_ACEOF
22300 cat >>confdefs.h <<\_ACEOF
22306 { $as_echo "$as_me:$LINENO: checking for inline" >&5
22307 $as_echo_n "checking for inline... " >&6; }
22308 if test "${ac_cv_c_inline+set}" = set; then
22309 $as_echo_n "(cached) " >&6
22312 for ac_kw in inline __inline__ __inline; do
22313 cat >conftest.$ac_ext <<_ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 #ifndef __cplusplus
22321 static $ac_kw foo_t static_foo () {return 0; }
22322 $ac_kw foo_t foo () {return 0; }
22326 rm -f conftest.$ac_objext
22327 if { (ac_try="$ac_compile"
22328 case "(($ac_try" in
22329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330 *) ac_try_echo=$ac_try;;
22332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22333 $as_echo "$ac_try_echo") >&5
22334 (eval "$ac_compile") 2>conftest.er1
22336 grep -v '^ *+' conftest.er1 >conftest.err
22338 cat conftest.err >&5
22339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } && {
22341 test -z "$ac_c_werror_flag" ||
22342 test ! -s conftest.err
22343 } && test -s conftest.$ac_objext; then
22344 ac_cv_c_inline=$ac_kw
22346 $as_echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353 test "$ac_cv_c_inline" != no && break
22357 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22358 $as_echo "$ac_cv_c_inline" >&6; }
22361 case $ac_cv_c_inline in
22364 case $ac_cv_c_inline in
22366 *) ac_val=$ac_cv_c_inline;;
22368 cat >>confdefs.h <<_ACEOF
22369 #ifndef __cplusplus
22370 #define inline $ac_val
22376 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
22377 $as_echo_n "checking for off_t... " >&6; }
22378 if test "${ac_cv_type_off_t+set}" = set; then
22379 $as_echo_n "(cached) " >&6
22381 ac_cv_type_off_t=no
22382 cat >conftest.$ac_ext <<_ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22388 $ac_includes_default
22392 if (sizeof (off_t))
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22405 $as_echo "$ac_try_echo") >&5
22406 (eval "$ac_compile") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest.$ac_objext; then
22416 cat >conftest.$ac_ext <<_ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 $ac_includes_default
22426 if (sizeof ((off_t)))
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22439 $as_echo "$ac_try_echo") >&5
22440 (eval "$ac_compile") 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest.$ac_objext; then
22452 $as_echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 ac_cv_type_off_t=yes
22458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 $as_echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22469 $as_echo "$ac_cv_type_off_t" >&6; }
22470 if test "x$ac_cv_type_off_t" = x""yes; then
22474 cat >>confdefs.h <<_ACEOF
22475 #define off_t long int
22480 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
22481 $as_echo_n "checking for pid_t... " >&6; }
22482 if test "${ac_cv_type_pid_t+set}" = set; then
22483 $as_echo_n "(cached) " >&6
22485 ac_cv_type_pid_t=no
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 $ac_includes_default
22496 if (sizeof (pid_t))
22502 rm -f conftest.$ac_objext
22503 if { (ac_try="$ac_compile"
22504 case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22509 $as_echo "$ac_try_echo") >&5
22510 (eval "$ac_compile") 2>conftest.er1
22512 grep -v '^ *+' conftest.er1 >conftest.err
22514 cat conftest.err >&5
22515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } && {
22517 test -z "$ac_c_werror_flag" ||
22518 test ! -s conftest.err
22519 } && test -s conftest.$ac_objext; then
22520 cat >conftest.$ac_ext <<_ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22530 if (sizeof ((pid_t)))
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22543 $as_echo "$ac_try_echo") >&5
22544 (eval "$ac_compile") 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest.$ac_objext; then
22556 $as_echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_cv_type_pid_t=yes
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 $as_echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22573 $as_echo "$ac_cv_type_pid_t" >&6; }
22574 if test "x$ac_cv_type_pid_t" = x""yes; then
22578 cat >>confdefs.h <<_ACEOF
22584 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
22585 $as_echo_n "checking for size_t... " >&6; }
22586 if test "${ac_cv_type_size_t+set}" = set; then
22587 $as_echo_n "(cached) " >&6
22589 ac_cv_type_size_t=no
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 $ac_includes_default
22600 if (sizeof (size_t))
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22613 $as_echo "$ac_try_echo") >&5
22614 (eval "$ac_compile") 2>conftest.er1
22616 grep -v '^ *+' conftest.er1 >conftest.err
22618 cat conftest.err >&5
22619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } && {
22621 test -z "$ac_c_werror_flag" ||
22622 test ! -s conftest.err
22623 } && test -s conftest.$ac_objext; then
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22630 $ac_includes_default
22634 if (sizeof ((size_t)))
22640 rm -f conftest.$ac_objext
22641 if { (ac_try="$ac_compile"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22647 $as_echo "$ac_try_echo") >&5
22648 (eval "$ac_compile") 2>conftest.er1
22650 grep -v '^ *+' conftest.er1 >conftest.err
22652 cat conftest.err >&5
22653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest.$ac_objext; then
22660 $as_echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22663 ac_cv_type_size_t=yes
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668 $as_echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22677 $as_echo "$ac_cv_type_size_t" >&6; }
22678 if test "x$ac_cv_type_size_t" = x""yes; then
22682 cat >>confdefs.h <<_ACEOF
22683 #define size_t unsigned int
22688 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22689 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22690 if test "${ac_cv_header_time+set}" = set; then
22691 $as_echo_n "(cached) " >&6
22693 cat >conftest.$ac_ext <<_ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h. */
22699 #include <sys/types.h>
22700 #include <sys/time.h>
22706 if ((struct tm *) 0)
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22719 $as_echo "$ac_try_echo") >&5
22720 (eval "$ac_compile") 2>conftest.er1
22722 grep -v '^ *+' conftest.er1 >conftest.err
22724 cat conftest.err >&5
22725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } && {
22727 test -z "$ac_c_werror_flag" ||
22728 test ! -s conftest.err
22729 } && test -s conftest.$ac_objext; then
22730 ac_cv_header_time=yes
22732 $as_echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ac_cv_header_time=no
22738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22741 $as_echo "$ac_cv_header_time" >&6; }
22742 if test $ac_cv_header_time = yes; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define TIME_WITH_SYS_TIME 1
22750 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22751 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22752 if test "${ac_cv_struct_tm+set}" = set; then
22753 $as_echo_n "(cached) " >&6
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 #include <sys/types.h>
22768 int *p = &tm.tm_sec;
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22781 $as_echo "$ac_try_echo") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22784 grep -v '^ *+' conftest.er1 >conftest.err
22786 cat conftest.err >&5
22787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 ac_cv_struct_tm=time.h
22794 $as_echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 ac_cv_struct_tm=sys/time.h
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22803 $as_echo "$ac_cv_struct_tm" >&6; }
22804 if test $ac_cv_struct_tm = sys/time.h; then
22806 cat >>confdefs.h <<\_ACEOF
22807 #define TM_IN_SYS_TIME 1
22813 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22814 # for constant arguments. Useless!
22815 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
22816 $as_echo_n "checking for working alloca.h... " >&6; }
22817 if test "${ac_cv_working_alloca_h+set}" = set; then
22818 $as_echo_n "(cached) " >&6
22820 cat >conftest.$ac_ext <<_ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 #include <alloca.h>
22830 char *p = (char *) alloca (2 * sizeof (int));
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (ac_try="$ac_link"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844 (eval "$ac_link") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest$ac_exeext && {
22854 test "$cross_compiling" = yes ||
22855 $as_test_x conftest$ac_exeext
22857 ac_cv_working_alloca_h=yes
22859 $as_echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22862 ac_cv_working_alloca_h=no
22865 rm -rf conftest.dSYM
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867 conftest$ac_exeext conftest.$ac_ext
22869 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22870 $as_echo "$ac_cv_working_alloca_h" >&6; }
22871 if test $ac_cv_working_alloca_h = yes; then
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_ALLOCA_H 1
22879 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
22880 $as_echo_n "checking for alloca... " >&6; }
22881 if test "${ac_cv_func_alloca_works+set}" = set; then
22882 $as_echo_n "(cached) " >&6
22884 cat >conftest.$ac_ext <<_ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22891 # define alloca __builtin_alloca
22894 # include <malloc.h>
22895 # define alloca _alloca
22897 # ifdef HAVE_ALLOCA_H
22898 # include <alloca.h>
22903 # ifndef alloca /* predefined by HP cc +Olibcalls */
22914 char *p = (char *) alloca (1);
22920 rm -f conftest.$ac_objext conftest$ac_exeext
22921 if { (ac_try="$ac_link"
22922 case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22927 $as_echo "$ac_try_echo") >&5
22928 (eval "$ac_link") 2>conftest.er1
22930 grep -v '^ *+' conftest.er1 >conftest.err
22932 cat conftest.err >&5
22933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } && {
22935 test -z "$ac_c_werror_flag" ||
22936 test ! -s conftest.err
22937 } && test -s conftest$ac_exeext && {
22938 test "$cross_compiling" = yes ||
22939 $as_test_x conftest$ac_exeext
22941 ac_cv_func_alloca_works=yes
22943 $as_echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 ac_cv_func_alloca_works=no
22949 rm -rf conftest.dSYM
22950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22951 conftest$ac_exeext conftest.$ac_ext
22953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22954 $as_echo "$ac_cv_func_alloca_works" >&6; }
22956 if test $ac_cv_func_alloca_works = yes; then
22958 cat >>confdefs.h <<\_ACEOF
22959 #define HAVE_ALLOCA 1
22963 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22964 # that cause trouble. Some versions do not even contain alloca or
22965 # contain a buggy version. If you still want to use their alloca,
22966 # use ar to extract alloca.o from them instead of compiling alloca.c.
22968 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22970 cat >>confdefs.h <<\_ACEOF
22975 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22976 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22977 if test "${ac_cv_os_cray+set}" = set; then
22978 $as_echo_n "(cached) " >&6
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 #if defined CRAY && ! defined CRAY2
22993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22994 $EGREP "webecray" >/dev/null 2>&1; then
23002 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23003 $as_echo "$ac_cv_os_cray" >&6; }
23004 if test $ac_cv_os_cray = yes; then
23005 for ac_func in _getb67 GETB67 getb67; do
23006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23008 $as_echo_n "checking for $ac_func... " >&6; }
23009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23010 $as_echo_n "(cached) " >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23020 #define $ac_func innocuous_$ac_func
23022 /* System header to define __stub macros and hopefully few prototypes,
23023 which can conflict with char $ac_func (); below.
23024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23025 <limits.h> exists even on freestanding compilers. */
23028 # include <limits.h>
23030 # include <assert.h>
23035 /* Override any GCC internal prototype to avoid an error.
23036 Use char because int might match the return type of a GCC
23037 builtin and then its argument prototype would still apply. */
23042 /* The GNU C library defines this for functions which it implements
23043 to always fail with ENOSYS. Some functions are actually named
23044 something starting with __ and the normal name is an alias. */
23045 #if defined __stub_$ac_func || defined __stub___$ac_func
23052 return $ac_func ();
23057 rm -f conftest.$ac_objext conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23064 $as_echo "$ac_try_echo") >&5
23065 (eval "$ac_link") 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest$ac_exeext && {
23075 test "$cross_compiling" = yes ||
23076 $as_test_x conftest$ac_exeext
23078 eval "$as_ac_var=yes"
23080 $as_echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 eval "$as_ac_var=no"
23086 rm -rf conftest.dSYM
23087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23088 conftest$ac_exeext conftest.$ac_ext
23090 ac_res=`eval 'as_val=${'$as_ac_var'}
23091 $as_echo "$as_val"'`
23092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23093 $as_echo "$ac_res" >&6; }
23094 as_val=`eval 'as_val=${'$as_ac_var'}
23095 $as_echo "$as_val"'`
23096 if test "x$as_val" = x""yes; then
23098 cat >>confdefs.h <<_ACEOF
23099 #define CRAY_STACKSEG_END $ac_func
23108 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23109 $as_echo_n "checking stack direction for C alloca... " >&6; }
23110 if test "${ac_cv_c_stack_direction+set}" = set; then
23111 $as_echo_n "(cached) " >&6
23113 if test "$cross_compiling" = yes; then
23114 ac_cv_c_stack_direction=0
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 $ac_includes_default
23124 find_stack_direction ()
23126 static char *addr = 0;
23131 return find_stack_direction ();
23134 return (&dummy > addr) ? 1 : -1;
23140 return find_stack_direction () < 0;
23143 rm -f conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23150 $as_echo "$ac_try_echo") >&5
23151 (eval "$ac_link") 2>&5
23153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23155 { (case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23160 $as_echo "$ac_try_echo") >&5
23161 (eval "$ac_try") 2>&5
23163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 ac_cv_c_stack_direction=1
23167 $as_echo "$as_me: program exited with status $ac_status" >&5
23168 $as_echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ( exit $ac_status )
23172 ac_cv_c_stack_direction=-1
23174 rm -rf conftest.dSYM
23175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23180 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23181 $as_echo "$ac_cv_c_stack_direction" >&6; }
23183 cat >>confdefs.h <<_ACEOF
23184 #define STACK_DIRECTION $ac_cv_c_stack_direction
23195 ac_header_dirent=no
23196 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23197 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23198 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23199 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23201 $as_echo_n "(cached) " >&6
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #include <sys/types.h>
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 eval "$as_ac_Header=yes"
23241 $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 eval "$as_ac_Header=no"
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 ac_res=`eval 'as_val=${'$as_ac_Header'}
23250 $as_echo "$as_val"'`
23251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23252 $as_echo "$ac_res" >&6; }
23253 as_val=`eval 'as_val=${'$as_ac_Header'}
23254 $as_echo "$as_val"'`
23255 if test "x$as_val" = x""yes; then
23256 cat >>confdefs.h <<_ACEOF
23257 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23260 ac_header_dirent=$ac_hdr; break
23264 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23265 if test $ac_header_dirent = dirent.h; then
23266 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23267 $as_echo_n "checking for library containing opendir... " >&6; }
23268 if test "${ac_cv_search_opendir+set}" = set; then
23269 $as_echo_n "(cached) " >&6
23271 ac_func_search_save_LIBS=$LIBS
23272 cat >conftest.$ac_ext <<_ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23279 /* Override any GCC internal prototype to avoid an error.
23280 Use char because int might match the return type of a GCC
23281 builtin and then its argument prototype would still apply. */
23294 for ac_lib in '' dir; do
23295 if test -z "$ac_lib"; then
23296 ac_res="none required"
23299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23301 rm -f conftest.$ac_objext conftest$ac_exeext
23302 if { (ac_try="$ac_link"
23303 case "(($ac_try" in
23304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305 *) ac_try_echo=$ac_try;;
23307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23308 $as_echo "$ac_try_echo") >&5
23309 (eval "$ac_link") 2>conftest.er1
23311 grep -v '^ *+' conftest.er1 >conftest.err
23313 cat conftest.err >&5
23314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && {
23316 test -z "$ac_c_werror_flag" ||
23317 test ! -s conftest.err
23318 } && test -s conftest$ac_exeext && {
23319 test "$cross_compiling" = yes ||
23320 $as_test_x conftest$ac_exeext
23322 ac_cv_search_opendir=$ac_res
23324 $as_echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23330 rm -rf conftest.dSYM
23331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333 if test "${ac_cv_search_opendir+set}" = set; then
23337 if test "${ac_cv_search_opendir+set}" = set; then
23340 ac_cv_search_opendir=no
23342 rm conftest.$ac_ext
23343 LIBS=$ac_func_search_save_LIBS
23345 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23346 $as_echo "$ac_cv_search_opendir" >&6; }
23347 ac_res=$ac_cv_search_opendir
23348 if test "$ac_res" != no; then
23349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23354 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23355 $as_echo_n "checking for library containing opendir... " >&6; }
23356 if test "${ac_cv_search_opendir+set}" = set; then
23357 $as_echo_n "(cached) " >&6
23359 ac_func_search_save_LIBS=$LIBS
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23367 /* Override any GCC internal prototype to avoid an error.
23368 Use char because int might match the return type of a GCC
23369 builtin and then its argument prototype would still apply. */
23382 for ac_lib in '' x; do
23383 if test -z "$ac_lib"; then
23384 ac_res="none required"
23387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23389 rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397 (eval "$ac_link") 2>conftest.er1
23399 grep -v '^ *+' conftest.er1 >conftest.err
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest$ac_exeext && {
23407 test "$cross_compiling" = yes ||
23408 $as_test_x conftest$ac_exeext
23410 ac_cv_search_opendir=$ac_res
23412 $as_echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23418 rm -rf conftest.dSYM
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23421 if test "${ac_cv_search_opendir+set}" = set; then
23425 if test "${ac_cv_search_opendir+set}" = set; then
23428 ac_cv_search_opendir=no
23430 rm conftest.$ac_ext
23431 LIBS=$ac_func_search_save_LIBS
23433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23434 $as_echo "$ac_cv_search_opendir" >&6; }
23435 ac_res=$ac_cv_search_opendir
23436 if test "$ac_res" != no; then
23437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23443 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23444 $as_echo_n "checking whether closedir returns void... " >&6; }
23445 if test "${ac_cv_func_closedir_void+set}" = set; then
23446 $as_echo_n "(cached) " >&6
23448 if test "$cross_compiling" = yes; then
23449 ac_cv_func_closedir_void=yes
23451 cat >conftest.$ac_ext <<_ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 $ac_includes_default
23458 #include <$ac_header_dirent>
23459 #ifndef __cplusplus
23466 return closedir (opendir (".")) != 0;
23471 rm -f conftest$ac_exeext
23472 if { (ac_try="$ac_link"
23473 case "(($ac_try" in
23474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23478 $as_echo "$ac_try_echo") >&5
23479 (eval "$ac_link") 2>&5
23481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483 { (case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23488 $as_echo "$ac_try_echo") >&5
23489 (eval "$ac_try") 2>&5
23491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; }; then
23493 ac_cv_func_closedir_void=no
23495 $as_echo "$as_me: program exited with status $ac_status" >&5
23496 $as_echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23499 ( exit $ac_status )
23500 ac_cv_func_closedir_void=yes
23502 rm -rf conftest.dSYM
23503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23508 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23509 $as_echo "$ac_cv_func_closedir_void" >&6; }
23510 if test $ac_cv_func_closedir_void = yes; then
23512 cat >>confdefs.h <<\_ACEOF
23513 #define CLOSEDIR_VOID 1
23518 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
23519 $as_echo_n "checking for error_at_line... " >&6; }
23520 if test "${ac_cv_lib_error_at_line+set}" = set; then
23521 $as_echo_n "(cached) " >&6
23523 cat >conftest.$ac_ext <<_ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h. */
23533 error_at_line (0, 0, "", 0, "an error occurred");
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23545 $as_echo "$ac_try_echo") >&5
23546 (eval "$ac_link") 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && {
23553 test -z "$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23555 } && test -s conftest$ac_exeext && {
23556 test "$cross_compiling" = yes ||
23557 $as_test_x conftest$ac_exeext
23559 ac_cv_lib_error_at_line=yes
23561 $as_echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ac_cv_lib_error_at_line=no
23567 rm -rf conftest.dSYM
23568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23569 conftest$ac_exeext conftest.$ac_ext
23571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23572 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23573 if test $ac_cv_lib_error_at_line = no; then
23574 case " $LIBOBJS " in
23575 *" error.$ac_objext "* ) ;;
23576 *) LIBOBJS="$LIBOBJS error.$ac_objext"
23583 for ac_header in vfork.h
23585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23588 $as_echo_n "checking for $ac_header... " >&6; }
23589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23590 $as_echo_n "(cached) " >&6
23592 ac_res=`eval 'as_val=${'$as_ac_Header'}
23593 $as_echo "$as_val"'`
23594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23595 $as_echo "$ac_res" >&6; }
23597 # Is the header compilable?
23598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23599 $as_echo_n "checking $ac_header usability... " >&6; }
23600 cat >conftest.$ac_ext <<_ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23606 $ac_includes_default
23607 #include <$ac_header>
23609 rm -f conftest.$ac_objext
23610 if { (ac_try="$ac_compile"
23611 case "(($ac_try" in
23612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613 *) ac_try_echo=$ac_try;;
23615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23616 $as_echo "$ac_try_echo") >&5
23617 (eval "$ac_compile") 2>conftest.er1
23619 grep -v '^ *+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && {
23624 test -z "$ac_c_werror_flag" ||
23625 test ! -s conftest.err
23626 } && test -s conftest.$ac_objext; then
23627 ac_header_compiler=yes
23629 $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632 ac_header_compiler=no
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23637 $as_echo "$ac_header_compiler" >&6; }
23639 # Is the header present?
23640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23641 $as_echo_n "checking $ac_header presence... " >&6; }
23642 cat >conftest.$ac_ext <<_ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23648 #include <$ac_header>
23650 if { (ac_try="$ac_cpp conftest.$ac_ext"
23651 case "(($ac_try" in
23652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23656 $as_echo "$ac_try_echo") >&5
23657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23659 grep -v '^ *+' conftest.er1 >conftest.err
23661 cat conftest.err >&5
23662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } >/dev/null && {
23664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23665 test ! -s conftest.err
23667 ac_header_preproc=yes
23669 $as_echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 ac_header_preproc=no
23675 rm -f conftest.err conftest.$ac_ext
23676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23677 $as_echo "$ac_header_preproc" >&6; }
23679 # So? What about this header?
23680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23686 ac_header_preproc=yes
23689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23692 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23696 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23702 ## ---------------------------------------- ##
23703 ## Report this to linux-nfs@vger.kernel.org ##
23704 ## ---------------------------------------- ##
23706 ) | sed "s/^/$as_me: WARNING: /" >&2
23709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23710 $as_echo_n "checking for $ac_header... " >&6; }
23711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23712 $as_echo_n "(cached) " >&6
23714 eval "$as_ac_Header=\$ac_header_preproc"
23716 ac_res=`eval 'as_val=${'$as_ac_Header'}
23717 $as_echo "$as_val"'`
23718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23719 $as_echo "$ac_res" >&6; }
23722 as_val=`eval 'as_val=${'$as_ac_Header'}
23723 $as_echo "$as_val"'`
23724 if test "x$as_val" = x""yes; then
23725 cat >>confdefs.h <<_ACEOF
23726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23735 for ac_func in fork vfork
23737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23739 $as_echo_n "checking for $ac_func... " >&6; }
23740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23741 $as_echo_n "(cached) " >&6
23743 cat >conftest.$ac_ext <<_ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23751 #define $ac_func innocuous_$ac_func
23753 /* System header to define __stub macros and hopefully few prototypes,
23754 which can conflict with char $ac_func (); below.
23755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23756 <limits.h> exists even on freestanding compilers. */
23759 # include <limits.h>
23761 # include <assert.h>
23766 /* Override any GCC internal prototype to avoid an error.
23767 Use char because int might match the return type of a GCC
23768 builtin and then its argument prototype would still apply. */
23773 /* The GNU C library defines this for functions which it implements
23774 to always fail with ENOSYS. Some functions are actually named
23775 something starting with __ and the normal name is an alias. */
23776 #if defined __stub_$ac_func || defined __stub___$ac_func
23783 return $ac_func ();
23788 rm -f conftest.$ac_objext conftest$ac_exeext
23789 if { (ac_try="$ac_link"
23790 case "(($ac_try" in
23791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792 *) ac_try_echo=$ac_try;;
23794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795 $as_echo "$ac_try_echo") >&5
23796 (eval "$ac_link") 2>conftest.er1
23798 grep -v '^ *+' conftest.er1 >conftest.err
23800 cat conftest.err >&5
23801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } && {
23803 test -z "$ac_c_werror_flag" ||
23804 test ! -s conftest.err
23805 } && test -s conftest$ac_exeext && {
23806 test "$cross_compiling" = yes ||
23807 $as_test_x conftest$ac_exeext
23809 eval "$as_ac_var=yes"
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 eval "$as_ac_var=no"
23817 rm -rf conftest.dSYM
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819 conftest$ac_exeext conftest.$ac_ext
23821 ac_res=`eval 'as_val=${'$as_ac_var'}
23822 $as_echo "$as_val"'`
23823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23824 $as_echo "$ac_res" >&6; }
23825 as_val=`eval 'as_val=${'$as_ac_var'}
23826 $as_echo "$as_val"'`
23827 if test "x$as_val" = x""yes; then
23828 cat >>confdefs.h <<_ACEOF
23829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23835 if test "x$ac_cv_func_fork" = xyes; then
23836 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
23837 $as_echo_n "checking for working fork... " >&6; }
23838 if test "${ac_cv_func_fork_works+set}" = set; then
23839 $as_echo_n "(cached) " >&6
23841 if test "$cross_compiling" = yes; then
23842 ac_cv_func_fork_works=cross
23844 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 $ac_includes_default
23855 /* By Ruediger Kuhlmann. */
23856 return fork () < 0;
23862 rm -f conftest$ac_exeext
23863 if { (ac_try="$ac_link"
23864 case "(($ac_try" in
23865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23866 *) ac_try_echo=$ac_try;;
23868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23869 $as_echo "$ac_try_echo") >&5
23870 (eval "$ac_link") 2>&5
23872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23874 { (case "(($ac_try" in
23875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876 *) ac_try_echo=$ac_try;;
23878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23879 $as_echo "$ac_try_echo") >&5
23880 (eval "$ac_try") 2>&5
23882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; }; then
23884 ac_cv_func_fork_works=yes
23886 $as_echo "$as_me: program exited with status $ac_status" >&5
23887 $as_echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ( exit $ac_status )
23891 ac_cv_func_fork_works=no
23893 rm -rf conftest.dSYM
23894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23899 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23900 $as_echo "$ac_cv_func_fork_works" >&6; }
23903 ac_cv_func_fork_works=$ac_cv_func_fork
23905 if test "x$ac_cv_func_fork_works" = xcross; then
23907 *-*-amigaos* | *-*-msdosdjgpp*)
23908 # Override, as these systems have only a dummy fork() stub
23909 ac_cv_func_fork_works=no
23912 ac_cv_func_fork_works=yes
23915 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23916 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23918 ac_cv_func_vfork_works=$ac_cv_func_vfork
23919 if test "x$ac_cv_func_vfork" = xyes; then
23920 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
23921 $as_echo_n "checking for working vfork... " >&6; }
23922 if test "${ac_cv_func_vfork_works+set}" = set; then
23923 $as_echo_n "(cached) " >&6
23925 if test "$cross_compiling" = yes; then
23926 ac_cv_func_vfork_works=cross
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 /* Thanks to Paul Eggert for this test. */
23935 $ac_includes_default
23936 #include <sys/wait.h>
23937 #ifdef HAVE_VFORK_H
23938 # include <vfork.h>
23940 /* On some sparc systems, changes by the child to local and incoming
23941 argument registers are propagated back to the parent. The compiler
23942 is told about this with #include <vfork.h>, but some compilers
23943 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23944 static variable whose address is put into a register that is
23945 clobbered by the vfork. */
23948 sparc_address_test (int arg)
23950 sparc_address_test (arg) int arg;
23953 static pid_t child;
23971 pid_t parent = getpid ();
23974 sparc_address_test (0);
23979 /* Here is another test for sparc vfork register problems. This
23980 test uses lots of local variables, at least as many local
23981 variables as main has allocated so far including compiler
23982 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23983 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23984 reuse the register of parent for one of the local variables,
23985 since it will think that parent can't possibly be used any more
23986 in this routine. Assigning to the local variable will thus
23987 munge parent in the parent process. */
23989 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23990 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23991 /* Convince the compiler that p..p7 are live; otherwise, it might
23992 use the same hardware register for all 8 local variables. */
23993 if (p != p1 || p != p2 || p != p3 || p != p4
23994 || p != p5 || p != p6 || p != p7)
23997 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23998 from child file descriptors. If the child closes a descriptor
23999 before it execs or exits, this munges the parent's descriptor
24000 as well. Test for this by closing stdout in the child. */
24001 _exit(close(fileno(stdout)) != 0);
24006 while (wait(&status) != child)
24009 /* Was there some problem with vforking? */
24012 /* Did the child fail? (This shouldn't happen.) */
24015 /* Did the vfork/compiler bug occur? */
24016 || parent != getpid()
24018 /* Did the file descriptor bug occur? */
24019 || fstat(fileno(stdout), &st) != 0
24024 rm -f conftest$ac_exeext
24025 if { (ac_try="$ac_link"
24026 case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24031 $as_echo "$ac_try_echo") >&5
24032 (eval "$ac_link") 2>&5
24034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24036 { (case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24041 $as_echo "$ac_try_echo") >&5
24042 (eval "$ac_try") 2>&5
24044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; }; then
24046 ac_cv_func_vfork_works=yes
24048 $as_echo "$as_me: program exited with status $ac_status" >&5
24049 $as_echo "$as_me: failed program was:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24052 ( exit $ac_status )
24053 ac_cv_func_vfork_works=no
24055 rm -rf conftest.dSYM
24056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24062 $as_echo "$ac_cv_func_vfork_works" >&6; }
24065 if test "x$ac_cv_func_fork_works" = xcross; then
24066 ac_cv_func_vfork_works=$ac_cv_func_vfork
24067 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24068 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24071 if test "x$ac_cv_func_vfork_works" = xyes; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_WORKING_VFORK 1
24079 cat >>confdefs.h <<\_ACEOF
24084 if test "x$ac_cv_func_fork_works" = xyes; then
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_WORKING_FORK 1
24092 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24093 $as_echo_n "checking type of array argument to getgroups... " >&6; }
24094 if test "${ac_cv_type_getgroups+set}" = set; then
24095 $as_echo_n "(cached) " >&6
24097 if test "$cross_compiling" = yes; then
24098 ac_cv_type_getgroups=cross
24100 cat >conftest.$ac_ext <<_ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106 /* Thanks to Mike Rendell for this test. */
24107 $ac_includes_default
24110 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24115 gid_t gidset[NGID];
24117 union { gid_t gval; long int lval; } val;
24120 for (i = 0; i < NGID; i++)
24121 gidset[i] = val.gval;
24122 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24124 /* Exit non-zero if getgroups seems to require an array of ints. This
24125 happens when gid_t is short int but getgroups modifies an array
24127 return n > 0 && gidset[n] != val.gval;
24130 rm -f conftest$ac_exeext
24131 if { (ac_try="$ac_link"
24132 case "(($ac_try" in
24133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134 *) ac_try_echo=$ac_try;;
24136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24137 $as_echo "$ac_try_echo") >&5
24138 (eval "$ac_link") 2>&5
24140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24142 { (case "(($ac_try" in
24143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24144 *) ac_try_echo=$ac_try;;
24146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24147 $as_echo "$ac_try_echo") >&5
24148 (eval "$ac_try") 2>&5
24150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; }; then
24152 ac_cv_type_getgroups=gid_t
24154 $as_echo "$as_me: program exited with status $ac_status" >&5
24155 $as_echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 ( exit $ac_status )
24159 ac_cv_type_getgroups=int
24161 rm -rf conftest.dSYM
24162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24166 if test $ac_cv_type_getgroups = cross; then
24167 cat >conftest.$ac_ext <<_ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 #include <unistd.h>
24176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24177 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24178 ac_cv_type_getgroups=gid_t
24180 ac_cv_type_getgroups=int
24186 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24187 $as_echo "$ac_cv_type_getgroups" >&6; }
24189 cat >>confdefs.h <<_ACEOF
24190 #define GETGROUPS_T $ac_cv_type_getgroups
24194 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
24195 $as_echo_n "checking for getgroups... " >&6; }
24196 if test "${ac_cv_func_getgroups+set}" = set; then
24197 $as_echo_n "(cached) " >&6
24199 cat >conftest.$ac_ext <<_ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24207 #define getgroups innocuous_getgroups
24209 /* System header to define __stub macros and hopefully few prototypes,
24210 which can conflict with char getgroups (); below.
24211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24212 <limits.h> exists even on freestanding compilers. */
24215 # include <limits.h>
24217 # include <assert.h>
24222 /* Override any GCC internal prototype to avoid an error.
24223 Use char because int might match the return type of a GCC
24224 builtin and then its argument prototype would still apply. */
24229 /* The GNU C library defines this for functions which it implements
24230 to always fail with ENOSYS. Some functions are actually named
24231 something starting with __ and the normal name is an alias. */
24232 #if defined __stub_getgroups || defined __stub___getgroups
24239 return getgroups ();
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (ac_try="$ac_link"
24246 case "(($ac_try" in
24247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248 *) ac_try_echo=$ac_try;;
24250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24251 $as_echo "$ac_try_echo") >&5
24252 (eval "$ac_link") 2>conftest.er1
24254 grep -v '^ *+' conftest.er1 >conftest.err
24256 cat conftest.err >&5
24257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } && {
24259 test -z "$ac_c_werror_flag" ||
24260 test ! -s conftest.err
24261 } && test -s conftest$ac_exeext && {
24262 test "$cross_compiling" = yes ||
24263 $as_test_x conftest$ac_exeext
24265 ac_cv_func_getgroups=yes
24267 $as_echo "$as_me: failed program was:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24270 ac_cv_func_getgroups=no
24273 rm -rf conftest.dSYM
24274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24275 conftest$ac_exeext conftest.$ac_ext
24277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24278 $as_echo "$ac_cv_func_getgroups" >&6; }
24281 # If we don't yet have getgroups, see if it's in -lbsd.
24282 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24284 if test $ac_cv_func_getgroups = no; then
24285 { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24286 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24287 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24288 $as_echo_n "(cached) " >&6
24290 ac_check_lib_save_LIBS=$LIBS
24292 cat >conftest.$ac_ext <<_ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24299 /* Override any GCC internal prototype to avoid an error.
24300 Use char because int might match the return type of a GCC
24301 builtin and then its argument prototype would still apply. */
24309 return getgroups ();
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (ac_try="$ac_link"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24321 $as_echo "$ac_try_echo") >&5
24322 (eval "$ac_link") 2>conftest.er1
24324 grep -v '^ *+' conftest.er1 >conftest.err
24326 cat conftest.err >&5
24327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } && {
24329 test -z "$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 } && test -s conftest$ac_exeext && {
24332 test "$cross_compiling" = yes ||
24333 $as_test_x conftest$ac_exeext
24335 ac_cv_lib_bsd_getgroups=yes
24337 $as_echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 ac_cv_lib_bsd_getgroups=no
24343 rm -rf conftest.dSYM
24344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24345 conftest$ac_exeext conftest.$ac_ext
24346 LIBS=$ac_check_lib_save_LIBS
24348 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24349 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24350 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
24351 GETGROUPS_LIB=-lbsd
24356 # Run the program to test the functionality of the system-supplied
24357 # getgroups function only if there is such a function.
24358 if test $ac_cv_func_getgroups = yes; then
24359 { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
24360 $as_echo_n "checking for working getgroups... " >&6; }
24361 if test "${ac_cv_func_getgroups_works+set}" = set; then
24362 $as_echo_n "(cached) " >&6
24364 if test "$cross_compiling" = yes; then
24365 ac_cv_func_getgroups_works=no
24367 cat >conftest.$ac_ext <<_ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24373 $ac_includes_default
24377 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24378 return getgroups (0, 0) == -1;
24383 rm -f conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24390 $as_echo "$ac_try_echo") >&5
24391 (eval "$ac_link") 2>&5
24393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24395 { (case "(($ac_try" in
24396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397 *) ac_try_echo=$ac_try;;
24399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24400 $as_echo "$ac_try_echo") >&5
24401 (eval "$ac_try") 2>&5
24403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; }; then
24405 ac_cv_func_getgroups_works=yes
24407 $as_echo "$as_me: program exited with status $ac_status" >&5
24408 $as_echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 ( exit $ac_status )
24412 ac_cv_func_getgroups_works=no
24414 rm -rf conftest.dSYM
24415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24421 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24422 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24423 if test $ac_cv_func_getgroups_works = yes; then
24425 cat >>confdefs.h <<\_ACEOF
24426 #define HAVE_GETGROUPS 1
24433 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
24434 # -lseq on Dynix/PTX, -lgen on Unixware.
24435 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
24436 $as_echo_n "checking for library containing getmntent... " >&6; }
24437 if test "${ac_cv_search_getmntent+set}" = set; then
24438 $as_echo_n "(cached) " >&6
24440 ac_func_search_save_LIBS=$LIBS
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24448 /* Override any GCC internal prototype to avoid an error.
24449 Use char because int might match the return type of a GCC
24450 builtin and then its argument prototype would still apply. */
24458 return getmntent ();
24463 for ac_lib in '' sun seq gen; do
24464 if test -z "$ac_lib"; then
24465 ac_res="none required"
24468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24470 rm -f conftest.$ac_objext conftest$ac_exeext
24471 if { (ac_try="$ac_link"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24477 $as_echo "$ac_try_echo") >&5
24478 (eval "$ac_link") 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest$ac_exeext && {
24488 test "$cross_compiling" = yes ||
24489 $as_test_x conftest$ac_exeext
24491 ac_cv_search_getmntent=$ac_res
24493 $as_echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24499 rm -rf conftest.dSYM
24500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24502 if test "${ac_cv_search_getmntent+set}" = set; then
24506 if test "${ac_cv_search_getmntent+set}" = set; then
24509 ac_cv_search_getmntent=no
24511 rm conftest.$ac_ext
24512 LIBS=$ac_func_search_save_LIBS
24514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
24515 $as_echo "$ac_cv_search_getmntent" >&6; }
24516 ac_res=$ac_cv_search_getmntent
24517 if test "$ac_res" != no; then
24518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24519 ac_cv_func_getmntent=yes
24521 cat >>confdefs.h <<\_ACEOF
24522 #define HAVE_GETMNTENT 1
24526 ac_cv_func_getmntent=no
24530 if test $ac_cv_c_compiler_gnu = yes; then
24531 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24532 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
24533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24534 $as_echo_n "(cached) " >&6
24536 ac_pattern="Autoconf.*'x'"
24537 cat >conftest.$ac_ext <<_ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24547 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24548 ac_cv_prog_gcc_traditional=yes
24550 ac_cv_prog_gcc_traditional=no
24555 if test $ac_cv_prog_gcc_traditional = no; then
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 #include <termio.h>
24565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24566 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24567 ac_cv_prog_gcc_traditional=yes
24573 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24574 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
24575 if test $ac_cv_prog_gcc_traditional = yes; then
24576 CC="$CC -traditional"
24580 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24581 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24582 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24583 $as_echo_n "(cached) " >&6
24585 rm -f conftest.sym conftest.file
24586 echo >conftest.file
24587 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24588 if test "$cross_compiling" = yes; then
24589 ac_cv_func_lstat_dereferences_slashed_symlink=no
24591 cat >conftest.$ac_ext <<_ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 $ac_includes_default
24602 /* Linux will dereference the symlink and fail.
24603 That is better in the sense that it means we will not
24604 have to compile and use the lstat wrapper. */
24605 return lstat ("conftest.sym/", &sbuf) == 0;
24610 rm -f conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618 (eval "$ac_link") 2>&5
24620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24622 { (case "(($ac_try" in
24623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24624 *) ac_try_echo=$ac_try;;
24626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24627 $as_echo "$ac_try_echo") >&5
24628 (eval "$ac_try") 2>&5
24630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; }; then
24632 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24634 $as_echo "$as_me: program exited with status $ac_status" >&5
24635 $as_echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24638 ( exit $ac_status )
24639 ac_cv_func_lstat_dereferences_slashed_symlink=no
24641 rm -rf conftest.dSYM
24642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24647 # If the `ln -s' command failed, then we probably don't even
24648 # have an lstat function.
24649 ac_cv_func_lstat_dereferences_slashed_symlink=no
24651 rm -f conftest.sym conftest.file
24654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24655 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24657 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24659 cat >>confdefs.h <<_ACEOF
24660 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24664 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24665 case " $LIBOBJS " in
24666 *" lstat.$ac_objext "* ) ;;
24667 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24673 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24674 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
24675 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24676 $as_echo_n "(cached) " >&6
24678 if test "$cross_compiling" = yes; then
24679 ac_cv_func_lstat_empty_string_bug=yes
24681 cat >conftest.$ac_ext <<_ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 $ac_includes_default
24692 return lstat ("", &sbuf) == 0;
24697 rm -f conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24704 $as_echo "$ac_try_echo") >&5
24705 (eval "$ac_link") 2>&5
24707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24709 { (case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24714 $as_echo "$ac_try_echo") >&5
24715 (eval "$ac_try") 2>&5
24717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; }; then
24719 ac_cv_func_lstat_empty_string_bug=no
24721 $as_echo "$as_me: program exited with status $ac_status" >&5
24722 $as_echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24725 ( exit $ac_status )
24726 ac_cv_func_lstat_empty_string_bug=yes
24728 rm -rf conftest.dSYM
24729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24735 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
24736 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24737 case " $LIBOBJS " in
24738 *" lstat.$ac_objext "* ) ;;
24739 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24744 cat >>confdefs.h <<_ACEOF
24745 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24750 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24751 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24752 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24753 $as_echo_n "(cached) " >&6
24755 rm -f conftest.sym conftest.file
24756 echo >conftest.file
24757 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24758 if test "$cross_compiling" = yes; then
24759 ac_cv_func_lstat_dereferences_slashed_symlink=no
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 $ac_includes_default
24772 /* Linux will dereference the symlink and fail.
24773 That is better in the sense that it means we will not
24774 have to compile and use the lstat wrapper. */
24775 return lstat ("conftest.sym/", &sbuf) == 0;
24780 rm -f conftest$ac_exeext
24781 if { (ac_try="$ac_link"
24782 case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24787 $as_echo "$ac_try_echo") >&5
24788 (eval "$ac_link") 2>&5
24790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24792 { (case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24797 $as_echo "$ac_try_echo") >&5
24798 (eval "$ac_try") 2>&5
24800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; }; then
24802 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24804 $as_echo "$as_me: program exited with status $ac_status" >&5
24805 $as_echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24808 ( exit $ac_status )
24809 ac_cv_func_lstat_dereferences_slashed_symlink=no
24811 rm -rf conftest.dSYM
24812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24817 # If the `ln -s' command failed, then we probably don't even
24818 # have an lstat function.
24819 ac_cv_func_lstat_dereferences_slashed_symlink=no
24821 rm -f conftest.sym conftest.file
24824 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24825 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24827 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24829 cat >>confdefs.h <<_ACEOF
24830 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24834 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24835 case " $LIBOBJS " in
24836 *" lstat.$ac_objext "* ) ;;
24837 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24843 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24844 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24845 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24846 $as_echo_n "(cached) " >&6
24848 cat >conftest.$ac_ext <<_ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 #include <sys/types.h>
24858 return makedev(0, 0);
24863 rm -f conftest.$ac_objext conftest$ac_exeext
24864 if { (ac_try="$ac_link"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24870 $as_echo "$ac_try_echo") >&5
24871 (eval "$ac_link") 2>conftest.er1
24873 grep -v '^ *+' conftest.er1 >conftest.err
24875 cat conftest.err >&5
24876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } && {
24878 test -z "$ac_c_werror_flag" ||
24879 test ! -s conftest.err
24880 } && test -s conftest$ac_exeext && {
24881 test "$cross_compiling" = yes ||
24882 $as_test_x conftest$ac_exeext
24884 ac_cv_header_sys_types_h_makedev=yes
24886 $as_echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24889 ac_cv_header_sys_types_h_makedev=no
24892 rm -rf conftest.dSYM
24893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24894 conftest$ac_exeext conftest.$ac_ext
24897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24898 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24900 if test $ac_cv_header_sys_types_h_makedev = no; then
24901 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24902 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24903 $as_echo_n "checking for sys/mkdev.h... " >&6; }
24904 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24905 $as_echo_n "(cached) " >&6
24907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24908 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
24910 # Is the header compilable?
24911 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24912 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24919 $ac_includes_default
24920 #include <sys/mkdev.h>
24922 rm -f conftest.$ac_objext
24923 if { (ac_try="$ac_compile"
24924 case "(($ac_try" in
24925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930 (eval "$ac_compile") 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } && {
24937 test -z "$ac_c_werror_flag" ||
24938 test ! -s conftest.err
24939 } && test -s conftest.$ac_objext; then
24940 ac_header_compiler=yes
24942 $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 ac_header_compiler=no
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24950 $as_echo "$ac_header_compiler" >&6; }
24952 # Is the header present?
24953 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24954 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
24955 cat >conftest.$ac_ext <<_ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h. */
24961 #include <sys/mkdev.h>
24963 if { (ac_try="$ac_cpp conftest.$ac_ext"
24964 case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24969 $as_echo "$ac_try_echo") >&5
24970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24972 grep -v '^ *+' conftest.er1 >conftest.err
24974 cat conftest.err >&5
24975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } >/dev/null && {
24977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24978 test ! -s conftest.err
24980 ac_header_preproc=yes
24982 $as_echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24985 ac_header_preproc=no
24988 rm -f conftest.err conftest.$ac_ext
24989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24990 $as_echo "$ac_header_preproc" >&6; }
24992 # So? What about this header?
24993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24995 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24996 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24997 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24998 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24999 ac_header_preproc=yes
25002 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25003 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25004 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25005 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25006 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25007 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25008 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25009 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25010 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25011 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25012 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25013 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25015 ## ---------------------------------------- ##
25016 ## Report this to linux-nfs@vger.kernel.org ##
25017 ## ---------------------------------------- ##
25019 ) | sed "s/^/$as_me: WARNING: /" >&2
25022 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25023 $as_echo_n "checking for sys/mkdev.h... " >&6; }
25024 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25025 $as_echo_n "(cached) " >&6
25027 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25029 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25030 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
25033 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
25035 cat >>confdefs.h <<\_ACEOF
25036 #define MAJOR_IN_MKDEV 1
25043 if test $ac_cv_header_sys_mkdev_h = no; then
25044 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25045 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25046 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
25047 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25048 $as_echo_n "(cached) " >&6
25050 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25051 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
25053 # Is the header compilable?
25054 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25055 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 $ac_includes_default
25063 #include <sys/sysmacros.h>
25065 rm -f conftest.$ac_objext
25066 if { (ac_try="$ac_compile"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25072 $as_echo "$ac_try_echo") >&5
25073 (eval "$ac_compile") 2>conftest.er1
25075 grep -v '^ *+' conftest.er1 >conftest.err
25077 cat conftest.err >&5
25078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } && {
25080 test -z "$ac_c_werror_flag" ||
25081 test ! -s conftest.err
25082 } && test -s conftest.$ac_objext; then
25083 ac_header_compiler=yes
25085 $as_echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25088 ac_header_compiler=no
25091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25093 $as_echo "$ac_header_compiler" >&6; }
25095 # Is the header present?
25096 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25097 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
25098 cat >conftest.$ac_ext <<_ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25104 #include <sys/sysmacros.h>
25106 if { (ac_try="$ac_cpp conftest.$ac_ext"
25107 case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25115 grep -v '^ *+' conftest.er1 >conftest.err
25117 cat conftest.err >&5
25118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } >/dev/null && {
25120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25121 test ! -s conftest.err
25123 ac_header_preproc=yes
25125 $as_echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 ac_header_preproc=no
25131 rm -f conftest.err conftest.$ac_ext
25132 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25133 $as_echo "$ac_header_preproc" >&6; }
25135 # So? What about this header?
25136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25138 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25139 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25140 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25141 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25142 ac_header_preproc=yes
25145 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25146 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25147 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25148 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25149 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25150 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25151 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25152 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25153 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25154 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25155 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25156 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25158 ## ---------------------------------------- ##
25159 ## Report this to linux-nfs@vger.kernel.org ##
25160 ## ---------------------------------------- ##
25162 ) | sed "s/^/$as_me: WARNING: /" >&2
25165 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25166 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
25167 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25168 $as_echo_n "(cached) " >&6
25170 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25173 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
25176 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
25178 cat >>confdefs.h <<\_ACEOF
25179 #define MAJOR_IN_SYSMACROS 1
25189 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
25190 $as_echo_n "checking for working memcmp... " >&6; }
25191 if test "${ac_cv_func_memcmp_working+set}" = set; then
25192 $as_echo_n "(cached) " >&6
25194 if test "$cross_compiling" = yes; then
25195 ac_cv_func_memcmp_working=no
25197 cat >conftest.$ac_ext <<_ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h. */
25203 $ac_includes_default
25208 /* Some versions of memcmp are not 8-bit clean. */
25209 char c0 = '\100', c1 = '\200', c2 = '\201';
25210 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25213 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25214 or more and with at least one buffer not starting on a 4-byte boundary.
25215 William Lewis provided this test program. */
25220 for (i = 0; i < 4; i++)
25224 strcpy (a, "--------01111111");
25225 strcpy (b, "--------10000000");
25226 if (memcmp (a, b, 16) >= 0)
25236 rm -f conftest$ac_exeext
25237 if { (ac_try="$ac_link"
25238 case "(($ac_try" in
25239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25243 $as_echo "$ac_try_echo") >&5
25244 (eval "$ac_link") 2>&5
25246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25248 { (case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_try") 2>&5
25256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); }; }; then
25258 ac_cv_func_memcmp_working=yes
25260 $as_echo "$as_me: program exited with status $ac_status" >&5
25261 $as_echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25264 ( exit $ac_status )
25265 ac_cv_func_memcmp_working=no
25267 rm -rf conftest.dSYM
25268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25273 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25274 $as_echo "$ac_cv_func_memcmp_working" >&6; }
25275 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25276 *" memcmp.$ac_objext "* ) ;;
25277 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25285 for ac_header in sys/select.h sys/socket.h
25287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25290 $as_echo_n "checking for $ac_header... " >&6; }
25291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25292 $as_echo_n "(cached) " >&6
25294 ac_res=`eval 'as_val=${'$as_ac_Header'}
25295 $as_echo "$as_val"'`
25296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25297 $as_echo "$ac_res" >&6; }
25299 # Is the header compilable?
25300 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25301 $as_echo_n "checking $ac_header usability... " >&6; }
25302 cat >conftest.$ac_ext <<_ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25308 $ac_includes_default
25309 #include <$ac_header>
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25318 $as_echo "$ac_try_echo") >&5
25319 (eval "$ac_compile") 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest.$ac_objext; then
25329 ac_header_compiler=yes
25331 $as_echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25334 ac_header_compiler=no
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25339 $as_echo "$ac_header_compiler" >&6; }
25341 # Is the header present?
25342 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25343 $as_echo_n "checking $ac_header presence... " >&6; }
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 #include <$ac_header>
25352 if { (ac_try="$ac_cpp conftest.$ac_ext"
25353 case "(($ac_try" in
25354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355 *) ac_try_echo=$ac_try;;
25357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25358 $as_echo "$ac_try_echo") >&5
25359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25361 grep -v '^ *+' conftest.er1 >conftest.err
25363 cat conftest.err >&5
25364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } >/dev/null && {
25366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25367 test ! -s conftest.err
25369 ac_header_preproc=yes
25371 $as_echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_header_preproc=no
25377 rm -f conftest.err conftest.$ac_ext
25378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25379 $as_echo "$ac_header_preproc" >&6; }
25381 # So? What about this header?
25382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25388 ac_header_preproc=yes
25391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25392 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25394 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25396 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25398 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25402 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25404 ## ---------------------------------------- ##
25405 ## Report this to linux-nfs@vger.kernel.org ##
25406 ## ---------------------------------------- ##
25408 ) | sed "s/^/$as_me: WARNING: /" >&2
25411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25412 $as_echo_n "checking for $ac_header... " >&6; }
25413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25414 $as_echo_n "(cached) " >&6
25416 eval "$as_ac_Header=\$ac_header_preproc"
25418 ac_res=`eval 'as_val=${'$as_ac_Header'}
25419 $as_echo "$as_val"'`
25420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25421 $as_echo "$ac_res" >&6; }
25424 as_val=`eval 'as_val=${'$as_ac_Header'}
25425 $as_echo "$as_val"'`
25426 if test "x$as_val" = x""yes; then
25427 cat >>confdefs.h <<_ACEOF
25428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25435 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
25436 $as_echo_n "checking types of arguments for select... " >&6; }
25437 if test "${ac_cv_func_select_args+set}" = set; then
25438 $as_echo_n "(cached) " >&6
25440 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25441 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25442 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25443 cat >conftest.$ac_ext <<_ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 $ac_includes_default
25450 #ifdef HAVE_SYS_SELECT_H
25451 # include <sys/select.h>
25453 #ifdef HAVE_SYS_SOCKET_H
25454 # include <sys/socket.h>
25460 extern int select ($ac_arg1,
25461 $ac_arg234, $ac_arg234, $ac_arg234,
25467 rm -f conftest.$ac_objext
25468 if { (ac_try="$ac_compile"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25474 $as_echo "$ac_try_echo") >&5
25475 (eval "$ac_compile") 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest.$ac_objext; then
25485 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25487 $as_echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497 # Provide a safe default value.
25498 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25501 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25502 $as_echo "$ac_cv_func_select_args" >&6; }
25503 ac_save_IFS=$IFS; IFS=','
25504 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25508 cat >>confdefs.h <<_ACEOF
25509 #define SELECT_TYPE_ARG1 $1
25513 cat >>confdefs.h <<_ACEOF
25514 #define SELECT_TYPE_ARG234 ($2)
25518 cat >>confdefs.h <<_ACEOF
25519 #define SELECT_TYPE_ARG5 ($3)
25524 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25525 $as_echo_n "checking return type of signal handlers... " >&6; }
25526 if test "${ac_cv_type_signal+set}" = set; then
25527 $as_echo_n "(cached) " >&6
25529 cat >conftest.$ac_ext <<_ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25535 #include <sys/types.h>
25536 #include <signal.h>
25541 return *(signal (0, 0)) (0) == 1;
25546 rm -f conftest.$ac_objext
25547 if { (ac_try="$ac_compile"
25548 case "(($ac_try" in
25549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550 *) ac_try_echo=$ac_try;;
25552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25553 $as_echo "$ac_try_echo") >&5
25554 (eval "$ac_compile") 2>conftest.er1
25556 grep -v '^ *+' conftest.er1 >conftest.err
25558 cat conftest.err >&5
25559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); } && {
25561 test -z "$ac_c_werror_flag" ||
25562 test ! -s conftest.err
25563 } && test -s conftest.$ac_objext; then
25564 ac_cv_type_signal=int
25566 $as_echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25569 ac_cv_type_signal=void
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25574 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25575 $as_echo "$ac_cv_type_signal" >&6; }
25577 cat >>confdefs.h <<_ACEOF
25578 #define RETSIGTYPE $ac_cv_type_signal
25582 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25583 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
25584 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25585 $as_echo_n "(cached) " >&6
25587 if test "$cross_compiling" = yes; then
25588 ac_cv_func_stat_empty_string_bug=yes
25590 cat >conftest.$ac_ext <<_ACEOF
25593 cat confdefs.h >>conftest.$ac_ext
25594 cat >>conftest.$ac_ext <<_ACEOF
25595 /* end confdefs.h. */
25596 $ac_includes_default
25601 return stat ("", &sbuf) == 0;
25606 rm -f conftest$ac_exeext
25607 if { (ac_try="$ac_link"
25608 case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25613 $as_echo "$ac_try_echo") >&5
25614 (eval "$ac_link") 2>&5
25616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25618 { (case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25623 $as_echo "$ac_try_echo") >&5
25624 (eval "$ac_try") 2>&5
25626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; }; then
25628 ac_cv_func_stat_empty_string_bug=no
25630 $as_echo "$as_me: program exited with status $ac_status" >&5
25631 $as_echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25634 ( exit $ac_status )
25635 ac_cv_func_stat_empty_string_bug=yes
25637 rm -rf conftest.dSYM
25638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25643 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25644 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
25645 if test $ac_cv_func_stat_empty_string_bug = yes; then
25646 case " $LIBOBJS " in
25647 *" stat.$ac_objext "* ) ;;
25648 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25653 cat >>confdefs.h <<_ACEOF
25654 #define HAVE_STAT_EMPTY_STRING_BUG 1
25660 for ac_func in vprintf
25662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25664 $as_echo_n "checking for $ac_func... " >&6; }
25665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25666 $as_echo_n "(cached) " >&6
25668 cat >conftest.$ac_ext <<_ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h. */
25674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25676 #define $ac_func innocuous_$ac_func
25678 /* System header to define __stub macros and hopefully few prototypes,
25679 which can conflict with char $ac_func (); below.
25680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25681 <limits.h> exists even on freestanding compilers. */
25684 # include <limits.h>
25686 # include <assert.h>
25691 /* Override any GCC internal prototype to avoid an error.
25692 Use char because int might match the return type of a GCC
25693 builtin and then its argument prototype would still apply. */
25698 /* The GNU C library defines this for functions which it implements
25699 to always fail with ENOSYS. Some functions are actually named
25700 something starting with __ and the normal name is an alias. */
25701 #if defined __stub_$ac_func || defined __stub___$ac_func
25708 return $ac_func ();
25713 rm -f conftest.$ac_objext conftest$ac_exeext
25714 if { (ac_try="$ac_link"
25715 case "(($ac_try" in
25716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717 *) ac_try_echo=$ac_try;;
25719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25720 $as_echo "$ac_try_echo") >&5
25721 (eval "$ac_link") 2>conftest.er1
25723 grep -v '^ *+' conftest.er1 >conftest.err
25725 cat conftest.err >&5
25726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && {
25728 test -z "$ac_c_werror_flag" ||
25729 test ! -s conftest.err
25730 } && test -s conftest$ac_exeext && {
25731 test "$cross_compiling" = yes ||
25732 $as_test_x conftest$ac_exeext
25734 eval "$as_ac_var=yes"
25736 $as_echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25739 eval "$as_ac_var=no"
25742 rm -rf conftest.dSYM
25743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25744 conftest$ac_exeext conftest.$ac_ext
25746 ac_res=`eval 'as_val=${'$as_ac_var'}
25747 $as_echo "$as_val"'`
25748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25749 $as_echo "$ac_res" >&6; }
25750 as_val=`eval 'as_val=${'$as_ac_var'}
25751 $as_echo "$as_val"'`
25752 if test "x$as_val" = x""yes; then
25753 cat >>confdefs.h <<_ACEOF
25754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25757 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
25758 $as_echo_n "checking for _doprnt... " >&6; }
25759 if test "${ac_cv_func__doprnt+set}" = set; then
25760 $as_echo_n "(cached) " >&6
25762 cat >conftest.$ac_ext <<_ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25768 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25770 #define _doprnt innocuous__doprnt
25772 /* System header to define __stub macros and hopefully few prototypes,
25773 which can conflict with char _doprnt (); below.
25774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25775 <limits.h> exists even on freestanding compilers. */
25778 # include <limits.h>
25780 # include <assert.h>
25785 /* Override any GCC internal prototype to avoid an error.
25786 Use char because int might match the return type of a GCC
25787 builtin and then its argument prototype would still apply. */
25792 /* The GNU C library defines this for functions which it implements
25793 to always fail with ENOSYS. Some functions are actually named
25794 something starting with __ and the normal name is an alias. */
25795 #if defined __stub__doprnt || defined __stub____doprnt
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25814 $as_echo "$ac_try_echo") >&5
25815 (eval "$ac_link") 2>conftest.er1
25817 grep -v '^ *+' conftest.er1 >conftest.err
25819 cat conftest.err >&5
25820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && {
25822 test -z "$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest$ac_exeext && {
25825 test "$cross_compiling" = yes ||
25826 $as_test_x conftest$ac_exeext
25828 ac_cv_func__doprnt=yes
25830 $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25833 ac_cv_func__doprnt=no
25836 rm -rf conftest.dSYM
25837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25838 conftest$ac_exeext conftest.$ac_ext
25840 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25841 $as_echo "$ac_cv_func__doprnt" >&6; }
25842 if test "x$ac_cv_func__doprnt" = x""yes; then
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_DOPRNT 1
25886 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25887 gethostbyaddr gethostbyname gethostname getmntent \
25888 getnameinfo getrpcbyname getifaddrs \
25889 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25890 realpath rmdir select socket strcasecmp strchr strdup \
25891 strerror strrchr strtol strtoul sigprocmask
25893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25895 $as_echo_n "checking for $ac_func... " >&6; }
25896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25897 $as_echo_n "(cached) " >&6
25899 cat >conftest.$ac_ext <<_ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h. */
25905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25907 #define $ac_func innocuous_$ac_func
25909 /* System header to define __stub macros and hopefully few prototypes,
25910 which can conflict with char $ac_func (); below.
25911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25912 <limits.h> exists even on freestanding compilers. */
25915 # include <limits.h>
25917 # include <assert.h>
25922 /* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25929 /* The GNU C library defines this for functions which it implements
25930 to always fail with ENOSYS. Some functions are actually named
25931 something starting with __ and the normal name is an alias. */
25932 #if defined __stub_$ac_func || defined __stub___$ac_func
25939 return $ac_func ();
25944 rm -f conftest.$ac_objext conftest$ac_exeext
25945 if { (ac_try="$ac_link"
25946 case "(($ac_try" in
25947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25948 *) ac_try_echo=$ac_try;;
25950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25951 $as_echo "$ac_try_echo") >&5
25952 (eval "$ac_link") 2>conftest.er1
25954 grep -v '^ *+' conftest.er1 >conftest.err
25956 cat conftest.err >&5
25957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } && {
25959 test -z "$ac_c_werror_flag" ||
25960 test ! -s conftest.err
25961 } && test -s conftest$ac_exeext && {
25962 test "$cross_compiling" = yes ||
25963 $as_test_x conftest$ac_exeext
25965 eval "$as_ac_var=yes"
25967 $as_echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25970 eval "$as_ac_var=no"
25973 rm -rf conftest.dSYM
25974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25975 conftest$ac_exeext conftest.$ac_ext
25977 ac_res=`eval 'as_val=${'$as_ac_var'}
25978 $as_echo "$as_val"'`
25979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25980 $as_echo "$ac_res" >&6; }
25981 as_val=`eval 'as_val=${'$as_ac_var'}
25982 $as_echo "$as_val"'`
25983 if test "x$as_val" = x""yes; then
25984 cat >>confdefs.h <<_ACEOF
25985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25993 # The cast to long int works around a bug in the HP C Compiler
25994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25996 # This bug is HP SR number 8606223364.
25997 { $as_echo "$as_me:$LINENO: checking size of short" >&5
25998 $as_echo_n "checking size of short... " >&6; }
25999 if test "${ac_cv_sizeof_short+set}" = set; then
26000 $as_echo_n "(cached) " >&6
26002 if test "$cross_compiling" = yes; then
26003 # Depending upon the size, compute the lo and hi bounds.
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 $ac_includes_default
26014 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
26021 rm -f conftest.$ac_objext
26022 if { (ac_try="$ac_compile"
26023 case "(($ac_try" in
26024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025 *) ac_try_echo=$ac_try;;
26027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26028 $as_echo "$ac_try_echo") >&5
26029 (eval "$ac_compile") 2>conftest.er1
26031 grep -v '^ *+' conftest.er1 >conftest.err
26033 cat conftest.err >&5
26034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); } && {
26036 test -z "$ac_c_werror_flag" ||
26037 test ! -s conftest.err
26038 } && test -s conftest.$ac_objext; then
26041 cat >conftest.$ac_ext <<_ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 $ac_includes_default
26051 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
26058 rm -f conftest.$ac_objext
26059 if { (ac_try="$ac_compile"
26060 case "(($ac_try" in
26061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062 *) ac_try_echo=$ac_try;;
26064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26065 $as_echo "$ac_try_echo") >&5
26066 (eval "$ac_compile") 2>conftest.er1
26068 grep -v '^ *+' conftest.er1 >conftest.err
26070 cat conftest.err >&5
26071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } && {
26073 test -z "$ac_c_werror_flag" ||
26074 test ! -s conftest.err
26075 } && test -s conftest.$ac_objext; then
26076 ac_hi=$ac_mid; break
26078 $as_echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26081 ac_lo=`expr $ac_mid + 1`
26082 if test $ac_lo -le $ac_mid; then
26086 ac_mid=`expr 2 '*' $ac_mid + 1`
26089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26092 $as_echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26101 $ac_includes_default
26105 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
26112 rm -f conftest.$ac_objext
26113 if { (ac_try="$ac_compile"
26114 case "(($ac_try" in
26115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26116 *) ac_try_echo=$ac_try;;
26118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26119 $as_echo "$ac_try_echo") >&5
26120 (eval "$ac_compile") 2>conftest.er1
26122 grep -v '^ *+' conftest.er1 >conftest.err
26124 cat conftest.err >&5
26125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } && {
26127 test -z "$ac_c_werror_flag" ||
26128 test ! -s conftest.err
26129 } && test -s conftest.$ac_objext; then
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 $ac_includes_default
26142 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26156 $as_echo "$ac_try_echo") >&5
26157 (eval "$ac_compile") 2>conftest.er1
26159 grep -v '^ *+' conftest.er1 >conftest.err
26161 cat conftest.err >&5
26162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); } && {
26164 test -z "$ac_c_werror_flag" ||
26165 test ! -s conftest.err
26166 } && test -s conftest.$ac_objext; then
26167 ac_lo=$ac_mid; break
26169 $as_echo "$as_me: failed program was:" >&5
26170 sed 's/^/| /' conftest.$ac_ext >&5
26172 ac_hi=`expr '(' $ac_mid ')' - 1`
26173 if test $ac_mid -le $ac_hi; then
26177 ac_mid=`expr 2 '*' $ac_mid`
26180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26183 $as_echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193 # Binary search between lo and hi bounds.
26194 while test "x$ac_lo" != "x$ac_hi"; do
26195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26196 cat >conftest.$ac_ext <<_ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26202 $ac_includes_default
26206 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
26213 rm -f conftest.$ac_objext
26214 if { (ac_try="$ac_compile"
26215 case "(($ac_try" in
26216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217 *) ac_try_echo=$ac_try;;
26219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26220 $as_echo "$ac_try_echo") >&5
26221 (eval "$ac_compile") 2>conftest.er1
26223 grep -v '^ *+' conftest.er1 >conftest.err
26225 cat conftest.err >&5
26226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } && {
26228 test -z "$ac_c_werror_flag" ||
26229 test ! -s conftest.err
26230 } && test -s conftest.$ac_objext; then
26233 $as_echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26236 ac_lo=`expr '(' $ac_mid ')' + 1`
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242 ?*) ac_cv_sizeof_short=$ac_lo;;
26243 '') if test "$ac_cv_type_short" = yes; then
26244 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26246 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26247 See \`config.log' for more details." >&5
26248 $as_echo "$as_me: error: cannot compute sizeof (short)
26249 See \`config.log' for more details." >&2;}
26250 { (exit 77); exit 77; }; }; }
26252 ac_cv_sizeof_short=0
26256 cat >conftest.$ac_ext <<_ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26262 $ac_includes_default
26263 static long int longval () { return (long int) (sizeof (short)); }
26264 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
26266 #include <stdlib.h>
26271 FILE *f = fopen ("conftest.val", "w");
26274 if (((long int) (sizeof (short))) < 0)
26276 long int i = longval ();
26277 if (i != ((long int) (sizeof (short))))
26279 fprintf (f, "%ld", i);
26283 unsigned long int i = ulongval ();
26284 if (i != ((long int) (sizeof (short))))
26286 fprintf (f, "%lu", i);
26288 /* Do not output a trailing newline, as this causes \r\n confusion
26289 on some platforms. */
26290 return ferror (f) || fclose (f) != 0;
26296 rm -f conftest$ac_exeext
26297 if { (ac_try="$ac_link"
26298 case "(($ac_try" in
26299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300 *) ac_try_echo=$ac_try;;
26302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26303 $as_echo "$ac_try_echo") >&5
26304 (eval "$ac_link") 2>&5
26306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26308 { (case "(($ac_try" in
26309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310 *) ac_try_echo=$ac_try;;
26312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26313 $as_echo "$ac_try_echo") >&5
26314 (eval "$ac_try") 2>&5
26316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; }; then
26318 ac_cv_sizeof_short=`cat conftest.val`
26320 $as_echo "$as_me: program exited with status $ac_status" >&5
26321 $as_echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 ( exit $ac_status )
26325 if test "$ac_cv_type_short" = yes; then
26326 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26328 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26329 See \`config.log' for more details." >&5
26330 $as_echo "$as_me: error: cannot compute sizeof (short)
26331 See \`config.log' for more details." >&2;}
26332 { (exit 77); exit 77; }; }; }
26334 ac_cv_sizeof_short=0
26337 rm -rf conftest.dSYM
26338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26342 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26343 $as_echo "$ac_cv_sizeof_short" >&6; }
26347 cat >>confdefs.h <<_ACEOF
26348 #define SIZEOF_SHORT $ac_cv_sizeof_short
26352 # The cast to long int works around a bug in the HP C Compiler
26353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26355 # This bug is HP SR number 8606223364.
26356 { $as_echo "$as_me:$LINENO: checking size of int" >&5
26357 $as_echo_n "checking size of int... " >&6; }
26358 if test "${ac_cv_sizeof_int+set}" = set; then
26359 $as_echo_n "(cached) " >&6
26361 if test "$cross_compiling" = yes; then
26362 # Depending upon the size, compute the lo and hi bounds.
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 $ac_includes_default
26373 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
26380 rm -f conftest.$ac_objext
26381 if { (ac_try="$ac_compile"
26382 case "(($ac_try" in
26383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384 *) ac_try_echo=$ac_try;;
26386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26387 $as_echo "$ac_try_echo") >&5
26388 (eval "$ac_compile") 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } && {
26395 test -z "$ac_c_werror_flag" ||
26396 test ! -s conftest.err
26397 } && test -s conftest.$ac_objext; then
26400 cat >conftest.$ac_ext <<_ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h. */
26406 $ac_includes_default
26410 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26424 $as_echo "$ac_try_echo") >&5
26425 (eval "$ac_compile") 2>conftest.er1
26427 grep -v '^ *+' conftest.er1 >conftest.err
26429 cat conftest.err >&5
26430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); } && {
26432 test -z "$ac_c_werror_flag" ||
26433 test ! -s conftest.err
26434 } && test -s conftest.$ac_objext; then
26435 ac_hi=$ac_mid; break
26437 $as_echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 ac_lo=`expr $ac_mid + 1`
26441 if test $ac_lo -le $ac_mid; then
26445 ac_mid=`expr 2 '*' $ac_mid + 1`
26448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451 $as_echo "$as_me: failed program was:" >&5
26452 sed 's/^/| /' conftest.$ac_ext >&5
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 $ac_includes_default
26464 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
26471 rm -f conftest.$ac_objext
26472 if { (ac_try="$ac_compile"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26478 $as_echo "$ac_try_echo") >&5
26479 (eval "$ac_compile") 2>conftest.er1
26481 grep -v '^ *+' conftest.er1 >conftest.err
26483 cat conftest.err >&5
26484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } && {
26486 test -z "$ac_c_werror_flag" ||
26487 test ! -s conftest.err
26488 } && test -s conftest.$ac_objext; then
26491 cat >conftest.$ac_ext <<_ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h. */
26497 $ac_includes_default
26501 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
26508 rm -f conftest.$ac_objext
26509 if { (ac_try="$ac_compile"
26510 case "(($ac_try" in
26511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512 *) ac_try_echo=$ac_try;;
26514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26515 $as_echo "$ac_try_echo") >&5
26516 (eval "$ac_compile") 2>conftest.er1
26518 grep -v '^ *+' conftest.er1 >conftest.err
26520 cat conftest.err >&5
26521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } && {
26523 test -z "$ac_c_werror_flag" ||
26524 test ! -s conftest.err
26525 } && test -s conftest.$ac_objext; then
26526 ac_lo=$ac_mid; break
26528 $as_echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26531 ac_hi=`expr '(' $ac_mid ')' - 1`
26532 if test $ac_mid -le $ac_hi; then
26536 ac_mid=`expr 2 '*' $ac_mid`
26539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26542 $as_echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 # Binary search between lo and hi bounds.
26553 while test "x$ac_lo" != "x$ac_hi"; do
26554 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26555 cat >conftest.$ac_ext <<_ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h. */
26561 $ac_includes_default
26565 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26579 $as_echo "$ac_try_echo") >&5
26580 (eval "$ac_compile") 2>conftest.er1
26582 grep -v '^ *+' conftest.er1 >conftest.err
26584 cat conftest.err >&5
26585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); } && {
26587 test -z "$ac_c_werror_flag" ||
26588 test ! -s conftest.err
26589 } && test -s conftest.$ac_objext; then
26592 $as_echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26595 ac_lo=`expr '(' $ac_mid ')' + 1`
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 ?*) ac_cv_sizeof_int=$ac_lo;;
26602 '') if test "$ac_cv_type_int" = yes; then
26603 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26605 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26606 See \`config.log' for more details." >&5
26607 $as_echo "$as_me: error: cannot compute sizeof (int)
26608 See \`config.log' for more details." >&2;}
26609 { (exit 77); exit 77; }; }; }
26615 cat >conftest.$ac_ext <<_ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621 $ac_includes_default
26622 static long int longval () { return (long int) (sizeof (int)); }
26623 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26625 #include <stdlib.h>
26630 FILE *f = fopen ("conftest.val", "w");
26633 if (((long int) (sizeof (int))) < 0)
26635 long int i = longval ();
26636 if (i != ((long int) (sizeof (int))))
26638 fprintf (f, "%ld", i);
26642 unsigned long int i = ulongval ();
26643 if (i != ((long int) (sizeof (int))))
26645 fprintf (f, "%lu", i);
26647 /* Do not output a trailing newline, as this causes \r\n confusion
26648 on some platforms. */
26649 return ferror (f) || fclose (f) != 0;
26655 rm -f conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26662 $as_echo "$ac_try_echo") >&5
26663 (eval "$ac_link") 2>&5
26665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26667 { (case "(($ac_try" in
26668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669 *) ac_try_echo=$ac_try;;
26671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26672 $as_echo "$ac_try_echo") >&5
26673 (eval "$ac_try") 2>&5
26675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); }; }; then
26677 ac_cv_sizeof_int=`cat conftest.val`
26679 $as_echo "$as_me: program exited with status $ac_status" >&5
26680 $as_echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26683 ( exit $ac_status )
26684 if test "$ac_cv_type_int" = yes; then
26685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26687 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26688 See \`config.log' for more details." >&5
26689 $as_echo "$as_me: error: cannot compute sizeof (int)
26690 See \`config.log' for more details." >&2;}
26691 { (exit 77); exit 77; }; }; }
26696 rm -rf conftest.dSYM
26697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26701 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26702 $as_echo "$ac_cv_sizeof_int" >&6; }
26706 cat >>confdefs.h <<_ACEOF
26707 #define SIZEOF_INT $ac_cv_sizeof_int
26711 # The cast to long int works around a bug in the HP C Compiler
26712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26714 # This bug is HP SR number 8606223364.
26715 { $as_echo "$as_me:$LINENO: checking size of long" >&5
26716 $as_echo_n "checking size of long... " >&6; }
26717 if test "${ac_cv_sizeof_long+set}" = set; then
26718 $as_echo_n "(cached) " >&6
26720 if test "$cross_compiling" = yes; then
26721 # Depending upon the size, compute the lo and hi bounds.
26722 cat >conftest.$ac_ext <<_ACEOF
26725 cat confdefs.h >>conftest.$ac_ext
26726 cat >>conftest.$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26728 $ac_includes_default
26732 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
26739 rm -f conftest.$ac_objext
26740 if { (ac_try="$ac_compile"
26741 case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26746 $as_echo "$ac_try_echo") >&5
26747 (eval "$ac_compile") 2>conftest.er1
26749 grep -v '^ *+' conftest.er1 >conftest.err
26751 cat conftest.err >&5
26752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); } && {
26754 test -z "$ac_c_werror_flag" ||
26755 test ! -s conftest.err
26756 } && test -s conftest.$ac_objext; then
26759 cat >conftest.$ac_ext <<_ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h. */
26765 $ac_includes_default
26769 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26776 rm -f conftest.$ac_objext
26777 if { (ac_try="$ac_compile"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26783 $as_echo "$ac_try_echo") >&5
26784 (eval "$ac_compile") 2>conftest.er1
26786 grep -v '^ *+' conftest.er1 >conftest.err
26788 cat conftest.err >&5
26789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } && {
26791 test -z "$ac_c_werror_flag" ||
26792 test ! -s conftest.err
26793 } && test -s conftest.$ac_objext; then
26794 ac_hi=$ac_mid; break
26796 $as_echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_lo=`expr $ac_mid + 1`
26800 if test $ac_lo -le $ac_mid; then
26804 ac_mid=`expr 2 '*' $ac_mid + 1`
26807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26810 $as_echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26813 cat >conftest.$ac_ext <<_ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26819 $ac_includes_default
26823 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
26830 rm -f conftest.$ac_objext
26831 if { (ac_try="$ac_compile"
26832 case "(($ac_try" in
26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834 *) ac_try_echo=$ac_try;;
26836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26837 $as_echo "$ac_try_echo") >&5
26838 (eval "$ac_compile") 2>conftest.er1
26840 grep -v '^ *+' conftest.er1 >conftest.err
26842 cat conftest.err >&5
26843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } && {
26845 test -z "$ac_c_werror_flag" ||
26846 test ! -s conftest.err
26847 } && test -s conftest.$ac_objext; then
26850 cat >conftest.$ac_ext <<_ACEOF
26853 cat confdefs.h >>conftest.$ac_ext
26854 cat >>conftest.$ac_ext <<_ACEOF
26855 /* end confdefs.h. */
26856 $ac_includes_default
26860 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26867 rm -f conftest.$ac_objext
26868 if { (ac_try="$ac_compile"
26869 case "(($ac_try" in
26870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871 *) ac_try_echo=$ac_try;;
26873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26874 $as_echo "$ac_try_echo") >&5
26875 (eval "$ac_compile") 2>conftest.er1
26877 grep -v '^ *+' conftest.er1 >conftest.err
26879 cat conftest.err >&5
26880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } && {
26882 test -z "$ac_c_werror_flag" ||
26883 test ! -s conftest.err
26884 } && test -s conftest.$ac_objext; then
26885 ac_lo=$ac_mid; break
26887 $as_echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26890 ac_hi=`expr '(' $ac_mid ')' - 1`
26891 if test $ac_mid -le $ac_hi; then
26895 ac_mid=`expr 2 '*' $ac_mid`
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 $as_echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 # Binary search between lo and hi bounds.
26912 while test "x$ac_lo" != "x$ac_hi"; do
26913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 $ac_includes_default
26924 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26931 rm -f conftest.$ac_objext
26932 if { (ac_try="$ac_compile"
26933 case "(($ac_try" in
26934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935 *) ac_try_echo=$ac_try;;
26937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26938 $as_echo "$ac_try_echo") >&5
26939 (eval "$ac_compile") 2>conftest.er1
26941 grep -v '^ *+' conftest.er1 >conftest.err
26943 cat conftest.err >&5
26944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); } && {
26946 test -z "$ac_c_werror_flag" ||
26947 test ! -s conftest.err
26948 } && test -s conftest.$ac_objext; then
26951 $as_echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26954 ac_lo=`expr '(' $ac_mid ')' + 1`
26957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 ?*) ac_cv_sizeof_long=$ac_lo;;
26961 '') if test "$ac_cv_type_long" = yes; then
26962 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26964 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26965 See \`config.log' for more details." >&5
26966 $as_echo "$as_me: error: cannot compute sizeof (long)
26967 See \`config.log' for more details." >&2;}
26968 { (exit 77); exit 77; }; }; }
26970 ac_cv_sizeof_long=0
26974 cat >conftest.$ac_ext <<_ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26980 $ac_includes_default
26981 static long int longval () { return (long int) (sizeof (long)); }
26982 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26984 #include <stdlib.h>
26989 FILE *f = fopen ("conftest.val", "w");
26992 if (((long int) (sizeof (long))) < 0)
26994 long int i = longval ();
26995 if (i != ((long int) (sizeof (long))))
26997 fprintf (f, "%ld", i);
27001 unsigned long int i = ulongval ();
27002 if (i != ((long int) (sizeof (long))))
27004 fprintf (f, "%lu", i);
27006 /* Do not output a trailing newline, as this causes \r\n confusion
27007 on some platforms. */
27008 return ferror (f) || fclose (f) != 0;
27014 rm -f conftest$ac_exeext
27015 if { (ac_try="$ac_link"
27016 case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27021 $as_echo "$ac_try_echo") >&5
27022 (eval "$ac_link") 2>&5
27024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27026 { (case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27031 $as_echo "$ac_try_echo") >&5
27032 (eval "$ac_try") 2>&5
27034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27036 ac_cv_sizeof_long=`cat conftest.val`
27038 $as_echo "$as_me: program exited with status $ac_status" >&5
27039 $as_echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 ( exit $ac_status )
27043 if test "$ac_cv_type_long" = yes; then
27044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27046 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27047 See \`config.log' for more details." >&5
27048 $as_echo "$as_me: error: cannot compute sizeof (long)
27049 See \`config.log' for more details." >&2;}
27050 { (exit 77); exit 77; }; }; }
27052 ac_cv_sizeof_long=0
27055 rm -rf conftest.dSYM
27056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27060 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27061 $as_echo "$ac_cv_sizeof_long" >&6; }
27065 cat >>confdefs.h <<_ACEOF
27066 #define SIZEOF_LONG $ac_cv_sizeof_long
27070 # The cast to long int works around a bug in the HP C Compiler
27071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27073 # This bug is HP SR number 8606223364.
27074 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27075 $as_echo_n "checking size of size_t... " >&6; }
27076 if test "${ac_cv_sizeof_size_t+set}" = set; then
27077 $as_echo_n "(cached) " >&6
27079 if test "$cross_compiling" = yes; then
27080 # Depending upon the size, compute the lo and hi bounds.
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27087 $ac_includes_default
27091 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27098 rm -f conftest.$ac_objext
27099 if { (ac_try="$ac_compile"
27100 case "(($ac_try" in
27101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27102 *) ac_try_echo=$ac_try;;
27104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27105 $as_echo "$ac_try_echo") >&5
27106 (eval "$ac_compile") 2>conftest.er1
27108 grep -v '^ *+' conftest.er1 >conftest.err
27110 cat conftest.err >&5
27111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); } && {
27113 test -z "$ac_c_werror_flag" ||
27114 test ! -s conftest.err
27115 } && test -s conftest.$ac_objext; then
27118 cat >conftest.$ac_ext <<_ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h. */
27124 $ac_includes_default
27128 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27135 rm -f conftest.$ac_objext
27136 if { (ac_try="$ac_compile"
27137 case "(($ac_try" in
27138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139 *) ac_try_echo=$ac_try;;
27141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27142 $as_echo "$ac_try_echo") >&5
27143 (eval "$ac_compile") 2>conftest.er1
27145 grep -v '^ *+' conftest.er1 >conftest.err
27147 cat conftest.err >&5
27148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } && {
27150 test -z "$ac_c_werror_flag" ||
27151 test ! -s conftest.err
27152 } && test -s conftest.$ac_objext; then
27153 ac_hi=$ac_mid; break
27155 $as_echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27158 ac_lo=`expr $ac_mid + 1`
27159 if test $ac_lo -le $ac_mid; then
27163 ac_mid=`expr 2 '*' $ac_mid + 1`
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 $as_echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27172 cat >conftest.$ac_ext <<_ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h. */
27178 $ac_includes_default
27182 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27196 $as_echo "$ac_try_echo") >&5
27197 (eval "$ac_compile") 2>conftest.er1
27199 grep -v '^ *+' conftest.er1 >conftest.err
27201 cat conftest.err >&5
27202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } && {
27204 test -z "$ac_c_werror_flag" ||
27205 test ! -s conftest.err
27206 } && test -s conftest.$ac_objext; then
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27215 $ac_includes_default
27219 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27226 rm -f conftest.$ac_objext
27227 if { (ac_try="$ac_compile"
27228 case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27233 $as_echo "$ac_try_echo") >&5
27234 (eval "$ac_compile") 2>conftest.er1
27236 grep -v '^ *+' conftest.er1 >conftest.err
27238 cat conftest.err >&5
27239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_c_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest.$ac_objext; then
27244 ac_lo=$ac_mid; break
27246 $as_echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249 ac_hi=`expr '(' $ac_mid ')' - 1`
27250 if test $ac_mid -le $ac_hi; then
27254 ac_mid=`expr 2 '*' $ac_mid`
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260 $as_echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27270 # Binary search between lo and hi bounds.
27271 while test "x$ac_lo" != "x$ac_hi"; do
27272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27273 cat >conftest.$ac_ext <<_ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h. */
27279 $ac_includes_default
27283 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27290 rm -f conftest.$ac_objext
27291 if { (ac_try="$ac_compile"
27292 case "(($ac_try" in
27293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294 *) ac_try_echo=$ac_try;;
27296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27297 $as_echo "$ac_try_echo") >&5
27298 (eval "$ac_compile") 2>conftest.er1
27300 grep -v '^ *+' conftest.er1 >conftest.err
27302 cat conftest.err >&5
27303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } && {
27305 test -z "$ac_c_werror_flag" ||
27306 test ! -s conftest.err
27307 } && test -s conftest.$ac_objext; then
27310 $as_echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 ac_lo=`expr '(' $ac_mid ')' + 1`
27316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27319 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27320 '') if test "$ac_cv_type_size_t" = yes; then
27321 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27323 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27324 See \`config.log' for more details." >&5
27325 $as_echo "$as_me: error: cannot compute sizeof (size_t)
27326 See \`config.log' for more details." >&2;}
27327 { (exit 77); exit 77; }; }; }
27329 ac_cv_sizeof_size_t=0
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 $ac_includes_default
27340 static long int longval () { return (long int) (sizeof (size_t)); }
27341 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
27343 #include <stdlib.h>
27348 FILE *f = fopen ("conftest.val", "w");
27351 if (((long int) (sizeof (size_t))) < 0)
27353 long int i = longval ();
27354 if (i != ((long int) (sizeof (size_t))))
27356 fprintf (f, "%ld", i);
27360 unsigned long int i = ulongval ();
27361 if (i != ((long int) (sizeof (size_t))))
27363 fprintf (f, "%lu", i);
27365 /* Do not output a trailing newline, as this causes \r\n confusion
27366 on some platforms. */
27367 return ferror (f) || fclose (f) != 0;
27373 rm -f conftest$ac_exeext
27374 if { (ac_try="$ac_link"
27375 case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27380 $as_echo "$ac_try_echo") >&5
27381 (eval "$ac_link") 2>&5
27383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27385 { (case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27390 $as_echo "$ac_try_echo") >&5
27391 (eval "$ac_try") 2>&5
27393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; }; then
27395 ac_cv_sizeof_size_t=`cat conftest.val`
27397 $as_echo "$as_me: program exited with status $ac_status" >&5
27398 $as_echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27401 ( exit $ac_status )
27402 if test "$ac_cv_type_size_t" = yes; then
27403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27405 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27406 See \`config.log' for more details." >&5
27407 $as_echo "$as_me: error: cannot compute sizeof (size_t)
27408 See \`config.log' for more details." >&2;}
27409 { (exit 77); exit 77; }; }; }
27411 ac_cv_sizeof_size_t=0
27414 rm -rf conftest.dSYM
27415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27419 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27420 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27424 cat >>confdefs.h <<_ACEOF
27425 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27429 # The cast to long int works around a bug in the HP C Compiler
27430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27432 # This bug is HP SR number 8606223364.
27433 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
27434 $as_echo_n "checking size of socklen_t... " >&6; }
27435 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
27436 $as_echo_n "(cached) " >&6
27438 if test "$cross_compiling" = yes; then
27439 # Depending upon the size, compute the lo and hi bounds.
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 $ac_includes_default
27450 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
27457 rm -f conftest.$ac_objext
27458 if { (ac_try="$ac_compile"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27464 $as_echo "$ac_try_echo") >&5
27465 (eval "$ac_compile") 2>conftest.er1
27467 grep -v '^ *+' conftest.er1 >conftest.err
27469 cat conftest.err >&5
27470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } && {
27472 test -z "$ac_c_werror_flag" ||
27473 test ! -s conftest.err
27474 } && test -s conftest.$ac_objext; then
27477 cat >conftest.$ac_ext <<_ACEOF
27480 cat confdefs.h >>conftest.$ac_ext
27481 cat >>conftest.$ac_ext <<_ACEOF
27482 /* end confdefs.h. */
27483 $ac_includes_default
27487 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
27496 case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27501 $as_echo "$ac_try_echo") >&5
27502 (eval "$ac_compile") 2>conftest.er1
27504 grep -v '^ *+' conftest.er1 >conftest.err
27506 cat conftest.err >&5
27507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } && {
27509 test -z "$ac_c_werror_flag" ||
27510 test ! -s conftest.err
27511 } && test -s conftest.$ac_objext; then
27512 ac_hi=$ac_mid; break
27514 $as_echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27517 ac_lo=`expr $ac_mid + 1`
27518 if test $ac_lo -le $ac_mid; then
27522 ac_mid=`expr 2 '*' $ac_mid + 1`
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27528 $as_echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 $ac_includes_default
27541 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
27548 rm -f conftest.$ac_objext
27549 if { (ac_try="$ac_compile"
27550 case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27555 $as_echo "$ac_try_echo") >&5
27556 (eval "$ac_compile") 2>conftest.er1
27558 grep -v '^ *+' conftest.er1 >conftest.err
27560 cat conftest.err >&5
27561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } && {
27563 test -z "$ac_c_werror_flag" ||
27564 test ! -s conftest.err
27565 } && test -s conftest.$ac_objext; then
27568 cat >conftest.$ac_ext <<_ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h. */
27574 $ac_includes_default
27578 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
27585 rm -f conftest.$ac_objext
27586 if { (ac_try="$ac_compile"
27587 case "(($ac_try" in
27588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589 *) ac_try_echo=$ac_try;;
27591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27592 $as_echo "$ac_try_echo") >&5
27593 (eval "$ac_compile") 2>conftest.er1
27595 grep -v '^ *+' conftest.er1 >conftest.err
27597 cat conftest.err >&5
27598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } && {
27600 test -z "$ac_c_werror_flag" ||
27601 test ! -s conftest.err
27602 } && test -s conftest.$ac_objext; then
27603 ac_lo=$ac_mid; break
27605 $as_echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27608 ac_hi=`expr '(' $ac_mid ')' - 1`
27609 if test $ac_mid -le $ac_hi; then
27613 ac_mid=`expr 2 '*' $ac_mid`
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27619 $as_echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27629 # Binary search between lo and hi bounds.
27630 while test "x$ac_lo" != "x$ac_hi"; do
27631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27632 cat >conftest.$ac_ext <<_ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h. */
27638 $ac_includes_default
27642 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27649 rm -f conftest.$ac_objext
27650 if { (ac_try="$ac_compile"
27651 case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27656 $as_echo "$ac_try_echo") >&5
27657 (eval "$ac_compile") 2>conftest.er1
27659 grep -v '^ *+' conftest.er1 >conftest.err
27661 cat conftest.err >&5
27662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } && {
27664 test -z "$ac_c_werror_flag" ||
27665 test ! -s conftest.err
27666 } && test -s conftest.$ac_objext; then
27669 $as_echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 ac_lo=`expr '(' $ac_mid ')' + 1`
27675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27678 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
27679 '') if test "$ac_cv_type_socklen_t" = yes; then
27680 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27682 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27683 See \`config.log' for more details." >&5
27684 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27685 See \`config.log' for more details." >&2;}
27686 { (exit 77); exit 77; }; }; }
27688 ac_cv_sizeof_socklen_t=0
27692 cat >conftest.$ac_ext <<_ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h. */
27698 $ac_includes_default
27699 static long int longval () { return (long int) (sizeof (socklen_t)); }
27700 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
27702 #include <stdlib.h>
27707 FILE *f = fopen ("conftest.val", "w");
27710 if (((long int) (sizeof (socklen_t))) < 0)
27712 long int i = longval ();
27713 if (i != ((long int) (sizeof (socklen_t))))
27715 fprintf (f, "%ld", i);
27719 unsigned long int i = ulongval ();
27720 if (i != ((long int) (sizeof (socklen_t))))
27722 fprintf (f, "%lu", i);
27724 /* Do not output a trailing newline, as this causes \r\n confusion
27725 on some platforms. */
27726 return ferror (f) || fclose (f) != 0;
27732 rm -f conftest$ac_exeext
27733 if { (ac_try="$ac_link"
27734 case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27739 $as_echo "$ac_try_echo") >&5
27740 (eval "$ac_link") 2>&5
27742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27744 { (case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27749 $as_echo "$ac_try_echo") >&5
27750 (eval "$ac_try") 2>&5
27752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 ac_cv_sizeof_socklen_t=`cat conftest.val`
27756 $as_echo "$as_me: program exited with status $ac_status" >&5
27757 $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 ( exit $ac_status )
27761 if test "$ac_cv_type_socklen_t" = yes; then
27762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27764 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27765 See \`config.log' for more details." >&5
27766 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27767 See \`config.log' for more details." >&2;}
27768 { (exit 77); exit 77; }; }; }
27770 ac_cv_sizeof_socklen_t=0
27773 rm -rf conftest.dSYM
27774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27778 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
27779 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
27783 cat >>confdefs.h <<_ACEOF
27784 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
27791 cat >>confdefs.h <<_ACEOF
27792 #define NFS_STATEDIR "$statedir"
27796 if test "x$cross_compiling" = "xno"; then
27797 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27798 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27799 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27800 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27802 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27803 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27804 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27805 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27823 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
27825 AM_CFLAGS="$my_am_cflags"
27828 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27829 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27832 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 support/nsm/Makefile tools/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/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile tests/Makefile tests/nsm_client/Makefile"
27834 cat >confcache <<\_ACEOF
27835 # This file is a shell script that caches the results of configure
27836 # tests run on this system so they can be shared between configure
27837 # scripts and configure runs, see configure's option --config-cache.
27838 # It is not useful on other systems. If it contains results you don't
27839 # want to keep, you may remove or edit it.
27841 # config.status only pays attention to the cache file if you give it
27842 # the --recheck option to rerun configure.
27844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27846 # following values.
27850 # The following way of writing the cache mishandles newlines in values,
27851 # but we know of no workaround that is simple, portable, and efficient.
27852 # So, we kill variables containing newlines.
27853 # Ultrix sh set writes to stderr and can't be redirected directly,
27854 # and sets the high bit in the cache file unless we assign to the vars.
27856 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27857 eval ac_val=\$$ac_var
27861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27865 _ | IFS | as_nl) ;; #(
27866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27867 *) $as_unset $ac_var ;;
27873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27874 *${as_nl}ac_space=\ *)
27875 # `set' does not quote correctly, so add quotes (double-quote
27876 # substitution turns \\\\ into \\, and sed turns \\ into \).
27879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27882 # `set' quotes correctly as required by POSIX, so do not add quotes.
27883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27897 if test -w "$cache_file"; then
27898 test "x$cache_file" != "x/dev/null" &&
27899 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27900 $as_echo "$as_me: updating cache $cache_file" >&6;}
27901 cat confcache >$cache_file
27903 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27910 # Let make expand exec_prefix.
27911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27913 DEFS=-DHAVE_CONFIG_H
27917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27918 # 1. Remove the extension, and $U if already installed.
27919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27922 # will be set to the directory where LIBOBJS objects are built.
27923 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27924 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27926 LIBOBJS=$ac_libobjs
27928 LTLIBOBJS=$ac_ltlibobjs
27931 if test -n "$EXEEXT"; then
27933 am__EXEEXT_FALSE='#'
27935 am__EXEEXT_TRUE='#'
27939 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27940 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27941 Usually this means the macro was only invoked conditionally." >&5
27942 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27943 Usually this means the macro was only invoked conditionally." >&2;}
27944 { (exit 1); exit 1; }; }
27946 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27947 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27948 Usually this means the macro was only invoked conditionally." >&5
27949 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27950 Usually this means the macro was only invoked conditionally." >&2;}
27951 { (exit 1); exit 1; }; }
27953 if test -z "${CONFIG_NFSV41_TRUE}" && test -z "${CONFIG_NFSV41_FALSE}"; then
27954 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV41\" was never defined.
27955 Usually this means the macro was only invoked conditionally." >&5
27956 $as_echo "$as_me: error: conditional \"CONFIG_NFSV41\" was never defined.
27957 Usually this means the macro was only invoked conditionally." >&2;}
27958 { (exit 1); exit 1; }; }
27960 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27961 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27962 Usually this means the macro was only invoked conditionally." >&5
27963 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27964 Usually this means the macro was only invoked conditionally." >&2;}
27965 { (exit 1); exit 1; }; }
27967 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
27968 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
27969 Usually this means the macro was only invoked conditionally." >&5
27970 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
27971 Usually this means the macro was only invoked conditionally." >&2;}
27972 { (exit 1); exit 1; }; }
27974 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
27975 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
27976 Usually this means the macro was only invoked conditionally." >&5
27977 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
27978 Usually this means the macro was only invoked conditionally." >&2;}
27979 { (exit 1); exit 1; }; }
27981 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
27982 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
27983 Usually this means the macro was only invoked conditionally." >&5
27984 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
27985 Usually this means the macro was only invoked conditionally." >&2;}
27986 { (exit 1); exit 1; }; }
27988 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27989 { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27990 Usually this means the macro was only invoked conditionally." >&5
27991 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27992 Usually this means the macro was only invoked conditionally." >&2;}
27993 { (exit 1); exit 1; }; }
27995 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27996 { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27997 Usually this means the macro was only invoked conditionally." >&5
27998 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27999 Usually this means the macro was only invoked conditionally." >&2;}
28000 { (exit 1); exit 1; }; }
28002 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28003 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28004 Usually this means the macro was only invoked conditionally." >&5
28005 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
28006 Usually this means the macro was only invoked conditionally." >&2;}
28007 { (exit 1); exit 1; }; }
28009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28010 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28011 Usually this means the macro was only invoked conditionally." >&5
28012 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28013 Usually this means the macro was only invoked conditionally." >&2;}
28014 { (exit 1); exit 1; }; }
28016 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28017 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28018 Usually this means the macro was only invoked conditionally." >&5
28019 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28020 Usually this means the macro was only invoked conditionally." >&2;}
28021 { (exit 1); exit 1; }; }
28023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28024 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28025 Usually this means the macro was only invoked conditionally." >&5
28026 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28027 Usually this means the macro was only invoked conditionally." >&2;}
28028 { (exit 1); exit 1; }; }
28030 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28031 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28032 Usually this means the macro was only invoked conditionally." >&5
28033 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28034 Usually this means the macro was only invoked conditionally." >&2;}
28035 { (exit 1); exit 1; }; }
28038 : ${CONFIG_STATUS=./config.status}
28040 ac_clean_files_save=$ac_clean_files
28041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28042 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28044 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28046 # Generated by $as_me.
28047 # Run this file to recreate the current configuration.
28048 # Compiler output produced by configure, useful for debugging
28049 # configure, is in config.log if it exists.
28052 ac_cs_recheck=false
28054 SHELL=\${CONFIG_SHELL-$SHELL}
28057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28058 ## --------------------- ##
28059 ## M4sh Initialization. ##
28060 ## --------------------- ##
28062 # Be more Bourne compatible
28063 DUALCASE=1; export DUALCASE # for MKS sh
28064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28067 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28068 # is contrary to our usage. Disable this feature.
28069 alias -g '${1+"$@"}'='"$@"'
28070 setopt NO_GLOB_SUBST
28072 case `(set -o) 2>/dev/null` in
28073 *posix*) set -o posix ;;
28082 # Avoid depending upon Character Ranges.
28083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28086 as_cr_digits='0123456789'
28087 as_cr_alnum=$as_cr_Letters$as_cr_digits
28092 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28093 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28096 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28097 as_echo='printf %s\n'
28098 as_echo_n='printf %s'
28100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28101 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28102 as_echo_n='/usr/ucb/echo -n'
28104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28105 as_echo_n_body='eval
28109 expr "X$arg" : "X\\(.*\\)$as_nl";
28110 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28112 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28114 export as_echo_n_body
28115 as_echo_n='sh -c $as_echo_n_body as_echo'
28117 export as_echo_body
28118 as_echo='sh -c $as_echo_body as_echo'
28121 # The user is always right.
28122 if test "${PATH_SEPARATOR+set}" != set; then
28124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28130 # Support unset when possible.
28131 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28139 # We need space, tab and new line, in precisely that order. Quoting is
28140 # there to prevent editors from complaining about space-tab.
28141 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28142 # splitting by setting IFS to empty value.)
28145 # Find who we are. Look in the path if we contain no directory separator.
28147 *[\\/]* ) as_myself=$0 ;;
28148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28149 for as_dir in $PATH
28152 test -z "$as_dir" && as_dir=.
28153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28159 # We did not find ourselves, most probably we were run as `sh COMMAND'
28160 # in which case we are not to be found in the path.
28161 if test "x$as_myself" = x; then
28164 if test ! -f "$as_myself"; then
28165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28166 { (exit 1); exit 1; }
28169 # Work around bugs in pre-3.0 UWIN ksh.
28170 for as_var in ENV MAIL MAILPATH
28171 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28183 # Required to use basename.
28184 if expr a : '\(a\)' >/dev/null 2>&1 &&
28185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28192 as_basename=basename
28198 # Name of the executable.
28199 as_me=`$as_basename -- "$0" ||
28200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28201 X"$0" : 'X\(//\)$' \| \
28202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28204 sed '/^.*\/\([^/][^/]*\)\/*$/{
28223 as_lineno_1=$LINENO
28224 as_lineno_2=$LINENO
28225 test "x$as_lineno_1" != "x$as_lineno_2" &&
28226 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28228 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28229 # uniformly replaced by the line number. The first 'sed' inserts a
28230 # line-number line after each line using $LINENO; the second 'sed'
28231 # does the real work. The second script uses 'N' to pair each
28232 # line-number line with the line containing $LINENO, and appends
28233 # trailing '-' during substitution so that $LINENO is not a special
28234 # case at line end.
28235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28236 # scripts with optimization help from Paolo Bonzini. Blame Lee
28237 # E. McMahon (1931-1989) for sed's syntax. :-)
28249 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28252 ' >$as_me.lineno &&
28253 chmod +x "$as_me.lineno" ||
28254 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28255 { (exit 1); exit 1; }; }
28257 # Don't try to exec as it changes $[0], causing all sort of problems
28258 # (the dirname of $[0] is not the place where we might find the
28259 # original and so on. Autoconf is especially sensitive to this).
28260 . "./$as_me.lineno"
28261 # Exit status is that of the last command.
28266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28272 ECHO_C= ECHO_N= ECHO_T=
28273 case `echo -n x` in
28275 case `echo 'x\c'` in
28276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28282 if expr a : '\(a\)' >/dev/null 2>&1 &&
28283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28289 rm -f conf$$ conf$$.exe conf$$.file
28290 if test -d conf$$.dir; then
28291 rm -f conf$$.dir/conf$$.file
28294 mkdir conf$$.dir 2>/dev/null
28296 if (echo >conf$$.file) 2>/dev/null; then
28297 if ln -s conf$$.file conf$$ 2>/dev/null; then
28299 # ... but there are two gotchas:
28300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28302 # In both cases, we have to default to `cp -p'.
28303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28305 elif ln conf$$.file conf$$ 2>/dev/null; then
28313 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28314 rmdir conf$$.dir 2>/dev/null
28316 if mkdir -p . 2>/dev/null; then
28319 test -d ./-p && rmdir ./-p
28323 if test -x / >/dev/null 2>&1; then
28324 as_test_x='test -x'
28326 if ls -dL / >/dev/null 2>&1; then
28333 if test -d "$1"; then
28339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28340 ???[sx]*):;;*)false;;esac;fi
28344 as_executable_p=$as_test_x
28346 # Sed expression to map a string onto a valid CPP name.
28347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28349 # Sed expression to map a string onto a valid variable name.
28350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28355 # Save the log message, to keep $[0] and so on meaningful, and to
28356 # report actual input values of CONFIG_FILES etc. instead of their
28357 # values after options handling.
28359 This file was extended by linux nfs-utils $as_me 1.2.2, which was
28360 generated by GNU Autoconf 2.63. Invocation command line was
28362 CONFIG_FILES = $CONFIG_FILES
28363 CONFIG_HEADERS = $CONFIG_HEADERS
28364 CONFIG_LINKS = $CONFIG_LINKS
28365 CONFIG_COMMANDS = $CONFIG_COMMANDS
28368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28373 case $ac_config_files in *"
28374 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28377 case $ac_config_headers in *"
28378 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28383 # Files that config.status was made for.
28384 config_files="$ac_config_files"
28385 config_headers="$ac_config_headers"
28386 config_commands="$ac_config_commands"
28390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28392 \`$as_me' instantiates files from templates according to the
28393 current configuration.
28395 Usage: $0 [OPTION]... [FILE]...
28397 -h, --help print this help, then exit
28398 -V, --version print version number and configuration settings, then exit
28399 -q, --quiet, --silent
28400 do not print progress messages
28401 -d, --debug don't remove temporary files
28402 --recheck update $as_me by reconfiguring in the same conditions
28403 --file=FILE[:TEMPLATE]
28404 instantiate the configuration file FILE
28405 --header=FILE[:TEMPLATE]
28406 instantiate the configuration header FILE
28408 Configuration files:
28411 Configuration headers:
28414 Configuration commands:
28417 Report bugs to <bug-autoconf@gnu.org>."
28420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28422 linux nfs-utils config.status 1.2.2
28423 configured by $0, generated by GNU Autoconf 2.63,
28424 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28426 Copyright (C) 2008 Free Software Foundation, Inc.
28427 This config.status script is free software; the Free Software Foundation
28428 gives unlimited permission to copy, distribute and modify it."
28435 test -n "\$AWK" || AWK=awk
28438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28439 # The default lists apply if the user does not specify any file.
28445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28446 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28457 # Handling of the options.
28458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28460 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28461 $as_echo "$ac_cs_version"; exit ;;
28462 --debug | --debu | --deb | --de | --d | -d )
28464 --file | --fil | --fi | --f )
28467 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28469 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
28470 ac_need_defaults=false;;
28471 --header | --heade | --head | --hea )
28474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28476 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
28477 ac_need_defaults=false;;
28479 # Conflict between --help and --header
28480 { $as_echo "$as_me: error: ambiguous option: $1
28481 Try \`$0 --help' for more information." >&2
28482 { (exit 1); exit 1; }; };;
28483 --help | --hel | -h )
28484 $as_echo "$ac_cs_usage"; exit ;;
28485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28489 # This is an error.
28490 -*) { $as_echo "$as_me: error: unrecognized option: $1
28491 Try \`$0 --help' for more information." >&2
28492 { (exit 1); exit 1; }; } ;;
28494 *) ac_config_targets="$ac_config_targets $1"
28495 ac_need_defaults=false ;;
28501 ac_configure_extra_args=
28503 if $ac_cs_silent; then
28505 ac_configure_extra_args="$ac_configure_extra_args --silent"
28509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28510 if \$ac_cs_recheck; then
28511 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28513 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28514 CONFIG_SHELL='$SHELL'
28515 export CONFIG_SHELL
28520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28525 ## Running $as_me. ##
28531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28535 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28538 # The HP-UX ksh and POSIX shell print the target directory to stdout
28539 # if CDPATH is set.
28540 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28542 sed_quote_subst='$sed_quote_subst'
28543 double_quote_subst='$double_quote_subst'
28544 delay_variable_subst='$delay_variable_subst'
28545 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28546 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28547 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28548 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28549 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28550 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28551 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28552 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28553 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28554 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28555 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28556 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28557 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28558 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28559 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28560 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28561 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28562 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28563 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28564 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28565 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28566 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28567 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28568 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28569 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28570 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28571 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28572 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28573 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28574 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28575 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28576 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28577 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28578 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28579 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28580 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28581 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28582 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28583 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28584 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28585 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28586 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28587 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28588 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28589 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
28590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28591 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28592 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28593 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28594 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28595 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28596 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28597 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28598 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28599 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28600 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28601 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28602 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28603 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28604 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28605 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28606 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28607 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28608 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28609 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28610 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28611 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28612 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28613 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28614 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28615 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28616 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28617 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28618 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28619 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28620 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28621 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28622 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28623 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28624 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28625 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28626 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28627 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28628 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28629 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28630 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28631 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28632 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28633 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28634 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28635 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28636 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28637 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28638 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28639 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28640 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28641 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28642 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28643 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28644 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28645 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28646 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28647 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28648 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28649 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28650 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28651 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28652 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28653 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28654 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28655 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28656 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28657 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28658 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28659 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28660 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28661 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28662 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28663 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
28664 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28665 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28666 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28667 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28668 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28669 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28670 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28671 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28672 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28673 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28674 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28675 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28676 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28677 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28678 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28679 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28680 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28681 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28682 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28683 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28684 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28685 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28686 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28687 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28688 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28689 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28690 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28691 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28692 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28693 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28694 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28695 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28696 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28697 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28698 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28699 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28700 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28701 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28702 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28703 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28704 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28705 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28706 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28707 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28708 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28709 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28710 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28711 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28712 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28713 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28714 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28715 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28718 LTCFLAGS='$LTCFLAGS'
28719 compiler='$compiler_DEFAULT'
28721 # Quote evaled strings.
28733 deplibs_check_method \
28742 lt_cv_sys_global_symbol_pipe \
28743 lt_cv_sys_global_symbol_to_cdecl \
28744 lt_cv_sys_global_symbol_to_c_name_address \
28745 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28748 lt_prog_compiler_no_builtin_flag \
28749 lt_prog_compiler_wl \
28750 lt_prog_compiler_pic \
28751 lt_prog_compiler_static \
28752 lt_cv_prog_compiler_c_o \
28760 export_dynamic_flag_spec \
28761 whole_archive_flag_spec \
28762 compiler_needs_object \
28764 allow_undefined_flag \
28765 no_undefined_flag \
28766 hardcode_libdir_flag_spec \
28767 hardcode_libdir_flag_spec_ld \
28768 hardcode_libdir_separator \
28773 variables_saved_for_relink \
28775 library_names_spec \
28780 compiler_lib_search_dirs \
28785 compiler_lib_search_path \
28788 lt_prog_compiler_no_builtin_flag_CXX \
28789 lt_prog_compiler_wl_CXX \
28790 lt_prog_compiler_pic_CXX \
28791 lt_prog_compiler_static_CXX \
28792 lt_cv_prog_compiler_c_o_CXX \
28793 export_dynamic_flag_spec_CXX \
28794 whole_archive_flag_spec_CXX \
28795 compiler_needs_object_CXX \
28797 allow_undefined_flag_CXX \
28798 no_undefined_flag_CXX \
28799 hardcode_libdir_flag_spec_CXX \
28800 hardcode_libdir_flag_spec_ld_CXX \
28801 hardcode_libdir_separator_CXX \
28802 fix_srcfile_path_CXX \
28803 exclude_expsyms_CXX \
28804 include_expsyms_CXX \
28805 file_list_spec_CXX \
28806 compiler_lib_search_dirs_CXX \
28807 predep_objects_CXX \
28808 postdep_objects_CXX \
28811 compiler_lib_search_path_CXX; do
28812 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28813 *[\\\\\\\`\\"\\\$]*)
28814 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28817 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28822 # Double-quote double-evaled strings.
28823 for var in reload_cmds \
28824 old_postinstall_cmds \
28825 old_postuninstall_cmds \
28827 extract_expsyms_cmds \
28828 old_archive_from_new_cmds \
28829 old_archive_from_expsyms_cmds \
28831 archive_expsym_cmds \
28833 module_expsym_cmds \
28834 export_symbols_cmds \
28837 postuninstall_cmds \
28839 sys_lib_search_path_spec \
28840 sys_lib_dlsearch_path_spec \
28841 old_archive_cmds_CXX \
28842 old_archive_from_new_cmds_CXX \
28843 old_archive_from_expsyms_cmds_CXX \
28845 archive_expsym_cmds_CXX \
28847 module_expsym_cmds_CXX \
28848 export_symbols_cmds_CXX \
28849 prelink_cmds_CXX; do
28850 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28851 *[\\\\\\\`\\"\\\$]*)
28852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28860 # Fix-up fallback echo if it was mangled by the above quoting rules.
28862 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28866 ac_aux_dir='$ac_aux_dir'
28867 xsi_shell='$xsi_shell'
28868 lt_shell_append='$lt_shell_append'
28870 # See if we are running on zsh, and set the options which allow our
28871 # commands through without removal of \ escapes INIT.
28872 if test -n "\${ZSH_VERSION+set}" ; then
28873 setopt NO_GLOB_SUBST
28879 TIMESTAMP='$TIMESTAMP'
28890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28892 # Handling of arguments.
28893 for ac_config_target in $ac_config_targets
28895 case $ac_config_target in
28896 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28897 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28898 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28899 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28900 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28901 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28902 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28903 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28904 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28905 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28906 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28907 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28908 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28909 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28910 "support/nsm/Makefile") CONFIG_FILES="$CONFIG_FILES support/nsm/Makefile" ;;
28911 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28912 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28913 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28914 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28915 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28916 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28917 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28918 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28919 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28920 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
28921 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28922 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28923 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28924 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28925 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28926 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28927 "tests/nsm_client/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nsm_client/Makefile" ;;
28929 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28930 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28931 { (exit 1); exit 1; }; };;
28936 # If the user did not use the arguments to specify the items to instantiate,
28937 # then the envvar interface is used. Set only those that are not.
28938 # We use the long form for the default assignment because of an extremely
28939 # bizarre bug on SunOS 4.1.3.
28940 if $ac_need_defaults; then
28941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28946 # Have a temporary directory for convenience. Make it in the build tree
28947 # simply because there is no reason against having it here, and in addition,
28948 # creating and moving files from /tmp can sometimes cause problems.
28949 # Hook for its removal unless debugging.
28950 # Note that there is a small window in which the directory will not be cleaned:
28951 # after its creation but before its name has been assigned to `$tmp'.
28955 trap 'exit_status=$?
28956 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28958 trap '{ (exit 1); exit 1; }' 1 2 13 15
28960 # Create a (secure) tmp directory for tmp files.
28963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28964 test -n "$tmp" && test -d "$tmp"
28967 tmp=./conf$$-$RANDOM
28968 (umask 077 && mkdir "$tmp")
28971 $as_echo "$as_me: cannot create a temporary directory in ." >&2
28972 { (exit 1); exit 1; }
28975 # Set up the scripts for CONFIG_FILES section.
28976 # No need to generate them if there are no CONFIG_FILES.
28977 # This happens for instance with `./config.status config.h'.
28978 if test -n "$CONFIG_FILES"; then
28982 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28983 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28986 ac_cs_awk_cr=$ac_cr
28989 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28994 echo "cat >conf$$subs.awk <<_ACEOF" &&
28995 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28997 } >conf$$subs.sh ||
28998 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28999 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29000 { (exit 1); exit 1; }; }
29001 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29003 for ac_last_try in false false false false false :; do
29004 . ./conf$$subs.sh ||
29005 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29006 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29007 { (exit 1); exit 1; }; }
29009 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29010 if test $ac_delim_n = $ac_delim_num; then
29012 elif $ac_last_try; then
29013 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29014 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29015 { (exit 1); exit 1; }; }
29017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29020 rm -f conf$$subs.sh
29022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29023 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29027 s/^/S["/; s/!.*/"]=/
29037 s/\(.\{148\}\).*/\1/
29039 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29051 s/\(.\{148\}\).*/\1/
29053 s/["\\]/\\&/g; s/^/"/; s/$/"/
29057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29062 ' <conf$$subs.awk | sed '
29067 ' >>$CONFIG_STATUS || ac_write_fail=1
29068 rm -f conf$$subs.awk
29069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29071 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29072 for (key in S) S_is_set[key] = 1
29078 nfields = split(line, field, "@")
29080 len = length(field[1])
29081 for (i = 2; i < nfields; i++) {
29083 keylen = length(key)
29084 if (S_is_set[key]) {
29086 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29087 len += length(value) + length(field[++i])
29098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29099 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29100 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29103 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29104 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29105 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29106 { (exit 1); exit 1; }; }
29109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29111 # trailing colons and then remove the whole line if VPATH becomes empty
29112 # (actually we leave an empty line to preserve line numbers).
29113 if test "x$srcdir" = x.; then
29114 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29115 s/:*\$(srcdir):*/:/
29116 s/:*\${srcdir}:*/:/
29118 s/^\([^=]*=[ ]*\):*/\1/
29124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29125 fi # test -n "$CONFIG_FILES"
29127 # Set up the scripts for CONFIG_HEADERS section.
29128 # No need to generate them if there are no CONFIG_HEADERS.
29129 # This happens for instance with `./config.status Makefile'.
29130 if test -n "$CONFIG_HEADERS"; then
29131 cat >"$tmp/defines.awk" <<\_ACAWK ||
29135 # Transform confdefs.h into an awk script `defines.awk', embedded as
29136 # here-document in config.status, that substitutes the proper values into
29137 # config.h.in to produce config.h.
29139 # Create a delimiter string that does not exist in confdefs.h, to ease
29140 # handling of long lines.
29142 for ac_last_try in false false :; do
29143 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29144 if test -z "$ac_t"; then
29146 elif $ac_last_try; then
29147 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29148 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29149 { (exit 1); exit 1; }; }
29151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29155 # For the awk script, D is an array of macro values keyed by name,
29156 # likewise P contains macro parameters if any. Preserve backslash
29157 # newline sequences.
29159 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29161 s/.\{148\}/&'"$ac_delim"'/g
29164 s/^[ ]*#[ ]*define[ ][ ]*/ /
29171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29173 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29178 D["\1"]=" \3\\\\\\n"\\/p
29180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29185 s/.\{148\}/&'"$ac_delim"'/g
29190 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29193 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29195 ' <confdefs.h | sed '
29196 s/'"$ac_delim"'/"\\\
29197 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29200 for (key in D) D_is_set[key] = 1
29203 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29205 split(line, arg, " ")
29206 if (arg[1] == "#") {
29210 defundef = substr(arg[1], 2)
29213 split(mac1, mac2, "(") #)
29215 prefix = substr(line, 1, index(line, defundef) - 1)
29216 if (D_is_set[macro]) {
29217 # Preserve the white space surrounding the "#".
29218 print prefix "define", macro P[macro] D[macro]
29221 # Replace #undef with comments. This is necessary, for example,
29222 # in the case of _POSIX_SOURCE, which is predefined and required
29223 # on some systems where configure will not decide to define it.
29224 if (defundef == "undef") {
29225 print "/*", prefix defundef, macro, "*/"
29233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29234 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29235 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29236 { (exit 1); exit 1; }; }
29237 fi # test -n "$CONFIG_HEADERS"
29240 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29245 :[FHLC]) ac_mode=$ac_tag; continue;;
29247 case $ac_mode$ac_tag in
29249 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29250 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29251 { (exit 1); exit 1; }; };;
29252 :[FH]-) ac_tag=-:-;;
29253 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29270 -) ac_f="$tmp/stdin";;
29271 *) # Look for the file first in the build tree, then in the source tree
29272 # (if the path is not absolute). The absolute path cannot be DOS-style,
29273 # because $ac_f cannot contain `:'.
29277 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29279 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29280 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29281 { (exit 1); exit 1; }; };;
29283 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29284 ac_file_inputs="$ac_file_inputs '$ac_f'"
29287 # Let's still pretend it is `configure' which instantiates (i.e., don't
29288 # use $as_me), people would be surprised to read:
29289 # /* config.h. Generated by config.status. */
29290 configure_input='Generated from '`
29291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29293 if test x"$ac_file" != x-; then
29294 configure_input="$ac_file. $configure_input"
29295 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29296 $as_echo "$as_me: creating $ac_file" >&6;}
29298 # Neutralize special characters interpreted by sed in replacement strings.
29299 case $configure_input in #(
29300 *\&* | *\|* | *\\* )
29301 ac_sed_conf_input=`$as_echo "$configure_input" |
29302 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29303 *) ac_sed_conf_input=$configure_input;;
29307 *:-:* | *:-) cat >"$tmp/stdin" \
29308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29310 { (exit 1); exit 1; }; } ;;
29315 ac_dir=`$as_dirname -- "$ac_file" ||
29316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29317 X"$ac_file" : 'X\(//\)[^/]' \| \
29318 X"$ac_file" : 'X\(//\)$' \| \
29319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29320 $as_echo X"$ac_file" |
29321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29325 /^X\(\/\/\)[^/].*/{
29340 -*) as_dir=./$as_dir;;
29342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29347 *) as_qdir=$as_dir;;
29349 as_dirs="'$as_qdir' $as_dirs"
29350 as_dir=`$as_dirname -- "$as_dir" ||
29351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29352 X"$as_dir" : 'X\(//\)[^/]' \| \
29353 X"$as_dir" : 'X\(//\)$' \| \
29354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29355 $as_echo X"$as_dir" |
29356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29360 /^X\(\/\/\)[^/].*/{
29373 test -d "$as_dir" && break
29375 test -z "$as_dirs" || eval "mkdir $as_dirs"
29376 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29377 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29378 { (exit 1); exit 1; }; }; }
29382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29385 # A ".." for each directory in $ac_dir_suffix.
29386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29387 case $ac_top_builddir_sub in
29388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29392 ac_abs_top_builddir=$ac_pwd
29393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29394 # for backward compatibility:
29395 ac_top_builddir=$ac_top_build_prefix
29398 .) # We are building in place.
29400 ac_top_srcdir=$ac_top_builddir_sub
29401 ac_abs_top_srcdir=$ac_pwd ;;
29402 [\\/]* | ?:[\\/]* ) # Absolute name.
29403 ac_srcdir=$srcdir$ac_dir_suffix;
29404 ac_top_srcdir=$srcdir
29405 ac_abs_top_srcdir=$srcdir ;;
29406 *) # Relative name.
29407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29408 ac_top_srcdir=$ac_top_build_prefix$srcdir
29409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29424 ac_MKDIR_P=$MKDIR_P
29426 [\\/$]* | ?:[\\/]* ) ;;
29427 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29432 # If the template does not know about datarootdir, expand it.
29433 # FIXME: This hack should be removed a few years after 2.60.
29434 ac_datarootdir_hack=; ac_datarootdir_seen=
29447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29448 *datarootdir*) ac_datarootdir_seen=yes;;
29449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29450 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29454 ac_datarootdir_hack='
29455 s&@datadir@&$datadir&g
29456 s&@docdir@&$docdir&g
29457 s&@infodir@&$infodir&g
29458 s&@localedir@&$localedir&g
29459 s&@mandir@&$mandir&g
29460 s&\\\${datarootdir}&$datarootdir&g' ;;
29464 # Neutralize VPATH when `$srcdir' = `.'.
29465 # Shell code in configure.ac might set extrasub.
29466 # FIXME: do we really want to maintain this feature?
29467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29468 ac_sed_extra="$ac_vpsub
29471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29474 s|@configure_input@|$ac_sed_conf_input|;t t
29475 s&@top_builddir@&$ac_top_builddir_sub&;t t
29476 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29477 s&@srcdir@&$ac_srcdir&;t t
29478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29479 s&@top_srcdir@&$ac_top_srcdir&;t t
29480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29481 s&@builddir@&$ac_builddir&;t t
29482 s&@abs_builddir@&$ac_abs_builddir&;t t
29483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29484 s&@INSTALL@&$ac_INSTALL&;t t
29485 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29486 $ac_datarootdir_hack
29488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29489 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29490 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29491 { (exit 1); exit 1; }; }
29493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29496 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29497 which seems to be undefined. Please make sure it is defined." >&5
29498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29499 which seems to be undefined. Please make sure it is defined." >&2;}
29503 -) cat "$tmp/out" && rm -f "$tmp/out";;
29504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29506 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29507 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29508 { (exit 1); exit 1; }; }
29514 if test x"$ac_file" != x-; then
29516 $as_echo "/* $configure_input */" \
29517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29518 } >"$tmp/config.h" \
29519 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29520 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29521 { (exit 1); exit 1; }; }
29522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29523 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29527 mv "$tmp/config.h" "$ac_file" \
29528 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29529 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29530 { (exit 1); exit 1; }; }
29533 $as_echo "/* $configure_input */" \
29534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29535 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29536 $as_echo "$as_me: error: could not create -" >&2;}
29537 { (exit 1); exit 1; }; }
29539 # Compute "$ac_file"'s index in $config_headers.
29542 for _am_header in $config_headers :; do
29543 case $_am_header in
29544 $_am_arg | $_am_arg:* )
29547 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29550 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29551 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29552 X"$_am_arg" : 'X\(//\)[^/]' \| \
29553 X"$_am_arg" : 'X\(//\)$' \| \
29554 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29555 $as_echo X"$_am_arg" |
29556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29560 /^X\(\/\/\)[^/].*/{
29572 s/.*/./; q'`/stamp-h$_am_stamp_count
29575 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29576 $as_echo "$as_me: executing $ac_file commands" >&6;}
29581 case $ac_file$ac_mode in
29582 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29583 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29584 # are listed without --file. Let's play safe and only enable the eval
29585 # if we detect the quoting.
29586 case $CONFIG_FILES in
29587 *\'*) eval set x "$CONFIG_FILES" ;;
29588 *) set x $CONFIG_FILES ;;
29593 # Strip MF so we end up with the name of the file.
29594 mf=`echo "$mf" | sed -e 's/:.*$//'`
29595 # Check whether this is an Automake generated Makefile or not.
29596 # We used to match only the files named `Makefile.in', but
29597 # some people rename them; so instead we look at the file content.
29598 # Grep'ing the first line is not enough: some people post-process
29599 # each Makefile.in and add a new line on top of each file to say so.
29600 # Grep'ing the whole file is not good either: AIX grep has a line
29601 # limit of 2048, but all sed's we know have understand at least 4000.
29602 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29603 dirpart=`$as_dirname -- "$mf" ||
29604 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29605 X"$mf" : 'X\(//\)[^/]' \| \
29606 X"$mf" : 'X\(//\)$' \| \
29607 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29613 /^X\(\/\/\)[^/].*/{
29629 # Extract the definition of DEPDIR, am__include, and am__quote
29630 # from the Makefile without running `make'.
29631 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29632 test -z "$DEPDIR" && continue
29633 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29634 test -z "am__include" && continue
29635 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29636 # When using ansi2knr, U may be empty or an underscore; expand it
29637 U=`sed -n 's/^U = //p' < "$mf"`
29638 # Find all dependency output files, they are included files with
29639 # $(DEPDIR) in their names. We invoke sed twice because it is the
29640 # simplest approach to changing $(DEPDIR) to its actual value in the
29642 for file in `sed -n "
29643 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29644 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29645 # Make sure the directory exists.
29646 test -f "$dirpart/$file" && continue
29647 fdir=`$as_dirname -- "$file" ||
29648 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29649 X"$file" : 'X\(//\)[^/]' \| \
29650 X"$file" : 'X\(//\)$' \| \
29651 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29652 $as_echo X"$file" |
29653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29657 /^X\(\/\/\)[^/].*/{
29670 { as_dir=$dirpart/$fdir
29672 -*) as_dir=./$as_dir;;
29674 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29678 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29679 *) as_qdir=$as_dir;;
29681 as_dirs="'$as_qdir' $as_dirs"
29682 as_dir=`$as_dirname -- "$as_dir" ||
29683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29684 X"$as_dir" : 'X\(//\)[^/]' \| \
29685 X"$as_dir" : 'X\(//\)$' \| \
29686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29687 $as_echo X"$as_dir" |
29688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29692 /^X\(\/\/\)[^/].*/{
29705 test -d "$as_dir" && break
29707 test -z "$as_dirs" || eval "mkdir $as_dirs"
29708 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29709 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29710 { (exit 1); exit 1; }; }; }
29711 # echo "creating $dirpart/$file"
29712 echo '# dummy' > "$dirpart/$file"
29719 # See if we are running on zsh, and set the options which allow our
29720 # commands through without removal of \ escapes.
29721 if test -n "${ZSH_VERSION+set}" ; then
29722 setopt NO_GLOB_SUBST
29725 cfgfile="${ofile}T"
29726 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29729 cat <<_LT_EOF >> "$cfgfile"
29732 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29733 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29735 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29737 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29738 # 2006, 2007, 2008 Free Software Foundation, Inc.
29739 # Written by Gordon Matzigkeit, 1996
29741 # This file is part of GNU Libtool.
29743 # GNU Libtool is free software; you can redistribute it and/or
29744 # modify it under the terms of the GNU General Public License as
29745 # published by the Free Software Foundation; either version 2 of
29746 # the License, or (at your option) any later version.
29748 # As a special exception to the GNU General Public License,
29749 # if you distribute this file as part of a program or library that
29750 # is built using GNU Libtool, you may include this file under the
29751 # same distribution terms that you use for the rest of that program.
29753 # GNU Libtool is distributed in the hope that it will be useful,
29754 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29755 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29756 # GNU General Public License for more details.
29758 # You should have received a copy of the GNU General Public License
29759 # along with GNU Libtool; see the file COPYING. If not, a copy
29760 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29761 # obtained by writing to the Free Software Foundation, Inc.,
29762 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29765 # The names of the tagged configurations supported by this script.
29766 available_tags="CXX "
29768 # ### BEGIN LIBTOOL CONFIG
29770 # Which release of libtool.m4 was used?
29771 macro_version=$macro_version
29772 macro_revision=$macro_revision
29774 # Whether or not to build shared libraries.
29775 build_libtool_libs=$enable_shared
29777 # Whether or not to build static libraries.
29778 build_old_libs=$enable_static
29780 # What type of objects to build.
29783 # Whether or not to optimize for fast installation.
29784 fast_install=$enable_fast_install
29787 host_alias=$host_alias
29791 # The build system.
29792 build_alias=$build_alias
29796 # A sed program that does not truncate output.
29799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29800 Xsed="\$SED -e 1s/^X//"
29802 # A grep program that handles long lines.
29808 # A literal string matcher.
29811 # A BSD- or MS-compatible name lister.
29814 # Whether we need soft or hard links.
29817 # What is the maximum length of a command?
29818 max_cmd_len=$max_cmd_len
29820 # Object file suffix (normally "o").
29823 # Executable file suffix (normally "").
29826 # whether the shell understands "unset".
29829 # turn spaces into newlines.
29832 # turn newlines into spaces.
29835 # How to create reloadable object files.
29836 reload_flag=$lt_reload_flag
29837 reload_cmds=$lt_reload_cmds
29839 # An object symbol dumper.
29840 OBJDUMP=$lt_OBJDUMP
29842 # Method to check whether dependent libraries are shared objects.
29843 deplibs_check_method=$lt_deplibs_check_method
29845 # Command to use when deplibs_check_method == "file_magic".
29846 file_magic_cmd=$lt_file_magic_cmd
29850 AR_FLAGS=$lt_AR_FLAGS
29852 # A symbol stripping program.
29855 # Commands used to install an old-style archive.
29857 old_postinstall_cmds=$lt_old_postinstall_cmds
29858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29863 # LTCC compiler flags.
29864 LTCFLAGS=$lt_CFLAGS
29866 # Take the output of nm and produce a listing of raw symbols and C names.
29867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29869 # Transform the output of nm in a proper C declaration.
29870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29872 # Transform the output of nm in a C name address pair.
29873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29875 # Transform the output of nm in a C name address pair when lib prefix is needed.
29876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29878 # The name of the directory that contains temporary libtool files.
29881 # Shell to use when invoking shell scripts.
29884 # An echo program that does not interpret backslashes.
29887 # Used to examine libraries when file_magic_cmd begins with "file".
29888 MAGIC_CMD=$MAGIC_CMD
29890 # Must we lock files when doing compilation?
29891 need_locks=$lt_need_locks
29893 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29894 DSYMUTIL=$lt_DSYMUTIL
29896 # Tool to change global to local symbols on Mac OS X.
29899 # Tool to manipulate fat objects and archives on Mac OS X.
29902 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29905 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29906 OTOOL64=$lt_OTOOL64
29908 # Old archive suffix (normally "a").
29911 # Shared library suffix (normally ".so").
29912 shrext_cmds=$lt_shrext_cmds
29914 # The commands to extract the exported symbol list from a shared archive.
29915 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29917 # Variables whose values should be saved in libtool wrapper scripts and
29918 # restored at link time.
29919 variables_saved_for_relink=$lt_variables_saved_for_relink
29921 # Do we need the "lib" prefix for modules?
29922 need_lib_prefix=$need_lib_prefix
29924 # Do we need a version for libraries?
29925 need_version=$need_version
29927 # Library versioning type.
29928 version_type=$version_type
29930 # Shared library runtime path variable.
29931 runpath_var=$runpath_var
29933 # Shared library path variable.
29934 shlibpath_var=$shlibpath_var
29936 # Is shlibpath searched before the hard-coded library search path?
29937 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29939 # Format of library name prefix.
29940 libname_spec=$lt_libname_spec
29942 # List of archive names. First name is the real one, the rest are links.
29943 # The last name is the one that the linker finds with -lNAME
29944 library_names_spec=$lt_library_names_spec
29946 # The coded name of the library, if different from the real name.
29947 soname_spec=$lt_soname_spec
29949 # Command to use after installation of a shared archive.
29950 postinstall_cmds=$lt_postinstall_cmds
29952 # Command to use after uninstallation of a shared archive.
29953 postuninstall_cmds=$lt_postuninstall_cmds
29955 # Commands used to finish a libtool library installation in a directory.
29956 finish_cmds=$lt_finish_cmds
29958 # As "finish_cmds", except a single script fragment to be evaled but
29960 finish_eval=$lt_finish_eval
29962 # Whether we should hardcode library paths into libraries.
29963 hardcode_into_libs=$hardcode_into_libs
29965 # Compile-time system search path for libraries.
29966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29968 # Run-time system search path for libraries.
29969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29971 # Whether dlopen is supported.
29972 dlopen_support=$enable_dlopen
29974 # Whether dlopen of programs is supported.
29975 dlopen_self=$enable_dlopen_self
29977 # Whether dlopen of statically linked programs is supported.
29978 dlopen_self_static=$enable_dlopen_self_static
29980 # Commands to strip libraries.
29981 old_striplib=$lt_old_striplib
29982 striplib=$lt_striplib
29985 # The linker used to build libraries.
29988 # Commands used to build an old-style archive.
29989 old_archive_cmds=$lt_old_archive_cmds
29991 # A language specific compiler.
29994 # Is the compiler the GNU compiler?
29997 # Compiler flag to turn off builtin functions.
29998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30000 # How to pass a linker flag through the compiler.
30001 wl=$lt_lt_prog_compiler_wl
30003 # Additional compiler flags for building library objects.
30004 pic_flag=$lt_lt_prog_compiler_pic
30006 # Compiler flag to prevent dynamic linking.
30007 link_static_flag=$lt_lt_prog_compiler_static
30009 # Does compiler simultaneously support -c and -o options?
30010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30012 # Whether or not to add -lc for building shared libraries.
30013 build_libtool_need_lc=$archive_cmds_need_lc
30015 # Whether or not to disallow shared libs when runtime libs are static.
30016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30018 # Compiler flag to allow reflexive dlopens.
30019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30021 # Compiler flag to generate shared objects directly from archives.
30022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30024 # Whether the compiler copes with passing no objects directly.
30025 compiler_needs_object=$lt_compiler_needs_object
30027 # Create an old-style archive from a shared archive.
30028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30030 # Create a temporary old-style archive to link instead of a shared archive.
30031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30033 # Commands used to build a shared archive.
30034 archive_cmds=$lt_archive_cmds
30035 archive_expsym_cmds=$lt_archive_expsym_cmds
30037 # Commands used to build a loadable module if different from building
30038 # a shared archive.
30039 module_cmds=$lt_module_cmds
30040 module_expsym_cmds=$lt_module_expsym_cmds
30042 # Whether we are building with GNU ld or not.
30043 with_gnu_ld=$lt_with_gnu_ld
30045 # Flag that allows shared libraries with undefined symbols to be built.
30046 allow_undefined_flag=$lt_allow_undefined_flag
30048 # Flag that enforces no undefined symbols.
30049 no_undefined_flag=$lt_no_undefined_flag
30051 # Flag to hardcode \$libdir into a binary during linking.
30052 # This must work even if \$libdir does not exist
30053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30055 # If ld is used when linking, flag to hardcode \$libdir into a binary
30056 # during linking. This must work even if \$libdir does not exist.
30057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30059 # Whether we need a single "-rpath" flag with a separated argument.
30060 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30062 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30063 # DIR into the resulting binary.
30064 hardcode_direct=$hardcode_direct
30066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30067 # DIR into the resulting binary and the resulting library dependency is
30068 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30069 # library is relocated.
30070 hardcode_direct_absolute=$hardcode_direct_absolute
30072 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30073 # into the resulting binary.
30074 hardcode_minus_L=$hardcode_minus_L
30076 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30077 # into the resulting binary.
30078 hardcode_shlibpath_var=$hardcode_shlibpath_var
30080 # Set to "yes" if building a shared library automatically hardcodes DIR
30081 # into the library and all subsequent libraries and executables linked
30083 hardcode_automatic=$hardcode_automatic
30085 # Set to yes if linker adds runtime paths of dependent libraries
30086 # to runtime path list.
30087 inherit_rpath=$inherit_rpath
30089 # Whether libtool must link a program against all its dependency libraries.
30090 link_all_deplibs=$link_all_deplibs
30092 # Fix the shell variable \$srcfile for the compiler.
30093 fix_srcfile_path=$lt_fix_srcfile_path
30095 # Set to "yes" if exported symbols are required.
30096 always_export_symbols=$always_export_symbols
30098 # The commands to list exported symbols.
30099 export_symbols_cmds=$lt_export_symbols_cmds
30101 # Symbols that should not be listed in the preloaded symbols.
30102 exclude_expsyms=$lt_exclude_expsyms
30104 # Symbols that must always be exported.
30105 include_expsyms=$lt_include_expsyms
30107 # Commands necessary for linking programs (against libraries) with templates.
30108 prelink_cmds=$lt_prelink_cmds
30110 # Specify filename containing input files.
30111 file_list_spec=$lt_file_list_spec
30113 # How to hardcode a shared library path into an executable.
30114 hardcode_action=$hardcode_action
30116 # The directories searched by this compiler when creating a shared library.
30117 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30119 # Dependencies to place before and after the objects being linked to
30120 # create a shared library.
30121 predep_objects=$lt_predep_objects
30122 postdep_objects=$lt_postdep_objects
30123 predeps=$lt_predeps
30124 postdeps=$lt_postdeps
30126 # The library search path used internally by the compiler when linking
30127 # a shared library.
30128 compiler_lib_search_path=$lt_compiler_lib_search_path
30130 # ### END LIBTOOL CONFIG
30136 cat <<\_LT_EOF >> "$cfgfile"
30137 # AIX sometimes has problems with the GCC collect2 program. For some
30138 # reason, if we set the COLLECT_NAMES environment variable, the problems
30139 # vanish in a puff of smoke.
30140 if test "X${COLLECT_NAMES+set}" != Xset; then
30142 export COLLECT_NAMES
30149 ltmain="$ac_aux_dir/ltmain.sh"
30152 # We use sed instead of cat because bash on DJGPP gets confused if
30153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30154 # text mode, it properly converts lines to CR/LF. This bash problem
30155 # is reportedly fixed, but why not run on old versions too?
30156 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30157 || (rm -f "$cfgfile"; exit 1)
30161 cat << \_LT_EOF >> "$cfgfile"
30163 # func_dirname file append nondir_replacement
30164 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30165 # otherwise set result to NONDIR_REPLACEMENT.
30169 */*) func_dirname_result="${1%/*}${2}" ;;
30170 * ) func_dirname_result="${3}" ;;
30174 # func_basename file
30177 func_basename_result="${1##*/}"
30180 # func_dirname_and_basename file append nondir_replacement
30181 # perform func_basename and func_dirname in a single function
30183 # dirname: Compute the dirname of FILE. If nonempty,
30184 # add APPEND to the result, otherwise set result
30185 # to NONDIR_REPLACEMENT.
30186 # value returned in "$func_dirname_result"
30187 # basename: Compute filename of FILE.
30188 # value retuned in "$func_basename_result"
30189 # Implementation must be kept synchronized with func_dirname
30190 # and func_basename. For efficiency, we do not delegate to
30191 # those functions but instead duplicate the functionality here.
30192 func_dirname_and_basename ()
30195 */*) func_dirname_result="${1%/*}${2}" ;;
30196 * ) func_dirname_result="${3}" ;;
30198 func_basename_result="${1##*/}"
30201 # func_stripname prefix suffix name
30202 # strip PREFIX and SUFFIX off of NAME.
30203 # PREFIX and SUFFIX must not contain globbing or regex special
30204 # characters, hashes, percent signs, but SUFFIX may contain a leading
30205 # dot (in which case that matches only a dot).
30208 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30209 # positional parameters, so assign one to ordinary parameter first.
30210 func_stripname_result=${3}
30211 func_stripname_result=${func_stripname_result#"${1}"}
30212 func_stripname_result=${func_stripname_result%"${2}"}
30218 func_opt_split_opt=${1%%=*}
30219 func_opt_split_arg=${1#*=}
30226 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30227 *) func_lo2o_result=${1} ;;
30231 # func_xform libobj-or-source
30234 func_xform_result=${1%.*}.lo
30237 # func_arith arithmetic-term...
30240 func_arith_result=$(( $* ))
30244 # STRING may not start with a hyphen.
30247 func_len_result=${#1}
30252 *) # Bourne compatible functions.
30253 cat << \_LT_EOF >> "$cfgfile"
30255 # func_dirname file append nondir_replacement
30256 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30257 # otherwise set result to NONDIR_REPLACEMENT.
30260 # Extract subdirectory from the argument.
30261 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30262 if test "X$func_dirname_result" = "X${1}"; then
30263 func_dirname_result="${3}"
30265 func_dirname_result="$func_dirname_result${2}"
30269 # func_basename file
30272 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30276 # func_stripname prefix suffix name
30277 # strip PREFIX and SUFFIX off of NAME.
30278 # PREFIX and SUFFIX must not contain globbing or regex special
30279 # characters, hashes, percent signs, but SUFFIX may contain a leading
30280 # dot (in which case that matches only a dot).
30281 # func_strip_suffix prefix name
30285 .*) func_stripname_result=`$ECHO "X${3}" \
30286 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30287 *) func_stripname_result=`$ECHO "X${3}" \
30288 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30293 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30294 my_sed_long_arg='1s/^-[^=]*=//'
30299 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30300 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30306 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30309 # func_xform libobj-or-source
30312 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
30315 # func_arith arithmetic-term...
30318 func_arith_result=`expr "$@"`
30322 # STRING may not start with a hyphen.
30325 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30331 case $lt_shell_append in
30333 cat << \_LT_EOF >> "$cfgfile"
30335 # func_append var value
30336 # Append VALUE to the end of shell variable VAR.
30344 cat << \_LT_EOF >> "$cfgfile"
30346 # func_append var value
30347 # Append VALUE to the end of shell variable VAR.
30358 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30359 || (rm -f "$cfgfile"; exit 1)
30361 mv -f "$cfgfile" "$ofile" ||
30362 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30366 cat <<_LT_EOF >> "$ofile"
30368 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30370 # The linker used to build libraries.
30373 # Commands used to build an old-style archive.
30374 old_archive_cmds=$lt_old_archive_cmds_CXX
30376 # A language specific compiler.
30377 CC=$lt_compiler_CXX
30379 # Is the compiler the GNU compiler?
30382 # Compiler flag to turn off builtin functions.
30383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30385 # How to pass a linker flag through the compiler.
30386 wl=$lt_lt_prog_compiler_wl_CXX
30388 # Additional compiler flags for building library objects.
30389 pic_flag=$lt_lt_prog_compiler_pic_CXX
30391 # Compiler flag to prevent dynamic linking.
30392 link_static_flag=$lt_lt_prog_compiler_static_CXX
30394 # Does compiler simultaneously support -c and -o options?
30395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30397 # Whether or not to add -lc for building shared libraries.
30398 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30400 # Whether or not to disallow shared libs when runtime libs are static.
30401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30403 # Compiler flag to allow reflexive dlopens.
30404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30406 # Compiler flag to generate shared objects directly from archives.
30407 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30409 # Whether the compiler copes with passing no objects directly.
30410 compiler_needs_object=$lt_compiler_needs_object_CXX
30412 # Create an old-style archive from a shared archive.
30413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30415 # Create a temporary old-style archive to link instead of a shared archive.
30416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30418 # Commands used to build a shared archive.
30419 archive_cmds=$lt_archive_cmds_CXX
30420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30422 # Commands used to build a loadable module if different from building
30423 # a shared archive.
30424 module_cmds=$lt_module_cmds_CXX
30425 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30427 # Whether we are building with GNU ld or not.
30428 with_gnu_ld=$lt_with_gnu_ld_CXX
30430 # Flag that allows shared libraries with undefined symbols to be built.
30431 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30433 # Flag that enforces no undefined symbols.
30434 no_undefined_flag=$lt_no_undefined_flag_CXX
30436 # Flag to hardcode \$libdir into a binary during linking.
30437 # This must work even if \$libdir does not exist
30438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30440 # If ld is used when linking, flag to hardcode \$libdir into a binary
30441 # during linking. This must work even if \$libdir does not exist.
30442 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30444 # Whether we need a single "-rpath" flag with a separated argument.
30445 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30447 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30448 # DIR into the resulting binary.
30449 hardcode_direct=$hardcode_direct_CXX
30451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30452 # DIR into the resulting binary and the resulting library dependency is
30453 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30454 # library is relocated.
30455 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30457 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30458 # into the resulting binary.
30459 hardcode_minus_L=$hardcode_minus_L_CXX
30461 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30462 # into the resulting binary.
30463 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30465 # Set to "yes" if building a shared library automatically hardcodes DIR
30466 # into the library and all subsequent libraries and executables linked
30468 hardcode_automatic=$hardcode_automatic_CXX
30470 # Set to yes if linker adds runtime paths of dependent libraries
30471 # to runtime path list.
30472 inherit_rpath=$inherit_rpath_CXX
30474 # Whether libtool must link a program against all its dependency libraries.
30475 link_all_deplibs=$link_all_deplibs_CXX
30477 # Fix the shell variable \$srcfile for the compiler.
30478 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30480 # Set to "yes" if exported symbols are required.
30481 always_export_symbols=$always_export_symbols_CXX
30483 # The commands to list exported symbols.
30484 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30486 # Symbols that should not be listed in the preloaded symbols.
30487 exclude_expsyms=$lt_exclude_expsyms_CXX
30489 # Symbols that must always be exported.
30490 include_expsyms=$lt_include_expsyms_CXX
30492 # Commands necessary for linking programs (against libraries) with templates.
30493 prelink_cmds=$lt_prelink_cmds_CXX
30495 # Specify filename containing input files.
30496 file_list_spec=$lt_file_list_spec_CXX
30498 # How to hardcode a shared library path into an executable.
30499 hardcode_action=$hardcode_action_CXX
30501 # The directories searched by this compiler when creating a shared library.
30502 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30504 # Dependencies to place before and after the objects being linked to
30505 # create a shared library.
30506 predep_objects=$lt_predep_objects_CXX
30507 postdep_objects=$lt_postdep_objects_CXX
30508 predeps=$lt_predeps_CXX
30509 postdeps=$lt_postdeps_CXX
30511 # The library search path used internally by the compiler when linking
30512 # a shared library.
30513 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30515 # ### END LIBTOOL TAG CONFIG: CXX
30524 { (exit 0); exit 0; }
30526 chmod +x $CONFIG_STATUS
30527 ac_clean_files=$ac_clean_files_save
30529 test $ac_write_fail = 0 ||
30530 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30531 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30532 { (exit 1); exit 1; }; }
30535 # configure is writing to config.log, and then calls config.status.
30536 # config.status does its own redirection, appending to config.log.
30537 # Unfortunately, on DOS this fails, as config.log is still kept open
30538 # by configure, so config.status won't be able to write to it; its
30539 # output is simply discarded. So we exec the FD to /dev/null,
30540 # effectively closing config.log, so it can be properly (re)opened and
30541 # appended to by config.status. When coming back to configure, we
30542 # need to make the FD available again.
30543 if test "$no_create" != yes; then
30545 ac_config_status_args=
30546 test "$silent" = yes &&
30547 ac_config_status_args="$ac_config_status_args --quiet"
30549 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30552 # would make configure fail if this is the last instruction.
30553 $ac_cs_success || { (exit 1); exit 1; }
30555 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30556 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30557 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}