2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for linux nfs-utils 1.2.1.
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.1'
749 PACKAGE_STRING='linux nfs-utils 1.2.1'
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
892 MAINTAINER_MODE_FALSE
902 INSTALL_STRIP_PROGRAM
952 program_transform_name
964 enable_option_checking
965 enable_maintainer_mode
982 enable_dependency_tracking
993 ac_precious_vars='build_alias
1013 # Initialize some variables set by options.
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1027 program_transform_name=s,x,x,
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1065 # If the previous option needs an argument, assign it.
1066 if test -n "$ac_prev"; then
1067 eval $ac_prev=\$ac_option
1073 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077 # Accept the important Cygnus configure options, so we can diagnose typos.
1079 case $ac_dashdash$ac_option in
1083 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1086 bindir=$ac_optarg ;;
1088 -build | --build | --buil | --bui | --bu)
1089 ac_prev=build_alias ;;
1090 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1091 build_alias=$ac_optarg ;;
1093 -cache-file | --cache-file | --cache-fil | --cache-fi \
1094 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1095 ac_prev=cache_file ;;
1096 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1097 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1098 cache_file=$ac_optarg ;;
1100 --config-cache | -C)
1101 cache_file=config.cache ;;
1103 -datadir | --datadir | --datadi | --datad)
1105 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1106 datadir=$ac_optarg ;;
1108 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1109 | --dataroo | --dataro | --datar)
1110 ac_prev=datarootdir ;;
1111 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1112 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1113 datarootdir=$ac_optarg ;;
1115 -disable-* | --disable-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval enable_$ac_useropt=no ;;
1132 -docdir | --docdir | --docdi | --doc | --do)
1134 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135 docdir=$ac_optarg ;;
1137 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1139 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140 dvidir=$ac_optarg ;;
1142 -enable-* | --enable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "enable_$ac_useropt"
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval enable_$ac_useropt=\$ac_optarg ;;
1159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161 | --exec | --exe | --ex)
1162 ac_prev=exec_prefix ;;
1163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165 | --exec=* | --exe=* | --ex=*)
1166 exec_prefix=$ac_optarg ;;
1168 -gas | --gas | --ga | --g)
1169 # Obsolete; use --with-gas.
1172 -help | --help | --hel | --he | -h)
1173 ac_init_help=long ;;
1174 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175 ac_init_help=recursive ;;
1176 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177 ac_init_help=short ;;
1179 -host | --host | --hos | --ho)
1180 ac_prev=host_alias ;;
1181 -host=* | --host=* | --hos=* | --ho=*)
1182 host_alias=$ac_optarg ;;
1184 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188 htmldir=$ac_optarg ;;
1190 -includedir | --includedir | --includedi | --included | --include \
1191 | --includ | --inclu | --incl | --inc)
1192 ac_prev=includedir ;;
1193 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194 | --includ=* | --inclu=* | --incl=* | --inc=*)
1195 includedir=$ac_optarg ;;
1197 -infodir | --infodir | --infodi | --infod | --info | --inf)
1199 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200 infodir=$ac_optarg ;;
1202 -libdir | --libdir | --libdi | --libd)
1204 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205 libdir=$ac_optarg ;;
1207 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208 | --libexe | --libex | --libe)
1209 ac_prev=libexecdir ;;
1210 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211 | --libexe=* | --libex=* | --libe=*)
1212 libexecdir=$ac_optarg ;;
1214 -localedir | --localedir | --localedi | --localed | --locale)
1215 ac_prev=localedir ;;
1216 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217 localedir=$ac_optarg ;;
1219 -localstatedir | --localstatedir | --localstatedi | --localstated \
1220 | --localstate | --localstat | --localsta | --localst | --locals)
1221 ac_prev=localstatedir ;;
1222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224 localstatedir=$ac_optarg ;;
1226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229 mandir=$ac_optarg ;;
1231 -nfp | --nfp | --nf)
1232 # Obsolete; use --without-fp.
1235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236 | --no-cr | --no-c | -n)
1239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245 | --oldin | --oldi | --old | --ol | --o)
1246 ac_prev=oldincludedir ;;
1247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250 oldincludedir=$ac_optarg ;;
1252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255 prefix=$ac_optarg ;;
1257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258 | --program-pre | --program-pr | --program-p)
1259 ac_prev=program_prefix ;;
1260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262 program_prefix=$ac_optarg ;;
1264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265 | --program-suf | --program-su | --program-s)
1266 ac_prev=program_suffix ;;
1267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269 program_suffix=$ac_optarg ;;
1271 -program-transform-name | --program-transform-name \
1272 | --program-transform-nam | --program-transform-na \
1273 | --program-transform-n | --program-transform- \
1274 | --program-transform | --program-transfor \
1275 | --program-transfo | --program-transf \
1276 | --program-trans | --program-tran \
1277 | --progr-tra | --program-tr | --program-t)
1278 ac_prev=program_transform_name ;;
1279 -program-transform-name=* | --program-transform-name=* \
1280 | --program-transform-nam=* | --program-transform-na=* \
1281 | --program-transform-n=* | --program-transform-=* \
1282 | --program-transform=* | --program-transfor=* \
1283 | --program-transfo=* | --program-transf=* \
1284 | --program-trans=* | --program-tran=* \
1285 | --progr-tra=* | --program-tr=* | --program-t=*)
1286 program_transform_name=$ac_optarg ;;
1288 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291 pdfdir=$ac_optarg ;;
1293 -psdir | --psdir | --psdi | --psd | --ps)
1295 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1306 sbindir=$ac_optarg ;;
1308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1310 | --sharedst | --shareds | --shared | --share | --shar \
1312 ac_prev=sharedstatedir ;;
1313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1317 sharedstatedir=$ac_optarg ;;
1319 -site | --site | --sit)
1321 -site=* | --site=* | --sit=*)
1324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1327 srcdir=$ac_optarg ;;
1329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1330 | --syscon | --sysco | --sysc | --sys | --sy)
1331 ac_prev=sysconfdir ;;
1332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1334 sysconfdir=$ac_optarg ;;
1336 -target | --target | --targe | --targ | --tar | --ta | --t)
1337 ac_prev=target_alias ;;
1338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1339 target_alias=$ac_optarg ;;
1341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344 -version | --version | --versio | --versi | --vers | -V)
1345 ac_init_version=: ;;
1348 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1352 { (exit 1); exit 1; }; }
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1362 eval with_$ac_useropt=\$ac_optarg ;;
1364 -without-* | --without-*)
1365 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1369 { (exit 1); exit 1; }; }
1370 ac_useropt_orig=$ac_useropt
1371 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372 case $ac_user_opts in
1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377 ac_unrecognized_sep=', ';;
1379 eval with_$ac_useropt=no ;;
1382 # Obsolete; use --with-x.
1385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386 | --x-incl | --x-inc | --x-in | --x-i)
1387 ac_prev=x_includes ;;
1388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390 x_includes=$ac_optarg ;;
1392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394 ac_prev=x_libraries ;;
1395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397 x_libraries=$ac_optarg ;;
1399 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1400 Try \`$0 --help' for more information." >&2
1401 { (exit 1); exit 1; }; }
1405 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1408 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1409 { (exit 1); exit 1; }; }
1410 eval $ac_envvar=\$ac_optarg
1411 export $ac_envvar ;;
1414 # FIXME: should be removed in autoconf 3.0.
1415 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1416 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1418 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1424 if test -n "$ac_prev"; then
1425 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1427 { (exit 1); exit 1; }; }
1430 if test -n "$ac_unrecognized_opts"; then
1431 case $enable_option_checking in
1433 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1434 { (exit 1); exit 1; }; } ;;
1435 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1439 # Check all directory arguments for consistency.
1440 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1441 datadir sysconfdir sharedstatedir localstatedir includedir \
1442 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1443 libdir localedir mandir
1445 eval ac_val=\$$ac_var
1446 # Remove trailing slashes.
1449 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1450 eval $ac_var=\$ac_val;;
1452 # Be sure to have absolute directory names.
1454 [\\/$]* | ?:[\\/]* ) continue;;
1455 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1458 { (exit 1); exit 1; }; }
1461 # There might be people who depend on the old broken behavior: `$host'
1462 # used to hold the argument of --host etc.
1463 # FIXME: To remove some day.
1466 target=$target_alias
1468 # FIXME: To remove some day.
1469 if test "x$host_alias" != x; then
1470 if test "x$build_alias" = x; then
1471 cross_compiling=maybe
1472 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1473 If a cross compiler is detected then cross compile mode will be used." >&2
1474 elif test "x$build_alias" != "x$host_alias"; then
1480 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482 test "$silent" = yes && exec 6>/dev/null
1485 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486 ac_ls_di=`ls -di .` &&
1487 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1489 { (exit 1); exit 1; }; }
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1492 { (exit 1); exit 1; }; }
1495 # Find the source files, if location was not specified.
1496 if test -z "$srcdir"; then
1497 ac_srcdir_defaulted=yes
1498 # Try the directory containing this script, then the parent directory.
1499 ac_confdir=`$as_dirname -- "$as_myself" ||
1500 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1501 X"$as_myself" : 'X\(//\)[^/]' \| \
1502 X"$as_myself" : 'X\(//\)$' \| \
1503 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1504 $as_echo X"$as_myself" |
1505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1527 ac_srcdir_defaulted=no
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1531 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1532 { (exit 1); exit 1; }; }
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1537 { (exit 1); exit 1; }; }
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1547 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 for ac_var in $ac_precious_vars; do
1550 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_${ac_var}_value=\$${ac_var}
1552 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1557 # Report the --help message.
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1563 \`configure' configures linux nfs-utils 1.2.1 to adapt to many kinds of systems.
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1570 Defaults for the options are specified in brackets.
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print \`checking...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for \`--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1594 For better control, use the options below.
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --libdir=DIR object code libraries [EPREFIX/lib]
1604 --includedir=DIR C header files [PREFIX/include]
1605 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1608 --infodir=DIR info documentation [DATAROOTDIR/info]
1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1610 --mandir=DIR man documentation [DATAROOTDIR/man]
1611 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1612 --htmldir=DIR html documentation [DOCDIR]
1613 --dvidir=DIR dvi documentation [DOCDIR]
1614 --pdfdir=DIR pdf documentation [DOCDIR]
1615 --psdir=DIR ps documentation [DOCDIR]
1621 --program-prefix=PREFIX prepend PREFIX to installed program names
1622 --program-suffix=SUFFIX append SUFFIX to installed program names
1623 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1632 case $ac_init_help in
1633 short | recursive ) echo "Configuration of linux nfs-utils 1.2.1:";;
1638 --disable-option-checking ignore unrecognized --enable/--with options
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-maintainer-mode enable make rules and dependencies not useful
1642 (and sometimes confusing) to the casual installer
1643 --enable-nfsv3 enable support for NFSv3 [default=yes]
1644 --enable-nfsv4 enable support for NFSv4 [default=yes]
1645 --enable-gss enable support for rpcsec_gss [default=yes]
1646 --enable-kprefix install progs as rpc.knfsd etc
1647 --disable-uuid Exclude uuid support to avoid buggy libblkid
1648 --enable-mount Create mount.nfs and don't use the util-linux
1649 mount(8) functionality. [default=yes]
1650 --enable-tirpc enable use of TI-RPC [default=yes]
1651 --enable-ipv6 enable support for IPv6 [default=no]
1652 --enable-mountconfig enable mount to use a configuration file
1653 --disable-dependency-tracking speeds up one-time build
1654 --enable-dependency-tracking do not reject slow dependency extractors
1655 --disable-largefile omit support for large files
1656 --enable-shared[=PKGS] build shared libraries [default=yes]
1657 --enable-static[=PKGS] build static libraries [default=yes]
1658 --enable-fast-install[=PKGS]
1659 optimize for fast installation [default=yes]
1660 --disable-libtool-lock avoid locking (might break parallel builds)
1663 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1664 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1665 --with-release=XXX set release to XXX [1]
1666 --with-statedir=/foo use state dir /foo /var/lib/nfs
1667 --with-statduser=rpcuser
1668 statd to run under [rpcuser or nobody]
1669 --with-start-statd=scriptname
1670 When an nfs filesystems is mounted with locking, run
1672 --with-rpcgen=internal use internal rpcgen instead of system one
1673 --with-mountfile=filename
1674 Using filename as the NFS mount options file
1675 [/etc/nfsmounts.conf]
1676 --with-tirpcinclude=DIR use TI-RPC headers in DIR
1677 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1678 (optionally in PATH)
1679 --with-pic try to use only PIC/non-PIC objects [default=use
1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1682 --with-krb5=DIR use Kerberos v5 installation in DIR
1684 Some influential environment variables:
1685 CC C compiler command
1686 CFLAGS C compiler flags
1687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1688 nonstandard directory <lib dir>
1689 LIBS libraries to pass to the linker, e.g. -l<library>
1690 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1691 you have headers in a nonstandard directory <include dir>
1693 CXX C++ compiler command
1694 CXXFLAGS C++ compiler flags
1695 CXXCPP C++ preprocessor
1696 PKG_CONFIG path to pkg-config utility
1698 C compiler flags for GSSGLUE, overriding pkg-config
1700 linker flags for GSSGLUE, overriding pkg-config
1702 C compiler flags for RPCSECGSS, overriding pkg-config
1704 linker flags for RPCSECGSS, overriding pkg-config
1706 Use these variables to override the choices made by `configure' or to help
1707 it to find libraries and programs with nonstandard names/locations.
1709 Report bugs to <linux-nfs@vger.kernel.org>.
1714 if test "$ac_init_help" = "recursive"; then
1715 # If there are subdirs, report their specific --help.
1716 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1717 test -d "$ac_dir" ||
1718 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1726 # A ".." for each directory in $ac_dir_suffix.
1727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1728 case $ac_top_builddir_sub in
1729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733 ac_abs_top_builddir=$ac_pwd
1734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1735 # for backward compatibility:
1736 ac_top_builddir=$ac_top_build_prefix
1739 .) # We are building in place.
1741 ac_top_srcdir=$ac_top_builddir_sub
1742 ac_abs_top_srcdir=$ac_pwd ;;
1743 [\\/]* | ?:[\\/]* ) # Absolute name.
1744 ac_srcdir=$srcdir$ac_dir_suffix;
1745 ac_top_srcdir=$srcdir
1746 ac_abs_top_srcdir=$srcdir ;;
1748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1749 ac_top_srcdir=$ac_top_build_prefix$srcdir
1750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754 cd "$ac_dir" || { ac_status=$?; continue; }
1755 # Check for guested configure.
1756 if test -f "$ac_srcdir/configure.gnu"; then
1758 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1759 elif test -f "$ac_srcdir/configure"; then
1761 $SHELL "$ac_srcdir/configure" --help=recursive
1763 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 cd "$ac_pwd" || { ac_status=$?; break; }
1769 test -n "$ac_init_help" && exit $ac_status
1770 if $ac_init_version; then
1772 linux nfs-utils configure 1.2.1
1773 generated by GNU Autoconf 2.63
1775 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1776 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1782 cat >config.log <<_ACEOF
1783 This file contains any messages produced by compilers while
1784 running configure, to aid debugging if configure makes a mistake.
1786 It was created by linux nfs-utils $as_me 1.2.1, which was
1787 generated by GNU Autoconf 2.63. Invocation command line was
1799 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1805 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1808 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1809 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1810 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1812 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1813 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1814 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir=.
1823 $as_echo "PATH: $as_dir"
1839 # Keep a trace of the command line.
1840 # Strip out --no-create and --no-recursion so they do not pile up.
1841 # Strip out --silent because we don't want to record it for future runs.
1842 # Also quote any args containing shell meta-characters.
1843 # Make two passes to allow for proper duplicate-argument suppression.
1847 ac_must_keep_next=false
1853 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855 | -silent | --silent | --silen | --sile | --sil)
1858 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1863 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1864 if test $ac_must_keep_next = true; then
1865 ac_must_keep_next=false # Got value, back to normal.
1868 *=* | --config-cache | -C | -disable-* | --disable-* \
1869 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871 | -with-* | --with-* | -without-* | --without-* | --x)
1872 case "$ac_configure_args0 " in
1873 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1876 -* ) ac_must_keep_next=true ;;
1879 ac_configure_args="$ac_configure_args '$ac_arg'"
1884 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1885 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1887 # When interrupted or exit'd, cleanup temporary files, and complete
1888 # config.log. We remove comments because anyway the quotes in there
1889 # would cause problems or look ugly.
1890 # WARNING: Use '\'' to represent an apostrophe within the trap.
1891 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892 trap 'exit_status=$?
1893 # Save into config.log some information that might help in debugging.
1898 ## ---------------- ##
1899 ## Cache variables. ##
1900 ## ---------------- ##
1903 # The following way of writing the cache mishandles newlines in values,
1905 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1906 eval ac_val=\$$ac_var
1910 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1914 _ | IFS | as_nl) ;; #(
1915 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1916 *) $as_unset $ac_var ;;
1921 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1922 *${as_nl}ac_space=\ *)
1924 "s/'\''/'\''\\\\'\'''\''/g;
1925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936 ## ----------------- ##
1937 ## Output variables. ##
1938 ## ----------------- ##
1941 for ac_var in $ac_subst_vars
1943 eval ac_val=\$$ac_var
1945 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1947 $as_echo "$ac_var='\''$ac_val'\''"
1951 if test -n "$ac_subst_files"; then
1953 ## ------------------- ##
1954 ## File substitutions. ##
1955 ## ------------------- ##
1958 for ac_var in $ac_subst_files
1960 eval ac_val=\$$ac_var
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 $as_echo "$ac_var='\''$ac_val'\''"
1969 if test -s confdefs.h; then
1979 test "$ac_signal" != 0 &&
1980 $as_echo "$as_me: caught signal $ac_signal"
1981 $as_echo "$as_me: exit $exit_status"
1983 rm -f core *.core core.conftest.* &&
1984 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987 for ac_signal in 1 2 13 15; do
1988 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1993 rm -f -r conftest* confdefs.h
1995 # Predefined preprocessor variables.
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_NAME "$PACKAGE_NAME"
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer an explicitly selected file to automatically selected ones.
2026 if test -n "$CONFIG_SITE"; then
2027 ac_site_file1=$CONFIG_SITE
2028 elif test "x$prefix" != xNONE; then
2029 ac_site_file1=$prefix/share/config.site
2030 ac_site_file2=$prefix/etc/config.site
2032 ac_site_file1=$ac_default_prefix/share/config.site
2033 ac_site_file2=$ac_default_prefix/etc/config.site
2035 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2037 test "x$ac_site_file" = xNONE && continue
2038 if test -r "$ac_site_file"; then
2039 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2040 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2041 sed 's/^/| /' "$ac_site_file" >&5
2046 if test -r "$cache_file"; then
2047 # Some versions of bash will fail to source /dev/null (special
2048 # files actually), so we avoid doing that.
2049 if test -f "$cache_file"; then
2050 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2051 $as_echo "$as_me: loading cache $cache_file" >&6;}
2053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054 *) . "./$cache_file";;
2058 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2059 $as_echo "$as_me: creating cache $cache_file" >&6;}
2063 # Check that the precious variables saved in the cache have kept the same
2065 ac_cache_corrupted=false
2066 for ac_var in $ac_precious_vars; do
2067 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2068 eval ac_new_set=\$ac_env_${ac_var}_set
2069 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2070 eval ac_new_val=\$ac_env_${ac_var}_value
2071 case $ac_old_set,$ac_new_set in
2073 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2074 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2077 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2078 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2079 ac_cache_corrupted=: ;;
2082 if test "x$ac_old_val" != "x$ac_new_val"; then
2083 # differences in whitespace do not lead to failure.
2084 ac_old_val_w=`echo x $ac_old_val`
2085 ac_new_val_w=`echo x $ac_new_val`
2086 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2087 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2088 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2089 ac_cache_corrupted=:
2091 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2092 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2093 eval $ac_var=\$ac_old_val
2095 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2096 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2097 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2098 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2101 # Pass precious variables to config.status.
2102 if test "$ac_new_set" = set; then
2104 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 *) ac_arg=$ac_var=$ac_new_val ;;
2107 case " $ac_configure_args " in
2108 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2109 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2113 if $ac_cache_corrupted; then
2114 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2116 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2117 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2118 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2119 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2120 { (exit 1); exit 1; }; }
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2156 if test -f "$ac_dir/install-sh"; then
2158 ac_install_sh="$ac_aux_dir/install-sh -c"
2160 elif test -f "$ac_dir/install.sh"; then
2162 ac_install_sh="$ac_aux_dir/install.sh -c"
2164 elif test -f "$ac_dir/shtool"; then
2166 ac_install_sh="$ac_aux_dir/shtool install -c"
2170 if test -z "$ac_aux_dir"; then
2171 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2172 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2173 { (exit 1); exit 1; }; }
2176 # These three variables are undocumented and unsupported,
2177 # and are intended to be withdrawn in a future Autoconf release.
2178 # They can cause serious problems if a builder's source tree is in a directory
2179 # whose full name contains unusual characters.
2180 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2181 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2182 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2185 # Make sure we can run config.sub.
2186 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2187 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2188 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2189 { (exit 1); exit 1; }; }
2191 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2192 $as_echo_n "checking build system type... " >&6; }
2193 if test "${ac_cv_build+set}" = set; then
2194 $as_echo_n "(cached) " >&6
2196 ac_build_alias=$build_alias
2197 test "x$ac_build_alias" = x &&
2198 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2199 test "x$ac_build_alias" = x &&
2200 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2201 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2202 { (exit 1); exit 1; }; }
2203 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2204 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2205 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2206 { (exit 1); exit 1; }; }
2209 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2210 $as_echo "$ac_cv_build" >&6; }
2211 case $ac_cv_build in
2213 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2214 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2215 { (exit 1); exit 1; }; };;
2218 ac_save_IFS=$IFS; IFS='-'
2224 # Remember, the first character of IFS is used to create $*,
2225 # except with old shells:
2228 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2231 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2232 $as_echo_n "checking host system type... " >&6; }
2233 if test "${ac_cv_host+set}" = set; then
2234 $as_echo_n "(cached) " >&6
2236 if test "x$host_alias" = x; then
2237 ac_cv_host=$ac_cv_build
2239 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2240 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2241 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2242 { (exit 1); exit 1; }; }
2246 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2247 $as_echo "$ac_cv_host" >&6; }
2250 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2251 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2252 { (exit 1); exit 1; }; };;
2255 ac_save_IFS=$IFS; IFS='-'
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2265 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2269 am__api_version='1.11'
2271 # Find a good install program. We prefer a C program (faster),
2272 # so one script is as good as another. But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 # Reject install programs that cannot install multiple files.
2285 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289 $as_echo_n "(cached) " >&6
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 # Account for people who put trailing slashes in PATH elements.
2298 ./ | .// | /cC/* | \
2299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303 # OSF1 and SCO ODT 3.0 have their own names for install.
2304 # Don't use installbsd from OSF since it installs stuff as root
2306 for ac_prog in ginstall scoinst install; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309 if test $ac_prog = install &&
2310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # AIX install. It has an incompatible calling convention.
2313 elif test $ac_prog = install &&
2314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # program-specific install script used by HP pwplus--don't use.
2318 rm -rf conftest.one conftest.two conftest.dir
2319 echo one > conftest.one
2320 echo two > conftest.two
2322 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2323 test -s conftest.one && test -s conftest.two &&
2324 test -s conftest.dir/conftest.one &&
2325 test -s conftest.dir/conftest.two
2327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2340 rm -rf conftest.one conftest.two conftest.dir
2343 if test "${ac_cv_path_install+set}" = set; then
2344 INSTALL=$ac_cv_path_install
2346 # As a last resort, use the slow shell script. Don't cache a
2347 # value for INSTALL within a source directory, because that will
2348 # break other packages using the cache if that directory is
2349 # removed, or if the value is a relative name.
2350 INSTALL=$ac_install_sh
2353 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2354 $as_echo "$INSTALL" >&6; }
2356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357 # It thinks the first close brace ends the variable substitution.
2358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2364 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2365 $as_echo_n "checking whether build environment is sane... " >&6; }
2368 echo timestamp > conftest.file
2369 # Reject unsafe characters in $srcdir or the absolute working directory
2370 # name. Accept space and tab only in the latter.
2374 *[\\\"\#\$\&\'\`$am_lf]*)
2375 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2376 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2377 { (exit 1); exit 1; }; };;
2380 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2381 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2382 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2383 { (exit 1); exit 1; }; };;
2386 # Do `set' in a subshell so we don't clobber the current shell's
2387 # arguments. Must try -L first in case configure is actually a
2388 # symlink; some systems play weird games with the mod time of symlinks
2389 # (eg FreeBSD returns the mod time of the symlink's containing
2392 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2393 if test "$*" = "X"; then
2395 set X `ls -t "$srcdir/configure" conftest.file`
2398 if test "$*" != "X $srcdir/configure conftest.file" \
2399 && test "$*" != "X conftest.file $srcdir/configure"; then
2401 # If neither matched, then we have a broken ls. This can happen
2402 # if, for instance, CONFIG_SHELL is bash and it inherits a
2403 # broken ls alias from the environment. This has actually
2404 # happened. Such a system could not be considered "sane".
2405 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2406 alias in your environment" >&5
2407 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2408 alias in your environment" >&2;}
2409 { (exit 1); exit 1; }; }
2412 test "$2" = conftest.file
2418 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2419 Check your system clock" >&5
2420 $as_echo "$as_me: error: newly created file is older than distributed files!
2421 Check your system clock" >&2;}
2422 { (exit 1); exit 1; }; }
2424 { $as_echo "$as_me:$LINENO: result: yes" >&5
2425 $as_echo "yes" >&6; }
2426 test "$program_prefix" != NONE &&
2427 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428 # Use a double $ so make ignores it.
2429 test "$program_suffix" != NONE &&
2430 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431 # Double any \ or $.
2432 # By default was `s,x,x', remove it if useless.
2433 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436 # expand $ac_aux_dir to an absolute path
2437 am_aux_dir=`cd $ac_aux_dir && pwd`
2439 if test x"${MISSING+set}" != xset; then
2442 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 # Use eval to expand $SHELL
2448 if eval "$MISSING --run true"; then
2449 am_missing_run="$MISSING --run "
2452 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2453 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2456 if test x"${install_sh}" != xset; then
2459 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 install_sh="\${SHELL} $am_aux_dir/install-sh"
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'. However `strip' might not be the right
2467 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2469 if test "$cross_compiling" != no; then
2470 if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}strip; ac_word=$2
2473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_prog_STRIP+set}" = set; then
2476 $as_echo_n "(cached) " >&6
2478 if test -n "$STRIP"; then
2479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 STRIP=$ac_cv_prog_STRIP
2499 if test -n "$STRIP"; then
2500 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501 $as_echo "$STRIP" >&6; }
2503 { $as_echo "$as_me:$LINENO: result: no" >&5
2504 $as_echo "no" >&6; }
2509 if test -z "$ac_cv_prog_STRIP"; then
2511 # Extract the first word of "strip", so it can be a program name with args.
2512 set dummy strip; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$ac_ct_STRIP"; then
2519 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_ac_ct_STRIP="strip"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539 if test -n "$ac_ct_STRIP"; then
2540 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541 $as_echo "$ac_ct_STRIP" >&6; }
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2547 if test "x$ac_ct_STRIP" = x; then
2550 case $cross_compiling:$ac_tool_warned in
2552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554 ac_tool_warned=yes ;;
2559 STRIP="$ac_cv_prog_STRIP"
2563 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2566 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2567 if test -z "$MKDIR_P"; then
2568 if test "${ac_cv_path_mkdir+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 test -z "$as_dir" && as_dir=.
2576 for ac_prog in mkdir gmkdir; do
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2579 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2580 'mkdir (GNU coreutils) '* | \
2581 'mkdir (coreutils) '* | \
2582 'mkdir (fileutils) '4.1*)
2583 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2593 if test "${ac_cv_path_mkdir+set}" = set; then
2594 MKDIR_P="$ac_cv_path_mkdir -p"
2596 # As a last resort, use the slow shell script. Don't cache a
2597 # value for MKDIR_P within a source directory, because that will
2598 # break other packages using the cache if that directory is
2599 # removed, or if the value is a relative name.
2600 test -d ./--version && rmdir ./--version
2601 MKDIR_P="$ac_install_sh -d"
2604 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2605 $as_echo "$MKDIR_P" >&6; }
2609 [\\/$]* | ?:[\\/]*) ;;
2610 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2613 for ac_prog in gawk mawk nawk awk
2615 # Extract the first word of "$ac_prog", so it can be a program name with args.
2616 set dummy $ac_prog; ac_word=$2
2617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if test "${ac_cv_prog_AWK+set}" = set; then
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$AWK"; then
2623 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_AWK="$ac_prog"
2633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$AWK"; then
2644 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2645 $as_echo "$AWK" >&6; }
2647 { $as_echo "$as_me:$LINENO: result: no" >&5
2648 $as_echo "no" >&6; }
2652 test -n "$AWK" && break
2655 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2656 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2658 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2659 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2660 $as_echo_n "(cached) " >&6
2662 cat >conftest.make <<\_ACEOF
2665 @echo '@@@%%%=$(MAKE)=@@@%%%'
2667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2668 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2670 eval ac_cv_prog_make_${ac_make}_set=yes;;
2672 eval ac_cv_prog_make_${ac_make}_set=no;;
2676 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2677 { $as_echo "$as_me:$LINENO: result: yes" >&5
2678 $as_echo "yes" >&6; }
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683 SET_MAKE="MAKE=${MAKE-make}"
2686 rm -rf .tst 2>/dev/null
2687 mkdir .tst 2>/dev/null
2688 if test -d .tst; then
2693 rmdir .tst 2>/dev/null
2695 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2696 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2697 # is not polluted with repeated "-I."
2698 am__isrc=' -I$(srcdir)'
2699 # test to see if srcdir already configured
2700 if test -f $srcdir/config.status; then
2701 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2702 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2703 { (exit 1); exit 1; }; }
2707 # test whether we have cygpath
2708 if test -z "$CYGPATH_W"; then
2709 if (cygpath --version) >/dev/null 2>/dev/null; then
2710 CYGPATH_W='cygpath -w'
2717 # Define the identity of the package.
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE "$PACKAGE"
2727 cat >>confdefs.h <<_ACEOF
2728 #define VERSION "$VERSION"
2731 # Some tools Automake needs.
2733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2747 # We need awk for the "check" target. The system "awk" is bad on
2749 # Always define AMTAR for backward compatibility.
2751 AMTAR=${AMTAR-"${am_missing_run}tar"}
2753 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2762 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2763 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2764 # Check whether --enable-maintainer-mode was given.
2765 if test "${enable_maintainer_mode+set}" = set; then
2766 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2768 USE_MAINTAINER_MODE=no
2771 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2772 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2773 if test $USE_MAINTAINER_MODE = yes; then
2774 MAINTAINER_MODE_TRUE=
2775 MAINTAINER_MODE_FALSE='#'
2777 MAINTAINER_MODE_TRUE='#'
2778 MAINTAINER_MODE_FALSE=
2781 MAINT=$MAINTAINER_MODE_TRUE
2786 # Check whether --with-release was given.
2787 if test "${with_release+set}" = set; then
2788 withval=$with_release; RELEASE=$withval
2795 # Check whether --with-statedir was given.
2796 if test "${with_statedir+set}" = set; then
2797 withval=$with_statedir; statedir=$withval
2799 statedir=/var/lib/nfs
2804 # Check whether --with-statduser was given.
2805 if test "${with_statduser+set}" = set; then
2806 withval=$with_statduser; statduser=$withval
2808 if test "x$cross_compiling" = "xno"; then
2809 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2821 # Check whether --with-start-statd was given.
2822 if test "${with_start_statd+set}" = set; then
2823 withval=$with_start_statd; startstatd=$withval
2825 startstatd=/usr/sbin/start-statd
2831 cat >>confdefs.h <<_ACEOF
2832 #define START_STATD "$startstatd"
2835 # Check whether --enable-nfsv3 was given.
2836 if test "${enable_nfsv3+set}" = set; then
2837 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2842 if test "$enable_nfsv3" = yes; then
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NFS3_SUPPORTED 1
2852 # Check whether --enable-nfsv4 was given.
2853 if test "${enable_nfsv4+set}" = set; then
2854 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2859 if test "$enable_nfsv4" = yes; then
2861 cat >>confdefs.h <<\_ACEOF
2862 #define NFS4_SUPPORTED 1
2872 if test "$enable_nfsv4" = "yes"; then
2874 CONFIG_NFSV4_FALSE='#'
2876 CONFIG_NFSV4_TRUE='#'
2880 # Check whether --enable-gss was given.
2881 if test "${enable_gss+set}" = set; then
2882 enableval=$enable_gss; enable_gss=$enableval
2887 if test "$enable_gss" = yes; then
2889 cat >>confdefs.h <<\_ACEOF
2890 #define GSS_SUPPORTED 1
2903 if test "$enable_gss" = "yes"; then
2905 CONFIG_GSS_FALSE='#'
2911 # Check whether --enable-kprefix was given.
2912 if test "${enable_kprefix+set}" = set; then
2913 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2920 # Check whether --with-rpcgen was given.
2921 if test "${with_rpcgen+set}" = set; then
2922 withval=$with_rpcgen; rpcgen_path=$withval
2928 if test "$rpcgen_path" == "yes"; then
2929 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2930 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2931 elif test "$rpcgen_path" != "internal"; then
2932 RPCGEN_PATH=$rpcgen_path
2935 if test "$RPCGEN_PATH" == ""; then
2937 CONFIG_RPCGEN_FALSE='#'
2939 CONFIG_RPCGEN_TRUE='#'
2940 CONFIG_RPCGEN_FALSE=
2943 # Check whether --enable-uuid was given.
2944 if test "${enable_uuid+set}" = set; then
2945 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2947 choose_blkid=default
2950 # Check whether --enable-mount was given.
2951 if test "${enable_mount+set}" = set; then
2952 enableval=$enable_mount; enable_mount=$enableval
2957 if test "$enable_mount" = "yes"; then
2959 CONFIG_MOUNT_FALSE='#'
2961 CONFIG_MOUNT_TRUE='#'
2965 # Check whether --enable-tirpc was given.
2966 if test "${enable_tirpc+set}" = set; then
2967 enableval=$enable_tirpc; enable_tirpc=$enableval
2972 # Check whether --enable-ipv6 was given.
2973 if test "${enable_ipv6+set}" = set; then
2974 enableval=$enable_ipv6; enable_ipv6=$enableval
2979 if test "$enable_ipv6" = yes; then
2981 cat >>confdefs.h <<\_ACEOF
2982 #define IPV6_SUPPORTED 1
2989 if test "$enable_ipv6" = "yes"; then
2991 CONFIG_IPV6_FALSE='#'
2993 CONFIG_IPV6_TRUE='#'
2998 if test "$enable_mount" = yes; then
2999 # Check whether --enable-mountconfig was given.
3000 if test "${enable_mountconfig+set}" = set; then
3001 enableval=$enable_mountconfig; mountconfig=$enableval
3006 if test "$enable_mountconfig" = yes; then
3008 cat >>confdefs.h <<\_ACEOF
3009 #define MOUNT_CONFIG 1
3013 # Check whether --with-mountfile was given.
3014 if test "${with_mountfile+set}" = set; then
3015 withval=$with_mountfile; mountfile=$withval
3017 mountfile=/etc/nfsmount.conf
3022 cat >>confdefs.h <<_ACEOF
3023 #define MOUNTOPTS_CONFFILE "$mountfile"
3030 if test "$enable_mountconfig" = "yes"; then
3032 MOUNT_CONFIG_FALSE='#'
3034 MOUNT_CONFIG_TRUE='#'
3039 if test "$enable_mount" = "yes"; then
3041 MOUNT_CONFIG_FALSE='#'
3043 MOUNT_CONFIG_TRUE='#'
3049 DEPDIR="${am__leading_dot}deps"
3051 ac_config_commands="$ac_config_commands depfiles"
3054 am_make=${MAKE-make}
3055 cat > confinc << 'END'
3057 @echo this is the am__doit target
3060 # If we don't find an include directive, just comment out the code.
3061 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3066 # First try GNU make style include.
3067 echo "include confinc" > confmf
3068 # Ignore all kinds of additional output from `make'.
3069 case `$am_make -s -f confmf 2> /dev/null` in #(
3070 *the\ am__doit\ target*)
3076 # Now try BSD make style include.
3077 if test "$am__include" = "#"; then
3078 echo '.include "confinc"' > confmf
3079 case `$am_make -s -f confmf 2> /dev/null` in #(
3080 *the\ am__doit\ target*)
3081 am__include=.include
3089 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3090 $as_echo "$_am_result" >&6; }
3091 rm -f confinc confmf
3093 # Check whether --enable-dependency-tracking was given.
3094 if test "${enable_dependency_tracking+set}" = set; then
3095 enableval=$enable_dependency_tracking;
3098 if test "x$enable_dependency_tracking" != xno; then
3099 am_depcomp="$ac_aux_dir/depcomp"
3102 if test "x$enable_dependency_tracking" != xno; then
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if test "${ac_cv_prog_CC+set}" = set; then
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3149 { $as_echo "$as_me:$LINENO: result: no" >&5
3150 $as_echo "no" >&6; }
3155 if test -z "$ac_cv_prog_CC"; then
3157 # Extract the first word of "gcc", so it can be a program name with args.
3158 set dummy gcc; ac_word=$2
3159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3164 if test -n "$ac_ct_CC"; then
3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_CC="gcc"
3175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3189 { $as_echo "$as_me:$LINENO: result: no" >&5
3190 $as_echo "no" >&6; }
3193 if test "x$ac_ct_CC" = x; then
3196 case $cross_compiling:$ac_tool_warned in
3198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3208 if test -z "$CC"; then
3209 if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}cc; ac_word=$2
3212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_CC+set}" = set; then
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_CC="${ac_tool_prefix}cc"
3228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 if test -n "$CC"; then
3239 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3240 $as_echo "$CC" >&6; }
3242 { $as_echo "$as_me:$LINENO: result: no" >&5
3243 $as_echo "no" >&6; }
3249 if test -z "$CC"; then
3250 # Extract the first word of "cc", so it can be a program name with args.
3251 set dummy cc; ac_word=$2
3252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 $as_echo_n "(cached) " >&6
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3269 ac_prog_rejected=yes
3273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 if test $ac_prog_rejected = yes; then
3281 # We found a bogon in the path, so make sure we never use it.
3282 set dummy $ac_cv_prog_CC
3284 if test $# != 0; then
3285 # We chose a different compiler from the bogus one.
3286 # However, it has the same basename, so the bogon will be chosen
3287 # first if we set CC to just the basename; use the full file name.
3289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3295 if test -n "$CC"; then
3296 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3299 { $as_echo "$as_me:$LINENO: result: no" >&5
3300 $as_echo "no" >&6; }
3305 if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 for ac_prog in cl.exe
3309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if test "${ac_cv_prog_CC+set}" = set; then
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:$LINENO: result: no" >&5
3342 $as_echo "no" >&6; }
3346 test -n "$CC" && break
3349 if test -z "$CC"; then
3351 for ac_prog in cl.exe
3353 # Extract the first word of "$ac_prog", so it can be a program name with args.
3354 set dummy $ac_prog; ac_word=$2
3355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3358 $as_echo_n "(cached) " >&6
3360 if test -n "$ac_ct_CC"; then
3361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_ac_ct_CC="$ac_prog"
3371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3381 if test -n "$ac_ct_CC"; then
3382 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3383 $as_echo "$ac_ct_CC" >&6; }
3385 { $as_echo "$as_me:$LINENO: result: no" >&5
3386 $as_echo "no" >&6; }
3390 test -n "$ac_ct_CC" && break
3393 if test "x$ac_ct_CC" = x; then
3396 case $cross_compiling:$ac_tool_warned in
3398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400 ac_tool_warned=yes ;;
3409 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3412 See \`config.log' for more details." >&5
3413 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3414 See \`config.log' for more details." >&2;}
3415 { (exit 1); exit 1; }; }; }
3417 # Provide some information about the compiler.
3418 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3421 { (ac_try="$ac_compiler --version >&5"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_compiler --version >&5") 2>&5
3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }
3432 { (ac_try="$ac_compiler -v >&5"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_compiler -v >&5") 2>&5
3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }
3443 { (ac_try="$ac_compiler -V >&5"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449 $as_echo "$ac_try_echo") >&5
3450 (eval "$ac_compiler -V >&5") 2>&5
3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3475 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3476 $as_echo_n "checking for C compiler default output file name... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 for ac_file in $ac_files
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492 if { (ac_try="$ac_link_default"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499 (eval "$ac_link_default") 2>&5
3501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; then
3503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3508 for ac_file in $ac_files ''
3510 test -f "$ac_file" || continue
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 # We found the default executable, but exeext='' is most
3519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523 # We set ac_cv_exeext here because the later test for it is not
3524 # safe: cross compilers may not add the suffix if given an `-o'
3525 # argument, so we may need to know it at that point already.
3526 # Even if this section looks crufty: it has the advantage of
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3539 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3540 $as_echo "$ac_file" >&6; }
3541 if test -z "$ac_file"; then
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3548 See \`config.log' for more details." >&5
3549 $as_echo "$as_me: error: C compiler cannot create executables
3550 See \`config.log' for more details." >&2;}
3551 { (exit 77); exit 77; }; }; }
3554 ac_exeext=$ac_cv_exeext
3556 # Check that the compiler produces executables we can run. If not, either
3557 # the compiler is broken, or we cross compile.
3558 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3559 $as_echo_n "checking whether the C compiler works... " >&6; }
3560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3561 # If not cross compiling, check that we can run a simple program.
3562 if test "$cross_compiling" != yes; then
3563 if { ac_try='./$ac_file'
3564 { (case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3569 $as_echo "$ac_try_echo") >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3576 if test "$cross_compiling" = maybe; then
3579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details." >&5
3584 $as_echo "$as_me: error: cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details." >&2;}
3587 { (exit 1); exit 1; }; }; }
3591 { $as_echo "$as_me:$LINENO: result: yes" >&5
3592 $as_echo "yes" >&6; }
3594 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3595 ac_clean_files=$ac_clean_files_save
3596 # Check that the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3599 $as_echo_n "checking whether we are cross compiling... " >&6; }
3600 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3601 $as_echo "$cross_compiling" >&6; }
3603 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3604 $as_echo_n "checking for suffix of executables... " >&6; }
3605 if { (ac_try="$ac_link"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3611 $as_echo "$ac_try_echo") >&5
3612 (eval "$ac_link") 2>&5
3614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; then
3616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3617 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3618 # work properly (i.e., refer to `conftest.exe'), while it won't with
3620 for ac_file in conftest.exe conftest conftest.*; do
3621 test -f "$ac_file" || continue
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3633 See \`config.log' for more details." >&5
3634 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }; }
3639 rm -f conftest$ac_cv_exeext
3640 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3646 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3666 rm -f conftest.o conftest.obj
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3673 $as_echo "$ac_try_echo") >&5
3674 (eval "$ac_compile") 2>&5
3676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; then
3678 for ac_file in conftest.o conftest.obj conftest.*; do
3679 test -f "$ac_file" || continue;
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details." >&5
3694 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details." >&2;}
3696 { (exit 1); exit 1; }; }; }
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3701 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3705 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3708 $as_echo_n "(cached) " >&6
3710 cat >conftest.$ac_ext <<_ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 $as_echo "$ac_try_echo") >&5
3736 (eval "$ac_compile") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest.$ac_objext; then
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3765 ac_test_CFLAGS=${CFLAGS+set}
3766 ac_save_CFLAGS=$CFLAGS
3767 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3769 if test "${ac_cv_prog_cc_g+set}" = set; then
3770 $as_echo_n "(cached) " >&6
3772 ac_save_c_werror_flag=$ac_c_werror_flag
3773 ac_c_werror_flag=yes
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3798 $as_echo "$ac_try_echo") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3811 $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext
3831 if { (ac_try="$ac_compile"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3837 $as_echo "$ac_try_echo") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3850 $as_echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_c_werror_flag=$ac_save_c_werror_flag
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3877 $as_echo "$ac_try_echo") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } && {
3885 test -z "$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 } && test -s conftest.$ac_objext; then
3890 $as_echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3905 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3906 $as_echo "$ac_cv_prog_cc_g" >&6; }
3907 if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3916 if test "$GCC" = yes; then
3922 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924 if test "${ac_cv_prog_cc_c89+set}" = set; then
3925 $as_echo_n "(cached) " >&6
3927 ac_cv_prog_cc_c89=no
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3937 #include <sys/types.h>
3938 #include <sys/stat.h>
3939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3940 struct buf { int x; };
3941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942 static char *e (p, i)
3948 static char *f (char * (*g) (char **, int), char **p, ...)
3953 s = g (p, va_arg (v,int));
3958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3959 function prototypes and stuff, but not '\xHH' hex character constants.
3960 These don't provoke an error unfortunately, instead are silently treated
3961 as 'x'. The following induces an error, until -std is added to get
3962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3963 array size at least. It's necessary to write '\x00'==0 to get something
3964 that's true only with -std. */
3965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3968 inside strings and character constants. */
3970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3972 int test (int i, double x);
3973 struct s1 {int (*f) (int a);};
3974 struct s2 {int (*f) (double a);};
3975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3989 CC="$ac_save_CC $ac_arg"
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3997 $as_echo "$ac_try_echo") >&5
3998 (eval "$ac_compile") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_cv_prog_cc_c89=$ac_arg
4010 $as_echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 rm -f conftest.$ac_ext
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4029 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 depcc="$CC" am_compiler_list=
4046 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4047 $as_echo_n "checking dependency style of $depcc... " >&6; }
4048 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4049 $as_echo_n "(cached) " >&6
4051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052 # We make a subdir and do the tests there. Otherwise we can end up
4053 # making bogus files that we don't know about and never remove. For
4054 # instance it was reported that on HP-UX the gcc test will end up
4055 # making a dummy file named `D' -- because `-MD' means `put the output
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4070 am_cv_CC_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4075 case " $depcc " in #(
4076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4079 for depmode in $am_compiler_list; do
4080 # Setup a source with many dependencies, because some compilers
4081 # like to wrap large dependency lists on column 80 (with \), and
4082 # we should not choose a depcomp mode which is confused by this.
4084 # We need to recreate these files for each test, as the compiler may
4085 # overwrite some of them when testing with obscure command lines.
4086 # This happens at least with the AIX C compiler.
4088 for i in 1 2 3 4 5 6; do
4089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091 # Solaris 8's {/usr,}/bin/sh.
4092 touch sub/conftst$i.h
4094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4096 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4097 # mode. It turns out that the SunPro C++ compiler does not properly
4098 # handle `-M -o', and we need to detect this. Also, some Intel
4099 # versions had trouble with output in subdirs
4100 am__obj=sub/conftest.${OBJEXT-o}
4101 am__minus_obj="-o $am__obj"
4104 # This depmode causes a compiler race in universal mode.
4105 test "$am__universal" = false || continue
4108 # after this tag, mechanisms are not by side-effect, so they'll
4109 # only be used when explicitly requested
4110 if test "x$enable_dependency_tracking" = xyes; then
4116 msvisualcpp | msvcmsys)
4117 # This compiler won't grok `-c -o', but also, the minuso test has
4118 # not run yet. These depmodes are late enough in the game, and
4119 # so weak that their functioning should not be impacted.
4120 am__obj=conftest.${OBJEXT-o}
4125 if depmode=$depmode \
4126 source=sub/conftest.c object=$am__obj \
4127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129 >/dev/null 2>conftest.err &&
4130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134 # icc doesn't choke on unknown options, it will just issue warnings
4135 # or remarks (even with -Werror). So we grep stderr for any message
4136 # that says an option was ignored or not supported.
4137 # When given -MP, icc 7.0 and 7.1 complain thusly:
4138 # icc: Command line warning: ignoring option '-M'; no argument required
4139 # The diagnosis changed in icc 8.0:
4140 # icc: Command line remark: option '-MP' not supported
4141 if (grep 'ignoring option' conftest.err ||
4142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143 am_cv_CC_dependencies_compiler_type=$depmode
4152 am_cv_CC_dependencies_compiler_type=none
4156 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4161 test "x$enable_dependency_tracking" != xno \
4162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4164 am__fastdepCC_FALSE='#'
4166 am__fastdepCC_TRUE='#'
4167 am__fastdepCC_FALSE=
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4179 # On Suns, sometimes $CPP names a directory.
4180 if test -n "$CPP" && test -d "$CPP"; then
4183 if test -z "$CPP"; then
4184 if test "${ac_cv_prog_CPP+set}" = set; then
4185 $as_echo_n "(cached) " >&6
4187 # Double quotes because CPP needs to be expanded
4188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4191 for ac_c_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 # include <limits.h>
4208 # include <assert.h>
4212 if { (ac_try="$ac_cpp conftest.$ac_ext"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null && {
4226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 # Broken: fails on valid input.
4238 rm -f conftest.err conftest.$ac_ext
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <ac_nonexistent.h>
4250 if { (ac_try="$ac_cpp conftest.$ac_ext"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4256 $as_echo "$ac_try_echo") >&5
4257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } >/dev/null && {
4264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4267 # Broken: success on invalid input.
4270 $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 # Passes both tests.
4278 rm -f conftest.err conftest.$ac_ext
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4295 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4296 $as_echo "$CPP" >&6; }
4298 for ac_c_preproc_warn_flag in '' yes
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
4304 # On the NeXT, cc -E runs the code through the compiler's parser,
4305 # not just through cpp. "Syntax error" is here to catch this case.
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4313 # include <limits.h>
4315 # include <assert.h>
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4325 $as_echo "$ac_try_echo") >&5
4326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null && {
4333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4338 $as_echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # Broken: fails on valid input.
4345 rm -f conftest.err conftest.$ac_ext
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4357 if { (ac_try="$ac_cpp conftest.$ac_ext"
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4363 $as_echo "$ac_try_echo") >&5
4364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } >/dev/null && {
4371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4372 test ! -s conftest.err
4374 # Broken: success on invalid input.
4377 $as_echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 # Passes both tests.
4385 rm -f conftest.err conftest.$ac_ext
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then
4393 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4396 See \`config.log' for more details." >&5
4397 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&2;}
4399 { (exit 1); exit 1; }; }; }
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4411 if test "${ac_cv_path_GREP+set}" = set; then
4412 $as_echo_n "(cached) " >&6
4414 if test -z "$GREP"; then
4415 ac_path_GREP_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in grep ggrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4425 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4426 # Check for GNU ac_path_GREP and select it if it is found.
4427 # Check for GNU $ac_path_GREP
4428 case `"$ac_path_GREP" --version 2>&1` in
4430 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433 $as_echo_n 0123456789 >"conftest.in"
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo 'GREP' >> "conftest.nl"
4440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 ac_count=`expr $ac_count + 1`
4443 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_GREP="$ac_path_GREP"
4446 ac_path_GREP_max=$ac_count
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 $ac_path_GREP_found && break 3
4459 if test -z "$ac_cv_path_GREP"; then
4460 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4461 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4462 { (exit 1); exit 1; }; }
4465 ac_cv_path_GREP=$GREP
4469 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4470 $as_echo "$ac_cv_path_GREP" >&6; }
4471 GREP="$ac_cv_path_GREP"
4474 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4475 $as_echo_n "checking for egrep... " >&6; }
4476 if test "${ac_cv_path_EGREP+set}" = set; then
4477 $as_echo_n "(cached) " >&6
4479 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4480 then ac_cv_path_EGREP="$GREP -E"
4482 if test -z "$EGREP"; then
4483 ac_path_EGREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in egrep; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4494 # Check for GNU ac_path_EGREP and select it if it is found.
4495 # Check for GNU $ac_path_EGREP
4496 case `"$ac_path_EGREP" --version 2>&1` in
4498 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4501 $as_echo_n 0123456789 >"conftest.in"
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 $as_echo 'EGREP' >> "conftest.nl"
4508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 ac_count=`expr $ac_count + 1`
4511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_EGREP="$ac_path_EGREP"
4514 ac_path_EGREP_max=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522 $ac_path_EGREP_found && break 3
4527 if test -z "$ac_cv_path_EGREP"; then
4528 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4529 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4530 { (exit 1); exit 1; }; }
4533 ac_cv_path_EGREP=$EGREP
4538 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4539 $as_echo "$ac_cv_path_EGREP" >&6; }
4540 EGREP="$ac_cv_path_EGREP"
4543 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4544 $as_echo_n "checking for ANSI C header files... " >&6; }
4545 if test "${ac_cv_header_stdc+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_compile") 2>conftest.er1
4577 grep -v '^ *+' conftest.er1 >conftest.err
4579 cat conftest.err >&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && {
4582 test -z "$ac_c_werror_flag" ||
4583 test ! -s conftest.err
4584 } && test -s conftest.$ac_objext; then
4585 ac_cv_header_stdc=yes
4587 $as_echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_header_stdc=no
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 if test $ac_cv_header_stdc = yes; then
4596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597 cat >conftest.$ac_ext <<_ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "memchr" >/dev/null 2>&1; then
4610 ac_cv_header_stdc=no
4616 if test $ac_cv_header_stdc = yes; then
4617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "free" >/dev/null 2>&1; then
4631 ac_cv_header_stdc=no
4637 if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4650 #if ((' ' & 0x0FF) == 0x020)
4651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4654 # define ISLOWER(c) \
4655 (('a' <= (c) && (c) <= 'i') \
4656 || ('j' <= (c) && (c) <= 'r') \
4657 || ('s' <= (c) && (c) <= 'z'))
4658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4666 for (i = 0; i < 256; i++)
4667 if (XOR (islower (i), ISLOWER (i))
4668 || toupper (i) != TOUPPER (i))
4673 rm -f conftest$ac_exeext
4674 if { (ac_try="$ac_link"
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4680 $as_echo "$ac_try_echo") >&5
4681 (eval "$ac_link") 2>&5
4683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685 { (case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690 $as_echo "$ac_try_echo") >&5
4691 (eval "$ac_try") 2>&5
4693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4697 $as_echo "$as_me: program exited with status $ac_status" >&5
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_cv_header_stdc=no
4704 rm -rf conftest.dSYM
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4711 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4712 $as_echo "$ac_cv_header_stdc" >&6; }
4713 if test $ac_cv_header_stdc = yes; then
4715 cat >>confdefs.h <<\_ACEOF
4716 #define STDC_HEADERS 1
4721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732 inttypes.h stdint.h unistd.h
4734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4736 $as_echo_n "checking for $ac_header... " >&6; }
4737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4738 $as_echo_n "(cached) " >&6
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 $ac_includes_default
4748 #include <$ac_header>
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758 (eval "$ac_compile") 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && {
4765 test -z "$ac_c_werror_flag" ||
4766 test ! -s conftest.err
4767 } && test -s conftest.$ac_objext; then
4768 eval "$as_ac_Header=yes"
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 eval "$as_ac_Header=no"
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 ac_res=`eval 'as_val=${'$as_ac_Header'}
4779 $as_echo "$as_val"'`
4780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4781 $as_echo "$ac_res" >&6; }
4782 as_val=`eval 'as_val=${'$as_ac_Header'}
4783 $as_echo "$as_val"'`
4784 if test "x$as_val" = x""yes; then
4785 cat >>confdefs.h <<_ACEOF
4786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4797 # Check whether --with-tirpcinclude was given.
4798 if test "${with_tirpcinclude+set}" = set; then
4799 withval=$with_tirpcinclude; tirpc_header_dir=$withval
4801 tirpc_header_dir=/usr/include/tirpc
4806 if test "$enable_tirpc" != "no"; then
4809 { $as_echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
4810 $as_echo_n "checking for clnt_tli_create in -ltirpc... " >&6; }
4811 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
4812 $as_echo_n "(cached) " >&6
4814 ac_check_lib_save_LIBS=$LIBS
4815 LIBS="-ltirpc $LIBS"
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4823 /* Override any GCC internal prototype to avoid an error.
4824 Use char because int might match the return type of a GCC
4825 builtin and then its argument prototype would still apply. */
4829 char clnt_tli_create ();
4833 return clnt_tli_create ();
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (ac_try="$ac_link"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846 (eval "$ac_link") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest$ac_exeext && {
4856 test "$cross_compiling" = yes ||
4857 $as_test_x conftest$ac_exeext
4859 ac_cv_lib_tirpc_clnt_tli_create=yes
4861 $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 ac_cv_lib_tirpc_clnt_tli_create=no
4867 rm -rf conftest.dSYM
4868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4869 conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
4873 $as_echo "$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
4874 if test "x$ac_cv_lib_tirpc_clnt_tli_create" = x""yes; then
4875 cat >>confdefs.h <<_ACEOF
4876 #define HAVE_LIBTIRPC 1
4879 LIBS="-ltirpc $LIBS"
4882 if test "$enable_tirpc" = "yes"; then
4883 { { $as_echo "$as_me:$LINENO: error: libtirpc not found." >&5
4884 $as_echo "$as_me: error: libtirpc not found." >&2;}
4885 { (exit 1); exit 1; }; }
4887 { $as_echo "$as_me:$LINENO: WARNING: libtirpc not found. TIRPC disabled!" >&5
4888 $as_echo "$as_me: WARNING: libtirpc not found. TIRPC disabled!" >&2;}
4895 if test "$enable_tirpc" != "no"; then
4897 for ac_header in ${tirpc_header_dir}/netconfig.h
4899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4902 $as_echo_n "checking for $ac_header... " >&6; }
4903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4904 $as_echo_n "(cached) " >&6
4906 ac_res=`eval 'as_val=${'$as_ac_Header'}
4907 $as_echo "$as_val"'`
4908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4909 $as_echo "$ac_res" >&6; }
4911 # Is the header compilable?
4912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4913 $as_echo_n "checking $ac_header usability... " >&6; }
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 $ac_includes_default
4921 #include <$ac_header>
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930 $as_echo "$ac_try_echo") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 ac_header_compiler=yes
4943 $as_echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_header_compiler=no
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4951 $as_echo "$ac_header_compiler" >&6; }
4953 # Is the header present?
4954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4955 $as_echo_n "checking $ac_header presence... " >&6; }
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <$ac_header>
4964 if { (ac_try="$ac_cpp conftest.$ac_ext"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4970 $as_echo "$ac_try_echo") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null && {
4978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4981 ac_header_preproc=yes
4983 $as_echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ac_header_preproc=no
4989 rm -f conftest.err conftest.$ac_ext
4990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4991 $as_echo "$ac_header_preproc" >&6; }
4993 # So? What about this header?
4994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5000 ac_header_preproc=yes
5003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5006 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5010 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5016 ## ---------------------------------------- ##
5017 ## Report this to linux-nfs@vger.kernel.org ##
5018 ## ---------------------------------------- ##
5020 ) | sed "s/^/$as_me: WARNING: /" >&2
5023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 $as_echo_n "checking for $ac_header... " >&6; }
5025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5026 $as_echo_n "(cached) " >&6
5028 eval "$as_ac_Header=\$ac_header_preproc"
5030 ac_res=`eval 'as_val=${'$as_ac_Header'}
5031 $as_echo "$as_val"'`
5032 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5033 $as_echo "$ac_res" >&6; }
5036 as_val=`eval 'as_val=${'$as_ac_Header'}
5037 $as_echo "$as_val"'`
5038 if test "x$as_val" = x""yes; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 AM_CPPFLAGS="-I${tirpc_header_dir}"
5045 if test "$enable_tirpc" = "yes"; then
5046 { { $as_echo "$as_me:$LINENO: error: libtirpc headers not found." >&5
5047 $as_echo "$as_me: error: libtirpc headers not found." >&2;}
5048 { (exit 1); exit 1; }; }
5050 { $as_echo "$as_me:$LINENO: WARNING: libtirpc headers not found. TIRPC disabled!" >&5
5051 $as_echo "$as_me: WARNING: libtirpc headers not found. TIRPC disabled!" >&2;}
5063 # Check whether user wants TCP wrappers support
5067 # Check whether --with-tcp-wrappers was given.
5068 if test "${with_tcp_wrappers+set}" = set; then
5069 withval=$with_tcp_wrappers; with_tcpw=$withval
5074 if test "x$with_tcpw" != "xno" ; then
5076 saved_LDFLAGS="$LDFLAGS"
5077 saved_CPPFLAGS="$CPPFLAGS"
5078 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
5079 if test -d "${with_tcpw}/lib"; then
5080 if test -n "${need_dash_r}"; then
5081 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
5083 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
5086 if test -n "${need_dash_r}"; then
5087 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
5089 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
5092 if test -d "${with_tcpw}/include"; then
5093 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
5095 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
5099 LIBS="$LIBWRAP $LIBS"
5100 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
5101 $as_echo_n "checking for libwrap... " >&6; }
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5110 int deny_severity = 0, allow_severity = 0;
5120 rm -f conftest.$ac_objext conftest$ac_exeext
5121 if { (ac_try="$ac_link"
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5127 $as_echo "$ac_try_echo") >&5
5128 (eval "$ac_link") 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest$ac_exeext && {
5138 test "$cross_compiling" = yes ||
5139 $as_test_x conftest$ac_exeext
5142 { $as_echo "$as_me:$LINENO: result: yes" >&5
5143 $as_echo "yes" >&6; }
5146 cat >>confdefs.h <<\_ACEOF
5151 cat >>confdefs.h <<\_ACEOF
5152 #define HAVE_LIBWRAP 1
5156 cat >>confdefs.h <<\_ACEOF
5157 #define HAVE_TCP_WRAPPER 1
5163 $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5167 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
5168 $as_echo "$as_me: error: *** libwrap missing" >&2;}
5169 { (exit 1); exit 1; }; }
5174 rm -rf conftest.dSYM
5175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5176 conftest$ac_exeext conftest.$ac_ext
5184 # Arrange for large-file support
5185 # Check whether --enable-largefile was given.
5186 if test "${enable_largefile+set}" = set; then
5187 enableval=$enable_largefile;
5190 if test "$enable_largefile" != no; then
5192 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5193 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5194 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5195 $as_echo_n "(cached) " >&6
5197 ac_cv_sys_largefile_CC=no
5198 if test "$GCC" != yes; then
5201 # IRIX 6.2 and later do not support large files by default,
5202 # so use the C compiler's -n32 option if that helps.
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <sys/types.h>
5210 /* Check that off_t can represent 2**63 - 1 correctly.
5211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5212 since some C++ compilers masquerading as C compilers
5213 incorrectly reject 9223372036854775807. */
5214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5216 && LARGE_OFF_T % 2147483647 == 1)
5226 rm -f conftest.$ac_objext
5227 if { (ac_try="$ac_compile"
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233 $as_echo "$ac_try_echo") >&5
5234 (eval "$ac_compile") 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest.$ac_objext; then
5246 $as_echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5252 rm -f core conftest.err conftest.$ac_objext
5254 rm -f conftest.$ac_objext
5255 if { (ac_try="$ac_compile"
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262 (eval "$ac_compile") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
5272 ac_cv_sys_largefile_CC=' -n32'; break
5274 $as_echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5280 rm -f core conftest.err conftest.$ac_objext
5284 rm -f conftest.$ac_ext
5287 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5288 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5289 if test "$ac_cv_sys_largefile_CC" != no; then
5290 CC=$CC$ac_cv_sys_largefile_CC
5293 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5294 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5295 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5296 $as_echo_n "(cached) " >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 #include <sys/types.h>
5306 /* Check that off_t can represent 2**63 - 1 correctly.
5307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5308 since some C++ compilers masquerading as C compilers
5309 incorrectly reject 9223372036854775807. */
5310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5312 && LARGE_OFF_T % 2147483647 == 1)
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest.$ac_objext; then
5340 ac_cv_sys_file_offset_bits=no; break
5342 $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 cat >conftest.$ac_ext <<_ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 #define _FILE_OFFSET_BITS 64
5356 #include <sys/types.h>
5357 /* Check that off_t can represent 2**63 - 1 correctly.
5358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359 since some C++ compilers masquerading as C compilers
5360 incorrectly reject 9223372036854775807. */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363 && LARGE_OFF_T % 2147483647 == 1)
5373 rm -f conftest.$ac_objext
5374 if { (ac_try="$ac_compile"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
5391 ac_cv_sys_file_offset_bits=64; break
5393 $as_echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cv_sys_file_offset_bits=unknown
5404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5405 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5406 case $ac_cv_sys_file_offset_bits in #(
5409 cat >>confdefs.h <<_ACEOF
5410 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5415 if test $ac_cv_sys_file_offset_bits = unknown; then
5416 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5417 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5418 if test "${ac_cv_sys_large_files+set}" = set; then
5419 $as_echo_n "(cached) " >&6
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <sys/types.h>
5429 /* Check that off_t can represent 2**63 - 1 correctly.
5430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431 since some C++ compilers masquerading as C compilers
5432 incorrectly reject 9223372036854775807. */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435 && LARGE_OFF_T % 2147483647 == 1)
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest.$ac_objext; then
5463 ac_cv_sys_large_files=no; break
5465 $as_echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #define _LARGE_FILES 1
5479 #include <sys/types.h>
5480 /* Check that off_t can represent 2**63 - 1 correctly.
5481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5482 since some C++ compilers masquerading as C compilers
5483 incorrectly reject 9223372036854775807. */
5484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5486 && LARGE_OFF_T % 2147483647 == 1)
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5503 $as_echo "$ac_try_echo") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } && {
5511 test -z "$ac_c_werror_flag" ||
5512 test ! -s conftest.err
5513 } && test -s conftest.$ac_objext; then
5514 ac_cv_sys_large_files=1; break
5516 $as_echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 ac_cv_sys_large_files=unknown
5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5528 $as_echo "$ac_cv_sys_large_files" >&6; }
5529 case $ac_cv_sys_large_files in #(
5532 cat >>confdefs.h <<_ACEOF
5533 #define _LARGE_FILES $ac_cv_sys_large_files
5543 ac_config_headers="$ac_config_headers support/include/config.h"
5546 # Checks for programs.
5548 ac_cpp='$CXXCPP $CPPFLAGS'
5549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5552 if test -z "$CXX"; then
5553 if test -n "$CCC"; then
5556 if test -n "$ac_tool_prefix"; then
5557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_CXX+set}" = set; then
5564 $as_echo_n "(cached) " >&6
5566 if test -n "$CXX"; then
5567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 if test -n "$CXX"; then
5588 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5589 $as_echo "$CXX" >&6; }
5591 { $as_echo "$as_me:$LINENO: result: no" >&5
5592 $as_echo "no" >&6; }
5596 test -n "$CXX" && break
5599 if test -z "$CXX"; then
5601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5603 # Extract the first word of "$ac_prog", so it can be a program name with args.
5604 set dummy $ac_prog; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5610 if test -n "$ac_ct_CXX"; then
5611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_ac_ct_CXX="$ac_prog"
5621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5631 if test -n "$ac_ct_CXX"; then
5632 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5633 $as_echo "$ac_ct_CXX" >&6; }
5635 { $as_echo "$as_me:$LINENO: result: no" >&5
5636 $as_echo "no" >&6; }
5640 test -n "$ac_ct_CXX" && break
5643 if test "x$ac_ct_CXX" = x; then
5646 case $cross_compiling:$ac_tool_warned in
5648 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5658 # Provide some information about the compiler.
5659 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5662 { (ac_try="$ac_compiler --version >&5"
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669 (eval "$ac_compiler --version >&5") 2>&5
5671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }
5673 { (ac_try="$ac_compiler -v >&5"
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5679 $as_echo "$ac_try_echo") >&5
5680 (eval "$ac_compiler -v >&5") 2>&5
5682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }
5684 { (ac_try="$ac_compiler -V >&5"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5690 $as_echo "$ac_try_echo") >&5
5691 (eval "$ac_compiler -V >&5") 2>&5
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }
5696 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5697 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5699 $as_echo_n "(cached) " >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5726 $as_echo "$ac_try_echo") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_cxx_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5739 $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5749 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5750 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5751 if test $ac_compiler_gnu = yes; then
5756 ac_test_CXXFLAGS=${CXXFLAGS+set}
5757 ac_save_CXXFLAGS=$CXXFLAGS
5758 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5759 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5760 if test "${ac_cv_prog_cxx_g+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5763 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5764 ac_cxx_werror_flag=yes
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_cxx_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_cv_prog_cxx_g=yes
5802 $as_echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5821 rm -f conftest.$ac_objext
5822 if { (ac_try="$ac_compile"
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_cxx_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5841 $as_echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868 $as_echo "$ac_try_echo") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_cxx_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 ac_cv_prog_cxx_g=yes
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5896 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5898 if test "$ac_test_CXXFLAGS" = set; then
5899 CXXFLAGS=$ac_save_CXXFLAGS
5900 elif test $ac_cv_prog_cxx_g = yes; then
5901 if test "$GXX" = yes; then
5907 if test "$GXX" = yes; then
5914 ac_cpp='$CPP $CPPFLAGS'
5915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5919 depcc="$CXX" am_compiler_list=
5921 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5922 $as_echo_n "checking dependency style of $depcc... " >&6; }
5923 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5924 $as_echo_n "(cached) " >&6
5926 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5927 # We make a subdir and do the tests there. Otherwise we can end up
5928 # making bogus files that we don't know about and never remove. For
5929 # instance it was reported that on HP-UX the gcc test will end up
5930 # making a dummy file named `D' -- because `-MD' means `put the output
5933 # Copy depcomp to subdir because otherwise we won't find it if we're
5934 # using a relative directory.
5935 cp "$am_depcomp" conftest.dir
5937 # We will build objects and dependencies in a subdirectory because
5938 # it helps to detect inapplicable dependency modes. For instance
5939 # both Tru64's cc and ICC support -MD to output dependencies as a
5940 # side effect of compilation, but ICC will put the dependencies in
5941 # the current directory while Tru64 will put them in the object
5945 am_cv_CXX_dependencies_compiler_type=none
5946 if test "$am_compiler_list" = ""; then
5947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5950 case " $depcc " in #(
5951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5954 for depmode in $am_compiler_list; do
5955 # Setup a source with many dependencies, because some compilers
5956 # like to wrap large dependency lists on column 80 (with \), and
5957 # we should not choose a depcomp mode which is confused by this.
5959 # We need to recreate these files for each test, as the compiler may
5960 # overwrite some of them when testing with obscure command lines.
5961 # This happens at least with the AIX C compiler.
5963 for i in 1 2 3 4 5 6; do
5964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5966 # Solaris 8's {/usr,}/bin/sh.
5967 touch sub/conftst$i.h
5969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5971 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5972 # mode. It turns out that the SunPro C++ compiler does not properly
5973 # handle `-M -o', and we need to detect this. Also, some Intel
5974 # versions had trouble with output in subdirs
5975 am__obj=sub/conftest.${OBJEXT-o}
5976 am__minus_obj="-o $am__obj"
5979 # This depmode causes a compiler race in universal mode.
5980 test "$am__universal" = false || continue
5983 # after this tag, mechanisms are not by side-effect, so they'll
5984 # only be used when explicitly requested
5985 if test "x$enable_dependency_tracking" = xyes; then
5991 msvisualcpp | msvcmsys)
5992 # This compiler won't grok `-c -o', but also, the minuso test has
5993 # not run yet. These depmodes are late enough in the game, and
5994 # so weak that their functioning should not be impacted.
5995 am__obj=conftest.${OBJEXT-o}
6000 if depmode=$depmode \
6001 source=sub/conftest.c object=$am__obj \
6002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6004 >/dev/null 2>conftest.err &&
6005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6009 # icc doesn't choke on unknown options, it will just issue warnings
6010 # or remarks (even with -Werror). So we grep stderr for any message
6011 # that says an option was ignored or not supported.
6012 # When given -MP, icc 7.0 and 7.1 complain thusly:
6013 # icc: Command line warning: ignoring option '-M'; no argument required
6014 # The diagnosis changed in icc 8.0:
6015 # icc: Command line remark: option '-MP' not supported
6016 if (grep 'ignoring option' conftest.err ||
6017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6018 am_cv_CXX_dependencies_compiler_type=$depmode
6027 am_cv_CXX_dependencies_compiler_type=none
6031 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6032 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6033 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6036 test "x$enable_dependency_tracking" != xno \
6037 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6038 am__fastdepCXX_TRUE=
6039 am__fastdepCXX_FALSE='#'
6041 am__fastdepCXX_TRUE='#'
6042 am__fastdepCXX_FALSE=
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051 if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_CC+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6059 if test -n "$CC"; then
6060 ac_cv_prog_CC="$CC" # Let the user override the test.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 if test -n "$CC"; then
6081 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6082 $as_echo "$CC" >&6; }
6084 { $as_echo "$as_me:$LINENO: result: no" >&5
6085 $as_echo "no" >&6; }
6090 if test -z "$ac_cv_prog_CC"; then
6092 # Extract the first word of "gcc", so it can be a program name with args.
6093 set dummy gcc; ac_word=$2
6094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6097 $as_echo_n "(cached) " >&6
6099 if test -n "$ac_ct_CC"; then
6100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_ac_ct_CC="gcc"
6110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6120 if test -n "$ac_ct_CC"; then
6121 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6122 $as_echo "$ac_ct_CC" >&6; }
6124 { $as_echo "$as_me:$LINENO: result: no" >&5
6125 $as_echo "no" >&6; }
6128 if test "x$ac_ct_CC" = x; then
6131 case $cross_compiling:$ac_tool_warned in
6133 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6143 if test -z "$CC"; then
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}cc; ac_word=$2
6147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_CC+set}" = set; then
6150 $as_echo_n "(cached) " >&6
6152 if test -n "$CC"; then
6153 ac_cv_prog_CC="$CC" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_CC="${ac_tool_prefix}cc"
6163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 if test -n "$CC"; then
6174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6175 $as_echo "$CC" >&6; }
6177 { $as_echo "$as_me:$LINENO: result: no" >&5
6178 $as_echo "no" >&6; }
6184 if test -z "$CC"; then
6185 # Extract the first word of "cc", so it can be a program name with args.
6186 set dummy cc; ac_word=$2
6187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_CC+set}" = set; then
6190 $as_echo_n "(cached) " >&6
6192 if test -n "$CC"; then
6193 ac_cv_prog_CC="$CC" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6204 ac_prog_rejected=yes
6208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 if test $ac_prog_rejected = yes; then
6216 # We found a bogon in the path, so make sure we never use it.
6217 set dummy $ac_cv_prog_CC
6219 if test $# != 0; then
6220 # We chose a different compiler from the bogus one.
6221 # However, it has the same basename, so the bogon will be chosen
6222 # first if we set CC to just the basename; use the full file name.
6224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6230 if test -n "$CC"; then
6231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6232 $as_echo "$CC" >&6; }
6234 { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6240 if test -z "$CC"; then
6241 if test -n "$ac_tool_prefix"; then
6242 for ac_prog in cl.exe
6244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_CC+set}" = set; then
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$CC"; then
6252 ac_cv_prog_CC="$CC" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 if test -n "$CC"; then
6273 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6274 $as_echo "$CC" >&6; }
6276 { $as_echo "$as_me:$LINENO: result: no" >&5
6277 $as_echo "no" >&6; }
6281 test -n "$CC" && break
6284 if test -z "$CC"; then
6286 for ac_prog in cl.exe
6288 # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy $ac_prog; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$ac_ct_CC"; then
6296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_CC="$ac_prog"
6306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6316 if test -n "$ac_ct_CC"; then
6317 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6318 $as_echo "$ac_ct_CC" >&6; }
6320 { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6325 test -n "$ac_ct_CC" && break
6328 if test "x$ac_ct_CC" = x; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6344 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6346 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6347 See \`config.log' for more details." >&5
6348 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6349 See \`config.log' for more details." >&2;}
6350 { (exit 1); exit 1; }; }; }
6352 # Provide some information about the compiler.
6353 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6356 { (ac_try="$ac_compiler --version >&5"
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6362 $as_echo "$ac_try_echo") >&5
6363 (eval "$ac_compiler --version >&5") 2>&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }
6367 { (ac_try="$ac_compiler -v >&5"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_compiler -v >&5") 2>&5
6376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }
6378 { (ac_try="$ac_compiler -V >&5"
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385 (eval "$ac_compiler -V >&5") 2>&5
6387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }
6390 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 cat >conftest.$ac_ext <<_ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6420 $as_echo "$ac_try_echo") >&5
6421 (eval "$ac_compile") 2>conftest.er1
6423 grep -v '^ *+' conftest.er1 >conftest.err
6425 cat conftest.err >&5
6426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } && {
6428 test -z "$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 } && test -s conftest.$ac_objext; then
6433 $as_echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6443 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6445 if test $ac_compiler_gnu = yes; then
6450 ac_test_CFLAGS=${CFLAGS+set}
6451 ac_save_CFLAGS=$CFLAGS
6452 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6454 if test "${ac_cv_prog_cc_g+set}" = set; then
6455 $as_echo_n "(cached) " >&6
6457 ac_save_c_werror_flag=$ac_c_werror_flag
6458 ac_c_werror_flag=yes
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1 >conftest.err
6488 cat conftest.err >&5
6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.$ac_objext; then
6496 $as_echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.$ac_objext; then
6535 $as_echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_c_werror_flag=$ac_save_c_werror_flag
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6562 $as_echo "$ac_try_echo") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6575 $as_echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 ac_c_werror_flag=$ac_save_c_werror_flag
6590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6591 $as_echo "$ac_cv_prog_cc_g" >&6; }
6592 if test "$ac_test_CFLAGS" = set; then
6593 CFLAGS=$ac_save_CFLAGS
6594 elif test $ac_cv_prog_cc_g = yes; then
6595 if test "$GCC" = yes; then
6601 if test "$GCC" = yes; then
6607 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6609 if test "${ac_cv_prog_cc_c89+set}" = set; then
6610 $as_echo_n "(cached) " >&6
6612 ac_cv_prog_cc_c89=no
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6622 #include <sys/types.h>
6623 #include <sys/stat.h>
6624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6625 struct buf { int x; };
6626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6627 static char *e (p, i)
6633 static char *f (char * (*g) (char **, int), char **p, ...)
6638 s = g (p, va_arg (v,int));
6643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6644 function prototypes and stuff, but not '\xHH' hex character constants.
6645 These don't provoke an error unfortunately, instead are silently treated
6646 as 'x'. The following induces an error, until -std is added to get
6647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6648 array size at least. It's necessary to write '\x00'==0 to get something
6649 that's true only with -std. */
6650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6653 inside strings and character constants. */
6655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6657 int test (int i, double x);
6658 struct s1 {int (*f) (int a);};
6659 struct s2 {int (*f) (double a);};
6660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6674 CC="$ac_save_CC $ac_arg"
6675 rm -f conftest.$ac_objext
6676 if { (ac_try="$ac_compile"
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6682 $as_echo "$ac_try_echo") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6685 grep -v '^ *+' conftest.er1 >conftest.err
6687 cat conftest.err >&5
6688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.$ac_objext; then
6693 ac_cv_prog_cc_c89=$ac_arg
6695 $as_echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6701 rm -f core conftest.err conftest.$ac_objext
6702 test "x$ac_cv_prog_cc_c89" != "xno" && break
6704 rm -f conftest.$ac_ext
6709 case "x$ac_cv_prog_cc_c89" in
6711 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6712 $as_echo "none needed" >&6; } ;;
6714 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6715 $as_echo "unsupported" >&6; } ;;
6717 CC="$CC $ac_cv_prog_cc_c89"
6718 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6724 ac_cpp='$CPP $CPPFLAGS'
6725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6729 depcc="$CC" am_compiler_list=
6731 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6732 $as_echo_n "checking dependency style of $depcc... " >&6; }
6733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6734 $as_echo_n "(cached) " >&6
6736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6737 # We make a subdir and do the tests there. Otherwise we can end up
6738 # making bogus files that we don't know about and never remove. For
6739 # instance it was reported that on HP-UX the gcc test will end up
6740 # making a dummy file named `D' -- because `-MD' means `put the output
6743 # Copy depcomp to subdir because otherwise we won't find it if we're
6744 # using a relative directory.
6745 cp "$am_depcomp" conftest.dir
6747 # We will build objects and dependencies in a subdirectory because
6748 # it helps to detect inapplicable dependency modes. For instance
6749 # both Tru64's cc and ICC support -MD to output dependencies as a
6750 # side effect of compilation, but ICC will put the dependencies in
6751 # the current directory while Tru64 will put them in the object
6755 am_cv_CC_dependencies_compiler_type=none
6756 if test "$am_compiler_list" = ""; then
6757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6760 case " $depcc " in #(
6761 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6764 for depmode in $am_compiler_list; do
6765 # Setup a source with many dependencies, because some compilers
6766 # like to wrap large dependency lists on column 80 (with \), and
6767 # we should not choose a depcomp mode which is confused by this.
6769 # We need to recreate these files for each test, as the compiler may
6770 # overwrite some of them when testing with obscure command lines.
6771 # This happens at least with the AIX C compiler.
6773 for i in 1 2 3 4 5 6; do
6774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6775 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6776 # Solaris 8's {/usr,}/bin/sh.
6777 touch sub/conftst$i.h
6779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6782 # mode. It turns out that the SunPro C++ compiler does not properly
6783 # handle `-M -o', and we need to detect this. Also, some Intel
6784 # versions had trouble with output in subdirs
6785 am__obj=sub/conftest.${OBJEXT-o}
6786 am__minus_obj="-o $am__obj"
6789 # This depmode causes a compiler race in universal mode.
6790 test "$am__universal" = false || continue
6793 # after this tag, mechanisms are not by side-effect, so they'll
6794 # only be used when explicitly requested
6795 if test "x$enable_dependency_tracking" = xyes; then
6801 msvisualcpp | msvcmsys)
6802 # This compiler won't grok `-c -o', but also, the minuso test has
6803 # not run yet. These depmodes are late enough in the game, and
6804 # so weak that their functioning should not be impacted.
6805 am__obj=conftest.${OBJEXT-o}
6810 if depmode=$depmode \
6811 source=sub/conftest.c object=$am__obj \
6812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6813 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6814 >/dev/null 2>conftest.err &&
6815 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6817 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6819 # icc doesn't choke on unknown options, it will just issue warnings
6820 # or remarks (even with -Werror). So we grep stderr for any message
6821 # that says an option was ignored or not supported.
6822 # When given -MP, icc 7.0 and 7.1 complain thusly:
6823 # icc: Command line warning: ignoring option '-M'; no argument required
6824 # The diagnosis changed in icc 8.0:
6825 # icc: Command line remark: option '-MP' not supported
6826 if (grep 'ignoring option' conftest.err ||
6827 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6828 am_cv_CC_dependencies_compiler_type=$depmode
6837 am_cv_CC_dependencies_compiler_type=none
6841 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6842 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6843 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6846 test "x$enable_dependency_tracking" != xno \
6847 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6849 am__fastdepCC_FALSE='#'
6851 am__fastdepCC_TRUE='#'
6852 am__fastdepCC_FALSE=
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6863 # On Suns, sometimes $CPP names a directory.
6864 if test -n "$CPP" && test -d "$CPP"; then
6867 if test -z "$CPP"; then
6868 if test "${ac_cv_prog_CPP+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6871 # Double quotes because CPP needs to be expanded
6872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6875 for ac_c_preproc_warn_flag in '' yes
6877 # Use a header file that comes with gcc, so configuring glibc
6878 # with a fresh cross-compiler works.
6879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6880 # <limits.h> exists even on freestanding compilers.
6881 # On the NeXT, cc -E runs the code through the compiler's parser,
6882 # not just through cpp. "Syntax error" is here to catch this case.
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6890 # include <limits.h>
6892 # include <assert.h>
6896 if { (ac_try="$ac_cpp conftest.$ac_ext"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6902 $as_echo "$ac_try_echo") >&5
6903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1 >conftest.err
6907 cat conftest.err >&5
6908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } >/dev/null && {
6910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 # Broken: fails on valid input.
6922 rm -f conftest.err conftest.$ac_ext
6924 # OK, works on sane cases. Now check whether nonexistent headers
6925 # can be detected and how.
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <ac_nonexistent.h>
6934 if { (ac_try="$ac_cpp conftest.$ac_ext"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } >/dev/null && {
6948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6951 # Broken: success on invalid input.
6954 $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 # Passes both tests.
6962 rm -f conftest.err conftest.$ac_ext
6965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6966 rm -f conftest.err conftest.$ac_ext
6967 if $ac_preproc_ok; then
6979 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6980 $as_echo "$CPP" >&6; }
6982 for ac_c_preproc_warn_flag in '' yes
6984 # Use a header file that comes with gcc, so configuring glibc
6985 # with a fresh cross-compiler works.
6986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6987 # <limits.h> exists even on freestanding compilers.
6988 # On the NeXT, cc -E runs the code through the compiler's parser,
6989 # not just through cpp. "Syntax error" is here to catch this case.
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6997 # include <limits.h>
6999 # include <assert.h>
7003 if { (ac_try="$ac_cpp conftest.$ac_ext"
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null && {
7017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 # Broken: fails on valid input.
7029 rm -f conftest.err conftest.$ac_ext
7031 # OK, works on sane cases. Now check whether nonexistent headers
7032 # can be detected and how.
7033 cat >conftest.$ac_ext <<_ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <ac_nonexistent.h>
7041 if { (ac_try="$ac_cpp conftest.$ac_ext"
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7058 # Broken: success on invalid input.
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 # Passes both tests.
7069 rm -f conftest.err conftest.$ac_ext
7072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7073 rm -f conftest.err conftest.$ac_ext
7074 if $ac_preproc_ok; then
7077 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7079 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7080 See \`config.log' for more details." >&5
7081 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7082 See \`config.log' for more details." >&2;}
7083 { (exit 1); exit 1; }; }; }
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7092 # Find a good install program. We prefer a C program (faster),
7093 # so one script is as good as another. But avoid the broken or
7094 # incompatible versions:
7095 # SysV /etc/install, /usr/sbin/install
7096 # SunOS /usr/etc/install
7097 # IRIX /sbin/install
7099 # AmigaOS /C/install, which installs bootblocks on floppy discs
7100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7103 # OS/2's system install, which has a completely different semantic
7104 # ./install, which can be erroneously created by make from ./install.sh.
7105 # Reject install programs that cannot install multiple files.
7106 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7107 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7108 if test -z "$INSTALL"; then
7109 if test "${ac_cv_path_install+set}" = set; then
7110 $as_echo_n "(cached) " >&6
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 # Account for people who put trailing slashes in PATH elements.
7119 ./ | .// | /cC/* | \
7120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7124 # OSF1 and SCO ODT 3.0 have their own names for install.
7125 # Don't use installbsd from OSF since it installs stuff as root
7127 for ac_prog in ginstall scoinst install; do
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7130 if test $ac_prog = install &&
7131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7132 # AIX install. It has an incompatible calling convention.
7134 elif test $ac_prog = install &&
7135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7136 # program-specific install script used by HP pwplus--don't use.
7139 rm -rf conftest.one conftest.two conftest.dir
7140 echo one > conftest.one
7141 echo two > conftest.two
7143 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7144 test -s conftest.one && test -s conftest.two &&
7145 test -s conftest.dir/conftest.one &&
7146 test -s conftest.dir/conftest.two
7148 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7161 rm -rf conftest.one conftest.two conftest.dir
7164 if test "${ac_cv_path_install+set}" = set; then
7165 INSTALL=$ac_cv_path_install
7167 # As a last resort, use the slow shell script. Don't cache a
7168 # value for INSTALL within a source directory, because that will
7169 # break other packages using the cache if that directory is
7170 # removed, or if the value is a relative name.
7171 INSTALL=$ac_install_sh
7174 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7175 $as_echo "$INSTALL" >&6; }
7177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7178 # It thinks the first close brace ends the variable substitution.
7179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7185 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7186 $as_echo_n "checking whether ln -s works... " >&6; }
7188 if test "$LN_S" = "ln -s"; then
7189 { $as_echo "$as_me:$LINENO: result: yes" >&5
7190 $as_echo "yes" >&6; }
7192 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7193 $as_echo "no, using $LN_S" >&6; }
7196 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7197 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7199 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7201 $as_echo_n "(cached) " >&6
7203 cat >conftest.make <<\_ACEOF
7206 @echo '@@@%%%=$(MAKE)=@@@%%%'
7208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7211 eval ac_cv_prog_make_${ac_make}_set=yes;;
7213 eval ac_cv_prog_make_${ac_make}_set=no;;
7217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7218 { $as_echo "$as_me:$LINENO: result: yes" >&5
7219 $as_echo "yes" >&6; }
7222 { $as_echo "$as_me:$LINENO: result: no" >&5
7223 $as_echo "no" >&6; }
7224 SET_MAKE="MAKE=${MAKE-make}"
7229 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7230 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7235 macro_version='2.2.6'
7236 macro_revision='1.3012'
7250 ltmain="$ac_aux_dir/ltmain.sh"
7252 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7253 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7254 if test "${ac_cv_path_SED+set}" = set; then
7255 $as_echo_n "(cached) " >&6
7257 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7258 for ac_i in 1 2 3 4 5 6 7; do
7259 ac_script="$ac_script$as_nl$ac_script"
7261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7262 $as_unset ac_script || ac_script=
7263 if test -z "$SED"; then
7264 ac_path_SED_found=false
7265 # Loop through the user's path and test for each of PROGNAME-LIST
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_prog in sed gsed; do
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7274 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7275 # Check for GNU ac_path_SED and select it if it is found.
7276 # Check for GNU $ac_path_SED
7277 case `"$ac_path_SED" --version 2>&1` in
7279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7282 $as_echo_n 0123456789 >"conftest.in"
7285 cat "conftest.in" "conftest.in" >"conftest.tmp"
7286 mv "conftest.tmp" "conftest.in"
7287 cp "conftest.in" "conftest.nl"
7288 $as_echo '' >> "conftest.nl"
7289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7291 ac_count=`expr $ac_count + 1`
7292 if test $ac_count -gt ${ac_path_SED_max-0}; then
7293 # Best one so far, save it but keep looking for a better one
7294 ac_cv_path_SED="$ac_path_SED"
7295 ac_path_SED_max=$ac_count
7297 # 10*(2^10) chars as input seems more than enough
7298 test $ac_count -gt 10 && break
7300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7303 $ac_path_SED_found && break 3
7308 if test -z "$ac_cv_path_SED"; then
7309 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7310 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7311 { (exit 1); exit 1; }; }
7318 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7319 $as_echo "$ac_cv_path_SED" >&6; }
7320 SED="$ac_cv_path_SED"
7323 test -z "$SED" && SED=sed
7324 Xsed="$SED -e 1s/^X//"
7336 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7337 $as_echo_n "checking for fgrep... " >&6; }
7338 if test "${ac_cv_path_FGREP+set}" = set; then
7339 $as_echo_n "(cached) " >&6
7341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7342 then ac_cv_path_FGREP="$GREP -F"
7344 if test -z "$FGREP"; then
7345 ac_path_FGREP_found=false
7346 # Loop through the user's path and test for each of PROGNAME-LIST
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7351 test -z "$as_dir" && as_dir=.
7352 for ac_prog in fgrep; do
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7355 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7356 # Check for GNU ac_path_FGREP and select it if it is found.
7357 # Check for GNU $ac_path_FGREP
7358 case `"$ac_path_FGREP" --version 2>&1` in
7360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7363 $as_echo_n 0123456789 >"conftest.in"
7366 cat "conftest.in" "conftest.in" >"conftest.tmp"
7367 mv "conftest.tmp" "conftest.in"
7368 cp "conftest.in" "conftest.nl"
7369 $as_echo 'FGREP' >> "conftest.nl"
7370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7372 ac_count=`expr $ac_count + 1`
7373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7374 # Best one so far, save it but keep looking for a better one
7375 ac_cv_path_FGREP="$ac_path_FGREP"
7376 ac_path_FGREP_max=$ac_count
7378 # 10*(2^10) chars as input seems more than enough
7379 test $ac_count -gt 10 && break
7381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7384 $ac_path_FGREP_found && break 3
7389 if test -z "$ac_cv_path_FGREP"; then
7390 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7391 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7392 { (exit 1); exit 1; }; }
7395 ac_cv_path_FGREP=$FGREP
7400 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7401 $as_echo "$ac_cv_path_FGREP" >&6; }
7402 FGREP="$ac_cv_path_FGREP"
7405 test -z "$GREP" && GREP=grep
7425 # Check whether --with-gnu-ld was given.
7426 if test "${with_gnu_ld+set}" = set; then
7427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7433 if test "$GCC" = yes; then
7434 # Check if gcc -print-prog-name=ld gives a path.
7435 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7436 $as_echo_n "checking for ld used by $CC... " >&6; }
7439 # gcc leaves a trailing carriage return which upsets mingw
7440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7445 # Accept absolute paths.
7447 re_direlt='/[^/][^/]*/\.\./'
7448 # Canonicalize the pathname of ld
7449 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7450 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7451 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7453 test -z "$LD" && LD="$ac_prog"
7456 # If it fails, then pretend we aren't using GCC.
7460 # If it is relative, then search for the first ld in PATH.
7464 elif test "$with_gnu_ld" = yes; then
7465 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7466 $as_echo_n "checking for GNU ld... " >&6; }
7468 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7469 $as_echo_n "checking for non-GNU ld... " >&6; }
7471 if test "${lt_cv_path_LD+set}" = set; then
7472 $as_echo_n "(cached) " >&6
7474 if test -z "$LD"; then
7475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7476 for ac_dir in $PATH; do
7478 test -z "$ac_dir" && ac_dir=.
7479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7480 lt_cv_path_LD="$ac_dir/$ac_prog"
7481 # Check to see if the program is GNU ld. I'd rather use --version,
7482 # but apparently some variants of GNU ld only accept -v.
7483 # Break only if it was the GNU/non-GNU ld that we prefer.
7484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7485 *GNU* | *'with BFD'*)
7486 test "$with_gnu_ld" != no && break
7489 test "$with_gnu_ld" != yes && break
7496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7501 if test -n "$LD"; then
7502 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7503 $as_echo "$LD" >&6; }
7505 { $as_echo "$as_me:$LINENO: result: no" >&5
7506 $as_echo "no" >&6; }
7508 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7509 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7510 { (exit 1); exit 1; }; }
7511 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7514 $as_echo_n "(cached) " >&6
7516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7517 case `$LD -v 2>&1 </dev/null` in
7518 *GNU* | *'with BFD'*)
7519 lt_cv_prog_gnu_ld=yes
7522 lt_cv_prog_gnu_ld=no
7526 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7528 with_gnu_ld=$lt_cv_prog_gnu_ld
7538 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7540 if test "${lt_cv_path_NM+set}" = set; then
7541 $as_echo_n "(cached) " >&6
7543 if test -n "$NM"; then
7544 # Let the user override the test.
7547 lt_nm_to_check="${ac_tool_prefix}nm"
7548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7549 lt_nm_to_check="$lt_nm_to_check nm"
7551 for lt_tmp_nm in $lt_nm_to_check; do
7552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7555 test -z "$ac_dir" && ac_dir=.
7556 tmp_nm="$ac_dir/$lt_tmp_nm"
7557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7558 # Check to see if the nm accepts a BSD-compat flag.
7559 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7560 # nm: unknown option "B" ignored
7561 # Tru64's nm complains that /dev/null is an invalid object file
7562 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7563 */dev/null* | *'Invalid file or object type'*)
7564 lt_cv_path_NM="$tmp_nm -B"
7568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7570 lt_cv_path_NM="$tmp_nm -p"
7574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7575 continue # so that we can try to find one that supports BSD flags
7584 : ${lt_cv_path_NM=no}
7587 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7588 $as_echo "$lt_cv_path_NM" >&6; }
7589 if test "$lt_cv_path_NM" != "no"; then
7592 # Didn't find any BSD compatible name lister, look for dumpbin.
7593 if test -n "$ac_tool_prefix"; then
7594 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$DUMPBIN"; then
7604 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 DUMPBIN=$ac_cv_prog_DUMPBIN
7624 if test -n "$DUMPBIN"; then
7625 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7626 $as_echo "$DUMPBIN" >&6; }
7628 { $as_echo "$as_me:$LINENO: result: no" >&5
7629 $as_echo "no" >&6; }
7633 test -n "$DUMPBIN" && break
7636 if test -z "$DUMPBIN"; then
7637 ac_ct_DUMPBIN=$DUMPBIN
7638 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7640 # Extract the first word of "$ac_prog", so it can be a program name with args.
7641 set dummy $ac_prog; ac_word=$2
7642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7647 if test -n "$ac_ct_DUMPBIN"; then
7648 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7668 if test -n "$ac_ct_DUMPBIN"; then
7669 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7670 $as_echo "$ac_ct_DUMPBIN" >&6; }
7672 { $as_echo "$as_me:$LINENO: result: no" >&5
7673 $as_echo "no" >&6; }
7677 test -n "$ac_ct_DUMPBIN" && break
7680 if test "x$ac_ct_DUMPBIN" = x; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7689 DUMPBIN=$ac_ct_DUMPBIN
7694 if test "$DUMPBIN" != ":"; then
7698 test -z "$NM" && NM=nm
7705 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7706 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7707 if test "${lt_cv_nm_interface+set}" = set; then
7708 $as_echo_n "(cached) " >&6
7710 lt_cv_nm_interface="BSD nm"
7711 echo "int some_variable = 0;" > conftest.$ac_ext
7712 (eval echo "\"\$as_me:7712: $ac_compile\"" >&5)
7713 (eval "$ac_compile" 2>conftest.err)
7714 cat conftest.err >&5
7715 (eval echo "\"\$as_me:7715: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7716 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7717 cat conftest.err >&5
7718 (eval echo "\"\$as_me:7718: output\"" >&5)
7719 cat conftest.out >&5
7720 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7721 lt_cv_nm_interface="MS dumpbin"
7725 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7726 $as_echo "$lt_cv_nm_interface" >&6; }
7728 # find the maximum length of command line arguments
7729 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7730 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7731 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7732 $as_echo_n "(cached) " >&6
7739 # On DJGPP, this test can blow up pretty badly due to problems in libc
7740 # (any single argument exceeding 2000 bytes causes a buffer overrun
7741 # during glob expansion). Even if it were fixed, the result of this
7742 # check would be larger than it should be.
7743 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7747 # Under GNU Hurd, this test is not required because there is
7748 # no limit to the length of command line arguments.
7749 # Libtool will interpret -1 as no limit whatsoever
7750 lt_cv_sys_max_cmd_len=-1;
7753 cygwin* | mingw* | cegcc*)
7754 # On Win9x/ME, this test blows up -- it succeeds, but takes
7755 # about 5 minutes as the teststring grows exponentially.
7756 # Worse, since 9x/ME are not pre-emptively multitasking,
7757 # you end up with a "frozen" computer, even though with patience
7758 # the test eventually succeeds (with a max line length of 256k).
7759 # Instead, let's just punt: use the minimum linelength reported by
7760 # all of the supported platforms: 8192 (on NT/2K/XP).
7761 lt_cv_sys_max_cmd_len=8192;
7765 # On AmigaOS with pdksh, this test takes hours, literally.
7766 # So we just punt and use a minimum line length of 8192.
7767 lt_cv_sys_max_cmd_len=8192;
7770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7771 # This has been around since 386BSD, at least. Likely further.
7772 if test -x /sbin/sysctl; then
7773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7774 elif test -x /usr/sbin/sysctl; then
7775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7779 # And add a safety zone
7780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7786 lt_cv_sys_max_cmd_len=196608
7790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7792 # nice to cause kernel panics so lets avoid the loop below.
7793 # First set a reasonable default.
7794 lt_cv_sys_max_cmd_len=16384
7796 if test -x /sbin/sysconfig; then
7797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7803 lt_cv_sys_max_cmd_len=102400
7805 sysv5* | sco5v6* | sysv4.2uw2*)
7806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7807 if test -n "$kargmax"; then
7808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7810 lt_cv_sys_max_cmd_len=32768
7814 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7815 if test -n "$lt_cv_sys_max_cmd_len"; then
7816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7819 # Make teststring a little bigger before we do anything with it.
7820 # a 1K string should be a reasonable start.
7821 for i in 1 2 3 4 5 6 7 8 ; do
7822 teststring=$teststring$teststring
7824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7825 # If test is not a shell built-in, we'll probably end up computing a
7826 # maximum length that is only half of the actual maximum length, but
7828 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7829 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7830 test $i != 17 # 1/2 MB should be enough
7833 teststring=$teststring$teststring
7835 # Only check the string length outside the loop.
7836 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7838 # Add a significant safety factor because C++ compilers can tack on
7839 # massive amounts of additional arguments before passing them to the
7840 # linker. It appears as though 1/2 is a usable value.
7841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7848 if test -n $lt_cv_sys_max_cmd_len ; then
7849 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7850 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7852 { $as_echo "$as_me:$LINENO: result: none" >&5
7853 $as_echo "none" >&6; }
7855 max_cmd_len=$lt_cv_sys_max_cmd_len
7866 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7867 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7868 # Try some XSI features
7871 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7873 && eval 'test $(( 1 + 1 )) -eq 2 \
7874 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7876 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7877 $as_echo "$xsi_shell" >&6; }
7880 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7881 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7883 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7885 && lt_shell_append=yes
7886 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7887 $as_echo "$lt_shell_append" >&6; }
7890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7900 # test EBCDIC or ASCII
7901 case `echo X|tr X '\101'` in
7902 A) # ASCII based system
7903 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7904 lt_SP2NL='tr \040 \012'
7905 lt_NL2SP='tr \015\012 \040\040'
7907 *) # EBCDIC based system
7908 lt_SP2NL='tr \100 \n'
7909 lt_NL2SP='tr \r\n \100\100'
7921 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7922 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7923 if test "${lt_cv_ld_reload_flag+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7926 lt_cv_ld_reload_flag='-r'
7928 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7929 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7930 reload_flag=$lt_cv_ld_reload_flag
7931 case $reload_flag in
7933 *) reload_flag=" $reload_flag" ;;
7935 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7938 if test "$GCC" = yes; then
7939 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7960 $as_echo_n "(cached) " >&6
7962 if test -n "$OBJDUMP"; then
7963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 OBJDUMP=$ac_cv_prog_OBJDUMP
7983 if test -n "$OBJDUMP"; then
7984 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7985 $as_echo "$OBJDUMP" >&6; }
7987 { $as_echo "$as_me:$LINENO: result: no" >&5
7988 $as_echo "no" >&6; }
7993 if test -z "$ac_cv_prog_OBJDUMP"; then
7994 ac_ct_OBJDUMP=$OBJDUMP
7995 # Extract the first word of "objdump", so it can be a program name with args.
7996 set dummy objdump; ac_word=$2
7997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8000 $as_echo_n "(cached) " >&6
8002 if test -n "$ac_ct_OBJDUMP"; then
8003 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8023 if test -n "$ac_ct_OBJDUMP"; then
8024 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8025 $as_echo "$ac_ct_OBJDUMP" >&6; }
8027 { $as_echo "$as_me:$LINENO: result: no" >&5
8028 $as_echo "no" >&6; }
8031 if test "x$ac_ct_OBJDUMP" = 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 OBJDUMP=$ac_ct_OBJDUMP
8043 OBJDUMP="$ac_cv_prog_OBJDUMP"
8046 test -z "$OBJDUMP" && OBJDUMP=objdump
8056 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8057 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8058 if test "${lt_cv_deplibs_check_method+set}" = set; then
8059 $as_echo_n "(cached) " >&6
8061 lt_cv_file_magic_cmd='$MAGIC_CMD'
8062 lt_cv_file_magic_test_file=
8063 lt_cv_deplibs_check_method='unknown'
8064 # Need to set the preceding variable on all platforms that support
8065 # interlibrary dependencies.
8066 # 'none' -- dependencies not supported.
8067 # `unknown' -- same as none, but documents that we really don't know.
8068 # 'pass_all' -- all dependencies passed with no checks.
8069 # 'test_compile' -- check by making test program.
8070 # 'file_magic [[regex]]' -- check by looking for files in library path
8071 # which responds to the $file_magic_cmd with a given extended regex.
8072 # If you have `file' or equivalent on your system and you're not sure
8073 # whether `pass_all' will *always* work, you probably want this one.
8077 lt_cv_deplibs_check_method=pass_all
8081 lt_cv_deplibs_check_method=pass_all
8085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8086 lt_cv_file_magic_cmd='/usr/bin/file -L'
8087 lt_cv_file_magic_test_file=/shlib/libc.so
8091 # func_win32_libid is a shell function defined in ltmain.sh
8092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8093 lt_cv_file_magic_cmd='func_win32_libid'
8097 # Base MSYS/MinGW do not provide the 'file' command needed by
8098 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8099 # unless we find 'file', for example because we are cross-compiling.
8100 if ( file / ) >/dev/null 2>&1; then
8101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8102 lt_cv_file_magic_cmd='func_win32_libid'
8104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8105 lt_cv_file_magic_cmd='$OBJDUMP -f'
8110 # use the weaker test based on 'objdump'. See mingw*.
8111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8112 lt_cv_file_magic_cmd='$OBJDUMP -f'
8115 darwin* | rhapsody*)
8116 lt_cv_deplibs_check_method=pass_all
8119 freebsd* | dragonfly*)
8120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8123 # Not sure whether the presence of OpenBSD here was a mistake.
8124 # Let's accept both of them until this is cleared up.
8125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8126 lt_cv_file_magic_cmd=/usr/bin/file
8127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8131 lt_cv_deplibs_check_method=pass_all
8136 lt_cv_deplibs_check_method=pass_all
8139 hpux10.20* | hpux11*)
8140 lt_cv_file_magic_cmd=/usr/bin/file
8143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8147 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]'
8148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8152 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8162 irix5* | irix6* | nonstopux*)
8164 *-32|*"-32 ") libmagic=32-bit;;
8165 *-n32|*"-n32 ") libmagic=N32;;
8166 *-64|*"-64 ") libmagic=64-bit;;
8167 *) libmagic=never-match;;
8169 lt_cv_deplibs_check_method=pass_all
8172 # This must be Linux ELF.
8173 linux* | k*bsd*-gnu)
8174 lt_cv_deplibs_check_method=pass_all
8178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8187 lt_cv_file_magic_cmd=/usr/bin/file
8188 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8192 lt_cv_deplibs_check_method=pass_all
8196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8203 osf3* | osf4* | osf5*)
8204 lt_cv_deplibs_check_method=pass_all
8208 lt_cv_deplibs_check_method=pass_all
8212 lt_cv_deplibs_check_method=pass_all
8215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8216 lt_cv_deplibs_check_method=pass_all
8220 case $host_vendor in
8222 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]'
8223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8226 lt_cv_deplibs_check_method=pass_all
8229 lt_cv_file_magic_cmd='/bin/file'
8230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8233 lt_cv_file_magic_cmd='/bin/file'
8234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8235 lt_cv_file_magic_test_file=/lib/libc.so
8238 lt_cv_deplibs_check_method=pass_all
8241 lt_cv_deplibs_check_method=pass_all
8247 lt_cv_deplibs_check_method=pass_all
8252 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8253 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8254 file_magic_cmd=$lt_cv_file_magic_cmd
8255 deplibs_check_method=$lt_cv_deplibs_check_method
8256 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8269 if test -n "$ac_tool_prefix"; then
8270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8271 set dummy ${ac_tool_prefix}ar; ac_word=$2
8272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_AR+set}" = set; then
8275 $as_echo_n "(cached) " >&6
8277 if test -n "$AR"; then
8278 ac_cv_prog_AR="$AR" # Let the user override the test.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_AR="${ac_tool_prefix}ar"
8288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 if test -n "$AR"; then
8299 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8300 $as_echo "$AR" >&6; }
8302 { $as_echo "$as_me:$LINENO: result: no" >&5
8303 $as_echo "no" >&6; }
8308 if test -z "$ac_cv_prog_AR"; then
8310 # Extract the first word of "ar", so it can be a program name with args.
8311 set dummy ar; ac_word=$2
8312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8315 $as_echo_n "(cached) " >&6
8317 if test -n "$ac_ct_AR"; then
8318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_ac_ct_AR="ar"
8328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8338 if test -n "$ac_ct_AR"; then
8339 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8340 $as_echo "$ac_ct_AR" >&6; }
8342 { $as_echo "$as_me:$LINENO: result: no" >&5
8343 $as_echo "no" >&6; }
8346 if test "x$ac_ct_AR" = x; then
8349 case $cross_compiling:$ac_tool_warned in
8351 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 ac_tool_warned=yes ;;
8361 test -z "$AR" && AR=ar
8362 test -z "$AR_FLAGS" && AR_FLAGS=cru
8374 if test -n "$ac_tool_prefix"; then
8375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}strip; ac_word=$2
8377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if test "${ac_cv_prog_STRIP+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8382 if test -n "$STRIP"; then
8383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 STRIP=$ac_cv_prog_STRIP
8403 if test -n "$STRIP"; then
8404 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8405 $as_echo "$STRIP" >&6; }
8407 { $as_echo "$as_me:$LINENO: result: no" >&5
8408 $as_echo "no" >&6; }
8413 if test -z "$ac_cv_prog_STRIP"; then
8415 # Extract the first word of "strip", so it can be a program name with args.
8416 set dummy strip; ac_word=$2
8417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8420 $as_echo_n "(cached) " >&6
8422 if test -n "$ac_ct_STRIP"; then
8423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_prog_ac_ct_STRIP="strip"
8433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8443 if test -n "$ac_ct_STRIP"; then
8444 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8445 $as_echo "$ac_ct_STRIP" >&6; }
8447 { $as_echo "$as_me:$LINENO: result: no" >&5
8448 $as_echo "no" >&6; }
8451 if test "x$ac_ct_STRIP" = x; then
8454 case $cross_compiling:$ac_tool_warned in
8456 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8458 ac_tool_warned=yes ;;
8463 STRIP="$ac_cv_prog_STRIP"
8466 test -z "$STRIP" && STRIP=:
8473 if test -n "$ac_tool_prefix"; then
8474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if test "${ac_cv_prog_RANLIB+set}" = set; then
8479 $as_echo_n "(cached) " >&6
8481 if test -n "$RANLIB"; then
8482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 RANLIB=$ac_cv_prog_RANLIB
8502 if test -n "$RANLIB"; then
8503 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8504 $as_echo "$RANLIB" >&6; }
8506 { $as_echo "$as_me:$LINENO: result: no" >&5
8507 $as_echo "no" >&6; }
8512 if test -z "$ac_cv_prog_RANLIB"; then
8513 ac_ct_RANLIB=$RANLIB
8514 # Extract the first word of "ranlib", so it can be a program name with args.
8515 set dummy ranlib; ac_word=$2
8516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8519 $as_echo_n "(cached) " >&6
8521 if test -n "$ac_ct_RANLIB"; then
8522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_ac_ct_RANLIB="ranlib"
8532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8542 if test -n "$ac_ct_RANLIB"; then
8543 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8544 $as_echo "$ac_ct_RANLIB" >&6; }
8546 { $as_echo "$as_me:$LINENO: result: no" >&5
8547 $as_echo "no" >&6; }
8550 if test "x$ac_ct_RANLIB" = x; then
8553 case $cross_compiling:$ac_tool_warned in
8555 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557 ac_tool_warned=yes ;;
8559 RANLIB=$ac_ct_RANLIB
8562 RANLIB="$ac_cv_prog_RANLIB"
8565 test -z "$RANLIB" && RANLIB=:
8572 # Determine commands to create old-style static archives.
8573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8574 old_postinstall_cmds='chmod 644 $oldlib'
8575 old_postuninstall_cmds=
8577 if test -n "$RANLIB"; then
8580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8622 # If no C compiler was specified, use CC.
8625 # If no C compiler flags were specified, use CFLAGS.
8626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8628 # Allow CC to be a program name with arguments.
8632 # Check for command to grab the raw symbol name followed by C symbol from nm.
8633 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8634 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8635 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8636 $as_echo_n "(cached) " >&6
8639 # These are sane defaults that work on at least a few old systems.
8640 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8642 # Character class describing NM global symbol codes.
8643 symcode='[BCDEGRST]'
8645 # Regexp to match symbols that can be accessed directly from C.
8646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8648 # Define system-specific variables.
8653 cygwin* | mingw* | pw32* | cegcc*)
8654 symcode='[ABCDGISTW]'
8657 if test "$host_cpu" = ia64; then
8658 symcode='[ABCDEGRST]'
8662 symcode='[BCDEGRST]'
8665 symcode='[BCDEGQRST]'
8676 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8684 # If we're using GNU nm, then use its standard symbol codes.
8685 case `$NM -V 2>&1` in
8686 *GNU* | *'with BFD'*)
8687 symcode='[ABCDGIRSTW]' ;;
8690 # Transform an extracted symbol line into a proper C declaration.
8691 # Some systems (esp. on ia64) link data and code symbols differently,
8692 # so use this general approach.
8693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8695 # Transform an extracted symbol line into symbol name and symbol address
8696 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8697 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'"
8699 # Handle CRLF in mingw tool chain
8703 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8707 # Try without a prefix underscore, then with it.
8708 for ac_symprfx in "" "_"; do
8710 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8711 symxfrm="\\1 $ac_symprfx\\2 \\2"
8713 # Write the raw and C identifiers.
8714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8715 # Fake it for dumpbin and say T for any non-static function
8716 # and D for any global variable.
8717 # Also find C++ and __fastcall symbols from MSVC++,
8718 # which start with @ or ?.
8719 lt_cv_sys_global_symbol_pipe="$AWK '"\
8720 " {last_section=section; section=\$ 3};"\
8721 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8722 " \$ 0!~/External *\|/{next};"\
8723 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8724 " {if(hide[section]) next};"\
8725 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8726 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8727 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8728 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8729 " ' prfx=^$ac_symprfx"
8731 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8734 # Check to see that the pipe works correctly.
8738 cat > conftest.$ac_ext <<_LT_EOF
8743 void nm_test_func(void);
8744 void nm_test_func(void){}
8748 int main(){nm_test_var='a';nm_test_func();return(0);}
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>&5
8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; then
8756 # Now try to grab the symbols.
8758 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8759 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && test -s "$nlist"; then
8763 # Try sorting and uniquifying the output.
8764 if sort "$nlist" | uniq > "$nlist"T; then
8765 mv -f "$nlist"T "$nlist"
8770 # Make sure that we snagged all the symbols we need.
8771 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8772 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8773 cat <<_LT_EOF > conftest.$ac_ext
8779 # Now generate the symbol file.
8780 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8782 cat <<_LT_EOF >> conftest.$ac_ext
8784 /* The mapping between symbol names and symbols. */
8789 lt__PROGRAM__LTX_preloaded_symbols[] =
8791 { "@PROGRAM@", (void *) 0 },
8793 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8794 cat <<\_LT_EOF >> conftest.$ac_ext
8798 /* This works around a problem in FreeBSD linker */
8799 #ifdef FREEBSD_WORKAROUND
8800 static const void *lt_preloaded_setup() {
8801 return lt__PROGRAM__LTX_preloaded_symbols;
8809 # Now try linking the two files.
8810 mv conftest.$ac_objext conftstm.$ac_objext
8811 lt_save_LIBS="$LIBS"
8812 lt_save_CFLAGS="$CFLAGS"
8813 LIBS="conftstm.$ac_objext"
8814 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8822 LIBS="$lt_save_LIBS"
8823 CFLAGS="$lt_save_CFLAGS"
8825 echo "cannot find nm_test_func in $nlist" >&5
8828 echo "cannot find nm_test_var in $nlist" >&5
8831 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8834 echo "$progname: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8837 rm -rf conftest* conftst*
8839 # Do not use the global_symbol_pipe unless it works.
8840 if test "$pipe_works" = yes; then
8843 lt_cv_sys_global_symbol_pipe=
8849 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8850 lt_cv_sys_global_symbol_to_cdecl=
8852 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8853 { $as_echo "$as_me:$LINENO: result: failed" >&5
8854 $as_echo "failed" >&6; }
8856 { $as_echo "$as_me:$LINENO: result: ok" >&5
8857 $as_echo "ok" >&6; }
8881 # Check whether --enable-libtool-lock was given.
8882 if test "${enable_libtool_lock+set}" = set; then
8883 enableval=$enable_libtool_lock;
8886 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8888 # Some flags need to be propagated to the compiler or linker for good
8892 # Find out which ABI we are using.
8893 echo 'int i;' > conftest.$ac_ext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>&5
8897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; then
8899 case `/usr/bin/file conftest.$ac_objext` in
8911 # Find out which ABI we are using.
8912 echo '#line 8912 "configure"' > conftest.$ac_ext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>&5
8916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; then
8918 if test "$lt_cv_prog_gnu_ld" = yes; then
8919 case `/usr/bin/file conftest.$ac_objext` in
8921 LD="${LD-ld} -melf32bsmip"
8924 LD="${LD-ld} -melf32bmipn32"
8927 LD="${LD-ld} -melf64bmip"
8931 case `/usr/bin/file conftest.$ac_objext` in
8947 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8948 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8949 # Find out which ABI we are using.
8950 echo 'int i;' > conftest.$ac_ext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8952 (eval $ac_compile) 2>&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; then
8956 case `/usr/bin/file conftest.o` in
8959 x86_64-*kfreebsd*-gnu)
8960 LD="${LD-ld} -m elf_i386_fbsd"
8963 LD="${LD-ld} -m elf_i386"
8965 ppc64-*linux*|powerpc64-*linux*)
8966 LD="${LD-ld} -m elf32ppclinux"
8969 LD="${LD-ld} -m elf_s390"
8972 LD="${LD-ld} -m elf32_sparc"
8978 x86_64-*kfreebsd*-gnu)
8979 LD="${LD-ld} -m elf_x86_64_fbsd"
8982 LD="${LD-ld} -m elf_x86_64"
8984 ppc*-*linux*|powerpc*-*linux*)
8985 LD="${LD-ld} -m elf64ppc"
8987 s390*-*linux*|s390*-*tpf*)
8988 LD="${LD-ld} -m elf64_s390"
8991 LD="${LD-ld} -m elf64_sparc"
9001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9002 SAVE_CFLAGS="$CFLAGS"
9003 CFLAGS="$CFLAGS -belf"
9004 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9006 if test "${lt_cv_cc_needs_belf+set}" = set; then
9007 $as_echo_n "(cached) " >&6
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (ac_try="$ac_link"
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038 (eval "$ac_link") 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest$ac_exeext && {
9048 test "$cross_compiling" = yes ||
9049 $as_test_x conftest$ac_exeext
9051 lt_cv_cc_needs_belf=yes
9053 $as_echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 lt_cv_cc_needs_belf=no
9059 rm -rf conftest.dSYM
9060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9061 conftest$ac_exeext conftest.$ac_ext
9063 ac_cpp='$CPP $CPPFLAGS'
9064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9069 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9070 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9071 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9072 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9073 CFLAGS="$SAVE_CFLAGS"
9077 # Find out which ABI we are using.
9078 echo 'int i;' > conftest.$ac_ext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>&5
9082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; then
9084 case `/usr/bin/file conftest.o` in
9086 case $lt_cv_prog_gnu_ld in
9087 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9089 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9101 need_locks="$enable_libtool_lock"
9105 rhapsody* | darwin*)
9106 if test -n "$ac_tool_prefix"; then
9107 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9114 if test -n "$DSYMUTIL"; then
9115 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9135 if test -n "$DSYMUTIL"; then
9136 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9137 $as_echo "$DSYMUTIL" >&6; }
9139 { $as_echo "$as_me:$LINENO: result: no" >&5
9140 $as_echo "no" >&6; }
9145 if test -z "$ac_cv_prog_DSYMUTIL"; then
9146 ac_ct_DSYMUTIL=$DSYMUTIL
9147 # Extract the first word of "dsymutil", so it can be a program name with args.
9148 set dummy dsymutil; ac_word=$2
9149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9152 $as_echo_n "(cached) " >&6
9154 if test -n "$ac_ct_DSYMUTIL"; then
9155 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9175 if test -n "$ac_ct_DSYMUTIL"; then
9176 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9177 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9179 { $as_echo "$as_me:$LINENO: result: no" >&5
9180 $as_echo "no" >&6; }
9183 if test "x$ac_ct_DSYMUTIL" = x; then
9186 case $cross_compiling:$ac_tool_warned in
9188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9190 ac_tool_warned=yes ;;
9192 DSYMUTIL=$ac_ct_DSYMUTIL
9195 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9198 if test -n "$ac_tool_prefix"; then
9199 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9200 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9204 $as_echo_n "(cached) " >&6
9206 if test -n "$NMEDIT"; then
9207 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 NMEDIT=$ac_cv_prog_NMEDIT
9227 if test -n "$NMEDIT"; then
9228 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9229 $as_echo "$NMEDIT" >&6; }
9231 { $as_echo "$as_me:$LINENO: result: no" >&5
9232 $as_echo "no" >&6; }
9237 if test -z "$ac_cv_prog_NMEDIT"; then
9238 ac_ct_NMEDIT=$NMEDIT
9239 # Extract the first word of "nmedit", so it can be a program name with args.
9240 set dummy nmedit; ac_word=$2
9241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9244 $as_echo_n "(cached) " >&6
9246 if test -n "$ac_ct_NMEDIT"; then
9247 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9267 if test -n "$ac_ct_NMEDIT"; then
9268 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9269 $as_echo "$ac_ct_NMEDIT" >&6; }
9271 { $as_echo "$as_me:$LINENO: result: no" >&5
9272 $as_echo "no" >&6; }
9275 if test "x$ac_ct_NMEDIT" = x; then
9278 case $cross_compiling:$ac_tool_warned in
9280 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9282 ac_tool_warned=yes ;;
9284 NMEDIT=$ac_ct_NMEDIT
9287 NMEDIT="$ac_cv_prog_NMEDIT"
9290 if test -n "$ac_tool_prefix"; then
9291 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9292 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if test "${ac_cv_prog_LIPO+set}" = set; then
9296 $as_echo_n "(cached) " >&6
9298 if test -n "$LIPO"; then
9299 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 LIPO=$ac_cv_prog_LIPO
9319 if test -n "$LIPO"; then
9320 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9321 $as_echo "$LIPO" >&6; }
9323 { $as_echo "$as_me:$LINENO: result: no" >&5
9324 $as_echo "no" >&6; }
9329 if test -z "$ac_cv_prog_LIPO"; then
9331 # Extract the first word of "lipo", so it can be a program name with args.
9332 set dummy lipo; ac_word=$2
9333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9336 $as_echo_n "(cached) " >&6
9338 if test -n "$ac_ct_LIPO"; then
9339 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_prog_ac_ct_LIPO="lipo"
9349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9359 if test -n "$ac_ct_LIPO"; then
9360 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9361 $as_echo "$ac_ct_LIPO" >&6; }
9363 { $as_echo "$as_me:$LINENO: result: no" >&5
9364 $as_echo "no" >&6; }
9367 if test "x$ac_ct_LIPO" = x; then
9370 case $cross_compiling:$ac_tool_warned in
9372 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9374 ac_tool_warned=yes ;;
9379 LIPO="$ac_cv_prog_LIPO"
9382 if test -n "$ac_tool_prefix"; then
9383 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9384 set dummy ${ac_tool_prefix}otool; ac_word=$2
9385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if test "${ac_cv_prog_OTOOL+set}" = set; then
9388 $as_echo_n "(cached) " >&6
9390 if test -n "$OTOOL"; then
9391 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9400 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 OTOOL=$ac_cv_prog_OTOOL
9411 if test -n "$OTOOL"; then
9412 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9413 $as_echo "$OTOOL" >&6; }
9415 { $as_echo "$as_me:$LINENO: result: no" >&5
9416 $as_echo "no" >&6; }
9421 if test -z "$ac_cv_prog_OTOOL"; then
9423 # Extract the first word of "otool", so it can be a program name with args.
9424 set dummy otool; ac_word=$2
9425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9428 $as_echo_n "(cached) " >&6
9430 if test -n "$ac_ct_OTOOL"; then
9431 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_prog_ac_ct_OTOOL="otool"
9441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9451 if test -n "$ac_ct_OTOOL"; then
9452 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9453 $as_echo "$ac_ct_OTOOL" >&6; }
9455 { $as_echo "$as_me:$LINENO: result: no" >&5
9456 $as_echo "no" >&6; }
9459 if test "x$ac_ct_OTOOL" = x; then
9462 case $cross_compiling:$ac_tool_warned in
9464 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466 ac_tool_warned=yes ;;
9471 OTOOL="$ac_cv_prog_OTOOL"
9474 if test -n "$ac_tool_prefix"; then
9475 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9476 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9480 $as_echo_n "(cached) " >&6
9482 if test -n "$OTOOL64"; then
9483 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
9491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9492 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 OTOOL64=$ac_cv_prog_OTOOL64
9503 if test -n "$OTOOL64"; then
9504 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9505 $as_echo "$OTOOL64" >&6; }
9507 { $as_echo "$as_me:$LINENO: result: no" >&5
9508 $as_echo "no" >&6; }
9513 if test -z "$ac_cv_prog_OTOOL64"; then
9514 ac_ct_OTOOL64=$OTOOL64
9515 # Extract the first word of "otool64", so it can be a program name with args.
9516 set dummy otool64; ac_word=$2
9517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9520 $as_echo_n "(cached) " >&6
9522 if test -n "$ac_ct_OTOOL64"; then
9523 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532 ac_cv_prog_ac_ct_OTOOL64="otool64"
9533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9543 if test -n "$ac_ct_OTOOL64"; then
9544 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9545 $as_echo "$ac_ct_OTOOL64" >&6; }
9547 { $as_echo "$as_me:$LINENO: result: no" >&5
9548 $as_echo "no" >&6; }
9551 if test "x$ac_ct_OTOOL64" = x; then
9554 case $cross_compiling:$ac_tool_warned in
9556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9558 ac_tool_warned=yes ;;
9560 OTOOL64=$ac_ct_OTOOL64
9563 OTOOL64="$ac_cv_prog_OTOOL64"
9592 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9593 $as_echo_n "checking for -single_module linker flag... " >&6; }
9594 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9595 $as_echo_n "(cached) " >&6
9597 lt_cv_apple_cc_single_mod=no
9598 if test -z "${LT_MULTI_MODULE}"; then
9599 # By default we will add the -single_module flag. You can override
9600 # by either setting the environment variable LT_MULTI_MODULE
9601 # non-empty at configure time, or by adding -multi_module to the
9603 rm -rf libconftest.dylib*
9604 echo "int foo(void){return 1;}" > conftest.c
9605 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9606 -dynamiclib -Wl,-single_module conftest.c" >&5
9607 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9608 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9610 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9611 lt_cv_apple_cc_single_mod=yes
9613 cat conftest.err >&5
9615 rm -rf libconftest.dylib*
9619 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9621 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9623 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9624 $as_echo_n "(cached) " >&6
9626 lt_cv_ld_exported_symbols_list=no
9627 save_LDFLAGS=$LDFLAGS
9628 echo "_main" > conftest.sym
9629 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9652 $as_echo "$ac_try_echo") >&5
9653 (eval "$ac_link") 2>conftest.er1
9655 grep -v '^ *+' conftest.er1 >conftest.err
9657 cat conftest.err >&5
9658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext && {
9663 test "$cross_compiling" = yes ||
9664 $as_test_x conftest$ac_exeext
9666 lt_cv_ld_exported_symbols_list=yes
9668 $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 lt_cv_ld_exported_symbols_list=no
9674 rm -rf conftest.dSYM
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LDFLAGS="$save_LDFLAGS"
9680 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9681 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9683 rhapsody* | darwin1.[012])
9684 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9687 darwin*) # darwin 5.x on
9688 # if running on 10.5 or later, the deployment target defaults
9689 # to the OS version, if on x86, and 10.4, the deployment
9690 # target defaults to 10.4. Don't you love it?
9691 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9695 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9697 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9701 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702 _lt_dar_single_mod='$single_module'
9704 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9707 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9709 if test "$DSYMUTIL" != ":"; then
9710 _lt_dsymutil='~$DSYMUTIL $lib || :'
9718 for ac_header in dlfcn.h
9720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 $as_echo_n "checking for $ac_header... " >&6; }
9723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 $as_echo_n "(cached) " >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9734 #include <$ac_header>
9736 rm -f conftest.$ac_objext
9737 if { (ac_try="$ac_compile"
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9743 $as_echo "$ac_try_echo") >&5
9744 (eval "$ac_compile") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest.$ac_objext; then
9754 eval "$as_ac_Header=yes"
9756 $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 eval "$as_ac_Header=no"
9762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9764 ac_res=`eval 'as_val=${'$as_ac_Header'}
9765 $as_echo "$as_val"'`
9766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9767 $as_echo "$ac_res" >&6; }
9768 as_val=`eval 'as_val=${'$as_ac_Header'}
9769 $as_echo "$as_val"'`
9770 if test "x$as_val" = x""yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9782 ac_cpp='$CXXCPP $CPPFLAGS'
9783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9786 if test -z "$CXX"; then
9787 if test -n "$CCC"; then
9790 if test -n "$ac_tool_prefix"; then
9791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if test "${ac_cv_prog_CXX+set}" = set; then
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$CXX"; then
9801 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 if test -n "$CXX"; then
9822 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9823 $as_echo "$CXX" >&6; }
9825 { $as_echo "$as_me:$LINENO: result: no" >&5
9826 $as_echo "no" >&6; }
9830 test -n "$CXX" && break
9833 if test -z "$CXX"; then
9835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9837 # Extract the first word of "$ac_prog", so it can be a program name with args.
9838 set dummy $ac_prog; ac_word=$2
9839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9842 $as_echo_n "(cached) " >&6
9844 if test -n "$ac_ct_CXX"; then
9845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854 ac_cv_prog_ac_ct_CXX="$ac_prog"
9855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9865 if test -n "$ac_ct_CXX"; then
9866 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9867 $as_echo "$ac_ct_CXX" >&6; }
9869 { $as_echo "$as_me:$LINENO: result: no" >&5
9870 $as_echo "no" >&6; }
9874 test -n "$ac_ct_CXX" && break
9877 if test "x$ac_ct_CXX" = x; then
9880 case $cross_compiling:$ac_tool_warned in
9882 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9884 ac_tool_warned=yes ;;
9892 # Provide some information about the compiler.
9893 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9896 { (ac_try="$ac_compiler --version >&5"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9902 $as_echo "$ac_try_echo") >&5
9903 (eval "$ac_compiler --version >&5") 2>&5
9905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }
9907 { (ac_try="$ac_compiler -v >&5"
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913 $as_echo "$ac_try_echo") >&5
9914 (eval "$ac_compiler -v >&5") 2>&5
9916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }
9918 { (ac_try="$ac_compiler -V >&5"
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9924 $as_echo "$ac_try_echo") >&5
9925 (eval "$ac_compiler -V >&5") 2>&5
9927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }
9930 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9931 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9932 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9933 $as_echo_n "(cached) " >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9953 rm -f conftest.$ac_objext
9954 if { (ac_try="$ac_compile"
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9960 $as_echo "$ac_try_echo") >&5
9961 (eval "$ac_compile") 2>conftest.er1
9963 grep -v '^ *+' conftest.er1 >conftest.err
9965 cat conftest.err >&5
9966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_cxx_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest.$ac_objext; then
9973 $as_echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9983 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9984 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9985 if test $ac_compiler_gnu = yes; then
9990 ac_test_CXXFLAGS=${CXXFLAGS+set}
9991 ac_save_CXXFLAGS=$CXXFLAGS
9992 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9993 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9994 if test "${ac_cv_prog_cxx_g+set}" = set; then
9995 $as_echo_n "(cached) " >&6
9997 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9998 ac_cxx_werror_flag=yes
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10016 rm -f conftest.$ac_objext
10017 if { (ac_try="$ac_compile"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10023 $as_echo "$ac_try_echo") >&5
10024 (eval "$ac_compile") 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && {
10031 test -z "$ac_cxx_werror_flag" ||
10032 test ! -s conftest.err
10033 } && test -s conftest.$ac_objext; then
10034 ac_cv_prog_cxx_g=yes
10036 $as_echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10055 rm -f conftest.$ac_objext
10056 if { (ac_try="$ac_compile"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062 $as_echo "$ac_try_echo") >&5
10063 (eval "$ac_compile") 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && {
10070 test -z "$ac_cxx_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest.$ac_objext; then
10075 $as_echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10080 cat >conftest.$ac_ext <<_ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10095 rm -f conftest.$ac_objext
10096 if { (ac_try="$ac_compile"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_cxx_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
10113 ac_cv_prog_cxx_g=yes
10115 $as_echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10130 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10131 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10132 if test "$ac_test_CXXFLAGS" = set; then
10133 CXXFLAGS=$ac_save_CXXFLAGS
10134 elif test $ac_cv_prog_cxx_g = yes; then
10135 if test "$GXX" = yes; then
10141 if test "$GXX" = yes; then
10148 ac_cpp='$CPP $CPPFLAGS'
10149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10153 depcc="$CXX" am_compiler_list=
10155 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10156 $as_echo_n "checking dependency style of $depcc... " >&6; }
10157 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10158 $as_echo_n "(cached) " >&6
10160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10161 # We make a subdir and do the tests there. Otherwise we can end up
10162 # making bogus files that we don't know about and never remove. For
10163 # instance it was reported that on HP-UX the gcc test will end up
10164 # making a dummy file named `D' -- because `-MD' means `put the output
10167 # Copy depcomp to subdir because otherwise we won't find it if we're
10168 # using a relative directory.
10169 cp "$am_depcomp" conftest.dir
10171 # We will build objects and dependencies in a subdirectory because
10172 # it helps to detect inapplicable dependency modes. For instance
10173 # both Tru64's cc and ICC support -MD to output dependencies as a
10174 # side effect of compilation, but ICC will put the dependencies in
10175 # the current directory while Tru64 will put them in the object
10179 am_cv_CXX_dependencies_compiler_type=none
10180 if test "$am_compiler_list" = ""; then
10181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10183 am__universal=false
10184 case " $depcc " in #(
10185 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10188 for depmode in $am_compiler_list; do
10189 # Setup a source with many dependencies, because some compilers
10190 # like to wrap large dependency lists on column 80 (with \), and
10191 # we should not choose a depcomp mode which is confused by this.
10193 # We need to recreate these files for each test, as the compiler may
10194 # overwrite some of them when testing with obscure command lines.
10195 # This happens at least with the AIX C compiler.
10197 for i in 1 2 3 4 5 6; do
10198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10200 # Solaris 8's {/usr,}/bin/sh.
10201 touch sub/conftst$i.h
10203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10205 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10206 # mode. It turns out that the SunPro C++ compiler does not properly
10207 # handle `-M -o', and we need to detect this. Also, some Intel
10208 # versions had trouble with output in subdirs
10209 am__obj=sub/conftest.${OBJEXT-o}
10210 am__minus_obj="-o $am__obj"
10213 # This depmode causes a compiler race in universal mode.
10214 test "$am__universal" = false || continue
10217 # after this tag, mechanisms are not by side-effect, so they'll
10218 # only be used when explicitly requested
10219 if test "x$enable_dependency_tracking" = xyes; then
10225 msvisualcpp | msvcmsys)
10226 # This compiler won't grok `-c -o', but also, the minuso test has
10227 # not run yet. These depmodes are late enough in the game, and
10228 # so weak that their functioning should not be impacted.
10229 am__obj=conftest.${OBJEXT-o}
10234 if depmode=$depmode \
10235 source=sub/conftest.c object=$am__obj \
10236 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10237 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10238 >/dev/null 2>conftest.err &&
10239 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10241 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10243 # icc doesn't choke on unknown options, it will just issue warnings
10244 # or remarks (even with -Werror). So we grep stderr for any message
10245 # that says an option was ignored or not supported.
10246 # When given -MP, icc 7.0 and 7.1 complain thusly:
10247 # icc: Command line warning: ignoring option '-M'; no argument required
10248 # The diagnosis changed in icc 8.0:
10249 # icc: Command line remark: option '-MP' not supported
10250 if (grep 'ignoring option' conftest.err ||
10251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10252 am_cv_CXX_dependencies_compiler_type=$depmode
10259 rm -rf conftest.dir
10261 am_cv_CXX_dependencies_compiler_type=none
10265 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10266 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10267 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10270 test "x$enable_dependency_tracking" != xno \
10271 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10272 am__fastdepCXX_TRUE=
10273 am__fastdepCXX_FALSE='#'
10275 am__fastdepCXX_TRUE='#'
10276 am__fastdepCXX_FALSE=
10280 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10281 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10282 (test "X$CXX" != "Xg++"))) ; then
10284 ac_cpp='$CXXCPP $CPPFLAGS'
10285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10288 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10289 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10290 if test -z "$CXXCPP"; then
10291 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10292 $as_echo_n "(cached) " >&6
10294 # Double quotes because CXXCPP needs to be expanded
10295 for CXXCPP in "$CXX -E" "/lib/cpp"
10297 ac_preproc_ok=false
10298 for ac_cxx_preproc_warn_flag in '' yes
10300 # Use a header file that comes with gcc, so configuring glibc
10301 # with a fresh cross-compiler works.
10302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303 # <limits.h> exists even on freestanding compilers.
10304 # On the NeXT, cc -E runs the code through the compiler's parser,
10305 # not just through cpp. "Syntax error" is here to catch this case.
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 # include <limits.h>
10315 # include <assert.h>
10319 if { (ac_try="$ac_cpp conftest.$ac_ext"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10325 $as_echo "$ac_try_echo") >&5
10326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } >/dev/null && {
10333 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10334 test ! -s conftest.err
10338 $as_echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 # Broken: fails on valid input.
10345 rm -f conftest.err conftest.$ac_ext
10347 # OK, works on sane cases. Now check whether nonexistent headers
10348 # can be detected and how.
10349 cat >conftest.$ac_ext <<_ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <ac_nonexistent.h>
10357 if { (ac_try="$ac_cpp conftest.$ac_ext"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10363 $as_echo "$ac_try_echo") >&5
10364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10366 grep -v '^ *+' conftest.er1 >conftest.err
10368 cat conftest.err >&5
10369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } >/dev/null && {
10371 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10372 test ! -s conftest.err
10374 # Broken: success on invalid input.
10377 $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 # Passes both tests.
10385 rm -f conftest.err conftest.$ac_ext
10388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10389 rm -f conftest.err conftest.$ac_ext
10390 if $ac_preproc_ok; then
10395 ac_cv_prog_CXXCPP=$CXXCPP
10398 CXXCPP=$ac_cv_prog_CXXCPP
10400 ac_cv_prog_CXXCPP=$CXXCPP
10402 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10403 $as_echo "$CXXCPP" >&6; }
10404 ac_preproc_ok=false
10405 for ac_cxx_preproc_warn_flag in '' yes
10407 # Use a header file that comes with gcc, so configuring glibc
10408 # with a fresh cross-compiler works.
10409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410 # <limits.h> exists even on freestanding compilers.
10411 # On the NeXT, cc -E runs the code through the compiler's parser,
10412 # not just through cpp. "Syntax error" is here to catch this case.
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10420 # include <limits.h>
10422 # include <assert.h>
10426 if { (ac_try="$ac_cpp conftest.$ac_ext"
10427 case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10432 $as_echo "$ac_try_echo") >&5
10433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null && {
10440 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10441 test ! -s conftest.err
10445 $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 # Broken: fails on valid input.
10452 rm -f conftest.err conftest.$ac_ext
10454 # OK, works on sane cases. Now check whether nonexistent headers
10455 # can be detected and how.
10456 cat >conftest.$ac_ext <<_ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462 #include <ac_nonexistent.h>
10464 if { (ac_try="$ac_cpp conftest.$ac_ext"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev/null && {
10478 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10479 test ! -s conftest.err
10481 # Broken: success on invalid input.
10484 $as_echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 # Passes both tests.
10492 rm -f conftest.err conftest.$ac_ext
10495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10496 rm -f conftest.err conftest.$ac_ext
10497 if $ac_preproc_ok; then
10500 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10502 _lt_caught_CXX_error=yes; }
10506 ac_cpp='$CPP $CPPFLAGS'
10507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512 _lt_caught_CXX_error=yes
10526 enable_win32_dll=no
10529 # Check whether --enable-shared was given.
10530 if test "${enable_shared+set}" = set; then
10531 enableval=$enable_shared; p=${PACKAGE-default}
10533 yes) enable_shared=yes ;;
10534 no) enable_shared=no ;;
10537 # Look at the argument we got. We use all the common list separators.
10538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10539 for pkg in $enableval; do
10541 if test "X$pkg" = "X$p"; then
10560 # Check whether --enable-static was given.
10561 if test "${enable_static+set}" = set; then
10562 enableval=$enable_static; p=${PACKAGE-default}
10564 yes) enable_static=yes ;;
10565 no) enable_static=no ;;
10568 # Look at the argument we got. We use all the common list separators.
10569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10570 for pkg in $enableval; do
10572 if test "X$pkg" = "X$p"; then
10592 # Check whether --with-pic was given.
10593 if test "${with_pic+set}" = set; then
10594 withval=$with_pic; pic_mode="$withval"
10600 test -z "$pic_mode" && pic_mode=default
10608 # Check whether --enable-fast-install was given.
10609 if test "${enable_fast_install+set}" = set; then
10610 enableval=$enable_fast_install; p=${PACKAGE-default}
10612 yes) enable_fast_install=yes ;;
10613 no) enable_fast_install=no ;;
10615 enable_fast_install=no
10616 # Look at the argument we got. We use all the common list separators.
10617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10618 for pkg in $enableval; do
10620 if test "X$pkg" = "X$p"; then
10621 enable_fast_install=yes
10628 enable_fast_install=yes
10641 # This can be used to rebuild libtool when needed
10642 LIBTOOL_DEPS="$ltmain"
10644 # Always use our own libtool.
10645 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10671 test -z "$LN_S" && LN_S="ln -s"
10686 if test -n "${ZSH_VERSION+set}" ; then
10687 setopt NO_GLOB_SUBST
10690 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
10691 $as_echo_n "checking for objdir... " >&6; }
10692 if test "${lt_cv_objdir+set}" = set; then
10693 $as_echo_n "(cached) " >&6
10695 rm -f .libs 2>/dev/null
10696 mkdir .libs 2>/dev/null
10697 if test -d .libs; then
10700 # MS-DOS does not allow filenames that begin with a dot.
10703 rmdir .libs 2>/dev/null
10705 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10706 $as_echo "$lt_cv_objdir" >&6; }
10707 objdir=$lt_cv_objdir
10713 cat >>confdefs.h <<_ACEOF
10714 #define LT_OBJDIR "$lt_cv_objdir/"
10735 # AIX sometimes has problems with the GCC collect2 program. For some
10736 # reason, if we set the COLLECT_NAMES environment variable, the problems
10737 # vanish in a puff of smoke.
10738 if test "X${COLLECT_NAMES+set}" != Xset; then
10740 export COLLECT_NAMES
10745 # Sed substitution that helps us do robust quoting. It backslashifies
10746 # metacharacters that are still active within double-quoted strings.
10747 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10749 # Same as above, but do not quote variable references.
10750 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10752 # Sed substitution to delay expansion of an escaped shell variable in a
10753 # double_quote_subst'ed string.
10754 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10756 # Sed substitution to delay expansion of an escaped single quote.
10757 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10759 # Sed substitution to avoid accidental globbing in evaled expressions
10760 no_glob_subst='s/\*/\\\*/g'
10762 # Global variables:
10764 can_build_shared=yes
10766 # All known linkers require a `.a' archive for static linking (except MSVC,
10767 # which needs '.lib').
10770 with_gnu_ld="$lt_cv_prog_gnu_ld"
10773 old_CFLAGS="$CFLAGS"
10775 # Set sane defaults for various variables
10776 test -z "$CC" && CC=cc
10777 test -z "$LTCC" && LTCC=$CC
10778 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10779 test -z "$LD" && LD=ld
10780 test -z "$ac_objext" && ac_objext=o
10782 for cc_temp in $compiler""; do
10784 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10785 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10790 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10793 # Only perform the check for file, if the check method requires it
10794 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10795 case $deplibs_check_method in
10797 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10798 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10799 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10800 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10805 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10808 lt_save_MAGIC_CMD="$MAGIC_CMD"
10809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10810 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10811 for ac_dir in $ac_dummy; do
10813 test -z "$ac_dir" && ac_dir=.
10814 if test -f $ac_dir/${ac_tool_prefix}file; then
10815 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10816 if test -n "$file_magic_test_file"; then
10817 case $deplibs_check_method in
10819 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10822 $EGREP "$file_magic_regex" > /dev/null; then
10827 *** Warning: the command libtool uses to detect shared libraries,
10828 *** $file_magic_cmd, produces output that libtool cannot recognize.
10829 *** The result is that libtool may fail to recognize shared libraries
10830 *** as such. This will affect the creation of libtool libraries that
10831 *** depend on shared libraries, but programs linked with such libtool
10832 *** libraries will work regardless of this problem. Nevertheless, you
10833 *** may want to report the problem to your system manager and/or to
10834 *** bug-libtool@gnu.org
10844 MAGIC_CMD="$lt_save_MAGIC_CMD"
10849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10850 if test -n "$MAGIC_CMD"; then
10851 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10852 $as_echo "$MAGIC_CMD" >&6; }
10854 { $as_echo "$as_me:$LINENO: result: no" >&5
10855 $as_echo "no" >&6; }
10862 if test -z "$lt_cv_path_MAGIC_CMD"; then
10863 if test -n "$ac_tool_prefix"; then
10864 { $as_echo "$as_me:$LINENO: checking for file" >&5
10865 $as_echo_n "checking for file... " >&6; }
10866 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10867 $as_echo_n "(cached) " >&6
10871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10874 lt_save_MAGIC_CMD="$MAGIC_CMD"
10875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10877 for ac_dir in $ac_dummy; do
10879 test -z "$ac_dir" && ac_dir=.
10880 if test -f $ac_dir/file; then
10881 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10882 if test -n "$file_magic_test_file"; then
10883 case $deplibs_check_method in
10885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10888 $EGREP "$file_magic_regex" > /dev/null; then
10893 *** Warning: the command libtool uses to detect shared libraries,
10894 *** $file_magic_cmd, produces output that libtool cannot recognize.
10895 *** The result is that libtool may fail to recognize shared libraries
10896 *** as such. This will affect the creation of libtool libraries that
10897 *** depend on shared libraries, but programs linked with such libtool
10898 *** libraries will work regardless of this problem. Nevertheless, you
10899 *** may want to report the problem to your system manager and/or to
10900 *** bug-libtool@gnu.org
10910 MAGIC_CMD="$lt_save_MAGIC_CMD"
10915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10916 if test -n "$MAGIC_CMD"; then
10917 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10918 $as_echo "$MAGIC_CMD" >&6; }
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10934 # Use C for the default configuration in the libtool script
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10944 # Source file extension for C test sources.
10947 # Object file extension for compiled C test sources.
10951 # Code to be used in simple compile tests
10952 lt_simple_compile_test_code="int some_variable = 0;"
10954 # Code to be used in simple link tests
10955 lt_simple_link_test_code='int main(){return(0);}'
10963 # If no C compiler was specified, use CC.
10966 # If no C compiler flags were specified, use CFLAGS.
10967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10969 # Allow CC to be a program name with arguments.
10972 # Save the default compiler, since it gets overwritten when the other
10973 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10974 compiler_DEFAULT=$CC
10976 # save warnings/boilerplate of simple test code
10977 ac_outfile=conftest.$ac_objext
10978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10980 _lt_compiler_boilerplate=`cat conftest.err`
10983 ac_outfile=conftest.$ac_objext
10984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10986 _lt_linker_boilerplate=`cat conftest.err`
10990 if test -n "$compiler"; then
10992 lt_prog_compiler_no_builtin_flag=
10994 if test "$GCC" = yes; then
10995 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10997 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10998 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10999 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11000 $as_echo_n "(cached) " >&6
11002 lt_cv_prog_compiler_rtti_exceptions=no
11003 ac_outfile=conftest.$ac_objext
11004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11005 lt_compiler_flag="-fno-rtti -fno-exceptions"
11006 # Insert the option either (1) after the last *FLAGS variable, or
11007 # (2) before a word containing "conftest.", or (3) at the end.
11008 # Note that $ac_compile itself does not contain backslashes and begins
11009 # with a dollar sign (not a hyphen), so the echo should work correctly.
11010 # The option is referenced via a variable to avoid confusing sed.
11011 lt_compile=`echo "$ac_compile" | $SED \
11012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11014 -e 's:$: $lt_compiler_flag:'`
11015 (eval echo "\"\$as_me:11015: $lt_compile\"" >&5)
11016 (eval "$lt_compile" 2>conftest.err)
11018 cat conftest.err >&5
11019 echo "$as_me:11019: \$? = $ac_status" >&5
11020 if (exit $ac_status) && test -s "$ac_outfile"; then
11021 # The compiler can only warn and ignore the option if not recognized
11022 # So say no if there are warnings other than the usual output.
11023 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11026 lt_cv_prog_compiler_rtti_exceptions=yes
11032 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11033 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11035 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11036 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11048 lt_prog_compiler_wl=
11049 lt_prog_compiler_pic=
11050 lt_prog_compiler_static=
11052 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11053 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11055 if test "$GCC" = yes; then
11056 lt_prog_compiler_wl='-Wl,'
11057 lt_prog_compiler_static='-static'
11061 # All AIX code is PIC.
11062 if test "$host_cpu" = ia64; then
11063 # AIX 5 now supports IA64 processor
11064 lt_prog_compiler_static='-Bstatic'
11071 # see comment about AmigaOS4 .so support
11072 lt_prog_compiler_pic='-fPIC'
11075 # FIXME: we need at least 68020 code to build shared libraries, but
11076 # adding the `-m68020' flag to GCC prevents building anything better,
11078 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11083 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11084 # PIC is the default for these OSes.
11087 mingw* | cygwin* | pw32* | os2* | cegcc*)
11088 # This hack is so that the source file can tell whether it is being
11089 # built for inclusion in a dll (and should export symbols for example).
11090 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11091 # (--disable-auto-import) libraries
11092 lt_prog_compiler_pic='-DDLL_EXPORT'
11095 darwin* | rhapsody*)
11096 # PIC is the default on this platform
11097 # Common symbols not allowed in MH_DYLIB files
11098 lt_prog_compiler_pic='-fno-common'
11102 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11103 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11104 # sets the default TLS model and affects inlining.
11110 lt_prog_compiler_pic='-fPIC'
11116 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11117 # Instead, we relocate shared libraries at runtime.
11121 # Just because we use GCC doesn't mean we suddenly get shared libraries
11122 # on systems that don't support them.
11123 lt_prog_compiler_can_build_shared=no
11128 # QNX uses GNU C++, but need to define -shared option too, otherwise
11129 # it will coredump.
11130 lt_prog_compiler_pic='-fPIC -shared'
11134 if test -d /usr/nec; then
11135 lt_prog_compiler_pic=-Kconform_pic
11140 lt_prog_compiler_pic='-fPIC'
11144 # PORTME Check for flag to pass linker flags through the system compiler.
11147 lt_prog_compiler_wl='-Wl,'
11148 if test "$host_cpu" = ia64; then
11149 # AIX 5 now supports IA64 processor
11150 lt_prog_compiler_static='-Bstatic'
11152 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11156 mingw* | cygwin* | pw32* | os2* | cegcc*)
11157 # This hack is so that the source file can tell whether it is being
11158 # built for inclusion in a dll (and should export symbols for example).
11159 lt_prog_compiler_pic='-DDLL_EXPORT'
11162 hpux9* | hpux10* | hpux11*)
11163 lt_prog_compiler_wl='-Wl,'
11164 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11165 # not for PA HP-UX.
11171 lt_prog_compiler_pic='+Z'
11174 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11175 lt_prog_compiler_static='${wl}-a ${wl}archive'
11178 irix5* | irix6* | nonstopux*)
11179 lt_prog_compiler_wl='-Wl,'
11180 # PIC (with -KPIC) is the default.
11181 lt_prog_compiler_static='-non_shared'
11184 linux* | k*bsd*-gnu)
11185 case $cc_basename in
11186 # old Intel for x86_64 which still supported -KPIC.
11188 lt_prog_compiler_wl='-Wl,'
11189 lt_prog_compiler_pic='-KPIC'
11190 lt_prog_compiler_static='-static'
11192 # icc used to be incompatible with GCC.
11193 # ICC 10 doesn't accept -KPIC any more.
11195 lt_prog_compiler_wl='-Wl,'
11196 lt_prog_compiler_pic='-fPIC'
11197 lt_prog_compiler_static='-static'
11199 # Lahey Fortran 8.1.
11201 lt_prog_compiler_wl='-Wl,'
11202 lt_prog_compiler_pic='--shared'
11203 lt_prog_compiler_static='--static'
11205 pgcc* | pgf77* | pgf90* | pgf95*)
11206 # Portland Group compilers (*not* the Pentium gcc compiler,
11207 # which looks to be a dead project)
11208 lt_prog_compiler_wl='-Wl,'
11209 lt_prog_compiler_pic='-fpic'
11210 lt_prog_compiler_static='-Bstatic'
11213 lt_prog_compiler_wl='-Wl,'
11214 # All Alpha code is PIC.
11215 lt_prog_compiler_static='-non_shared'
11218 # IBM XL C 8.0/Fortran 10.1 on PPC
11219 lt_prog_compiler_wl='-Wl,'
11220 lt_prog_compiler_pic='-qpic'
11221 lt_prog_compiler_static='-qstaticlink'
11224 case `$CC -V 2>&1 | sed 5q` in
11227 lt_prog_compiler_pic='-KPIC'
11228 lt_prog_compiler_static='-Bstatic'
11229 lt_prog_compiler_wl='-Wl,'
11232 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11233 lt_prog_compiler_pic='-KPIC'
11234 lt_prog_compiler_static='-Bstatic'
11235 lt_prog_compiler_wl=''
11243 lt_prog_compiler_pic='-KPIC'
11244 lt_prog_compiler_static='-Bstatic'
11248 # QNX uses GNU C++, but need to define -shared option too, otherwise
11249 # it will coredump.
11250 lt_prog_compiler_pic='-fPIC -shared'
11253 osf3* | osf4* | osf5*)
11254 lt_prog_compiler_wl='-Wl,'
11255 # All OSF/1 code is PIC.
11256 lt_prog_compiler_static='-non_shared'
11260 lt_prog_compiler_static='-non_shared'
11264 lt_prog_compiler_pic='-KPIC'
11265 lt_prog_compiler_static='-Bstatic'
11266 case $cc_basename in
11267 f77* | f90* | f95*)
11268 lt_prog_compiler_wl='-Qoption ld ';;
11270 lt_prog_compiler_wl='-Wl,';;
11275 lt_prog_compiler_wl='-Qoption ld '
11276 lt_prog_compiler_pic='-PIC'
11277 lt_prog_compiler_static='-Bstatic'
11280 sysv4 | sysv4.2uw2* | sysv4.3*)
11281 lt_prog_compiler_wl='-Wl,'
11282 lt_prog_compiler_pic='-KPIC'
11283 lt_prog_compiler_static='-Bstatic'
11287 if test -d /usr/nec ;then
11288 lt_prog_compiler_pic='-Kconform_pic'
11289 lt_prog_compiler_static='-Bstatic'
11293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11294 lt_prog_compiler_wl='-Wl,'
11295 lt_prog_compiler_pic='-KPIC'
11296 lt_prog_compiler_static='-Bstatic'
11300 lt_prog_compiler_wl='-Wl,'
11301 lt_prog_compiler_can_build_shared=no
11305 lt_prog_compiler_pic='-pic'
11306 lt_prog_compiler_static='-Bstatic'
11310 lt_prog_compiler_can_build_shared=no
11316 # For platforms which do not support PIC, -DPIC is meaningless:
11318 lt_prog_compiler_pic=
11321 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11324 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11325 $as_echo "$lt_prog_compiler_pic" >&6; }
11333 # Check to make sure the PIC flag actually works.
11335 if test -n "$lt_prog_compiler_pic"; then
11336 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11337 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11338 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11339 $as_echo_n "(cached) " >&6
11341 lt_cv_prog_compiler_pic_works=no
11342 ac_outfile=conftest.$ac_objext
11343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11345 # Insert the option either (1) after the last *FLAGS variable, or
11346 # (2) before a word containing "conftest.", or (3) at the end.
11347 # Note that $ac_compile itself does not contain backslashes and begins
11348 # with a dollar sign (not a hyphen), so the echo should work correctly.
11349 # The option is referenced via a variable to avoid confusing sed.
11350 lt_compile=`echo "$ac_compile" | $SED \
11351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11353 -e 's:$: $lt_compiler_flag:'`
11354 (eval echo "\"\$as_me:11354: $lt_compile\"" >&5)
11355 (eval "$lt_compile" 2>conftest.err)
11357 cat conftest.err >&5
11358 echo "$as_me:11358: \$? = $ac_status" >&5
11359 if (exit $ac_status) && test -s "$ac_outfile"; then
11360 # The compiler can only warn and ignore the option if not recognized
11361 # So say no if there are warnings other than the usual output.
11362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11365 lt_cv_prog_compiler_pic_works=yes
11371 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11372 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11374 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11375 case $lt_prog_compiler_pic in
11377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11380 lt_prog_compiler_pic=
11381 lt_prog_compiler_can_build_shared=no
11392 # Check to make sure the static flag actually works.
11394 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11395 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11396 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11397 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11398 $as_echo_n "(cached) " >&6
11400 lt_cv_prog_compiler_static_works=no
11401 save_LDFLAGS="$LDFLAGS"
11402 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11403 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11405 # The linker can only warn and ignore the option if not recognized
11406 # So say no if there are warnings
11407 if test -s conftest.err; then
11408 # Append any errors to the config.log.
11409 cat conftest.err 1>&5
11410 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11412 if diff conftest.exp conftest.er2 >/dev/null; then
11413 lt_cv_prog_compiler_static_works=yes
11416 lt_cv_prog_compiler_static_works=yes
11420 LDFLAGS="$save_LDFLAGS"
11423 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11424 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11426 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11429 lt_prog_compiler_static=
11438 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11440 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11441 $as_echo_n "(cached) " >&6
11443 lt_cv_prog_compiler_c_o=no
11444 $RM -r conftest 2>/dev/null
11448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11450 lt_compiler_flag="-o out/conftest2.$ac_objext"
11451 # Insert the option either (1) after the last *FLAGS variable, or
11452 # (2) before a word containing "conftest.", or (3) at the end.
11453 # Note that $ac_compile itself does not contain backslashes and begins
11454 # with a dollar sign (not a hyphen), so the echo should work correctly.
11455 lt_compile=`echo "$ac_compile" | $SED \
11456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11458 -e 's:$: $lt_compiler_flag:'`
11459 (eval echo "\"\$as_me:11459: $lt_compile\"" >&5)
11460 (eval "$lt_compile" 2>out/conftest.err)
11462 cat out/conftest.err >&5
11463 echo "$as_me:11463: \$? = $ac_status" >&5
11464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11466 # The compiler can only warn and ignore the option if not recognized
11467 # So say no if there are warnings
11468 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11471 lt_cv_prog_compiler_c_o=yes
11476 # SGI C++ compiler will create directory out/ii_files/ for
11477 # template instantiation
11478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11479 $RM out/* && rmdir out
11485 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11486 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11493 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11495 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11496 $as_echo_n "(cached) " >&6
11498 lt_cv_prog_compiler_c_o=no
11499 $RM -r conftest 2>/dev/null
11503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11505 lt_compiler_flag="-o out/conftest2.$ac_objext"
11506 # Insert the option either (1) after the last *FLAGS variable, or
11507 # (2) before a word containing "conftest.", or (3) at the end.
11508 # Note that $ac_compile itself does not contain backslashes and begins
11509 # with a dollar sign (not a hyphen), so the echo should work correctly.
11510 lt_compile=`echo "$ac_compile" | $SED \
11511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11513 -e 's:$: $lt_compiler_flag:'`
11514 (eval echo "\"\$as_me:11514: $lt_compile\"" >&5)
11515 (eval "$lt_compile" 2>out/conftest.err)
11517 cat out/conftest.err >&5
11518 echo "$as_me:11518: \$? = $ac_status" >&5
11519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11521 # The compiler can only warn and ignore the option if not recognized
11522 # So say no if there are warnings
11523 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11526 lt_cv_prog_compiler_c_o=yes
11531 # SGI C++ compiler will create directory out/ii_files/ for
11532 # template instantiation
11533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11534 $RM out/* && rmdir out
11540 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11541 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11546 hard_links="nottested"
11547 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11548 # do not overwrite the value of need_locks provided by the user
11549 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11550 $as_echo_n "checking if we can lock with hard links... " >&6; }
11553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11555 ln conftest.a conftest.b 2>&5 || hard_links=no
11556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11557 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11558 $as_echo "$hard_links" >&6; }
11559 if test "$hard_links" = no; then
11560 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11561 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11573 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11574 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11577 allow_undefined_flag=
11578 always_export_symbols=no
11580 archive_expsym_cmds=
11581 compiler_needs_object=no
11582 enable_shared_with_static_runtimes=no
11583 export_dynamic_flag_spec=
11584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11585 hardcode_automatic=no
11587 hardcode_direct_absolute=no
11588 hardcode_libdir_flag_spec=
11589 hardcode_libdir_flag_spec_ld=
11590 hardcode_libdir_separator=
11591 hardcode_minus_L=no
11592 hardcode_shlibpath_var=unsupported
11594 link_all_deplibs=unknown
11596 module_expsym_cmds=
11597 old_archive_from_new_cmds=
11598 old_archive_from_expsyms_cmds=
11599 thread_safe_flag_spec=
11600 whole_archive_flag_spec=
11601 # include_expsyms should be a list of space-separated symbols to be *always*
11602 # included in the symbol list
11604 # exclude_expsyms can be an extended regexp of symbols to exclude
11605 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11606 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11607 # as well as any symbol that contains `d'.
11608 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11609 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11610 # platforms (ab)use it in PIC code, but their linkers get confused if
11611 # the symbol is explicitly referenced. Since portable code cannot
11612 # rely on this symbol name, it's probably fine to never include it in
11613 # preloaded symbol tables.
11614 # Exclude shared library initialization/finalization symbols.
11615 extract_expsyms_cmds=
11618 cygwin* | mingw* | pw32* | cegcc*)
11619 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11620 # When not using gcc, we currently assume that we are using
11621 # Microsoft Visual C++.
11622 if test "$GCC" != yes; then
11627 # we just hope/assume this is gcc and not c89 (= MSVC++)
11636 if test "$with_gnu_ld" = yes; then
11637 # If archive_cmds runs LD, not CC, wlarc should be empty
11640 # Set some defaults for GNU ld with shared library support. These
11641 # are reset later if shared libraries are not supported. Putting them
11642 # here allows them to be overridden if necessary.
11643 runpath_var=LD_RUN_PATH
11644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11645 export_dynamic_flag_spec='${wl}--export-dynamic'
11646 # ancient GNU ld didn't support --whole-archive et. al.
11647 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11648 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11650 whole_archive_flag_spec=
11652 supports_anon_versioning=no
11653 case `$LD -v 2>&1` in
11654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11657 *\ 2.11.*) ;; # other 2.11 versions
11658 *) supports_anon_versioning=yes ;;
11661 # See if GNU ld supports shared libraries.
11664 # On AIX/PPC, the GNU linker is very broken
11665 if test "$host_cpu" != ia64; then
11669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11670 *** to be unable to reliably create shared libraries on AIX.
11671 *** Therefore, libtool is disabling shared libraries support. If you
11672 *** really care for shared libraries, you may want to modify your PATH
11673 *** so that a non-GNU linker is found, and then restart.
11682 # see comment about AmigaOS4 .so support
11683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11684 archive_expsym_cmds=''
11687 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)'
11688 hardcode_libdir_flag_spec='-L$libdir'
11689 hardcode_minus_L=yes
11695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11696 allow_undefined_flag=unsupported
11697 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11698 # support --undefined. This deserves some investigation. FIXME
11699 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11705 cygwin* | mingw* | pw32* | cegcc*)
11706 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11707 # as there is no search path for DLLs.
11708 hardcode_libdir_flag_spec='-L$libdir'
11709 allow_undefined_flag=unsupported
11710 always_export_symbols=no
11711 enable_shared_with_static_runtimes=yes
11712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11714 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11716 # If the export-symbols file already is a .def file (1st line
11717 # is EXPORTS), use it as is; otherwise, prepend...
11718 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11719 cp $export_symbols $output_objdir/$soname.def;
11721 echo EXPORTS > $output_objdir/$soname.def;
11722 cat $export_symbols >> $output_objdir/$soname.def;
11724 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11732 hardcode_shlibpath_var=no
11733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11734 export_dynamic_flag_spec='${wl}-E'
11735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11736 # Instead, shared libraries are loaded at an image base (0x10000000 by
11737 # default) and relocated if they conflict, which is a slow very memory
11738 # consuming and fragmenting process. To avoid this, we pick a random,
11739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11742 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'
11745 gnu* | linux* | tpf* | k*bsd*-gnu)
11747 if test "$host_os" = linux-dietlibc; then
11748 case $cc_basename in
11749 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11752 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11753 && test "$tmp_diet" = no
11756 tmp_sharedflag='-shared'
11757 case $cc_basename,$host_cpu in
11758 pgcc*) # Portland Group C compiler
11759 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'
11760 tmp_addflag=' $pic_flag'
11762 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11763 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'
11764 tmp_addflag=' $pic_flag -Mnomain' ;;
11765 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11766 tmp_addflag=' -i_dynamic' ;;
11767 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11768 tmp_addflag=' -i_dynamic -nofor_main' ;;
11769 ifc* | ifort*) # Intel Fortran compiler
11770 tmp_addflag=' -nofor_main' ;;
11771 lf95*) # Lahey Fortran 8.1
11772 whole_archive_flag_spec=
11773 tmp_sharedflag='--shared' ;;
11774 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11775 tmp_sharedflag='-qmkshrobj'
11778 case `$CC -V 2>&1 | sed 5q` in
11779 *Sun\ C*) # Sun C 5.9
11780 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'
11781 compiler_needs_object=yes
11782 tmp_sharedflag='-G' ;;
11783 *Sun\ F*) # Sun Fortran 8.3
11784 tmp_sharedflag='-G' ;;
11786 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11788 if test "x$supports_anon_versioning" = xyes; then
11789 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11791 echo "local: *; };" >> $output_objdir/$libname.ver~
11792 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11795 case $cc_basename in
11797 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11798 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11799 hardcode_libdir_flag_spec=
11800 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11801 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11802 if test "x$supports_anon_versioning" = xyes; then
11803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11805 echo "local: *; };" >> $output_objdir/$libname.ver~
11806 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11817 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11826 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11831 *** create shared libraries on Solaris systems. Therefore, libtool
11832 *** is disabling shared libraries support. We urge you to upgrade GNU
11833 *** binutils to release 2.9.1 or newer. Another option is to modify
11834 *** your PATH or compiler configuration so that the native linker is
11835 *** used, and then restart.
11838 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11840 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11847 case `$LD -v 2>&1` in
11848 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11852 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11853 *** reliably create shared libraries on SCO systems. Therefore, libtool
11854 *** is disabling shared libraries support. We urge you to upgrade GNU
11855 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11856 *** your PATH or compiler configuration so that the native linker is
11857 *** used, and then restart.
11862 # For security reasons, it is highly recommended that you always
11863 # use absolute paths for naming shared libraries, and exclude the
11864 # DT_RUNPATH tag from executables and libraries. But doing so
11865 # requires that you compile everything twice, which is a pain.
11866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11880 hardcode_direct=yes
11881 hardcode_shlibpath_var=no
11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11894 if test "$ld_shlibs" = no; then
11896 hardcode_libdir_flag_spec=
11897 export_dynamic_flag_spec=
11898 whole_archive_flag_spec=
11901 # PORTME fill in a description of your system's linker (not GNU ld)
11904 allow_undefined_flag=unsupported
11905 always_export_symbols=yes
11906 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'
11907 # Note: this linker hardcodes the directories in LIBPATH if there
11908 # are no directories specified by -L.
11909 hardcode_minus_L=yes
11910 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11911 # Neither direct hardcoding nor static linking is supported with a
11913 hardcode_direct=unsupported
11918 if test "$host_cpu" = ia64; then
11919 # On IA64, the linker does run time linking by default, so we don't
11920 # have to do anything special.
11921 aix_use_runtimelinking=no
11922 exp_sym_flag='-Bexport'
11925 # If we're using GNU nm, then we don't want the "-C" option.
11926 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11928 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'
11930 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'
11932 aix_use_runtimelinking=no
11934 # Test if we are trying to use run time linking or normal
11935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11936 # need to do runtime linking.
11937 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11938 for ld_flag in $LDFLAGS; do
11939 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11940 aix_use_runtimelinking=yes
11947 exp_sym_flag='-bexport'
11948 no_entry_flag='-bnoentry'
11951 # When large executables or shared objects are built, AIX ld can
11952 # have problems creating the table of contents. If linking a library
11953 # or program results in "error TOC overflow" add -mminimal-toc to
11954 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11955 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11958 hardcode_direct=yes
11959 hardcode_direct_absolute=yes
11960 hardcode_libdir_separator=':'
11961 link_all_deplibs=yes
11962 file_list_spec='${wl}-f,'
11964 if test "$GCC" = yes; then
11965 case $host_os in aix4.[012]|aix4.[012].*)
11966 # We only want to do this on AIX 4.2 and lower, the check
11967 # below for broken collect2 doesn't work under 4.3+
11968 collect2name=`${CC} -print-prog-name=collect2`
11969 if test -f "$collect2name" &&
11970 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11972 # We have reworked collect2
11975 # We have old collect2
11976 hardcode_direct=unsupported
11977 # It fails to find uninstalled libraries when the uninstalled
11978 # path is not listed in the libpath. Setting hardcode_minus_L
11979 # to unsupported forces relinking
11980 hardcode_minus_L=yes
11981 hardcode_libdir_flag_spec='-L$libdir'
11982 hardcode_libdir_separator=
11986 shared_flag='-shared'
11987 if test "$aix_use_runtimelinking" = yes; then
11988 shared_flag="$shared_flag "'${wl}-G'
11992 if test "$host_cpu" = ia64; then
11993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11994 # chokes on -Wl,-G. The following line is correct:
11997 if test "$aix_use_runtimelinking" = yes; then
11998 shared_flag='${wl}-G'
12000 shared_flag='${wl}-bM:SRE'
12005 export_dynamic_flag_spec='${wl}-bexpall'
12006 # It seems that -bexpall does not export symbols beginning with
12007 # underscore (_), so it is better to generate a list of symbols to export.
12008 always_export_symbols=yes
12009 if test "$aix_use_runtimelinking" = yes; then
12010 # Warning - without using the other runtime loading flags (-brtl),
12011 # -berok will link without error, but may produce a broken library.
12012 allow_undefined_flag='-berok'
12013 # Determine the default libpath from the value encoded in an
12014 # empty executable.
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12037 $as_echo "$ac_try_echo") >&5
12038 (eval "$ac_link") 2>conftest.er1
12040 grep -v '^ *+' conftest.er1 >conftest.err
12042 cat conftest.err >&5
12043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } && {
12045 test -z "$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12047 } && test -s conftest$ac_exeext && {
12048 test "$cross_compiling" = yes ||
12049 $as_test_x conftest$ac_exeext
12052 lt_aix_libpath_sed='
12053 /Import File Strings/,/^$/ {
12059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12060 # Check for a 64-bit object if we didn't find anything.
12061 if test -z "$aix_libpath"; then
12062 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12065 $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12071 rm -rf conftest.dSYM
12072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12073 conftest$ac_exeext conftest.$ac_ext
12074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12077 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"
12079 if test "$host_cpu" = ia64; then
12080 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12081 allow_undefined_flag="-z nodefs"
12082 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"
12084 # Determine the default libpath from the value encoded in an
12085 # empty executable.
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (ac_try="$ac_link"
12103 case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12108 $as_echo "$ac_try_echo") >&5
12109 (eval "$ac_link") 2>conftest.er1
12111 grep -v '^ *+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest$ac_exeext && {
12119 test "$cross_compiling" = yes ||
12120 $as_test_x conftest$ac_exeext
12123 lt_aix_libpath_sed='
12124 /Import File Strings/,/^$/ {
12130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12131 # Check for a 64-bit object if we didn't find anything.
12132 if test -z "$aix_libpath"; then
12133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12136 $as_echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12142 rm -rf conftest.dSYM
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144 conftest$ac_exeext conftest.$ac_ext
12145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12148 # Warning - without using the other run time loading flags,
12149 # -berok will link without error, but may produce a broken library.
12150 no_undefined_flag=' ${wl}-bernotok'
12151 allow_undefined_flag=' ${wl}-berok'
12152 # Exported symbols can be pulled into shared objects from archives
12153 whole_archive_flag_spec='$convenience'
12154 archive_cmds_need_lc=yes
12155 # This is similar to how AIX traditionally builds its shared libraries.
12156 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'
12164 # see comment about AmigaOS4 .so support
12165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166 archive_expsym_cmds=''
12169 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)'
12170 hardcode_libdir_flag_spec='-L$libdir'
12171 hardcode_minus_L=yes
12177 export_dynamic_flag_spec=-rdynamic
12180 cygwin* | mingw* | pw32* | cegcc*)
12181 # When not using gcc, we currently assume that we are using
12182 # Microsoft Visual C++.
12183 # hardcode_libdir_flag_spec is actually meaningless, as there is
12184 # no search path for DLLs.
12185 hardcode_libdir_flag_spec=' '
12186 allow_undefined_flag=unsupported
12187 # Tell ltmain to make .lib files, not .a files.
12189 # Tell ltmain to make .dll files, not .so files.
12191 # FIXME: Setting linknames here is a bad hack.
12192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12193 # The linker will automatically build a .lib file if we build a DLL.
12194 old_archive_from_new_cmds='true'
12195 # FIXME: Should let the user specify the lib program.
12196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12197 fix_srcfile_path='`cygpath -w "$srcfile"`'
12198 enable_shared_with_static_runtimes=yes
12201 darwin* | rhapsody*)
12204 archive_cmds_need_lc=no
12206 hardcode_automatic=yes
12207 hardcode_shlibpath_var=unsupported
12208 whole_archive_flag_spec=''
12209 link_all_deplibs=yes
12210 allow_undefined_flag="$_lt_dar_allow_undefined"
12211 case $cc_basename in
12212 ifort*) _lt_dar_can_shared=yes ;;
12213 *) _lt_dar_can_shared=$GCC ;;
12215 if test "$_lt_dar_can_shared" = "yes"; then
12216 output_verbose_link_cmd=echo
12217 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12218 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12219 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}"
12220 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}"
12229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12230 hardcode_libdir_flag_spec='-L$libdir'
12231 hardcode_shlibpath_var=no
12238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12239 # support. Future versions do this automatically, but an explicit c++rt0.o
12240 # does not break anything, and helps significantly (at the cost of a little
12243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12244 hardcode_libdir_flag_spec='-R$libdir'
12245 hardcode_direct=yes
12246 hardcode_shlibpath_var=no
12249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12252 hardcode_direct=yes
12253 hardcode_minus_L=yes
12254 hardcode_shlibpath_var=no
12257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12258 freebsd* | dragonfly*)
12259 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12260 hardcode_libdir_flag_spec='-R$libdir'
12261 hardcode_direct=yes
12262 hardcode_shlibpath_var=no
12266 if test "$GCC" = yes; then
12267 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'
12269 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'
12271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12272 hardcode_libdir_separator=:
12273 hardcode_direct=yes
12275 # hardcode_minus_L: Not really in the search PATH,
12276 # but as the default location of the library.
12277 hardcode_minus_L=yes
12278 export_dynamic_flag_spec='${wl}-E'
12282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12283 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12287 if test "$with_gnu_ld" = no; then
12288 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12289 hardcode_libdir_flag_spec_ld='+b $libdir'
12290 hardcode_libdir_separator=:
12291 hardcode_direct=yes
12292 hardcode_direct_absolute=yes
12293 export_dynamic_flag_spec='${wl}-E'
12294 # hardcode_minus_L: Not really in the search PATH,
12295 # but as the default location of the library.
12296 hardcode_minus_L=yes
12301 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12304 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12307 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12310 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12316 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12322 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12326 if test "$with_gnu_ld" = no; then
12327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12328 hardcode_libdir_separator=:
12333 hardcode_shlibpath_var=no
12336 hardcode_direct=yes
12337 hardcode_direct_absolute=yes
12338 export_dynamic_flag_spec='${wl}-E'
12340 # hardcode_minus_L: Not really in the search PATH,
12341 # but as the default location of the library.
12342 hardcode_minus_L=yes
12348 irix5* | irix6* | nonstopux*)
12349 if test "$GCC" = yes; then
12350 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'
12351 # Try to use the -exported_symbol ld option, if it does not
12352 # work, assume that -exports_file does not work either and
12353 # implicitly export all symbols.
12354 save_LDFLAGS="$LDFLAGS"
12355 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12356 cat >conftest.$ac_ext <<_ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12366 $as_echo "$ac_try_echo") >&5
12367 (eval "$ac_link") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest$ac_exeext && {
12377 test "$cross_compiling" = yes ||
12378 $as_test_x conftest$ac_exeext
12380 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'
12383 $as_echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12389 rm -rf conftest.dSYM
12390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LDFLAGS="$save_LDFLAGS"
12394 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'
12395 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'
12397 archive_cmds_need_lc='no'
12398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12399 hardcode_libdir_separator=:
12401 link_all_deplibs=yes
12405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12408 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12410 hardcode_libdir_flag_spec='-R$libdir'
12411 hardcode_direct=yes
12412 hardcode_shlibpath_var=no
12416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12417 hardcode_direct=yes
12418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12419 hardcode_libdir_separator=:
12420 hardcode_shlibpath_var=no
12427 if test -f /usr/libexec/ld.so; then
12428 hardcode_direct=yes
12429 hardcode_shlibpath_var=no
12430 hardcode_direct_absolute=yes
12431 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12433 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12435 export_dynamic_flag_spec='${wl}-E'
12438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12440 hardcode_libdir_flag_spec='-R$libdir'
12443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12454 hardcode_libdir_flag_spec='-L$libdir'
12455 hardcode_minus_L=yes
12456 allow_undefined_flag=unsupported
12457 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'
12458 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12462 if test "$GCC" = yes; then
12463 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12464 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'
12466 allow_undefined_flag=' -expect_unresolved \*'
12467 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'
12469 archive_cmds_need_lc='no'
12470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12471 hardcode_libdir_separator=:
12474 osf4* | osf5*) # as osf3* with the addition of -msym flag
12475 if test "$GCC" = yes; then
12476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12477 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'
12478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12480 allow_undefined_flag=' -expect_unresolved \*'
12481 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'
12482 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~
12483 $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'
12485 # Both c and cxx compiler support -rpath directly
12486 hardcode_libdir_flag_spec='-rpath $libdir'
12488 archive_cmds_need_lc='no'
12489 hardcode_libdir_separator=:
12493 no_undefined_flag=' -z defs'
12494 if test "$GCC" = yes; then
12496 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12497 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12498 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12500 case `$CC -V 2>&1` in
12503 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12509 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12511 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12515 hardcode_libdir_flag_spec='-R$libdir'
12516 hardcode_shlibpath_var=no
12518 solaris2.[0-5] | solaris2.[0-5].*) ;;
12520 # The compiler driver will combine and reorder linker options,
12521 # but understands `-z linker_flag'. GCC discards it without `$wl',
12522 # but is careful enough not to reorder.
12523 # Supported since Solaris 2.6 (maybe 2.5.1?)
12524 if test "$GCC" = yes; then
12525 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12527 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12531 link_all_deplibs=yes
12535 if test "x$host_vendor" = xsequent; then
12536 # Use $CC to link under sequent, because it throws in some extra .o
12537 # files that make .init and .fini sections work.
12538 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12540 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12542 hardcode_libdir_flag_spec='-L$libdir'
12543 hardcode_direct=yes
12544 hardcode_minus_L=yes
12545 hardcode_shlibpath_var=no
12549 case $host_vendor in
12551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12552 hardcode_direct=yes # is this really true???
12555 ## LD is ld it makes a PLAMLIB
12556 ## CC just makes a GrossModule.
12557 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12558 reload_cmds='$CC -r -o $output$reload_objs'
12562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12563 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12566 runpath_var='LD_RUN_PATH'
12567 hardcode_shlibpath_var=no
12571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12572 hardcode_shlibpath_var=no
12573 export_dynamic_flag_spec='-Bexport'
12577 if test -d /usr/nec; then
12578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12579 hardcode_shlibpath_var=no
12580 runpath_var=LD_RUN_PATH
12581 hardcode_runpath_var=yes
12586 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12587 no_undefined_flag='${wl}-z,text'
12588 archive_cmds_need_lc=no
12589 hardcode_shlibpath_var=no
12590 runpath_var='LD_RUN_PATH'
12592 if test "$GCC" = yes; then
12593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601 sysv5* | sco3.2v5* | sco5v6*)
12602 # Note: We can NOT use -z defs as we might desire, because we do not
12603 # link with -lc, and that would cause any symbols used from libc to
12604 # always be unresolved, which means just about no library would
12605 # ever link correctly. If we're not using GNU ld we use -z text
12606 # though, which does catch some bad symbols but isn't as heavy-handed
12608 no_undefined_flag='${wl}-z,text'
12609 allow_undefined_flag='${wl}-z,nodefs'
12610 archive_cmds_need_lc=no
12611 hardcode_shlibpath_var=no
12612 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12613 hardcode_libdir_separator=':'
12614 link_all_deplibs=yes
12615 export_dynamic_flag_spec='${wl}-Bexport'
12616 runpath_var='LD_RUN_PATH'
12618 if test "$GCC" = yes; then
12619 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12622 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12629 hardcode_libdir_flag_spec='-L$libdir'
12630 hardcode_shlibpath_var=no
12638 if test x$host_vendor = xsni; then
12640 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12641 export_dynamic_flag_spec='${wl}-Blargedynsym'
12647 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12648 $as_echo "$ld_shlibs" >&6; }
12649 test "$ld_shlibs" = no && can_build_shared=no
12651 with_gnu_ld=$with_gnu_ld
12668 # Do we need to explicitly link libc?
12670 case "x$archive_cmds_need_lc" in
12672 # Assume -lc should be added
12673 archive_cmds_need_lc=yes
12675 if test "$enable_shared" = yes && test "$GCC" = yes; then
12676 case $archive_cmds in
12678 # FIXME: we may have to deal with multi-command sequences.
12681 # Test whether the compiler implicitly links with -lc since on some
12682 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12683 # to ld, don't add -lc before -lgcc.
12684 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12685 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>&5
12692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } 2>conftest.err; then
12696 libobjs=conftest.$ac_objext
12698 wl=$lt_prog_compiler_wl
12699 pic_flag=$lt_prog_compiler_pic
12705 lt_save_allow_undefined_flag=$allow_undefined_flag
12706 allow_undefined_flag=
12707 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12708 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }
12713 archive_cmds_need_lc=no
12715 archive_cmds_need_lc=yes
12717 allow_undefined_flag=$lt_save_allow_undefined_flag
12719 cat conftest.err 1>&5
12722 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12723 $as_echo "$archive_cmds_need_lc" >&6; }
12886 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12887 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12889 if test "$GCC" = yes; then
12891 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12892 *) lt_awk_arg="/^libraries:/" ;;
12894 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12895 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12896 # if the path contains ";" then we assume it to be the separator
12897 # otherwise default to the standard path separator (i.e. ":") - it is
12898 # assumed that no part of a normal pathname contains ";" but that should
12899 # okay in the real world where ";" in dirpaths is itself problematic.
12900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12902 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12904 # Ok, now we have the path, separated by spaces, we can step through it
12905 # and add multilib dir if necessary.
12906 lt_tmp_lt_search_path_spec=
12907 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12908 for lt_sys_path in $lt_search_path_spec; do
12909 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12910 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12912 test -d "$lt_sys_path" && \
12913 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12916 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12917 BEGIN {RS=" "; FS="/|\n";} {
12920 for (lt_i = NF; lt_i > 0; lt_i--) {
12921 if ($lt_i != "" && $lt_i != ".") {
12922 if ($lt_i == "..") {
12925 if (lt_count == 0) {
12926 lt_foo="/" $lt_i lt_foo;
12933 if (lt_foo != "") { lt_freq[lt_foo]++; }
12934 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12936 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12938 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12940 library_names_spec=
12941 libname_spec='lib$name'
12945 postuninstall_cmds=
12949 shlibpath_overrides_runpath=unknown
12951 dynamic_linker="$host_os ld.so"
12952 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12953 need_lib_prefix=unknown
12954 hardcode_into_libs=no
12956 # when you set need_version to no, make sure it does not cause -set_version
12957 # flags to be left without arguments
12958 need_version=unknown
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12964 shlibpath_var=LIBPATH
12966 # AIX 3 has no versioning support, so we append a major version to the name.
12967 soname_spec='${libname}${release}${shared_ext}$major'
12974 hardcode_into_libs=yes
12975 if test "$host_cpu" = ia64; then
12976 # AIX 5 supports IA64
12977 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12978 shlibpath_var=LD_LIBRARY_PATH
12980 # With GCC up to 2.95.x, collect2 would create an import file
12981 # for dependence libraries. The import file would start with
12982 # the line `#! .'. This would cause the generated library to
12983 # depend on `.', always an invalid library. This was fixed in
12984 # development snapshots of GCC prior to 3.0.
12986 aix4 | aix4.[01] | aix4.[01].*)
12987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12989 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12992 can_build_shared=no
12996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12997 # soname into executable. Probably we can add versioning support to
12998 # collect2, so additional links can be useful in future.
12999 if test "$aix_use_runtimelinking" = yes; then
13000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13001 # instead of lib<name>.a to let people know that these are not
13002 # typical AIX shared libraries.
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 # We preserve .a as extension for shared libraries through AIX4.2
13006 # and later when we are not doing run time linking.
13007 library_names_spec='${libname}${release}.a $libname.a'
13008 soname_spec='${libname}${release}${shared_ext}$major'
13010 shlibpath_var=LIBPATH
13017 # Since July 2007 AmigaOS4 officially supports .so libraries.
13018 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 library_names_spec='$libname.ixlibrary $libname.a'
13023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13024 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'
13030 library_names_spec='${libname}${shared_ext}'
13031 dynamic_linker="$host_os ld.so"
13032 shlibpath_var=LIBRARY_PATH
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13043 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13044 # the default ld.so.conf also contains /usr/contrib/lib and
13045 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13046 # libtool to hard-code these into programs
13049 cygwin* | mingw* | pw32* | cegcc*)
13050 version_type=windows
13055 case $GCC,$host_os in
13056 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13057 library_names_spec='$libname.dll.a'
13058 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13059 postinstall_cmds='base_file=`basename \${file}`~
13060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13061 dldir=$destdir/`dirname \$dlpath`~
13062 test -d \$dldir || mkdir -p \$dldir~
13063 $install_prog $dir/$dlname \$dldir/$dlname~
13064 chmod a+x \$dldir/$dlname~
13065 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13066 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13069 dlpath=$dir/\$dldll~
13071 shlibpath_overrides_runpath=yes
13075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13076 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13080 # MinGW DLLs use traditional 'lib' prefix
13081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13083 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13084 # It is most probably a Windows format PATH printed by
13085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13086 # path with ; separators, and with drive letters. We can handle the
13087 # drive letters (cygwin fileutils understands them), so leave them,
13088 # especially as we might pass files found there to a mingw objdump,
13089 # which wouldn't understand a cygwinified path. Ahh.
13090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13096 # pw32 DLLs use 'pw' prefix rather than 'lib'
13097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13106 dynamic_linker='Win32 ld.exe'
13107 # FIXME: first we should search . and the directory the executable is in
13111 darwin* | rhapsody*)
13112 dynamic_linker="$host_os dyld"
13113 version_type=darwin
13116 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13117 soname_spec='${libname}${release}${major}$shared_ext'
13118 shlibpath_overrides_runpath=yes
13119 shlibpath_var=DYLD_LIBRARY_PATH
13120 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13123 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13131 soname_spec='${libname}${release}${shared_ext}$major'
13132 shlibpath_var=LD_LIBRARY_PATH
13139 freebsd* | dragonfly*)
13140 # DragonFly does not have aout. When/if they implement a new
13141 # versioning mechanism, adjust this.
13142 if test -x /usr/bin/objformat; then
13143 objformat=`/usr/bin/objformat`
13146 freebsd[123]*) objformat=aout ;;
13147 *) objformat=elf ;;
13150 version_type=freebsd-$objformat
13151 case $version_type in
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13162 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=yes
13167 freebsd3.[01]* | freebsdelf3.[01]*)
13168 shlibpath_overrides_runpath=yes
13169 hardcode_into_libs=yes
13171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13173 shlibpath_overrides_runpath=no
13174 hardcode_into_libs=yes
13176 *) # from 4.6 on, and DragonFly
13177 shlibpath_overrides_runpath=yes
13178 hardcode_into_libs=yes
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13188 soname_spec='${libname}${release}${shared_ext}$major'
13189 shlibpath_var=LD_LIBRARY_PATH
13190 hardcode_into_libs=yes
13193 hpux9* | hpux10* | hpux11*)
13194 # Give a soname corresponding to the major version so that dld.sl refuses to
13195 # link against other versions.
13202 hardcode_into_libs=yes
13203 dynamic_linker="$host_os dld.so"
13204 shlibpath_var=LD_LIBRARY_PATH
13205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 if test "X$HPUX_IA64_MODE" = X32; then
13209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13211 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13217 hardcode_into_libs=yes
13218 dynamic_linker="$host_os dld.sl"
13219 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13228 dynamic_linker="$host_os dld.sl"
13229 shlibpath_var=SHLIB_PATH
13230 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13232 soname_spec='${libname}${release}${shared_ext}$major'
13235 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13236 postinstall_cmds='chmod 555 $lib'
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=no
13248 hardcode_into_libs=yes
13251 irix5* | irix6* | nonstopux*)
13253 nonstopux*) version_type=nonstopux ;;
13255 if test "$lt_cv_prog_gnu_ld" = yes; then
13263 soname_spec='${libname}${release}${shared_ext}$major'
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13266 irix5* | nonstopux*)
13267 libsuff= shlibsuff=
13270 case $LD in # libtool.m4 will add one of these switches to LD
13271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13272 libsuff= shlibsuff= libmagic=32-bit;;
13273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13274 libsuff=32 shlibsuff=N32 libmagic=N32;;
13275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13276 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13277 *) libsuff= shlibsuff= libmagic=never-match;;
13281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13282 shlibpath_overrides_runpath=no
13283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13285 hardcode_into_libs=yes
13288 # No shared lib support for Linux oldld, aout, or coff.
13289 linux*oldld* | linux*aout* | linux*coff*)
13293 # This must be Linux ELF.
13294 linux* | k*bsd*-gnu)
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13299 soname_spec='${libname}${release}${shared_ext}$major'
13300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13303 # Some binutils ld are patched to set DT_RUNPATH
13304 save_LDFLAGS=$LDFLAGS
13305 save_libdir=$libdir
13306 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13307 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13330 $as_echo "$ac_try_echo") >&5
13331 (eval "$ac_link") 2>conftest.er1
13333 grep -v '^ *+' conftest.er1 >conftest.err
13335 cat conftest.err >&5
13336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && {
13338 test -z "$ac_c_werror_flag" ||
13339 test ! -s conftest.err
13340 } && test -s conftest$ac_exeext && {
13341 test "$cross_compiling" = yes ||
13342 $as_test_x conftest$ac_exeext
13344 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13345 shlibpath_overrides_runpath=yes
13349 $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13355 rm -rf conftest.dSYM
13356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LDFLAGS=$save_LDFLAGS
13359 libdir=$save_libdir
13361 # This implies no fast_install, which is unacceptable.
13362 # Some rework will be needed to allow for fast_install
13363 # before this can be enabled.
13364 hardcode_into_libs=yes
13366 # Add ABI-specific directories to the system library path.
13367 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13369 # Append ld.so.conf contents to the search path
13370 if test -f /etc/ld.so.conf; then
13371 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' ' '`
13372 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13375 # We used to test for /lib/ld.so.1 and disable shared libraries on
13376 # powerpc, because MkLinux only supported shared libraries with the
13377 # GNU dynamic linker. Since this was broken with cross compilers,
13378 # most powerpc-linux boxes support dynamic linking these days and
13379 # people can always --disable-shared, the test was removed, and we
13380 # assume the GNU/Linux dynamic linker is in use.
13381 dynamic_linker='GNU/Linux ld.so'
13388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13391 dynamic_linker='NetBSD (a.out) ld.so'
13393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13394 soname_spec='${libname}${release}${shared_ext}$major'
13395 dynamic_linker='NetBSD ld.elf_so'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 hardcode_into_libs=yes
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=yes
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=no
13417 hardcode_into_libs=yes
13418 dynamic_linker='ldqnx.so'
13423 sys_lib_dlsearch_path_spec="/usr/lib"
13425 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13427 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13428 *) need_version=no ;;
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13435 openbsd2.[89] | openbsd2.[89].*)
13436 shlibpath_overrides_runpath=no
13439 shlibpath_overrides_runpath=yes
13443 shlibpath_overrides_runpath=yes
13448 libname_spec='$name'
13451 library_names_spec='$libname${shared_ext} $libname.a'
13452 dynamic_linker='OS/2 ld.exe'
13453 shlibpath_var=LIBPATH
13456 osf3* | osf4* | osf5*)
13460 soname_spec='${libname}${release}${shared_ext}$major'
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13464 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13479 hardcode_into_libs=yes
13480 # ldd complains unless libraries are executable
13481 postinstall_cmds='chmod +x $lib'
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 shlibpath_overrides_runpath=yes
13490 if test "$with_gnu_ld" = yes; then
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 case $host_vendor in
13503 shlibpath_overrides_runpath=no
13505 runpath_var=LD_RUN_PATH
13513 shlibpath_overrides_runpath=no
13514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13520 if test -d /usr/nec ;then
13522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13523 soname_spec='$libname${shared_ext}.$major'
13524 shlibpath_var=LD_LIBRARY_PATH
13528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13529 version_type=freebsd-elf
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=yes
13536 hardcode_into_libs=yes
13537 if test "$with_gnu_ld" = yes; then
13538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13540 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13547 sys_lib_dlsearch_path_spec='/usr/lib'
13551 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=no
13558 hardcode_into_libs=yes
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 shlibpath_var=LD_LIBRARY_PATH
13572 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13573 $as_echo "$dynamic_linker" >&6; }
13574 test "$dynamic_linker" = no && can_build_shared=no
13576 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13577 if test "$GCC" = yes; then
13578 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13581 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13582 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13584 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13585 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13674 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13675 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13677 if test -n "$hardcode_libdir_flag_spec" ||
13678 test -n "$runpath_var" ||
13679 test "X$hardcode_automatic" = "Xyes" ; then
13681 # We can hardcode non-existent directories.
13682 if test "$hardcode_direct" != no &&
13683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13684 # have to relink, otherwise we might link with an installed library
13685 # when we should be linking with a yet-to-be-installed one
13686 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13687 test "$hardcode_minus_L" != no; then
13688 # Linking always hardcodes the temporary library directory.
13689 hardcode_action=relink
13691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13692 hardcode_action=immediate
13695 # We cannot hardcode anything, or else we can only hardcode existing
13697 hardcode_action=unsupported
13699 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13700 $as_echo "$hardcode_action" >&6; }
13702 if test "$hardcode_action" = relink ||
13703 test "$inherit_rpath" = yes; then
13704 # Fast installation is not supported
13705 enable_fast_install=no
13706 elif test "$shlibpath_overrides_runpath" = yes ||
13707 test "$enable_shared" = no; then
13708 # Fast installation is not necessary
13709 enable_fast_install=needless
13717 if test "x$enable_dlopen" != xyes; then
13718 enable_dlopen=unknown
13719 enable_dlopen_self=unknown
13720 enable_dlopen_self_static=unknown
13727 lt_cv_dlopen="load_add_on"
13729 lt_cv_dlopen_self=yes
13732 mingw* | pw32* | cegcc*)
13733 lt_cv_dlopen="LoadLibrary"
13738 lt_cv_dlopen="dlopen"
13743 # if libdl is installed we need to link against it
13744 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13745 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13747 $as_echo_n "(cached) " >&6
13749 ac_check_lib_save_LIBS=$LIBS
13751 cat >conftest.$ac_ext <<_ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13758 /* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (ac_try="$ac_link"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13780 $as_echo "$ac_try_echo") >&5
13781 (eval "$ac_link") 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest$ac_exeext && {
13791 test "$cross_compiling" = yes ||
13792 $as_test_x conftest$ac_exeext
13794 ac_cv_lib_dl_dlopen=yes
13796 $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_cv_lib_dl_dlopen=no
13802 rm -rf conftest.dSYM
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804 conftest$ac_exeext conftest.$ac_ext
13805 LIBS=$ac_check_lib_save_LIBS
13807 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13809 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13813 lt_cv_dlopen="dyld"
13815 lt_cv_dlopen_self=yes
13822 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13823 $as_echo_n "checking for shl_load... " >&6; }
13824 if test "${ac_cv_func_shl_load+set}" = set; then
13825 $as_echo_n "(cached) " >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13835 #define shl_load innocuous_shl_load
13837 /* System header to define __stub macros and hopefully few prototypes,
13838 which can conflict with char shl_load (); below.
13839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13840 <limits.h> exists even on freestanding compilers. */
13843 # include <limits.h>
13845 # include <assert.h>
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13857 /* The GNU C library defines this for functions which it implements
13858 to always fail with ENOSYS. Some functions are actually named
13859 something starting with __ and the normal name is an alias. */
13860 #if defined __stub_shl_load || defined __stub___shl_load
13867 return shl_load ();
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13879 $as_echo "$ac_try_echo") >&5
13880 (eval "$ac_link") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext && {
13890 test "$cross_compiling" = yes ||
13891 $as_test_x conftest$ac_exeext
13893 ac_cv_func_shl_load=yes
13895 $as_echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 ac_cv_func_shl_load=no
13901 rm -rf conftest.dSYM
13902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13903 conftest$ac_exeext conftest.$ac_ext
13905 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13906 $as_echo "$ac_cv_func_shl_load" >&6; }
13907 if test "x$ac_cv_func_shl_load" = x""yes; then
13908 lt_cv_dlopen="shl_load"
13910 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13912 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13913 $as_echo_n "(cached) " >&6
13915 ac_check_lib_save_LIBS=$LIBS
13917 cat >conftest.$ac_ext <<_ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13924 /* Override any GCC internal prototype to avoid an error.
13925 Use char because int might match the return type of a GCC
13926 builtin and then its argument prototype would still apply. */
13934 return shl_load ();
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (ac_try="$ac_link"
13941 case "(($ac_try" in
13942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943 *) ac_try_echo=$ac_try;;
13945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13946 $as_echo "$ac_try_echo") >&5
13947 (eval "$ac_link") 2>conftest.er1
13949 grep -v '^ *+' conftest.er1 >conftest.err
13951 cat conftest.err >&5
13952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } && {
13954 test -z "$ac_c_werror_flag" ||
13955 test ! -s conftest.err
13956 } && test -s conftest$ac_exeext && {
13957 test "$cross_compiling" = yes ||
13958 $as_test_x conftest$ac_exeext
13960 ac_cv_lib_dld_shl_load=yes
13962 $as_echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_cv_lib_dld_shl_load=no
13968 rm -rf conftest.dSYM
13969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13974 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13975 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13976 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13978 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13979 $as_echo_n "checking for dlopen... " >&6; }
13980 if test "${ac_cv_func_dlopen+set}" = set; then
13981 $as_echo_n "(cached) " >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13991 #define dlopen innocuous_dlopen
13993 /* System header to define __stub macros and hopefully few prototypes,
13994 which can conflict with char dlopen (); below.
13995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13996 <limits.h> exists even on freestanding compilers. */
13999 # include <limits.h>
14001 # include <assert.h>
14006 /* Override any GCC internal prototype to avoid an error.
14007 Use char because int might match the return type of a GCC
14008 builtin and then its argument prototype would still apply. */
14013 /* The GNU C library defines this for functions which it implements
14014 to always fail with ENOSYS. Some functions are actually named
14015 something starting with __ and the normal name is an alias. */
14016 #if defined __stub_dlopen || defined __stub___dlopen
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14035 $as_echo "$ac_try_echo") >&5
14036 (eval "$ac_link") 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext && {
14046 test "$cross_compiling" = yes ||
14047 $as_test_x conftest$ac_exeext
14049 ac_cv_func_dlopen=yes
14051 $as_echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_cv_func_dlopen=no
14057 rm -rf conftest.dSYM
14058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14059 conftest$ac_exeext conftest.$ac_ext
14061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14062 $as_echo "$ac_cv_func_dlopen" >&6; }
14063 if test "x$ac_cv_func_dlopen" = x""yes; then
14064 lt_cv_dlopen="dlopen"
14066 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14069 $as_echo_n "(cached) " >&6
14071 ac_check_lib_save_LIBS=$LIBS
14073 cat >conftest.$ac_ext <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14080 /* Override any GCC internal prototype to avoid an error.
14081 Use char because int might match the return type of a GCC
14082 builtin and then its argument prototype would still apply. */
14095 rm -f conftest.$ac_objext conftest$ac_exeext
14096 if { (ac_try="$ac_link"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14102 $as_echo "$ac_try_echo") >&5
14103 (eval "$ac_link") 2>conftest.er1
14105 grep -v '^ *+' conftest.er1 >conftest.err
14107 cat conftest.err >&5
14108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } && {
14110 test -z "$ac_c_werror_flag" ||
14111 test ! -s conftest.err
14112 } && test -s conftest$ac_exeext && {
14113 test "$cross_compiling" = yes ||
14114 $as_test_x conftest$ac_exeext
14116 ac_cv_lib_dl_dlopen=yes
14118 $as_echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ac_cv_lib_dl_dlopen=no
14124 rm -rf conftest.dSYM
14125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14126 conftest$ac_exeext conftest.$ac_ext
14127 LIBS=$ac_check_lib_save_LIBS
14129 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14131 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14134 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14137 $as_echo_n "(cached) " >&6
14139 ac_check_lib_save_LIBS=$LIBS
14140 LIBS="-lsvld $LIBS"
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14170 $as_echo "$ac_try_echo") >&5
14171 (eval "$ac_link") 2>conftest.er1
14173 grep -v '^ *+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && {
14178 test -z "$ac_c_werror_flag" ||
14179 test ! -s conftest.err
14180 } && test -s conftest$ac_exeext && {
14181 test "$cross_compiling" = yes ||
14182 $as_test_x conftest$ac_exeext
14184 ac_cv_lib_svld_dlopen=yes
14186 $as_echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_lib_svld_dlopen=no
14192 rm -rf conftest.dSYM
14193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14194 conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14198 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14199 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14202 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14203 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14204 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14205 $as_echo_n "(cached) " >&6
14207 ac_check_lib_save_LIBS=$LIBS
14209 cat >conftest.$ac_ext <<_ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14226 return dld_link ();
14231 rm -f conftest.$ac_objext conftest$ac_exeext
14232 if { (ac_try="$ac_link"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14238 $as_echo "$ac_try_echo") >&5
14239 (eval "$ac_link") 2>conftest.er1
14241 grep -v '^ *+' conftest.er1 >conftest.err
14243 cat conftest.err >&5
14244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } && {
14246 test -z "$ac_c_werror_flag" ||
14247 test ! -s conftest.err
14248 } && test -s conftest$ac_exeext && {
14249 test "$cross_compiling" = yes ||
14250 $as_test_x conftest$ac_exeext
14252 ac_cv_lib_dld_dld_link=yes
14254 $as_echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_cv_lib_dld_dld_link=no
14260 rm -rf conftest.dSYM
14261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LIBS=$ac_check_lib_save_LIBS
14265 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14266 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14267 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14268 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14289 if test "x$lt_cv_dlopen" != xno; then
14295 case $lt_cv_dlopen in
14297 save_CPPFLAGS="$CPPFLAGS"
14298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14300 save_LDFLAGS="$LDFLAGS"
14301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14304 LIBS="$lt_cv_dlopen_libs $LIBS"
14306 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14307 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14308 if test "${lt_cv_dlopen_self+set}" = set; then
14309 $as_echo_n "(cached) " >&6
14311 if test "$cross_compiling" = yes; then :
14312 lt_cv_dlopen_self=cross
14314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14315 lt_status=$lt_dlunknown
14316 cat > conftest.$ac_ext <<_LT_EOF
14317 #line 14317 "configure"
14318 #include "confdefs.h"
14327 # define LT_DLGLOBAL RTLD_GLOBAL
14330 # define LT_DLGLOBAL DL_GLOBAL
14332 # define LT_DLGLOBAL 0
14336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14337 find out it does not work in some platform. */
14338 #ifndef LT_DLLAZY_OR_NOW
14340 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14343 # define LT_DLLAZY_OR_NOW DL_LAZY
14346 # define LT_DLLAZY_OR_NOW RTLD_NOW
14349 # define LT_DLLAZY_OR_NOW DL_NOW
14351 # define LT_DLLAZY_OR_NOW 0
14358 void fnord() { int i=42;}
14361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14362 int status = $lt_dlunknown;
14366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14368 /* dlclose (self); */
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377 (eval $ac_link) 2>&5
14379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14381 (./conftest; exit; ) >&5 2>/dev/null
14383 case x$lt_status in
14384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14389 # compilation failed
14390 lt_cv_dlopen_self=no
14397 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14398 $as_echo "$lt_cv_dlopen_self" >&6; }
14400 if test "x$lt_cv_dlopen_self" = xyes; then
14401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14402 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14404 if test "${lt_cv_dlopen_self_static+set}" = set; then
14405 $as_echo_n "(cached) " >&6
14407 if test "$cross_compiling" = yes; then :
14408 lt_cv_dlopen_self_static=cross
14410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14411 lt_status=$lt_dlunknown
14412 cat > conftest.$ac_ext <<_LT_EOF
14413 #line 14413 "configure"
14414 #include "confdefs.h"
14423 # define LT_DLGLOBAL RTLD_GLOBAL
14426 # define LT_DLGLOBAL DL_GLOBAL
14428 # define LT_DLGLOBAL 0
14432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14433 find out it does not work in some platform. */
14434 #ifndef LT_DLLAZY_OR_NOW
14436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14439 # define LT_DLLAZY_OR_NOW DL_LAZY
14442 # define LT_DLLAZY_OR_NOW RTLD_NOW
14445 # define LT_DLLAZY_OR_NOW DL_NOW
14447 # define LT_DLLAZY_OR_NOW 0
14454 void fnord() { int i=42;}
14457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14458 int status = $lt_dlunknown;
14462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14463 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14464 /* dlclose (self); */
14472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14473 (eval $ac_link) 2>&5
14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14477 (./conftest; exit; ) >&5 2>/dev/null
14479 case x$lt_status in
14480 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14481 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14482 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14485 # compilation failed
14486 lt_cv_dlopen_self_static=no
14493 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14494 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14497 CPPFLAGS="$save_CPPFLAGS"
14498 LDFLAGS="$save_LDFLAGS"
14503 case $lt_cv_dlopen_self in
14504 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14505 *) enable_dlopen_self=unknown ;;
14508 case $lt_cv_dlopen_self_static in
14509 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14510 *) enable_dlopen_self_static=unknown ;;
14532 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14533 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14534 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14537 { $as_echo "$as_me:$LINENO: result: yes" >&5
14538 $as_echo "yes" >&6; }
14540 # FIXME - insert some real tests, host_os isn't really good enough
14543 if test -n "$STRIP" ; then
14544 striplib="$STRIP -x"
14545 old_striplib="$STRIP -S"
14546 { $as_echo "$as_me:$LINENO: result: yes" >&5
14547 $as_echo "yes" >&6; }
14549 { $as_echo "$as_me:$LINENO: result: no" >&5
14550 $as_echo "no" >&6; }
14554 { $as_echo "$as_me:$LINENO: result: no" >&5
14555 $as_echo "no" >&6; }
14571 # Report which library types will actually be built
14572 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14573 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14574 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14575 $as_echo "$can_build_shared" >&6; }
14577 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14578 $as_echo_n "checking whether to build shared libraries... " >&6; }
14579 test "$can_build_shared" = "no" && enable_shared=no
14581 # On AIX, shared libraries and static libraries use the same namespace, and
14582 # are all built from PIC.
14585 test "$enable_shared" = yes && enable_static=no
14586 if test -n "$RANLIB"; then
14587 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14588 postinstall_cmds='$RANLIB $lib'
14593 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14594 test "$enable_shared" = yes && enable_static=no
14598 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14599 $as_echo "$enable_shared" >&6; }
14601 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14602 $as_echo_n "checking whether to build static libraries... " >&6; }
14603 # Make sure either enable_shared or enable_static is yes.
14604 test "$enable_shared" = yes || enable_static=yes
14605 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14606 $as_echo "$enable_static" >&6; }
14613 ac_cpp='$CPP $CPPFLAGS'
14614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14622 ac_cpp='$CXXCPP $CPPFLAGS'
14623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14627 archive_cmds_need_lc_CXX=no
14628 allow_undefined_flag_CXX=
14629 always_export_symbols_CXX=no
14630 archive_expsym_cmds_CXX=
14631 compiler_needs_object_CXX=no
14632 export_dynamic_flag_spec_CXX=
14633 hardcode_direct_CXX=no
14634 hardcode_direct_absolute_CXX=no
14635 hardcode_libdir_flag_spec_CXX=
14636 hardcode_libdir_flag_spec_ld_CXX=
14637 hardcode_libdir_separator_CXX=
14638 hardcode_minus_L_CXX=no
14639 hardcode_shlibpath_var_CXX=unsupported
14640 hardcode_automatic_CXX=no
14641 inherit_rpath_CXX=no
14643 module_expsym_cmds_CXX=
14644 link_all_deplibs_CXX=unknown
14645 old_archive_cmds_CXX=$old_archive_cmds
14646 no_undefined_flag_CXX=
14647 whole_archive_flag_spec_CXX=
14648 enable_shared_with_static_runtimes_CXX=no
14650 # Source file extension for C++ test sources.
14653 # Object file extension for compiled C++ test sources.
14657 # No sense in running all these tests if we already determined that
14658 # the CXX compiler isn't working. Some variables (like enable_shared)
14659 # are currently assumed to apply to all compilers on this platform,
14660 # and will be corrupted by setting them based on a non-working compiler.
14661 if test "$_lt_caught_CXX_error" != yes; then
14662 # Code to be used in simple compile tests
14663 lt_simple_compile_test_code="int some_variable = 0;"
14665 # Code to be used in simple link tests
14666 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14668 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14675 # If no C compiler was specified, use CC.
14678 # If no C compiler flags were specified, use CFLAGS.
14679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14681 # Allow CC to be a program name with arguments.
14685 # save warnings/boilerplate of simple test code
14686 ac_outfile=conftest.$ac_objext
14687 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14688 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14689 _lt_compiler_boilerplate=`cat conftest.err`
14692 ac_outfile=conftest.$ac_objext
14693 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14694 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14695 _lt_linker_boilerplate=`cat conftest.err`
14699 # Allow CC to be a program name with arguments.
14704 lt_save_with_gnu_ld=$with_gnu_ld
14705 lt_save_path_LD=$lt_cv_path_LD
14706 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14707 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14709 $as_unset lt_cv_prog_gnu_ld
14711 if test -n "${lt_cv_path_LDCXX+set}"; then
14712 lt_cv_path_LD=$lt_cv_path_LDCXX
14714 $as_unset lt_cv_path_LD
14716 test -z "${LDCXX+set}" || LD=$LDCXX
14720 for cc_temp in $compiler""; do
14722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14728 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14731 if test -n "$compiler"; then
14732 # We don't want -fno-exception when compiling C++ code, so set the
14733 # no_builtin_flag separately
14734 if test "$GXX" = yes; then
14735 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14737 lt_prog_compiler_no_builtin_flag_CXX=
14740 if test "$GXX" = yes; then
14741 # Set up default GNU C++ configuration
14745 # Check whether --with-gnu-ld was given.
14746 if test "${with_gnu_ld+set}" = set; then
14747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14753 if test "$GCC" = yes; then
14754 # Check if gcc -print-prog-name=ld gives a path.
14755 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14756 $as_echo_n "checking for ld used by $CC... " >&6; }
14759 # gcc leaves a trailing carriage return which upsets mingw
14760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14765 # Accept absolute paths.
14767 re_direlt='/[^/][^/]*/\.\./'
14768 # Canonicalize the pathname of ld
14769 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14770 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14771 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14773 test -z "$LD" && LD="$ac_prog"
14776 # If it fails, then pretend we aren't using GCC.
14780 # If it is relative, then search for the first ld in PATH.
14781 with_gnu_ld=unknown
14784 elif test "$with_gnu_ld" = yes; then
14785 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14786 $as_echo_n "checking for GNU ld... " >&6; }
14788 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14789 $as_echo_n "checking for non-GNU ld... " >&6; }
14791 if test "${lt_cv_path_LD+set}" = set; then
14792 $as_echo_n "(cached) " >&6
14794 if test -z "$LD"; then
14795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14796 for ac_dir in $PATH; do
14798 test -z "$ac_dir" && ac_dir=.
14799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14800 lt_cv_path_LD="$ac_dir/$ac_prog"
14801 # Check to see if the program is GNU ld. I'd rather use --version,
14802 # but apparently some variants of GNU ld only accept -v.
14803 # Break only if it was the GNU/non-GNU ld that we prefer.
14804 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14805 *GNU* | *'with BFD'*)
14806 test "$with_gnu_ld" != no && break
14809 test "$with_gnu_ld" != yes && break
14816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14820 LD="$lt_cv_path_LD"
14821 if test -n "$LD"; then
14822 { $as_echo "$as_me:$LINENO: result: $LD" >&5
14823 $as_echo "$LD" >&6; }
14825 { $as_echo "$as_me:$LINENO: result: no" >&5
14826 $as_echo "no" >&6; }
14828 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14829 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14830 { (exit 1); exit 1; }; }
14831 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14832 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14833 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14834 $as_echo_n "(cached) " >&6
14836 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14837 case `$LD -v 2>&1 </dev/null` in
14838 *GNU* | *'with BFD'*)
14839 lt_cv_prog_gnu_ld=yes
14842 lt_cv_prog_gnu_ld=no
14846 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14847 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14848 with_gnu_ld=$lt_cv_prog_gnu_ld
14856 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14857 # archiving commands below assume that GNU ld is being used.
14858 if test "$with_gnu_ld" = yes; then
14859 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14860 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'
14862 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14865 # If archive_cmds runs LD, not CC, wlarc should be empty
14866 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14867 # investigate it a little bit more. (MM)
14870 # ancient GNU ld didn't support --whole-archive et. al.
14871 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14872 $GREP 'no-whole-archive' > /dev/null; then
14873 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14875 whole_archive_flag_spec_CXX=
14881 # A generic and very simple default shared library creation
14882 # command for GNU C++ for the case where it uses the native
14883 # linker, instead of GNU ld. If possible, this setting should
14884 # overridden to take advantage of the native linker features on
14885 # the platform it is being used on.
14886 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14889 # Commands to make compiler produce verbose output that lists
14890 # what "hidden" libraries, object files and flags are used when
14891 # linking a shared library.
14892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14900 # PORTME: fill in a description of your system's C++ link characteristics
14901 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14906 # FIXME: insert proper C++ library support
14910 if test "$host_cpu" = ia64; then
14911 # On IA64, the linker does run time linking by default, so we don't
14912 # have to do anything special.
14913 aix_use_runtimelinking=no
14914 exp_sym_flag='-Bexport'
14917 aix_use_runtimelinking=no
14919 # Test if we are trying to use run time linking or normal
14920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14921 # need to do runtime linking.
14922 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14923 for ld_flag in $LDFLAGS; do
14926 aix_use_runtimelinking=yes
14934 exp_sym_flag='-bexport'
14935 no_entry_flag='-bnoentry'
14938 # When large executables or shared objects are built, AIX ld can
14939 # have problems creating the table of contents. If linking a library
14940 # or program results in "error TOC overflow" add -mminimal-toc to
14941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14944 archive_cmds_CXX=''
14945 hardcode_direct_CXX=yes
14946 hardcode_direct_absolute_CXX=yes
14947 hardcode_libdir_separator_CXX=':'
14948 link_all_deplibs_CXX=yes
14949 file_list_spec_CXX='${wl}-f,'
14951 if test "$GXX" = yes; then
14952 case $host_os in aix4.[012]|aix4.[012].*)
14953 # We only want to do this on AIX 4.2 and lower, the check
14954 # below for broken collect2 doesn't work under 4.3+
14955 collect2name=`${CC} -print-prog-name=collect2`
14956 if test -f "$collect2name" &&
14957 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14959 # We have reworked collect2
14962 # We have old collect2
14963 hardcode_direct_CXX=unsupported
14964 # It fails to find uninstalled libraries when the uninstalled
14965 # path is not listed in the libpath. Setting hardcode_minus_L
14966 # to unsupported forces relinking
14967 hardcode_minus_L_CXX=yes
14968 hardcode_libdir_flag_spec_CXX='-L$libdir'
14969 hardcode_libdir_separator_CXX=
14972 shared_flag='-shared'
14973 if test "$aix_use_runtimelinking" = yes; then
14974 shared_flag="$shared_flag "'${wl}-G'
14978 if test "$host_cpu" = ia64; then
14979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14980 # chokes on -Wl,-G. The following line is correct:
14983 if test "$aix_use_runtimelinking" = yes; then
14984 shared_flag='${wl}-G'
14986 shared_flag='${wl}-bM:SRE'
14991 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14992 # It seems that -bexpall does not export symbols beginning with
14993 # underscore (_), so it is better to generate a list of symbols to
14995 always_export_symbols_CXX=yes
14996 if test "$aix_use_runtimelinking" = yes; then
14997 # Warning - without using the other runtime loading flags (-brtl),
14998 # -berok will link without error, but may produce a broken library.
14999 allow_undefined_flag_CXX='-berok'
15000 # Determine the default libpath from the value encoded in an empty
15002 cat >conftest.$ac_ext <<_ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (ac_try="$ac_link"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15024 $as_echo "$ac_try_echo") >&5
15025 (eval "$ac_link") 2>conftest.er1
15027 grep -v '^ *+' conftest.er1 >conftest.err
15029 cat conftest.err >&5
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_cxx_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest$ac_exeext && {
15035 test "$cross_compiling" = yes ||
15036 $as_test_x conftest$ac_exeext
15039 lt_aix_libpath_sed='
15040 /Import File Strings/,/^$/ {
15046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15047 # Check for a 64-bit object if we didn't find anything.
15048 if test -z "$aix_libpath"; then
15049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15052 $as_echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15058 rm -rf conftest.dSYM
15059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15060 conftest$ac_exeext conftest.$ac_ext
15061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15063 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15065 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"
15067 if test "$host_cpu" = ia64; then
15068 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15069 allow_undefined_flag_CXX="-z nodefs"
15070 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"
15072 # Determine the default libpath from the value encoded in an
15073 # empty executable.
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_link") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_cxx_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest$ac_exeext && {
15107 test "$cross_compiling" = yes ||
15108 $as_test_x conftest$ac_exeext
15111 lt_aix_libpath_sed='
15112 /Import File Strings/,/^$/ {
15118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15119 # Check for a 64-bit object if we didn't find anything.
15120 if test -z "$aix_libpath"; then
15121 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15124 $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15130 rm -rf conftest.dSYM
15131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15132 conftest$ac_exeext conftest.$ac_ext
15133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15135 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15136 # Warning - without using the other run time loading flags,
15137 # -berok will link without error, but may produce a broken library.
15138 no_undefined_flag_CXX=' ${wl}-bernotok'
15139 allow_undefined_flag_CXX=' ${wl}-berok'
15140 # Exported symbols can be pulled into shared objects from archives
15141 whole_archive_flag_spec_CXX='$convenience'
15142 archive_cmds_need_lc_CXX=yes
15143 # This is similar to how AIX traditionally builds its shared
15145 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'
15151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15152 allow_undefined_flag_CXX=unsupported
15153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15154 # support --undefined. This deserves some investigation. FIXME
15155 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162 case $cc_basename in
15164 # FIXME: insert proper C++ library support
15170 cygwin* | mingw* | pw32* | cegcc*)
15171 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15172 # as there is no search path for DLLs.
15173 hardcode_libdir_flag_spec_CXX='-L$libdir'
15174 allow_undefined_flag_CXX=unsupported
15175 always_export_symbols_CXX=no
15176 enable_shared_with_static_runtimes_CXX=yes
15178 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15179 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'
15180 # If the export-symbols file already is a .def file (1st line
15181 # is EXPORTS), use it as is; otherwise, prepend...
15182 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15183 cp $export_symbols $output_objdir/$soname.def;
15185 echo EXPORTS > $output_objdir/$soname.def;
15186 cat $export_symbols >> $output_objdir/$soname.def;
15188 $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'
15193 darwin* | rhapsody*)
15196 archive_cmds_need_lc_CXX=no
15197 hardcode_direct_CXX=no
15198 hardcode_automatic_CXX=yes
15199 hardcode_shlibpath_var_CXX=unsupported
15200 whole_archive_flag_spec_CXX=''
15201 link_all_deplibs_CXX=yes
15202 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15203 case $cc_basename in
15204 ifort*) _lt_dar_can_shared=yes ;;
15205 *) _lt_dar_can_shared=$GCC ;;
15207 if test "$_lt_dar_can_shared" = "yes"; then
15208 output_verbose_link_cmd=echo
15209 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}"
15210 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15211 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}"
15212 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}"
15213 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15214 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}"
15215 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}"
15225 case $cc_basename in
15227 # FIXME: insert proper C++ library support
15231 # Green Hills C++ Compiler
15232 # FIXME: insert proper C++ library support
15236 # FIXME: insert proper C++ library support
15243 # C++ shared libraries reported to be fairly broken before
15249 archive_cmds_need_lc_CXX=no
15252 freebsd* | dragonfly*)
15253 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15263 hardcode_libdir_separator_CXX=:
15264 export_dynamic_flag_spec_CXX='${wl}-E'
15265 hardcode_direct_CXX=yes
15266 hardcode_minus_L_CXX=yes # Not in the search PATH,
15267 # but as the default
15268 # location of the library.
15270 case $cc_basename in
15272 # FIXME: insert proper C++ library support
15276 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'
15277 # Commands to make compiler produce verbose output that lists
15278 # what "hidden" libraries, object files and flags are used when
15279 # linking a shared library.
15281 # There doesn't appear to be a way to prevent this compiler from
15282 # explicitly linking system object files so we need to strip them
15283 # from the output so that they don't get included in the library
15285 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'
15288 if test "$GXX" = yes; then
15289 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'
15291 # FIXME: insert proper C++ library support
15299 if test $with_gnu_ld = no; then
15300 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15301 hardcode_libdir_separator_CXX=:
15307 export_dynamic_flag_spec_CXX='${wl}-E'
15313 hardcode_direct_CXX=no
15314 hardcode_shlibpath_var_CXX=no
15317 hardcode_direct_CXX=yes
15318 hardcode_direct_absolute_CXX=yes
15319 hardcode_minus_L_CXX=yes # Not in the search PATH,
15320 # but as the default
15321 # location of the library.
15325 case $cc_basename in
15327 # FIXME: insert proper C++ library support
15333 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15336 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15339 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15342 # Commands to make compiler produce verbose output that lists
15343 # what "hidden" libraries, object files and flags are used when
15344 # linking a shared library.
15346 # There doesn't appear to be a way to prevent this compiler from
15347 # explicitly linking system object files so we need to strip them
15348 # from the output so that they don't get included in the library
15350 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'
15353 if test "$GXX" = yes; then
15354 if test $with_gnu_ld = no; then
15357 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15360 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15363 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'
15368 # FIXME: insert proper C++ library support
15376 hardcode_direct_CXX=no
15377 hardcode_shlibpath_var_CXX=no
15378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15379 export_dynamic_flag_spec_CXX='${wl}-E'
15380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15381 # Instead, shared libraries are loaded at an image base (0x10000000 by
15382 # default) and relocated if they conflict, which is a slow very memory
15383 # consuming and fragmenting process. To avoid this, we pick a random,
15384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15385 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15386 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'
15387 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'
15390 case $cc_basename in
15393 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'
15395 # Archives containing C++ object files must be created using
15396 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15397 # necessary to make sure instantiated templates are included
15399 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15402 if test "$GXX" = yes; then
15403 if test "$with_gnu_ld" = no; then
15404 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'
15406 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'
15409 link_all_deplibs_CXX=yes
15412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15413 hardcode_libdir_separator_CXX=:
15414 inherit_rpath_CXX=yes
15417 linux* | k*bsd*-gnu)
15418 case $cc_basename in
15420 # Kuck and Associates, Inc. (KAI) C++ Compiler
15422 # KCC will only create a shared library if the output file
15423 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15424 # to its proper name (with version) after linking.
15425 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'
15426 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'
15427 # Commands to make compiler produce verbose output that lists
15428 # what "hidden" libraries, object files and flags are used when
15429 # linking a shared library.
15431 # There doesn't appear to be a way to prevent this compiler from
15432 # explicitly linking system object files so we need to strip them
15433 # from the output so that they don't get included in the library
15435 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'
15437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15440 # Archives containing C++ object files must be created using
15441 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15442 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15447 # version 8.0 and above of icpc choke on multiply defined symbols
15448 # if we add $predep_objects and $postdep_objects, however 7.1 and
15449 # earlier do not add the objects themselves.
15450 case `$CC -V 2>&1` in
15452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15453 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'
15455 *) # Version 8.0 or newer
15458 ia64*) tmp_idyn=' -i_dynamic';;
15460 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461 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'
15464 archive_cmds_need_lc_CXX=no
15465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15467 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15470 # Portland Group C++ compiler
15472 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15473 prelink_cmds_CXX='tpldir=Template.dir~
15475 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15476 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15477 old_archive_cmds_CXX='tpldir=Template.dir~
15479 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15480 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15482 archive_cmds_CXX='tpldir=Template.dir~
15484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15485 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15486 archive_expsym_cmds_CXX='tpldir=Template.dir~
15488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15489 $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'
15491 *) # Version 6 will use weak symbols
15492 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15493 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'
15497 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15499 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'
15503 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 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'
15506 runpath_var=LD_RUN_PATH
15507 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15508 hardcode_libdir_separator_CXX=:
15510 # Commands to make compiler produce verbose output that lists
15511 # what "hidden" libraries, object files and flags are used when
15512 # linking a shared library.
15514 # There doesn't appear to be a way to prevent this compiler from
15515 # explicitly linking system object files so we need to strip them
15516 # from the output so that they don't get included in the library
15518 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'
15521 # IBM XL 8.0 on PPC, with GNU ld
15522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15524 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525 if test "x$supports_anon_versioning" = xyes; then
15526 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15528 echo "local: *; };" >> $output_objdir/$libname.ver~
15529 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15533 case `$CC -V 2>&1 | sed 5q` in
15536 no_undefined_flag_CXX=' -zdefs'
15537 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15538 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'
15539 hardcode_libdir_flag_spec_CXX='-R$libdir'
15540 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'
15541 compiler_needs_object_CXX=yes
15543 # Not sure whether something based on
15544 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15546 output_verbose_link_cmd='echo'
15548 # Archives containing C++ object files must be created using
15549 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15550 # necessary to make sure instantiated templates are included
15552 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15560 # FIXME: insert proper C++ library support
15565 # FIXME: insert proper C++ library support
15570 case $cc_basename in
15572 # FIXME: insert proper C++ library support
15576 # FIXME: insert proper C++ library support
15583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15584 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15586 hardcode_libdir_flag_spec_CXX='-R$libdir'
15587 hardcode_direct_CXX=yes
15588 hardcode_shlibpath_var_CXX=no
15590 # Workaround some broken pre-1.5 toolchains
15591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15599 # C++ shared libraries are fairly broken
15604 if test -f /usr/libexec/ld.so; then
15605 hardcode_direct_CXX=yes
15606 hardcode_shlibpath_var_CXX=no
15607 hardcode_direct_absolute_CXX=yes
15608 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15611 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15612 export_dynamic_flag_spec_CXX='${wl}-E'
15613 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15615 output_verbose_link_cmd=echo
15621 osf3* | osf4* | osf5*)
15622 case $cc_basename in
15624 # Kuck and Associates, Inc. (KAI) C++ Compiler
15626 # KCC will only create a shared library if the output file
15627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15628 # to its proper name (with version) after linking.
15629 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'
15631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15632 hardcode_libdir_separator_CXX=:
15634 # Archives containing C++ object files must be created using
15635 # the KAI C++ compiler.
15637 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15638 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15642 # Rational C++ 2.4.1
15643 # FIXME: insert proper C++ library support
15649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15650 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'
15651 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15654 allow_undefined_flag_CXX=' -expect_unresolved \*'
15655 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'
15656 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15657 echo "-hidden">> $lib.exp~
15658 $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~
15660 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15664 hardcode_libdir_separator_CXX=:
15666 # Commands to make compiler produce verbose output that lists
15667 # what "hidden" libraries, object files and flags are used when
15668 # linking a shared library.
15670 # There doesn't appear to be a way to prevent this compiler from
15671 # explicitly linking system object files so we need to strip them
15672 # from the output so that they don't get included in the library
15674 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'
15677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15681 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'
15684 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'
15688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15689 hardcode_libdir_separator_CXX=:
15691 # Commands to make compiler produce verbose output that lists
15692 # what "hidden" libraries, object files and flags are used when
15693 # linking a shared library.
15694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15697 # FIXME: insert proper C++ library support
15705 # FIXME: insert proper C++ library support
15710 case $cc_basename in
15713 # FIXME: insert proper C++ library support
15718 # FIXME: insert proper C++ library support
15722 # FIXME: insert proper C++ library support
15729 case $cc_basename in
15731 # Sun C++ 4.2, 5.x and Centerline C++
15732 archive_cmds_need_lc_CXX=yes
15733 no_undefined_flag_CXX=' -zdefs'
15734 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15735 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15736 $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'
15738 hardcode_libdir_flag_spec_CXX='-R$libdir'
15739 hardcode_shlibpath_var_CXX=no
15741 solaris2.[0-5] | solaris2.[0-5].*) ;;
15743 # The compiler driver will combine and reorder linker options,
15744 # but understands `-z linker_flag'.
15745 # Supported since Solaris 2.6 (maybe 2.5.1?)
15746 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15749 link_all_deplibs_CXX=yes
15751 output_verbose_link_cmd='echo'
15753 # Archives containing C++ object files must be created using
15754 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15755 # necessary to make sure instantiated templates are included
15757 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15760 # Green Hills C++ Compiler
15761 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15763 # The C++ compiler must be used to create the archive.
15764 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15767 # GNU C++ compiler with Solaris linker
15768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15769 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15770 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15771 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15772 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15773 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15775 # Commands to make compiler produce verbose output that lists
15776 # what "hidden" libraries, object files and flags are used when
15777 # linking a shared library.
15778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15780 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15782 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15783 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15784 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15786 # Commands to make compiler produce verbose output that lists
15787 # what "hidden" libraries, object files and flags are used when
15788 # linking a shared library.
15789 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15792 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15794 solaris2.[0-5] | solaris2.[0-5].*) ;;
15796 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15805 no_undefined_flag_CXX='${wl}-z,text'
15806 archive_cmds_need_lc_CXX=no
15807 hardcode_shlibpath_var_CXX=no
15808 runpath_var='LD_RUN_PATH'
15810 case $cc_basename in
15812 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15813 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15816 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15822 sysv5* | sco3.2v5* | sco5v6*)
15823 # Note: We can NOT use -z defs as we might desire, because we do not
15824 # link with -lc, and that would cause any symbols used from libc to
15825 # always be unresolved, which means just about no library would
15826 # ever link correctly. If we're not using GNU ld we use -z text
15827 # though, which does catch some bad symbols but isn't as heavy-handed
15829 no_undefined_flag_CXX='${wl}-z,text'
15830 allow_undefined_flag_CXX='${wl}-z,nodefs'
15831 archive_cmds_need_lc_CXX=no
15832 hardcode_shlibpath_var_CXX=no
15833 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15834 hardcode_libdir_separator_CXX=':'
15835 link_all_deplibs_CXX=yes
15836 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15837 runpath_var='LD_RUN_PATH'
15839 case $cc_basename in
15841 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15845 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15846 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15852 case $cc_basename in
15854 # NonStop-UX NCC 3.20
15855 # FIXME: insert proper C++ library support
15859 # FIXME: insert proper C++ library support
15866 # FIXME: insert proper C++ library support
15871 # FIXME: insert proper C++ library support
15876 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15877 $as_echo "$ld_shlibs_CXX" >&6; }
15878 test "$ld_shlibs_CXX" = no && can_build_shared=no
15884 ## There is no encapsulation within the following macros, do not change
15885 ## the running order or otherwise move them around unless you know exactly
15886 ## what you are doing...
15887 # Dependencies to place before and after the object being linked:
15888 predep_objects_CXX=
15889 postdep_objects_CXX=
15892 compiler_lib_search_path_CXX=
15894 cat > conftest.$ac_ext <<_LT_EOF
15898 Foo (void) { a = 0; }
15904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>&5
15907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; then
15909 # Parse the compiler output and extract the necessary
15910 # objects, libraries and library flags.
15912 # Sentinel used to keep track of whether or not we are before
15913 # the conftest object file.
15914 pre_test_object_deps_done=no
15916 for p in `eval "$output_verbose_link_cmd"`; do
15920 # Some compilers place space between "-{L,R}" and the path.
15921 # Remove the space.
15922 if test $p = "-L" ||
15923 test $p = "-R"; then
15930 if test "$pre_test_object_deps_done" = no; then
15933 # Internal compiler library paths should come after those
15934 # provided the user. The postdeps already come after the
15935 # user supplied libs so there is no need to process them.
15936 if test -z "$compiler_lib_search_path_CXX"; then
15937 compiler_lib_search_path_CXX="${prev}${p}"
15939 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15942 # The "-l" case would never come before the object being
15943 # linked, so don't bother handling this case.
15946 if test -z "$postdeps_CXX"; then
15947 postdeps_CXX="${prev}${p}"
15949 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15955 # This assumes that the test object file only shows up
15956 # once in the compiler output.
15957 if test "$p" = "conftest.$objext"; then
15958 pre_test_object_deps_done=yes
15962 if test "$pre_test_object_deps_done" = no; then
15963 if test -z "$predep_objects_CXX"; then
15964 predep_objects_CXX="$p"
15966 predep_objects_CXX="$predep_objects_CXX $p"
15969 if test -z "$postdep_objects_CXX"; then
15970 postdep_objects_CXX="$p"
15972 postdep_objects_CXX="$postdep_objects_CXX $p"
15977 *) ;; # Ignore the rest.
15985 echo "libtool.m4: error: problem compiling CXX test program"
15988 $RM -f confest.$objext
15990 # PORTME: override above test on systems where it is broken
15993 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15994 # hack all around it, let's just trust "g++" to DTRT.
15995 predep_objects_CXX=
15996 postdep_objects_CXX=
16001 case `$CC -V 2>&1 | sed 5q` in
16005 # The more standards-conforming stlport4 library is
16006 # incompatible with the Cstd library. Avoid specifying
16007 # it if it's in CXXFLAGS. Ignore libCrun as
16008 # -library=stlport4 depends on it.
16009 case " $CXX $CXXFLAGS " in
16010 *" -library=stlport4 "*)
16011 solaris_use_stlport4=yes
16015 if test "$solaris_use_stlport4" != yes; then
16016 postdeps_CXX='-library=Cstd -library=Crun'
16023 case $cc_basename in
16025 # The more standards-conforming stlport4 library is
16026 # incompatible with the Cstd library. Avoid specifying
16027 # it if it's in CXXFLAGS. Ignore libCrun as
16028 # -library=stlport4 depends on it.
16029 case " $CXX $CXXFLAGS " in
16030 *" -library=stlport4 "*)
16031 solaris_use_stlport4=yes
16035 # Adding this requires a known-good setup of shared libraries for
16036 # Sun compiler versions before 5.6, else PIC objects from an old
16037 # archive will be linked into the output, leading to subtle bugs.
16038 if test "$solaris_use_stlport4" != yes; then
16039 postdeps_CXX='-library=Cstd -library=Crun'
16047 case " $postdeps_CXX " in
16048 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16050 compiler_lib_search_dirs_CXX=
16051 if test -n "${compiler_lib_search_path_CXX}"; then
16052 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16085 lt_prog_compiler_wl_CXX=
16086 lt_prog_compiler_pic_CXX=
16087 lt_prog_compiler_static_CXX=
16089 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16092 # C++ specific cases for pic, static, wl, etc.
16093 if test "$GXX" = yes; then
16094 lt_prog_compiler_wl_CXX='-Wl,'
16095 lt_prog_compiler_static_CXX='-static'
16099 # All AIX code is PIC.
16100 if test "$host_cpu" = ia64; then
16101 # AIX 5 now supports IA64 processor
16102 lt_prog_compiler_static_CXX='-Bstatic'
16109 # see comment about AmigaOS4 .so support
16110 lt_prog_compiler_pic_CXX='-fPIC'
16113 # FIXME: we need at least 68020 code to build shared libraries, but
16114 # adding the `-m68020' flag to GCC prevents building anything better,
16116 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16121 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16122 # PIC is the default for these OSes.
16124 mingw* | cygwin* | os2* | pw32* | cegcc*)
16125 # This hack is so that the source file can tell whether it is being
16126 # built for inclusion in a dll (and should export symbols for example).
16127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16128 # (--disable-auto-import) libraries
16129 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16131 darwin* | rhapsody*)
16132 # PIC is the default on this platform
16133 # Common symbols not allowed in MH_DYLIB files
16134 lt_prog_compiler_pic_CXX='-fno-common'
16137 # DJGPP does not support shared libraries at all
16138 lt_prog_compiler_pic_CXX=
16141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16142 # Instead, we relocate shared libraries at runtime.
16145 if test -d /usr/nec; then
16146 lt_prog_compiler_pic_CXX=-Kconform_pic
16150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16152 # sets the default TLS model and affects inlining.
16157 lt_prog_compiler_pic_CXX='-fPIC'
16162 # QNX uses GNU C++, but need to define -shared option too, otherwise
16163 # it will coredump.
16164 lt_prog_compiler_pic_CXX='-fPIC -shared'
16167 lt_prog_compiler_pic_CXX='-fPIC'
16173 # All AIX code is PIC.
16174 if test "$host_cpu" = ia64; then
16175 # AIX 5 now supports IA64 processor
16176 lt_prog_compiler_static_CXX='-Bstatic'
16178 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16182 case $cc_basename in
16184 # Green Hills C++ Compiler
16185 # _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"
16190 case $cc_basename in
16192 lt_prog_compiler_pic_CXX='-KPIC'
16195 # Green Hills C++ Compiler
16196 lt_prog_compiler_pic_CXX='-pic'
16202 freebsd* | dragonfly*)
16203 # FreeBSD uses GNU C++
16205 hpux9* | hpux10* | hpux11*)
16206 case $cc_basename in
16208 lt_prog_compiler_wl_CXX='-Wl,'
16209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16210 if test "$host_cpu" != ia64; then
16211 lt_prog_compiler_pic_CXX='+Z'
16215 lt_prog_compiler_wl_CXX='-Wl,'
16216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16222 lt_prog_compiler_pic_CXX='+Z'
16231 # This is c89, which is MS Visual C++ (no shared libs)
16232 # Anyone wants to do a port?
16234 irix5* | irix6* | nonstopux*)
16235 case $cc_basename in
16237 lt_prog_compiler_wl_CXX='-Wl,'
16238 lt_prog_compiler_static_CXX='-non_shared'
16239 # CC pic flag -KPIC is the default.
16245 linux* | k*bsd*-gnu)
16246 case $cc_basename in
16249 lt_prog_compiler_wl_CXX='--backend -Wl,'
16250 lt_prog_compiler_pic_CXX='-fPIC'
16253 # old Intel C++ for x86_64 which still supported -KPIC.
16254 lt_prog_compiler_wl_CXX='-Wl,'
16255 lt_prog_compiler_pic_CXX='-KPIC'
16256 lt_prog_compiler_static_CXX='-static'
16259 # Intel C++, used to be incompatible with GCC.
16260 # ICC 10 doesn't accept -KPIC any more.
16261 lt_prog_compiler_wl_CXX='-Wl,'
16262 lt_prog_compiler_pic_CXX='-fPIC'
16263 lt_prog_compiler_static_CXX='-static'
16266 # Portland Group C++ compiler
16267 lt_prog_compiler_wl_CXX='-Wl,'
16268 lt_prog_compiler_pic_CXX='-fpic'
16269 lt_prog_compiler_static_CXX='-Bstatic'
16273 # Make sure the PIC flag is empty. It appears that all Alpha
16274 # Linux and Compaq Tru64 Unix objects are PIC.
16275 lt_prog_compiler_pic_CXX=
16276 lt_prog_compiler_static_CXX='-non_shared'
16279 # IBM XL 8.0 on PPC
16280 lt_prog_compiler_wl_CXX='-Wl,'
16281 lt_prog_compiler_pic_CXX='-qpic'
16282 lt_prog_compiler_static_CXX='-qstaticlink'
16285 case `$CC -V 2>&1 | sed 5q` in
16288 lt_prog_compiler_pic_CXX='-KPIC'
16289 lt_prog_compiler_static_CXX='-Bstatic'
16290 lt_prog_compiler_wl_CXX='-Qoption ld '
16301 case $cc_basename in
16303 lt_prog_compiler_pic_CXX='-W c,exportall'
16312 # QNX uses GNU C++, but need to define -shared option too, otherwise
16313 # it will coredump.
16314 lt_prog_compiler_pic_CXX='-fPIC -shared'
16316 osf3* | osf4* | osf5*)
16317 case $cc_basename in
16319 lt_prog_compiler_wl_CXX='--backend -Wl,'
16322 # Rational C++ 2.4.1
16323 lt_prog_compiler_pic_CXX='-pic'
16326 # Digital/Compaq C++
16327 lt_prog_compiler_wl_CXX='-Wl,'
16328 # Make sure the PIC flag is empty. It appears that all Alpha
16329 # Linux and Compaq Tru64 Unix objects are PIC.
16330 lt_prog_compiler_pic_CXX=
16331 lt_prog_compiler_static_CXX='-non_shared'
16340 case $cc_basename in
16342 # Sun C++ 4.2, 5.x and Centerline C++
16343 lt_prog_compiler_pic_CXX='-KPIC'
16344 lt_prog_compiler_static_CXX='-Bstatic'
16345 lt_prog_compiler_wl_CXX='-Qoption ld '
16348 # Green Hills C++ Compiler
16349 lt_prog_compiler_pic_CXX='-PIC'
16356 case $cc_basename in
16359 lt_prog_compiler_pic_CXX='-pic'
16360 lt_prog_compiler_static_CXX='-Bstatic'
16364 lt_prog_compiler_pic_CXX='-pic'
16370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16371 case $cc_basename in
16373 lt_prog_compiler_wl_CXX='-Wl,'
16374 lt_prog_compiler_pic_CXX='-KPIC'
16375 lt_prog_compiler_static_CXX='-Bstatic'
16380 case $cc_basename in
16382 # NonStop-UX NCC 3.20
16383 lt_prog_compiler_pic_CXX='-KPIC'
16392 lt_prog_compiler_can_build_shared_CXX=no
16398 # For platforms which do not support PIC, -DPIC is meaningless:
16400 lt_prog_compiler_pic_CXX=
16403 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16406 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16407 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16412 # Check to make sure the PIC flag actually works.
16414 if test -n "$lt_prog_compiler_pic_CXX"; then
16415 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16416 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16417 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16418 $as_echo_n "(cached) " >&6
16420 lt_cv_prog_compiler_pic_works_CXX=no
16421 ac_outfile=conftest.$ac_objext
16422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16423 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16424 # Insert the option either (1) after the last *FLAGS variable, or
16425 # (2) before a word containing "conftest.", or (3) at the end.
16426 # Note that $ac_compile itself does not contain backslashes and begins
16427 # with a dollar sign (not a hyphen), so the echo should work correctly.
16428 # The option is referenced via a variable to avoid confusing sed.
16429 lt_compile=`echo "$ac_compile" | $SED \
16430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16432 -e 's:$: $lt_compiler_flag:'`
16433 (eval echo "\"\$as_me:16433: $lt_compile\"" >&5)
16434 (eval "$lt_compile" 2>conftest.err)
16436 cat conftest.err >&5
16437 echo "$as_me:16437: \$? = $ac_status" >&5
16438 if (exit $ac_status) && test -s "$ac_outfile"; then
16439 # The compiler can only warn and ignore the option if not recognized
16440 # So say no if there are warnings other than the usual output.
16441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16444 lt_cv_prog_compiler_pic_works_CXX=yes
16450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16451 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16453 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16454 case $lt_prog_compiler_pic_CXX in
16456 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16459 lt_prog_compiler_pic_CXX=
16460 lt_prog_compiler_can_build_shared_CXX=no
16468 # Check to make sure the static flag actually works.
16470 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16471 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16473 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16476 lt_cv_prog_compiler_static_works_CXX=no
16477 save_LDFLAGS="$LDFLAGS"
16478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16481 # The linker can only warn and ignore the option if not recognized
16482 # So say no if there are warnings
16483 if test -s conftest.err; then
16484 # Append any errors to the config.log.
16485 cat conftest.err 1>&5
16486 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488 if diff conftest.exp conftest.er2 >/dev/null; then
16489 lt_cv_prog_compiler_static_works_CXX=yes
16492 lt_cv_prog_compiler_static_works_CXX=yes
16496 LDFLAGS="$save_LDFLAGS"
16499 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16500 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16502 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16505 lt_prog_compiler_static_CXX=
16511 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16513 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16514 $as_echo_n "(cached) " >&6
16516 lt_cv_prog_compiler_c_o_CXX=no
16517 $RM -r conftest 2>/dev/null
16521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16523 lt_compiler_flag="-o out/conftest2.$ac_objext"
16524 # Insert the option either (1) after the last *FLAGS variable, or
16525 # (2) before a word containing "conftest.", or (3) at the end.
16526 # Note that $ac_compile itself does not contain backslashes and begins
16527 # with a dollar sign (not a hyphen), so the echo should work correctly.
16528 lt_compile=`echo "$ac_compile" | $SED \
16529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16531 -e 's:$: $lt_compiler_flag:'`
16532 (eval echo "\"\$as_me:16532: $lt_compile\"" >&5)
16533 (eval "$lt_compile" 2>out/conftest.err)
16535 cat out/conftest.err >&5
16536 echo "$as_me:16536: \$? = $ac_status" >&5
16537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16539 # The compiler can only warn and ignore the option if not recognized
16540 # So say no if there are warnings
16541 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16544 lt_cv_prog_compiler_c_o_CXX=yes
16549 # SGI C++ compiler will create directory out/ii_files/ for
16550 # template instantiation
16551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16552 $RM out/* && rmdir out
16558 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16559 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16563 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16565 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16566 $as_echo_n "(cached) " >&6
16568 lt_cv_prog_compiler_c_o_CXX=no
16569 $RM -r conftest 2>/dev/null
16573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16575 lt_compiler_flag="-o out/conftest2.$ac_objext"
16576 # Insert the option either (1) after the last *FLAGS variable, or
16577 # (2) before a word containing "conftest.", or (3) at the end.
16578 # Note that $ac_compile itself does not contain backslashes and begins
16579 # with a dollar sign (not a hyphen), so the echo should work correctly.
16580 lt_compile=`echo "$ac_compile" | $SED \
16581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16583 -e 's:$: $lt_compiler_flag:'`
16584 (eval echo "\"\$as_me:16584: $lt_compile\"" >&5)
16585 (eval "$lt_compile" 2>out/conftest.err)
16587 cat out/conftest.err >&5
16588 echo "$as_me:16588: \$? = $ac_status" >&5
16589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16591 # The compiler can only warn and ignore the option if not recognized
16592 # So say no if there are warnings
16593 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16596 lt_cv_prog_compiler_c_o_CXX=yes
16601 # SGI C++ compiler will create directory out/ii_files/ for
16602 # template instantiation
16603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16604 $RM out/* && rmdir out
16610 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16611 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16616 hard_links="nottested"
16617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16618 # do not overwrite the value of need_locks provided by the user
16619 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16620 $as_echo_n "checking if we can lock with hard links... " >&6; }
16623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16625 ln conftest.a conftest.b 2>&5 || hard_links=no
16626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16627 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16628 $as_echo "$hard_links" >&6; }
16629 if test "$hard_links" = no; then
16630 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16631 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16640 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16646 # If we're using GNU nm, then we don't want the "-C" option.
16647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16649 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'
16651 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'
16655 export_symbols_cmds_CXX="$ltdll_cmds"
16657 cygwin* | mingw* | cegcc*)
16658 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'
16661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16666 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16667 $as_echo "$ld_shlibs_CXX" >&6; }
16668 test "$ld_shlibs_CXX" = no && can_build_shared=no
16670 with_gnu_ld_CXX=$with_gnu_ld
16678 # Do we need to explicitly link libc?
16680 case "x$archive_cmds_need_lc_CXX" in
16682 # Assume -lc should be added
16683 archive_cmds_need_lc_CXX=yes
16685 if test "$enable_shared" = yes && test "$GCC" = yes; then
16686 case $archive_cmds_CXX in
16688 # FIXME: we may have to deal with multi-command sequences.
16691 # Test whether the compiler implicitly links with -lc since on some
16692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16693 # to ld, don't add -lc before -lgcc.
16694 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16695 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>&5
16702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } 2>conftest.err; then
16706 libobjs=conftest.$ac_objext
16708 wl=$lt_prog_compiler_wl_CXX
16709 pic_flag=$lt_prog_compiler_pic_CXX
16715 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16716 allow_undefined_flag_CXX=
16717 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16718 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }
16723 archive_cmds_need_lc_CXX=no
16725 archive_cmds_need_lc_CXX=yes
16727 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16729 cat conftest.err 1>&5
16732 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16733 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16803 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16804 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16806 library_names_spec=
16807 libname_spec='lib$name'
16811 postuninstall_cmds=
16815 shlibpath_overrides_runpath=unknown
16817 dynamic_linker="$host_os ld.so"
16818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16819 need_lib_prefix=unknown
16820 hardcode_into_libs=no
16822 # when you set need_version to no, make sure it does not cause -set_version
16823 # flags to be left without arguments
16824 need_version=unknown
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16830 shlibpath_var=LIBPATH
16832 # AIX 3 has no versioning support, so we append a major version to the name.
16833 soname_spec='${libname}${release}${shared_ext}$major'
16840 hardcode_into_libs=yes
16841 if test "$host_cpu" = ia64; then
16842 # AIX 5 supports IA64
16843 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16844 shlibpath_var=LD_LIBRARY_PATH
16846 # With GCC up to 2.95.x, collect2 would create an import file
16847 # for dependence libraries. The import file would start with
16848 # the line `#! .'. This would cause the generated library to
16849 # depend on `.', always an invalid library. This was fixed in
16850 # development snapshots of GCC prior to 3.0.
16852 aix4 | aix4.[01] | aix4.[01].*)
16853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16855 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16858 can_build_shared=no
16862 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16863 # soname into executable. Probably we can add versioning support to
16864 # collect2, so additional links can be useful in future.
16865 if test "$aix_use_runtimelinking" = yes; then
16866 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16867 # instead of lib<name>.a to let people know that these are not
16868 # typical AIX shared libraries.
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 # We preserve .a as extension for shared libraries through AIX4.2
16872 # and later when we are not doing run time linking.
16873 library_names_spec='${libname}${release}.a $libname.a'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16876 shlibpath_var=LIBPATH
16883 # Since July 2007 AmigaOS4 officially supports .so libraries.
16884 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888 library_names_spec='$libname.ixlibrary $libname.a'
16889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16890 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'
16896 library_names_spec='${libname}${shared_ext}'
16897 dynamic_linker="$host_os ld.so"
16898 shlibpath_var=LIBRARY_PATH
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16910 # the default ld.so.conf also contains /usr/contrib/lib and
16911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16912 # libtool to hard-code these into programs
16915 cygwin* | mingw* | pw32* | cegcc*)
16916 version_type=windows
16921 case $GCC,$host_os in
16922 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16923 library_names_spec='$libname.dll.a'
16924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16925 postinstall_cmds='base_file=`basename \${file}`~
16926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16927 dldir=$destdir/`dirname \$dlpath`~
16928 test -d \$dldir || mkdir -p \$dldir~
16929 $install_prog $dir/$dlname \$dldir/$dlname~
16930 chmod a+x \$dldir/$dlname~
16931 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16932 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16935 dlpath=$dir/\$dldll~
16937 shlibpath_overrides_runpath=yes
16941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16946 # MinGW DLLs use traditional 'lib' prefix
16947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16949 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16950 # It is most probably a Windows format PATH printed by
16951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16952 # path with ; separators, and with drive letters. We can handle the
16953 # drive letters (cygwin fileutils understands them), so leave them,
16954 # especially as we might pass files found there to a mingw objdump,
16955 # which wouldn't understand a cygwinified path. Ahh.
16956 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16962 # pw32 DLLs use 'pw' prefix rather than 'lib'
16963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16972 dynamic_linker='Win32 ld.exe'
16973 # FIXME: first we should search . and the directory the executable is in
16977 darwin* | rhapsody*)
16978 dynamic_linker="$host_os dyld"
16979 version_type=darwin
16982 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16983 soname_spec='${libname}${release}${major}$shared_ext'
16984 shlibpath_overrides_runpath=yes
16985 shlibpath_var=DYLD_LIBRARY_PATH
16986 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16988 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 shlibpath_var=LD_LIBRARY_PATH
17004 freebsd* | dragonfly*)
17005 # DragonFly does not have aout. When/if they implement a new
17006 # versioning mechanism, adjust this.
17007 if test -x /usr/bin/objformat; then
17008 objformat=`/usr/bin/objformat`
17011 freebsd[123]*) objformat=aout ;;
17012 *) objformat=elf ;;
17015 version_type=freebsd-$objformat
17016 case $version_type in
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17027 shlibpath_var=LD_LIBRARY_PATH
17030 shlibpath_overrides_runpath=yes
17032 freebsd3.[01]* | freebsdelf3.[01]*)
17033 shlibpath_overrides_runpath=yes
17034 hardcode_into_libs=yes
17036 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17037 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17038 shlibpath_overrides_runpath=no
17039 hardcode_into_libs=yes
17041 *) # from 4.6 on, and DragonFly
17042 shlibpath_overrides_runpath=yes
17043 hardcode_into_libs=yes
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 hardcode_into_libs=yes
17058 hpux9* | hpux10* | hpux11*)
17059 # Give a soname corresponding to the major version so that dld.sl refuses to
17060 # link against other versions.
17067 hardcode_into_libs=yes
17068 dynamic_linker="$host_os dld.so"
17069 shlibpath_var=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 if test "X$HPUX_IA64_MODE" = X32; then
17074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17082 hardcode_into_libs=yes
17083 dynamic_linker="$host_os dld.sl"
17084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17093 dynamic_linker="$host_os dld.sl"
17094 shlibpath_var=SHLIB_PATH
17095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17100 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17101 postinstall_cmds='chmod 555 $lib'
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=no
17113 hardcode_into_libs=yes
17116 irix5* | irix6* | nonstopux*)
17118 nonstopux*) version_type=nonstopux ;;
17120 if test "$lt_cv_prog_gnu_ld" = yes; then
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17131 irix5* | nonstopux*)
17132 libsuff= shlibsuff=
17135 case $LD in # libtool.m4 will add one of these switches to LD
17136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17137 libsuff= shlibsuff= libmagic=32-bit;;
17138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17139 libsuff=32 shlibsuff=N32 libmagic=N32;;
17140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17142 *) libsuff= shlibsuff= libmagic=never-match;;
17146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17147 shlibpath_overrides_runpath=no
17148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17150 hardcode_into_libs=yes
17153 # No shared lib support for Linux oldld, aout, or coff.
17154 linux*oldld* | linux*aout* | linux*coff*)
17158 # This must be Linux ELF.
17159 linux* | k*bsd*-gnu)
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=no
17168 # Some binutils ld are patched to set DT_RUNPATH
17169 save_LDFLAGS=$LDFLAGS
17170 save_libdir=$libdir
17171 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17172 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_link") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_cxx_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest$ac_exeext && {
17206 test "$cross_compiling" = yes ||
17207 $as_test_x conftest$ac_exeext
17209 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17210 shlibpath_overrides_runpath=yes
17214 $as_echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17220 rm -rf conftest.dSYM
17221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17222 conftest$ac_exeext conftest.$ac_ext
17223 LDFLAGS=$save_LDFLAGS
17224 libdir=$save_libdir
17226 # This implies no fast_install, which is unacceptable.
17227 # Some rework will be needed to allow for fast_install
17228 # before this can be enabled.
17229 hardcode_into_libs=yes
17231 # Add ABI-specific directories to the system library path.
17232 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17234 # Append ld.so.conf contents to the search path
17235 if test -f /etc/ld.so.conf; then
17236 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' ' '`
17237 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17240 # We used to test for /lib/ld.so.1 and disable shared libraries on
17241 # powerpc, because MkLinux only supported shared libraries with the
17242 # GNU dynamic linker. Since this was broken with cross compilers,
17243 # most powerpc-linux boxes support dynamic linking these days and
17244 # people can always --disable-shared, the test was removed, and we
17245 # assume the GNU/Linux dynamic linker is in use.
17246 dynamic_linker='GNU/Linux ld.so'
17253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256 dynamic_linker='NetBSD (a.out) ld.so'
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 dynamic_linker='NetBSD ld.elf_so'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=yes
17264 hardcode_into_libs=yes
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=no
17282 hardcode_into_libs=yes
17283 dynamic_linker='ldqnx.so'
17288 sys_lib_dlsearch_path_spec="/usr/lib"
17290 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17292 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17293 *) need_version=no ;;
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17300 openbsd2.[89] | openbsd2.[89].*)
17301 shlibpath_overrides_runpath=no
17304 shlibpath_overrides_runpath=yes
17308 shlibpath_overrides_runpath=yes
17313 libname_spec='$name'
17316 library_names_spec='$libname${shared_ext} $libname.a'
17317 dynamic_linker='OS/2 ld.exe'
17318 shlibpath_var=LIBPATH
17321 osf3* | osf4* | osf5*)
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=yes
17344 hardcode_into_libs=yes
17345 # ldd complains unless libraries are executable
17346 postinstall_cmds='chmod +x $lib'
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath=yes
17355 if test "$with_gnu_ld" = yes; then
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 case $host_vendor in
17368 shlibpath_overrides_runpath=no
17370 runpath_var=LD_RUN_PATH
17378 shlibpath_overrides_runpath=no
17379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17385 if test -d /usr/nec ;then
17387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17388 soname_spec='$libname${shared_ext}.$major'
17389 shlibpath_var=LD_LIBRARY_PATH
17393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17394 version_type=freebsd-elf
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=yes
17401 hardcode_into_libs=yes
17402 if test "$with_gnu_ld" = yes; then
17403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17405 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17408 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17412 sys_lib_dlsearch_path_spec='/usr/lib'
17416 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=no
17423 hardcode_into_libs=yes
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17437 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17438 $as_echo "$dynamic_linker" >&6; }
17439 test "$dynamic_linker" = no && can_build_shared=no
17441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17442 if test "$GCC" = yes; then
17443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17447 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17450 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17488 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17489 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17490 hardcode_action_CXX=
17491 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17492 test -n "$runpath_var_CXX" ||
17493 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17495 # We can hardcode non-existent directories.
17496 if test "$hardcode_direct_CXX" != no &&
17497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17498 # have to relink, otherwise we might link with an installed library
17499 # when we should be linking with a yet-to-be-installed one
17500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17501 test "$hardcode_minus_L_CXX" != no; then
17502 # Linking always hardcodes the temporary library directory.
17503 hardcode_action_CXX=relink
17505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17506 hardcode_action_CXX=immediate
17509 # We cannot hardcode anything, or else we can only hardcode existing
17511 hardcode_action_CXX=unsupported
17513 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17514 $as_echo "$hardcode_action_CXX" >&6; }
17516 if test "$hardcode_action_CXX" = relink ||
17517 test "$inherit_rpath_CXX" = yes; then
17518 # Fast installation is not supported
17519 enable_fast_install=no
17520 elif test "$shlibpath_overrides_runpath" = yes ||
17521 test "$enable_shared" = no; then
17522 # Fast installation is not necessary
17523 enable_fast_install=needless
17532 fi # test -n "$compiler"
17538 with_gnu_ld=$lt_save_with_gnu_ld
17539 lt_cv_path_LDCXX=$lt_cv_path_LD
17540 lt_cv_path_LD=$lt_save_path_LD
17541 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17542 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17543 fi # test "$_lt_caught_CXX_error" != yes
17546 ac_cpp='$CPP $CPPFLAGS'
17547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17563 ac_config_commands="$ac_config_commands libtool"
17568 # Only expand once:
17571 if test "x$CC" != xcc; then
17572 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
17573 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17575 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
17576 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17578 set dummy $CC; ac_cc=`$as_echo "$2" |
17579 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17580 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
17581 $as_echo_n "(cached) " >&6
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17598 # Make sure it works both with $CC and with simple cc.
17599 # We do the test twice because some compilers refuse to overwrite an
17600 # existing .o file with -o, though they will create one.
17601 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17603 if { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17608 $as_echo "$ac_try_echo") >&5
17609 (eval "$ac_try") 2>&5
17611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 test -f conftest2.$ac_objext && { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17618 $as_echo "$ac_try_echo") >&5
17619 (eval "$ac_try") 2>&5
17621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); };
17624 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17625 if test "x$CC" != xcc; then
17626 # Test first that cc exists at all.
17627 if { ac_try='cc -c conftest.$ac_ext >&5'
17628 { (case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17633 $as_echo "$ac_try_echo") >&5
17634 (eval "$ac_try") 2>&5
17636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17640 if { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645 $as_echo "$ac_try_echo") >&5
17646 (eval "$ac_try") 2>&5
17648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 test -f conftest2.$ac_objext && { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655 $as_echo "$ac_try_echo") >&5
17656 (eval "$ac_try") 2>&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); };
17664 # cc exists but doesn't like -o.
17665 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17670 eval ac_cv_prog_cc_${ac_cc}_c_o=no
17672 rm -f core conftest*
17675 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17676 { $as_echo "$as_me:$LINENO: result: yes" >&5
17677 $as_echo "yes" >&6; }
17679 { $as_echo "$as_me:$LINENO: result: no" >&5
17680 $as_echo "no" >&6; }
17682 cat >>confdefs.h <<\_ACEOF
17683 #define NO_MINUS_C_MINUS_O 1
17688 # FIXME: we rely on the cache variable name because
17689 # there is no other way.
17691 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17692 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17693 if test "$am_t" != yes; then
17694 # Losing compiler, so override with the script.
17695 # FIXME: It is wrong to rewrite CC.
17696 # But if we don't then we get into trouble of one sort or another.
17697 # A longer-term fix would be to have automake use am__CC in this case,
17698 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17699 CC="$am_aux_dir/compile $CC"
17704 if test "x$cross_compiling" = "xno"; then
17705 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
17707 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
17712 if test -n "$ac_tool_prefix"; then
17713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17714 set dummy ${ac_tool_prefix}ar; ac_word=$2
17715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17716 $as_echo_n "checking for $ac_word... " >&6; }
17717 if test "${ac_cv_prog_AR+set}" = set; then
17718 $as_echo_n "(cached) " >&6
17720 if test -n "$AR"; then
17721 ac_cv_prog_AR="$AR" # Let the user override the test.
17723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17724 for as_dir in $PATH
17727 test -z "$as_dir" && as_dir=.
17728 for ac_exec_ext in '' $ac_executable_extensions; do
17729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17730 ac_cv_prog_AR="${ac_tool_prefix}ar"
17731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17741 if test -n "$AR"; then
17742 { $as_echo "$as_me:$LINENO: result: $AR" >&5
17743 $as_echo "$AR" >&6; }
17745 { $as_echo "$as_me:$LINENO: result: no" >&5
17746 $as_echo "no" >&6; }
17751 if test -z "$ac_cv_prog_AR"; then
17753 # Extract the first word of "ar", so it can be a program name with args.
17754 set dummy ar; ac_word=$2
17755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17756 $as_echo_n "checking for $ac_word... " >&6; }
17757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
17758 $as_echo_n "(cached) " >&6
17760 if test -n "$ac_ct_AR"; then
17761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
17763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764 for as_dir in $PATH
17767 test -z "$as_dir" && as_dir=.
17768 for ac_exec_ext in '' $ac_executable_extensions; do
17769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17770 ac_cv_prog_ac_ct_AR="ar"
17771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
17781 if test -n "$ac_ct_AR"; then
17782 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
17783 $as_echo "$ac_ct_AR" >&6; }
17785 { $as_echo "$as_me:$LINENO: result: no" >&5
17786 $as_echo "no" >&6; }
17789 if test "x$ac_ct_AR" = x; then
17792 case $cross_compiling:$ac_tool_warned in
17794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17796 ac_tool_warned=yes ;;
17801 AR="$ac_cv_prog_AR"
17804 if test -n "$ac_tool_prefix"; then
17805 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
17806 set dummy ${ac_tool_prefix}ld; ac_word=$2
17807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17808 $as_echo_n "checking for $ac_word... " >&6; }
17809 if test "${ac_cv_prog_LD+set}" = set; then
17810 $as_echo_n "(cached) " >&6
17812 if test -n "$LD"; then
17813 ac_cv_prog_LD="$LD" # Let the user override the test.
17815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17816 for as_dir in $PATH
17819 test -z "$as_dir" && as_dir=.
17820 for ac_exec_ext in '' $ac_executable_extensions; do
17821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17822 ac_cv_prog_LD="${ac_tool_prefix}ld"
17823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17833 if test -n "$LD"; then
17834 { $as_echo "$as_me:$LINENO: result: $LD" >&5
17835 $as_echo "$LD" >&6; }
17837 { $as_echo "$as_me:$LINENO: result: no" >&5
17838 $as_echo "no" >&6; }
17843 if test -z "$ac_cv_prog_LD"; then
17845 # Extract the first word of "ld", so it can be a program name with args.
17846 set dummy ld; ac_word=$2
17847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17848 $as_echo_n "checking for $ac_word... " >&6; }
17849 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
17850 $as_echo_n "(cached) " >&6
17852 if test -n "$ac_ct_LD"; then
17853 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
17855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17856 for as_dir in $PATH
17859 test -z "$as_dir" && as_dir=.
17860 for ac_exec_ext in '' $ac_executable_extensions; do
17861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17862 ac_cv_prog_ac_ct_LD="ld"
17863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17872 ac_ct_LD=$ac_cv_prog_ac_ct_LD
17873 if test -n "$ac_ct_LD"; then
17874 { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
17875 $as_echo "$ac_ct_LD" >&6; }
17877 { $as_echo "$as_me:$LINENO: result: no" >&5
17878 $as_echo "no" >&6; }
17881 if test "x$ac_ct_LD" = x; then
17884 case $cross_compiling:$ac_tool_warned in
17886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17888 ac_tool_warned=yes ;;
17893 LD="$ac_cv_prog_LD"
17897 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17898 $as_echo_n "checking for ANSI C header files... " >&6; }
17899 if test "${ac_cv_header_stdc+set}" = set; then
17900 $as_echo_n "(cached) " >&6
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 #include <stdlib.h>
17909 #include <stdarg.h>
17910 #include <string.h>
17921 rm -f conftest.$ac_objext
17922 if { (ac_try="$ac_compile"
17923 case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17928 $as_echo "$ac_try_echo") >&5
17929 (eval "$ac_compile") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } && {
17936 test -z "$ac_c_werror_flag" ||
17937 test ! -s conftest.err
17938 } && test -s conftest.$ac_objext; then
17939 ac_cv_header_stdc=yes
17941 $as_echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 ac_cv_header_stdc=no
17947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 if test $ac_cv_header_stdc = yes; then
17950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #include <string.h>
17960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17961 $EGREP "memchr" >/dev/null 2>&1; then
17964 ac_cv_header_stdc=no
17970 if test $ac_cv_header_stdc = yes; then
17971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 #include <stdlib.h>
17981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17982 $EGREP "free" >/dev/null 2>&1; then
17985 ac_cv_header_stdc=no
17991 if test $ac_cv_header_stdc = yes; then
17992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17993 if test "$cross_compiling" = yes; then
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18003 #include <stdlib.h>
18004 #if ((' ' & 0x0FF) == 0x020)
18005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18008 # define ISLOWER(c) \
18009 (('a' <= (c) && (c) <= 'i') \
18010 || ('j' <= (c) && (c) <= 'r') \
18011 || ('s' <= (c) && (c) <= 'z'))
18012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18020 for (i = 0; i < 256; i++)
18021 if (XOR (islower (i), ISLOWER (i))
18022 || toupper (i) != TOUPPER (i))
18027 rm -f conftest$ac_exeext
18028 if { (ac_try="$ac_link"
18029 case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18034 $as_echo "$ac_try_echo") >&5
18035 (eval "$ac_link") 2>&5
18037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18044 $as_echo "$ac_try_echo") >&5
18045 (eval "$ac_try") 2>&5
18047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18051 $as_echo "$as_me: program exited with status $ac_status" >&5
18052 $as_echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ( exit $ac_status )
18056 ac_cv_header_stdc=no
18058 rm -rf conftest.dSYM
18059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18066 $as_echo "$ac_cv_header_stdc" >&6; }
18067 if test $ac_cv_header_stdc = yes; then
18069 cat >>confdefs.h <<\_ACEOF
18070 #define STDC_HEADERS 1
18076 { $as_echo "$as_me:$LINENO: checking for GNU libc2" >&5
18077 $as_echo_n "checking for GNU libc2... " >&6; }
18078 if test "${knfsd_cv_glibc2+set}" = set; then
18079 $as_echo_n "(cached) " >&6
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18088 #include <features.h>
18089 #if !defined(__GLIBC__)
18094 if { (ac_try="$ac_cpp conftest.$ac_ext"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100 $as_echo "$ac_try_echo") >&5
18101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } >/dev/null && {
18108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18111 knfsd_cv_glibc2=yes
18113 $as_echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18119 rm -f conftest.err conftest.$ac_ext
18122 { $as_echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
18123 $as_echo "$knfsd_cv_glibc2" >&6; }
18124 if test $knfsd_cv_glibc2 = yes; then
18125 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18126 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
18130 { $as_echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
18131 $as_echo_n "checking for BSD signal semantics... " >&6; }
18132 if test "${knfsd_cv_bsd_signals+set}" = set; then
18133 $as_echo_n "(cached) " >&6
18135 if test "$cross_compiling" = yes; then
18138 *linux*) knfsd_cv_bsd_signals=no;;
18139 *bsd*) knfsd_cv_bsd_signals=yes;;
18140 *) { { $as_echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
18141 $as_echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
18142 { (exit 1); exit 1; }; };;
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18153 #include <signal.h>
18154 #include <unistd.h>
18155 #include <sys/wait.h>
18157 static int counter = 0;
18158 static RETSIGTYPE handler(int num) { counter++; }
18163 if ((s = fork()) < 0) return 1;
18165 if (wait(&s) < 0) return 1;
18166 return WIFSIGNALED(s)? 1 : 0;
18169 signal(SIGHUP, handler);
18170 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
18171 return (counter == 2)? 0 : 1;
18175 rm -f conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18182 $as_echo "$ac_try_echo") >&5
18183 (eval "$ac_link") 2>&5
18185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18192 $as_echo "$ac_try_echo") >&5
18193 (eval "$ac_try") 2>&5
18195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 knfsd_cv_bsd_signals=yes
18199 $as_echo "$as_me: program exited with status $ac_status" >&5
18200 $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ( exit $ac_status )
18204 knfsd_cv_bsd_signals=no
18206 rm -rf conftest.dSYM
18207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18212 { $as_echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
18213 $as_echo "$knfsd_cv_bsd_signals" >&6; }
18214 test $knfsd_cv_bsd_signals = yes &&
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE_BSD_SIGNALS 1
18222 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
18223 $as_echo_n "checking for gethostbyname... " >&6; }
18224 if test "${ac_cv_func_gethostbyname+set}" = set; then
18225 $as_echo_n "(cached) " >&6
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18235 #define gethostbyname innocuous_gethostbyname
18237 /* System header to define __stub macros and hopefully few prototypes,
18238 which can conflict with char gethostbyname (); below.
18239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240 <limits.h> exists even on freestanding compilers. */
18243 # include <limits.h>
18245 # include <assert.h>
18248 #undef gethostbyname
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18256 char gethostbyname ();
18257 /* The GNU C library defines this for functions which it implements
18258 to always fail with ENOSYS. Some functions are actually named
18259 something starting with __ and the normal name is an alias. */
18260 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18267 return gethostbyname ();
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
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_link") 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_exeext && {
18290 test "$cross_compiling" = yes ||
18291 $as_test_x conftest$ac_exeext
18293 ac_cv_func_gethostbyname=yes
18295 $as_echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 ac_cv_func_gethostbyname=no
18301 rm -rf conftest.dSYM
18302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18303 conftest$ac_exeext conftest.$ac_ext
18305 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18306 $as_echo "$ac_cv_func_gethostbyname" >&6; }
18307 if test "x$ac_cv_func_gethostbyname" = x""yes; then
18310 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18311 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18312 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18313 $as_echo_n "(cached) " >&6
18315 ac_check_lib_save_LIBS=$LIBS
18317 cat >conftest.$ac_ext <<_ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18324 /* Override any GCC internal prototype to avoid an error.
18325 Use char because int might match the return type of a GCC
18326 builtin and then its argument prototype would still apply. */
18330 char gethostbyname ();
18334 return gethostbyname ();
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18346 $as_echo "$ac_try_echo") >&5
18347 (eval "$ac_link") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext && {
18357 test "$cross_compiling" = yes ||
18358 $as_test_x conftest$ac_exeext
18360 ac_cv_lib_nsl_gethostbyname=yes
18362 $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18365 ac_cv_lib_nsl_gethostbyname=no
18368 rm -rf conftest.dSYM
18369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18370 conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18374 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18375 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
18383 { $as_echo "$as_me:$LINENO: checking for connect" >&5
18384 $as_echo_n "checking for connect... " >&6; }
18385 if test "${ac_cv_func_connect+set}" = set; then
18386 $as_echo_n "(cached) " >&6
18388 cat >conftest.$ac_ext <<_ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18396 #define connect innocuous_connect
18398 /* System header to define __stub macros and hopefully few prototypes,
18399 which can conflict with char connect (); below.
18400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18401 <limits.h> exists even on freestanding compilers. */
18404 # include <limits.h>
18406 # include <assert.h>
18411 /* Override any GCC internal prototype to avoid an error.
18412 Use char because int might match the return type of a GCC
18413 builtin and then its argument prototype would still apply. */
18418 /* The GNU C library defines this for functions which it implements
18419 to always fail with ENOSYS. Some functions are actually named
18420 something starting with __ and the normal name is an alias. */
18421 #if defined __stub_connect || defined __stub___connect
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18440 $as_echo "$ac_try_echo") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext && {
18451 test "$cross_compiling" = yes ||
18452 $as_test_x conftest$ac_exeext
18454 ac_cv_func_connect=yes
18456 $as_echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_cv_func_connect=no
18462 rm -rf conftest.dSYM
18463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464 conftest$ac_exeext conftest.$ac_ext
18466 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18467 $as_echo "$ac_cv_func_connect" >&6; }
18468 if test "x$ac_cv_func_connect" = x""yes; then
18471 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18472 $as_echo_n "checking for connect in -lsocket... " >&6; }
18473 if test "${ac_cv_lib_socket_connect+set}" = set; then
18474 $as_echo_n "(cached) " >&6
18476 ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lsocket $LIBNSL $LIBS"
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18500 rm -f conftest.$ac_objext conftest$ac_exeext
18501 if { (ac_try="$ac_link"
18502 case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508 (eval "$ac_link") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest$ac_exeext && {
18518 test "$cross_compiling" = yes ||
18519 $as_test_x conftest$ac_exeext
18521 ac_cv_lib_socket_connect=yes
18523 $as_echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18526 ac_cv_lib_socket_connect=no
18529 rm -rf conftest.dSYM
18530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18531 conftest$ac_exeext conftest.$ac_ext
18532 LIBS=$ac_check_lib_save_LIBS
18534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18535 $as_echo "$ac_cv_lib_socket_connect" >&6; }
18536 if test "x$ac_cv_lib_socket_connect" = x""yes; then
18537 LIBSOCKET="-lsocket"
18539 { { $as_echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
18540 $as_echo "$as_me: error: Function 'socket' not found." >&2;}
18541 { (exit 1); exit 1; }; }
18547 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18548 $as_echo_n "checking for getaddrinfo... " >&6; }
18549 if test "${ac_cv_func_getaddrinfo+set}" = set; then
18550 $as_echo_n "(cached) " >&6
18552 cat >conftest.$ac_ext <<_ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
18559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18560 #define getaddrinfo innocuous_getaddrinfo
18562 /* System header to define __stub macros and hopefully few prototypes,
18563 which can conflict with char getaddrinfo (); below.
18564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18565 <limits.h> exists even on freestanding compilers. */
18568 # include <limits.h>
18570 # include <assert.h>
18575 /* Override any GCC internal prototype to avoid an error.
18576 Use char because int might match the return type of a GCC
18577 builtin and then its argument prototype would still apply. */
18581 char getaddrinfo ();
18582 /* The GNU C library defines this for functions which it implements
18583 to always fail with ENOSYS. Some functions are actually named
18584 something starting with __ and the normal name is an alias. */
18585 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
18592 return getaddrinfo ();
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18604 $as_echo "$ac_try_echo") >&5
18605 (eval "$ac_link") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } && {
18612 test -z "$ac_c_werror_flag" ||
18613 test ! -s conftest.err
18614 } && test -s conftest$ac_exeext && {
18615 test "$cross_compiling" = yes ||
18616 $as_test_x conftest$ac_exeext
18618 ac_cv_func_getaddrinfo=yes
18620 $as_echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_func_getaddrinfo=no
18626 rm -rf conftest.dSYM
18627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18628 conftest$ac_exeext conftest.$ac_ext
18630 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
18631 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
18632 if test "x$ac_cv_func_getaddrinfo" = x""yes; then
18635 { { $as_echo "$as_me:$LINENO: error: Function 'getaddrinfo' not found." >&5
18636 $as_echo "$as_me: error: Function 'getaddrinfo' not found." >&2;}
18637 { (exit 1); exit 1; }; }
18641 { $as_echo "$as_me:$LINENO: checking for getrpcbynumber" >&5
18642 $as_echo_n "checking for getrpcbynumber... " >&6; }
18643 if test "${ac_cv_func_getrpcbynumber+set}" = set; then
18644 $as_echo_n "(cached) " >&6
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 /* Define getrpcbynumber to an innocuous variant, in case <limits.h> declares getrpcbynumber.
18653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18654 #define getrpcbynumber innocuous_getrpcbynumber
18656 /* System header to define __stub macros and hopefully few prototypes,
18657 which can conflict with char getrpcbynumber (); below.
18658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18659 <limits.h> exists even on freestanding compilers. */
18662 # include <limits.h>
18664 # include <assert.h>
18667 #undef getrpcbynumber
18669 /* Override any GCC internal prototype to avoid an error.
18670 Use char because int might match the return type of a GCC
18671 builtin and then its argument prototype would still apply. */
18675 char getrpcbynumber ();
18676 /* The GNU C library defines this for functions which it implements
18677 to always fail with ENOSYS. Some functions are actually named
18678 something starting with __ and the normal name is an alias. */
18679 #if defined __stub_getrpcbynumber || defined __stub___getrpcbynumber
18686 return getrpcbynumber ();
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18698 $as_echo "$ac_try_echo") >&5
18699 (eval "$ac_link") 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } && {
18706 test -z "$ac_c_werror_flag" ||
18707 test ! -s conftest.err
18708 } && test -s conftest$ac_exeext && {
18709 test "$cross_compiling" = yes ||
18710 $as_test_x conftest$ac_exeext
18712 ac_cv_func_getrpcbynumber=yes
18714 $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 ac_cv_func_getrpcbynumber=no
18720 rm -rf conftest.dSYM
18721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18722 conftest$ac_exeext conftest.$ac_ext
18724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getrpcbynumber" >&5
18725 $as_echo "$ac_cv_func_getrpcbynumber" >&6; }
18726 if test "x$ac_cv_func_getrpcbynumber" = x""yes; then
18729 { { $as_echo "$as_me:$LINENO: error: Function 'getrpcbynumber' not found." >&5
18730 $as_echo "$as_me: error: Function 'getrpcbynumber' not found." >&2;}
18731 { (exit 1); exit 1; }; }
18735 { $as_echo "$as_me:$LINENO: checking for getservbyname" >&5
18736 $as_echo_n "checking for getservbyname... " >&6; }
18737 if test "${ac_cv_func_getservbyname+set}" = set; then
18738 $as_echo_n "(cached) " >&6
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 /* Define getservbyname to an innocuous variant, in case <limits.h> declares getservbyname.
18747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18748 #define getservbyname innocuous_getservbyname
18750 /* System header to define __stub macros and hopefully few prototypes,
18751 which can conflict with char getservbyname (); below.
18752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753 <limits.h> exists even on freestanding compilers. */
18756 # include <limits.h>
18758 # include <assert.h>
18761 #undef getservbyname
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18769 char getservbyname ();
18770 /* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773 #if defined __stub_getservbyname || defined __stub___getservbyname
18780 return getservbyname ();
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18806 ac_cv_func_getservbyname=yes
18808 $as_echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_func_getservbyname=no
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18818 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname" >&5
18819 $as_echo "$ac_cv_func_getservbyname" >&6; }
18820 if test "x$ac_cv_func_getservbyname" = x""yes; then
18823 { { $as_echo "$as_me:$LINENO: error: Function 'getservbyname' not found." >&5
18824 $as_echo "$as_me: error: Function 'getservbyname' not found." >&2;}
18825 { (exit 1); exit 1; }; }
18829 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18830 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18831 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18832 $as_echo_n "(cached) " >&6
18834 ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-lcrypt $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_link") 2>conftest.er1
18868 grep -v '^ *+' conftest.er1 >conftest.err
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest$ac_exeext && {
18876 test "$cross_compiling" = yes ||
18877 $as_test_x conftest$ac_exeext
18879 ac_cv_lib_crypt_crypt=yes
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_lib_crypt_crypt=no
18887 rm -rf conftest.dSYM
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18893 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18894 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
18899 if test "$enable_nfsv4" = yes; then
18902 { $as_echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
18903 $as_echo_n "checking for event_dispatch in -levent... " >&6; }
18904 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
18905 $as_echo_n "(cached) " >&6
18907 ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-levent $LIBS"
18909 cat >conftest.$ac_ext <<_ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18916 /* Override any GCC internal prototype to avoid an error.
18917 Use char because int might match the return type of a GCC
18918 builtin and then its argument prototype would still apply. */
18922 char event_dispatch ();
18926 return event_dispatch ();
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18938 $as_echo "$ac_try_echo") >&5
18939 (eval "$ac_link") 2>conftest.er1
18941 grep -v '^ *+' conftest.er1 >conftest.err
18943 cat conftest.err >&5
18944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } && {
18946 test -z "$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 } && test -s conftest$ac_exeext && {
18949 test "$cross_compiling" = yes ||
18950 $as_test_x conftest$ac_exeext
18952 ac_cv_lib_event_event_dispatch=yes
18954 $as_echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18957 ac_cv_lib_event_event_dispatch=no
18960 rm -rf conftest.dSYM
18961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18962 conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
18966 $as_echo "$ac_cv_lib_event_event_dispatch" >&6; }
18967 if test "x$ac_cv_lib_event_event_dispatch" = x""yes; then
18970 { { $as_echo "$as_me:$LINENO: error: libevent not found." >&5
18971 $as_echo "$as_me: error: libevent not found." >&2;}
18972 { (exit 1); exit 1; }; }
18977 for ac_header in event.h
18979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18982 $as_echo_n "checking for $ac_header... " >&6; }
18983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18984 $as_echo_n "(cached) " >&6
18986 ac_res=`eval 'as_val=${'$as_ac_Header'}
18987 $as_echo "$as_val"'`
18988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18989 $as_echo "$ac_res" >&6; }
18991 # Is the header compilable?
18992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18993 $as_echo_n "checking $ac_header usability... " >&6; }
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19000 $ac_includes_default
19001 #include <$ac_header>
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19010 $as_echo "$ac_try_echo") >&5
19011 (eval "$ac_compile") 2>conftest.er1
19013 grep -v '^ *+' conftest.er1 >conftest.err
19015 cat conftest.err >&5
19016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && {
19018 test -z "$ac_c_werror_flag" ||
19019 test ! -s conftest.err
19020 } && test -s conftest.$ac_objext; then
19021 ac_header_compiler=yes
19023 $as_echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_header_compiler=no
19029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19031 $as_echo "$ac_header_compiler" >&6; }
19033 # Is the header present?
19034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19035 $as_echo_n "checking $ac_header presence... " >&6; }
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 #include <$ac_header>
19044 if { (ac_try="$ac_cpp conftest.$ac_ext"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19050 $as_echo "$ac_try_echo") >&5
19051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } >/dev/null && {
19058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19061 ac_header_preproc=yes
19063 $as_echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 ac_header_preproc=no
19069 rm -f conftest.err conftest.$ac_ext
19070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19071 $as_echo "$ac_header_preproc" >&6; }
19073 # So? What about this header?
19074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19080 ac_header_preproc=yes
19083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19096 ## ---------------------------------------- ##
19097 ## Report this to linux-nfs@vger.kernel.org ##
19098 ## ---------------------------------------- ##
19100 ) | sed "s/^/$as_me: WARNING: /" >&2
19103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19104 $as_echo_n "checking for $ac_header... " >&6; }
19105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19106 $as_echo_n "(cached) " >&6
19108 eval "$as_ac_Header=\$ac_header_preproc"
19110 ac_res=`eval 'as_val=${'$as_ac_Header'}
19111 $as_echo "$as_val"'`
19112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19116 as_val=`eval 'as_val=${'$as_ac_Header'}
19117 $as_echo "$as_val"'`
19118 if test "x$as_val" = x""yes; then
19119 cat >>confdefs.h <<_ACEOF
19120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19124 { { $as_echo "$as_me:$LINENO: error: libevent headers not found." >&5
19125 $as_echo "$as_me: error: libevent headers not found." >&2;}
19126 { (exit 1); exit 1; }; }
19136 { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
19137 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
19138 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
19139 $as_echo_n "(cached) " >&6
19141 ac_check_lib_save_LIBS=$LIBS
19142 LIBS="-lnfsidmap $LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19150 /* Override any GCC internal prototype to avoid an error.
19151 Use char because int might match the return type of a GCC
19152 builtin and then its argument prototype would still apply. */
19156 char nfs4_init_name_mapping ();
19160 return nfs4_init_name_mapping ();
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19172 $as_echo "$ac_try_echo") >&5
19173 (eval "$ac_link") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest$ac_exeext && {
19183 test "$cross_compiling" = yes ||
19184 $as_test_x conftest$ac_exeext
19186 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
19188 $as_echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
19194 rm -rf conftest.dSYM
19195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19196 conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
19200 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
19201 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
19204 { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
19205 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
19206 { (exit 1); exit 1; }; }
19211 for ac_header in nfsidmap.h
19213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19216 $as_echo_n "checking for $ac_header... " >&6; }
19217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19218 $as_echo_n "(cached) " >&6
19220 ac_res=`eval 'as_val=${'$as_ac_Header'}
19221 $as_echo "$as_val"'`
19222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19223 $as_echo "$ac_res" >&6; }
19225 # Is the header compilable?
19226 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19227 $as_echo_n "checking $ac_header usability... " >&6; }
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 $ac_includes_default
19235 #include <$ac_header>
19237 rm -f conftest.$ac_objext
19238 if { (ac_try="$ac_compile"
19239 case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19244 $as_echo "$ac_try_echo") >&5
19245 (eval "$ac_compile") 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } && {
19252 test -z "$ac_c_werror_flag" ||
19253 test ! -s conftest.err
19254 } && test -s conftest.$ac_objext; then
19255 ac_header_compiler=yes
19257 $as_echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.$ac_ext >&5
19260 ac_header_compiler=no
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19265 $as_echo "$ac_header_compiler" >&6; }
19267 # Is the header present?
19268 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19269 $as_echo_n "checking $ac_header presence... " >&6; }
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276 #include <$ac_header>
19278 if { (ac_try="$ac_cpp conftest.$ac_ext"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19284 $as_echo "$ac_try_echo") >&5
19285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } >/dev/null && {
19292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19293 test ! -s conftest.err
19295 ac_header_preproc=yes
19297 $as_echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_header_preproc=no
19303 rm -f conftest.err conftest.$ac_ext
19304 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19305 $as_echo "$ac_header_preproc" >&6; }
19307 # So? What about this header?
19308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19311 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19314 ac_header_preproc=yes
19317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19318 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19320 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19322 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19324 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19326 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19328 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19330 ## ---------------------------------------- ##
19331 ## Report this to linux-nfs@vger.kernel.org ##
19332 ## ---------------------------------------- ##
19334 ) | sed "s/^/$as_me: WARNING: /" >&2
19337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19338 $as_echo_n "checking for $ac_header... " >&6; }
19339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19340 $as_echo_n "(cached) " >&6
19342 eval "$as_ac_Header=\$ac_header_preproc"
19344 ac_res=`eval 'as_val=${'$as_ac_Header'}
19345 $as_echo "$as_val"'`
19346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19350 as_val=`eval 'as_val=${'$as_ac_Header'}
19351 $as_echo "$as_val"'`
19352 if test "x$as_val" = x""yes; then
19353 cat >>confdefs.h <<_ACEOF
19354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19358 { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
19359 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
19360 { (exit 1); exit 1; }; }
19366 { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
19367 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
19368 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
19369 $as_echo_n "(cached) " >&6
19371 ac_check_lib_save_LIBS=$LIBS
19372 LIBS="-lnfsidmap $LIBS"
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19386 char nfs4_set_debug ();
19390 return nfs4_set_debug ();
19395 rm -f conftest.$ac_objext conftest$ac_exeext
19396 if { (ac_try="$ac_link"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19402 $as_echo "$ac_try_echo") >&5
19403 (eval "$ac_link") 2>conftest.er1
19405 grep -v '^ *+' conftest.er1 >conftest.err
19407 cat conftest.err >&5
19408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } && {
19410 test -z "$ac_c_werror_flag" ||
19411 test ! -s conftest.err
19412 } && test -s conftest$ac_exeext && {
19413 test "$cross_compiling" = yes ||
19414 $as_test_x conftest$ac_exeext
19416 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
19418 $as_echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ac_cv_lib_nfsidmap_nfs4_set_debug=no
19424 rm -rf conftest.dSYM
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19426 conftest$ac_exeext conftest.$ac_ext
19427 LIBS=$ac_check_lib_save_LIBS
19429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
19430 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
19431 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_NFS4_SET_DEBUG 1
19442 if test "$enable_gss" = yes; then
19445 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19446 if test -n "$ac_tool_prefix"; then
19447 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19448 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19450 $as_echo_n "checking for $ac_word... " >&6; }
19451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19452 $as_echo_n "(cached) " >&6
19454 case $PKG_CONFIG in
19456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19463 test -z "$as_dir" && as_dir=.
19464 for ac_exec_ext in '' $ac_executable_extensions; do
19465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19478 if test -n "$PKG_CONFIG"; then
19479 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19480 $as_echo "$PKG_CONFIG" >&6; }
19482 { $as_echo "$as_me:$LINENO: result: no" >&5
19483 $as_echo "no" >&6; }
19488 if test -z "$ac_cv_path_PKG_CONFIG"; then
19489 ac_pt_PKG_CONFIG=$PKG_CONFIG
19490 # Extract the first word of "pkg-config", so it can be a program name with args.
19491 set dummy pkg-config; ac_word=$2
19492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19493 $as_echo_n "checking for $ac_word... " >&6; }
19494 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19495 $as_echo_n "(cached) " >&6
19497 case $ac_pt_PKG_CONFIG in
19499 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19503 for as_dir in $PATH
19506 test -z "$as_dir" && as_dir=.
19507 for ac_exec_ext in '' $ac_executable_extensions; do
19508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19509 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19520 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19521 if test -n "$ac_pt_PKG_CONFIG"; then
19522 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19523 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19525 { $as_echo "$as_me:$LINENO: result: no" >&5
19526 $as_echo "no" >&6; }
19529 if test "x$ac_pt_PKG_CONFIG" = x; then
19532 case $cross_compiling:$ac_tool_warned in
19534 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19536 ac_tool_warned=yes ;;
19538 PKG_CONFIG=$ac_pt_PKG_CONFIG
19541 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19545 if test -n "$PKG_CONFIG"; then
19546 _pkg_min_version=0.9.0
19547 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19548 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19549 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19550 { $as_echo "$as_me:$LINENO: result: yes" >&5
19551 $as_echo "yes" >&6; }
19553 { $as_echo "$as_me:$LINENO: result: no" >&5
19554 $as_echo "no" >&6; }
19563 { $as_echo "$as_me:$LINENO: checking for GSSGLUE" >&5
19564 $as_echo_n "checking for GSSGLUE... " >&6; }
19566 if test -n "$GSSGLUE_CFLAGS"; then
19567 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
19568 elif test -n "$PKG_CONFIG"; then
19569 if test -n "$PKG_CONFIG" && \
19570 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19571 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; then
19575 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
19582 if test -n "$GSSGLUE_LIBS"; then
19583 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
19584 elif test -n "$PKG_CONFIG"; then
19585 if test -n "$PKG_CONFIG" && \
19586 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
19587 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
19589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; then
19591 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
19601 if test $pkg_failed = yes; then
19603 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19604 _pkg_short_errors_supported=yes
19606 _pkg_short_errors_supported=no
19608 if test $_pkg_short_errors_supported = yes; then
19609 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
19611 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
19613 # Put the nasty error message in config.log where it belongs
19614 echo "$GSSGLUE_PKG_ERRORS" >&5
19616 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
19618 $GSSGLUE_PKG_ERRORS
19620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19621 installed software in a non-standard prefix.
19623 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19624 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19625 See the pkg-config man page for more details.
19627 $as_echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
19629 $GSSGLUE_PKG_ERRORS
19631 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19632 installed software in a non-standard prefix.
19634 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19635 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19636 See the pkg-config man page for more details.
19638 { (exit 1); exit 1; }; }
19639 elif test $pkg_failed = untried; then
19640 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19642 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19643 is in your PATH or set the PKG_CONFIG environment variable to the full
19644 path to pkg-config.
19646 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19647 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19648 See the pkg-config man page for more details.
19650 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19651 See \`config.log' for more details." >&5
19652 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19653 is in your PATH or set the PKG_CONFIG environment variable to the full
19654 path to pkg-config.
19656 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
19657 and GSSGLUE_LIBS to avoid the need to call pkg-config.
19658 See the pkg-config man page for more details.
19660 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19661 See \`config.log' for more details." >&2;}
19662 { (exit 1); exit 1; }; }; }
19664 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
19665 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
19666 { $as_echo "$as_me:$LINENO: result: yes" >&5
19667 $as_echo "yes" >&6; }
19671 if test "$enable_tirpc" = no; then
19674 { $as_echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
19675 $as_echo_n "checking for RPCSECGSS... " >&6; }
19677 if test -n "$RPCSECGSS_CFLAGS"; then
19678 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
19679 elif test -n "$PKG_CONFIG"; then
19680 if test -n "$PKG_CONFIG" && \
19681 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
19682 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; then
19686 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
19693 if test -n "$RPCSECGSS_LIBS"; then
19694 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
19695 elif test -n "$PKG_CONFIG"; then
19696 if test -n "$PKG_CONFIG" && \
19697 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
19698 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
19700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; then
19702 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
19712 if test $pkg_failed = yes; then
19714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19715 _pkg_short_errors_supported=yes
19717 _pkg_short_errors_supported=no
19719 if test $_pkg_short_errors_supported = yes; then
19720 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
19722 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
19724 # Put the nasty error message in config.log where it belongs
19725 echo "$RPCSECGSS_PKG_ERRORS" >&5
19727 { { $as_echo "$as_me:$LINENO: error: Package requirements (librpcsecgss >= 0.16) were not met:
19729 $RPCSECGSS_PKG_ERRORS
19731 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19732 installed software in a non-standard prefix.
19734 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19735 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19736 See the pkg-config man page for more details.
19738 $as_echo "$as_me: error: Package requirements (librpcsecgss >= 0.16) were not met:
19740 $RPCSECGSS_PKG_ERRORS
19742 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19743 installed software in a non-standard prefix.
19745 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19746 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19747 See the pkg-config man page for more details.
19749 { (exit 1); exit 1; }; }
19750 elif test $pkg_failed = untried; then
19751 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19753 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19754 is in your PATH or set the PKG_CONFIG environment variable to the full
19755 path to pkg-config.
19757 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19758 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19759 See the pkg-config man page for more details.
19761 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19762 See \`config.log' for more details." >&5
19763 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19764 is in your PATH or set the PKG_CONFIG environment variable to the full
19765 path to pkg-config.
19767 Alternatively, you may set the environment variables RPCSECGSS_CFLAGS
19768 and RPCSECGSS_LIBS to avoid the need to call pkg-config.
19769 See the pkg-config man page for more details.
19771 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19772 See \`config.log' for more details." >&2;}
19773 { (exit 1); exit 1; }; }; }
19775 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
19776 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
19777 { $as_echo "$as_me:$LINENO: result: yes" >&5
19778 $as_echo "yes" >&6; }
19787 if test "$knfsd_cv_glibc2" = no; then
19788 { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19789 $as_echo_n "checking for daemon in -lbsd... " >&6; }
19790 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19791 $as_echo_n "(cached) " >&6
19793 ac_check_lib_save_LIBS=$LIBS
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19802 /* Override any GCC internal prototype to avoid an error.
19803 Use char because int might match the return type of a GCC
19804 builtin and then its argument prototype would still apply. */
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19824 $as_echo "$ac_try_echo") >&5
19825 (eval "$ac_link") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } && {
19832 test -z "$ac_c_werror_flag" ||
19833 test ! -s conftest.err
19834 } && test -s conftest$ac_exeext && {
19835 test "$cross_compiling" = yes ||
19836 $as_test_x conftest$ac_exeext
19838 ac_cv_lib_bsd_daemon=yes
19840 $as_echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19843 ac_cv_lib_bsd_daemon=no
19846 rm -rf conftest.dSYM
19847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19848 conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_check_lib_save_LIBS
19851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19852 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
19853 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then
19859 if test "$choose_blkid" != no; then
19860 { $as_echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
19861 $as_echo_n "checking for blkid_get_library_version in -lblkid... " >&6; }
19862 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
19863 $as_echo_n "(cached) " >&6
19865 ac_check_lib_save_LIBS=$LIBS
19866 LIBS="-lblkid $LIBS"
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19874 /* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19880 char blkid_get_library_version ();
19884 return blkid_get_library_version ();
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19896 $as_echo "$ac_try_echo") >&5
19897 (eval "$ac_link") 2>conftest.er1
19899 grep -v '^ *+' conftest.er1 >conftest.err
19901 cat conftest.err >&5
19902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } && {
19904 test -z "$ac_c_werror_flag" ||
19905 test ! -s conftest.err
19906 } && test -s conftest$ac_exeext && {
19907 test "$cross_compiling" = yes ||
19908 $as_test_x conftest$ac_exeext
19910 ac_cv_lib_blkid_blkid_get_library_version=yes
19912 $as_echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_cv_lib_blkid_blkid_get_library_version=no
19918 rm -rf conftest.dSYM
19919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19920 conftest$ac_exeext conftest.$ac_ext
19921 LIBS=$ac_check_lib_save_LIBS
19923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
19924 $as_echo "$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
19925 if test "x$ac_cv_lib_blkid_blkid_get_library_version" = x""yes; then
19928 { { $as_echo "$as_me:$LINENO: error: libblkid needed" >&5
19929 $as_echo "$as_me: error: libblkid needed" >&2;}
19930 { (exit 1); exit 1; }; }
19933 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
19934 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
19935 $as_echo_n "checking for blkid/blkid.h... " >&6; }
19936 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
19937 $as_echo_n "(cached) " >&6
19939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
19940 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
19942 # Is the header compilable?
19943 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
19944 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 $ac_includes_default
19952 #include <blkid/blkid.h>
19954 rm -f conftest.$ac_objext
19955 if { (ac_try="$ac_compile"
19956 case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19961 $as_echo "$ac_try_echo") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.$ac_objext; then
19972 ac_header_compiler=yes
19974 $as_echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_header_compiler=no
19980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19981 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19982 $as_echo "$ac_header_compiler" >&6; }
19984 # Is the header present?
19985 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
19986 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
19987 cat >conftest.$ac_ext <<_ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993 #include <blkid/blkid.h>
19995 if { (ac_try="$ac_cpp conftest.$ac_ext"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20001 $as_echo "$ac_try_echo") >&5
20002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20004 grep -v '^ *+' conftest.er1 >conftest.err
20006 cat conftest.err >&5
20007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } >/dev/null && {
20009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20012 ac_header_preproc=yes
20014 $as_echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_header_preproc=no
20020 rm -f conftest.err conftest.$ac_ext
20021 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20022 $as_echo "$ac_header_preproc" >&6; }
20024 # So? What about this header?
20025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20027 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20028 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20029 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
20030 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
20031 ac_header_preproc=yes
20034 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
20035 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
20036 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
20037 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
20038 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
20039 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
20040 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
20041 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
20042 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
20043 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
20044 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
20045 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
20047 ## ---------------------------------------- ##
20048 ## Report this to linux-nfs@vger.kernel.org ##
20049 ## ---------------------------------------- ##
20051 ) | sed "s/^/$as_me: WARNING: /" >&2
20054 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
20055 $as_echo_n "checking for blkid/blkid.h... " >&6; }
20056 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
20057 $as_echo_n "(cached) " >&6
20059 ac_cv_header_blkid_blkid_h=$ac_header_preproc
20061 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
20062 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
20065 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
20068 { { $as_echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
20069 $as_echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
20070 { (exit 1); exit 1; }; }
20075 { $as_echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
20076 $as_echo_n "checking for suitable libblkid version... " >&6; }
20077 if test "${libblkid_cv_is_recent+set}" = set; then
20078 $as_echo_n "(cached) " >&6
20083 if test "$cross_compiling" = yes; then
20084 libblkid_cv_is_recent=unknown
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20093 #include <blkid/blkid.h>
20096 int vers = blkid_get_library_version(0, 0);
20097 return vers >= 140 ? 0 : 1;
20101 rm -f conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20108 $as_echo "$ac_try_echo") >&5
20109 (eval "$ac_link") 2>&5
20111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20118 $as_echo "$ac_try_echo") >&5
20119 (eval "$ac_try") 2>&5
20121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 libblkid_cv_is_recent=yes
20125 $as_echo "$as_me: program exited with status $ac_status" >&5
20126 $as_echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ( exit $ac_status )
20130 libblkid_cv_is_recent=no
20132 rm -rf conftest.dSYM
20133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20140 { $as_echo "$as_me:$LINENO: result: $libblkid_cv_is_recent" >&5
20141 $as_echo "$libblkid_cv_is_recent" >&6; }
20143 if test $choose_blkid = yes; then
20145 test $libblkid_cv_is_recent = no && { $as_echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
20146 $as_echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
20148 if test $libblkid_cv_is_recent = yes
20151 { $as_echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
20152 $as_echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
20156 cat >>confdefs.h <<_ACEOF
20157 #define USE_BLKID $use_blkid
20166 if test "$enable_gss" = yes; then
20167 { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
20168 $as_echo_n "checking for getnameinfo... " >&6; }
20169 if test "${ac_cv_func_getnameinfo+set}" = set; then
20170 $as_echo_n "(cached) " >&6
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
20179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20180 #define getnameinfo innocuous_getnameinfo
20182 /* System header to define __stub macros and hopefully few prototypes,
20183 which can conflict with char getnameinfo (); below.
20184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185 <limits.h> exists even on freestanding compilers. */
20188 # include <limits.h>
20190 # include <assert.h>
20195 /* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20201 char getnameinfo ();
20202 /* The GNU C library defines this for functions which it implements
20203 to always fail with ENOSYS. Some functions are actually named
20204 something starting with __ and the normal name is an alias. */
20205 #if defined __stub_getnameinfo || defined __stub___getnameinfo
20212 return getnameinfo ();
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (ac_try="$ac_link"
20219 case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20224 $as_echo "$ac_try_echo") >&5
20225 (eval "$ac_link") 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest$ac_exeext && {
20235 test "$cross_compiling" = yes ||
20236 $as_test_x conftest$ac_exeext
20238 ac_cv_func_getnameinfo=yes
20240 $as_echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_func_getnameinfo=no
20246 rm -rf conftest.dSYM
20247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248 conftest$ac_exeext conftest.$ac_ext
20250 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
20251 $as_echo "$ac_cv_func_getnameinfo" >&6; }
20252 if test "x$ac_cv_func_getnameinfo" = x""yes; then
20255 { { $as_echo "$as_me:$LINENO: error: GSSAPI support requires 'getnameinfo' function" >&5
20256 $as_echo "$as_me: error: GSSAPI support requires 'getnameinfo' function" >&2;}
20257 { (exit 1); exit 1; }; }
20263 { $as_echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20264 $as_echo_n "checking for nfs4_init_name_mapping in -lnfsidmap... " >&6; }
20265 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20268 ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lnfsidmap $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20283 char nfs4_init_name_mapping ();
20287 return nfs4_init_name_mapping ();
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_link") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest$ac_exeext && {
20310 test "$cross_compiling" = yes ||
20311 $as_test_x conftest$ac_exeext
20313 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20315 $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20321 rm -rf conftest.dSYM
20322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20327 $as_echo "$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
20328 if test "x$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" = x""yes; then
20331 { { $as_echo "$as_me:$LINENO: error: libnfsidmap not found." >&5
20332 $as_echo "$as_me: error: libnfsidmap not found." >&2;}
20333 { (exit 1); exit 1; }; }
20338 for ac_header in nfsidmap.h
20340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20343 $as_echo_n "checking for $ac_header... " >&6; }
20344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20345 $as_echo_n "(cached) " >&6
20347 ac_res=`eval 'as_val=${'$as_ac_Header'}
20348 $as_echo "$as_val"'`
20349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20350 $as_echo "$ac_res" >&6; }
20352 # Is the header compilable?
20353 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20354 $as_echo_n "checking $ac_header usability... " >&6; }
20355 cat >conftest.$ac_ext <<_ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361 $ac_includes_default
20362 #include <$ac_header>
20364 rm -f conftest.$ac_objext
20365 if { (ac_try="$ac_compile"
20366 case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20371 $as_echo "$ac_try_echo") >&5
20372 (eval "$ac_compile") 2>conftest.er1
20374 grep -v '^ *+' conftest.er1 >conftest.err
20376 cat conftest.err >&5
20377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && {
20379 test -z "$ac_c_werror_flag" ||
20380 test ! -s conftest.err
20381 } && test -s conftest.$ac_objext; then
20382 ac_header_compiler=yes
20384 $as_echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_header_compiler=no
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20392 $as_echo "$ac_header_compiler" >&6; }
20394 # Is the header present?
20395 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20396 $as_echo_n "checking $ac_header presence... " >&6; }
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 #include <$ac_header>
20405 if { (ac_try="$ac_cpp conftest.$ac_ext"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20411 $as_echo "$ac_try_echo") >&5
20412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } >/dev/null && {
20419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20422 ac_header_preproc=yes
20424 $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_header_preproc=no
20430 rm -f conftest.err conftest.$ac_ext
20431 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432 $as_echo "$ac_header_preproc" >&6; }
20434 # So? What about this header?
20435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20438 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20440 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20441 ac_header_preproc=yes
20444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20445 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20447 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20449 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20451 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20453 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20455 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20457 ## ---------------------------------------- ##
20458 ## Report this to linux-nfs@vger.kernel.org ##
20459 ## ---------------------------------------- ##
20461 ) | sed "s/^/$as_me: WARNING: /" >&2
20464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20465 $as_echo_n "checking for $ac_header... " >&6; }
20466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20467 $as_echo_n "(cached) " >&6
20469 eval "$as_ac_Header=\$ac_header_preproc"
20471 ac_res=`eval 'as_val=${'$as_ac_Header'}
20472 $as_echo "$as_val"'`
20473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20474 $as_echo "$ac_res" >&6; }
20477 as_val=`eval 'as_val=${'$as_ac_Header'}
20478 $as_echo "$as_val"'`
20479 if test "x$as_val" = x""yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20485 { { $as_echo "$as_me:$LINENO: error: libnfsidmap headers not found." >&5
20486 $as_echo "$as_me: error: libnfsidmap headers not found." >&2;}
20487 { (exit 1); exit 1; }; }
20493 { $as_echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
20494 $as_echo_n "checking for nfs4_set_debug in -lnfsidmap... " >&6; }
20495 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
20496 $as_echo_n "(cached) " >&6
20498 ac_check_lib_save_LIBS=$LIBS
20499 LIBS="-lnfsidmap $LIBS"
20500 cat >conftest.$ac_ext <<_ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20507 /* Override any GCC internal prototype to avoid an error.
20508 Use char because int might match the return type of a GCC
20509 builtin and then its argument prototype would still apply. */
20513 char nfs4_set_debug ();
20517 return nfs4_set_debug ();
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529 $as_echo "$ac_try_echo") >&5
20530 (eval "$ac_link") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1 >conftest.err
20534 cat conftest.err >&5
20535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } && {
20537 test -z "$ac_c_werror_flag" ||
20538 test ! -s conftest.err
20539 } && test -s conftest$ac_exeext && {
20540 test "$cross_compiling" = yes ||
20541 $as_test_x conftest$ac_exeext
20543 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
20545 $as_echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 ac_cv_lib_nfsidmap_nfs4_set_debug=no
20551 rm -rf conftest.dSYM
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
20557 $as_echo "$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
20558 if test "x$ac_cv_lib_nfsidmap_nfs4_set_debug" = x""yes; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define HAVE_NFS4_SET_DEBUG 1
20570 for ac_header in spkm3.h
20572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 $as_echo_n "checking for $ac_header... " >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20577 $as_echo_n "(cached) " >&6
20579 ac_res=`eval 'as_val=${'$as_ac_Header'}
20580 $as_echo "$as_val"'`
20581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20582 $as_echo "$ac_res" >&6; }
20584 # Is the header compilable?
20585 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20586 $as_echo_n "checking $ac_header usability... " >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 $ac_includes_default
20594 #include <$ac_header>
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20603 $as_echo "$ac_try_echo") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20614 ac_header_compiler=yes
20616 $as_echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 ac_header_compiler=no
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20624 $as_echo "$ac_header_compiler" >&6; }
20626 # Is the header present?
20627 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20628 $as_echo_n "checking $ac_header presence... " >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <$ac_header>
20637 if { (ac_try="$ac_cpp conftest.$ac_ext"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } >/dev/null && {
20651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20654 ac_header_preproc=yes
20656 $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_header_preproc=no
20662 rm -f conftest.err conftest.$ac_ext
20663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20664 $as_echo "$ac_header_preproc" >&6; }
20666 # So? What about this header?
20667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20670 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20673 ac_header_preproc=yes
20676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20677 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20679 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20683 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20687 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20689 ## ---------------------------------------- ##
20690 ## Report this to linux-nfs@vger.kernel.org ##
20691 ## ---------------------------------------- ##
20693 ) | sed "s/^/$as_me: WARNING: /" >&2
20696 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20697 $as_echo_n "checking for $ac_header... " >&6; }
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699 $as_echo_n "(cached) " >&6
20701 eval "$as_ac_Header=\$ac_header_preproc"
20703 ac_res=`eval 'as_val=${'$as_ac_Header'}
20704 $as_echo "$as_val"'`
20705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20706 $as_echo "$ac_res" >&6; }
20709 as_val=`eval 'as_val=${'$as_ac_Header'}
20710 $as_echo "$as_val"'`
20711 if test "x$as_val" = x""yes; then
20712 cat >>confdefs.h <<_ACEOF
20713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20717 { $as_echo "$as_me:$LINENO: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&5
20718 $as_echo "$as_me: WARNING: Could not locate SPKM3 header; will not have SPKM3 support" >&2;}
20725 { $as_echo "$as_me:$LINENO: checking for Kerberos v5" >&5
20726 $as_echo_n "checking for Kerberos v5... " >&6; }
20728 # Check whether --with-krb5 was given.
20729 if test "${with_krb5+set}" = set; then
20730 withval=$with_krb5; case "$withval" in
20735 krb5_with="$withval"
20742 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
20743 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
20745 if test -f $dir/bin/krb5-config; then
20746 K5CONFIG=$dir/bin/krb5-config
20747 elif test -f "/usr/kerberos/bin/krb5-config"; then
20748 K5CONFIG="/usr/kerberos/bin/krb5-config"
20749 elif test -f "/usr/lib/mit/bin/krb5-config"; then
20750 K5CONFIG="/usr/lib/mit/bin/krb5-config"
20752 if test "$K5CONFIG" != ""; then
20753 KRBCFLAGS=`$K5CONFIG --cflags`
20754 KRBLIBS=`$K5CONFIG --libs gssapi`
20755 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
20757 cat >>confdefs.h <<_ACEOF
20758 #define KRB5_VERSION $K5VERS
20761 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
20762 \( -f $dir/lib/libgssapi_krb5.a -o \
20763 -f $dir/lib64/libgssapi_krb5.a -o \
20764 -f $dir/lib64/libgssapi_krb5.so -o \
20765 -f $dir/lib/libgssapi_krb5.so \) ; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_KRB5 1
20772 if test $K5VERS -le 131; then
20774 cat >>confdefs.h <<\_ACEOF
20775 #define USE_GSS_KRB5_CCACHE_NAME 1
20779 gssapi_lib=gssapi_krb5
20781 elif test \( -f $dir/include/heim_err.h -o\
20782 -f $dir/include/heimdal/heim_err.h \) -a \
20783 -f $dir/lib/libroken.a; then
20785 cat >>confdefs.h <<\_ACEOF
20786 #define HAVE_HEIMDAL 1
20795 if test "x$KRBDIR" = "x"; then
20796 if test "x$krb5_with" = "x"; then
20797 { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
20798 $as_echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
20799 { (exit 1); exit 1; }; }
20801 { { $as_echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
20802 $as_echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
20803 { (exit 1); exit 1; }; }
20806 { $as_echo "$as_me:$LINENO: result: $KRBDIR" >&5
20807 $as_echo "$KRBDIR" >&6; }
20809 echo "The current KRBDIR is $KRBDIR"
20810 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
20811 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
20813 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
20816 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
20819 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
20820 { $as_echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
20821 $as_echo_n "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... " >&6; }
20822 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20823 $as_echo_n "(cached) " >&6
20825 ac_check_lib_save_LIBS=$LIBS
20826 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20834 /* Override any GCC internal prototype to avoid an error.
20835 Use char because int might match the return type of a GCC
20836 builtin and then its argument prototype would still apply. */
20840 char gss_krb5_export_lucid_sec_context ();
20844 return gss_krb5_export_lucid_sec_context ();
20849 rm -f conftest.$ac_objext conftest$ac_exeext
20850 if { (ac_try="$ac_link"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20856 $as_echo "$ac_try_echo") >&5
20857 (eval "$ac_link") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest$ac_exeext && {
20867 test "$cross_compiling" = yes ||
20868 $as_test_x conftest$ac_exeext
20870 eval "$as_ac_Lib=yes"
20872 $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 eval "$as_ac_Lib=no"
20878 rm -rf conftest.dSYM
20879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20880 conftest$ac_exeext conftest.$ac_ext
20881 LIBS=$ac_check_lib_save_LIBS
20883 ac_res=`eval 'as_val=${'$as_ac_Lib'}
20884 $as_echo "$as_val"'`
20885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20886 $as_echo "$ac_res" >&6; }
20887 as_val=`eval 'as_val=${'$as_ac_Lib'}
20888 $as_echo "$as_val"'`
20889 if test "x$as_val" = x""yes; then
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_LUCID_CONTEXT_SUPPORT 1
20897 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
20898 { $as_echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
20899 $as_echo_n "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... " >&6; }
20900 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20901 $as_echo_n "(cached) " >&6
20903 ac_check_lib_save_LIBS=$LIBS
20904 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20912 /* Override any GCC internal prototype to avoid an error.
20913 Use char because int might match the return type of a GCC
20914 builtin and then its argument prototype would still apply. */
20918 char gss_krb5_set_allowable_enctypes ();
20922 return gss_krb5_set_allowable_enctypes ();
20927 rm -f conftest.$ac_objext conftest$ac_exeext
20928 if { (ac_try="$ac_link"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20934 $as_echo "$ac_try_echo") >&5
20935 (eval "$ac_link") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } && {
20942 test -z "$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 } && test -s conftest$ac_exeext && {
20945 test "$cross_compiling" = yes ||
20946 $as_test_x conftest$ac_exeext
20948 eval "$as_ac_Lib=yes"
20950 $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 eval "$as_ac_Lib=no"
20956 rm -rf conftest.dSYM
20957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20958 conftest$ac_exeext conftest.$ac_ext
20959 LIBS=$ac_check_lib_save_LIBS
20961 ac_res=`eval 'as_val=${'$as_ac_Lib'}
20962 $as_echo "$as_val"'`
20963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20964 $as_echo "$ac_res" >&6; }
20965 as_val=`eval 'as_val=${'$as_ac_Lib'}
20966 $as_echo "$as_val"'`
20967 if test "x$as_val" = x""yes; then
20969 cat >>confdefs.h <<\_ACEOF
20970 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
20975 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
20976 { $as_echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
20977 $as_echo_n "checking for gss_krb5_ccache_name in -l$gssapi_lib... " >&6; }
20978 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20979 $as_echo_n "(cached) " >&6
20981 ac_check_lib_save_LIBS=$LIBS
20982 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20990 /* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
20996 char gss_krb5_ccache_name ();
21000 return gss_krb5_ccache_name ();
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21012 $as_echo "$ac_try_echo") >&5
21013 (eval "$ac_link") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest$ac_exeext && {
21023 test "$cross_compiling" = yes ||
21024 $as_test_x conftest$ac_exeext
21026 eval "$as_ac_Lib=yes"
21028 $as_echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 eval "$as_ac_Lib=no"
21034 rm -rf conftest.dSYM
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21039 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21040 $as_echo "$as_val"'`
21041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21042 $as_echo "$ac_res" >&6; }
21043 as_val=`eval 'as_val=${'$as_ac_Lib'}
21044 $as_echo "$as_val"'`
21045 if test "x$as_val" = x""yes; then
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21054 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
21055 { $as_echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
21056 $as_echo_n "checking for krb5_get_error_message in -l$gssapi_lib... " >&6; }
21057 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21058 $as_echo_n "(cached) " >&6
21060 ac_check_lib_save_LIBS=$LIBS
21061 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21062 cat >conftest.$ac_ext <<_ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21069 /* Override any GCC internal prototype to avoid an error.
21070 Use char because int might match the return type of a GCC
21071 builtin and then its argument prototype would still apply. */
21075 char krb5_get_error_message ();
21079 return krb5_get_error_message ();
21084 rm -f conftest.$ac_objext conftest$ac_exeext
21085 if { (ac_try="$ac_link"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21091 $as_echo "$ac_try_echo") >&5
21092 (eval "$ac_link") 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } && {
21099 test -z "$ac_c_werror_flag" ||
21100 test ! -s conftest.err
21101 } && test -s conftest$ac_exeext && {
21102 test "$cross_compiling" = yes ||
21103 $as_test_x conftest$ac_exeext
21105 eval "$as_ac_Lib=yes"
21107 $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 eval "$as_ac_Lib=no"
21113 rm -rf conftest.dSYM
21114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21115 conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21118 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21119 $as_echo "$as_val"'`
21120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21121 $as_echo "$ac_res" >&6; }
21122 as_val=`eval 'as_val=${'$as_ac_Lib'}
21123 $as_echo "$as_val"'`
21124 if test "x$as_val" = x""yes; then
21126 cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
21133 as_ac_Lib=`$as_echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
21134 { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
21135 $as_echo_n "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... " >&6; }
21136 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21137 $as_echo_n "(cached) " >&6
21139 ac_check_lib_save_LIBS=$LIBS
21140 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21148 /* Override any GCC internal prototype to avoid an error.
21149 Use char because int might match the return type of a GCC
21150 builtin and then its argument prototype would still apply. */
21154 char krb5_get_init_creds_opt_set_addressless ();
21158 return krb5_get_init_creds_opt_set_addressless ();
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171 (eval "$ac_link") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest$ac_exeext && {
21181 test "$cross_compiling" = yes ||
21182 $as_test_x conftest$ac_exeext
21184 eval "$as_ac_Lib=yes"
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 eval "$as_ac_Lib=no"
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21195 LIBS=$ac_check_lib_save_LIBS
21197 ac_res=`eval 'as_val=${'$as_ac_Lib'}
21198 $as_echo "$as_val"'`
21199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21200 $as_echo "$ac_res" >&6; }
21201 as_val=`eval 'as_val=${'$as_ac_Lib'}
21202 $as_echo "$as_val"'`
21203 if test "x$as_val" = x""yes; then
21205 cat >>confdefs.h <<\_ACEOF
21206 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
21212 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21213 { $as_echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21214 $as_echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21227 if test "$enable_tirpc" = no; then
21229 { $as_echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21230 $as_echo_n "checking for authgss_create_default in -lrpcsecgss... " >&6; }
21231 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21232 $as_echo_n "(cached) " >&6
21234 ac_check_lib_save_LIBS=$LIBS
21235 LIBS="-lrpcsecgss $LIBS"
21236 cat >conftest.$ac_ext <<_ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21243 /* Override any GCC internal prototype to avoid an error.
21244 Use char because int might match the return type of a GCC
21245 builtin and then its argument prototype would still apply. */
21249 char authgss_create_default ();
21253 return authgss_create_default ();
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (ac_try="$ac_link"
21260 case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21265 $as_echo "$ac_try_echo") >&5
21266 (eval "$ac_link") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1 >conftest.err
21270 cat conftest.err >&5
21271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest$ac_exeext && {
21276 test "$cross_compiling" = yes ||
21277 $as_test_x conftest$ac_exeext
21279 ac_cv_lib_rpcsecgss_authgss_create_default=yes
21281 $as_echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_cv_lib_rpcsecgss_authgss_create_default=no
21287 rm -rf conftest.dSYM
21288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21289 conftest$ac_exeext conftest.$ac_ext
21290 LIBS=$ac_check_lib_save_LIBS
21292 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21293 $as_echo "$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
21294 if test "x$ac_cv_lib_rpcsecgss_authgss_create_default" = x""yes; then
21297 { { $as_echo "$as_me:$LINENO: error: librpcsecgss not found." >&5
21298 $as_echo "$as_me: error: librpcsecgss not found." >&2;}
21299 { (exit 1); exit 1; }; }
21303 { $as_echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21304 $as_echo_n "checking for authgss_set_debug_level in -lrpcsecgss... " >&6; }
21305 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21306 $as_echo_n "(cached) " >&6
21308 ac_check_lib_save_LIBS=$LIBS
21309 LIBS="-lrpcsecgss $LIBS"
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21323 char authgss_set_debug_level ();
21327 return authgss_set_debug_level ();
21332 rm -f conftest.$ac_objext conftest$ac_exeext
21333 if { (ac_try="$ac_link"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21339 $as_echo "$ac_try_echo") >&5
21340 (eval "$ac_link") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1 >conftest.err
21344 cat conftest.err >&5
21345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest$ac_exeext && {
21350 test "$cross_compiling" = yes ||
21351 $as_test_x conftest$ac_exeext
21353 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21355 $as_echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21358 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21361 rm -rf conftest.dSYM
21362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21363 conftest$ac_exeext conftest.$ac_ext
21364 LIBS=$ac_check_lib_save_LIBS
21366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21367 $as_echo "$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
21368 if test "x$ac_cv_lib_rpcsecgss_authgss_set_debug_level" = x""yes; then
21370 cat >>confdefs.h <<\_ACEOF
21371 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21385 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21386 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21387 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21388 $as_echo_n "(cached) " >&6
21390 cat >conftest.$ac_ext <<_ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21401 #ifndef AI_ADDRCONFIG
21402 (void) AI_ADDRCONFIG;
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416 $as_echo "$ac_try_echo") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21427 ac_cv_have_decl_AI_ADDRCONFIG=yes
21429 $as_echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_cv_have_decl_AI_ADDRCONFIG=no
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21437 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21438 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21439 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21441 cat >>confdefs.h <<\_ACEOF
21442 #define HAVE_DECL_AI_ADDRCONFIG 1
21448 if test "$enable_ipv6" = yes; then
21450 if test "$enable_tirpc" = no; then
21451 { { $as_echo "$as_me:$LINENO: error: '--enable-ipv6' requires TIRPC support." >&5
21452 $as_echo "$as_me: error: '--enable-ipv6' requires TIRPC support." >&2;}
21453 { (exit 1); exit 1; }; }
21458 for ac_func in getnameinfo bindresvport_sa
21460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21461 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21462 $as_echo_n "checking for $ac_func... " >&6; }
21463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21464 $as_echo_n "(cached) " >&6
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21474 #define $ac_func innocuous_$ac_func
21476 /* System header to define __stub macros and hopefully few prototypes,
21477 which can conflict with char $ac_func (); below.
21478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21479 <limits.h> exists even on freestanding compilers. */
21482 # include <limits.h>
21484 # include <assert.h>
21489 /* Override any GCC internal prototype to avoid an error.
21490 Use char because int might match the return type of a GCC
21491 builtin and then its argument prototype would still apply. */
21496 /* The GNU C library defines this for functions which it implements
21497 to always fail with ENOSYS. Some functions are actually named
21498 something starting with __ and the normal name is an alias. */
21499 #if defined __stub_$ac_func || defined __stub___$ac_func
21506 return $ac_func ();
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21518 $as_echo "$ac_try_echo") >&5
21519 (eval "$ac_link") 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest$ac_exeext && {
21529 test "$cross_compiling" = yes ||
21530 $as_test_x conftest$ac_exeext
21532 eval "$as_ac_var=yes"
21534 $as_echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 eval "$as_ac_var=no"
21540 rm -rf conftest.dSYM
21541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21542 conftest$ac_exeext conftest.$ac_ext
21544 ac_res=`eval 'as_val=${'$as_ac_var'}
21545 $as_echo "$as_val"'`
21546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21547 $as_echo "$ac_res" >&6; }
21548 as_val=`eval 'as_val=${'$as_ac_var'}
21549 $as_echo "$as_val"'`
21550 if test "x$as_val" = x""yes; then
21551 cat >>confdefs.h <<_ACEOF
21552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21556 { { $as_echo "$as_me:$LINENO: error: Missing functions needed for IPv6." >&5
21557 $as_echo "$as_me: error: Missing functions needed for IPv6." >&2;}
21558 { (exit 1); exit 1; }; }
21563 { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
21564 $as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
21565 if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
21566 $as_echo_n "(cached) " >&6
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21579 #ifndef AI_ADDRCONFIG
21580 (void) AI_ADDRCONFIG;
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21594 $as_echo "$ac_try_echo") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21605 ac_cv_have_decl_AI_ADDRCONFIG=yes
21607 $as_echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_cv_have_decl_AI_ADDRCONFIG=no
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
21616 $as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
21617 if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
21620 { { $as_echo "$as_me:$LINENO: error: full getaddrinfo(3) implementation needed for IPv6 support" >&5
21621 $as_echo "$as_me: error: full getaddrinfo(3) implementation needed for IPv6 support" >&2;}
21622 { (exit 1); exit 1; }; }
21653 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21654 malloc.h memory.h netdb.h netinet/in.h paths.h \
21655 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21656 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21657 syslog.h unistd.h com_err.h et/com_err.h \
21660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21663 $as_echo_n "checking for $ac_header... " >&6; }
21664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21665 $as_echo_n "(cached) " >&6
21667 ac_res=`eval 'as_val=${'$as_ac_Header'}
21668 $as_echo "$as_val"'`
21669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21670 $as_echo "$ac_res" >&6; }
21672 # Is the header compilable?
21673 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674 $as_echo_n "checking $ac_header usability... " >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 #include <$ac_header>
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21702 ac_header_compiler=yes
21704 $as_echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ac_header_compiler=no
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21712 $as_echo "$ac_header_compiler" >&6; }
21714 # Is the header present?
21715 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21716 $as_echo_n "checking $ac_header presence... " >&6; }
21717 cat >conftest.$ac_ext <<_ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 #include <$ac_header>
21725 if { (ac_try="$ac_cpp conftest.$ac_ext"
21726 case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21731 $as_echo "$ac_try_echo") >&5
21732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21734 grep -v '^ *+' conftest.er1 >conftest.err
21736 cat conftest.err >&5
21737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } >/dev/null && {
21739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21740 test ! -s conftest.err
21742 ac_header_preproc=yes
21744 $as_echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 ac_header_preproc=no
21750 rm -f conftest.err conftest.$ac_ext
21751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21752 $as_echo "$ac_header_preproc" >&6; }
21754 # So? What about this header?
21755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21758 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21761 ac_header_preproc=yes
21764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21765 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21767 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21769 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21771 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21775 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21777 ## ---------------------------------------- ##
21778 ## Report this to linux-nfs@vger.kernel.org ##
21779 ## ---------------------------------------- ##
21781 ) | sed "s/^/$as_me: WARNING: /" >&2
21784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 $as_echo_n "checking for $ac_header... " >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787 $as_echo_n "(cached) " >&6
21789 eval "$as_ac_Header=\$ac_header_preproc"
21791 ac_res=`eval 'as_val=${'$as_ac_Header'}
21792 $as_echo "$as_val"'`
21793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21794 $as_echo "$ac_res" >&6; }
21797 as_val=`eval 'as_val=${'$as_ac_Header'}
21798 $as_echo "$as_val"'`
21799 if test "x$as_val" = x""yes; then
21800 cat >>confdefs.h <<_ACEOF
21801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21809 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21810 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21811 if test "${ac_cv_c_const+set}" = set; then
21812 $as_echo_n "(cached) " >&6
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21824 /* FIXME: Include the comments suggested by Paul. */
21825 #ifndef __cplusplus
21826 /* Ultrix mips cc rejects this. */
21827 typedef int charset[2];
21829 /* SunOS 4.1.1 cc rejects this. */
21830 char const *const *pcpcc;
21832 /* NEC SVR4.0.2 mips cc rejects this. */
21833 struct point {int x, y;};
21834 static struct point const zero = {0,0};
21835 /* AIX XL C 1.02.0.0 rejects this.
21836 It does not let you subtract one const X* pointer from another in
21837 an arm of an if-expression whose if-part is not a constant
21839 const char *g = "string";
21840 pcpcc = &g + (g ? g-g : 0);
21841 /* HPUX 7.0 cc rejects these. */
21843 ppc = (char**) pcpcc;
21844 pcpcc = (char const *const *) ppc;
21845 { /* SCO 3.2v4 cc rejects this. */
21847 char const *s = 0 ? (char *) 0 : (char const *) 0;
21852 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21853 int x[] = {25, 17};
21854 const int *foo = &x[0];
21857 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21858 typedef const int *iptr;
21862 { /* AIX XL C 1.02.0.0 rejects this saying
21863 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21864 struct s { int j; const int *ap[3]; };
21865 struct s *b; b->j = 5;
21867 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21868 const int foo = 10;
21869 if (!foo) return 0;
21871 return !cs[0] && !zero.x;
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21885 $as_echo "$ac_try_echo") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21898 $as_echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21907 $as_echo "$ac_cv_c_const" >&6; }
21908 if test $ac_cv_c_const = no; then
21910 cat >>confdefs.h <<\_ACEOF
21916 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21917 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21918 if test "${ac_cv_type_uid_t+set}" = set; then
21919 $as_echo_n "(cached) " >&6
21921 cat >conftest.$ac_ext <<_ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 #include <sys/types.h>
21930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21931 $EGREP "uid_t" >/dev/null 2>&1; then
21932 ac_cv_type_uid_t=yes
21934 ac_cv_type_uid_t=no
21939 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21940 $as_echo "$ac_cv_type_uid_t" >&6; }
21941 if test $ac_cv_type_uid_t = no; then
21943 cat >>confdefs.h <<\_ACEOF
21948 cat >>confdefs.h <<\_ACEOF
21954 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21955 $as_echo_n "checking for inline... " >&6; }
21956 if test "${ac_cv_c_inline+set}" = set; then
21957 $as_echo_n "(cached) " >&6
21960 for ac_kw in inline __inline__ __inline; do
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 #ifndef __cplusplus
21969 static $ac_kw foo_t static_foo () {return 0; }
21970 $ac_kw foo_t foo () {return 0; }
21974 rm -f conftest.$ac_objext
21975 if { (ac_try="$ac_compile"
21976 case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21981 $as_echo "$ac_try_echo") >&5
21982 (eval "$ac_compile") 2>conftest.er1
21984 grep -v '^ *+' conftest.er1 >conftest.err
21986 cat conftest.err >&5
21987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } && {
21989 test -z "$ac_c_werror_flag" ||
21990 test ! -s conftest.err
21991 } && test -s conftest.$ac_objext; then
21992 ac_cv_c_inline=$ac_kw
21994 $as_echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 test "$ac_cv_c_inline" != no && break
22005 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22006 $as_echo "$ac_cv_c_inline" >&6; }
22009 case $ac_cv_c_inline in
22012 case $ac_cv_c_inline in
22014 *) ac_val=$ac_cv_c_inline;;
22016 cat >>confdefs.h <<_ACEOF
22017 #ifndef __cplusplus
22018 #define inline $ac_val
22024 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
22025 $as_echo_n "checking for off_t... " >&6; }
22026 if test "${ac_cv_type_off_t+set}" = set; then
22027 $as_echo_n "(cached) " >&6
22029 ac_cv_type_off_t=no
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 $ac_includes_default
22040 if (sizeof (off_t))
22046 rm -f conftest.$ac_objext
22047 if { (ac_try="$ac_compile"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22053 $as_echo "$ac_try_echo") >&5
22054 (eval "$ac_compile") 2>conftest.er1
22056 grep -v '^ *+' conftest.er1 >conftest.err
22058 cat conftest.err >&5
22059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } && {
22061 test -z "$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 } && test -s conftest.$ac_objext; then
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 $ac_includes_default
22074 if (sizeof ((off_t)))
22080 rm -f conftest.$ac_objext
22081 if { (ac_try="$ac_compile"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22087 $as_echo "$ac_try_echo") >&5
22088 (eval "$ac_compile") 2>conftest.er1
22090 grep -v '^ *+' conftest.er1 >conftest.err
22092 cat conftest.err >&5
22093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && {
22095 test -z "$ac_c_werror_flag" ||
22096 test ! -s conftest.err
22097 } && test -s conftest.$ac_objext; then
22100 $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_cv_type_off_t=yes
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 $as_echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22117 $as_echo "$ac_cv_type_off_t" >&6; }
22118 if test "x$ac_cv_type_off_t" = x""yes; then
22122 cat >>confdefs.h <<_ACEOF
22123 #define off_t long int
22128 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
22129 $as_echo_n "checking for pid_t... " >&6; }
22130 if test "${ac_cv_type_pid_t+set}" = set; then
22131 $as_echo_n "(cached) " >&6
22133 ac_cv_type_pid_t=no
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22144 if (sizeof (pid_t))
22150 rm -f conftest.$ac_objext
22151 if { (ac_try="$ac_compile"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22157 $as_echo "$ac_try_echo") >&5
22158 (eval "$ac_compile") 2>conftest.er1
22160 grep -v '^ *+' conftest.er1 >conftest.err
22162 cat conftest.err >&5
22163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && {
22165 test -z "$ac_c_werror_flag" ||
22166 test ! -s conftest.err
22167 } && test -s conftest.$ac_objext; then
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 $ac_includes_default
22178 if (sizeof ((pid_t)))
22184 rm -f conftest.$ac_objext
22185 if { (ac_try="$ac_compile"
22186 case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22191 $as_echo "$ac_try_echo") >&5
22192 (eval "$ac_compile") 2>conftest.er1
22194 grep -v '^ *+' conftest.er1 >conftest.err
22196 cat conftest.err >&5
22197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } && {
22199 test -z "$ac_c_werror_flag" ||
22200 test ! -s conftest.err
22201 } && test -s conftest.$ac_objext; then
22204 $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 ac_cv_type_pid_t=yes
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212 $as_echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22221 $as_echo "$ac_cv_type_pid_t" >&6; }
22222 if test "x$ac_cv_type_pid_t" = x""yes; then
22226 cat >>confdefs.h <<_ACEOF
22232 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
22233 $as_echo_n "checking for size_t... " >&6; }
22234 if test "${ac_cv_type_size_t+set}" = set; then
22235 $as_echo_n "(cached) " >&6
22237 ac_cv_type_size_t=no
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 $ac_includes_default
22248 if (sizeof (size_t))
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22261 $as_echo "$ac_try_echo") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22272 cat >conftest.$ac_ext <<_ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278 $ac_includes_default
22282 if (sizeof ((size_t)))
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22308 $as_echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_cv_type_size_t=yes
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 $as_echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22325 $as_echo "$ac_cv_type_size_t" >&6; }
22326 if test "x$ac_cv_type_size_t" = x""yes; then
22330 cat >>confdefs.h <<_ACEOF
22331 #define size_t unsigned int
22336 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22337 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22338 if test "${ac_cv_header_time+set}" = set; then
22339 $as_echo_n "(cached) " >&6
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 #include <sys/types.h>
22348 #include <sys/time.h>
22354 if ((struct tm *) 0)
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367 $as_echo "$ac_try_echo") >&5
22368 (eval "$ac_compile") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest.$ac_objext; then
22378 ac_cv_header_time=yes
22380 $as_echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_cv_header_time=no
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22389 $as_echo "$ac_cv_header_time" >&6; }
22390 if test $ac_cv_header_time = yes; then
22392 cat >>confdefs.h <<\_ACEOF
22393 #define TIME_WITH_SYS_TIME 1
22398 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22399 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22400 if test "${ac_cv_struct_tm+set}" = set; then
22401 $as_echo_n "(cached) " >&6
22403 cat >conftest.$ac_ext <<_ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h. */
22409 #include <sys/types.h>
22416 int *p = &tm.tm_sec;
22422 rm -f conftest.$ac_objext
22423 if { (ac_try="$ac_compile"
22424 case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22429 $as_echo "$ac_try_echo") >&5
22430 (eval "$ac_compile") 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } && {
22437 test -z "$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 } && test -s conftest.$ac_objext; then
22440 ac_cv_struct_tm=time.h
22442 $as_echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_struct_tm=sys/time.h
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22451 $as_echo "$ac_cv_struct_tm" >&6; }
22452 if test $ac_cv_struct_tm = sys/time.h; then
22454 cat >>confdefs.h <<\_ACEOF
22455 #define TM_IN_SYS_TIME 1
22461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22462 # for constant arguments. Useless!
22463 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
22464 $as_echo_n "checking for working alloca.h... " >&6; }
22465 if test "${ac_cv_working_alloca_h+set}" = set; then
22466 $as_echo_n "(cached) " >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <alloca.h>
22478 char *p = (char *) alloca (2 * sizeof (int));
22484 rm -f conftest.$ac_objext conftest$ac_exeext
22485 if { (ac_try="$ac_link"
22486 case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22491 $as_echo "$ac_try_echo") >&5
22492 (eval "$ac_link") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest$ac_exeext && {
22502 test "$cross_compiling" = yes ||
22503 $as_test_x conftest$ac_exeext
22505 ac_cv_working_alloca_h=yes
22507 $as_echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22510 ac_cv_working_alloca_h=no
22513 rm -rf conftest.dSYM
22514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22515 conftest$ac_exeext conftest.$ac_ext
22517 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22518 $as_echo "$ac_cv_working_alloca_h" >&6; }
22519 if test $ac_cv_working_alloca_h = yes; then
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_ALLOCA_H 1
22527 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
22528 $as_echo_n "checking for alloca... " >&6; }
22529 if test "${ac_cv_func_alloca_works+set}" = set; then
22530 $as_echo_n "(cached) " >&6
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22539 # define alloca __builtin_alloca
22542 # include <malloc.h>
22543 # define alloca _alloca
22545 # ifdef HAVE_ALLOCA_H
22546 # include <alloca.h>
22551 # ifndef alloca /* predefined by HP cc +Olibcalls */
22562 char *p = (char *) alloca (1);
22568 rm -f conftest.$ac_objext conftest$ac_exeext
22569 if { (ac_try="$ac_link"
22570 case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22575 $as_echo "$ac_try_echo") >&5
22576 (eval "$ac_link") 2>conftest.er1
22578 grep -v '^ *+' conftest.er1 >conftest.err
22580 cat conftest.err >&5
22581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } && {
22583 test -z "$ac_c_werror_flag" ||
22584 test ! -s conftest.err
22585 } && test -s conftest$ac_exeext && {
22586 test "$cross_compiling" = yes ||
22587 $as_test_x conftest$ac_exeext
22589 ac_cv_func_alloca_works=yes
22591 $as_echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_cv_func_alloca_works=no
22597 rm -rf conftest.dSYM
22598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22599 conftest$ac_exeext conftest.$ac_ext
22601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22602 $as_echo "$ac_cv_func_alloca_works" >&6; }
22604 if test $ac_cv_func_alloca_works = yes; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_ALLOCA 1
22611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22612 # that cause trouble. Some versions do not even contain alloca or
22613 # contain a buggy version. If you still want to use their alloca,
22614 # use ar to extract alloca.o from them instead of compiling alloca.c.
22616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22618 cat >>confdefs.h <<\_ACEOF
22623 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22624 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22625 if test "${ac_cv_os_cray+set}" = set; then
22626 $as_echo_n "(cached) " >&6
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #if defined CRAY && ! defined CRAY2
22641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22642 $EGREP "webecray" >/dev/null 2>&1; then
22650 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22651 $as_echo "$ac_cv_os_cray" >&6; }
22652 if test $ac_cv_os_cray = yes; then
22653 for ac_func in _getb67 GETB67 getb67; do
22654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22656 $as_echo_n "checking for $ac_func... " >&6; }
22657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22658 $as_echo_n "(cached) " >&6
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22668 #define $ac_func innocuous_$ac_func
22670 /* System header to define __stub macros and hopefully few prototypes,
22671 which can conflict with char $ac_func (); below.
22672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22673 <limits.h> exists even on freestanding compilers. */
22676 # include <limits.h>
22678 # include <assert.h>
22683 /* Override any GCC internal prototype to avoid an error.
22684 Use char because int might match the return type of a GCC
22685 builtin and then its argument prototype would still apply. */
22690 /* The GNU C library defines this for functions which it implements
22691 to always fail with ENOSYS. Some functions are actually named
22692 something starting with __ and the normal name is an alias. */
22693 #if defined __stub_$ac_func || defined __stub___$ac_func
22700 return $ac_func ();
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (ac_try="$ac_link"
22707 case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22712 $as_echo "$ac_try_echo") >&5
22713 (eval "$ac_link") 2>conftest.er1
22715 grep -v '^ *+' conftest.er1 >conftest.err
22717 cat conftest.err >&5
22718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest$ac_exeext && {
22723 test "$cross_compiling" = yes ||
22724 $as_test_x conftest$ac_exeext
22726 eval "$as_ac_var=yes"
22728 $as_echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 eval "$as_ac_var=no"
22734 rm -rf conftest.dSYM
22735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736 conftest$ac_exeext conftest.$ac_ext
22738 ac_res=`eval 'as_val=${'$as_ac_var'}
22739 $as_echo "$as_val"'`
22740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22741 $as_echo "$ac_res" >&6; }
22742 as_val=`eval 'as_val=${'$as_ac_var'}
22743 $as_echo "$as_val"'`
22744 if test "x$as_val" = x""yes; then
22746 cat >>confdefs.h <<_ACEOF
22747 #define CRAY_STACKSEG_END $ac_func
22756 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22757 $as_echo_n "checking stack direction for C alloca... " >&6; }
22758 if test "${ac_cv_c_stack_direction+set}" = set; then
22759 $as_echo_n "(cached) " >&6
22761 if test "$cross_compiling" = yes; then
22762 ac_cv_c_stack_direction=0
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 $ac_includes_default
22772 find_stack_direction ()
22774 static char *addr = 0;
22779 return find_stack_direction ();
22782 return (&dummy > addr) ? 1 : -1;
22788 return find_stack_direction () < 0;
22791 rm -f conftest$ac_exeext
22792 if { (ac_try="$ac_link"
22793 case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22798 $as_echo "$ac_try_echo") >&5
22799 (eval "$ac_link") 2>&5
22801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809 (eval "$ac_try") 2>&5
22811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; }; then
22813 ac_cv_c_stack_direction=1
22815 $as_echo "$as_me: program exited with status $ac_status" >&5
22816 $as_echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ( exit $ac_status )
22820 ac_cv_c_stack_direction=-1
22822 rm -rf conftest.dSYM
22823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22828 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22829 $as_echo "$ac_cv_c_stack_direction" >&6; }
22831 cat >>confdefs.h <<_ACEOF
22832 #define STACK_DIRECTION $ac_cv_c_stack_direction
22843 ac_header_dirent=no
22844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22845 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22846 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22847 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22849 $as_echo_n "(cached) " >&6
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 #include <sys/types.h>
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22876 $as_echo "$ac_try_echo") >&5
22877 (eval "$ac_compile") 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest.$ac_objext; then
22887 eval "$as_ac_Header=yes"
22889 $as_echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22892 eval "$as_ac_Header=no"
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 ac_res=`eval 'as_val=${'$as_ac_Header'}
22898 $as_echo "$as_val"'`
22899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22900 $as_echo "$ac_res" >&6; }
22901 as_val=`eval 'as_val=${'$as_ac_Header'}
22902 $as_echo "$as_val"'`
22903 if test "x$as_val" = x""yes; then
22904 cat >>confdefs.h <<_ACEOF
22905 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22908 ac_header_dirent=$ac_hdr; break
22912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22913 if test $ac_header_dirent = dirent.h; then
22914 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22915 $as_echo_n "checking for library containing opendir... " >&6; }
22916 if test "${ac_cv_search_opendir+set}" = set; then
22917 $as_echo_n "(cached) " >&6
22919 ac_func_search_save_LIBS=$LIBS
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22927 /* Override any GCC internal prototype to avoid an error.
22928 Use char because int might match the return type of a GCC
22929 builtin and then its argument prototype would still apply. */
22942 for ac_lib in '' dir; do
22943 if test -z "$ac_lib"; then
22944 ac_res="none required"
22947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22949 rm -f conftest.$ac_objext conftest$ac_exeext
22950 if { (ac_try="$ac_link"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22956 $as_echo "$ac_try_echo") >&5
22957 (eval "$ac_link") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest$ac_exeext && {
22967 test "$cross_compiling" = yes ||
22968 $as_test_x conftest$ac_exeext
22970 ac_cv_search_opendir=$ac_res
22972 $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22978 rm -rf conftest.dSYM
22979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981 if test "${ac_cv_search_opendir+set}" = set; then
22985 if test "${ac_cv_search_opendir+set}" = set; then
22988 ac_cv_search_opendir=no
22990 rm conftest.$ac_ext
22991 LIBS=$ac_func_search_save_LIBS
22993 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22994 $as_echo "$ac_cv_search_opendir" >&6; }
22995 ac_res=$ac_cv_search_opendir
22996 if test "$ac_res" != no; then
22997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23002 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23003 $as_echo_n "checking for library containing opendir... " >&6; }
23004 if test "${ac_cv_search_opendir+set}" = set; then
23005 $as_echo_n "(cached) " >&6
23007 ac_func_search_save_LIBS=$LIBS
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23015 /* Override any GCC internal prototype to avoid an error.
23016 Use char because int might match the return type of a GCC
23017 builtin and then its argument prototype would still apply. */
23030 for ac_lib in '' x; do
23031 if test -z "$ac_lib"; then
23032 ac_res="none required"
23035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23037 rm -f conftest.$ac_objext conftest$ac_exeext
23038 if { (ac_try="$ac_link"
23039 case "(($ac_try" in
23040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23041 *) ac_try_echo=$ac_try;;
23043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23044 $as_echo "$ac_try_echo") >&5
23045 (eval "$ac_link") 2>conftest.er1
23047 grep -v '^ *+' conftest.er1 >conftest.err
23049 cat conftest.err >&5
23050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } && {
23052 test -z "$ac_c_werror_flag" ||
23053 test ! -s conftest.err
23054 } && test -s conftest$ac_exeext && {
23055 test "$cross_compiling" = yes ||
23056 $as_test_x conftest$ac_exeext
23058 ac_cv_search_opendir=$ac_res
23060 $as_echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23066 rm -rf conftest.dSYM
23067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23069 if test "${ac_cv_search_opendir+set}" = set; then
23073 if test "${ac_cv_search_opendir+set}" = set; then
23076 ac_cv_search_opendir=no
23078 rm conftest.$ac_ext
23079 LIBS=$ac_func_search_save_LIBS
23081 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23082 $as_echo "$ac_cv_search_opendir" >&6; }
23083 ac_res=$ac_cv_search_opendir
23084 if test "$ac_res" != no; then
23085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23091 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23092 $as_echo_n "checking whether closedir returns void... " >&6; }
23093 if test "${ac_cv_func_closedir_void+set}" = set; then
23094 $as_echo_n "(cached) " >&6
23096 if test "$cross_compiling" = yes; then
23097 ac_cv_func_closedir_void=yes
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23105 $ac_includes_default
23106 #include <$ac_header_dirent>
23107 #ifndef __cplusplus
23114 return closedir (opendir (".")) != 0;
23119 rm -f conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23126 $as_echo "$ac_try_echo") >&5
23127 (eval "$ac_link") 2>&5
23129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131 { (case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23136 $as_echo "$ac_try_echo") >&5
23137 (eval "$ac_try") 2>&5
23139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 ac_cv_func_closedir_void=no
23143 $as_echo "$as_me: program exited with status $ac_status" >&5
23144 $as_echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ( exit $ac_status )
23148 ac_cv_func_closedir_void=yes
23150 rm -rf conftest.dSYM
23151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23156 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23157 $as_echo "$ac_cv_func_closedir_void" >&6; }
23158 if test $ac_cv_func_closedir_void = yes; then
23160 cat >>confdefs.h <<\_ACEOF
23161 #define CLOSEDIR_VOID 1
23166 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
23167 $as_echo_n "checking for error_at_line... " >&6; }
23168 if test "${ac_cv_lib_error_at_line+set}" = set; then
23169 $as_echo_n "(cached) " >&6
23171 cat >conftest.$ac_ext <<_ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23181 error_at_line (0, 0, "", 0, "an error occurred");
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (ac_try="$ac_link"
23188 case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23193 $as_echo "$ac_try_echo") >&5
23194 (eval "$ac_link") 2>conftest.er1
23196 grep -v '^ *+' conftest.er1 >conftest.err
23198 cat conftest.err >&5
23199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest$ac_exeext && {
23204 test "$cross_compiling" = yes ||
23205 $as_test_x conftest$ac_exeext
23207 ac_cv_lib_error_at_line=yes
23209 $as_echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 ac_cv_lib_error_at_line=no
23215 rm -rf conftest.dSYM
23216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23217 conftest$ac_exeext conftest.$ac_ext
23219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23220 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23221 if test $ac_cv_lib_error_at_line = no; then
23222 case " $LIBOBJS " in
23223 *" error.$ac_objext "* ) ;;
23224 *) LIBOBJS="$LIBOBJS error.$ac_objext"
23231 for ac_header in vfork.h
23233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23236 $as_echo_n "checking for $ac_header... " >&6; }
23237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23238 $as_echo_n "(cached) " >&6
23240 ac_res=`eval 'as_val=${'$as_ac_Header'}
23241 $as_echo "$as_val"'`
23242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23243 $as_echo "$ac_res" >&6; }
23245 # Is the header compilable?
23246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23247 $as_echo_n "checking $ac_header usability... " >&6; }
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 $ac_includes_default
23255 #include <$ac_header>
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23264 $as_echo "$ac_try_echo") >&5
23265 (eval "$ac_compile") 2>conftest.er1
23267 grep -v '^ *+' conftest.er1 >conftest.err
23269 cat conftest.err >&5
23270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } && {
23272 test -z "$ac_c_werror_flag" ||
23273 test ! -s conftest.err
23274 } && test -s conftest.$ac_objext; then
23275 ac_header_compiler=yes
23277 $as_echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23280 ac_header_compiler=no
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23285 $as_echo "$ac_header_compiler" >&6; }
23287 # Is the header present?
23288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23289 $as_echo_n "checking $ac_header presence... " >&6; }
23290 cat >conftest.$ac_ext <<_ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23296 #include <$ac_header>
23298 if { (ac_try="$ac_cpp conftest.$ac_ext"
23299 case "(($ac_try" in
23300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301 *) ac_try_echo=$ac_try;;
23303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23304 $as_echo "$ac_try_echo") >&5
23305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23307 grep -v '^ *+' conftest.er1 >conftest.err
23309 cat conftest.err >&5
23310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } >/dev/null && {
23312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23313 test ! -s conftest.err
23315 ac_header_preproc=yes
23317 $as_echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 ac_header_preproc=no
23323 rm -f conftest.err conftest.$ac_ext
23324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23325 $as_echo "$ac_header_preproc" >&6; }
23327 # So? What about this header?
23328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23334 ac_header_preproc=yes
23337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23340 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23344 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23350 ## ---------------------------------------- ##
23351 ## Report this to linux-nfs@vger.kernel.org ##
23352 ## ---------------------------------------- ##
23354 ) | sed "s/^/$as_me: WARNING: /" >&2
23357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23358 $as_echo_n "checking for $ac_header... " >&6; }
23359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23360 $as_echo_n "(cached) " >&6
23362 eval "$as_ac_Header=\$ac_header_preproc"
23364 ac_res=`eval 'as_val=${'$as_ac_Header'}
23365 $as_echo "$as_val"'`
23366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23367 $as_echo "$ac_res" >&6; }
23370 as_val=`eval 'as_val=${'$as_ac_Header'}
23371 $as_echo "$as_val"'`
23372 if test "x$as_val" = x""yes; then
23373 cat >>confdefs.h <<_ACEOF
23374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23383 for ac_func in fork vfork
23385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23386 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23387 $as_echo_n "checking for $ac_func... " >&6; }
23388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23389 $as_echo_n "(cached) " >&6
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23399 #define $ac_func innocuous_$ac_func
23401 /* System header to define __stub macros and hopefully few prototypes,
23402 which can conflict with char $ac_func (); below.
23403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23404 <limits.h> exists even on freestanding compilers. */
23407 # include <limits.h>
23409 # include <assert.h>
23414 /* Override any GCC internal prototype to avoid an error.
23415 Use char because int might match the return type of a GCC
23416 builtin and then its argument prototype would still apply. */
23421 /* The GNU C library defines this for functions which it implements
23422 to always fail with ENOSYS. Some functions are actually named
23423 something starting with __ and the normal name is an alias. */
23424 #if defined __stub_$ac_func || defined __stub___$ac_func
23431 return $ac_func ();
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (ac_try="$ac_link"
23438 case "(($ac_try" in
23439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23440 *) ac_try_echo=$ac_try;;
23442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23443 $as_echo "$ac_try_echo") >&5
23444 (eval "$ac_link") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest$ac_exeext && {
23454 test "$cross_compiling" = yes ||
23455 $as_test_x conftest$ac_exeext
23457 eval "$as_ac_var=yes"
23459 $as_echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 eval "$as_ac_var=no"
23465 rm -rf conftest.dSYM
23466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23467 conftest$ac_exeext conftest.$ac_ext
23469 ac_res=`eval 'as_val=${'$as_ac_var'}
23470 $as_echo "$as_val"'`
23471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23472 $as_echo "$ac_res" >&6; }
23473 as_val=`eval 'as_val=${'$as_ac_var'}
23474 $as_echo "$as_val"'`
23475 if test "x$as_val" = x""yes; then
23476 cat >>confdefs.h <<_ACEOF
23477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23483 if test "x$ac_cv_func_fork" = xyes; then
23484 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
23485 $as_echo_n "checking for working fork... " >&6; }
23486 if test "${ac_cv_func_fork_works+set}" = set; then
23487 $as_echo_n "(cached) " >&6
23489 if test "$cross_compiling" = yes; then
23490 ac_cv_func_fork_works=cross
23492 cat >conftest.$ac_ext <<_ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 $ac_includes_default
23503 /* By Ruediger Kuhlmann. */
23504 return fork () < 0;
23510 rm -f conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23517 $as_echo "$ac_try_echo") >&5
23518 (eval "$ac_link") 2>&5
23520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23522 { (case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23527 $as_echo "$ac_try_echo") >&5
23528 (eval "$ac_try") 2>&5
23530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 ac_cv_func_fork_works=yes
23534 $as_echo "$as_me: program exited with status $ac_status" >&5
23535 $as_echo "$as_me: failed program was:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23538 ( exit $ac_status )
23539 ac_cv_func_fork_works=no
23541 rm -rf conftest.dSYM
23542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23547 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23548 $as_echo "$ac_cv_func_fork_works" >&6; }
23551 ac_cv_func_fork_works=$ac_cv_func_fork
23553 if test "x$ac_cv_func_fork_works" = xcross; then
23555 *-*-amigaos* | *-*-msdosdjgpp*)
23556 # Override, as these systems have only a dummy fork() stub
23557 ac_cv_func_fork_works=no
23560 ac_cv_func_fork_works=yes
23563 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23564 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23566 ac_cv_func_vfork_works=$ac_cv_func_vfork
23567 if test "x$ac_cv_func_vfork" = xyes; then
23568 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
23569 $as_echo_n "checking for working vfork... " >&6; }
23570 if test "${ac_cv_func_vfork_works+set}" = set; then
23571 $as_echo_n "(cached) " >&6
23573 if test "$cross_compiling" = yes; then
23574 ac_cv_func_vfork_works=cross
23576 cat >conftest.$ac_ext <<_ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 /* Thanks to Paul Eggert for this test. */
23583 $ac_includes_default
23584 #include <sys/wait.h>
23585 #ifdef HAVE_VFORK_H
23586 # include <vfork.h>
23588 /* On some sparc systems, changes by the child to local and incoming
23589 argument registers are propagated back to the parent. The compiler
23590 is told about this with #include <vfork.h>, but some compilers
23591 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23592 static variable whose address is put into a register that is
23593 clobbered by the vfork. */
23596 sparc_address_test (int arg)
23598 sparc_address_test (arg) int arg;
23601 static pid_t child;
23619 pid_t parent = getpid ();
23622 sparc_address_test (0);
23627 /* Here is another test for sparc vfork register problems. This
23628 test uses lots of local variables, at least as many local
23629 variables as main has allocated so far including compiler
23630 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23631 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23632 reuse the register of parent for one of the local variables,
23633 since it will think that parent can't possibly be used any more
23634 in this routine. Assigning to the local variable will thus
23635 munge parent in the parent process. */
23637 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23638 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23639 /* Convince the compiler that p..p7 are live; otherwise, it might
23640 use the same hardware register for all 8 local variables. */
23641 if (p != p1 || p != p2 || p != p3 || p != p4
23642 || p != p5 || p != p6 || p != p7)
23645 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23646 from child file descriptors. If the child closes a descriptor
23647 before it execs or exits, this munges the parent's descriptor
23648 as well. Test for this by closing stdout in the child. */
23649 _exit(close(fileno(stdout)) != 0);
23654 while (wait(&status) != child)
23657 /* Was there some problem with vforking? */
23660 /* Did the child fail? (This shouldn't happen.) */
23663 /* Did the vfork/compiler bug occur? */
23664 || parent != getpid()
23666 /* Did the file descriptor bug occur? */
23667 || fstat(fileno(stdout), &st) != 0
23672 rm -f conftest$ac_exeext
23673 if { (ac_try="$ac_link"
23674 case "(($ac_try" in
23675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676 *) ac_try_echo=$ac_try;;
23678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23679 $as_echo "$ac_try_echo") >&5
23680 (eval "$ac_link") 2>&5
23682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23684 { (case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23689 $as_echo "$ac_try_echo") >&5
23690 (eval "$ac_try") 2>&5
23692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 ac_cv_func_vfork_works=yes
23696 $as_echo "$as_me: program exited with status $ac_status" >&5
23697 $as_echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 ( exit $ac_status )
23701 ac_cv_func_vfork_works=no
23703 rm -rf conftest.dSYM
23704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23709 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23710 $as_echo "$ac_cv_func_vfork_works" >&6; }
23713 if test "x$ac_cv_func_fork_works" = xcross; then
23714 ac_cv_func_vfork_works=$ac_cv_func_vfork
23715 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23716 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23719 if test "x$ac_cv_func_vfork_works" = xyes; then
23721 cat >>confdefs.h <<\_ACEOF
23722 #define HAVE_WORKING_VFORK 1
23727 cat >>confdefs.h <<\_ACEOF
23732 if test "x$ac_cv_func_fork_works" = xyes; then
23734 cat >>confdefs.h <<\_ACEOF
23735 #define HAVE_WORKING_FORK 1
23740 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23741 $as_echo_n "checking type of array argument to getgroups... " >&6; }
23742 if test "${ac_cv_type_getgroups+set}" = set; then
23743 $as_echo_n "(cached) " >&6
23745 if test "$cross_compiling" = yes; then
23746 ac_cv_type_getgroups=cross
23748 cat >conftest.$ac_ext <<_ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 /* Thanks to Mike Rendell for this test. */
23755 $ac_includes_default
23758 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23763 gid_t gidset[NGID];
23765 union { gid_t gval; long int lval; } val;
23768 for (i = 0; i < NGID; i++)
23769 gidset[i] = val.gval;
23770 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23772 /* Exit non-zero if getgroups seems to require an array of ints. This
23773 happens when gid_t is short int but getgroups modifies an array
23775 return n > 0 && gidset[n] != val.gval;
23778 rm -f conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23785 $as_echo "$ac_try_echo") >&5
23786 (eval "$ac_link") 2>&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ac_cv_type_getgroups=gid_t
23802 $as_echo "$as_me: program exited with status $ac_status" >&5
23803 $as_echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23806 ( exit $ac_status )
23807 ac_cv_type_getgroups=int
23809 rm -rf conftest.dSYM
23810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23814 if test $ac_cv_type_getgroups = cross; then
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 #include <unistd.h>
23824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23825 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23826 ac_cv_type_getgroups=gid_t
23828 ac_cv_type_getgroups=int
23834 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23835 $as_echo "$ac_cv_type_getgroups" >&6; }
23837 cat >>confdefs.h <<_ACEOF
23838 #define GETGROUPS_T $ac_cv_type_getgroups
23842 { $as_echo "$as_me:$LINENO: checking for getgroups" >&5
23843 $as_echo_n "checking for getgroups... " >&6; }
23844 if test "${ac_cv_func_getgroups+set}" = set; then
23845 $as_echo_n "(cached) " >&6
23847 cat >conftest.$ac_ext <<_ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23855 #define getgroups innocuous_getgroups
23857 /* System header to define __stub macros and hopefully few prototypes,
23858 which can conflict with char getgroups (); below.
23859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23860 <limits.h> exists even on freestanding compilers. */
23863 # include <limits.h>
23865 # include <assert.h>
23870 /* Override any GCC internal prototype to avoid an error.
23871 Use char because int might match the return type of a GCC
23872 builtin and then its argument prototype would still apply. */
23877 /* The GNU C library defines this for functions which it implements
23878 to always fail with ENOSYS. Some functions are actually named
23879 something starting with __ and the normal name is an alias. */
23880 #if defined __stub_getgroups || defined __stub___getgroups
23887 return getgroups ();
23892 rm -f conftest.$ac_objext conftest$ac_exeext
23893 if { (ac_try="$ac_link"
23894 case "(($ac_try" in
23895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23896 *) ac_try_echo=$ac_try;;
23898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23899 $as_echo "$ac_try_echo") >&5
23900 (eval "$ac_link") 2>conftest.er1
23902 grep -v '^ *+' conftest.er1 >conftest.err
23904 cat conftest.err >&5
23905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest$ac_exeext && {
23910 test "$cross_compiling" = yes ||
23911 $as_test_x conftest$ac_exeext
23913 ac_cv_func_getgroups=yes
23915 $as_echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 ac_cv_func_getgroups=no
23921 rm -rf conftest.dSYM
23922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23923 conftest$ac_exeext conftest.$ac_ext
23925 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23926 $as_echo "$ac_cv_func_getgroups" >&6; }
23929 # If we don't yet have getgroups, see if it's in -lbsd.
23930 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23932 if test $ac_cv_func_getgroups = no; then
23933 { $as_echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23934 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
23935 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23936 $as_echo_n "(cached) " >&6
23938 ac_check_lib_save_LIBS=$LIBS
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23947 /* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
23957 return getgroups ();
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970 (eval "$ac_link") 2>conftest.er1
23972 grep -v '^ *+' conftest.er1 >conftest.err
23974 cat conftest.err >&5
23975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext && {
23980 test "$cross_compiling" = yes ||
23981 $as_test_x conftest$ac_exeext
23983 ac_cv_lib_bsd_getgroups=yes
23985 $as_echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23988 ac_cv_lib_bsd_getgroups=no
23991 rm -rf conftest.dSYM
23992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23993 conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23997 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
23998 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then
23999 GETGROUPS_LIB=-lbsd
24004 # Run the program to test the functionality of the system-supplied
24005 # getgroups function only if there is such a function.
24006 if test $ac_cv_func_getgroups = yes; then
24007 { $as_echo "$as_me:$LINENO: checking for working getgroups" >&5
24008 $as_echo_n "checking for working getgroups... " >&6; }
24009 if test "${ac_cv_func_getgroups_works+set}" = set; then
24010 $as_echo_n "(cached) " >&6
24012 if test "$cross_compiling" = yes; then
24013 ac_cv_func_getgroups_works=no
24015 cat >conftest.$ac_ext <<_ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 $ac_includes_default
24025 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24026 return getgroups (0, 0) == -1;
24031 rm -f conftest$ac_exeext
24032 if { (ac_try="$ac_link"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24038 $as_echo "$ac_try_echo") >&5
24039 (eval "$ac_link") 2>&5
24041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24043 { (case "(($ac_try" in
24044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045 *) ac_try_echo=$ac_try;;
24047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24048 $as_echo "$ac_try_echo") >&5
24049 (eval "$ac_try") 2>&5
24051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; }; then
24053 ac_cv_func_getgroups_works=yes
24055 $as_echo "$as_me: program exited with status $ac_status" >&5
24056 $as_echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ( exit $ac_status )
24060 ac_cv_func_getgroups_works=no
24062 rm -rf conftest.dSYM
24063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24069 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24070 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24071 if test $ac_cv_func_getgroups_works = yes; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_GETGROUPS 1
24081 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
24082 # -lseq on Dynix/PTX, -lgen on Unixware.
24083 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
24084 $as_echo_n "checking for library containing getmntent... " >&6; }
24085 if test "${ac_cv_search_getmntent+set}" = set; then
24086 $as_echo_n "(cached) " >&6
24088 ac_func_search_save_LIBS=$LIBS
24089 cat >conftest.$ac_ext <<_ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24096 /* Override any GCC internal prototype to avoid an error.
24097 Use char because int might match the return type of a GCC
24098 builtin and then its argument prototype would still apply. */
24106 return getmntent ();
24111 for ac_lib in '' sun seq gen; do
24112 if test -z "$ac_lib"; then
24113 ac_res="none required"
24116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24118 rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (ac_try="$ac_link"
24120 case "(($ac_try" in
24121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122 *) ac_try_echo=$ac_try;;
24124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24125 $as_echo "$ac_try_echo") >&5
24126 (eval "$ac_link") 2>conftest.er1
24128 grep -v '^ *+' conftest.er1 >conftest.err
24130 cat conftest.err >&5
24131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } && {
24133 test -z "$ac_c_werror_flag" ||
24134 test ! -s conftest.err
24135 } && test -s conftest$ac_exeext && {
24136 test "$cross_compiling" = yes ||
24137 $as_test_x conftest$ac_exeext
24139 ac_cv_search_getmntent=$ac_res
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24147 rm -rf conftest.dSYM
24148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24150 if test "${ac_cv_search_getmntent+set}" = set; then
24154 if test "${ac_cv_search_getmntent+set}" = set; then
24157 ac_cv_search_getmntent=no
24159 rm conftest.$ac_ext
24160 LIBS=$ac_func_search_save_LIBS
24162 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
24163 $as_echo "$ac_cv_search_getmntent" >&6; }
24164 ac_res=$ac_cv_search_getmntent
24165 if test "$ac_res" != no; then
24166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24167 ac_cv_func_getmntent=yes
24169 cat >>confdefs.h <<\_ACEOF
24170 #define HAVE_GETMNTENT 1
24174 ac_cv_func_getmntent=no
24178 if test $ac_cv_c_compiler_gnu = yes; then
24179 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24180 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
24181 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24182 $as_echo_n "(cached) " >&6
24184 ac_pattern="Autoconf.*'x'"
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24195 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24196 ac_cv_prog_gcc_traditional=yes
24198 ac_cv_prog_gcc_traditional=no
24203 if test $ac_cv_prog_gcc_traditional = no; then
24204 cat >conftest.$ac_ext <<_ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24210 #include <termio.h>
24213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24214 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24215 ac_cv_prog_gcc_traditional=yes
24221 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24222 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
24223 if test $ac_cv_prog_gcc_traditional = yes; then
24224 CC="$CC -traditional"
24228 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24229 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24230 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24231 $as_echo_n "(cached) " >&6
24233 rm -f conftest.sym conftest.file
24234 echo >conftest.file
24235 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24236 if test "$cross_compiling" = yes; then
24237 ac_cv_func_lstat_dereferences_slashed_symlink=no
24239 cat >conftest.$ac_ext <<_ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 $ac_includes_default
24250 /* Linux will dereference the symlink and fail.
24251 That is better in the sense that it means we will not
24252 have to compile and use the lstat wrapper. */
24253 return lstat ("conftest.sym/", &sbuf) == 0;
24258 rm -f conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24265 $as_echo "$ac_try_echo") >&5
24266 (eval "$ac_link") 2>&5
24268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24270 { (case "(($ac_try" in
24271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272 *) ac_try_echo=$ac_try;;
24274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24275 $as_echo "$ac_try_echo") >&5
24276 (eval "$ac_try") 2>&5
24278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24280 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24282 $as_echo "$as_me: program exited with status $ac_status" >&5
24283 $as_echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24286 ( exit $ac_status )
24287 ac_cv_func_lstat_dereferences_slashed_symlink=no
24289 rm -rf conftest.dSYM
24290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24295 # If the `ln -s' command failed, then we probably don't even
24296 # have an lstat function.
24297 ac_cv_func_lstat_dereferences_slashed_symlink=no
24299 rm -f conftest.sym conftest.file
24302 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24303 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24305 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24307 cat >>confdefs.h <<_ACEOF
24308 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24312 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24313 case " $LIBOBJS " in
24314 *" lstat.$ac_objext "* ) ;;
24315 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24321 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24322 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
24323 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24324 $as_echo_n "(cached) " >&6
24326 if test "$cross_compiling" = yes; then
24327 ac_cv_func_lstat_empty_string_bug=yes
24329 cat >conftest.$ac_ext <<_ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24335 $ac_includes_default
24340 return lstat ("", &sbuf) == 0;
24345 rm -f conftest$ac_exeext
24346 if { (ac_try="$ac_link"
24347 case "(($ac_try" in
24348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349 *) ac_try_echo=$ac_try;;
24351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24352 $as_echo "$ac_try_echo") >&5
24353 (eval "$ac_link") 2>&5
24355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24357 { (case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362 $as_echo "$ac_try_echo") >&5
24363 (eval "$ac_try") 2>&5
24365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; }; then
24367 ac_cv_func_lstat_empty_string_bug=no
24369 $as_echo "$as_me: program exited with status $ac_status" >&5
24370 $as_echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24373 ( exit $ac_status )
24374 ac_cv_func_lstat_empty_string_bug=yes
24376 rm -rf conftest.dSYM
24377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24382 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24383 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
24384 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24385 case " $LIBOBJS " in
24386 *" lstat.$ac_objext "* ) ;;
24387 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24392 cat >>confdefs.h <<_ACEOF
24393 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24398 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24399 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
24400 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24401 $as_echo_n "(cached) " >&6
24403 rm -f conftest.sym conftest.file
24404 echo >conftest.file
24405 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24406 if test "$cross_compiling" = yes; then
24407 ac_cv_func_lstat_dereferences_slashed_symlink=no
24409 cat >conftest.$ac_ext <<_ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24415 $ac_includes_default
24420 /* Linux will dereference the symlink and fail.
24421 That is better in the sense that it means we will not
24422 have to compile and use the lstat wrapper. */
24423 return lstat ("conftest.sym/", &sbuf) == 0;
24428 rm -f conftest$ac_exeext
24429 if { (ac_try="$ac_link"
24430 case "(($ac_try" in
24431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24435 $as_echo "$ac_try_echo") >&5
24436 (eval "$ac_link") 2>&5
24438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24440 { (case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446 (eval "$ac_try") 2>&5
24448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24450 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24452 $as_echo "$as_me: program exited with status $ac_status" >&5
24453 $as_echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ( exit $ac_status )
24457 ac_cv_func_lstat_dereferences_slashed_symlink=no
24459 rm -rf conftest.dSYM
24460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24465 # If the `ln -s' command failed, then we probably don't even
24466 # have an lstat function.
24467 ac_cv_func_lstat_dereferences_slashed_symlink=no
24469 rm -f conftest.sym conftest.file
24472 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24473 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24475 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24477 cat >>confdefs.h <<_ACEOF
24478 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24482 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24483 case " $LIBOBJS " in
24484 *" lstat.$ac_objext "* ) ;;
24485 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24491 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24492 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24493 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24494 $as_echo_n "(cached) " >&6
24496 cat >conftest.$ac_ext <<_ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 #include <sys/types.h>
24506 return makedev(0, 0);
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (ac_try="$ac_link"
24513 case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24518 $as_echo "$ac_try_echo") >&5
24519 (eval "$ac_link") 2>conftest.er1
24521 grep -v '^ *+' conftest.er1 >conftest.err
24523 cat conftest.err >&5
24524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } && {
24526 test -z "$ac_c_werror_flag" ||
24527 test ! -s conftest.err
24528 } && test -s conftest$ac_exeext && {
24529 test "$cross_compiling" = yes ||
24530 $as_test_x conftest$ac_exeext
24532 ac_cv_header_sys_types_h_makedev=yes
24534 $as_echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24537 ac_cv_header_sys_types_h_makedev=no
24540 rm -rf conftest.dSYM
24541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24542 conftest$ac_exeext conftest.$ac_ext
24545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24546 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24548 if test $ac_cv_header_sys_types_h_makedev = no; then
24549 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24550 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24551 $as_echo_n "checking for sys/mkdev.h... " >&6; }
24552 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24553 $as_echo_n "(cached) " >&6
24555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24556 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
24558 # Is the header compilable?
24559 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24560 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 $ac_includes_default
24568 #include <sys/mkdev.h>
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24577 $as_echo "$ac_try_echo") >&5
24578 (eval "$ac_compile") 2>conftest.er1
24580 grep -v '^ *+' conftest.er1 >conftest.err
24582 cat conftest.err >&5
24583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); } && {
24585 test -z "$ac_c_werror_flag" ||
24586 test ! -s conftest.err
24587 } && test -s conftest.$ac_objext; then
24588 ac_header_compiler=yes
24590 $as_echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24593 ac_header_compiler=no
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24598 $as_echo "$ac_header_compiler" >&6; }
24600 # Is the header present?
24601 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24602 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 #include <sys/mkdev.h>
24611 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
24620 grep -v '^ *+' conftest.er1 >conftest.err
24622 cat conftest.err >&5
24623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } >/dev/null && {
24625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24626 test ! -s conftest.err
24628 ac_header_preproc=yes
24630 $as_echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ac_header_preproc=no
24636 rm -f conftest.err conftest.$ac_ext
24637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24638 $as_echo "$ac_header_preproc" >&6; }
24640 # So? What about this header?
24641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24643 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24644 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24645 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24646 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24647 ac_header_preproc=yes
24650 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24651 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24652 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
24653 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
24654 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24655 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24656 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
24657 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
24658 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24659 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24660 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24661 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24663 ## ---------------------------------------- ##
24664 ## Report this to linux-nfs@vger.kernel.org ##
24665 ## ---------------------------------------- ##
24667 ) | sed "s/^/$as_me: WARNING: /" >&2
24670 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24671 $as_echo_n "checking for sys/mkdev.h... " >&6; }
24672 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24673 $as_echo_n "(cached) " >&6
24675 ac_cv_header_sys_mkdev_h=$ac_header_preproc
24677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24678 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
24681 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
24683 cat >>confdefs.h <<\_ACEOF
24684 #define MAJOR_IN_MKDEV 1
24691 if test $ac_cv_header_sys_mkdev_h = no; then
24692 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24693 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24694 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
24695 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24696 $as_echo_n "(cached) " >&6
24698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24699 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
24701 # Is the header compilable?
24702 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24703 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 $ac_includes_default
24711 #include <sys/sysmacros.h>
24713 rm -f conftest.$ac_objext
24714 if { (ac_try="$ac_compile"
24715 case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24720 $as_echo "$ac_try_echo") >&5
24721 (eval "$ac_compile") 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } && {
24728 test -z "$ac_c_werror_flag" ||
24729 test ! -s conftest.err
24730 } && test -s conftest.$ac_objext; then
24731 ac_header_compiler=yes
24733 $as_echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24736 ac_header_compiler=no
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24740 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24741 $as_echo "$ac_header_compiler" >&6; }
24743 # Is the header present?
24744 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24745 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 #include <sys/sysmacros.h>
24754 if { (ac_try="$ac_cpp conftest.$ac_ext"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24763 grep -v '^ *+' conftest.er1 >conftest.err
24765 cat conftest.err >&5
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } >/dev/null && {
24768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24771 ac_header_preproc=yes
24773 $as_echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_header_preproc=no
24779 rm -f conftest.err conftest.$ac_ext
24780 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24781 $as_echo "$ac_header_preproc" >&6; }
24783 # So? What about this header?
24784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24786 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24787 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24788 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24789 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24790 ac_header_preproc=yes
24793 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24794 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24795 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
24796 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
24797 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24798 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24799 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
24800 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
24801 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24802 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24803 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24804 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24806 ## ---------------------------------------- ##
24807 ## Report this to linux-nfs@vger.kernel.org ##
24808 ## ---------------------------------------- ##
24810 ) | sed "s/^/$as_me: WARNING: /" >&2
24813 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24814 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
24815 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24816 $as_echo_n "(cached) " >&6
24818 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24821 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
24824 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
24826 cat >>confdefs.h <<\_ACEOF
24827 #define MAJOR_IN_SYSMACROS 1
24837 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
24838 $as_echo_n "checking for working memcmp... " >&6; }
24839 if test "${ac_cv_func_memcmp_working+set}" = set; then
24840 $as_echo_n "(cached) " >&6
24842 if test "$cross_compiling" = yes; then
24843 ac_cv_func_memcmp_working=no
24845 cat >conftest.$ac_ext <<_ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */
24851 $ac_includes_default
24856 /* Some versions of memcmp are not 8-bit clean. */
24857 char c0 = '\100', c1 = '\200', c2 = '\201';
24858 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24861 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24862 or more and with at least one buffer not starting on a 4-byte boundary.
24863 William Lewis provided this test program. */
24868 for (i = 0; i < 4; i++)
24872 strcpy (a, "--------01111111");
24873 strcpy (b, "--------10000000");
24874 if (memcmp (a, b, 16) >= 0)
24884 rm -f conftest$ac_exeext
24885 if { (ac_try="$ac_link"
24886 case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24891 $as_echo "$ac_try_echo") >&5
24892 (eval "$ac_link") 2>&5
24894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24896 { (case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24901 $as_echo "$ac_try_echo") >&5
24902 (eval "$ac_try") 2>&5
24904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24906 ac_cv_func_memcmp_working=yes
24908 $as_echo "$as_me: program exited with status $ac_status" >&5
24909 $as_echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ( exit $ac_status )
24913 ac_cv_func_memcmp_working=no
24915 rm -rf conftest.dSYM
24916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24921 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24922 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24923 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24924 *" memcmp.$ac_objext "* ) ;;
24925 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24933 for ac_header in sys/select.h sys/socket.h
24935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24938 $as_echo_n "checking for $ac_header... " >&6; }
24939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24940 $as_echo_n "(cached) " >&6
24942 ac_res=`eval 'as_val=${'$as_ac_Header'}
24943 $as_echo "$as_val"'`
24944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24945 $as_echo "$ac_res" >&6; }
24947 # Is the header compilable?
24948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24949 $as_echo_n "checking $ac_header usability... " >&6; }
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24956 $ac_includes_default
24957 #include <$ac_header>
24959 rm -f conftest.$ac_objext
24960 if { (ac_try="$ac_compile"
24961 case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1 >conftest.err
24971 cat conftest.err >&5
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.$ac_objext; then
24977 ac_header_compiler=yes
24979 $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_header_compiler=no
24985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24987 $as_echo "$ac_header_compiler" >&6; }
24989 # Is the header present?
24990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24991 $as_echo_n "checking $ac_header presence... " >&6; }
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 #include <$ac_header>
25000 if { (ac_try="$ac_cpp conftest.$ac_ext"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25006 $as_echo "$ac_try_echo") >&5
25007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25009 grep -v '^ *+' conftest.er1 >conftest.err
25011 cat conftest.err >&5
25012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } >/dev/null && {
25014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25015 test ! -s conftest.err
25017 ac_header_preproc=yes
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 ac_header_preproc=no
25025 rm -f conftest.err conftest.$ac_ext
25026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25027 $as_echo "$ac_header_preproc" >&6; }
25029 # So? What about this header?
25030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25036 ac_header_preproc=yes
25039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25042 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25046 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25052 ## ---------------------------------------- ##
25053 ## Report this to linux-nfs@vger.kernel.org ##
25054 ## ---------------------------------------- ##
25056 ) | sed "s/^/$as_me: WARNING: /" >&2
25059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25060 $as_echo_n "checking for $ac_header... " >&6; }
25061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25062 $as_echo_n "(cached) " >&6
25064 eval "$as_ac_Header=\$ac_header_preproc"
25066 ac_res=`eval 'as_val=${'$as_ac_Header'}
25067 $as_echo "$as_val"'`
25068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25069 $as_echo "$ac_res" >&6; }
25072 as_val=`eval 'as_val=${'$as_ac_Header'}
25073 $as_echo "$as_val"'`
25074 if test "x$as_val" = x""yes; then
25075 cat >>confdefs.h <<_ACEOF
25076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25083 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
25084 $as_echo_n "checking types of arguments for select... " >&6; }
25085 if test "${ac_cv_func_select_args+set}" = set; then
25086 $as_echo_n "(cached) " >&6
25088 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25089 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25090 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25097 $ac_includes_default
25098 #ifdef HAVE_SYS_SELECT_H
25099 # include <sys/select.h>
25101 #ifdef HAVE_SYS_SOCKET_H
25102 # include <sys/socket.h>
25108 extern int select ($ac_arg1,
25109 $ac_arg234, $ac_arg234, $ac_arg234,
25115 rm -f conftest.$ac_objext
25116 if { (ac_try="$ac_compile"
25117 case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25122 $as_echo "$ac_try_echo") >&5
25123 (eval "$ac_compile") 2>conftest.er1
25125 grep -v '^ *+' conftest.er1 >conftest.err
25127 cat conftest.err >&5
25128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && {
25130 test -z "$ac_c_werror_flag" ||
25131 test ! -s conftest.err
25132 } && test -s conftest.$ac_objext; then
25133 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25135 $as_echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145 # Provide a safe default value.
25146 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25149 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25150 $as_echo "$ac_cv_func_select_args" >&6; }
25151 ac_save_IFS=$IFS; IFS=','
25152 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25156 cat >>confdefs.h <<_ACEOF
25157 #define SELECT_TYPE_ARG1 $1
25161 cat >>confdefs.h <<_ACEOF
25162 #define SELECT_TYPE_ARG234 ($2)
25166 cat >>confdefs.h <<_ACEOF
25167 #define SELECT_TYPE_ARG5 ($3)
25172 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25173 $as_echo_n "checking return type of signal handlers... " >&6; }
25174 if test "${ac_cv_type_signal+set}" = set; then
25175 $as_echo_n "(cached) " >&6
25177 cat >conftest.$ac_ext <<_ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 #include <sys/types.h>
25184 #include <signal.h>
25189 return *(signal (0, 0)) (0) == 1;
25194 rm -f conftest.$ac_objext
25195 if { (ac_try="$ac_compile"
25196 case "(($ac_try" in
25197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198 *) ac_try_echo=$ac_try;;
25200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25201 $as_echo "$ac_try_echo") >&5
25202 (eval "$ac_compile") 2>conftest.er1
25204 grep -v '^ *+' conftest.er1 >conftest.err
25206 cat conftest.err >&5
25207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && {
25209 test -z "$ac_c_werror_flag" ||
25210 test ! -s conftest.err
25211 } && test -s conftest.$ac_objext; then
25212 ac_cv_type_signal=int
25214 $as_echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_cv_type_signal=void
25220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25223 $as_echo "$ac_cv_type_signal" >&6; }
25225 cat >>confdefs.h <<_ACEOF
25226 #define RETSIGTYPE $ac_cv_type_signal
25230 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25231 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
25232 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25233 $as_echo_n "(cached) " >&6
25235 if test "$cross_compiling" = yes; then
25236 ac_cv_func_stat_empty_string_bug=yes
25238 cat >conftest.$ac_ext <<_ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25244 $ac_includes_default
25249 return stat ("", &sbuf) == 0;
25254 rm -f conftest$ac_exeext
25255 if { (ac_try="$ac_link"
25256 case "(($ac_try" in
25257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25258 *) ac_try_echo=$ac_try;;
25260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25261 $as_echo "$ac_try_echo") >&5
25262 (eval "$ac_link") 2>&5
25264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25266 { (case "(($ac_try" in
25267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268 *) ac_try_echo=$ac_try;;
25270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25271 $as_echo "$ac_try_echo") >&5
25272 (eval "$ac_try") 2>&5
25274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; }; then
25276 ac_cv_func_stat_empty_string_bug=no
25278 $as_echo "$as_me: program exited with status $ac_status" >&5
25279 $as_echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ( exit $ac_status )
25283 ac_cv_func_stat_empty_string_bug=yes
25285 rm -rf conftest.dSYM
25286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25292 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
25293 if test $ac_cv_func_stat_empty_string_bug = yes; then
25294 case " $LIBOBJS " in
25295 *" stat.$ac_objext "* ) ;;
25296 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25301 cat >>confdefs.h <<_ACEOF
25302 #define HAVE_STAT_EMPTY_STRING_BUG 1
25308 for ac_func in vprintf
25310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25312 $as_echo_n "checking for $ac_func... " >&6; }
25313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25314 $as_echo_n "(cached) " >&6
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25324 #define $ac_func innocuous_$ac_func
25326 /* System header to define __stub macros and hopefully few prototypes,
25327 which can conflict with char $ac_func (); below.
25328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25329 <limits.h> exists even on freestanding compilers. */
25332 # include <limits.h>
25334 # include <assert.h>
25339 /* Override any GCC internal prototype to avoid an error.
25340 Use char because int might match the return type of a GCC
25341 builtin and then its argument prototype would still apply. */
25346 /* The GNU C library defines this for functions which it implements
25347 to always fail with ENOSYS. Some functions are actually named
25348 something starting with __ and the normal name is an alias. */
25349 #if defined __stub_$ac_func || defined __stub___$ac_func
25356 return $ac_func ();
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (ac_try="$ac_link"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25368 $as_echo "$ac_try_echo") >&5
25369 (eval "$ac_link") 2>conftest.er1
25371 grep -v '^ *+' conftest.er1 >conftest.err
25373 cat conftest.err >&5
25374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } && {
25376 test -z "$ac_c_werror_flag" ||
25377 test ! -s conftest.err
25378 } && test -s conftest$ac_exeext && {
25379 test "$cross_compiling" = yes ||
25380 $as_test_x conftest$ac_exeext
25382 eval "$as_ac_var=yes"
25384 $as_echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25387 eval "$as_ac_var=no"
25390 rm -rf conftest.dSYM
25391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25392 conftest$ac_exeext conftest.$ac_ext
25394 ac_res=`eval 'as_val=${'$as_ac_var'}
25395 $as_echo "$as_val"'`
25396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25397 $as_echo "$ac_res" >&6; }
25398 as_val=`eval 'as_val=${'$as_ac_var'}
25399 $as_echo "$as_val"'`
25400 if test "x$as_val" = x""yes; then
25401 cat >>confdefs.h <<_ACEOF
25402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25405 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
25406 $as_echo_n "checking for _doprnt... " >&6; }
25407 if test "${ac_cv_func__doprnt+set}" = set; then
25408 $as_echo_n "(cached) " >&6
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25418 #define _doprnt innocuous__doprnt
25420 /* System header to define __stub macros and hopefully few prototypes,
25421 which can conflict with char _doprnt (); below.
25422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25423 <limits.h> exists even on freestanding compilers. */
25426 # include <limits.h>
25428 # include <assert.h>
25433 /* Override any GCC internal prototype to avoid an error.
25434 Use char because int might match the return type of a GCC
25435 builtin and then its argument prototype would still apply. */
25440 /* The GNU C library defines this for functions which it implements
25441 to always fail with ENOSYS. Some functions are actually named
25442 something starting with __ and the normal name is an alias. */
25443 #if defined __stub__doprnt || defined __stub____doprnt
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (ac_try="$ac_link"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25462 $as_echo "$ac_try_echo") >&5
25463 (eval "$ac_link") 2>conftest.er1
25465 grep -v '^ *+' conftest.er1 >conftest.err
25467 cat conftest.err >&5
25468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } && {
25470 test -z "$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 } && test -s conftest$ac_exeext && {
25473 test "$cross_compiling" = yes ||
25474 $as_test_x conftest$ac_exeext
25476 ac_cv_func__doprnt=yes
25478 $as_echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25481 ac_cv_func__doprnt=no
25484 rm -rf conftest.dSYM
25485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25486 conftest$ac_exeext conftest.$ac_ext
25488 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25489 $as_echo "$ac_cv_func__doprnt" >&6; }
25490 if test "x$ac_cv_func__doprnt" = x""yes; then
25492 cat >>confdefs.h <<\_ACEOF
25493 #define HAVE_DOPRNT 1
25533 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25534 gethostbyaddr gethostbyname gethostname getmntent \
25535 getnameinfo getrpcbyname \
25536 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25537 realpath rmdir select socket strcasecmp strchr strdup \
25538 strerror strrchr strtol strtoul sigprocmask
25540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25542 $as_echo_n "checking for $ac_func... " >&6; }
25543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25544 $as_echo_n "(cached) " >&6
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25554 #define $ac_func innocuous_$ac_func
25556 /* System header to define __stub macros and hopefully few prototypes,
25557 which can conflict with char $ac_func (); below.
25558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25559 <limits.h> exists even on freestanding compilers. */
25562 # include <limits.h>
25564 # include <assert.h>
25569 /* Override any GCC internal prototype to avoid an error.
25570 Use char because int might match the return type of a GCC
25571 builtin and then its argument prototype would still apply. */
25576 /* The GNU C library defines this for functions which it implements
25577 to always fail with ENOSYS. Some functions are actually named
25578 something starting with __ and the normal name is an alias. */
25579 #if defined __stub_$ac_func || defined __stub___$ac_func
25586 return $ac_func ();
25591 rm -f conftest.$ac_objext conftest$ac_exeext
25592 if { (ac_try="$ac_link"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_link") 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest$ac_exeext && {
25609 test "$cross_compiling" = yes ||
25610 $as_test_x conftest$ac_exeext
25612 eval "$as_ac_var=yes"
25614 $as_echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25617 eval "$as_ac_var=no"
25620 rm -rf conftest.dSYM
25621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25622 conftest$ac_exeext conftest.$ac_ext
25624 ac_res=`eval 'as_val=${'$as_ac_var'}
25625 $as_echo "$as_val"'`
25626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25627 $as_echo "$ac_res" >&6; }
25628 as_val=`eval 'as_val=${'$as_ac_var'}
25629 $as_echo "$as_val"'`
25630 if test "x$as_val" = x""yes; then
25631 cat >>confdefs.h <<_ACEOF
25632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25640 # The cast to long int works around a bug in the HP C Compiler
25641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25643 # This bug is HP SR number 8606223364.
25644 { $as_echo "$as_me:$LINENO: checking size of short" >&5
25645 $as_echo_n "checking size of short... " >&6; }
25646 if test "${ac_cv_sizeof_short+set}" = set; then
25647 $as_echo_n "(cached) " >&6
25649 if test "$cross_compiling" = yes; then
25650 # Depending upon the size, compute the lo and hi bounds.
25651 cat >conftest.$ac_ext <<_ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 $ac_includes_default
25661 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
25668 rm -f conftest.$ac_objext
25669 if { (ac_try="$ac_compile"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25675 $as_echo "$ac_try_echo") >&5
25676 (eval "$ac_compile") 2>conftest.er1
25678 grep -v '^ *+' conftest.er1 >conftest.err
25680 cat conftest.err >&5
25681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } && {
25683 test -z "$ac_c_werror_flag" ||
25684 test ! -s conftest.err
25685 } && test -s conftest.$ac_objext; then
25688 cat >conftest.$ac_ext <<_ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h. */
25694 $ac_includes_default
25698 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25712 $as_echo "$ac_try_echo") >&5
25713 (eval "$ac_compile") 2>conftest.er1
25715 grep -v '^ *+' conftest.er1 >conftest.err
25717 cat conftest.err >&5
25718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } && {
25720 test -z "$ac_c_werror_flag" ||
25721 test ! -s conftest.err
25722 } && test -s conftest.$ac_objext; then
25723 ac_hi=$ac_mid; break
25725 $as_echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25728 ac_lo=`expr $ac_mid + 1`
25729 if test $ac_lo -le $ac_mid; then
25733 ac_mid=`expr 2 '*' $ac_mid + 1`
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739 $as_echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25742 cat >conftest.$ac_ext <<_ACEOF
25745 cat confdefs.h >>conftest.$ac_ext
25746 cat >>conftest.$ac_ext <<_ACEOF
25747 /* end confdefs.h. */
25748 $ac_includes_default
25752 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25769 grep -v '^ *+' conftest.er1 >conftest.err
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 $ac_includes_default
25789 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
25796 rm -f conftest.$ac_objext
25797 if { (ac_try="$ac_compile"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25803 $as_echo "$ac_try_echo") >&5
25804 (eval "$ac_compile") 2>conftest.er1
25806 grep -v '^ *+' conftest.er1 >conftest.err
25808 cat conftest.err >&5
25809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } && {
25811 test -z "$ac_c_werror_flag" ||
25812 test ! -s conftest.err
25813 } && test -s conftest.$ac_objext; then
25814 ac_lo=$ac_mid; break
25816 $as_echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 ac_hi=`expr '(' $ac_mid ')' - 1`
25820 if test $ac_mid -le $ac_hi; then
25824 ac_mid=`expr 2 '*' $ac_mid`
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25830 $as_echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840 # Binary search between lo and hi bounds.
25841 while test "x$ac_lo" != "x$ac_hi"; do
25842 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 $ac_includes_default
25853 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
25860 rm -f conftest.$ac_objext
25861 if { (ac_try="$ac_compile"
25862 case "(($ac_try" in
25863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25864 *) ac_try_echo=$ac_try;;
25866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25867 $as_echo "$ac_try_echo") >&5
25868 (eval "$ac_compile") 2>conftest.er1
25870 grep -v '^ *+' conftest.er1 >conftest.err
25872 cat conftest.err >&5
25873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } && {
25875 test -z "$ac_c_werror_flag" ||
25876 test ! -s conftest.err
25877 } && test -s conftest.$ac_objext; then
25880 $as_echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25883 ac_lo=`expr '(' $ac_mid ')' + 1`
25886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889 ?*) ac_cv_sizeof_short=$ac_lo;;
25890 '') if test "$ac_cv_type_short" = yes; then
25891 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25893 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25894 See \`config.log' for more details." >&5
25895 $as_echo "$as_me: error: cannot compute sizeof (short)
25896 See \`config.log' for more details." >&2;}
25897 { (exit 77); exit 77; }; }; }
25899 ac_cv_sizeof_short=0
25903 cat >conftest.$ac_ext <<_ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h. */
25909 $ac_includes_default
25910 static long int longval () { return (long int) (sizeof (short)); }
25911 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
25913 #include <stdlib.h>
25918 FILE *f = fopen ("conftest.val", "w");
25921 if (((long int) (sizeof (short))) < 0)
25923 long int i = longval ();
25924 if (i != ((long int) (sizeof (short))))
25926 fprintf (f, "%ld", i);
25930 unsigned long int i = ulongval ();
25931 if (i != ((long int) (sizeof (short))))
25933 fprintf (f, "%lu", i);
25935 /* Do not output a trailing newline, as this causes \r\n confusion
25936 on some platforms. */
25937 return ferror (f) || fclose (f) != 0;
25943 rm -f conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951 (eval "$ac_link") 2>&5
25953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25955 { (case "(($ac_try" in
25956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25957 *) ac_try_echo=$ac_try;;
25959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25960 $as_echo "$ac_try_echo") >&5
25961 (eval "$ac_try") 2>&5
25963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; }; then
25965 ac_cv_sizeof_short=`cat conftest.val`
25967 $as_echo "$as_me: program exited with status $ac_status" >&5
25968 $as_echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.$ac_ext >&5
25971 ( exit $ac_status )
25972 if test "$ac_cv_type_short" = yes; then
25973 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25975 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
25976 See \`config.log' for more details." >&5
25977 $as_echo "$as_me: error: cannot compute sizeof (short)
25978 See \`config.log' for more details." >&2;}
25979 { (exit 77); exit 77; }; }; }
25981 ac_cv_sizeof_short=0
25984 rm -rf conftest.dSYM
25985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25989 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25990 $as_echo "$ac_cv_sizeof_short" >&6; }
25994 cat >>confdefs.h <<_ACEOF
25995 #define SIZEOF_SHORT $ac_cv_sizeof_short
25999 # The cast to long int works around a bug in the HP C Compiler
26000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26002 # This bug is HP SR number 8606223364.
26003 { $as_echo "$as_me:$LINENO: checking size of int" >&5
26004 $as_echo_n "checking size of int... " >&6; }
26005 if test "${ac_cv_sizeof_int+set}" = set; then
26006 $as_echo_n "(cached) " >&6
26008 if test "$cross_compiling" = yes; then
26009 # Depending upon the size, compute the lo and hi bounds.
26010 cat >conftest.$ac_ext <<_ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26016 $ac_includes_default
26020 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031 *) ac_try_echo=$ac_try;;
26033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 $as_echo "$ac_try_echo") >&5
26035 (eval "$ac_compile") 2>conftest.er1
26037 grep -v '^ *+' conftest.er1 >conftest.err
26039 cat conftest.err >&5
26040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } && {
26042 test -z "$ac_c_werror_flag" ||
26043 test ! -s conftest.err
26044 } && test -s conftest.$ac_objext; then
26047 cat >conftest.$ac_ext <<_ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h. */
26053 $ac_includes_default
26057 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26064 rm -f conftest.$ac_objext
26065 if { (ac_try="$ac_compile"
26066 case "(($ac_try" in
26067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068 *) ac_try_echo=$ac_try;;
26070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26071 $as_echo "$ac_try_echo") >&5
26072 (eval "$ac_compile") 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } && {
26079 test -z "$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26081 } && test -s conftest.$ac_objext; then
26082 ac_hi=$ac_mid; break
26084 $as_echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26087 ac_lo=`expr $ac_mid + 1`
26088 if test $ac_lo -le $ac_mid; then
26092 ac_mid=`expr 2 '*' $ac_mid + 1`
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 $as_echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26101 cat >conftest.$ac_ext <<_ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26107 $ac_includes_default
26111 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26125 $as_echo "$ac_try_echo") >&5
26126 (eval "$ac_compile") 2>conftest.er1
26128 grep -v '^ *+' conftest.er1 >conftest.err
26130 cat conftest.err >&5
26131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest.$ac_objext; then
26138 cat >conftest.$ac_ext <<_ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144 $ac_includes_default
26148 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
26155 rm -f conftest.$ac_objext
26156 if { (ac_try="$ac_compile"
26157 case "(($ac_try" in
26158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159 *) ac_try_echo=$ac_try;;
26161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26162 $as_echo "$ac_try_echo") >&5
26163 (eval "$ac_compile") 2>conftest.er1
26165 grep -v '^ *+' conftest.er1 >conftest.err
26167 cat conftest.err >&5
26168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } && {
26170 test -z "$ac_c_werror_flag" ||
26171 test ! -s conftest.err
26172 } && test -s conftest.$ac_objext; then
26173 ac_lo=$ac_mid; break
26175 $as_echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26178 ac_hi=`expr '(' $ac_mid ')' - 1`
26179 if test $ac_mid -le $ac_hi; then
26183 ac_mid=`expr 2 '*' $ac_mid`
26186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26189 $as_echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 # Binary search between lo and hi bounds.
26200 while test "x$ac_lo" != "x$ac_hi"; do
26201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26202 cat >conftest.$ac_ext <<_ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h. */
26208 $ac_includes_default
26212 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26219 rm -f conftest.$ac_objext
26220 if { (ac_try="$ac_compile"
26221 case "(($ac_try" in
26222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223 *) ac_try_echo=$ac_try;;
26225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26226 $as_echo "$ac_try_echo") >&5
26227 (eval "$ac_compile") 2>conftest.er1
26229 grep -v '^ *+' conftest.er1 >conftest.err
26231 cat conftest.err >&5
26232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } && {
26234 test -z "$ac_c_werror_flag" ||
26235 test ! -s conftest.err
26236 } && test -s conftest.$ac_objext; then
26239 $as_echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26242 ac_lo=`expr '(' $ac_mid ')' + 1`
26245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26248 ?*) ac_cv_sizeof_int=$ac_lo;;
26249 '') if test "$ac_cv_type_int" = yes; then
26250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26252 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26253 See \`config.log' for more details." >&5
26254 $as_echo "$as_me: error: cannot compute sizeof (int)
26255 See \`config.log' for more details." >&2;}
26256 { (exit 77); exit 77; }; }; }
26262 cat >conftest.$ac_ext <<_ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26269 static long int longval () { return (long int) (sizeof (int)); }
26270 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26272 #include <stdlib.h>
26277 FILE *f = fopen ("conftest.val", "w");
26280 if (((long int) (sizeof (int))) < 0)
26282 long int i = longval ();
26283 if (i != ((long int) (sizeof (int))))
26285 fprintf (f, "%ld", i);
26289 unsigned long int i = ulongval ();
26290 if (i != ((long int) (sizeof (int))))
26292 fprintf (f, "%lu", i);
26294 /* Do not output a trailing newline, as this causes \r\n confusion
26295 on some platforms. */
26296 return ferror (f) || fclose (f) != 0;
26302 rm -f conftest$ac_exeext
26303 if { (ac_try="$ac_link"
26304 case "(($ac_try" in
26305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306 *) ac_try_echo=$ac_try;;
26308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26309 $as_echo "$ac_try_echo") >&5
26310 (eval "$ac_link") 2>&5
26312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26314 { (case "(($ac_try" in
26315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26316 *) ac_try_echo=$ac_try;;
26318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26319 $as_echo "$ac_try_echo") >&5
26320 (eval "$ac_try") 2>&5
26322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 ac_cv_sizeof_int=`cat conftest.val`
26326 $as_echo "$as_me: program exited with status $ac_status" >&5
26327 $as_echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26330 ( exit $ac_status )
26331 if test "$ac_cv_type_int" = yes; then
26332 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26334 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26335 See \`config.log' for more details." >&5
26336 $as_echo "$as_me: error: cannot compute sizeof (int)
26337 See \`config.log' for more details." >&2;}
26338 { (exit 77); exit 77; }; }; }
26343 rm -rf conftest.dSYM
26344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26348 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26349 $as_echo "$ac_cv_sizeof_int" >&6; }
26353 cat >>confdefs.h <<_ACEOF
26354 #define SIZEOF_INT $ac_cv_sizeof_int
26358 # The cast to long int works around a bug in the HP C Compiler
26359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26361 # This bug is HP SR number 8606223364.
26362 { $as_echo "$as_me:$LINENO: checking size of long" >&5
26363 $as_echo_n "checking size of long... " >&6; }
26364 if test "${ac_cv_sizeof_long+set}" = set; then
26365 $as_echo_n "(cached) " >&6
26367 if test "$cross_compiling" = yes; then
26368 # Depending upon the size, compute the lo and hi bounds.
26369 cat >conftest.$ac_ext <<_ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h. */
26375 $ac_includes_default
26379 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
26386 rm -f conftest.$ac_objext
26387 if { (ac_try="$ac_compile"
26388 case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26393 $as_echo "$ac_try_echo") >&5
26394 (eval "$ac_compile") 2>conftest.er1
26396 grep -v '^ *+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } && {
26401 test -z "$ac_c_werror_flag" ||
26402 test ! -s conftest.err
26403 } && test -s conftest.$ac_objext; then
26406 cat >conftest.$ac_ext <<_ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 $ac_includes_default
26416 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26423 rm -f conftest.$ac_objext
26424 if { (ac_try="$ac_compile"
26425 case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430 $as_echo "$ac_try_echo") >&5
26431 (eval "$ac_compile") 2>conftest.er1
26433 grep -v '^ *+' conftest.er1 >conftest.err
26435 cat conftest.err >&5
26436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest.$ac_objext; then
26441 ac_hi=$ac_mid; break
26443 $as_echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26446 ac_lo=`expr $ac_mid + 1`
26447 if test $ac_lo -le $ac_mid; then
26451 ac_mid=`expr 2 '*' $ac_mid + 1`
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457 $as_echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 cat >conftest.$ac_ext <<_ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h. */
26466 $ac_includes_default
26470 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
26477 rm -f conftest.$ac_objext
26478 if { (ac_try="$ac_compile"
26479 case "(($ac_try" in
26480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481 *) ac_try_echo=$ac_try;;
26483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26484 $as_echo "$ac_try_echo") >&5
26485 (eval "$ac_compile") 2>conftest.er1
26487 grep -v '^ *+' conftest.er1 >conftest.err
26489 cat conftest.err >&5
26490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } && {
26492 test -z "$ac_c_werror_flag" ||
26493 test ! -s conftest.err
26494 } && test -s conftest.$ac_objext; then
26497 cat >conftest.$ac_ext <<_ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 $ac_includes_default
26507 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26514 rm -f conftest.$ac_objext
26515 if { (ac_try="$ac_compile"
26516 case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522 (eval "$ac_compile") 2>conftest.er1
26524 grep -v '^ *+' conftest.er1 >conftest.err
26526 cat conftest.err >&5
26527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); } && {
26529 test -z "$ac_c_werror_flag" ||
26530 test ! -s conftest.err
26531 } && test -s conftest.$ac_objext; then
26532 ac_lo=$ac_mid; break
26534 $as_echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26537 ac_hi=`expr '(' $ac_mid ')' - 1`
26538 if test $ac_mid -le $ac_hi; then
26542 ac_mid=`expr 2 '*' $ac_mid`
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26548 $as_echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26558 # Binary search between lo and hi bounds.
26559 while test "x$ac_lo" != "x$ac_hi"; do
26560 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26561 cat >conftest.$ac_ext <<_ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h. */
26567 $ac_includes_default
26571 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26578 rm -f conftest.$ac_objext
26579 if { (ac_try="$ac_compile"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26585 $as_echo "$ac_try_echo") >&5
26586 (eval "$ac_compile") 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } && {
26593 test -z "$ac_c_werror_flag" ||
26594 test ! -s conftest.err
26595 } && test -s conftest.$ac_objext; then
26598 $as_echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ac_lo=`expr '(' $ac_mid ')' + 1`
26604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26607 ?*) ac_cv_sizeof_long=$ac_lo;;
26608 '') if test "$ac_cv_type_long" = yes; then
26609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26611 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26612 See \`config.log' for more details." >&5
26613 $as_echo "$as_me: error: cannot compute sizeof (long)
26614 See \`config.log' for more details." >&2;}
26615 { (exit 77); exit 77; }; }; }
26617 ac_cv_sizeof_long=0
26621 cat >conftest.$ac_ext <<_ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26627 $ac_includes_default
26628 static long int longval () { return (long int) (sizeof (long)); }
26629 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26631 #include <stdlib.h>
26636 FILE *f = fopen ("conftest.val", "w");
26639 if (((long int) (sizeof (long))) < 0)
26641 long int i = longval ();
26642 if (i != ((long int) (sizeof (long))))
26644 fprintf (f, "%ld", i);
26648 unsigned long int i = ulongval ();
26649 if (i != ((long int) (sizeof (long))))
26651 fprintf (f, "%lu", i);
26653 /* Do not output a trailing newline, as this causes \r\n confusion
26654 on some platforms. */
26655 return ferror (f) || fclose (f) != 0;
26661 rm -f conftest$ac_exeext
26662 if { (ac_try="$ac_link"
26663 case "(($ac_try" in
26664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26665 *) ac_try_echo=$ac_try;;
26667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26668 $as_echo "$ac_try_echo") >&5
26669 (eval "$ac_link") 2>&5
26671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26673 { (case "(($ac_try" in
26674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26675 *) ac_try_echo=$ac_try;;
26677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26678 $as_echo "$ac_try_echo") >&5
26679 (eval "$ac_try") 2>&5
26681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; }; then
26683 ac_cv_sizeof_long=`cat conftest.val`
26685 $as_echo "$as_me: program exited with status $ac_status" >&5
26686 $as_echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ( exit $ac_status )
26690 if test "$ac_cv_type_long" = yes; then
26691 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26693 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26694 See \`config.log' for more details." >&5
26695 $as_echo "$as_me: error: cannot compute sizeof (long)
26696 See \`config.log' for more details." >&2;}
26697 { (exit 77); exit 77; }; }; }
26699 ac_cv_sizeof_long=0
26702 rm -rf conftest.dSYM
26703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26707 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26708 $as_echo "$ac_cv_sizeof_long" >&6; }
26712 cat >>confdefs.h <<_ACEOF
26713 #define SIZEOF_LONG $ac_cv_sizeof_long
26717 # The cast to long int works around a bug in the HP C Compiler
26718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26720 # This bug is HP SR number 8606223364.
26721 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
26722 $as_echo_n "checking size of size_t... " >&6; }
26723 if test "${ac_cv_sizeof_size_t+set}" = set; then
26724 $as_echo_n "(cached) " >&6
26726 if test "$cross_compiling" = yes; then
26727 # Depending upon the size, compute the lo and hi bounds.
26728 cat >conftest.$ac_ext <<_ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26734 $ac_includes_default
26738 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
26745 rm -f conftest.$ac_objext
26746 if { (ac_try="$ac_compile"
26747 case "(($ac_try" in
26748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26749 *) ac_try_echo=$ac_try;;
26751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26752 $as_echo "$ac_try_echo") >&5
26753 (eval "$ac_compile") 2>conftest.er1
26755 grep -v '^ *+' conftest.er1 >conftest.err
26757 cat conftest.err >&5
26758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); } && {
26760 test -z "$ac_c_werror_flag" ||
26761 test ! -s conftest.err
26762 } && test -s conftest.$ac_objext; then
26765 cat >conftest.$ac_ext <<_ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h. */
26771 $ac_includes_default
26775 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
26782 rm -f conftest.$ac_objext
26783 if { (ac_try="$ac_compile"
26784 case "(($ac_try" in
26785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26786 *) ac_try_echo=$ac_try;;
26788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26789 $as_echo "$ac_try_echo") >&5
26790 (eval "$ac_compile") 2>conftest.er1
26792 grep -v '^ *+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && {
26797 test -z "$ac_c_werror_flag" ||
26798 test ! -s conftest.err
26799 } && test -s conftest.$ac_objext; then
26800 ac_hi=$ac_mid; break
26802 $as_echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 ac_lo=`expr $ac_mid + 1`
26806 if test $ac_lo -le $ac_mid; then
26810 ac_mid=`expr 2 '*' $ac_mid + 1`
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26816 $as_echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26819 cat >conftest.$ac_ext <<_ACEOF
26822 cat confdefs.h >>conftest.$ac_ext
26823 cat >>conftest.$ac_ext <<_ACEOF
26824 /* end confdefs.h. */
26825 $ac_includes_default
26829 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
26836 rm -f conftest.$ac_objext
26837 if { (ac_try="$ac_compile"
26838 case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26843 $as_echo "$ac_try_echo") >&5
26844 (eval "$ac_compile") 2>conftest.er1
26846 grep -v '^ *+' conftest.er1 >conftest.err
26848 cat conftest.err >&5
26849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } && {
26851 test -z "$ac_c_werror_flag" ||
26852 test ! -s conftest.err
26853 } && test -s conftest.$ac_objext; then
26856 cat >conftest.$ac_ext <<_ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h. */
26862 $ac_includes_default
26866 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26880 $as_echo "$ac_try_echo") >&5
26881 (eval "$ac_compile") 2>conftest.er1
26883 grep -v '^ *+' conftest.er1 >conftest.err
26885 cat conftest.err >&5
26886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } && {
26888 test -z "$ac_c_werror_flag" ||
26889 test ! -s conftest.err
26890 } && test -s conftest.$ac_objext; then
26891 ac_lo=$ac_mid; break
26893 $as_echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26896 ac_hi=`expr '(' $ac_mid ')' - 1`
26897 if test $ac_mid -le $ac_hi; then
26901 ac_mid=`expr 2 '*' $ac_mid`
26904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26907 $as_echo "$as_me: failed program was:" >&5
26908 sed 's/^/| /' conftest.$ac_ext >&5
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 # Binary search between lo and hi bounds.
26918 while test "x$ac_lo" != "x$ac_hi"; do
26919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26920 cat >conftest.$ac_ext <<_ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26926 $ac_includes_default
26930 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
26937 rm -f conftest.$ac_objext
26938 if { (ac_try="$ac_compile"
26939 case "(($ac_try" in
26940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941 *) ac_try_echo=$ac_try;;
26943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26944 $as_echo "$ac_try_echo") >&5
26945 (eval "$ac_compile") 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } && {
26952 test -z "$ac_c_werror_flag" ||
26953 test ! -s conftest.err
26954 } && test -s conftest.$ac_objext; then
26957 $as_echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26960 ac_lo=`expr '(' $ac_mid ')' + 1`
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966 ?*) ac_cv_sizeof_size_t=$ac_lo;;
26967 '') if test "$ac_cv_type_size_t" = yes; then
26968 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26970 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
26971 See \`config.log' for more details." >&5
26972 $as_echo "$as_me: error: cannot compute sizeof (size_t)
26973 See \`config.log' for more details." >&2;}
26974 { (exit 77); exit 77; }; }; }
26976 ac_cv_sizeof_size_t=0
26980 cat >conftest.$ac_ext <<_ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h. */
26986 $ac_includes_default
26987 static long int longval () { return (long int) (sizeof (size_t)); }
26988 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
26990 #include <stdlib.h>
26995 FILE *f = fopen ("conftest.val", "w");
26998 if (((long int) (sizeof (size_t))) < 0)
27000 long int i = longval ();
27001 if (i != ((long int) (sizeof (size_t))))
27003 fprintf (f, "%ld", i);
27007 unsigned long int i = ulongval ();
27008 if (i != ((long int) (sizeof (size_t))))
27010 fprintf (f, "%lu", i);
27012 /* Do not output a trailing newline, as this causes \r\n confusion
27013 on some platforms. */
27014 return ferror (f) || fclose (f) != 0;
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028 (eval "$ac_link") 2>&5
27030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27032 { (case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27037 $as_echo "$ac_try_echo") >&5
27038 (eval "$ac_try") 2>&5
27040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042 ac_cv_sizeof_size_t=`cat conftest.val`
27044 $as_echo "$as_me: program exited with status $ac_status" >&5
27045 $as_echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ( exit $ac_status )
27049 if test "$ac_cv_type_size_t" = yes; then
27050 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27052 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27053 See \`config.log' for more details." >&5
27054 $as_echo "$as_me: error: cannot compute sizeof (size_t)
27055 See \`config.log' for more details." >&2;}
27056 { (exit 77); exit 77; }; }; }
27058 ac_cv_sizeof_size_t=0
27061 rm -rf conftest.dSYM
27062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27066 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27067 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27071 cat >>confdefs.h <<_ACEOF
27072 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27076 # The cast to long int works around a bug in the HP C Compiler
27077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27079 # This bug is HP SR number 8606223364.
27080 { $as_echo "$as_me:$LINENO: checking size of socklen_t" >&5
27081 $as_echo_n "checking size of socklen_t... " >&6; }
27082 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
27083 $as_echo_n "(cached) " >&6
27085 if test "$cross_compiling" = yes; then
27086 # Depending upon the size, compute the lo and hi bounds.
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 $ac_includes_default
27097 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= 0)];
27104 rm -f conftest.$ac_objext
27105 if { (ac_try="$ac_compile"
27106 case "(($ac_try" in
27107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108 *) ac_try_echo=$ac_try;;
27110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27111 $as_echo "$ac_try_echo") >&5
27112 (eval "$ac_compile") 2>conftest.er1
27114 grep -v '^ *+' conftest.er1 >conftest.err
27116 cat conftest.err >&5
27117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } && {
27119 test -z "$ac_c_werror_flag" ||
27120 test ! -s conftest.err
27121 } && test -s conftest.$ac_objext; then
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27130 $ac_includes_default
27134 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27141 rm -f conftest.$ac_objext
27142 if { (ac_try="$ac_compile"
27143 case "(($ac_try" in
27144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145 *) ac_try_echo=$ac_try;;
27147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27148 $as_echo "$ac_try_echo") >&5
27149 (eval "$ac_compile") 2>conftest.er1
27151 grep -v '^ *+' conftest.er1 >conftest.err
27153 cat conftest.err >&5
27154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
27159 ac_hi=$ac_mid; break
27161 $as_echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27164 ac_lo=`expr $ac_mid + 1`
27165 if test $ac_lo -le $ac_mid; then
27169 ac_mid=`expr 2 '*' $ac_mid + 1`
27172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27175 $as_echo "$as_me: failed program was:" >&5
27176 sed 's/^/| /' conftest.$ac_ext >&5
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27184 $ac_includes_default
27188 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) < 0)];
27195 rm -f conftest.$ac_objext
27196 if { (ac_try="$ac_compile"
27197 case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27202 $as_echo "$ac_try_echo") >&5
27203 (eval "$ac_compile") 2>conftest.er1
27205 grep -v '^ *+' conftest.er1 >conftest.err
27207 cat conftest.err >&5
27208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } && {
27210 test -z "$ac_c_werror_flag" ||
27211 test ! -s conftest.err
27212 } && test -s conftest.$ac_objext; then
27215 cat >conftest.$ac_ext <<_ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h. */
27221 $ac_includes_default
27225 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) >= $ac_mid)];
27232 rm -f conftest.$ac_objext
27233 if { (ac_try="$ac_compile"
27234 case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27239 $as_echo "$ac_try_echo") >&5
27240 (eval "$ac_compile") 2>conftest.er1
27242 grep -v '^ *+' conftest.er1 >conftest.err
27244 cat conftest.err >&5
27245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } && {
27247 test -z "$ac_c_werror_flag" ||
27248 test ! -s conftest.err
27249 } && test -s conftest.$ac_objext; then
27250 ac_lo=$ac_mid; break
27252 $as_echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27255 ac_hi=`expr '(' $ac_mid ')' - 1`
27256 if test $ac_mid -le $ac_hi; then
27260 ac_mid=`expr 2 '*' $ac_mid`
27263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27266 $as_echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276 # Binary search between lo and hi bounds.
27277 while test "x$ac_lo" != "x$ac_hi"; do
27278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27279 cat >conftest.$ac_ext <<_ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h. */
27285 $ac_includes_default
27289 static int test_array [1 - 2 * !(((long int) (sizeof (socklen_t))) <= $ac_mid)];
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304 (eval "$ac_compile") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest.$ac_objext; then
27316 $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_lo=`expr '(' $ac_mid ')' + 1`
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
27326 '') if test "$ac_cv_type_socklen_t" = yes; then
27327 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27329 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27330 See \`config.log' for more details." >&5
27331 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27332 See \`config.log' for more details." >&2;}
27333 { (exit 77); exit 77; }; }; }
27335 ac_cv_sizeof_socklen_t=0
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27345 $ac_includes_default
27346 static long int longval () { return (long int) (sizeof (socklen_t)); }
27347 static unsigned long int ulongval () { return (long int) (sizeof (socklen_t)); }
27349 #include <stdlib.h>
27354 FILE *f = fopen ("conftest.val", "w");
27357 if (((long int) (sizeof (socklen_t))) < 0)
27359 long int i = longval ();
27360 if (i != ((long int) (sizeof (socklen_t))))
27362 fprintf (f, "%ld", i);
27366 unsigned long int i = ulongval ();
27367 if (i != ((long int) (sizeof (socklen_t))))
27369 fprintf (f, "%lu", i);
27371 /* Do not output a trailing newline, as this causes \r\n confusion
27372 on some platforms. */
27373 return ferror (f) || fclose (f) != 0;
27379 rm -f conftest$ac_exeext
27380 if { (ac_try="$ac_link"
27381 case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27386 $as_echo "$ac_try_echo") >&5
27387 (eval "$ac_link") 2>&5
27389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27391 { (case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27396 $as_echo "$ac_try_echo") >&5
27397 (eval "$ac_try") 2>&5
27399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ac_cv_sizeof_socklen_t=`cat conftest.val`
27403 $as_echo "$as_me: program exited with status $ac_status" >&5
27404 $as_echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27407 ( exit $ac_status )
27408 if test "$ac_cv_type_socklen_t" = yes; then
27409 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27411 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
27412 See \`config.log' for more details." >&5
27413 $as_echo "$as_me: error: cannot compute sizeof (socklen_t)
27414 See \`config.log' for more details." >&2;}
27415 { (exit 77); exit 77; }; }; }
27417 ac_cv_sizeof_socklen_t=0
27420 rm -rf conftest.dSYM
27421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
27426 $as_echo "$ac_cv_sizeof_socklen_t" >&6; }
27430 cat >>confdefs.h <<_ACEOF
27431 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
27438 cat >>confdefs.h <<_ACEOF
27439 #define NFS_STATEDIR "$statedir"
27443 if test "x$cross_compiling" = "xno"; then
27444 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27445 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27446 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27447 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27449 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27450 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27451 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27452 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27470 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
27472 AM_CFLAGS="$my_am_cflags"
27475 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27476 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27479 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/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"
27481 cat >confcache <<\_ACEOF
27482 # This file is a shell script that caches the results of configure
27483 # tests run on this system so they can be shared between configure
27484 # scripts and configure runs, see configure's option --config-cache.
27485 # It is not useful on other systems. If it contains results you don't
27486 # want to keep, you may remove or edit it.
27488 # config.status only pays attention to the cache file if you give it
27489 # the --recheck option to rerun configure.
27491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27493 # following values.
27497 # The following way of writing the cache mishandles newlines in values,
27498 # but we know of no workaround that is simple, portable, and efficient.
27499 # So, we kill variables containing newlines.
27500 # Ultrix sh set writes to stderr and can't be redirected directly,
27501 # and sets the high bit in the cache file unless we assign to the vars.
27503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27504 eval ac_val=\$$ac_var
27508 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27512 _ | IFS | as_nl) ;; #(
27513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27514 *) $as_unset $ac_var ;;
27520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27521 *${as_nl}ac_space=\ *)
27522 # `set' does not quote correctly, so add quotes (double-quote
27523 # substitution turns \\\\ into \\, and sed turns \\ into \).
27526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27529 # `set' quotes correctly as required by POSIX, so do not add quotes.
27530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27544 if test -w "$cache_file"; then
27545 test "x$cache_file" != "x/dev/null" &&
27546 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27547 $as_echo "$as_me: updating cache $cache_file" >&6;}
27548 cat confcache >$cache_file
27550 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27557 # Let make expand exec_prefix.
27558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27560 DEFS=-DHAVE_CONFIG_H
27564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27565 # 1. Remove the extension, and $U if already installed.
27566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27569 # will be set to the directory where LIBOBJS objects are built.
27570 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27571 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27573 LIBOBJS=$ac_libobjs
27575 LTLIBOBJS=$ac_ltlibobjs
27578 if test -n "$EXEEXT"; then
27580 am__EXEEXT_FALSE='#'
27582 am__EXEEXT_TRUE='#'
27586 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27587 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27588 Usually this means the macro was only invoked conditionally." >&5
27589 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27590 Usually this means the macro was only invoked conditionally." >&2;}
27591 { (exit 1); exit 1; }; }
27593 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27594 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27595 Usually this means the macro was only invoked conditionally." >&5
27596 $as_echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27597 Usually this means the macro was only invoked conditionally." >&2;}
27598 { (exit 1); exit 1; }; }
27600 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27601 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27602 Usually this means the macro was only invoked conditionally." >&5
27603 $as_echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27604 Usually this means the macro was only invoked conditionally." >&2;}
27605 { (exit 1); exit 1; }; }
27607 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
27608 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
27609 Usually this means the macro was only invoked conditionally." >&5
27610 $as_echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
27611 Usually this means the macro was only invoked conditionally." >&2;}
27612 { (exit 1); exit 1; }; }
27614 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
27615 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
27616 Usually this means the macro was only invoked conditionally." >&5
27617 $as_echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
27618 Usually this means the macro was only invoked conditionally." >&2;}
27619 { (exit 1); exit 1; }; }
27621 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
27622 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
27623 Usually this means the macro was only invoked conditionally." >&5
27624 $as_echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
27625 Usually this means the macro was only invoked conditionally." >&2;}
27626 { (exit 1); exit 1; }; }
27628 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27629 { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27630 Usually this means the macro was only invoked conditionally." >&5
27631 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27632 Usually this means the macro was only invoked conditionally." >&2;}
27633 { (exit 1); exit 1; }; }
27635 if test -z "${MOUNT_CONFIG_TRUE}" && test -z "${MOUNT_CONFIG_FALSE}"; then
27636 { { $as_echo "$as_me:$LINENO: error: conditional \"MOUNT_CONFIG\" was never defined.
27637 Usually this means the macro was only invoked conditionally." >&5
27638 $as_echo "$as_me: error: conditional \"MOUNT_CONFIG\" was never defined.
27639 Usually this means the macro was only invoked conditionally." >&2;}
27640 { (exit 1); exit 1; }; }
27642 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27643 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27644 Usually this means the macro was only invoked conditionally." >&5
27645 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27646 Usually this means the macro was only invoked conditionally." >&2;}
27647 { (exit 1); exit 1; }; }
27649 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27650 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27651 Usually this means the macro was only invoked conditionally." >&5
27652 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27653 Usually this means the macro was only invoked conditionally." >&2;}
27654 { (exit 1); exit 1; }; }
27656 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27657 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27658 Usually this means the macro was only invoked conditionally." >&5
27659 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27660 Usually this means the macro was only invoked conditionally." >&2;}
27661 { (exit 1); exit 1; }; }
27663 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27664 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27665 Usually this means the macro was only invoked conditionally." >&5
27666 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27667 Usually this means the macro was only invoked conditionally." >&2;}
27668 { (exit 1); exit 1; }; }
27670 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27671 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27672 Usually this means the macro was only invoked conditionally." >&5
27673 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27674 Usually this means the macro was only invoked conditionally." >&2;}
27675 { (exit 1); exit 1; }; }
27678 : ${CONFIG_STATUS=./config.status}
27680 ac_clean_files_save=$ac_clean_files
27681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27682 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27684 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27686 # Generated by $as_me.
27687 # Run this file to recreate the current configuration.
27688 # Compiler output produced by configure, useful for debugging
27689 # configure, is in config.log if it exists.
27692 ac_cs_recheck=false
27694 SHELL=\${CONFIG_SHELL-$SHELL}
27697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27698 ## --------------------- ##
27699 ## M4sh Initialization. ##
27700 ## --------------------- ##
27702 # Be more Bourne compatible
27703 DUALCASE=1; export DUALCASE # for MKS sh
27704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27708 # is contrary to our usage. Disable this feature.
27709 alias -g '${1+"$@"}'='"$@"'
27710 setopt NO_GLOB_SUBST
27712 case `(set -o) 2>/dev/null` in
27713 *posix*) set -o posix ;;
27722 # Avoid depending upon Character Ranges.
27723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27726 as_cr_digits='0123456789'
27727 as_cr_alnum=$as_cr_Letters$as_cr_digits
27732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27736 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27737 as_echo='printf %s\n'
27738 as_echo_n='printf %s'
27740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27742 as_echo_n='/usr/ucb/echo -n'
27744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27745 as_echo_n_body='eval
27749 expr "X$arg" : "X\\(.*\\)$as_nl";
27750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27754 export as_echo_n_body
27755 as_echo_n='sh -c $as_echo_n_body as_echo'
27757 export as_echo_body
27758 as_echo='sh -c $as_echo_body as_echo'
27761 # The user is always right.
27762 if test "${PATH_SEPARATOR+set}" != set; then
27764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27770 # Support unset when possible.
27771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27779 # We need space, tab and new line, in precisely that order. Quoting is
27780 # there to prevent editors from complaining about space-tab.
27781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27782 # splitting by setting IFS to empty value.)
27785 # Find who we are. Look in the path if we contain no directory separator.
27787 *[\\/]* ) as_myself=$0 ;;
27788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27789 for as_dir in $PATH
27792 test -z "$as_dir" && as_dir=.
27793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27799 # We did not find ourselves, most probably we were run as `sh COMMAND'
27800 # in which case we are not to be found in the path.
27801 if test "x$as_myself" = x; then
27804 if test ! -f "$as_myself"; then
27805 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27806 { (exit 1); exit 1; }
27809 # Work around bugs in pre-3.0 UWIN ksh.
27810 for as_var in ENV MAIL MAILPATH
27811 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27823 # Required to use basename.
27824 if expr a : '\(a\)' >/dev/null 2>&1 &&
27825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27832 as_basename=basename
27838 # Name of the executable.
27839 as_me=`$as_basename -- "$0" ||
27840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27841 X"$0" : 'X\(//\)$' \| \
27842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27844 sed '/^.*\/\([^/][^/]*\)\/*$/{
27863 as_lineno_1=$LINENO
27864 as_lineno_2=$LINENO
27865 test "x$as_lineno_1" != "x$as_lineno_2" &&
27866 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27869 # uniformly replaced by the line number. The first 'sed' inserts a
27870 # line-number line after each line using $LINENO; the second 'sed'
27871 # does the real work. The second script uses 'N' to pair each
27872 # line-number line with the line containing $LINENO, and appends
27873 # trailing '-' during substitution so that $LINENO is not a special
27874 # case at line end.
27875 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27876 # scripts with optimization help from Paolo Bonzini. Blame Lee
27877 # E. McMahon (1931-1989) for sed's syntax. :-)
27889 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27892 ' >$as_me.lineno &&
27893 chmod +x "$as_me.lineno" ||
27894 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27895 { (exit 1); exit 1; }; }
27897 # Don't try to exec as it changes $[0], causing all sort of problems
27898 # (the dirname of $[0] is not the place where we might find the
27899 # original and so on. Autoconf is especially sensitive to this).
27900 . "./$as_me.lineno"
27901 # Exit status is that of the last command.
27906 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27912 ECHO_C= ECHO_N= ECHO_T=
27913 case `echo -n x` in
27915 case `echo 'x\c'` in
27916 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27922 if expr a : '\(a\)' >/dev/null 2>&1 &&
27923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27929 rm -f conf$$ conf$$.exe conf$$.file
27930 if test -d conf$$.dir; then
27931 rm -f conf$$.dir/conf$$.file
27934 mkdir conf$$.dir 2>/dev/null
27936 if (echo >conf$$.file) 2>/dev/null; then
27937 if ln -s conf$$.file conf$$ 2>/dev/null; then
27939 # ... but there are two gotchas:
27940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27942 # In both cases, we have to default to `cp -p'.
27943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27945 elif ln conf$$.file conf$$ 2>/dev/null; then
27953 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27954 rmdir conf$$.dir 2>/dev/null
27956 if mkdir -p . 2>/dev/null; then
27959 test -d ./-p && rmdir ./-p
27963 if test -x / >/dev/null 2>&1; then
27964 as_test_x='test -x'
27966 if ls -dL / >/dev/null 2>&1; then
27973 if test -d "$1"; then
27979 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27980 ???[sx]*):;;*)false;;esac;fi
27984 as_executable_p=$as_test_x
27986 # Sed expression to map a string onto a valid CPP name.
27987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27989 # Sed expression to map a string onto a valid variable name.
27990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27995 # Save the log message, to keep $[0] and so on meaningful, and to
27996 # report actual input values of CONFIG_FILES etc. instead of their
27997 # values after options handling.
27999 This file was extended by linux nfs-utils $as_me 1.2.1, which was
28000 generated by GNU Autoconf 2.63. Invocation command line was
28002 CONFIG_FILES = $CONFIG_FILES
28003 CONFIG_HEADERS = $CONFIG_HEADERS
28004 CONFIG_LINKS = $CONFIG_LINKS
28005 CONFIG_COMMANDS = $CONFIG_COMMANDS
28008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28013 case $ac_config_files in *"
28014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28017 case $ac_config_headers in *"
28018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28023 # Files that config.status was made for.
28024 config_files="$ac_config_files"
28025 config_headers="$ac_config_headers"
28026 config_commands="$ac_config_commands"
28030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28032 \`$as_me' instantiates files from templates according to the
28033 current configuration.
28035 Usage: $0 [OPTION]... [FILE]...
28037 -h, --help print this help, then exit
28038 -V, --version print version number and configuration settings, then exit
28039 -q, --quiet, --silent
28040 do not print progress messages
28041 -d, --debug don't remove temporary files
28042 --recheck update $as_me by reconfiguring in the same conditions
28043 --file=FILE[:TEMPLATE]
28044 instantiate the configuration file FILE
28045 --header=FILE[:TEMPLATE]
28046 instantiate the configuration header FILE
28048 Configuration files:
28051 Configuration headers:
28054 Configuration commands:
28057 Report bugs to <bug-autoconf@gnu.org>."
28060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28062 linux nfs-utils config.status 1.2.1
28063 configured by $0, generated by GNU Autoconf 2.63,
28064 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28066 Copyright (C) 2008 Free Software Foundation, Inc.
28067 This config.status script is free software; the Free Software Foundation
28068 gives unlimited permission to copy, distribute and modify it."
28075 test -n "\$AWK" || AWK=awk
28078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28079 # The default lists apply if the user does not specify any file.
28085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28097 # Handling of the options.
28098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28101 $as_echo "$ac_cs_version"; exit ;;
28102 --debug | --debu | --deb | --de | --d | -d )
28104 --file | --fil | --fi | --f )
28107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28109 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
28110 ac_need_defaults=false;;
28111 --header | --heade | --head | --hea )
28114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28116 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
28117 ac_need_defaults=false;;
28119 # Conflict between --help and --header
28120 { $as_echo "$as_me: error: ambiguous option: $1
28121 Try \`$0 --help' for more information." >&2
28122 { (exit 1); exit 1; }; };;
28123 --help | --hel | -h )
28124 $as_echo "$ac_cs_usage"; exit ;;
28125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28129 # This is an error.
28130 -*) { $as_echo "$as_me: error: unrecognized option: $1
28131 Try \`$0 --help' for more information." >&2
28132 { (exit 1); exit 1; }; } ;;
28134 *) ac_config_targets="$ac_config_targets $1"
28135 ac_need_defaults=false ;;
28141 ac_configure_extra_args=
28143 if $ac_cs_silent; then
28145 ac_configure_extra_args="$ac_configure_extra_args --silent"
28149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28150 if \$ac_cs_recheck; then
28151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28154 CONFIG_SHELL='$SHELL'
28155 export CONFIG_SHELL
28160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28165 ## Running $as_me. ##
28171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28178 # The HP-UX ksh and POSIX shell print the target directory to stdout
28179 # if CDPATH is set.
28180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28182 sed_quote_subst='$sed_quote_subst'
28183 double_quote_subst='$double_quote_subst'
28184 delay_variable_subst='$delay_variable_subst'
28185 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28186 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28187 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28188 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28189 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28190 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28191 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28192 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28193 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28194 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28195 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28196 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28197 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28198 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28199 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28200 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28201 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28202 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28203 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28204 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28205 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28206 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28207 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28208 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28209 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28210 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28211 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28212 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28213 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28214 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28215 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28216 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28217 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28218 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28219 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28220 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28221 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28222 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28223 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28224 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28225 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28226 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28227 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28228 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28229 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"`'
28230 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"`'
28231 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28232 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28233 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28234 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28235 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28236 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28237 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28238 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28239 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28240 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28241 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28242 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28243 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28244 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28245 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28246 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28247 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28248 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28249 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28250 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28251 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28252 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28253 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28254 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28255 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28256 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28257 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28258 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28259 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28260 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28261 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28262 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28263 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28264 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28265 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28266 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28267 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28268 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28269 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28270 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28271 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28272 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28273 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28274 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28275 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28276 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28277 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28278 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28279 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28280 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28281 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28282 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28283 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28284 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28285 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28286 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28287 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28288 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28289 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28290 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28291 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28292 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28293 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28294 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28295 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28296 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28297 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28298 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28299 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28300 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28301 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28302 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28303 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
28304 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28305 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28306 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28307 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28308 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28309 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28310 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28311 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28312 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28313 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28314 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28315 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28316 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28317 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28318 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28319 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28320 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28321 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28322 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28323 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28324 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28325 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28326 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28327 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28328 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28329 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28330 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28331 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28332 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28333 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28334 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28335 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28336 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28337 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28338 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28339 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28340 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28341 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28342 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28343 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28344 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28345 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28346 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28347 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28348 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28349 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28350 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28351 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28352 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28353 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28354 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28355 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28358 LTCFLAGS='$LTCFLAGS'
28359 compiler='$compiler_DEFAULT'
28361 # Quote evaled strings.
28373 deplibs_check_method \
28382 lt_cv_sys_global_symbol_pipe \
28383 lt_cv_sys_global_symbol_to_cdecl \
28384 lt_cv_sys_global_symbol_to_c_name_address \
28385 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28388 lt_prog_compiler_no_builtin_flag \
28389 lt_prog_compiler_wl \
28390 lt_prog_compiler_pic \
28391 lt_prog_compiler_static \
28392 lt_cv_prog_compiler_c_o \
28400 export_dynamic_flag_spec \
28401 whole_archive_flag_spec \
28402 compiler_needs_object \
28404 allow_undefined_flag \
28405 no_undefined_flag \
28406 hardcode_libdir_flag_spec \
28407 hardcode_libdir_flag_spec_ld \
28408 hardcode_libdir_separator \
28413 variables_saved_for_relink \
28415 library_names_spec \
28420 compiler_lib_search_dirs \
28425 compiler_lib_search_path \
28428 lt_prog_compiler_no_builtin_flag_CXX \
28429 lt_prog_compiler_wl_CXX \
28430 lt_prog_compiler_pic_CXX \
28431 lt_prog_compiler_static_CXX \
28432 lt_cv_prog_compiler_c_o_CXX \
28433 export_dynamic_flag_spec_CXX \
28434 whole_archive_flag_spec_CXX \
28435 compiler_needs_object_CXX \
28437 allow_undefined_flag_CXX \
28438 no_undefined_flag_CXX \
28439 hardcode_libdir_flag_spec_CXX \
28440 hardcode_libdir_flag_spec_ld_CXX \
28441 hardcode_libdir_separator_CXX \
28442 fix_srcfile_path_CXX \
28443 exclude_expsyms_CXX \
28444 include_expsyms_CXX \
28445 file_list_spec_CXX \
28446 compiler_lib_search_dirs_CXX \
28447 predep_objects_CXX \
28448 postdep_objects_CXX \
28451 compiler_lib_search_path_CXX; do
28452 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28453 *[\\\\\\\`\\"\\\$]*)
28454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28462 # Double-quote double-evaled strings.
28463 for var in reload_cmds \
28464 old_postinstall_cmds \
28465 old_postuninstall_cmds \
28467 extract_expsyms_cmds \
28468 old_archive_from_new_cmds \
28469 old_archive_from_expsyms_cmds \
28471 archive_expsym_cmds \
28473 module_expsym_cmds \
28474 export_symbols_cmds \
28477 postuninstall_cmds \
28479 sys_lib_search_path_spec \
28480 sys_lib_dlsearch_path_spec \
28481 old_archive_cmds_CXX \
28482 old_archive_from_new_cmds_CXX \
28483 old_archive_from_expsyms_cmds_CXX \
28485 archive_expsym_cmds_CXX \
28487 module_expsym_cmds_CXX \
28488 export_symbols_cmds_CXX \
28489 prelink_cmds_CXX; do
28490 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28491 *[\\\\\\\`\\"\\\$]*)
28492 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28495 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28500 # Fix-up fallback echo if it was mangled by the above quoting rules.
28502 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28506 ac_aux_dir='$ac_aux_dir'
28507 xsi_shell='$xsi_shell'
28508 lt_shell_append='$lt_shell_append'
28510 # See if we are running on zsh, and set the options which allow our
28511 # commands through without removal of \ escapes INIT.
28512 if test -n "\${ZSH_VERSION+set}" ; then
28513 setopt NO_GLOB_SUBST
28519 TIMESTAMP='$TIMESTAMP'
28530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28532 # Handling of arguments.
28533 for ac_config_target in $ac_config_targets
28535 case $ac_config_target in
28536 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28537 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28538 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28540 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28541 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28542 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28543 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28544 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28545 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28546 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28547 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28548 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28549 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28550 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28551 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28552 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28553 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28554 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28555 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28556 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28557 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28558 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28559 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
28560 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28561 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28562 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28563 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28564 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28566 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28567 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28568 { (exit 1); exit 1; }; };;
28573 # If the user did not use the arguments to specify the items to instantiate,
28574 # then the envvar interface is used. Set only those that are not.
28575 # We use the long form for the default assignment because of an extremely
28576 # bizarre bug on SunOS 4.1.3.
28577 if $ac_need_defaults; then
28578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28579 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28583 # Have a temporary directory for convenience. Make it in the build tree
28584 # simply because there is no reason against having it here, and in addition,
28585 # creating and moving files from /tmp can sometimes cause problems.
28586 # Hook for its removal unless debugging.
28587 # Note that there is a small window in which the directory will not be cleaned:
28588 # after its creation but before its name has been assigned to `$tmp'.
28592 trap 'exit_status=$?
28593 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28595 trap '{ (exit 1); exit 1; }' 1 2 13 15
28597 # Create a (secure) tmp directory for tmp files.
28600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28601 test -n "$tmp" && test -d "$tmp"
28604 tmp=./conf$$-$RANDOM
28605 (umask 077 && mkdir "$tmp")
28608 $as_echo "$as_me: cannot create a temporary directory in ." >&2
28609 { (exit 1); exit 1; }
28612 # Set up the scripts for CONFIG_FILES section.
28613 # No need to generate them if there are no CONFIG_FILES.
28614 # This happens for instance with `./config.status config.h'.
28615 if test -n "$CONFIG_FILES"; then
28619 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28620 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28623 ac_cs_awk_cr=$ac_cr
28626 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28631 echo "cat >conf$$subs.awk <<_ACEOF" &&
28632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28634 } >conf$$subs.sh ||
28635 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28636 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28637 { (exit 1); exit 1; }; }
28638 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28640 for ac_last_try in false false false false false :; do
28641 . ./conf$$subs.sh ||
28642 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28643 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28644 { (exit 1); exit 1; }; }
28646 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28647 if test $ac_delim_n = $ac_delim_num; then
28649 elif $ac_last_try; then
28650 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28651 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28652 { (exit 1); exit 1; }; }
28654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28657 rm -f conf$$subs.sh
28659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28660 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28664 s/^/S["/; s/!.*/"]=/
28674 s/\(.\{148\}\).*/\1/
28676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28688 s/\(.\{148\}\).*/\1/
28690 s/["\\]/\\&/g; s/^/"/; s/$/"/
28694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28699 ' <conf$$subs.awk | sed '
28704 ' >>$CONFIG_STATUS || ac_write_fail=1
28705 rm -f conf$$subs.awk
28706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28708 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28709 for (key in S) S_is_set[key] = 1
28715 nfields = split(line, field, "@")
28717 len = length(field[1])
28718 for (i = 2; i < nfields; i++) {
28720 keylen = length(key)
28721 if (S_is_set[key]) {
28723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28724 len += length(value) + length(field[++i])
28735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28736 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28737 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28740 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28741 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
28742 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
28743 { (exit 1); exit 1; }; }
28746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28748 # trailing colons and then remove the whole line if VPATH becomes empty
28749 # (actually we leave an empty line to preserve line numbers).
28750 if test "x$srcdir" = x.; then
28751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28752 s/:*\$(srcdir):*/:/
28753 s/:*\${srcdir}:*/:/
28755 s/^\([^=]*=[ ]*\):*/\1/
28761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28762 fi # test -n "$CONFIG_FILES"
28764 # Set up the scripts for CONFIG_HEADERS section.
28765 # No need to generate them if there are no CONFIG_HEADERS.
28766 # This happens for instance with `./config.status Makefile'.
28767 if test -n "$CONFIG_HEADERS"; then
28768 cat >"$tmp/defines.awk" <<\_ACAWK ||
28772 # Transform confdefs.h into an awk script `defines.awk', embedded as
28773 # here-document in config.status, that substitutes the proper values into
28774 # config.h.in to produce config.h.
28776 # Create a delimiter string that does not exist in confdefs.h, to ease
28777 # handling of long lines.
28779 for ac_last_try in false false :; do
28780 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28781 if test -z "$ac_t"; then
28783 elif $ac_last_try; then
28784 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
28785 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
28786 { (exit 1); exit 1; }; }
28788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28792 # For the awk script, D is an array of macro values keyed by name,
28793 # likewise P contains macro parameters if any. Preserve backslash
28794 # newline sequences.
28796 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28798 s/.\{148\}/&'"$ac_delim"'/g
28801 s/^[ ]*#[ ]*define[ ][ ]*/ /
28808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28810 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28815 D["\1"]=" \3\\\\\\n"\\/p
28817 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28822 s/.\{148\}/&'"$ac_delim"'/g
28827 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28830 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28832 ' <confdefs.h | sed '
28833 s/'"$ac_delim"'/"\\\
28834 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28837 for (key in D) D_is_set[key] = 1
28840 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28842 split(line, arg, " ")
28843 if (arg[1] == "#") {
28847 defundef = substr(arg[1], 2)
28850 split(mac1, mac2, "(") #)
28852 prefix = substr(line, 1, index(line, defundef) - 1)
28853 if (D_is_set[macro]) {
28854 # Preserve the white space surrounding the "#".
28855 print prefix "define", macro P[macro] D[macro]
28858 # Replace #undef with comments. This is necessary, for example,
28859 # in the case of _POSIX_SOURCE, which is predefined and required
28860 # on some systems where configure will not decide to define it.
28861 if (defundef == "undef") {
28862 print "/*", prefix defundef, macro, "*/"
28870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28871 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28872 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28873 { (exit 1); exit 1; }; }
28874 fi # test -n "$CONFIG_HEADERS"
28877 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28882 :[FHLC]) ac_mode=$ac_tag; continue;;
28884 case $ac_mode$ac_tag in
28886 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28887 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
28888 { (exit 1); exit 1; }; };;
28889 :[FH]-) ac_tag=-:-;;
28890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28907 -) ac_f="$tmp/stdin";;
28908 *) # Look for the file first in the build tree, then in the source tree
28909 # (if the path is not absolute). The absolute path cannot be DOS-style,
28910 # because $ac_f cannot contain `:'.
28914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28916 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28917 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28918 { (exit 1); exit 1; }; };;
28920 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28921 ac_file_inputs="$ac_file_inputs '$ac_f'"
28924 # Let's still pretend it is `configure' which instantiates (i.e., don't
28925 # use $as_me), people would be surprised to read:
28926 # /* config.h. Generated by config.status. */
28927 configure_input='Generated from '`
28928 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28930 if test x"$ac_file" != x-; then
28931 configure_input="$ac_file. $configure_input"
28932 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28933 $as_echo "$as_me: creating $ac_file" >&6;}
28935 # Neutralize special characters interpreted by sed in replacement strings.
28936 case $configure_input in #(
28937 *\&* | *\|* | *\\* )
28938 ac_sed_conf_input=`$as_echo "$configure_input" |
28939 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28940 *) ac_sed_conf_input=$configure_input;;
28944 *:-:* | *:-) cat >"$tmp/stdin" \
28945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28947 { (exit 1); exit 1; }; } ;;
28952 ac_dir=`$as_dirname -- "$ac_file" ||
28953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28954 X"$ac_file" : 'X\(//\)[^/]' \| \
28955 X"$ac_file" : 'X\(//\)$' \| \
28956 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28957 $as_echo X"$ac_file" |
28958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28962 /^X\(\/\/\)[^/].*/{
28977 -*) as_dir=./$as_dir;;
28979 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28983 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28984 *) as_qdir=$as_dir;;
28986 as_dirs="'$as_qdir' $as_dirs"
28987 as_dir=`$as_dirname -- "$as_dir" ||
28988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28989 X"$as_dir" : 'X\(//\)[^/]' \| \
28990 X"$as_dir" : 'X\(//\)$' \| \
28991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28992 $as_echo X"$as_dir" |
28993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28997 /^X\(\/\/\)[^/].*/{
29010 test -d "$as_dir" && break
29012 test -z "$as_dirs" || eval "mkdir $as_dirs"
29013 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29014 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29015 { (exit 1); exit 1; }; }; }
29019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29021 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29022 # A ".." for each directory in $ac_dir_suffix.
29023 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29024 case $ac_top_builddir_sub in
29025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29029 ac_abs_top_builddir=$ac_pwd
29030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29031 # for backward compatibility:
29032 ac_top_builddir=$ac_top_build_prefix
29035 .) # We are building in place.
29037 ac_top_srcdir=$ac_top_builddir_sub
29038 ac_abs_top_srcdir=$ac_pwd ;;
29039 [\\/]* | ?:[\\/]* ) # Absolute name.
29040 ac_srcdir=$srcdir$ac_dir_suffix;
29041 ac_top_srcdir=$srcdir
29042 ac_abs_top_srcdir=$srcdir ;;
29043 *) # Relative name.
29044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29045 ac_top_srcdir=$ac_top_build_prefix$srcdir
29046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29061 ac_MKDIR_P=$MKDIR_P
29063 [\\/$]* | ?:[\\/]* ) ;;
29064 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29069 # If the template does not know about datarootdir, expand it.
29070 # FIXME: This hack should be removed a few years after 2.60.
29071 ac_datarootdir_hack=; ac_datarootdir_seen=
29084 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29085 *datarootdir*) ac_datarootdir_seen=yes;;
29086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29087 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29088 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29091 ac_datarootdir_hack='
29092 s&@datadir@&$datadir&g
29093 s&@docdir@&$docdir&g
29094 s&@infodir@&$infodir&g
29095 s&@localedir@&$localedir&g
29096 s&@mandir@&$mandir&g
29097 s&\\\${datarootdir}&$datarootdir&g' ;;
29101 # Neutralize VPATH when `$srcdir' = `.'.
29102 # Shell code in configure.ac might set extrasub.
29103 # FIXME: do we really want to maintain this feature?
29104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29105 ac_sed_extra="$ac_vpsub
29108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29111 s|@configure_input@|$ac_sed_conf_input|;t t
29112 s&@top_builddir@&$ac_top_builddir_sub&;t t
29113 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29114 s&@srcdir@&$ac_srcdir&;t t
29115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29116 s&@top_srcdir@&$ac_top_srcdir&;t t
29117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29118 s&@builddir@&$ac_builddir&;t t
29119 s&@abs_builddir@&$ac_abs_builddir&;t t
29120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29121 s&@INSTALL@&$ac_INSTALL&;t t
29122 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29123 $ac_datarootdir_hack
29125 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29128 { (exit 1); exit 1; }; }
29130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29133 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29134 which seems to be undefined. Please make sure it is defined." >&5
29135 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29136 which seems to be undefined. Please make sure it is defined." >&2;}
29140 -) cat "$tmp/out" && rm -f "$tmp/out";;
29141 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29143 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29144 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29145 { (exit 1); exit 1; }; }
29151 if test x"$ac_file" != x-; then
29153 $as_echo "/* $configure_input */" \
29154 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29155 } >"$tmp/config.h" \
29156 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29157 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29158 { (exit 1); exit 1; }; }
29159 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29160 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29161 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29164 mv "$tmp/config.h" "$ac_file" \
29165 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29166 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29167 { (exit 1); exit 1; }; }
29170 $as_echo "/* $configure_input */" \
29171 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29172 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29173 $as_echo "$as_me: error: could not create -" >&2;}
29174 { (exit 1); exit 1; }; }
29176 # Compute "$ac_file"'s index in $config_headers.
29179 for _am_header in $config_headers :; do
29180 case $_am_header in
29181 $_am_arg | $_am_arg:* )
29184 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29189 X"$_am_arg" : 'X\(//\)[^/]' \| \
29190 X"$_am_arg" : 'X\(//\)$' \| \
29191 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29192 $as_echo X"$_am_arg" |
29193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29197 /^X\(\/\/\)[^/].*/{
29209 s/.*/./; q'`/stamp-h$_am_stamp_count
29212 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29213 $as_echo "$as_me: executing $ac_file commands" >&6;}
29218 case $ac_file$ac_mode in
29219 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29220 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29221 # are listed without --file. Let's play safe and only enable the eval
29222 # if we detect the quoting.
29223 case $CONFIG_FILES in
29224 *\'*) eval set x "$CONFIG_FILES" ;;
29225 *) set x $CONFIG_FILES ;;
29230 # Strip MF so we end up with the name of the file.
29231 mf=`echo "$mf" | sed -e 's/:.*$//'`
29232 # Check whether this is an Automake generated Makefile or not.
29233 # We used to match only the files named `Makefile.in', but
29234 # some people rename them; so instead we look at the file content.
29235 # Grep'ing the first line is not enough: some people post-process
29236 # each Makefile.in and add a new line on top of each file to say so.
29237 # Grep'ing the whole file is not good either: AIX grep has a line
29238 # limit of 2048, but all sed's we know have understand at least 4000.
29239 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29240 dirpart=`$as_dirname -- "$mf" ||
29241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29242 X"$mf" : 'X\(//\)[^/]' \| \
29243 X"$mf" : 'X\(//\)$' \| \
29244 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29250 /^X\(\/\/\)[^/].*/{
29266 # Extract the definition of DEPDIR, am__include, and am__quote
29267 # from the Makefile without running `make'.
29268 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29269 test -z "$DEPDIR" && continue
29270 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29271 test -z "am__include" && continue
29272 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29273 # When using ansi2knr, U may be empty or an underscore; expand it
29274 U=`sed -n 's/^U = //p' < "$mf"`
29275 # Find all dependency output files, they are included files with
29276 # $(DEPDIR) in their names. We invoke sed twice because it is the
29277 # simplest approach to changing $(DEPDIR) to its actual value in the
29279 for file in `sed -n "
29280 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29281 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29282 # Make sure the directory exists.
29283 test -f "$dirpart/$file" && continue
29284 fdir=`$as_dirname -- "$file" ||
29285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29286 X"$file" : 'X\(//\)[^/]' \| \
29287 X"$file" : 'X\(//\)$' \| \
29288 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29289 $as_echo X"$file" |
29290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29294 /^X\(\/\/\)[^/].*/{
29307 { as_dir=$dirpart/$fdir
29309 -*) as_dir=./$as_dir;;
29311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29316 *) as_qdir=$as_dir;;
29318 as_dirs="'$as_qdir' $as_dirs"
29319 as_dir=`$as_dirname -- "$as_dir" ||
29320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29321 X"$as_dir" : 'X\(//\)[^/]' \| \
29322 X"$as_dir" : 'X\(//\)$' \| \
29323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29324 $as_echo X"$as_dir" |
29325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29329 /^X\(\/\/\)[^/].*/{
29342 test -d "$as_dir" && break
29344 test -z "$as_dirs" || eval "mkdir $as_dirs"
29345 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29346 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29347 { (exit 1); exit 1; }; }; }
29348 # echo "creating $dirpart/$file"
29349 echo '# dummy' > "$dirpart/$file"
29356 # See if we are running on zsh, and set the options which allow our
29357 # commands through without removal of \ escapes.
29358 if test -n "${ZSH_VERSION+set}" ; then
29359 setopt NO_GLOB_SUBST
29362 cfgfile="${ofile}T"
29363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29366 cat <<_LT_EOF >> "$cfgfile"
29369 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29370 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29371 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29372 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29374 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29375 # 2006, 2007, 2008 Free Software Foundation, Inc.
29376 # Written by Gordon Matzigkeit, 1996
29378 # This file is part of GNU Libtool.
29380 # GNU Libtool is free software; you can redistribute it and/or
29381 # modify it under the terms of the GNU General Public License as
29382 # published by the Free Software Foundation; either version 2 of
29383 # the License, or (at your option) any later version.
29385 # As a special exception to the GNU General Public License,
29386 # if you distribute this file as part of a program or library that
29387 # is built using GNU Libtool, you may include this file under the
29388 # same distribution terms that you use for the rest of that program.
29390 # GNU Libtool is distributed in the hope that it will be useful,
29391 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29392 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29393 # GNU General Public License for more details.
29395 # You should have received a copy of the GNU General Public License
29396 # along with GNU Libtool; see the file COPYING. If not, a copy
29397 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29398 # obtained by writing to the Free Software Foundation, Inc.,
29399 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29402 # The names of the tagged configurations supported by this script.
29403 available_tags="CXX "
29405 # ### BEGIN LIBTOOL CONFIG
29407 # Which release of libtool.m4 was used?
29408 macro_version=$macro_version
29409 macro_revision=$macro_revision
29411 # Whether or not to build shared libraries.
29412 build_libtool_libs=$enable_shared
29414 # Whether or not to build static libraries.
29415 build_old_libs=$enable_static
29417 # What type of objects to build.
29420 # Whether or not to optimize for fast installation.
29421 fast_install=$enable_fast_install
29424 host_alias=$host_alias
29428 # The build system.
29429 build_alias=$build_alias
29433 # A sed program that does not truncate output.
29436 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29437 Xsed="\$SED -e 1s/^X//"
29439 # A grep program that handles long lines.
29445 # A literal string matcher.
29448 # A BSD- or MS-compatible name lister.
29451 # Whether we need soft or hard links.
29454 # What is the maximum length of a command?
29455 max_cmd_len=$max_cmd_len
29457 # Object file suffix (normally "o").
29460 # Executable file suffix (normally "").
29463 # whether the shell understands "unset".
29466 # turn spaces into newlines.
29469 # turn newlines into spaces.
29472 # How to create reloadable object files.
29473 reload_flag=$lt_reload_flag
29474 reload_cmds=$lt_reload_cmds
29476 # An object symbol dumper.
29477 OBJDUMP=$lt_OBJDUMP
29479 # Method to check whether dependent libraries are shared objects.
29480 deplibs_check_method=$lt_deplibs_check_method
29482 # Command to use when deplibs_check_method == "file_magic".
29483 file_magic_cmd=$lt_file_magic_cmd
29487 AR_FLAGS=$lt_AR_FLAGS
29489 # A symbol stripping program.
29492 # Commands used to install an old-style archive.
29494 old_postinstall_cmds=$lt_old_postinstall_cmds
29495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29500 # LTCC compiler flags.
29501 LTCFLAGS=$lt_CFLAGS
29503 # Take the output of nm and produce a listing of raw symbols and C names.
29504 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29506 # Transform the output of nm in a proper C declaration.
29507 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29509 # Transform the output of nm in a C name address pair.
29510 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29512 # Transform the output of nm in a C name address pair when lib prefix is needed.
29513 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29515 # The name of the directory that contains temporary libtool files.
29518 # Shell to use when invoking shell scripts.
29521 # An echo program that does not interpret backslashes.
29524 # Used to examine libraries when file_magic_cmd begins with "file".
29525 MAGIC_CMD=$MAGIC_CMD
29527 # Must we lock files when doing compilation?
29528 need_locks=$lt_need_locks
29530 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29531 DSYMUTIL=$lt_DSYMUTIL
29533 # Tool to change global to local symbols on Mac OS X.
29536 # Tool to manipulate fat objects and archives on Mac OS X.
29539 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29542 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29543 OTOOL64=$lt_OTOOL64
29545 # Old archive suffix (normally "a").
29548 # Shared library suffix (normally ".so").
29549 shrext_cmds=$lt_shrext_cmds
29551 # The commands to extract the exported symbol list from a shared archive.
29552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29554 # Variables whose values should be saved in libtool wrapper scripts and
29555 # restored at link time.
29556 variables_saved_for_relink=$lt_variables_saved_for_relink
29558 # Do we need the "lib" prefix for modules?
29559 need_lib_prefix=$need_lib_prefix
29561 # Do we need a version for libraries?
29562 need_version=$need_version
29564 # Library versioning type.
29565 version_type=$version_type
29567 # Shared library runtime path variable.
29568 runpath_var=$runpath_var
29570 # Shared library path variable.
29571 shlibpath_var=$shlibpath_var
29573 # Is shlibpath searched before the hard-coded library search path?
29574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29576 # Format of library name prefix.
29577 libname_spec=$lt_libname_spec
29579 # List of archive names. First name is the real one, the rest are links.
29580 # The last name is the one that the linker finds with -lNAME
29581 library_names_spec=$lt_library_names_spec
29583 # The coded name of the library, if different from the real name.
29584 soname_spec=$lt_soname_spec
29586 # Command to use after installation of a shared archive.
29587 postinstall_cmds=$lt_postinstall_cmds
29589 # Command to use after uninstallation of a shared archive.
29590 postuninstall_cmds=$lt_postuninstall_cmds
29592 # Commands used to finish a libtool library installation in a directory.
29593 finish_cmds=$lt_finish_cmds
29595 # As "finish_cmds", except a single script fragment to be evaled but
29597 finish_eval=$lt_finish_eval
29599 # Whether we should hardcode library paths into libraries.
29600 hardcode_into_libs=$hardcode_into_libs
29602 # Compile-time system search path for libraries.
29603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29605 # Run-time system search path for libraries.
29606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29608 # Whether dlopen is supported.
29609 dlopen_support=$enable_dlopen
29611 # Whether dlopen of programs is supported.
29612 dlopen_self=$enable_dlopen_self
29614 # Whether dlopen of statically linked programs is supported.
29615 dlopen_self_static=$enable_dlopen_self_static
29617 # Commands to strip libraries.
29618 old_striplib=$lt_old_striplib
29619 striplib=$lt_striplib
29622 # The linker used to build libraries.
29625 # Commands used to build an old-style archive.
29626 old_archive_cmds=$lt_old_archive_cmds
29628 # A language specific compiler.
29631 # Is the compiler the GNU compiler?
29634 # Compiler flag to turn off builtin functions.
29635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29637 # How to pass a linker flag through the compiler.
29638 wl=$lt_lt_prog_compiler_wl
29640 # Additional compiler flags for building library objects.
29641 pic_flag=$lt_lt_prog_compiler_pic
29643 # Compiler flag to prevent dynamic linking.
29644 link_static_flag=$lt_lt_prog_compiler_static
29646 # Does compiler simultaneously support -c and -o options?
29647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29649 # Whether or not to add -lc for building shared libraries.
29650 build_libtool_need_lc=$archive_cmds_need_lc
29652 # Whether or not to disallow shared libs when runtime libs are static.
29653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29655 # Compiler flag to allow reflexive dlopens.
29656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29658 # Compiler flag to generate shared objects directly from archives.
29659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29661 # Whether the compiler copes with passing no objects directly.
29662 compiler_needs_object=$lt_compiler_needs_object
29664 # Create an old-style archive from a shared archive.
29665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29667 # Create a temporary old-style archive to link instead of a shared archive.
29668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29670 # Commands used to build a shared archive.
29671 archive_cmds=$lt_archive_cmds
29672 archive_expsym_cmds=$lt_archive_expsym_cmds
29674 # Commands used to build a loadable module if different from building
29675 # a shared archive.
29676 module_cmds=$lt_module_cmds
29677 module_expsym_cmds=$lt_module_expsym_cmds
29679 # Whether we are building with GNU ld or not.
29680 with_gnu_ld=$lt_with_gnu_ld
29682 # Flag that allows shared libraries with undefined symbols to be built.
29683 allow_undefined_flag=$lt_allow_undefined_flag
29685 # Flag that enforces no undefined symbols.
29686 no_undefined_flag=$lt_no_undefined_flag
29688 # Flag to hardcode \$libdir into a binary during linking.
29689 # This must work even if \$libdir does not exist
29690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29692 # If ld is used when linking, flag to hardcode \$libdir into a binary
29693 # during linking. This must work even if \$libdir does not exist.
29694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29696 # Whether we need a single "-rpath" flag with a separated argument.
29697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29700 # DIR into the resulting binary.
29701 hardcode_direct=$hardcode_direct
29703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29704 # DIR into the resulting binary and the resulting library dependency is
29705 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29706 # library is relocated.
29707 hardcode_direct_absolute=$hardcode_direct_absolute
29709 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29710 # into the resulting binary.
29711 hardcode_minus_L=$hardcode_minus_L
29713 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29714 # into the resulting binary.
29715 hardcode_shlibpath_var=$hardcode_shlibpath_var
29717 # Set to "yes" if building a shared library automatically hardcodes DIR
29718 # into the library and all subsequent libraries and executables linked
29720 hardcode_automatic=$hardcode_automatic
29722 # Set to yes if linker adds runtime paths of dependent libraries
29723 # to runtime path list.
29724 inherit_rpath=$inherit_rpath
29726 # Whether libtool must link a program against all its dependency libraries.
29727 link_all_deplibs=$link_all_deplibs
29729 # Fix the shell variable \$srcfile for the compiler.
29730 fix_srcfile_path=$lt_fix_srcfile_path
29732 # Set to "yes" if exported symbols are required.
29733 always_export_symbols=$always_export_symbols
29735 # The commands to list exported symbols.
29736 export_symbols_cmds=$lt_export_symbols_cmds
29738 # Symbols that should not be listed in the preloaded symbols.
29739 exclude_expsyms=$lt_exclude_expsyms
29741 # Symbols that must always be exported.
29742 include_expsyms=$lt_include_expsyms
29744 # Commands necessary for linking programs (against libraries) with templates.
29745 prelink_cmds=$lt_prelink_cmds
29747 # Specify filename containing input files.
29748 file_list_spec=$lt_file_list_spec
29750 # How to hardcode a shared library path into an executable.
29751 hardcode_action=$hardcode_action
29753 # The directories searched by this compiler when creating a shared library.
29754 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29756 # Dependencies to place before and after the objects being linked to
29757 # create a shared library.
29758 predep_objects=$lt_predep_objects
29759 postdep_objects=$lt_postdep_objects
29760 predeps=$lt_predeps
29761 postdeps=$lt_postdeps
29763 # The library search path used internally by the compiler when linking
29764 # a shared library.
29765 compiler_lib_search_path=$lt_compiler_lib_search_path
29767 # ### END LIBTOOL CONFIG
29773 cat <<\_LT_EOF >> "$cfgfile"
29774 # AIX sometimes has problems with the GCC collect2 program. For some
29775 # reason, if we set the COLLECT_NAMES environment variable, the problems
29776 # vanish in a puff of smoke.
29777 if test "X${COLLECT_NAMES+set}" != Xset; then
29779 export COLLECT_NAMES
29786 ltmain="$ac_aux_dir/ltmain.sh"
29789 # We use sed instead of cat because bash on DJGPP gets confused if
29790 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29791 # text mode, it properly converts lines to CR/LF. This bash problem
29792 # is reportedly fixed, but why not run on old versions too?
29793 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29794 || (rm -f "$cfgfile"; exit 1)
29798 cat << \_LT_EOF >> "$cfgfile"
29800 # func_dirname file append nondir_replacement
29801 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29802 # otherwise set result to NONDIR_REPLACEMENT.
29806 */*) func_dirname_result="${1%/*}${2}" ;;
29807 * ) func_dirname_result="${3}" ;;
29811 # func_basename file
29814 func_basename_result="${1##*/}"
29817 # func_dirname_and_basename file append nondir_replacement
29818 # perform func_basename and func_dirname in a single function
29820 # dirname: Compute the dirname of FILE. If nonempty,
29821 # add APPEND to the result, otherwise set result
29822 # to NONDIR_REPLACEMENT.
29823 # value returned in "$func_dirname_result"
29824 # basename: Compute filename of FILE.
29825 # value retuned in "$func_basename_result"
29826 # Implementation must be kept synchronized with func_dirname
29827 # and func_basename. For efficiency, we do not delegate to
29828 # those functions but instead duplicate the functionality here.
29829 func_dirname_and_basename ()
29832 */*) func_dirname_result="${1%/*}${2}" ;;
29833 * ) func_dirname_result="${3}" ;;
29835 func_basename_result="${1##*/}"
29838 # func_stripname prefix suffix name
29839 # strip PREFIX and SUFFIX off of NAME.
29840 # PREFIX and SUFFIX must not contain globbing or regex special
29841 # characters, hashes, percent signs, but SUFFIX may contain a leading
29842 # dot (in which case that matches only a dot).
29845 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29846 # positional parameters, so assign one to ordinary parameter first.
29847 func_stripname_result=${3}
29848 func_stripname_result=${func_stripname_result#"${1}"}
29849 func_stripname_result=${func_stripname_result%"${2}"}
29855 func_opt_split_opt=${1%%=*}
29856 func_opt_split_arg=${1#*=}
29863 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29864 *) func_lo2o_result=${1} ;;
29868 # func_xform libobj-or-source
29871 func_xform_result=${1%.*}.lo
29874 # func_arith arithmetic-term...
29877 func_arith_result=$(( $* ))
29881 # STRING may not start with a hyphen.
29884 func_len_result=${#1}
29889 *) # Bourne compatible functions.
29890 cat << \_LT_EOF >> "$cfgfile"
29892 # func_dirname file append nondir_replacement
29893 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29894 # otherwise set result to NONDIR_REPLACEMENT.
29897 # Extract subdirectory from the argument.
29898 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
29899 if test "X$func_dirname_result" = "X${1}"; then
29900 func_dirname_result="${3}"
29902 func_dirname_result="$func_dirname_result${2}"
29906 # func_basename file
29909 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
29913 # func_stripname prefix suffix name
29914 # strip PREFIX and SUFFIX off of NAME.
29915 # PREFIX and SUFFIX must not contain globbing or regex special
29916 # characters, hashes, percent signs, but SUFFIX may contain a leading
29917 # dot (in which case that matches only a dot).
29918 # func_strip_suffix prefix name
29922 .*) func_stripname_result=`$ECHO "X${3}" \
29923 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
29924 *) func_stripname_result=`$ECHO "X${3}" \
29925 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
29930 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29931 my_sed_long_arg='1s/^-[^=]*=//'
29936 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
29937 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
29943 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
29946 # func_xform libobj-or-source
29949 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
29952 # func_arith arithmetic-term...
29955 func_arith_result=`expr "$@"`
29959 # STRING may not start with a hyphen.
29962 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29968 case $lt_shell_append in
29970 cat << \_LT_EOF >> "$cfgfile"
29972 # func_append var value
29973 # Append VALUE to the end of shell variable VAR.
29981 cat << \_LT_EOF >> "$cfgfile"
29983 # func_append var value
29984 # Append VALUE to the end of shell variable VAR.
29995 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29996 || (rm -f "$cfgfile"; exit 1)
29998 mv -f "$cfgfile" "$ofile" ||
29999 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30003 cat <<_LT_EOF >> "$ofile"
30005 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30007 # The linker used to build libraries.
30010 # Commands used to build an old-style archive.
30011 old_archive_cmds=$lt_old_archive_cmds_CXX
30013 # A language specific compiler.
30014 CC=$lt_compiler_CXX
30016 # Is the compiler the GNU compiler?
30019 # Compiler flag to turn off builtin functions.
30020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30022 # How to pass a linker flag through the compiler.
30023 wl=$lt_lt_prog_compiler_wl_CXX
30025 # Additional compiler flags for building library objects.
30026 pic_flag=$lt_lt_prog_compiler_pic_CXX
30028 # Compiler flag to prevent dynamic linking.
30029 link_static_flag=$lt_lt_prog_compiler_static_CXX
30031 # Does compiler simultaneously support -c and -o options?
30032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30034 # Whether or not to add -lc for building shared libraries.
30035 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30037 # Whether or not to disallow shared libs when runtime libs are static.
30038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30040 # Compiler flag to allow reflexive dlopens.
30041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30043 # Compiler flag to generate shared objects directly from archives.
30044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30046 # Whether the compiler copes with passing no objects directly.
30047 compiler_needs_object=$lt_compiler_needs_object_CXX
30049 # Create an old-style archive from a shared archive.
30050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30052 # Create a temporary old-style archive to link instead of a shared archive.
30053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30055 # Commands used to build a shared archive.
30056 archive_cmds=$lt_archive_cmds_CXX
30057 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30059 # Commands used to build a loadable module if different from building
30060 # a shared archive.
30061 module_cmds=$lt_module_cmds_CXX
30062 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30064 # Whether we are building with GNU ld or not.
30065 with_gnu_ld=$lt_with_gnu_ld_CXX
30067 # Flag that allows shared libraries with undefined symbols to be built.
30068 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30070 # Flag that enforces no undefined symbols.
30071 no_undefined_flag=$lt_no_undefined_flag_CXX
30073 # Flag to hardcode \$libdir into a binary during linking.
30074 # This must work even if \$libdir does not exist
30075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30077 # If ld is used when linking, flag to hardcode \$libdir into a binary
30078 # during linking. This must work even if \$libdir does not exist.
30079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30081 # Whether we need a single "-rpath" flag with a separated argument.
30082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30085 # DIR into the resulting binary.
30086 hardcode_direct=$hardcode_direct_CXX
30088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30089 # DIR into the resulting binary and the resulting library dependency is
30090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30091 # library is relocated.
30092 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30095 # into the resulting binary.
30096 hardcode_minus_L=$hardcode_minus_L_CXX
30098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30099 # into the resulting binary.
30100 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30102 # Set to "yes" if building a shared library automatically hardcodes DIR
30103 # into the library and all subsequent libraries and executables linked
30105 hardcode_automatic=$hardcode_automatic_CXX
30107 # Set to yes if linker adds runtime paths of dependent libraries
30108 # to runtime path list.
30109 inherit_rpath=$inherit_rpath_CXX
30111 # Whether libtool must link a program against all its dependency libraries.
30112 link_all_deplibs=$link_all_deplibs_CXX
30114 # Fix the shell variable \$srcfile for the compiler.
30115 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30117 # Set to "yes" if exported symbols are required.
30118 always_export_symbols=$always_export_symbols_CXX
30120 # The commands to list exported symbols.
30121 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30123 # Symbols that should not be listed in the preloaded symbols.
30124 exclude_expsyms=$lt_exclude_expsyms_CXX
30126 # Symbols that must always be exported.
30127 include_expsyms=$lt_include_expsyms_CXX
30129 # Commands necessary for linking programs (against libraries) with templates.
30130 prelink_cmds=$lt_prelink_cmds_CXX
30132 # Specify filename containing input files.
30133 file_list_spec=$lt_file_list_spec_CXX
30135 # How to hardcode a shared library path into an executable.
30136 hardcode_action=$hardcode_action_CXX
30138 # The directories searched by this compiler when creating a shared library.
30139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
30141 # Dependencies to place before and after the objects being linked to
30142 # create a shared library.
30143 predep_objects=$lt_predep_objects_CXX
30144 postdep_objects=$lt_postdep_objects_CXX
30145 predeps=$lt_predeps_CXX
30146 postdeps=$lt_postdeps_CXX
30148 # The library search path used internally by the compiler when linking
30149 # a shared library.
30150 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30152 # ### END LIBTOOL TAG CONFIG: CXX
30161 { (exit 0); exit 0; }
30163 chmod +x $CONFIG_STATUS
30164 ac_clean_files=$ac_clean_files_save
30166 test $ac_write_fail = 0 ||
30167 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30168 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30169 { (exit 1); exit 1; }; }
30172 # configure is writing to config.log, and then calls config.status.
30173 # config.status does its own redirection, appending to config.log.
30174 # Unfortunately, on DOS this fails, as config.log is still kept open
30175 # by configure, so config.status won't be able to write to it; its
30176 # output is simply discarded. So we exec the FD to /dev/null,
30177 # effectively closing config.log, so it can be properly (re)opened and
30178 # appended to by config.status. When coming back to configure, we
30179 # need to make the FD available again.
30180 if test "$no_create" != yes; then
30182 ac_config_status_args=
30183 test "$silent" = yes &&
30184 ac_config_status_args="$ac_config_status_args --quiet"
30186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30189 # would make configure fail if this is the last instruction.
30190 $ac_cs_success || { (exit 1); exit 1; }
30192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30193 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}