2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.3.
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 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.3'
732 PACKAGE_STRING='linux nfs-utils 1.1.3'
733 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
832 INSTALL_STRIP_PROGRAM
841 MAINTAINER_MODE_FALSE
933 ac_precious_vars='build_alias
955 # Initialize some variables set by options.
957 ac_init_version=false
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
967 program_transform_name=s,x,x,
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1062 eval enable_$ac_feature=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1081 eval enable_$ac_feature=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1245 -site=* | --site=* | --sit=*)
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1272 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid package name: $ac_package" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1278 eval with_$ac_package=\$ac_optarg ;;
1280 -without-* | --without-*)
1281 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1287 eval with_$ac_package=no ;;
1290 # Obsolete; use --with-x.
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) { echo "$as_me: error: unrecognized option: $ac_option
1308 Try \`$0 --help' for more information." >&2
1309 { (exit 1); exit 1; }; }
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317 { (exit 1); exit 1; }; }
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 { echo "$as_me: error: missing argument to $ac_option" >&2
1335 { (exit 1); exit 1; }; }
1338 # Be sure to have absolute directory names.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350 { (exit 1); exit 1; }; }
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1358 target=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used." >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1372 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374 test "$silent" = yes && exec 6>/dev/null
1377 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di=`ls -di .` &&
1379 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380 { echo "$as_me: error: Working directory cannot be determined" >&2
1381 { (exit 1); exit 1; }; }
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 { echo "$as_me: error: pwd does not report name of working directory" >&2
1384 { (exit 1); exit 1; }; }
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$0" ||
1392 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$0" : 'X\(//\)[^/]' \| \
1394 X"$0" : 'X\(//\)$' \| \
1395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1419 ac_srcdir_defaulted=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424 { (exit 1); exit 1; }; }
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1429 { (exit 1); exit 1; }; }
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures linux nfs-utils 1.1.3 to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/nfs-utils]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of linux nfs-utils 1.1.3:";;
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-nfsv3 enable support for NFSv3 [default=yes]
1535 --enable-nfsv4 enable support for NFSv4 [default=yes]
1536 --enable-gss enable support for rpcsec_gss [default=yes]
1537 --enable-kprefix install progs as rpc.knfsd etc
1538 --enable-secure-statd Only lockd can use statd (security)
1539 --without-uuid Exclude uuid support and so avoid possibly buggy
1541 --enable-mount Create mount.nfs and don't use the util-linux
1542 mount(8) functionality. [default=yes]
1543 --enable-ipv6 enable support for IPv6 [default=no]
1544 --disable-dependency-tracking speeds up one-time build
1545 --enable-dependency-tracking do not reject slow dependency extractors
1546 --disable-largefile omit support for large files
1547 --enable-shared[=PKGS] build shared libraries [default=yes]
1548 --enable-static[=PKGS] build static libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-release=XXX set release to XXX [1]
1557 --with-statedir=/foo use state dir /foo /var/lib/nfs
1558 --with-statduser=rpcuser
1559 statd to run under [rpcuser or nobody]
1560 --with-start-statd=scriptname
1561 When an nfs filesystems is mounted with locking, run
1563 --with-rpcgen=internal use internal rpcgen instead of system one
1564 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1565 (optionally in PATH)
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-pic try to use only PIC/non-PIC objects [default=use
1569 --with-tags[=TAGS] include additional configurations [automatic]
1570 --with-krb5=DIR use Kerberos v5 installation in DIR
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CXX C++ compiler command
1581 CXXFLAGS C++ compiler flags
1583 CXXCPP C++ preprocessor
1584 F77 Fortran 77 compiler command
1585 FFLAGS Fortran 77 compiler flags
1586 PKG_CONFIG path to pkg-config utility
1588 C compiler flags for RPCSECGSS, overriding pkg-config
1590 linker flags for RPCSECGSS, overriding pkg-config
1592 C compiler flags for GSSGLUE, overriding pkg-config
1594 linker flags for GSSGLUE, overriding pkg-config
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1599 Report bugs to <linux-nfs@vger.kernel.org>.
1604 if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607 test -d "$ac_dir" || continue
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1627 .) # We are building in place.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1651 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1660 linux nfs-utils configure 1.1.3
1661 generated by GNU Autoconf 2.61
1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1664 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1674 It was created by linux nfs-utils $as_me 1.1.3, which was
1675 generated by GNU Autoconf 2.61. Invocation command line was
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_must_keep_next=false
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 -* ) ac_must_keep_next=true ;;
1767 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log. We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1786 ## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##
1791 # The following way of writing the cache mishandles newlines in values,
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 echo "$ac_var='\''$ac_val'\''"
1838 if test -n "$ac_subst_files"; then
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1845 for ac_var in $ac_subst_files
1847 eval ac_val=\$$ac_var
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 echo "$ac_var='\''$ac_val'\''"
1856 if test -s confdefs.h; then
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer explicitly selected file to automatically selected ones.
1911 if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913 elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
1922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924 echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1930 if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935 echo "$as_me: loading cache $cache_file" >&6;}
1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943 echo "$as_me: creating cache $cache_file" >&6;}
1947 # Check that the precious variables saved in the cache have kept the same
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1970 echo "$as_me: former value: $ac_old_val" >&2;}
1971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1972 echo "$as_me: current value: $ac_new_val" >&2;}
1973 ac_cache_corrupted=:
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2029 if test -f "$ac_dir/install-sh"; then
2031 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 elif test -f "$ac_dir/install.sh"; then
2035 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 elif test -f "$ac_dir/shtool"; then
2039 ac_install_sh="$ac_aux_dir/shtool install -c"
2043 if test -z "$ac_aux_dir"; then
2044 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2046 { (exit 1); exit 1; }; }
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058 # Make sure we can run config.sub.
2059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2060 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2061 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2062 { (exit 1); exit 1; }; }
2064 { echo "$as_me:$LINENO: checking build system type" >&5
2065 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2066 if test "${ac_cv_build+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 ac_build_alias=$build_alias
2070 test "x$ac_build_alias" = x &&
2071 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2072 test "x$ac_build_alias" = x &&
2073 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2074 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2075 { (exit 1); exit 1; }; }
2076 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2082 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2083 echo "${ECHO_T}$ac_cv_build" >&6; }
2084 case $ac_cv_build in
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2087 echo "$as_me: error: invalid value of canonical build" >&2;}
2088 { (exit 1); exit 1; }; };;
2091 ac_save_IFS=$IFS; IFS='-'
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2101 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2104 { echo "$as_me:$LINENO: checking host system type" >&5
2105 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2106 if test "${ac_cv_host+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test "x$host_alias" = x; then
2110 ac_cv_host=$ac_cv_build
2112 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2120 echo "${ECHO_T}$ac_cv_host" >&6; }
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2124 echo "$as_me: error: invalid value of canonical host" >&2;}
2125 { (exit 1); exit 1; }; };;
2128 ac_save_IFS=$IFS; IFS='-'
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2138 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2142 am__api_version='1.10'
2144 # Find a good install program. We prefer a C program (faster),
2145 # so one script is as good as another. But avoid the broken or
2146 # incompatible versions:
2147 # SysV /etc/install, /usr/sbin/install
2148 # SunOS /usr/etc/install
2149 # IRIX /sbin/install
2151 # AmigaOS /C/install, which installs bootblocks on floppy discs
2152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2155 # OS/2's system install, which has a completely different semantic
2156 # ./install, which can be erroneously created by make from ./install.sh.
2157 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2158 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2159 if test -z "$INSTALL"; then
2160 if test "${ac_cv_path_install+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 # Account for people who put trailing slashes in PATH elements.
2170 ./ | .// | /cC/* | \
2171 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2172 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2175 # OSF1 and SCO ODT 3.0 have their own names for install.
2176 # Don't use installbsd from OSF since it installs stuff as root
2178 for ac_prog in ginstall scoinst install; do
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2181 if test $ac_prog = install &&
2182 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183 # AIX install. It has an incompatible calling convention.
2185 elif test $ac_prog = install &&
2186 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2187 # program-specific install script used by HP pwplus--don't use.
2190 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2203 if test "${ac_cv_path_install+set}" = set; then
2204 INSTALL=$ac_cv_path_install
2206 # As a last resort, use the slow shell script. Don't cache a
2207 # value for INSTALL within a source directory, because that will
2208 # break other packages using the cache if that directory is
2209 # removed, or if the value is a relative name.
2210 INSTALL=$ac_install_sh
2213 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2214 echo "${ECHO_T}$INSTALL" >&6; }
2216 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2217 # It thinks the first close brace ends the variable substitution.
2218 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2220 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2222 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2224 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2225 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2228 echo timestamp > conftest.file
2229 # Do `set' in a subshell so we don't clobber the current shell's
2230 # arguments. Must try -L first in case configure is actually a
2231 # symlink; some systems play weird games with the mod time of symlinks
2232 # (eg FreeBSD returns the mod time of the symlink's containing
2235 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2236 if test "$*" = "X"; then
2238 set X `ls -t $srcdir/configure conftest.file`
2241 if test "$*" != "X $srcdir/configure conftest.file" \
2242 && test "$*" != "X conftest.file $srcdir/configure"; then
2244 # If neither matched, then we have a broken ls. This can happen
2245 # if, for instance, CONFIG_SHELL is bash and it inherits a
2246 # broken ls alias from the environment. This has actually
2247 # happened. Such a system could not be considered "sane".
2248 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2249 alias in your environment" >&5
2250 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2251 alias in your environment" >&2;}
2252 { (exit 1); exit 1; }; }
2255 test "$2" = conftest.file
2261 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2262 Check your system clock" >&5
2263 echo "$as_me: error: newly created file is older than distributed files!
2264 Check your system clock" >&2;}
2265 { (exit 1); exit 1; }; }
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269 test "$program_prefix" != NONE &&
2270 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271 # Use a double $ so make ignores it.
2272 test "$program_suffix" != NONE &&
2273 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2274 # Double any \ or $. echo might interpret backslashes.
2275 # By default was `s,x,x', remove it if useless.
2276 cat <<\_ACEOF >conftest.sed
2277 s/[\\$]/&&/g;s/;s,x,x,$//
2279 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2282 # expand $ac_aux_dir to an absolute path
2283 am_aux_dir=`cd $ac_aux_dir && pwd`
2285 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2286 # Use eval to expand $SHELL
2287 if eval "$MISSING --run true"; then
2288 am_missing_run="$MISSING --run "
2291 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2292 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2295 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2296 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2297 if test -z "$MKDIR_P"; then
2298 if test "${ac_cv_path_mkdir+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2305 test -z "$as_dir" && as_dir=.
2306 for ac_prog in mkdir gmkdir; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2309 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2310 'mkdir (GNU coreutils) '* | \
2311 'mkdir (coreutils) '* | \
2312 'mkdir (fileutils) '4.1*)
2313 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2323 if test "${ac_cv_path_mkdir+set}" = set; then
2324 MKDIR_P="$ac_cv_path_mkdir -p"
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for MKDIR_P within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 test -d ./--version && rmdir ./--version
2331 MKDIR_P="$ac_install_sh -d"
2334 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2335 echo "${ECHO_T}$MKDIR_P" >&6; }
2339 [\\/$]* | ?:[\\/]*) ;;
2340 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2343 for ac_prog in gawk mawk nawk awk
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_AWK+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$AWK"; then
2353 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_AWK="$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 if test -n "$AWK"; then
2374 { echo "$as_me:$LINENO: result: $AWK" >&5
2375 echo "${ECHO_T}$AWK" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2382 test -n "$AWK" && break
2385 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2386 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2387 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2388 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 cat >conftest.make <<\_ACEOF
2394 @echo '@@@%%%=$(MAKE)=@@@%%%'
2396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2397 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2399 eval ac_cv_prog_make_${ac_make}_set=yes;;
2401 eval ac_cv_prog_make_${ac_make}_set=no;;
2405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2406 { echo "$as_me:$LINENO: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6; }
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2412 SET_MAKE="MAKE=${MAKE-make}"
2415 rm -rf .tst 2>/dev/null
2416 mkdir .tst 2>/dev/null
2417 if test -d .tst; then
2422 rmdir .tst 2>/dev/null
2424 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2425 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2426 # is not polluted with repeated "-I."
2427 am__isrc=' -I$(srcdir)'
2428 # test to see if srcdir already configured
2429 if test -f $srcdir/config.status; then
2430 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2431 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2432 { (exit 1); exit 1; }; }
2436 # test whether we have cygpath
2437 if test -z "$CYGPATH_W"; then
2438 if (cygpath --version) >/dev/null 2>/dev/null; then
2439 CYGPATH_W='cygpath -w'
2446 # Define the identity of the package.
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE "$PACKAGE"
2456 cat >>confdefs.h <<_ACEOF
2457 #define VERSION "$VERSION"
2460 # Some tools Automake needs.
2462 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2465 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2468 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2471 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2474 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2476 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2478 # Installed binaries are usually stripped using `strip' when the user
2479 # run `make install-strip'. However `strip' might not be the right
2480 # tool to use in cross-compilation environments, therefore Automake
2481 # will honor the `STRIP' environment variable to overrule this program.
2482 if test "$cross_compiling" != no; then
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}strip; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_STRIP+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$STRIP"; then
2492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 STRIP=$ac_cv_prog_STRIP
2512 if test -n "$STRIP"; then
2513 { echo "$as_me:$LINENO: result: $STRIP" >&5
2514 echo "${ECHO_T}$STRIP" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2522 if test -z "$ac_cv_prog_STRIP"; then
2524 # Extract the first word of "strip", so it can be a program name with args.
2525 set dummy strip; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$ac_ct_STRIP"; then
2532 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_ac_ct_STRIP="strip"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2552 if test -n "$ac_ct_STRIP"; then
2553 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2554 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2560 if test "x$ac_ct_STRIP" = x; then
2563 case $cross_compiling:$ac_tool_warned in
2565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2566 whose name does not start with the host triplet. If you think this
2567 configuration is useful to you, please write to autoconf@gnu.org." >&5
2568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2569 whose name does not start with the host triplet. If you think this
2570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2571 ac_tool_warned=yes ;;
2576 STRIP="$ac_cv_prog_STRIP"
2580 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2582 # We need awk for the "check" target. The system "awk" is bad on
2584 # Always define AMTAR for backward compatibility.
2586 AMTAR=${AMTAR-"${am_missing_run}tar"}
2588 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2596 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2597 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2598 # Check whether --enable-maintainer-mode was given.
2599 if test "${enable_maintainer_mode+set}" = set; then
2600 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2602 USE_MAINTAINER_MODE=no
2605 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2606 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2607 if test $USE_MAINTAINER_MODE = yes; then
2608 MAINTAINER_MODE_TRUE=
2609 MAINTAINER_MODE_FALSE='#'
2611 MAINTAINER_MODE_TRUE='#'
2612 MAINTAINER_MODE_FALSE=
2615 MAINT=$MAINTAINER_MODE_TRUE
2620 # Check whether --with-release was given.
2621 if test "${with_release+set}" = set; then
2622 withval=$with_release; RELEASE=$withval
2629 # Check whether --with-statedir was given.
2630 if test "${with_statedir+set}" = set; then
2631 withval=$with_statedir; statedir=$withval
2633 statedir=/var/lib/nfs
2638 # Check whether --with-statduser was given.
2639 if test "${with_statduser+set}" = set; then
2640 withval=$with_statduser; statduser=$withval
2642 if test "x$cross_compiling" = "xno"; then
2643 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2655 # Check whether --with-start-statd was given.
2656 if test "${with_start_statd+set}" = set; then
2657 withval=$with_start_statd; startstatd=$withval
2659 startstatd=/usr/sbin/start-statd
2665 cat >>confdefs.h <<_ACEOF
2666 #define START_STATD "$startstatd"
2669 # Check whether --enable-nfsv3 was given.
2670 if test "${enable_nfsv3+set}" = set; then
2671 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2676 if test "$enable_nfsv3" = yes; then
2678 cat >>confdefs.h <<\_ACEOF
2679 #define NFS3_SUPPORTED 1
2686 # Check whether --enable-nfsv4 was given.
2687 if test "${enable_nfsv4+set}" = set; then
2688 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2693 if test "$enable_nfsv4" = yes; then
2695 cat >>confdefs.h <<\_ACEOF
2696 #define NFS4_SUPPORTED 1
2706 if test "$enable_nfsv4" = "yes"; then
2708 CONFIG_NFSV4_FALSE='#'
2710 CONFIG_NFSV4_TRUE='#'
2714 # Check whether --enable-gss was given.
2715 if test "${enable_gss+set}" = set; then
2716 enableval=$enable_gss; enable_gss=$enableval
2721 if test "$enable_gss" = yes; then
2723 cat >>confdefs.h <<\_ACEOF
2724 #define GSS_SUPPORTED 1
2737 if test "$enable_gss" = "yes"; then
2739 CONFIG_GSS_FALSE='#'
2745 # Check whether --enable-kprefix was given.
2746 if test "${enable_kprefix+set}" = set; then
2747 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2753 # Check whether --enable-secure-statd was given.
2754 if test "${enable_secure_statd+set}" = set; then
2755 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2760 if test "$secure_statd" = yes; then
2762 cat >>confdefs.h <<\_ACEOF
2763 #define RESTRICTED_STATD 1
2769 # Check whether --with-rpcgen was given.
2770 if test "${with_rpcgen+set}" = set; then
2771 withval=$with_rpcgen; rpcgen_path=$withval
2777 if test "$rpcgen_path" == "yes"; then
2778 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2779 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2780 elif test "$rpcgen_path" != "internal"; then
2781 RPCGEN_PATH=$rpcgen_path
2784 if test "$RPCGEN_PATH" == ""; then
2786 CONFIG_RPCGEN_FALSE='#'
2788 CONFIG_RPCGEN_TRUE='#'
2789 CONFIG_RPCGEN_FALSE=
2792 # Check whether --enable-uuid was given.
2793 if test "${enable_uuid+set}" = set; then
2794 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2796 choose_blkid=default
2799 # Check whether --enable-mount was given.
2800 if test "${enable_mount+set}" = set; then
2801 enableval=$enable_mount; enable_mount=$enableval
2806 if test "$enable_mount" = "yes"; then
2808 CONFIG_MOUNT_FALSE='#'
2810 CONFIG_MOUNT_TRUE='#'
2814 # Check whether --enable-ipv6 was given.
2815 if test "${enable_ipv6+set}" = set; then
2816 enableval=$enable_ipv6; enable_ipv6=$enableval
2821 if test "$enable_ipv6" = yes; then
2823 cat >>confdefs.h <<\_ACEOF
2824 #define IPV6_SUPPORTED 1
2831 if test "$enable_ipv6" = "yes"; then
2833 CONFIG_IPV6_FALSE='#'
2835 CONFIG_IPV6_TRUE='#'
2840 # Check whether user wants TCP wrappers support
2841 DEPDIR="${am__leading_dot}deps"
2843 ac_config_commands="$ac_config_commands depfiles"
2846 am_make=${MAKE-make}
2847 cat > confinc << 'END'
2852 # If we don't find an include directive, just comment out the code.
2853 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2854 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2858 # First try GNU make style include.
2859 echo "include confinc" > confmf
2860 # We grep out `Entering directory' and `Leaving directory'
2861 # messages which can occur if `w' ends up in MAKEFLAGS.
2862 # In particular we don't look at `^make:' because GNU make might
2863 # be invoked under some other name (usually "gmake"), in which
2864 # case it prints its new name instead of `make'.
2865 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2870 # Now try BSD make style include.
2871 if test "$am__include" = "#"; then
2872 echo '.include "confinc"' > confmf
2873 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2874 am__include=.include
2881 { echo "$as_me:$LINENO: result: $_am_result" >&5
2882 echo "${ECHO_T}$_am_result" >&6; }
2883 rm -f confinc confmf
2885 # Check whether --enable-dependency-tracking was given.
2886 if test "${enable_dependency_tracking+set}" = set; then
2887 enableval=$enable_dependency_tracking;
2890 if test "x$enable_dependency_tracking" != xno; then
2891 am_depcomp="$ac_aux_dir/depcomp"
2894 if test "x$enable_dependency_tracking" != xno; then
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2947 if test -z "$ac_cv_prog_CC"; then
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC="gcc"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2985 if test "x$ac_ct_CC" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet. If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&5
2993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2996 ac_tool_warned=yes ;;
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}cc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_CC="${ac_tool_prefix}cc"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 if test -n "$CC"; then
3035 { echo "$as_me:$LINENO: result: $CC" >&5
3036 echo "${ECHO_T}$CC" >&6; }
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3045 if test -z "$CC"; then
3046 # Extract the first word of "cc", so it can be a program name with args.
3047 set dummy cc; ac_word=$2
3048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3065 ac_prog_rejected=yes
3069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test $ac_prog_rejected = yes; then
3077 # We found a bogon in the path, so make sure we never use it.
3078 set dummy $ac_cv_prog_CC
3080 if test $# != 0; then
3081 # We chose a different compiler from the bogus one.
3082 # However, it has the same basename, so the bogon will be chosen
3083 # first if we set CC to just the basename; use the full file name.
3085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3091 if test -n "$CC"; then
3092 { echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6; }
3095 { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3101 if test -z "$CC"; then
3102 if test -n "$ac_tool_prefix"; then
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_CC+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 if test -n "$CC"; then
3113 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test -n "$CC"; then
3134 { echo "$as_me:$LINENO: result: $CC" >&5
3135 echo "${ECHO_T}$CC" >&6; }
3137 { echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6; }
3142 test -n "$CC" && break
3145 if test -z "$CC"; then
3147 for ac_prog in cl.exe
3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
3150 set dummy $ac_prog; ac_word=$2
3151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_ac_ct_CC="$ac_prog"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3179 echo "${ECHO_T}$ac_ct_CC" >&6; }
3181 { echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6; }
3186 test -n "$ac_ct_CC" && break
3189 if test "x$ac_ct_CC" = x; then
3192 case $cross_compiling:$ac_tool_warned in
3194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3195 whose name does not start with the host triplet. If you think this
3196 configuration is useful to you, please write to autoconf@gnu.org." >&5
3197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3200 ac_tool_warned=yes ;;
3209 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: no acceptable C compiler found in \$PATH
3212 See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3215 # Provide some information about the compiler.
3216 echo "$as_me:$LINENO: checking for C compiler version" >&5
3217 ac_compiler=`set X $ac_compile; echo $2`
3218 { (ac_try="$ac_compiler --version >&5"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compiler --version >&5") 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }
3228 { (ac_try="$ac_compiler -v >&5"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compiler -v >&5") 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (ac_try="$ac_compiler -V >&5"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler -V >&5") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3269 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3270 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3271 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273 # List of possible output files, starting from the most likely.
3274 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3275 # only as a last resort. b.out is created by i960 compilers.
3276 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3278 # The IRIX 6 linker writes into existing files which may not be
3279 # executable, retaining their permissions. Remove them first so a
3280 # subsequent execution test works.
3282 for ac_file in $ac_files
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3286 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291 if { (ac_try="$ac_link_default"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_link_default") 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3304 # so that the user can short-circuit this test for compilers unknown to
3306 for ac_file in $ac_files ''
3308 test -f "$ac_file" || continue
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3313 # We found the default executable, but exeext='' is most
3317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321 # We set ac_cv_exeext here because the later test for it is not
3322 # safe: cross compilers may not add the suffix if given an `-o'
3323 # argument, so we may need to know it at that point already.
3324 # Even if this section looks crufty: it has the advantage of
3331 test "$ac_cv_exeext" = no && ac_cv_exeext=
3337 { echo "$as_me:$LINENO: result: $ac_file" >&5
3338 echo "${ECHO_T}$ac_file" >&6; }
3339 if test -z "$ac_file"; then
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3344 See \`config.log' for more details." >&5
3345 echo "$as_me: error: C compiler cannot create executables
3346 See \`config.log' for more details." >&2;}
3347 { (exit 77); exit 77; }; }
3350 ac_exeext=$ac_cv_exeext
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3355 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3356 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3357 # If not cross compiling, check that we can run a simple program.
3358 if test "$cross_compiling" != yes; then
3359 if { ac_try='./$ac_file'
3360 { (case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_try") 2>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3371 if test "$cross_compiling" = maybe; then
3374 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details." >&2;}
3380 { (exit 1); exit 1; }; }
3384 { echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6; }
3387 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 # Check that the compiler produces executables we can run. If not, either
3390 # the compiler is broken, or we cross compile.
3391 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3392 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3393 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3394 echo "${ECHO_T}$cross_compiling" >&6; }
3396 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3397 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3398 if { (ac_try="$ac_link"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_link") 2>&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; then
3408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3412 for ac_file in conftest.exe conftest conftest.*; do
3413 test -f "$ac_file" || continue
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3423 See \`config.log' for more details." >&5
3424 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details." >&2;}
3426 { (exit 1); exit 1; }; }
3429 rm -f conftest$ac_cv_exeext
3430 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3431 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3433 rm -f conftest.$ac_ext
3434 EXEEXT=$ac_cv_exeext
3436 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3437 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3438 if test "${ac_cv_objext+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.o conftest.obj
3457 if { (ac_try="$ac_compile"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 for ac_file in conftest.o conftest.obj conftest.*; do
3468 test -f "$ac_file" || continue;
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3482 See \`config.log' for more details." >&2;}
3483 { (exit 1); exit 1; }; }
3486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3489 echo "${ECHO_T}$ac_cv_objext" >&6; }
3490 OBJEXT=$ac_cv_objext
3492 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3493 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3494 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1 >conftest.err
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3544 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3546 GCC=`test $ac_compiler_gnu = yes && echo yes`
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3550 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3551 if test "${ac_cv_prog_cc_g+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_save_c_werror_flag=$ac_c_werror_flag
3555 ac_c_werror_flag=yes
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_c_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_c_werror_flag=$ac_save_c_werror_flag
3635 cat >conftest.$ac_ext <<_ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 ac_c_werror_flag=$ac_save_c_werror_flag
3684 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3686 if test "$ac_test_CFLAGS" = set; then
3687 CFLAGS=$ac_save_CFLAGS
3688 elif test $ac_cv_prog_cc_g = yes; then
3689 if test "$GCC" = yes; then
3695 if test "$GCC" = yes; then
3701 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3702 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3703 if test "${ac_cv_prog_cc_c89+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 ac_cv_prog_cc_c89=no
3708 cat >conftest.$ac_ext <<_ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3716 #include <sys/types.h>
3717 #include <sys/stat.h>
3718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3719 struct buf { int x; };
3720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3721 static char *e (p, i)
3727 static char *f (char * (*g) (char **, int), char **p, ...)
3732 s = g (p, va_arg (v,int));
3737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3738 function prototypes and stuff, but not '\xHH' hex character constants.
3739 These don't provoke an error unfortunately, instead are silently treated
3740 as 'x'. The following induces an error, until -std is added to get
3741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3742 array size at least. It's necessary to write '\x00'==0 to get something
3743 that's true only with -std. */
3744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3747 inside strings and character constants. */
3749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3751 int test (int i, double x);
3752 struct s1 {int (*f) (int a);};
3753 struct s2 {int (*f) (double a);};
3754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3760 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3768 CC="$ac_save_CC $ac_arg"
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } && {
3783 test -z "$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3785 } && test -s conftest.$ac_objext; then
3786 ac_cv_prog_cc_c89=$ac_arg
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3794 rm -f core conftest.err conftest.$ac_objext
3795 test "x$ac_cv_prog_cc_c89" != "xno" && break
3797 rm -f conftest.$ac_ext
3802 case "x$ac_cv_prog_cc_c89" in
3804 { echo "$as_me:$LINENO: result: none needed" >&5
3805 echo "${ECHO_T}none needed" >&6; } ;;
3807 { echo "$as_me:$LINENO: result: unsupported" >&5
3808 echo "${ECHO_T}unsupported" >&6; } ;;
3810 CC="$CC $ac_cv_prog_cc_c89"
3811 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3812 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822 depcc="$CC" am_compiler_list=
3824 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3825 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3826 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3830 # We make a subdir and do the tests there. Otherwise we can end up
3831 # making bogus files that we don't know about and never remove. For
3832 # instance it was reported that on HP-UX the gcc test will end up
3833 # making a dummy file named `D' -- because `-MD' means `put the output
3836 # Copy depcomp to subdir because otherwise we won't find it if we're
3837 # using a relative directory.
3838 cp "$am_depcomp" conftest.dir
3840 # We will build objects and dependencies in a subdirectory because
3841 # it helps to detect inapplicable dependency modes. For instance
3842 # both Tru64's cc and ICC support -MD to output dependencies as a
3843 # side effect of compilation, but ICC will put the dependencies in
3844 # the current directory while Tru64 will put them in the object
3848 am_cv_CC_dependencies_compiler_type=none
3849 if test "$am_compiler_list" = ""; then
3850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3852 for depmode in $am_compiler_list; do
3853 # Setup a source with many dependencies, because some compilers
3854 # like to wrap large dependency lists on column 80 (with \), and
3855 # we should not choose a depcomp mode which is confused by this.
3857 # We need to recreate these files for each test, as the compiler may
3858 # overwrite some of them when testing with obscure command lines.
3859 # This happens at least with the AIX C compiler.
3861 for i in 1 2 3 4 5 6; do
3862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3864 # Solaris 8's {/usr,}/bin/sh.
3865 touch sub/conftst$i.h
3867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3871 # after this tag, mechanisms are not by side-effect, so they'll
3872 # only be used when explicitly requested
3873 if test "x$enable_dependency_tracking" = xyes; then
3881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3882 # mode. It turns out that the SunPro C++ compiler does not properly
3883 # handle `-M -o', and we need to detect this.
3884 if depmode=$depmode \
3885 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3887 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3888 >/dev/null 2>conftest.err &&
3889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3891 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3893 # icc doesn't choke on unknown options, it will just issue warnings
3894 # or remarks (even with -Werror). So we grep stderr for any message
3895 # that says an option was ignored or not supported.
3896 # When given -MP, icc 7.0 and 7.1 complain thusly:
3897 # icc: Command line warning: ignoring option '-M'; no argument required
3898 # The diagnosis changed in icc 8.0:
3899 # icc: Command line remark: option '-MP' not supported
3900 if (grep 'ignoring option' conftest.err ||
3901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3902 am_cv_CC_dependencies_compiler_type=$depmode
3911 am_cv_CC_dependencies_compiler_type=none
3915 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3916 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3920 test "x$enable_dependency_tracking" != xno \
3921 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3923 am__fastdepCC_FALSE='#'
3925 am__fastdepCC_TRUE='#'
3926 am__fastdepCC_FALSE=
3934 # Check whether --with-tcp-wrappers was given.
3935 if test "${with_tcp_wrappers+set}" = set; then
3936 withval=$with_tcp_wrappers; with_tcpw=$withval
3941 if test "x$with_tcpw" != "xno" ; then
3943 saved_LDFLAGS="$LDFLAGS"
3944 saved_CPPFLAGS="$CPPFLAGS"
3945 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3946 if test -d "${with_tcpw}/lib"; then
3947 if test -n "${need_dash_r}"; then
3948 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3950 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3953 if test -n "${need_dash_r}"; then
3954 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3956 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3959 if test -d "${with_tcpw}/include"; then
3960 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3962 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3966 LIBS="$LIBWRAP $LIBS"
3967 { echo "$as_me:$LINENO: checking for libwrap" >&5
3968 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3977 int deny_severity = 0, allow_severity = 0;
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (ac_try="$ac_link"
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_link") 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && {
4001 test -z "$ac_c_werror_flag" ||
4002 test ! -s conftest.err
4003 } && test -s conftest$ac_exeext &&
4004 $as_test_x conftest$ac_exeext; then
4006 { echo "$as_me:$LINENO: result: yes" >&5
4007 echo "${ECHO_T}yes" >&6; }
4010 cat >>confdefs.h <<\_ACEOF
4015 cat >>confdefs.h <<\_ACEOF
4016 #define HAVE_LIBWRAP 1
4020 cat >>confdefs.h <<\_ACEOF
4021 #define HAVE_TCP_WRAPPER 1
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4032 echo "$as_me: error: *** libwrap missing" >&2;}
4033 { (exit 1); exit 1; }; }
4038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4039 conftest$ac_exeext conftest.$ac_ext
4047 # Arrange for large-file support
4048 # Check whether --enable-largefile was given.
4049 if test "${enable_largefile+set}" = set; then
4050 enableval=$enable_largefile;
4053 if test "$enable_largefile" != no; then
4055 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4056 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4057 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 ac_cv_sys_largefile_CC=no
4061 if test "$GCC" != yes; then
4064 # IRIX 6.2 and later do not support large files by default,
4065 # so use the C compiler's -n32 option if that helps.
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 #include <sys/types.h>
4073 /* Check that off_t can represent 2**63 - 1 correctly.
4074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4075 since some C++ compilers masquerading as C compilers
4076 incorrectly reject 9223372036854775807. */
4077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4079 && LARGE_OFF_T % 2147483647 == 1)
4089 rm -f conftest.$ac_objext
4090 if { (ac_try="$ac_compile"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_compile") 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && {
4103 test -z "$ac_c_werror_flag" ||
4104 test ! -s conftest.err
4105 } && test -s conftest.$ac_objext; then
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4114 rm -f core conftest.err conftest.$ac_objext
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.$ac_objext; then
4133 ac_cv_sys_largefile_CC=' -n32'; break
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4141 rm -f core conftest.err conftest.$ac_objext
4145 rm -f conftest.$ac_ext
4148 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4149 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4150 if test "$ac_cv_sys_largefile_CC" != no; then
4151 CC=$CC$ac_cv_sys_largefile_CC
4154 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4155 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4156 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #include <sys/types.h>
4167 /* Check that off_t can represent 2**63 - 1 correctly.
4168 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4169 since some C++ compilers masquerading as C compilers
4170 incorrectly reject 9223372036854775807. */
4171 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4173 && LARGE_OFF_T % 2147483647 == 1)
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && {
4197 test -z "$ac_c_werror_flag" ||
4198 test ! -s conftest.err
4199 } && test -s conftest.$ac_objext; then
4200 ac_cv_sys_file_offset_bits=no; break
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #define _FILE_OFFSET_BITS 64
4216 #include <sys/types.h>
4217 /* Check that off_t can represent 2**63 - 1 correctly.
4218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4219 since some C++ compilers masquerading as C compilers
4220 incorrectly reject 9223372036854775807. */
4221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4223 && LARGE_OFF_T % 2147483647 == 1)
4233 rm -f conftest.$ac_objext
4234 if { (ac_try="$ac_compile"
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_compile") 2>conftest.er1
4242 grep -v '^ *+' conftest.er1 >conftest.err
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && {
4247 test -z "$ac_c_werror_flag" ||
4248 test ! -s conftest.err
4249 } && test -s conftest.$ac_objext; then
4250 ac_cv_sys_file_offset_bits=64; break
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 ac_cv_sys_file_offset_bits=unknown
4263 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4264 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4265 case $ac_cv_sys_file_offset_bits in #(
4268 cat >>confdefs.h <<_ACEOF
4269 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4274 if test $ac_cv_sys_file_offset_bits = unknown; then
4275 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4277 if test "${ac_cv_sys_large_files+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <sys/types.h>
4288 /* Check that off_t can represent 2**63 - 1 correctly.
4289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290 since some C++ compilers masquerading as C compilers
4291 incorrectly reject 9223372036854775807. */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294 && LARGE_OFF_T % 2147483647 == 1)
4304 rm -f conftest.$ac_objext
4305 if { (ac_try="$ac_compile"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest.$ac_objext; then
4321 ac_cv_sys_large_files=no; break
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #define _LARGE_FILES 1
4337 #include <sys/types.h>
4338 /* Check that off_t can represent 2**63 - 1 correctly.
4339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4340 since some C++ compilers masquerading as C compilers
4341 incorrectly reject 9223372036854775807. */
4342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4344 && LARGE_OFF_T % 2147483647 == 1)
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.$ac_objext; then
4371 ac_cv_sys_large_files=1; break
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 ac_cv_sys_large_files=unknown
4384 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4385 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4386 case $ac_cv_sys_large_files in #(
4389 cat >>confdefs.h <<_ACEOF
4390 #define _LARGE_FILES $ac_cv_sys_large_files
4400 ac_config_headers="$ac_config_headers support/include/config.h"
4403 # Checks for programs.
4405 ac_cpp='$CXXCPP $CPPFLAGS'
4406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4409 if test -z "$CXX"; then
4410 if test -n "$CCC"; then
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_CXX+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$CXX"; then
4424 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test -n "$CXX"; then
4445 { echo "$as_me:$LINENO: result: $CXX" >&5
4446 echo "${ECHO_T}$CXX" >&6; }
4448 { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4453 test -n "$CXX" && break
4456 if test -z "$CXX"; then
4458 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$ac_ct_CXX"; then
4468 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_ac_ct_CXX="$ac_prog"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4488 if test -n "$ac_ct_CXX"; then
4489 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4490 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4492 { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }
4497 test -n "$ac_ct_CXX" && break
4500 if test "x$ac_ct_CXX" = x; then
4503 case $cross_compiling:$ac_tool_warned in
4505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4506 whose name does not start with the host triplet. If you think this
4507 configuration is useful to you, please write to autoconf@gnu.org." >&5
4508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4509 whose name does not start with the host triplet. If you think this
4510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4511 ac_tool_warned=yes ;;
4519 # Provide some information about the compiler.
4520 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4521 ac_compiler=`set X $ac_compile; echo $2`
4522 { (ac_try="$ac_compiler --version >&5"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_compiler --version >&5") 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }
4532 { (ac_try="$ac_compiler -v >&5"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_compiler -v >&5") 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }
4542 { (ac_try="$ac_compiler -V >&5"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compiler -V >&5") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }
4553 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4554 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4555 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_compile") 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && {
4590 test -z "$ac_cxx_werror_flag" ||
4591 test ! -s conftest.err
4592 } && test -s conftest.$ac_objext; then
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4605 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4606 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4607 GXX=`test $ac_compiler_gnu = yes && echo yes`
4608 ac_test_CXXFLAGS=${CXXFLAGS+set}
4609 ac_save_CXXFLAGS=$CXXFLAGS
4610 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4611 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4612 if test "${ac_cv_prog_cxx_g+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4616 ac_cxx_werror_flag=yes
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_compile") 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && {
4648 test -z "$ac_cxx_werror_flag" ||
4649 test ! -s conftest.err
4650 } && test -s conftest.$ac_objext; then
4651 ac_cv_prog_cxx_g=yes
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_compile") 2>conftest.er1
4681 grep -v '^ *+' conftest.er1 >conftest.err
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && {
4686 test -z "$ac_cxx_werror_flag" ||
4687 test ! -s conftest.err
4688 } && test -s conftest.$ac_objext; then
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4711 rm -f conftest.$ac_objext
4712 if { (ac_try="$ac_compile"
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_compile") 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && {
4725 test -z "$ac_cxx_werror_flag" ||
4726 test ! -s conftest.err
4727 } && test -s conftest.$ac_objext; then
4728 ac_cv_prog_cxx_g=yes
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4747 if test "$ac_test_CXXFLAGS" = set; then
4748 CXXFLAGS=$ac_save_CXXFLAGS
4749 elif test $ac_cv_prog_cxx_g = yes; then
4750 if test "$GXX" = yes; then
4756 if test "$GXX" = yes; then
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768 depcc="$CXX" am_compiler_list=
4770 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4771 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4772 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4776 # We make a subdir and do the tests there. Otherwise we can end up
4777 # making bogus files that we don't know about and never remove. For
4778 # instance it was reported that on HP-UX the gcc test will end up
4779 # making a dummy file named `D' -- because `-MD' means `put the output
4782 # Copy depcomp to subdir because otherwise we won't find it if we're
4783 # using a relative directory.
4784 cp "$am_depcomp" conftest.dir
4786 # We will build objects and dependencies in a subdirectory because
4787 # it helps to detect inapplicable dependency modes. For instance
4788 # both Tru64's cc and ICC support -MD to output dependencies as a
4789 # side effect of compilation, but ICC will put the dependencies in
4790 # the current directory while Tru64 will put them in the object
4794 am_cv_CXX_dependencies_compiler_type=none
4795 if test "$am_compiler_list" = ""; then
4796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4798 for depmode in $am_compiler_list; do
4799 # Setup a source with many dependencies, because some compilers
4800 # like to wrap large dependency lists on column 80 (with \), and
4801 # we should not choose a depcomp mode which is confused by this.
4803 # We need to recreate these files for each test, as the compiler may
4804 # overwrite some of them when testing with obscure command lines.
4805 # This happens at least with the AIX C compiler.
4807 for i in 1 2 3 4 5 6; do
4808 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4809 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4810 # Solaris 8's {/usr,}/bin/sh.
4811 touch sub/conftst$i.h
4813 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4817 # after this tag, mechanisms are not by side-effect, so they'll
4818 # only be used when explicitly requested
4819 if test "x$enable_dependency_tracking" = xyes; then
4827 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4828 # mode. It turns out that the SunPro C++ compiler does not properly
4829 # handle `-M -o', and we need to detect this.
4830 if depmode=$depmode \
4831 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4833 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4834 >/dev/null 2>conftest.err &&
4835 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4836 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4837 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4838 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4839 # icc doesn't choke on unknown options, it will just issue warnings
4840 # or remarks (even with -Werror). So we grep stderr for any message
4841 # that says an option was ignored or not supported.
4842 # When given -MP, icc 7.0 and 7.1 complain thusly:
4843 # icc: Command line warning: ignoring option '-M'; no argument required
4844 # The diagnosis changed in icc 8.0:
4845 # icc: Command line remark: option '-MP' not supported
4846 if (grep 'ignoring option' conftest.err ||
4847 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4848 am_cv_CXX_dependencies_compiler_type=$depmode
4857 am_cv_CXX_dependencies_compiler_type=none
4861 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4862 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4863 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4866 test "x$enable_dependency_tracking" != xno \
4867 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4868 am__fastdepCXX_TRUE=
4869 am__fastdepCXX_FALSE='#'
4871 am__fastdepCXX_TRUE='#'
4872 am__fastdepCXX_FALSE=
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_CC+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$CC"; then
4890 ac_cv_prog_CC="$CC" # Let the user override the test.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 if test -n "$CC"; then
4911 { echo "$as_me:$LINENO: result: $CC" >&5
4912 echo "${ECHO_T}$CC" >&6; }
4914 { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4920 if test -z "$ac_cv_prog_CC"; then
4922 # Extract the first word of "gcc", so it can be a program name with args.
4923 set dummy gcc; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 if test -n "$ac_ct_CC"; then
4930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_ac_ct_CC="gcc"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4950 if test -n "$ac_ct_CC"; then
4951 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4952 echo "${ECHO_T}$ac_ct_CC" >&6; }
4954 { echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6; }
4958 if test "x$ac_ct_CC" = x; then
4961 case $cross_compiling:$ac_tool_warned in
4963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4964 whose name does not start with the host triplet. If you think this
4965 configuration is useful to you, please write to autoconf@gnu.org." >&5
4966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4967 whose name does not start with the host triplet. If you think this
4968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4969 ac_tool_warned=yes ;;
4977 if test -z "$CC"; then
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}cc; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_CC+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$CC"; then
4987 ac_cv_prog_CC="$CC" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_CC="${ac_tool_prefix}cc"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 if test -n "$CC"; then
5008 { echo "$as_me:$LINENO: result: $CC" >&5
5009 echo "${ECHO_T}$CC" >&6; }
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5018 if test -z "$CC"; then
5019 # Extract the first word of "cc", so it can be a program name with args.
5020 set dummy cc; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5038 ac_prog_rejected=yes
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 if test $ac_prog_rejected = yes; then
5050 # We found a bogon in the path, so make sure we never use it.
5051 set dummy $ac_cv_prog_CC
5053 if test $# != 0; then
5054 # We chose a different compiler from the bogus one.
5055 # However, it has the same basename, so the bogon will be chosen
5056 # first if we set CC to just the basename; use the full file name.
5058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5064 if test -n "$CC"; then
5065 { echo "$as_me:$LINENO: result: $CC" >&5
5066 echo "${ECHO_T}$CC" >&6; }
5068 { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5074 if test -z "$CC"; then
5075 if test -n "$ac_tool_prefix"; then
5076 for ac_prog in cl.exe
5078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_prog_CC+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 if test -n "$CC"; then
5086 ac_cv_prog_CC="$CC" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 if test -n "$CC"; then
5107 { echo "$as_me:$LINENO: result: $CC" >&5
5108 echo "${ECHO_T}$CC" >&6; }
5110 { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5115 test -n "$CC" && break
5118 if test -z "$CC"; then
5120 for ac_prog in cl.exe
5122 # Extract the first word of "$ac_prog", so it can be a program name with args.
5123 set dummy $ac_prog; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 if test -n "$ac_ct_CC"; then
5130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_ac_ct_CC="$ac_prog"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5150 if test -n "$ac_ct_CC"; then
5151 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5152 echo "${ECHO_T}$ac_ct_CC" >&6; }
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5159 test -n "$ac_ct_CC" && break
5162 if test "x$ac_ct_CC" = x; then
5165 case $cross_compiling:$ac_tool_warned in
5167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5168 whose name does not start with the host triplet. If you think this
5169 configuration is useful to you, please write to autoconf@gnu.org." >&5
5170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5171 whose name does not start with the host triplet. If you think this
5172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5173 ac_tool_warned=yes ;;
5182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5183 See \`config.log' for more details." >&5
5184 echo "$as_me: error: no acceptable C compiler found in \$PATH
5185 See \`config.log' for more details." >&2;}
5186 { (exit 1); exit 1; }; }
5188 # Provide some information about the compiler.
5189 echo "$as_me:$LINENO: checking for C compiler version" >&5
5190 ac_compiler=`set X $ac_compile; echo $2`
5191 { (ac_try="$ac_compiler --version >&5"
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compiler --version >&5") 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5201 { (ac_try="$ac_compiler -v >&5"
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compiler -v >&5") 2>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }
5211 { (ac_try="$ac_compiler -V >&5"
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_compiler -V >&5") 2>&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }
5222 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5223 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5224 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5254 grep -v '^ *+' conftest.er1 >conftest.err
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5274 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5275 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5276 GCC=`test $ac_compiler_gnu = yes && echo yes`
5277 ac_test_CFLAGS=${CFLAGS+set}
5278 ac_save_CFLAGS=$CFLAGS
5279 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_cc_g+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_save_c_werror_flag=$ac_c_werror_flag
5285 ac_c_werror_flag=yes
5288 cat >conftest.$ac_ext <<_ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5303 rm -f conftest.$ac_objext
5304 if { (ac_try="$ac_compile"
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_compile") 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } && {
5317 test -z "$ac_c_werror_flag" ||
5318 test ! -s conftest.err
5319 } && test -s conftest.$ac_objext; then
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && {
5355 test -z "$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5357 } && test -s conftest.$ac_objext; then
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_c_werror_flag=$ac_save_c_werror_flag
5365 cat >conftest.$ac_ext <<_ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compile") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 ac_c_werror_flag=$ac_save_c_werror_flag
5414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5416 if test "$ac_test_CFLAGS" = set; then
5417 CFLAGS=$ac_save_CFLAGS
5418 elif test $ac_cv_prog_cc_g = yes; then
5419 if test "$GCC" = yes; then
5425 if test "$GCC" = yes; then
5431 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5432 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5433 if test "${ac_cv_prog_cc_c89+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 ac_cv_prog_cc_c89=no
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5446 #include <sys/types.h>
5447 #include <sys/stat.h>
5448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5449 struct buf { int x; };
5450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5451 static char *e (p, i)
5457 static char *f (char * (*g) (char **, int), char **p, ...)
5462 s = g (p, va_arg (v,int));
5467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5468 function prototypes and stuff, but not '\xHH' hex character constants.
5469 These don't provoke an error unfortunately, instead are silently treated
5470 as 'x'. The following induces an error, until -std is added to get
5471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5472 array size at least. It's necessary to write '\x00'==0 to get something
5473 that's true only with -std. */
5474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5476 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5477 inside strings and character constants. */
5479 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5481 int test (int i, double x);
5482 struct s1 {int (*f) (int a);};
5483 struct s2 {int (*f) (double a);};
5484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5496 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5498 CC="$ac_save_CC $ac_arg"
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5516 ac_cv_prog_cc_c89=$ac_arg
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5524 rm -f core conftest.err conftest.$ac_objext
5525 test "x$ac_cv_prog_cc_c89" != "xno" && break
5527 rm -f conftest.$ac_ext
5532 case "x$ac_cv_prog_cc_c89" in
5534 { echo "$as_me:$LINENO: result: none needed" >&5
5535 echo "${ECHO_T}none needed" >&6; } ;;
5537 { echo "$as_me:$LINENO: result: unsupported" >&5
5538 echo "${ECHO_T}unsupported" >&6; } ;;
5540 CC="$CC $ac_cv_prog_cc_c89"
5541 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5542 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 depcc="$CC" am_compiler_list=
5554 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5555 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5560 # We make a subdir and do the tests there. Otherwise we can end up
5561 # making bogus files that we don't know about and never remove. For
5562 # instance it was reported that on HP-UX the gcc test will end up
5563 # making a dummy file named `D' -- because `-MD' means `put the output
5566 # Copy depcomp to subdir because otherwise we won't find it if we're
5567 # using a relative directory.
5568 cp "$am_depcomp" conftest.dir
5570 # We will build objects and dependencies in a subdirectory because
5571 # it helps to detect inapplicable dependency modes. For instance
5572 # both Tru64's cc and ICC support -MD to output dependencies as a
5573 # side effect of compilation, but ICC will put the dependencies in
5574 # the current directory while Tru64 will put them in the object
5578 am_cv_CC_dependencies_compiler_type=none
5579 if test "$am_compiler_list" = ""; then
5580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5582 for depmode in $am_compiler_list; do
5583 # Setup a source with many dependencies, because some compilers
5584 # like to wrap large dependency lists on column 80 (with \), and
5585 # we should not choose a depcomp mode which is confused by this.
5587 # We need to recreate these files for each test, as the compiler may
5588 # overwrite some of them when testing with obscure command lines.
5589 # This happens at least with the AIX C compiler.
5591 for i in 1 2 3 4 5 6; do
5592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5594 # Solaris 8's {/usr,}/bin/sh.
5595 touch sub/conftst$i.h
5597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5601 # after this tag, mechanisms are not by side-effect, so they'll
5602 # only be used when explicitly requested
5603 if test "x$enable_dependency_tracking" = xyes; then
5611 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5612 # mode. It turns out that the SunPro C++ compiler does not properly
5613 # handle `-M -o', and we need to detect this.
5614 if depmode=$depmode \
5615 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5618 >/dev/null 2>conftest.err &&
5619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5621 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5623 # icc doesn't choke on unknown options, it will just issue warnings
5624 # or remarks (even with -Werror). So we grep stderr for any message
5625 # that says an option was ignored or not supported.
5626 # When given -MP, icc 7.0 and 7.1 complain thusly:
5627 # icc: Command line warning: ignoring option '-M'; no argument required
5628 # The diagnosis changed in icc 8.0:
5629 # icc: Command line remark: option '-MP' not supported
5630 if (grep 'ignoring option' conftest.err ||
5631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5632 am_cv_CC_dependencies_compiler_type=$depmode
5641 am_cv_CC_dependencies_compiler_type=none
5645 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5646 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5647 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5650 test "x$enable_dependency_tracking" != xno \
5651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5653 am__fastdepCC_FALSE='#'
5655 am__fastdepCC_TRUE='#'
5656 am__fastdepCC_FALSE=
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5666 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5667 # On Suns, sometimes $CPP names a directory.
5668 if test -n "$CPP" && test -d "$CPP"; then
5671 if test -z "$CPP"; then
5672 if test "${ac_cv_prog_CPP+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 # Double quotes because CPP needs to be expanded
5676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5679 for ac_c_preproc_warn_flag in '' yes
5681 # Use a header file that comes with gcc, so configuring glibc
5682 # with a fresh cross-compiler works.
5683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684 # <limits.h> exists even on freestanding compilers.
5685 # On the NeXT, cc -E runs the code through the compiler's parser,
5686 # not just through cpp. "Syntax error" is here to catch this case.
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 # include <limits.h>
5696 # include <assert.h>
5700 if { (ac_try="$ac_cpp conftest.$ac_ext"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } >/dev/null && {
5713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Broken: fails on valid input.
5725 rm -f conftest.err conftest.$ac_ext
5727 # OK, works on sane cases. Now check whether nonexistent headers
5728 # can be detected and how.
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5737 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } >/dev/null && {
5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5753 # Broken: success on invalid input.
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Passes both tests.
5764 rm -f conftest.err conftest.$ac_ext
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5781 { echo "$as_me:$LINENO: result: $CPP" >&5
5782 echo "${ECHO_T}$CPP" >&6; }
5784 for ac_c_preproc_warn_flag in '' yes
5786 # Use a header file that comes with gcc, so configuring glibc
5787 # with a fresh cross-compiler works.
5788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789 # <limits.h> exists even on freestanding compilers.
5790 # On the NeXT, cc -E runs the code through the compiler's parser,
5791 # not just through cpp. "Syntax error" is here to catch this case.
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5799 # include <limits.h>
5801 # include <assert.h>
5805 if { (ac_try="$ac_cpp conftest.$ac_ext"
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5813 grep -v '^ *+' conftest.er1 >conftest.err
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } >/dev/null && {
5818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 # Broken: fails on valid input.
5830 rm -f conftest.err conftest.$ac_ext
5832 # OK, works on sane cases. Now check whether nonexistent headers
5833 # can be detected and how.
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #include <ac_nonexistent.h>
5842 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null && {
5855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5858 # Broken: success on invalid input.
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 # Passes both tests.
5869 rm -f conftest.err conftest.$ac_ext
5872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5873 rm -f conftest.err conftest.$ac_ext
5874 if $ac_preproc_ok; then
5877 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5880 See \`config.log' for more details." >&2;}
5881 { (exit 1); exit 1; }; }
5885 ac_cpp='$CPP $CPPFLAGS'
5886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890 # Find a good install program. We prefer a C program (faster),
5891 # so one script is as good as another. But avoid the broken or
5892 # incompatible versions:
5893 # SysV /etc/install, /usr/sbin/install
5894 # SunOS /usr/etc/install
5895 # IRIX /sbin/install
5897 # AmigaOS /C/install, which installs bootblocks on floppy discs
5898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5901 # OS/2's system install, which has a completely different semantic
5902 # ./install, which can be erroneously created by make from ./install.sh.
5903 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5905 if test -z "$INSTALL"; then
5906 if test "${ac_cv_path_install+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 # Account for people who put trailing slashes in PATH elements.
5916 ./ | .// | /cC/* | \
5917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5918 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5921 # OSF1 and SCO ODT 3.0 have their own names for install.
5922 # Don't use installbsd from OSF since it installs stuff as root
5924 for ac_prog in ginstall scoinst install; do
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5927 if test $ac_prog = install &&
5928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5929 # AIX install. It has an incompatible calling convention.
5931 elif test $ac_prog = install &&
5932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5933 # program-specific install script used by HP pwplus--don't use.
5936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5949 if test "${ac_cv_path_install+set}" = set; then
5950 INSTALL=$ac_cv_path_install
5952 # As a last resort, use the slow shell script. Don't cache a
5953 # value for INSTALL within a source directory, because that will
5954 # break other packages using the cache if that directory is
5955 # removed, or if the value is a relative name.
5956 INSTALL=$ac_install_sh
5959 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5960 echo "${ECHO_T}$INSTALL" >&6; }
5962 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5963 # It thinks the first close brace ends the variable substitution.
5964 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5966 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5968 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5970 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5971 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5973 if test "$LN_S" = "ln -s"; then
5974 { echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6; }
5977 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5978 echo "${ECHO_T}no, using $LN_S" >&6; }
5981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5983 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 cat >conftest.make <<\_ACEOF
5990 @echo '@@@%%%=$(MAKE)=@@@%%%'
5992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5995 eval ac_cv_prog_make_${ac_make}_set=yes;;
5997 eval ac_cv_prog_make_${ac_make}_set=no;;
6001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6002 { echo "$as_me:$LINENO: result: yes" >&5
6003 echo "${ECHO_T}yes" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 SET_MAKE="MAKE=${MAKE-make}"
6011 # Check whether --enable-shared was given.
6012 if test "${enable_shared+set}" = set; then
6013 enableval=$enable_shared; p=${PACKAGE-default}
6015 yes) enable_shared=yes ;;
6016 no) enable_shared=no ;;
6019 # Look at the argument we got. We use all the common list separators.
6020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6021 for pkg in $enableval; do
6023 if test "X$pkg" = "X$p"; then
6035 # Check whether --enable-static was given.
6036 if test "${enable_static+set}" = set; then
6037 enableval=$enable_static; p=${PACKAGE-default}
6039 yes) enable_static=yes ;;
6040 no) enable_static=no ;;
6043 # Look at the argument we got. We use all the common list separators.
6044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6045 for pkg in $enableval; do
6047 if test "X$pkg" = "X$p"; then
6059 # Check whether --enable-fast-install was given.
6060 if test "${enable_fast_install+set}" = set; then
6061 enableval=$enable_fast_install; p=${PACKAGE-default}
6063 yes) enable_fast_install=yes ;;
6064 no) enable_fast_install=no ;;
6066 enable_fast_install=no
6067 # Look at the argument we got. We use all the common list separators.
6068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6069 for pkg in $enableval; do
6071 if test "X$pkg" = "X$p"; then
6072 enable_fast_install=yes
6079 enable_fast_install=yes
6083 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6084 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6085 if test "${lt_cv_path_SED+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 # Loop through the user's path and test for sed and gsed.
6089 # Then use that list of sed's as ones to test for truncation.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for lt_ac_prog in sed gsed; do
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6098 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6106 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6107 # along with /bin/sed that truncates output.
6108 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6109 test ! -f $lt_ac_sed && continue
6110 cat /dev/null > conftest.in
6112 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6113 # Check for GNU sed and select it if it is found.
6114 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6115 lt_cv_path_SED=$lt_ac_sed
6119 cat conftest.in conftest.in >conftest.tmp
6120 mv conftest.tmp conftest.in
6121 cp conftest.in conftest.nl
6123 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6124 cmp -s conftest.out conftest.nl || break
6125 # 10000 chars as input seems more than enough
6126 test $lt_ac_count -gt 10 && break
6127 lt_ac_count=`expr $lt_ac_count + 1`
6128 if test $lt_ac_count -gt $lt_ac_max; then
6129 lt_ac_max=$lt_ac_count
6130 lt_cv_path_SED=$lt_ac_sed
6139 { echo "$as_me:$LINENO: result: $SED" >&5
6140 echo "${ECHO_T}$SED" >&6; }
6142 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6143 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6144 if test "${ac_cv_path_GREP+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 # Extract the first word of "grep ggrep" to use in msg output
6148 if test -z "$GREP"; then
6149 set dummy grep ggrep; ac_prog_name=$2
6150 if test "${ac_cv_path_GREP+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_path_GREP_found=false
6154 # Loop through the user's path and test for each of PROGNAME-LIST
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6159 test -z "$as_dir" && as_dir=.
6160 for ac_prog in grep ggrep; do
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6164 # Check for GNU ac_path_GREP and select it if it is found.
6165 # Check for GNU $ac_path_GREP
6166 case `"$ac_path_GREP" --version 2>&1` in
6168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6171 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6174 cat "conftest.in" "conftest.in" >"conftest.tmp"
6175 mv "conftest.tmp" "conftest.in"
6176 cp "conftest.in" "conftest.nl"
6177 echo 'GREP' >> "conftest.nl"
6178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6180 ac_count=`expr $ac_count + 1`
6181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6182 # Best one so far, save it but keep looking for a better one
6183 ac_cv_path_GREP="$ac_path_GREP"
6184 ac_path_GREP_max=$ac_count
6186 # 10*(2^10) chars as input seems more than enough
6187 test $ac_count -gt 10 && break
6189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6193 $ac_path_GREP_found && break 3
6203 GREP="$ac_cv_path_GREP"
6204 if test -z "$GREP"; then
6205 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6206 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6207 { (exit 1); exit 1; }; }
6211 ac_cv_path_GREP=$GREP
6216 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6217 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6218 GREP="$ac_cv_path_GREP"
6221 { echo "$as_me:$LINENO: checking for egrep" >&5
6222 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_EGREP+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6227 then ac_cv_path_EGREP="$GREP -E"
6229 # Extract the first word of "egrep" to use in msg output
6230 if test -z "$EGREP"; then
6231 set dummy egrep; ac_prog_name=$2
6232 if test "${ac_cv_path_EGREP+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_path_EGREP_found=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241 test -z "$as_dir" && as_dir=.
6242 for ac_prog in egrep; do
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6245 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6246 # Check for GNU ac_path_EGREP and select it if it is found.
6247 # Check for GNU $ac_path_EGREP
6248 case `"$ac_path_EGREP" --version 2>&1` in
6250 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6253 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6256 cat "conftest.in" "conftest.in" >"conftest.tmp"
6257 mv "conftest.tmp" "conftest.in"
6258 cp "conftest.in" "conftest.nl"
6259 echo 'EGREP' >> "conftest.nl"
6260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6262 ac_count=`expr $ac_count + 1`
6263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6264 # Best one so far, save it but keep looking for a better one
6265 ac_cv_path_EGREP="$ac_path_EGREP"
6266 ac_path_EGREP_max=$ac_count
6268 # 10*(2^10) chars as input seems more than enough
6269 test $ac_count -gt 10 && break
6271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275 $ac_path_EGREP_found && break 3
6285 EGREP="$ac_cv_path_EGREP"
6286 if test -z "$EGREP"; then
6287 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6288 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6289 { (exit 1); exit 1; }; }
6293 ac_cv_path_EGREP=$EGREP
6299 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6300 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6301 EGREP="$ac_cv_path_EGREP"
6305 # Check whether --with-gnu-ld was given.
6306 if test "${with_gnu_ld+set}" = set; then
6307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6313 if test "$GCC" = yes; then
6314 # Check if gcc -print-prog-name=ld gives a path.
6315 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6316 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6319 # gcc leaves a trailing carriage return which upsets mingw
6320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6325 # Accept absolute paths.
6327 re_direlt='/[^/][^/]*/\.\./'
6328 # Canonicalize the pathname of ld
6329 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6330 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6331 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6333 test -z "$LD" && LD="$ac_prog"
6336 # If it fails, then pretend we aren't using GCC.
6340 # If it is relative, then search for the first ld in PATH.
6344 elif test "$with_gnu_ld" = yes; then
6345 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6346 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6348 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6349 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6351 if test "${lt_cv_path_LD+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 if test -z "$LD"; then
6355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6356 for ac_dir in $PATH; do
6358 test -z "$ac_dir" && ac_dir=.
6359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6360 lt_cv_path_LD="$ac_dir/$ac_prog"
6361 # Check to see if the program is GNU ld. I'd rather use --version,
6362 # but apparently some variants of GNU ld only accept -v.
6363 # Break only if it was the GNU/non-GNU ld that we prefer.
6364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6365 *GNU* | *'with BFD'*)
6366 test "$with_gnu_ld" != no && break
6369 test "$with_gnu_ld" != yes && break
6376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6381 if test -n "$LD"; then
6382 { echo "$as_me:$LINENO: result: $LD" >&5
6383 echo "${ECHO_T}$LD" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6388 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6389 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6390 { (exit 1); exit 1; }; }
6391 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6392 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6393 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6397 case `$LD -v 2>&1 </dev/null` in
6398 *GNU* | *'with BFD'*)
6399 lt_cv_prog_gnu_ld=yes
6402 lt_cv_prog_gnu_ld=no
6406 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6407 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6408 with_gnu_ld=$lt_cv_prog_gnu_ld
6411 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6412 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6413 if test "${lt_cv_ld_reload_flag+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 lt_cv_ld_reload_flag='-r'
6418 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6419 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6420 reload_flag=$lt_cv_ld_reload_flag
6421 case $reload_flag in
6423 *) reload_flag=" $reload_flag" ;;
6425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6428 if test "$GCC" = yes; then
6429 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6431 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6436 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6437 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6438 if test "${lt_cv_path_NM+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 if test -n "$NM"; then
6442 # Let the user override the test.
6445 lt_nm_to_check="${ac_tool_prefix}nm"
6446 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6447 lt_nm_to_check="$lt_nm_to_check nm"
6449 for lt_tmp_nm in $lt_nm_to_check; do
6450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6451 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6453 test -z "$ac_dir" && ac_dir=.
6454 tmp_nm="$ac_dir/$lt_tmp_nm"
6455 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6456 # Check to see if the nm accepts a BSD-compat flag.
6457 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6458 # nm: unknown option "B" ignored
6459 # Tru64's nm complains that /dev/null is an invalid object file
6460 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6461 */dev/null* | *'Invalid file or object type'*)
6462 lt_cv_path_NM="$tmp_nm -B"
6466 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6468 lt_cv_path_NM="$tmp_nm -p"
6472 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6473 continue # so that we can try to find one that supports BSD flags
6482 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6485 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6486 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6489 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6490 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6491 if test "${lt_cv_deplibs_check_method+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 lt_cv_file_magic_cmd='$MAGIC_CMD'
6495 lt_cv_file_magic_test_file=
6496 lt_cv_deplibs_check_method='unknown'
6497 # Need to set the preceding variable on all platforms that support
6498 # interlibrary dependencies.
6499 # 'none' -- dependencies not supported.
6500 # `unknown' -- same as none, but documents that we really don't know.
6501 # 'pass_all' -- all dependencies passed with no checks.
6502 # 'test_compile' -- check by making test program.
6503 # 'file_magic [[regex]]' -- check by looking for files in library path
6504 # which responds to the $file_magic_cmd with a given extended regex.
6505 # If you have `file' or equivalent on your system and you're not sure
6506 # whether `pass_all' will *always* work, you probably want this one.
6510 lt_cv_deplibs_check_method=pass_all
6514 lt_cv_deplibs_check_method=pass_all
6518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519 lt_cv_file_magic_cmd='/usr/bin/file -L'
6520 lt_cv_file_magic_test_file=/shlib/libc.so
6524 # func_win32_libid is a shell function defined in ltmain.sh
6525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526 lt_cv_file_magic_cmd='func_win32_libid'
6530 # Base MSYS/MinGW do not provide the 'file' command needed by
6531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532 # unless we find 'file', for example because we are cross-compiling.
6533 if ( file / ) >/dev/null 2>&1; then
6534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6535 lt_cv_file_magic_cmd='func_win32_libid'
6537 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6538 lt_cv_file_magic_cmd='$OBJDUMP -f'
6542 darwin* | rhapsody*)
6543 lt_cv_deplibs_check_method=pass_all
6546 freebsd* | dragonfly*)
6547 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6550 # Not sure whether the presence of OpenBSD here was a mistake.
6551 # Let's accept both of them until this is cleared up.
6552 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6553 lt_cv_file_magic_cmd=/usr/bin/file
6554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6558 lt_cv_deplibs_check_method=pass_all
6563 lt_cv_deplibs_check_method=pass_all
6566 hpux10.20* | hpux11*)
6567 lt_cv_file_magic_cmd=/usr/bin/file
6570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6571 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6574 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]'
6575 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6579 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6585 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6589 irix5* | irix6* | nonstopux*)
6591 *-32|*"-32 ") libmagic=32-bit;;
6592 *-n32|*"-n32 ") libmagic=N32;;
6593 *-64|*"-64 ") libmagic=64-bit;;
6594 *) libmagic=never-match;;
6596 lt_cv_deplibs_check_method=pass_all
6599 # This must be Linux ELF.
6600 linux* | k*bsd*-gnu)
6601 lt_cv_deplibs_check_method=pass_all
6605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6614 lt_cv_file_magic_cmd=/usr/bin/file
6615 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6619 lt_cv_deplibs_check_method=unknown
6623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6630 osf3* | osf4* | osf5*)
6631 lt_cv_deplibs_check_method=pass_all
6635 lt_cv_deplibs_check_method=pass_all
6639 lt_cv_deplibs_check_method=pass_all
6643 case $host_vendor in
6645 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]'
6646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6649 lt_cv_deplibs_check_method=pass_all
6652 lt_cv_file_magic_cmd='/bin/file'
6653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6656 lt_cv_file_magic_cmd='/bin/file'
6657 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6658 lt_cv_file_magic_test_file=/lib/libc.so
6661 lt_cv_deplibs_check_method=pass_all
6664 lt_cv_deplibs_check_method=pass_all
6669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6670 lt_cv_deplibs_check_method=pass_all
6675 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6676 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6677 file_magic_cmd=$lt_cv_file_magic_cmd
6678 deplibs_check_method=$lt_cv_deplibs_check_method
6679 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6684 # If no C compiler was specified, use CC.
6687 # If no C compiler flags were specified, use CFLAGS.
6688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6690 # Allow CC to be a program name with arguments.
6693 # Check whether --enable-libtool-lock was given.
6694 if test "${enable_libtool_lock+set}" = set; then
6695 enableval=$enable_libtool_lock;
6698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6700 # Some flags need to be propagated to the compiler or linker for good
6704 # Find out which ABI we are using.
6705 echo 'int i;' > conftest.$ac_ext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707 (eval $ac_compile) 2>&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; then
6711 case `/usr/bin/file conftest.$ac_objext` in
6723 # Find out which ABI we are using.
6724 echo '#line 6724 "configure"' > conftest.$ac_ext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; then
6730 if test "$lt_cv_prog_gnu_ld" = yes; then
6731 case `/usr/bin/file conftest.$ac_objext` in
6733 LD="${LD-ld} -melf32bsmip"
6736 LD="${LD-ld} -melf32bmipn32"
6739 LD="${LD-ld} -melf64bmip"
6743 case `/usr/bin/file conftest.$ac_objext` in
6759 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6760 s390*-*linux*|sparc*-*linux*)
6761 # Find out which ABI we are using.
6762 echo 'int i;' > conftest.$ac_ext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764 (eval $ac_compile) 2>&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; then
6768 case `/usr/bin/file conftest.o` in
6771 x86_64-*kfreebsd*-gnu)
6772 LD="${LD-ld} -m elf_i386_fbsd"
6775 LD="${LD-ld} -m elf_i386"
6777 ppc64-*linux*|powerpc64-*linux*)
6778 LD="${LD-ld} -m elf32ppclinux"
6781 LD="${LD-ld} -m elf_s390"
6784 LD="${LD-ld} -m elf32_sparc"
6791 x86_64-*kfreebsd*-gnu)
6792 LD="${LD-ld} -m elf_x86_64_fbsd"
6795 LD="${LD-ld} -m elf_x86_64"
6797 ppc*-*linux*|powerpc*-*linux*)
6798 LD="${LD-ld} -m elf64ppc"
6801 LD="${LD-ld} -m elf64_s390"
6804 LD="${LD-ld} -m elf64_sparc"
6814 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6815 SAVE_CFLAGS="$CFLAGS"
6816 CFLAGS="$CFLAGS -belf"
6817 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6819 if test "${lt_cv_cc_needs_belf+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 ac_cpp='$CPP $CPPFLAGS'
6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828 cat >conftest.$ac_ext <<_ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (ac_try="$ac_link"
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_link") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest$ac_exeext &&
6860 $as_test_x conftest$ac_exeext; then
6861 lt_cv_cc_needs_belf=yes
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 lt_cv_cc_needs_belf=no
6869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6870 conftest$ac_exeext conftest.$ac_ext
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6879 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6880 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6882 CFLAGS="$SAVE_CFLAGS"
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.$ac_ext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; then
6893 case `/usr/bin/file conftest.o` in
6895 case $lt_cv_prog_gnu_ld in
6896 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6897 *) LD="${LD-ld} -64" ;;
6908 need_locks="$enable_libtool_lock"
6912 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6914 if test "${ac_cv_header_stdc+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_cv_header_stdc=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_cv_header_stdc=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 if test $ac_cv_header_stdc = yes; then
6964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6965 cat >conftest.$ac_ext <<_ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975 $EGREP "memchr" >/dev/null 2>&1; then
6978 ac_cv_header_stdc=no
6984 if test $ac_cv_header_stdc = yes; then
6985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6996 $EGREP "free" >/dev/null 2>&1; then
6999 ac_cv_header_stdc=no
7005 if test $ac_cv_header_stdc = yes; then
7006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7007 if test "$cross_compiling" = yes; then
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7018 #if ((' ' & 0x0FF) == 0x020)
7019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7022 # define ISLOWER(c) \
7023 (('a' <= (c) && (c) <= 'i') \
7024 || ('j' <= (c) && (c) <= 'r') \
7025 || ('s' <= (c) && (c) <= 'z'))
7026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7034 for (i = 0; i < 256; i++)
7035 if (XOR (islower (i), ISLOWER (i))
7036 || toupper (i) != TOUPPER (i))
7041 rm -f conftest$ac_exeext
7042 if { (ac_try="$ac_link"
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_link") 2>&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7052 { (case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_try") 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7063 echo "$as_me: program exited with status $ac_status" >&5
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_header_stdc=no
7070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7077 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7078 if test $ac_cv_header_stdc = yes; then
7080 cat >>confdefs.h <<\_ACEOF
7081 #define STDC_HEADERS 1
7086 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7097 inttypes.h stdint.h unistd.h
7099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7113 #include <$ac_header>
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_compile") 2>conftest.er1
7124 grep -v '^ *+' conftest.er1 >conftest.err
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
7132 eval "$as_ac_Header=yes"
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 eval "$as_ac_Header=no"
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 ac_res=`eval echo '${'$as_ac_Header'}'`
7143 { echo "$as_me:$LINENO: result: $ac_res" >&5
7144 echo "${ECHO_T}$ac_res" >&6; }
7145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7146 cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7156 for ac_header in dlfcn.h
7158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_res=`eval echo '${'$as_ac_Header'}'`
7166 { echo "$as_me:$LINENO: result: $ac_res" >&5
7167 echo "${ECHO_T}$ac_res" >&6; }
7169 # Is the header compilable?
7170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7172 cat >conftest.$ac_ext <<_ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #include <$ac_header>
7181 rm -f conftest.$ac_objext
7182 if { (ac_try="$ac_compile"
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188 (eval "$ac_compile") 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest.$ac_objext; then
7198 ac_header_compiler=yes
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_header_compiler=no
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7208 echo "${ECHO_T}$ac_header_compiler" >&6; }
7210 # Is the header present?
7211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 #include <$ac_header>
7221 if { (ac_try="$ac_cpp conftest.$ac_ext"
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } >/dev/null && {
7234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7237 ac_header_preproc=yes
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 ac_header_preproc=no
7245 rm -f conftest.err conftest.$ac_ext
7246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6; }
7249 # So? What about this header?
7250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7272 ## ---------------------------------------- ##
7273 ## Report this to linux-nfs@vger.kernel.org ##
7274 ## ---------------------------------------- ##
7276 ) | sed "s/^/$as_me: WARNING: /" >&2
7279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 eval "$as_ac_Header=\$ac_header_preproc"
7286 ac_res=`eval echo '${'$as_ac_Header'}'`
7287 { echo "$as_me:$LINENO: result: $ac_res" >&5
7288 echo "${ECHO_T}$ac_res" >&6; }
7291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292 cat >>confdefs.h <<_ACEOF
7293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7303 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7304 (test "X$CXX" != "Xg++"))) ; then
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7310 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7311 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7312 if test -z "$CXXCPP"; then
7313 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 # Double quotes because CXXCPP needs to be expanded
7317 for CXXCPP in "$CXX -E" "/lib/cpp"
7320 for ac_cxx_preproc_warn_flag in '' yes
7322 # Use a header file that comes with gcc, so configuring glibc
7323 # with a fresh cross-compiler works.
7324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 # <limits.h> exists even on freestanding compilers.
7326 # On the NeXT, cc -E runs the code through the compiler's parser,
7327 # not just through cpp. "Syntax error" is here to catch this case.
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7335 # include <limits.h>
7337 # include <assert.h>
7341 if { (ac_try="$ac_cpp conftest.$ac_ext"
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null && {
7354 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7355 test ! -s conftest.err
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 # Broken: fails on valid input.
7366 rm -f conftest.err conftest.$ac_ext
7368 # OK, works on sane cases. Now check whether nonexistent headers
7369 # can be detected and how.
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <ac_nonexistent.h>
7378 if { (ac_try="$ac_cpp conftest.$ac_ext"
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } >/dev/null && {
7391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7392 test ! -s conftest.err
7394 # Broken: success on invalid input.
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 # Passes both tests.
7405 rm -f conftest.err conftest.$ac_ext
7408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7409 rm -f conftest.err conftest.$ac_ext
7410 if $ac_preproc_ok; then
7415 ac_cv_prog_CXXCPP=$CXXCPP
7418 CXXCPP=$ac_cv_prog_CXXCPP
7420 ac_cv_prog_CXXCPP=$CXXCPP
7422 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7423 echo "${ECHO_T}$CXXCPP" >&6; }
7425 for ac_cxx_preproc_warn_flag in '' yes
7427 # Use a header file that comes with gcc, so configuring glibc
7428 # with a fresh cross-compiler works.
7429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430 # <limits.h> exists even on freestanding compilers.
7431 # On the NeXT, cc -E runs the code through the compiler's parser,
7432 # not just through cpp. "Syntax error" is here to catch this case.
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7440 # include <limits.h>
7442 # include <assert.h>
7446 if { (ac_try="$ac_cpp conftest.$ac_ext"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7454 grep -v '^ *+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } >/dev/null && {
7459 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7460 test ! -s conftest.err
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 # Broken: fails on valid input.
7471 rm -f conftest.err conftest.$ac_ext
7473 # OK, works on sane cases. Now check whether nonexistent headers
7474 # can be detected and how.
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <ac_nonexistent.h>
7483 if { (ac_try="$ac_cpp conftest.$ac_ext"
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7491 grep -v '^ *+' conftest.er1 >conftest.err
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } >/dev/null && {
7496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7497 test ! -s conftest.err
7499 # Broken: success on invalid input.
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7505 # Passes both tests.
7510 rm -f conftest.err conftest.$ac_ext
7513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7514 rm -f conftest.err conftest.$ac_ext
7515 if $ac_preproc_ok; then
7518 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7519 See \`config.log' for more details." >&5
7520 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7521 See \`config.log' for more details." >&2;}
7522 { (exit 1); exit 1; }; }
7526 ac_cpp='$CXXCPP $CPPFLAGS'
7527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7535 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7536 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7538 if test -n "$ac_tool_prefix"; then
7539 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_prog_F77+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 if test -n "$F77"; then
7549 ac_cv_prog_F77="$F77" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 if test -n "$F77"; then
7570 { echo "$as_me:$LINENO: result: $F77" >&5
7571 echo "${ECHO_T}$F77" >&6; }
7573 { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7578 test -n "$F77" && break
7581 if test -z "$F77"; then
7583 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 if test -n "$ac_ct_F77"; then
7593 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_ac_ct_F77="$ac_prog"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7613 if test -n "$ac_ct_F77"; then
7614 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7615 echo "${ECHO_T}$ac_ct_F77" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 test -n "$ac_ct_F77" && break
7625 if test "x$ac_ct_F77" = x; then
7628 case $cross_compiling:$ac_tool_warned in
7630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet. If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&5
7633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7634 whose name does not start with the host triplet. If you think this
7635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7636 ac_tool_warned=yes ;;
7643 # Provide some information about the compiler.
7644 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7645 ac_compiler=`set X $ac_compile; echo $2`
7646 { (ac_try="$ac_compiler --version >&5"
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_compiler --version >&5") 2>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }
7656 { (ac_try="$ac_compiler -v >&5"
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_compiler -v >&5") 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }
7666 { (ac_try="$ac_compiler -V >&5"
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_compiler -V >&5") 2>&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }
7678 # If we don't use `.F' as extension, the preprocessor is not run on the
7679 # input file. (Note that this only needs to work for GNU compilers.)
7682 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7683 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7684 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.$ac_ext <<_ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_f77_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7724 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7725 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7727 ac_test_FFLAGS=${FFLAGS+set}
7728 ac_save_FFLAGS=$FFLAGS
7730 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7731 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7732 if test "${ac_cv_prog_f77_g+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (ac_try="$ac_compile"
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_compile") 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_f77_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.$ac_objext; then
7758 ac_cv_prog_f77_g=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7770 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7771 if test "$ac_test_FFLAGS" = set; then
7772 FFLAGS=$ac_save_FFLAGS
7773 elif test $ac_cv_prog_f77_g = yes; then
7774 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7780 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7787 G77=`test $ac_compiler_gnu = yes && echo yes`
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7798 # find the maximum length of command line arguments
7799 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7800 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7801 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 # On DJGPP, this test can blow up pretty badly due to problems in libc
7810 # (any single argument exceeding 2000 bytes causes a buffer overrun
7811 # during glob expansion). Even if it were fixed, the result of this
7812 # check would be larger than it should be.
7813 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7817 # Under GNU Hurd, this test is not required because there is
7818 # no limit to the length of command line arguments.
7819 # Libtool will interpret -1 as no limit whatsoever
7820 lt_cv_sys_max_cmd_len=-1;
7824 # On Win9x/ME, this test blows up -- it succeeds, but takes
7825 # about 5 minutes as the teststring grows exponentially.
7826 # Worse, since 9x/ME are not pre-emptively multitasking,
7827 # you end up with a "frozen" computer, even though with patience
7828 # the test eventually succeeds (with a max line length of 256k).
7829 # Instead, let's just punt: use the minimum linelength reported by
7830 # all of the supported platforms: 8192 (on NT/2K/XP).
7831 lt_cv_sys_max_cmd_len=8192;
7835 # On AmigaOS with pdksh, this test takes hours, literally.
7836 # So we just punt and use a minimum line length of 8192.
7837 lt_cv_sys_max_cmd_len=8192;
7840 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7841 # This has been around since 386BSD, at least. Likely further.
7842 if test -x /sbin/sysctl; then
7843 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7844 elif test -x /usr/sbin/sysctl; then
7845 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7847 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7849 # And add a safety zone
7850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7855 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7856 lt_cv_sys_max_cmd_len=196608
7860 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7861 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7862 # nice to cause kernel panics so lets avoid the loop below.
7863 # First set a reasonable default.
7864 lt_cv_sys_max_cmd_len=16384
7866 if test -x /sbin/sysconfig; then
7867 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7868 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7873 lt_cv_sys_max_cmd_len=102400
7875 sysv5* | sco5v6* | sysv4.2uw2*)
7876 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7877 if test -n "$kargmax"; then
7878 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7880 lt_cv_sys_max_cmd_len=32768
7884 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7885 if test -n "$lt_cv_sys_max_cmd_len"; then
7886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7890 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7891 = "XX$teststring") >/dev/null 2>&1 &&
7892 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7893 lt_cv_sys_max_cmd_len=$new_result &&
7894 test $i != 17 # 1/2 MB should be enough
7897 teststring=$teststring$teststring
7900 # Add a significant safety factor because C++ compilers can tack on massive
7901 # amounts of additional arguments before passing them to the linker.
7902 # It appears as though 1/2 is a usable value.
7903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7910 if test -n $lt_cv_sys_max_cmd_len ; then
7911 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7912 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7914 { echo "$as_me:$LINENO: result: none" >&5
7915 echo "${ECHO_T}none" >&6; }
7922 # Check for command to grab the raw symbol name followed by C symbol from nm.
7923 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7924 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 # These are sane defaults that work on at least a few old systems.
7930 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7932 # Character class describing NM global symbol codes.
7933 symcode='[BCDEGRST]'
7935 # Regexp to match symbols that can be accessed directly from C.
7936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7938 # Transform an extracted symbol line into a proper C declaration
7939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7941 # Transform an extracted symbol line into symbol name and symbol address
7942 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7944 # Define system-specific variables.
7949 cygwin* | mingw* | pw32*)
7950 symcode='[ABCDGISTW]'
7952 hpux*) # Its linker distinguishes data from code symbols
7953 if test "$host_cpu" = ia64; then
7954 symcode='[ABCDEGRST]'
7956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7957 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7959 linux* | k*bsd*-gnu)
7960 if test "$host_cpu" = ia64; then
7961 symcode='[ABCDGIRSTW]'
7962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7963 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7967 symcode='[BCDEGRST]'
7970 symcode='[BCDEGQRST]'
7981 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7989 # Handle CRLF in mingw tool chain
7993 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7997 # If we're using GNU nm, then use its standard symbol codes.
7998 case `$NM -V 2>&1` in
7999 *GNU* | *'with BFD'*)
8000 symcode='[ABCDGIRSTW]' ;;
8003 # Try without a prefix undercore, then with it.
8004 for ac_symprfx in "" "_"; do
8006 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8007 symxfrm="\\1 $ac_symprfx\\2 \\2"
8009 # Write the raw and C identifiers.
8010 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8012 # Check to see that the pipe works correctly.
8016 cat > conftest.$ac_ext <<EOF
8021 void nm_test_func(){}
8025 int main(){nm_test_var='a';nm_test_func();return(0);}
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; then
8033 # Now try to grab the symbols.
8035 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8036 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && test -s "$nlist"; then
8040 # Try sorting and uniquifying the output.
8041 if sort "$nlist" | uniq > "$nlist"T; then
8042 mv -f "$nlist"T "$nlist"
8047 # Make sure that we snagged all the symbols we need.
8048 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8049 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8050 cat <<EOF > conftest.$ac_ext
8056 # Now generate the symbol file.
8057 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8059 cat <<EOF >> conftest.$ac_ext
8060 #if defined (__STDC__) && __STDC__
8061 # define lt_ptr_t void *
8063 # define lt_ptr_t char *
8067 /* The mapping between symbol names and symbols. */
8072 lt_preloaded_symbols[] =
8075 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8076 cat <<\EOF >> conftest.$ac_ext
8084 # Now try linking the two files.
8085 mv conftest.$ac_objext conftstm.$ac_objext
8086 lt_save_LIBS="$LIBS"
8087 lt_save_CFLAGS="$CFLAGS"
8088 LIBS="conftstm.$ac_objext"
8089 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8097 LIBS="$lt_save_LIBS"
8098 CFLAGS="$lt_save_CFLAGS"
8100 echo "cannot find nm_test_func in $nlist" >&5
8103 echo "cannot find nm_test_var in $nlist" >&5
8106 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8109 echo "$progname: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 rm -f conftest* conftst*
8114 # Do not use the global_symbol_pipe unless it works.
8115 if test "$pipe_works" = yes; then
8118 lt_cv_sys_global_symbol_pipe=
8124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8125 lt_cv_sys_global_symbol_to_cdecl=
8127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8128 { echo "$as_me:$LINENO: result: failed" >&5
8129 echo "${ECHO_T}failed" >&6; }
8131 { echo "$as_me:$LINENO: result: ok" >&5
8132 echo "${ECHO_T}ok" >&6; }
8135 { echo "$as_me:$LINENO: checking for objdir" >&5
8136 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8137 if test "${lt_cv_objdir+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 rm -f .libs 2>/dev/null
8141 mkdir .libs 2>/dev/null
8142 if test -d .libs; then
8145 # MS-DOS does not allow filenames that begin with a dot.
8148 rmdir .libs 2>/dev/null
8150 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8151 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8152 objdir=$lt_cv_objdir
8160 # AIX sometimes has problems with the GCC collect2 program. For some
8161 # reason, if we set the COLLECT_NAMES environment variable, the problems
8162 # vanish in a puff of smoke.
8163 if test "X${COLLECT_NAMES+set}" != Xset; then
8165 export COLLECT_NAMES
8170 # Sed substitution that helps us do robust quoting. It backslashifies
8171 # metacharacters that are still active within double-quoted strings.
8172 Xsed='sed -e 1s/^X//'
8173 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8175 # Same as above, but do not quote variable references.
8176 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8178 # Sed substitution to delay expansion of an escaped shell variable in a
8179 # double_quote_subst'ed string.
8180 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8182 # Sed substitution to avoid accidental globbing in evaled expressions
8183 no_glob_subst='s/\*/\\\*/g'
8189 default_ofile=libtool
8190 can_build_shared=yes
8192 # All known linkers require a `.a' archive for static linking (except MSVC,
8193 # which needs '.lib').
8195 ltmain="$ac_aux_dir/ltmain.sh"
8196 ofile="$default_ofile"
8197 with_gnu_ld="$lt_cv_prog_gnu_ld"
8199 if test -n "$ac_tool_prefix"; then
8200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8201 set dummy ${ac_tool_prefix}ar; ac_word=$2
8202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8204 if test "${ac_cv_prog_AR+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 if test -n "$AR"; then
8208 ac_cv_prog_AR="$AR" # Let the user override the test.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_AR="${ac_tool_prefix}ar"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 if test -n "$AR"; then
8229 { echo "$as_me:$LINENO: result: $AR" >&5
8230 echo "${ECHO_T}$AR" >&6; }
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8238 if test -z "$ac_cv_prog_AR"; then
8240 # Extract the first word of "ar", so it can be a program name with args.
8241 set dummy ar; ac_word=$2
8242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 if test -n "$ac_ct_AR"; then
8248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_ac_ct_AR="ar"
8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8268 if test -n "$ac_ct_AR"; then
8269 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8270 echo "${ECHO_T}$ac_ct_AR" >&6; }
8272 { echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6; }
8276 if test "x$ac_ct_AR" = x; then
8279 case $cross_compiling:$ac_tool_warned in
8281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8282 whose name does not start with the host triplet. If you think this
8283 configuration is useful to you, please write to autoconf@gnu.org." >&5
8284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8285 whose name does not start with the host triplet. If you think this
8286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8287 ac_tool_warned=yes ;;
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8300 if test "${ac_cv_prog_RANLIB+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 if test -n "$RANLIB"; then
8304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 RANLIB=$ac_cv_prog_RANLIB
8324 if test -n "$RANLIB"; then
8325 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8326 echo "${ECHO_T}$RANLIB" >&6; }
8328 { echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6; }
8334 if test -z "$ac_cv_prog_RANLIB"; then
8335 ac_ct_RANLIB=$RANLIB
8336 # Extract the first word of "ranlib", so it can be a program name with args.
8337 set dummy ranlib; ac_word=$2
8338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 if test -n "$ac_ct_RANLIB"; then
8344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_ac_ct_RANLIB="ranlib"
8354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8364 if test -n "$ac_ct_RANLIB"; then
8365 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8366 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8368 { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8372 if test "x$ac_ct_RANLIB" = x; then
8375 case $cross_compiling:$ac_tool_warned in
8377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8378 whose name does not start with the host triplet. If you think this
8379 configuration is useful to you, please write to autoconf@gnu.org." >&5
8380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8381 whose name does not start with the host triplet. If you think this
8382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8383 ac_tool_warned=yes ;;
8385 RANLIB=$ac_ct_RANLIB
8388 RANLIB="$ac_cv_prog_RANLIB"
8391 if test -n "$ac_tool_prefix"; then
8392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8393 set dummy ${ac_tool_prefix}strip; ac_word=$2
8394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396 if test "${ac_cv_prog_STRIP+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 if test -n "$STRIP"; then
8400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 STRIP=$ac_cv_prog_STRIP
8420 if test -n "$STRIP"; then
8421 { echo "$as_me:$LINENO: result: $STRIP" >&5
8422 echo "${ECHO_T}$STRIP" >&6; }
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8430 if test -z "$ac_cv_prog_STRIP"; then
8432 # Extract the first word of "strip", so it can be a program name with args.
8433 set dummy strip; ac_word=$2
8434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8436 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 if test -n "$ac_ct_STRIP"; then
8440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_prog_ac_ct_STRIP="strip"
8450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8460 if test -n "$ac_ct_STRIP"; then
8461 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8462 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8464 { echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6; }
8468 if test "x$ac_ct_STRIP" = x; then
8471 case $cross_compiling:$ac_tool_warned in
8473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8474 whose name does not start with the host triplet. If you think this
8475 configuration is useful to you, please write to autoconf@gnu.org." >&5
8476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8477 whose name does not start with the host triplet. If you think this
8478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8479 ac_tool_warned=yes ;;
8484 STRIP="$ac_cv_prog_STRIP"
8489 old_CFLAGS="$CFLAGS"
8491 # Set sane defaults for various variables
8492 test -z "$AR" && AR=ar
8493 test -z "$AR_FLAGS" && AR_FLAGS=cru
8494 test -z "$AS" && AS=as
8495 test -z "$CC" && CC=cc
8496 test -z "$LTCC" && LTCC=$CC
8497 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8498 test -z "$DLLTOOL" && DLLTOOL=dlltool
8499 test -z "$LD" && LD=ld
8500 test -z "$LN_S" && LN_S="ln -s"
8501 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8502 test -z "$NM" && NM=nm
8503 test -z "$SED" && SED=sed
8504 test -z "$OBJDUMP" && OBJDUMP=objdump
8505 test -z "$RANLIB" && RANLIB=:
8506 test -z "$STRIP" && STRIP=:
8507 test -z "$ac_objext" && ac_objext=o
8509 # Determine commands to create old-style static archives.
8510 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8511 old_postinstall_cmds='chmod 644 $oldlib'
8512 old_postuninstall_cmds=
8514 if test -n "$RANLIB"; then
8517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8520 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8523 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8526 for cc_temp in $compiler""; do
8528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8534 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8537 # Only perform the check for file, if the check method requires it
8538 case $deplibs_check_method in
8540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8541 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8542 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8551 lt_save_MAGIC_CMD="$MAGIC_CMD"
8552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8554 for ac_dir in $ac_dummy; do
8556 test -z "$ac_dir" && ac_dir=.
8557 if test -f $ac_dir/${ac_tool_prefix}file; then
8558 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8559 if test -n "$file_magic_test_file"; then
8560 case $deplibs_check_method in
8562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8565 $EGREP "$file_magic_regex" > /dev/null; then
8570 *** Warning: the command libtool uses to detect shared libraries,
8571 *** $file_magic_cmd, produces output that libtool cannot recognize.
8572 *** The result is that libtool may fail to recognize shared libraries
8573 *** as such. This will affect the creation of libtool libraries that
8574 *** depend on shared libraries, but programs linked with such libtool
8575 *** libraries will work regardless of this problem. Nevertheless, you
8576 *** may want to report the problem to your system manager and/or to
8577 *** bug-libtool@gnu.org
8587 MAGIC_CMD="$lt_save_MAGIC_CMD"
8592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593 if test -n "$MAGIC_CMD"; then
8594 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8595 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8597 { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8601 if test -z "$lt_cv_path_MAGIC_CMD"; then
8602 if test -n "$ac_tool_prefix"; then
8603 { echo "$as_me:$LINENO: checking for file" >&5
8604 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8613 lt_save_MAGIC_CMD="$MAGIC_CMD"
8614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8616 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/file; then
8620 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8621 if test -n "$file_magic_test_file"; then
8622 case $deplibs_check_method in
8624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8627 $EGREP "$file_magic_regex" > /dev/null; then
8632 *** Warning: the command libtool uses to detect shared libraries,
8633 *** $file_magic_cmd, produces output that libtool cannot recognize.
8634 *** The result is that libtool may fail to recognize shared libraries
8635 *** as such. This will affect the creation of libtool libraries that
8636 *** depend on shared libraries, but programs linked with such libtool
8637 *** libraries will work regardless of this problem. Nevertheless, you
8638 *** may want to report the problem to your system manager and/or to
8639 *** bug-libtool@gnu.org
8649 MAGIC_CMD="$lt_save_MAGIC_CMD"
8654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8655 if test -n "$MAGIC_CMD"; then
8656 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8657 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8659 { echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6; }
8675 # Check whether --enable-libtool-lock was given.
8676 if test "${enable_libtool_lock+set}" = set; then
8677 enableval=$enable_libtool_lock;
8680 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8683 # Check whether --with-pic was given.
8684 if test "${with_pic+set}" = set; then
8685 withval=$with_pic; pic_mode="$withval"
8690 test -z "$pic_mode" && pic_mode=default
8692 # Use C for the default configuration in the libtool script
8696 ac_cpp='$CPP $CPPFLAGS'
8697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702 # Source file extension for C test sources.
8705 # Object file extension for compiled C test sources.
8709 # Code to be used in simple compile tests
8710 lt_simple_compile_test_code="int some_variable = 0;"
8712 # Code to be used in simple link tests
8713 lt_simple_link_test_code='int main(){return(0);}'
8716 # If no C compiler was specified, use CC.
8719 # If no C compiler flags were specified, use CFLAGS.
8720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8722 # Allow CC to be a program name with arguments.
8726 # save warnings/boilerplate of simple test code
8727 ac_outfile=conftest.$ac_objext
8728 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8729 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8730 _lt_compiler_boilerplate=`cat conftest.err`
8733 ac_outfile=conftest.$ac_objext
8734 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8735 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8736 _lt_linker_boilerplate=`cat conftest.err`
8741 lt_prog_compiler_no_builtin_flag=
8743 if test "$GCC" = yes; then
8744 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8747 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8748 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8749 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 lt_cv_prog_compiler_rtti_exceptions=no
8753 ac_outfile=conftest.$ac_objext
8754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755 lt_compiler_flag="-fno-rtti -fno-exceptions"
8756 # Insert the option either (1) after the last *FLAGS variable, or
8757 # (2) before a word containing "conftest.", or (3) at the end.
8758 # Note that $ac_compile itself does not contain backslashes and begins
8759 # with a dollar sign (not a hyphen), so the echo should work correctly.
8760 # The option is referenced via a variable to avoid confusing sed.
8761 lt_compile=`echo "$ac_compile" | $SED \
8762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764 -e 's:$: $lt_compiler_flag:'`
8765 (eval echo "\"\$as_me:8765: $lt_compile\"" >&5)
8766 (eval "$lt_compile" 2>conftest.err)
8768 cat conftest.err >&5
8769 echo "$as_me:8769: \$? = $ac_status" >&5
8770 if (exit $ac_status) && test -s "$ac_outfile"; then
8771 # The compiler can only warn and ignore the option if not recognized
8772 # So say no if there are warnings other than the usual output.
8773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8776 lt_cv_prog_compiler_rtti_exceptions=yes
8782 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8783 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8785 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8786 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8793 lt_prog_compiler_wl=
8794 lt_prog_compiler_pic=
8795 lt_prog_compiler_static=
8797 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8798 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8800 if test "$GCC" = yes; then
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_static='-static'
8806 # All AIX code is PIC.
8807 if test "$host_cpu" = ia64; then
8808 # AIX 5 now supports IA64 processor
8809 lt_prog_compiler_static='-Bstatic'
8814 # FIXME: we need at least 68020 code to build shared libraries, but
8815 # adding the `-m68020' flag to GCC prevents building anything better,
8817 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8820 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8821 # PIC is the default for these OSes.
8824 mingw* | cygwin* | pw32* | os2*)
8825 # This hack is so that the source file can tell whether it is being
8826 # built for inclusion in a dll (and should export symbols for example).
8827 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8828 # (--disable-auto-import) libraries
8829 lt_prog_compiler_pic='-DDLL_EXPORT'
8832 darwin* | rhapsody*)
8833 # PIC is the default on this platform
8834 # Common symbols not allowed in MH_DYLIB files
8835 lt_prog_compiler_pic='-fno-common'
8839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8840 # Instead, we relocate shared libraries at runtime.
8844 # Just because we use GCC doesn't mean we suddenly get shared libraries
8845 # on systems that don't support them.
8846 lt_prog_compiler_can_build_shared=no
8851 if test -d /usr/nec; then
8852 lt_prog_compiler_pic=-Kconform_pic
8857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8864 lt_prog_compiler_pic='-fPIC'
8870 lt_prog_compiler_pic='-fPIC'
8874 # PORTME Check for flag to pass linker flags through the system compiler.
8877 lt_prog_compiler_wl='-Wl,'
8878 if test "$host_cpu" = ia64; then
8879 # AIX 5 now supports IA64 processor
8880 lt_prog_compiler_static='-Bstatic'
8882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8886 # PIC is the default on this platform
8887 # Common symbols not allowed in MH_DYLIB files
8888 case $cc_basename in
8890 lt_prog_compiler_pic='-qnocommon'
8891 lt_prog_compiler_wl='-Wl,'
8896 mingw* | cygwin* | pw32* | os2*)
8897 # This hack is so that the source file can tell whether it is being
8898 # built for inclusion in a dll (and should export symbols for example).
8899 lt_prog_compiler_pic='-DDLL_EXPORT'
8902 hpux9* | hpux10* | hpux11*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8911 lt_prog_compiler_pic='+Z'
8914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8915 lt_prog_compiler_static='${wl}-a ${wl}archive'
8918 irix5* | irix6* | nonstopux*)
8919 lt_prog_compiler_wl='-Wl,'
8920 # PIC (with -KPIC) is the default.
8921 lt_prog_compiler_static='-non_shared'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-Bstatic'
8929 linux* | k*bsd*-gnu)
8930 case $cc_basename in
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-static'
8936 pgcc* | pgf77* | pgf90* | pgf95*)
8937 # Portland Group compilers (*not* the Pentium gcc compiler,
8938 # which looks to be a dead project)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fpic'
8941 lt_prog_compiler_static='-Bstatic'
8944 lt_prog_compiler_wl='-Wl,'
8945 # All Alpha code is PIC.
8946 lt_prog_compiler_static='-non_shared'
8949 case `$CC -V 2>&1 | sed 5q` in
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
8954 lt_prog_compiler_wl='-Wl,'
8957 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_wl=''
8967 osf3* | osf4* | osf5*)
8968 lt_prog_compiler_wl='-Wl,'
8969 # All OSF/1 code is PIC.
8970 lt_prog_compiler_static='-non_shared'
8974 lt_prog_compiler_static='-non_shared'
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-Bstatic'
8980 case $cc_basename in
8982 lt_prog_compiler_wl='-Qoption ld ';;
8984 lt_prog_compiler_wl='-Wl,';;
8989 lt_prog_compiler_wl='-Qoption ld '
8990 lt_prog_compiler_pic='-PIC'
8991 lt_prog_compiler_static='-Bstatic'
8994 sysv4 | sysv4.2uw2* | sysv4.3*)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-KPIC'
8997 lt_prog_compiler_static='-Bstatic'
9001 if test -d /usr/nec ;then
9002 lt_prog_compiler_pic='-Kconform_pic'
9003 lt_prog_compiler_static='-Bstatic'
9007 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-KPIC'
9010 lt_prog_compiler_static='-Bstatic'
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_can_build_shared=no
9019 lt_prog_compiler_pic='-pic'
9020 lt_prog_compiler_static='-Bstatic'
9024 lt_prog_compiler_can_build_shared=no
9029 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9030 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9033 # Check to make sure the PIC flag actually works.
9035 if test -n "$lt_prog_compiler_pic"; then
9037 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9039 if test "${lt_prog_compiler_pic_works+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 lt_prog_compiler_pic_works=no
9043 ac_outfile=conftest.$ac_objext
9044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9046 # Insert the option either (1) after the last *FLAGS variable, or
9047 # (2) before a word containing "conftest.", or (3) at the end.
9048 # Note that $ac_compile itself does not contain backslashes and begins
9049 # with a dollar sign (not a hyphen), so the echo should work correctly.
9050 # The option is referenced via a variable to avoid confusing sed.
9051 lt_compile=`echo "$ac_compile" | $SED \
9052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9054 -e 's:$: $lt_compiler_flag:'`
9055 (eval echo "\"\$as_me:9055: $lt_compile\"" >&5)
9056 (eval "$lt_compile" 2>conftest.err)
9058 cat conftest.err >&5
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 if (exit $ac_status) && test -s "$ac_outfile"; then
9061 # The compiler can only warn and ignore the option if not recognized
9062 # So say no if there are warnings other than the usual output.
9063 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9066 lt_prog_compiler_pic_works=yes
9072 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9073 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9075 if test x"$lt_prog_compiler_pic_works" = xyes; then
9076 case $lt_prog_compiler_pic in
9078 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9081 lt_prog_compiler_pic=
9082 lt_prog_compiler_can_build_shared=no
9087 # For platforms which do not support PIC, -DPIC is meaningless:
9089 lt_prog_compiler_pic=
9092 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9097 # Check to make sure the static flag actually works.
9099 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9100 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9101 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9102 if test "${lt_prog_compiler_static_works+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 lt_prog_compiler_static_works=no
9106 save_LDFLAGS="$LDFLAGS"
9107 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9108 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9109 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9110 # The linker can only warn and ignore the option if not recognized
9111 # So say no if there are warnings
9112 if test -s conftest.err; then
9113 # Append any errors to the config.log.
9114 cat conftest.err 1>&5
9115 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117 if diff conftest.exp conftest.er2 >/dev/null; then
9118 lt_prog_compiler_static_works=yes
9121 lt_prog_compiler_static_works=yes
9125 LDFLAGS="$save_LDFLAGS"
9128 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9129 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9131 if test x"$lt_prog_compiler_static_works" = xyes; then
9134 lt_prog_compiler_static=
9138 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9139 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9140 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 lt_cv_prog_compiler_c_o=no
9144 $rm -r conftest 2>/dev/null
9148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150 lt_compiler_flag="-o out/conftest2.$ac_objext"
9151 # Insert the option either (1) after the last *FLAGS variable, or
9152 # (2) before a word containing "conftest.", or (3) at the end.
9153 # Note that $ac_compile itself does not contain backslashes and begins
9154 # with a dollar sign (not a hyphen), so the echo should work correctly.
9155 lt_compile=`echo "$ac_compile" | $SED \
9156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9158 -e 's:$: $lt_compiler_flag:'`
9159 (eval echo "\"\$as_me:9159: $lt_compile\"" >&5)
9160 (eval "$lt_compile" 2>out/conftest.err)
9162 cat out/conftest.err >&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9166 # The compiler can only warn and ignore the option if not recognized
9167 # So say no if there are warnings
9168 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9171 lt_cv_prog_compiler_c_o=yes
9176 # SGI C++ compiler will create directory out/ii_files/ for
9177 # template instantiation
9178 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9179 $rm out/* && rmdir out
9185 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9186 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9189 hard_links="nottested"
9190 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9191 # do not overwrite the value of need_locks provided by the user
9192 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9193 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198 ln conftest.a conftest.b 2>&5 || hard_links=no
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200 { echo "$as_me:$LINENO: result: $hard_links" >&5
9201 echo "${ECHO_T}$hard_links" >&6; }
9202 if test "$hard_links" = no; then
9203 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9204 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9211 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9215 allow_undefined_flag=
9216 enable_shared_with_static_runtimes=no
9218 archive_expsym_cmds=
9219 old_archive_From_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 export_dynamic_flag_spec=
9222 whole_archive_flag_spec=
9223 thread_safe_flag_spec=
9224 hardcode_libdir_flag_spec=
9225 hardcode_libdir_flag_spec_ld=
9226 hardcode_libdir_separator=
9229 hardcode_shlibpath_var=unsupported
9230 link_all_deplibs=unknown
9231 hardcode_automatic=no
9234 always_export_symbols=no
9235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9236 # include_expsyms should be a list of space-separated symbols to be *always*
9237 # included in the symbol list
9239 # exclude_expsyms can be an extended regexp of symbols to exclude
9240 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9241 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9242 # as well as any symbol that contains `d'.
9243 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9244 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9245 # platforms (ab)use it in PIC code, but their linkers get confused if
9246 # the symbol is explicitly referenced. Since portable code cannot
9247 # rely on this symbol name, it's probably fine to never include it in
9248 # preloaded symbol tables.
9249 extract_expsyms_cmds=
9250 # Just being paranoid about ensuring that cc_basename is set.
9251 for cc_temp in $compiler""; do
9253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9259 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9262 cygwin* | mingw* | pw32*)
9263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9264 # When not using gcc, we currently assume that we are using
9265 # Microsoft Visual C++.
9266 if test "$GCC" != yes; then
9271 # we just hope/assume this is gcc and not c89 (= MSVC++)
9280 if test "$with_gnu_ld" = yes; then
9281 # If archive_cmds runs LD, not CC, wlarc should be empty
9284 # Set some defaults for GNU ld with shared library support. These
9285 # are reset later if shared libraries are not supported. Putting them
9286 # here allows them to be overridden if necessary.
9287 runpath_var=LD_RUN_PATH
9288 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9289 export_dynamic_flag_spec='${wl}--export-dynamic'
9290 # ancient GNU ld didn't support --whole-archive et. al.
9291 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9292 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9294 whole_archive_flag_spec=
9296 supports_anon_versioning=no
9297 case `$LD -v 2>/dev/null` in
9298 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9299 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9300 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9301 *\ 2.11.*) ;; # other 2.11 versions
9302 *) supports_anon_versioning=yes ;;
9305 # See if GNU ld supports shared libraries.
9307 aix3* | aix4* | aix5*)
9308 # On AIX/PPC, the GNU linker is very broken
9309 if test "$host_cpu" != ia64; then
9313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9314 *** to be unable to reliably create shared libraries on AIX.
9315 *** Therefore, libtool is disabling shared libraries support. If you
9316 *** really care for shared libraries, you may want to modify your PATH
9317 *** so that a non-GNU linker is found, and then restart.
9324 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)'
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_minus_L=yes
9328 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9329 # that the semantics of dynamic libraries on AmigaOS, at least up
9330 # to version 4, is to share data among multiple programs linked
9331 # with the same dynamic library. Since this doesn't match the
9332 # behavior of shared libraries on other platforms, we can't use
9338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9339 allow_undefined_flag=unsupported
9340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9341 # support --undefined. This deserves some investigation. FIXME
9342 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348 cygwin* | mingw* | pw32*)
9349 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9350 # as there is no search path for DLLs.
9351 hardcode_libdir_flag_spec='-L$libdir'
9352 allow_undefined_flag=unsupported
9353 always_export_symbols=no
9354 enable_shared_with_static_runtimes=yes
9355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9357 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9359 # If the export-symbols file already is a .def file (1st line
9360 # is EXPORTS), use it as is; otherwise, prepend...
9361 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9362 cp $export_symbols $output_objdir/$soname.def;
9364 echo EXPORTS > $output_objdir/$soname.def;
9365 cat $export_symbols >> $output_objdir/$soname.def;
9367 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9375 hardcode_shlibpath_var=no
9376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9377 export_dynamic_flag_spec='${wl}-E'
9378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9379 # Instead, shared libraries are loaded at an image base (0x10000000 by
9380 # default) and relocated if they conflict, which is a slow very memory
9381 # consuming and fragmenting process. To avoid this, we pick a random,
9382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9383 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9385 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'
9388 gnu* | linux* | k*bsd*-gnu)
9389 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9391 case $cc_basename,$host_cpu in
9392 pgcc*) # Portland Group C compiler
9393 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'
9394 tmp_addflag=' $pic_flag'
9396 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9397 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'
9398 tmp_addflag=' $pic_flag -Mnomain' ;;
9399 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9400 tmp_addflag=' -i_dynamic' ;;
9401 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9402 tmp_addflag=' -i_dynamic -nofor_main' ;;
9403 ifc* | ifort*) # Intel Fortran compiler
9404 tmp_addflag=' -nofor_main' ;;
9406 case `$CC -V 2>&1 | sed 5q` in
9407 *Sun\ C*) # Sun C 5.9
9408 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'
9409 tmp_sharedflag='-G' ;;
9410 *Sun\ F*) # Sun Fortran 8.3
9411 tmp_sharedflag='-G' ;;
9413 tmp_sharedflag='-shared' ;;
9415 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417 if test $supports_anon_versioning = yes; then
9418 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9420 $echo "local: *; };" >> $output_objdir/$libname.ver~
9421 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9430 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9439 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9443 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9444 *** create shared libraries on Solaris systems. Therefore, libtool
9445 *** is disabling shared libraries support. We urge you to upgrade GNU
9446 *** binutils to release 2.9.1 or newer. Another option is to modify
9447 *** your PATH or compiler configuration so that the native linker is
9448 *** used, and then restart.
9451 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9460 case `$LD -v 2>&1` in
9461 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9465 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9466 *** reliably create shared libraries on SCO systems. Therefore, libtool
9467 *** is disabling shared libraries support. We urge you to upgrade GNU
9468 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9469 *** your PATH or compiler configuration so that the native linker is
9470 *** used, and then restart.
9475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9476 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9490 hardcode_shlibpath_var=no
9494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 if test "$ld_shlibs" = no; then
9505 hardcode_libdir_flag_spec=
9506 export_dynamic_flag_spec=
9507 whole_archive_flag_spec=
9510 # PORTME fill in a description of your system's linker (not GNU ld)
9513 allow_undefined_flag=unsupported
9514 always_export_symbols=yes
9515 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'
9516 # Note: this linker hardcodes the directories in LIBPATH if there
9517 # are no directories specified by -L.
9518 hardcode_minus_L=yes
9519 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9520 # Neither direct hardcoding nor static linking is supported with a
9522 hardcode_direct=unsupported
9527 if test "$host_cpu" = ia64; then
9528 # On IA64, the linker does run time linking by default, so we don't
9529 # have to do anything special.
9530 aix_use_runtimelinking=no
9531 exp_sym_flag='-Bexport'
9534 # If we're using GNU nm, then we don't want the "-C" option.
9535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9536 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9537 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'
9539 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'
9541 aix_use_runtimelinking=no
9543 # Test if we are trying to use run time linking or normal
9544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9545 # need to do runtime linking.
9546 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9547 for ld_flag in $LDFLAGS; do
9548 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9549 aix_use_runtimelinking=yes
9556 exp_sym_flag='-bexport'
9557 no_entry_flag='-bnoentry'
9560 # When large executables or shared objects are built, AIX ld can
9561 # have problems creating the table of contents. If linking a library
9562 # or program results in "error TOC overflow" add -mminimal-toc to
9563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9568 hardcode_libdir_separator=':'
9569 link_all_deplibs=yes
9571 if test "$GCC" = yes; then
9572 case $host_os in aix4.[012]|aix4.[012].*)
9573 # We only want to do this on AIX 4.2 and lower, the check
9574 # below for broken collect2 doesn't work under 4.3+
9575 collect2name=`${CC} -print-prog-name=collect2`
9576 if test -f "$collect2name" && \
9577 strings "$collect2name" | grep resolve_lib_name >/dev/null
9579 # We have reworked collect2
9582 # We have old collect2
9583 hardcode_direct=unsupported
9584 # It fails to find uninstalled libraries when the uninstalled
9585 # path is not listed in the libpath. Setting hardcode_minus_L
9586 # to unsupported forces relinking
9587 hardcode_minus_L=yes
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_libdir_separator=
9593 shared_flag='-shared'
9594 if test "$aix_use_runtimelinking" = yes; then
9595 shared_flag="$shared_flag "'${wl}-G'
9599 if test "$host_cpu" = ia64; then
9600 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9601 # chokes on -Wl,-G. The following line is correct:
9604 if test "$aix_use_runtimelinking" = yes; then
9605 shared_flag='${wl}-G'
9607 shared_flag='${wl}-bM:SRE'
9612 # It seems that -bexpall does not export symbols beginning with
9613 # underscore (_), so it is better to generate a list of symbols to export.
9614 always_export_symbols=yes
9615 if test "$aix_use_runtimelinking" = yes; then
9616 # Warning - without using the other runtime loading flags (-brtl),
9617 # -berok will link without error, but may produce a broken library.
9618 allow_undefined_flag='-berok'
9619 # Determine the default libpath from the value encoded in an empty executable.
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest$ac_exeext &&
9652 $as_test_x conftest$ac_exeext; then
9654 lt_aix_libpath_sed='
9655 /Import File Strings/,/^$/ {
9661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9662 # Check for a 64-bit object if we didn't find anything.
9663 if test -z "$aix_libpath"; then
9664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9678 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9680 if test "$host_cpu" = ia64; then
9681 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9682 allow_undefined_flag="-z nodefs"
9683 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"
9685 # Determine the default libpath from the value encoded in an empty executable.
9686 cat >conftest.$ac_ext <<_ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && {
9715 test -z "$ac_c_werror_flag" ||
9716 test ! -s conftest.err
9717 } && test -s conftest$ac_exeext &&
9718 $as_test_x conftest$ac_exeext; then
9720 lt_aix_libpath_sed='
9721 /Import File Strings/,/^$/ {
9727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 # Check for a 64-bit object if we didn't find anything.
9729 if test -z "$aix_libpath"; then
9730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744 # Warning - without using the other run time loading flags,
9745 # -berok will link without error, but may produce a broken library.
9746 no_undefined_flag=' ${wl}-bernotok'
9747 allow_undefined_flag=' ${wl}-berok'
9748 # Exported symbols can be pulled into shared objects from archives
9749 whole_archive_flag_spec='$convenience'
9750 archive_cmds_need_lc=yes
9751 # This is similar to how AIX traditionally builds its shared libraries.
9752 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'
9758 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)'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_minus_L=yes
9761 # see comment about different semantics on the GNU ld section
9766 export_dynamic_flag_spec=-rdynamic
9769 cygwin* | mingw* | pw32*)
9770 # When not using gcc, we currently assume that we are using
9771 # Microsoft Visual C++.
9772 # hardcode_libdir_flag_spec is actually meaningless, as there is
9773 # no search path for DLLs.
9774 hardcode_libdir_flag_spec=' '
9775 allow_undefined_flag=unsupported
9776 # Tell ltmain to make .lib files, not .a files.
9778 # Tell ltmain to make .dll files, not .so files.
9780 # FIXME: Setting linknames here is a bad hack.
9781 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9782 # The linker will automatically build a .lib file if we build a DLL.
9783 old_archive_From_new_cmds='true'
9784 # FIXME: Should let the user specify the lib program.
9785 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9786 fix_srcfile_path='`cygpath -w "$srcfile"`'
9787 enable_shared_with_static_runtimes=yes
9790 darwin* | rhapsody*)
9792 rhapsody* | darwin1.[012])
9793 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9797 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9799 case ${MACOSX_DEPLOYMENT_TARGET} in
9801 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9804 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9810 archive_cmds_need_lc=no
9812 hardcode_automatic=yes
9813 hardcode_shlibpath_var=unsupported
9814 whole_archive_flag_spec=''
9815 link_all_deplibs=yes
9816 if test "$GCC" = yes ; then
9817 output_verbose_link_cmd='echo'
9818 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9819 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9821 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9822 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9824 case $cc_basename in
9826 output_verbose_link_cmd='echo'
9827 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9828 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9830 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9831 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 hardcode_shlibpath_var=no
9850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9851 # support. Future versions do this automatically, but an explicit c++rt0.o
9852 # does not break anything, and helps significantly (at the cost of a little
9855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9856 hardcode_libdir_flag_spec='-R$libdir'
9858 hardcode_shlibpath_var=no
9861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_minus_L=yes
9866 hardcode_shlibpath_var=no
9869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9870 freebsd* | dragonfly*)
9871 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9872 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_shlibpath_var=no
9878 if test "$GCC" = yes; then
9879 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'
9881 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'
9883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884 hardcode_libdir_separator=:
9887 # hardcode_minus_L: Not really in the search PATH,
9888 # but as the default location of the library.
9889 hardcode_minus_L=yes
9890 export_dynamic_flag_spec='${wl}-E'
9894 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9895 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9899 if test "$with_gnu_ld" = no; then
9900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9901 hardcode_libdir_separator=:
9904 export_dynamic_flag_spec='${wl}-E'
9906 # hardcode_minus_L: Not really in the search PATH,
9907 # but as the default location of the library.
9908 hardcode_minus_L=yes
9913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9916 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9938 if test "$with_gnu_ld" = no; then
9939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9940 hardcode_libdir_separator=:
9944 hardcode_libdir_flag_spec_ld='+b $libdir'
9946 hardcode_shlibpath_var=no
9950 export_dynamic_flag_spec='${wl}-E'
9952 # hardcode_minus_L: Not really in the search PATH,
9953 # but as the default location of the library.
9954 hardcode_minus_L=yes
9960 irix5* | irix6* | nonstopux*)
9961 if test "$GCC" = yes; then
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9964 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9965 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 hardcode_libdir_separator=:
9969 link_all_deplibs=yes
9973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9976 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9978 hardcode_libdir_flag_spec='-R$libdir'
9980 hardcode_shlibpath_var=no
9984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9987 hardcode_libdir_separator=:
9988 hardcode_shlibpath_var=no
9992 if test -f /usr/libexec/ld.so; then
9994 hardcode_shlibpath_var=no
9995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9999 export_dynamic_flag_spec='${wl}-E'
10002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_libdir_flag_spec='-R$libdir'
10007 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_minus_L=yes
10020 allow_undefined_flag=unsupported
10021 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'
10022 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10026 if test "$GCC" = yes; then
10027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10028 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10030 allow_undefined_flag=' -expect_unresolved \*'
10031 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034 hardcode_libdir_separator=:
10037 osf4* | osf5*) # as osf3* with the addition of -msym flag
10038 if test "$GCC" = yes; then
10039 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10040 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 allow_undefined_flag=' -expect_unresolved \*'
10044 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10045 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10046 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10048 # Both c and cxx compiler support -rpath directly
10049 hardcode_libdir_flag_spec='-rpath $libdir'
10051 hardcode_libdir_separator=:
10055 no_undefined_flag=' -z text'
10056 if test "$GCC" = yes; then
10058 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10060 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10067 hardcode_libdir_flag_spec='-R$libdir'
10068 hardcode_shlibpath_var=no
10070 solaris2.[0-5] | solaris2.[0-5].*) ;;
10072 # The compiler driver will combine and reorder linker options,
10073 # but understands `-z linker_flag'. GCC discards it without `$wl',
10074 # but is careful enough not to reorder.
10075 # Supported since Solaris 2.6 (maybe 2.5.1?)
10076 if test "$GCC" = yes; then
10077 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10079 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083 link_all_deplibs=yes
10087 if test "x$host_vendor" = xsequent; then
10088 # Use $CC to link under sequent, because it throws in some extra .o
10089 # files that make .init and .fini sections work.
10090 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_direct=yes
10096 hardcode_minus_L=yes
10097 hardcode_shlibpath_var=no
10101 case $host_vendor in
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_direct=yes # is this really true???
10107 ## LD is ld it makes a PLAMLIB
10108 ## CC just makes a GrossModule.
10109 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10110 reload_cmds='$CC -r -o $output$reload_objs'
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10118 runpath_var='LD_RUN_PATH'
10119 hardcode_shlibpath_var=no
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_shlibpath_var=no
10125 export_dynamic_flag_spec='-Bexport'
10129 if test -d /usr/nec; then
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var=no
10132 runpath_var=LD_RUN_PATH
10133 hardcode_runpath_var=yes
10138 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10139 no_undefined_flag='${wl}-z,text'
10140 archive_cmds_need_lc=no
10141 hardcode_shlibpath_var=no
10142 runpath_var='LD_RUN_PATH'
10144 if test "$GCC" = yes; then
10145 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 sysv5* | sco3.2v5* | sco5v6*)
10154 # Note: We can NOT use -z defs as we might desire, because we do not
10155 # link with -lc, and that would cause any symbols used from libc to
10156 # always be unresolved, which means just about no library would
10157 # ever link correctly. If we're not using GNU ld we use -z text
10158 # though, which does catch some bad symbols but isn't as heavy-handed
10160 no_undefined_flag='${wl}-z,text'
10161 allow_undefined_flag='${wl}-z,nodefs'
10162 archive_cmds_need_lc=no
10163 hardcode_shlibpath_var=no
10164 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10165 hardcode_libdir_separator=':'
10166 link_all_deplibs=yes
10167 export_dynamic_flag_spec='${wl}-Bexport'
10168 runpath_var='LD_RUN_PATH'
10170 if test "$GCC" = yes; then
10171 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_shlibpath_var=no
10191 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10192 echo "${ECHO_T}$ld_shlibs" >&6; }
10193 test "$ld_shlibs" = no && can_build_shared=no
10196 # Do we need to explicitly link libc?
10198 case "x$archive_cmds_need_lc" in
10200 # Assume -lc should be added
10201 archive_cmds_need_lc=yes
10203 if test "$enable_shared" = yes && test "$GCC" = yes; then
10204 case $archive_cmds in
10206 # FIXME: we may have to deal with multi-command sequences.
10209 # Test whether the compiler implicitly links with -lc since on some
10210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10211 # to ld, don't add -lc before -lgcc.
10212 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10213 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218 (eval $ac_compile) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } 2>conftest.err; then
10224 libobjs=conftest.$ac_objext
10226 wl=$lt_prog_compiler_wl
10227 pic_flag=$lt_prog_compiler_pic
10233 lt_save_allow_undefined_flag=$allow_undefined_flag
10234 allow_undefined_flag=
10235 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10236 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }
10241 archive_cmds_need_lc=no
10243 archive_cmds_need_lc=yes
10245 allow_undefined_flag=$lt_save_allow_undefined_flag
10247 cat conftest.err 1>&5
10250 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10251 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10258 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10259 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10260 library_names_spec=
10261 libname_spec='lib$name'
10265 postuninstall_cmds=
10269 shlibpath_overrides_runpath=unknown
10271 dynamic_linker="$host_os ld.so"
10272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10274 if test "$GCC" = yes; then
10276 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10277 *) lt_awk_arg="/^libraries:/" ;;
10279 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10280 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10281 # if the path contains ";" then we assume it to be the separator
10282 # otherwise default to the standard path separator (i.e. ":") - it is
10283 # assumed that no part of a normal pathname contains ";" but that should
10284 # okay in the real world where ";" in dirpaths is itself problematic.
10285 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10287 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10289 # Ok, now we have the path, separated by spaces, we can step through it
10290 # and add multilib dir if necessary.
10291 lt_tmp_lt_search_path_spec=
10292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10293 for lt_sys_path in $lt_search_path_spec; do
10294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10297 test -d "$lt_sys_path" && \
10298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10301 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10302 BEGIN {RS=" "; FS="/|\n";} {
10305 for (lt_i = NF; lt_i > 0; lt_i--) {
10306 if ($lt_i != "" && $lt_i != ".") {
10307 if ($lt_i == "..") {
10310 if (lt_count == 0) {
10311 lt_foo="/" $lt_i lt_foo;
10318 if (lt_foo != "") { lt_freq[lt_foo]++; }
10319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10321 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10325 need_lib_prefix=unknown
10326 hardcode_into_libs=no
10328 # when you set need_version to no, make sure it does not cause -set_version
10329 # flags to be left without arguments
10330 need_version=unknown
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10336 shlibpath_var=LIBPATH
10338 # AIX 3 has no versioning support, so we append a major version to the name.
10339 soname_spec='${libname}${release}${shared_ext}$major'
10346 hardcode_into_libs=yes
10347 if test "$host_cpu" = ia64; then
10348 # AIX 5 supports IA64
10349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10352 # With GCC up to 2.95.x, collect2 would create an import file
10353 # for dependence libraries. The import file would start with
10354 # the line `#! .'. This would cause the generated library to
10355 # depend on `.', always an invalid library. This was fixed in
10356 # development snapshots of GCC prior to 3.0.
10358 aix4 | aix4.[01] | aix4.[01].*)
10359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10361 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10364 can_build_shared=no
10368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10369 # soname into executable. Probably we can add versioning support to
10370 # collect2, so additional links can be useful in future.
10371 if test "$aix_use_runtimelinking" = yes; then
10372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10373 # instead of lib<name>.a to let people know that these are not
10374 # typical AIX shared libraries.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 # We preserve .a as extension for shared libraries through AIX4.2
10378 # and later when we are not doing run time linking.
10379 library_names_spec='${libname}${release}.a $libname.a'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LIBPATH
10387 library_names_spec='$libname.ixlibrary $libname.a'
10388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10389 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'
10393 library_names_spec='${libname}${shared_ext}'
10394 dynamic_linker="$host_os ld.so"
10395 shlibpath_var=LIBRARY_PATH
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10407 # the default ld.so.conf also contains /usr/contrib/lib and
10408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10409 # libtool to hard-code these into programs
10412 cygwin* | mingw* | pw32*)
10413 version_type=windows
10418 case $GCC,$host_os in
10419 yes,cygwin* | yes,mingw* | yes,pw32*)
10420 library_names_spec='$libname.dll.a'
10421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10422 postinstall_cmds='base_file=`basename \${file}`~
10423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10424 dldir=$destdir/`dirname \$dlpath`~
10425 test -d \$dldir || mkdir -p \$dldir~
10426 $install_prog $dir/$dlname \$dldir/$dlname~
10427 chmod a+x \$dldir/$dlname'
10428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10429 dlpath=$dir/\$dldll~
10431 shlibpath_overrides_runpath=yes
10435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10437 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10440 # MinGW DLLs use traditional 'lib' prefix
10441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10443 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10444 # It is most probably a Windows format PATH printed by
10445 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10446 # path with ; separators, and with drive letters. We can handle the
10447 # drive letters (cygwin fileutils understands them), so leave them,
10448 # especially as we might pass files found there to a mingw objdump,
10449 # which wouldn't understand a cygwinified path. Ahh.
10450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10456 # pw32 DLLs use 'pw' prefix rather than 'lib'
10457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10466 dynamic_linker='Win32 ld.exe'
10467 # FIXME: first we should search . and the directory the executable is in
10471 darwin* | rhapsody*)
10472 dynamic_linker="$host_os dyld"
10473 version_type=darwin
10476 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10477 soname_spec='${libname}${release}${major}$shared_ext'
10478 shlibpath_overrides_runpath=yes
10479 shlibpath_var=DYLD_LIBRARY_PATH
10480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 shlibpath_var=LD_LIBRARY_PATH
10499 freebsd* | dragonfly*)
10500 # DragonFly does not have aout. When/if they implement a new
10501 # versioning mechanism, adjust this.
10502 if test -x /usr/bin/objformat; then
10503 objformat=`/usr/bin/objformat`
10506 freebsd[123]*) objformat=aout ;;
10507 *) objformat=elf ;;
10510 version_type=freebsd-$objformat
10511 case $version_type in
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10522 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10527 freebsd3.[01]* | freebsdelf3.[01]*)
10528 shlibpath_overrides_runpath=yes
10529 hardcode_into_libs=yes
10531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10536 *) # from 4.6 on, and DragonFly
10537 shlibpath_overrides_runpath=yes
10538 hardcode_into_libs=yes
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 hardcode_into_libs=yes
10553 hpux9* | hpux10* | hpux11*)
10554 # Give a soname corresponding to the major version so that dld.sl refuses to
10555 # link against other versions.
10562 hardcode_into_libs=yes
10563 dynamic_linker="$host_os dld.so"
10564 shlibpath_var=LD_LIBRARY_PATH
10565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 if test "X$HPUX_IA64_MODE" = X32; then
10569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10577 hardcode_into_libs=yes
10578 dynamic_linker="$host_os dld.sl"
10579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10588 dynamic_linker="$host_os dld.sl"
10589 shlibpath_var=SHLIB_PATH
10590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10596 postinstall_cmds='chmod 555 $lib'
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=no
10608 hardcode_into_libs=yes
10611 irix5* | irix6* | nonstopux*)
10613 nonstopux*) version_type=nonstopux ;;
10615 if test "$lt_cv_prog_gnu_ld" = yes; then
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 irix5* | nonstopux*)
10627 libsuff= shlibsuff=
10630 case $LD in # libtool.m4 will add one of these switches to LD
10631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10632 libsuff= shlibsuff= libmagic=32-bit;;
10633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10634 libsuff=32 shlibsuff=N32 libmagic=N32;;
10635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10637 *) libsuff= shlibsuff= libmagic=never-match;;
10641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10642 shlibpath_overrides_runpath=no
10643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10645 hardcode_into_libs=yes
10648 # No shared lib support for Linux oldld, aout, or coff.
10649 linux*oldld* | linux*aout* | linux*coff*)
10653 # This must be Linux ELF.
10654 linux* | k*bsd*-gnu)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
10663 # This implies no fast_install, which is unacceptable.
10664 # Some rework will be needed to allow for fast_install
10665 # before this can be enabled.
10666 hardcode_into_libs=yes
10667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10670 # Append ld.so.conf contents to the search path
10671 if test -f /etc/ld.so.conf; then
10672 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' ' '`
10673 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10676 # We used to test for /lib/ld.so.1 and disable shared libraries on
10677 # powerpc, because MkLinux only supported shared libraries with the
10678 # GNU dynamic linker. Since this was broken with cross compilers,
10679 # most powerpc-linux boxes support dynamic linking these days and
10680 # people can always --disable-shared, the test was removed, and we
10681 # assume the GNU/Linux dynamic linker is in use.
10682 dynamic_linker='GNU/Linux ld.so'
10689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10692 dynamic_linker='NetBSD (a.out) ld.so'
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 dynamic_linker='NetBSD ld.elf_so'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes
10700 hardcode_into_libs=yes
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 shlibpath_overrides_runpath=yes
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes
10722 sys_lib_dlsearch_path_spec="/usr/lib"
10724 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10726 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10727 *) need_version=no ;;
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10734 openbsd2.[89] | openbsd2.[89].*)
10735 shlibpath_overrides_runpath=no
10738 shlibpath_overrides_runpath=yes
10742 shlibpath_overrides_runpath=yes
10747 libname_spec='$name'
10750 library_names_spec='$libname${shared_ext} $libname.a'
10751 dynamic_linker='OS/2 ld.exe'
10752 shlibpath_var=LIBPATH
10755 osf3* | osf4* | osf5*)
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10763 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=yes
10778 hardcode_into_libs=yes
10779 # ldd complains unless libraries are executable
10780 postinstall_cmds='chmod +x $lib'
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath=yes
10789 if test "$with_gnu_ld" = yes; then
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 case $host_vendor in
10802 shlibpath_overrides_runpath=no
10804 export_dynamic_flag_spec='${wl}-Blargedynsym'
10805 runpath_var=LD_RUN_PATH
10813 shlibpath_overrides_runpath=no
10814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10820 if test -d /usr/nec ;then
10822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10823 soname_spec='$libname${shared_ext}.$major'
10824 shlibpath_var=LD_LIBRARY_PATH
10828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10829 version_type=freebsd-elf
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 hardcode_into_libs=yes
10836 if test "$with_gnu_ld" = yes; then
10837 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10838 shlibpath_overrides_runpath=no
10840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10841 shlibpath_overrides_runpath=yes
10844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10848 sys_lib_dlsearch_path_spec='/usr/lib'
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10862 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10863 echo "${ECHO_T}$dynamic_linker" >&6; }
10864 test "$dynamic_linker" = no && can_build_shared=no
10866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10867 if test "$GCC" = yes; then
10868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10874 if test -n "$hardcode_libdir_flag_spec" || \
10875 test -n "$runpath_var" || \
10876 test "X$hardcode_automatic" = "Xyes" ; then
10878 # We can hardcode non-existant directories.
10879 if test "$hardcode_direct" != no &&
10880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10881 # have to relink, otherwise we might link with an installed library
10882 # when we should be linking with a yet-to-be-installed one
10883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10884 test "$hardcode_minus_L" != no; then
10885 # Linking always hardcodes the temporary library directory.
10886 hardcode_action=relink
10888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10889 hardcode_action=immediate
10892 # We cannot hardcode anything, or else we can only hardcode existing
10894 hardcode_action=unsupported
10896 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10897 echo "${ECHO_T}$hardcode_action" >&6; }
10899 if test "$hardcode_action" = relink; then
10900 # Fast installation is not supported
10901 enable_fast_install=no
10902 elif test "$shlibpath_overrides_runpath" = yes ||
10903 test "$enable_shared" = no; then
10904 # Fast installation is not necessary
10905 enable_fast_install=needless
10910 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10912 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10915 { echo "$as_me:$LINENO: result: yes" >&5
10916 echo "${ECHO_T}yes" >&6; }
10918 # FIXME - insert some real tests, host_os isn't really good enough
10921 if test -n "$STRIP" ; then
10922 striplib="$STRIP -x"
10923 old_striplib="$STRIP -S"
10924 { echo "$as_me:$LINENO: result: yes" >&5
10925 echo "${ECHO_T}yes" >&6; }
10927 { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10932 { echo "$as_me:$LINENO: result: no" >&5
10933 echo "${ECHO_T}no" >&6; }
10938 if test "x$enable_dlopen" != xyes; then
10939 enable_dlopen=unknown
10940 enable_dlopen_self=unknown
10941 enable_dlopen_self_static=unknown
10948 lt_cv_dlopen="load_add_on"
10950 lt_cv_dlopen_self=yes
10954 lt_cv_dlopen="LoadLibrary"
10959 lt_cv_dlopen="dlopen"
10964 # if libdl is installed we need to link against it
10965 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 ac_check_lib_save_LIBS=$LIBS
10972 cat >conftest.$ac_ext <<_ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext &&
11011 $as_test_x conftest$ac_exeext; then
11012 ac_cv_lib_dl_dlopen=yes
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ac_cv_lib_dl_dlopen=no
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11026 if test $ac_cv_lib_dl_dlopen = yes; then
11027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11030 lt_cv_dlopen="dyld"
11032 lt_cv_dlopen_self=yes
11039 { echo "$as_me:$LINENO: checking for shl_load" >&5
11040 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11041 if test "${ac_cv_func_shl_load+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11052 #define shl_load innocuous_shl_load
11054 /* System header to define __stub macros and hopefully few prototypes,
11055 which can conflict with char shl_load (); below.
11056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11057 <limits.h> exists even on freestanding compilers. */
11060 # include <limits.h>
11062 # include <assert.h>
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11074 /* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
11077 #if defined __stub_shl_load || defined __stub___shl_load
11084 return shl_load ();
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11098 grep -v '^ *+' conftest.er1 >conftest.err
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext &&
11106 $as_test_x conftest$ac_exeext; then
11107 ac_cv_func_shl_load=yes
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 ac_cv_func_shl_load=no
11115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11116 conftest$ac_exeext conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11119 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11120 if test $ac_cv_func_shl_load = yes; then
11121 lt_cv_dlopen="shl_load"
11123 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11124 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 ac_check_lib_save_LIBS=$LIBS
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11137 /* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11147 return shl_load ();
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_link") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest$ac_exeext &&
11169 $as_test_x conftest$ac_exeext; then
11170 ac_cv_lib_dld_shl_load=yes
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_cv_lib_dld_shl_load=no
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11183 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11184 if test $ac_cv_lib_dld_shl_load = yes; then
11185 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11187 { echo "$as_me:$LINENO: checking for dlopen" >&5
11188 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11189 if test "${ac_cv_func_dlopen+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11200 #define dlopen innocuous_dlopen
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char dlopen (); below.
11204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205 <limits.h> exists even on freestanding compilers. */
11208 # include <limits.h>
11210 # include <assert.h>
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined __stub_dlopen || defined __stub___dlopen
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 ac_cv_func_dlopen=yes
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ac_cv_func_dlopen=no
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11266 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11267 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11268 if test $ac_cv_func_dlopen = yes; then
11269 lt_cv_dlopen="dlopen"
11271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 ac_check_lib_save_LIBS=$LIBS
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (ac_try="$ac_link"
11302 case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_link") 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && {
11314 test -z "$ac_c_werror_flag" ||
11315 test ! -s conftest.err
11316 } && test -s conftest$ac_exeext &&
11317 $as_test_x conftest$ac_exeext; then
11318 ac_cv_lib_dl_dlopen=yes
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_cv_lib_dl_dlopen=no
11326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11332 if test $ac_cv_lib_dl_dlopen = yes; then
11333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11336 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11337 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-lsvld $LIBS"
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (ac_try="$ac_link"
11366 case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_link") 2>conftest.er1
11373 grep -v '^ *+' conftest.er1 >conftest.err
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && {
11378 test -z "$ac_c_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest$ac_exeext &&
11381 $as_test_x conftest$ac_exeext; then
11382 ac_cv_lib_svld_dlopen=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_cv_lib_svld_dlopen=no
11390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LIBS=$ac_check_lib_save_LIBS
11394 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11395 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11396 if test $ac_cv_lib_svld_dlopen = yes; then
11397 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11399 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11400 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11401 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_check_lib_save_LIBS=$LIBS
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11423 return dld_link ();
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (ac_try="$ac_link"
11430 case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_link") 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } && {
11442 test -z "$ac_c_werror_flag" ||
11443 test ! -s conftest.err
11444 } && test -s conftest$ac_exeext &&
11445 $as_test_x conftest$ac_exeext; then
11446 ac_cv_lib_dld_dld_link=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_cv_lib_dld_dld_link=no
11454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11458 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11459 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11460 if test $ac_cv_lib_dld_dld_link = yes; then
11461 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11482 if test "x$lt_cv_dlopen" != xno; then
11488 case $lt_cv_dlopen in
11490 save_CPPFLAGS="$CPPFLAGS"
11491 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11493 save_LDFLAGS="$LDFLAGS"
11494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11497 LIBS="$lt_cv_dlopen_libs $LIBS"
11499 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11500 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11501 if test "${lt_cv_dlopen_self+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 if test "$cross_compiling" = yes; then :
11505 lt_cv_dlopen_self=cross
11507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11508 lt_status=$lt_dlunknown
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11520 # define LT_DLGLOBAL RTLD_GLOBAL
11523 # define LT_DLGLOBAL DL_GLOBAL
11525 # define LT_DLGLOBAL 0
11529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11530 find out it does not work in some platform. */
11531 #ifndef LT_DLLAZY_OR_NOW
11533 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11536 # define LT_DLLAZY_OR_NOW DL_LAZY
11539 # define LT_DLLAZY_OR_NOW RTLD_NOW
11542 # define LT_DLLAZY_OR_NOW DL_NOW
11544 # define LT_DLLAZY_OR_NOW 0
11552 extern "C" void exit (int);
11555 void fnord() { int i=42;}
11558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559 int status = $lt_dlunknown;
11563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565 /* dlclose (self); */
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11578 (./conftest; exit; ) >&5 2>/dev/null
11580 case x$lt_status in
11581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11583 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586 # compilation failed
11587 lt_cv_dlopen_self=no
11594 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11597 if test "x$lt_cv_dlopen_self" = xyes; then
11598 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11599 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11601 if test "${lt_cv_dlopen_self_static+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 if test "$cross_compiling" = yes; then :
11605 lt_cv_dlopen_self_static=cross
11607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608 lt_status=$lt_dlunknown
11609 cat > conftest.$ac_ext <<EOF
11610 #line 11610 "configure"
11611 #include "confdefs.h"
11620 # define LT_DLGLOBAL RTLD_GLOBAL
11623 # define LT_DLGLOBAL DL_GLOBAL
11625 # define LT_DLGLOBAL 0
11629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630 find out it does not work in some platform. */
11631 #ifndef LT_DLLAZY_OR_NOW
11633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11636 # define LT_DLLAZY_OR_NOW DL_LAZY
11639 # define LT_DLLAZY_OR_NOW RTLD_NOW
11642 # define LT_DLLAZY_OR_NOW DL_NOW
11644 # define LT_DLLAZY_OR_NOW 0
11652 extern "C" void exit (int);
11655 void fnord() { int i=42;}
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665 /* dlclose (self); */
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11678 (./conftest; exit; ) >&5 2>/dev/null
11680 case x$lt_status in
11681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11686 # compilation failed
11687 lt_cv_dlopen_self_static=no
11694 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11695 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11698 CPPFLAGS="$save_CPPFLAGS"
11699 LDFLAGS="$save_LDFLAGS"
11704 case $lt_cv_dlopen_self in
11705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11706 *) enable_dlopen_self=unknown ;;
11709 case $lt_cv_dlopen_self_static in
11710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11711 *) enable_dlopen_self_static=unknown ;;
11716 # Report which library types will actually be built
11717 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11718 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11719 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11720 echo "${ECHO_T}$can_build_shared" >&6; }
11722 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11723 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11724 test "$can_build_shared" = "no" && enable_shared=no
11726 # On AIX, shared libraries and static libraries use the same namespace, and
11727 # are all built from PIC.
11730 test "$enable_shared" = yes && enable_static=no
11731 if test -n "$RANLIB"; then
11732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11733 postinstall_cmds='$RANLIB $lib'
11738 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11739 test "$enable_shared" = yes && enable_static=no
11743 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11744 echo "${ECHO_T}$enable_shared" >&6; }
11746 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11747 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11748 # Make sure either enable_shared or enable_static is yes.
11749 test "$enable_shared" = yes || enable_static=yes
11750 { echo "$as_me:$LINENO: result: $enable_static" >&5
11751 echo "${ECHO_T}$enable_static" >&6; }
11753 # The else clause should only fire when bootstrapping the
11754 # libtool distribution, otherwise you forgot to ship ltmain.sh
11755 # with your package, and you will get complaints that there are
11756 # no rules to generate ltmain.sh.
11757 if test -f "$ltmain"; then
11758 # See if we are running on zsh, and set the options which allow our commands through
11759 # without removal of \ escapes.
11760 if test -n "${ZSH_VERSION+set}" ; then
11761 setopt NO_GLOB_SUBST
11763 # Now quote all the things that may contain metacharacters while being
11764 # careful not to overquote the AC_SUBSTed values. We take copies of the
11765 # variables and quote the copies for generation of the libtool script.
11766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11770 deplibs_check_method reload_flag reload_cmds need_locks \
11771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11772 lt_cv_sys_global_symbol_to_c_name_address \
11773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11774 old_postinstall_cmds old_postuninstall_cmds \
11778 lt_prog_compiler_wl \
11779 lt_prog_compiler_pic \
11780 lt_prog_compiler_static \
11781 lt_prog_compiler_no_builtin_flag \
11782 export_dynamic_flag_spec \
11783 thread_safe_flag_spec \
11784 whole_archive_flag_spec \
11785 enable_shared_with_static_runtimes \
11787 old_archive_from_new_cmds \
11792 compiler_lib_search_path \
11794 archive_expsym_cmds \
11796 postuninstall_cmds \
11797 old_archive_from_expsyms_cmds \
11798 allow_undefined_flag \
11799 no_undefined_flag \
11800 export_symbols_cmds \
11801 hardcode_libdir_flag_spec \
11802 hardcode_libdir_flag_spec_ld \
11803 hardcode_libdir_separator \
11804 hardcode_automatic \
11806 module_expsym_cmds \
11807 lt_cv_prog_compiler_c_o \
11810 include_expsyms; do
11813 old_archive_cmds | \
11814 old_archive_from_new_cmds | \
11816 archive_expsym_cmds | \
11818 module_expsym_cmds | \
11819 old_archive_from_expsyms_cmds | \
11820 export_symbols_cmds | \
11821 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11822 postinstall_cmds | postuninstall_cmds | \
11823 old_postinstall_cmds | old_postuninstall_cmds | \
11824 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11825 # Double-quote double-evaled strings.
11826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11835 *'\$0 --fallback-echo"')
11836 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11840 cfgfile="${ofile}T"
11841 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11843 { echo "$as_me:$LINENO: creating $ofile" >&5
11844 echo "$as_me: creating $ofile" >&6;}
11846 cat <<__EOF__ >> "$cfgfile"
11849 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11850 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11851 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11853 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11854 # Free Software Foundation, Inc.
11856 # This file is part of GNU Libtool:
11857 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11859 # This program is free software; you can redistribute it and/or modify
11860 # it under the terms of the GNU General Public License as published by
11861 # the Free Software Foundation; either version 2 of the License, or
11862 # (at your option) any later version.
11864 # This program is distributed in the hope that it will be useful, but
11865 # WITHOUT ANY WARRANTY; without even the implied warranty of
11866 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11867 # General Public License for more details.
11869 # You should have received a copy of the GNU General Public License
11870 # along with this program; if not, write to the Free Software
11871 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11873 # As a special exception to the GNU General Public License, if you
11874 # distribute this file as part of a program that contains a
11875 # configuration script generated by Autoconf, you may include it under
11876 # the same distribution terms that you use for the rest of that program.
11878 # A sed program that does not truncate output.
11881 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11882 Xsed="$SED -e 1s/^X//"
11884 # The HP-UX ksh and POSIX shell print the target directory to stdout
11885 # if CDPATH is set.
11886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11888 # The names of the tagged configurations supported by this script.
11891 # ### BEGIN LIBTOOL CONFIG
11893 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11895 # Shell to use when invoking shell scripts.
11898 # Whether or not to build shared libraries.
11899 build_libtool_libs=$enable_shared
11901 # Whether or not to build static libraries.
11902 build_old_libs=$enable_static
11904 # Whether or not to add -lc for building shared libraries.
11905 build_libtool_need_lc=$archive_cmds_need_lc
11907 # Whether or not to disallow shared libs when runtime libs are static
11908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11910 # Whether or not to optimize for fast installation.
11911 fast_install=$enable_fast_install
11914 host_alias=$host_alias
11918 # The build system.
11919 build_alias=$build_alias
11923 # An echo program that does not interpret backslashes.
11928 AR_FLAGS=$lt_AR_FLAGS
11933 # LTCC compiler flags.
11934 LTCFLAGS=$lt_LTCFLAGS
11936 # A language-specific compiler.
11939 # Is the compiler the GNU C compiler?
11945 # The linker used to build libraries.
11948 # Whether we need hard or soft links.
11951 # A BSD-compatible nm program.
11954 # A symbol stripping program
11957 # Used to examine libraries when file_magic_cmd begins "file"
11958 MAGIC_CMD=$MAGIC_CMD
11960 # Used on cygwin: DLL creation program.
11963 # Used on cygwin: object dumper.
11966 # Used on cygwin: assembler.
11969 # The name of the directory that contains temporary libtool files.
11972 # How to create reloadable object files.
11973 reload_flag=$lt_reload_flag
11974 reload_cmds=$lt_reload_cmds
11976 # How to pass a linker flag through the compiler.
11977 wl=$lt_lt_prog_compiler_wl
11979 # Object file suffix (normally "o").
11980 objext="$ac_objext"
11982 # Old archive suffix (normally "a").
11985 # Shared library suffix (normally ".so").
11986 shrext_cmds='$shrext_cmds'
11988 # Executable file suffix (normally "").
11991 # Additional compiler flags for building library objects.
11992 pic_flag=$lt_lt_prog_compiler_pic
11995 # What is the maximum length of a command?
11996 max_cmd_len=$lt_cv_sys_max_cmd_len
11998 # Does compiler simultaneously support -c and -o options?
11999 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12001 # Must we lock files when doing compilation?
12002 need_locks=$lt_need_locks
12004 # Do we need the lib prefix for modules?
12005 need_lib_prefix=$need_lib_prefix
12007 # Do we need a version for libraries?
12008 need_version=$need_version
12010 # Whether dlopen is supported.
12011 dlopen_support=$enable_dlopen
12013 # Whether dlopen of programs is supported.
12014 dlopen_self=$enable_dlopen_self
12016 # Whether dlopen of statically linked programs is supported.
12017 dlopen_self_static=$enable_dlopen_self_static
12019 # Compiler flag to prevent dynamic linking.
12020 link_static_flag=$lt_lt_prog_compiler_static
12022 # Compiler flag to turn off builtin functions.
12023 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12025 # Compiler flag to allow reflexive dlopens.
12026 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12028 # Compiler flag to generate shared objects directly from archives.
12029 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12031 # Compiler flag to generate thread-safe objects.
12032 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12034 # Library versioning type.
12035 version_type=$version_type
12037 # Format of library name prefix.
12038 libname_spec=$lt_libname_spec
12040 # List of archive names. First name is the real one, the rest are links.
12041 # The last name is the one that the linker finds with -lNAME.
12042 library_names_spec=$lt_library_names_spec
12044 # The coded name of the library, if different from the real name.
12045 soname_spec=$lt_soname_spec
12047 # Commands used to build and install an old-style archive.
12049 old_archive_cmds=$lt_old_archive_cmds
12050 old_postinstall_cmds=$lt_old_postinstall_cmds
12051 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12053 # Create an old-style archive from a shared archive.
12054 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12056 # Create a temporary old-style archive to link instead of a shared archive.
12057 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12059 # Commands used to build and install a shared archive.
12060 archive_cmds=$lt_archive_cmds
12061 archive_expsym_cmds=$lt_archive_expsym_cmds
12062 postinstall_cmds=$lt_postinstall_cmds
12063 postuninstall_cmds=$lt_postuninstall_cmds
12065 # Commands used to build a loadable module (assumed same as above if empty)
12066 module_cmds=$lt_module_cmds
12067 module_expsym_cmds=$lt_module_expsym_cmds
12069 # Commands to strip libraries.
12070 old_striplib=$lt_old_striplib
12071 striplib=$lt_striplib
12073 # Dependencies to place before the objects being linked to create a
12075 predep_objects=$lt_predep_objects
12077 # Dependencies to place after the objects being linked to create a
12079 postdep_objects=$lt_postdep_objects
12081 # Dependencies to place before the objects being linked to create a
12083 predeps=$lt_predeps
12085 # Dependencies to place after the objects being linked to create a
12087 postdeps=$lt_postdeps
12089 # The library search path used internally by the compiler when linking
12090 # a shared library.
12091 compiler_lib_search_path=$lt_compiler_lib_search_path
12093 # Method to check whether dependent libraries are shared objects.
12094 deplibs_check_method=$lt_deplibs_check_method
12096 # Command to use when deplibs_check_method == file_magic.
12097 file_magic_cmd=$lt_file_magic_cmd
12099 # Flag that allows shared libraries with undefined symbols to be built.
12100 allow_undefined_flag=$lt_allow_undefined_flag
12102 # Flag that forces no undefined symbols.
12103 no_undefined_flag=$lt_no_undefined_flag
12105 # Commands used to finish a libtool library installation in a directory.
12106 finish_cmds=$lt_finish_cmds
12108 # Same as above, but a single script fragment to be evaled but not shown.
12109 finish_eval=$lt_finish_eval
12111 # Take the output of nm and produce a listing of raw symbols and C names.
12112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12114 # Transform the output of nm in a proper C declaration
12115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12117 # Transform the output of nm in a C name address pair
12118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12120 # This is the shared library runtime path variable.
12121 runpath_var=$runpath_var
12123 # This is the shared library path variable.
12124 shlibpath_var=$shlibpath_var
12126 # Is shlibpath searched before the hard-coded library search path?
12127 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12129 # How to hardcode a shared library path into an executable.
12130 hardcode_action=$hardcode_action
12132 # Whether we should hardcode library paths into libraries.
12133 hardcode_into_libs=$hardcode_into_libs
12135 # Flag to hardcode \$libdir into a binary during linking.
12136 # This must work even if \$libdir does not exist.
12137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12139 # If ld is used when linking, flag to hardcode \$libdir into
12140 # a binary during linking. This must work even if \$libdir does
12142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12144 # Whether we need a single -rpath flag with a separated argument.
12145 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12147 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12148 # resulting binary.
12149 hardcode_direct=$hardcode_direct
12151 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12152 # resulting binary.
12153 hardcode_minus_L=$hardcode_minus_L
12155 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12156 # the resulting binary.
12157 hardcode_shlibpath_var=$hardcode_shlibpath_var
12159 # Set to yes if building a shared library automatically hardcodes DIR into the library
12160 # and all subsequent libraries and executables linked against it.
12161 hardcode_automatic=$hardcode_automatic
12163 # Variables whose values should be saved in libtool wrapper scripts and
12164 # restored at relink time.
12165 variables_saved_for_relink="$variables_saved_for_relink"
12167 # Whether libtool must link a program against all its dependency libraries.
12168 link_all_deplibs=$link_all_deplibs
12170 # Compile-time system search path for libraries
12171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12173 # Run-time system search path for libraries
12174 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12176 # Fix the shell variable \$srcfile for the compiler.
12177 fix_srcfile_path=$lt_fix_srcfile_path
12179 # Set to yes if exported symbols are required.
12180 always_export_symbols=$always_export_symbols
12182 # The commands to list exported symbols.
12183 export_symbols_cmds=$lt_export_symbols_cmds
12185 # The commands to extract the exported symbol list from a shared archive.
12186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12188 # Symbols that should not be listed in the preloaded symbols.
12189 exclude_expsyms=$lt_exclude_expsyms
12191 # Symbols that must always be exported.
12192 include_expsyms=$lt_include_expsyms
12194 # ### END LIBTOOL CONFIG
12201 cat <<\EOF >> "$cfgfile"
12203 # AIX sometimes has problems with the GCC collect2 program. For some
12204 # reason, if we set the COLLECT_NAMES environment variable, the problems
12205 # vanish in a puff of smoke.
12206 if test "X${COLLECT_NAMES+set}" != Xset; then
12208 export COLLECT_NAMES
12214 # We use sed instead of cat because bash on DJGPP gets confused if
12215 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12216 # text mode, it properly converts lines to CR/LF. This bash problem
12217 # is reportedly fixed, but why not run on old versions too?
12218 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12220 mv -f "$cfgfile" "$ofile" || \
12221 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12225 # If there is no Makefile yet, we rely on a make rule to execute
12226 # `config.status --recheck' to rerun these tests and create the
12227 # libtool script then.
12228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12229 if test -f "$ltmain_in"; then
12230 test -f Makefile && make "$ltmain"
12236 ac_cpp='$CPP $CPPFLAGS'
12237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12244 # Check whether --with-tags was given.
12245 if test "${with_tags+set}" = set; then
12246 withval=$with_tags; tagnames="$withval"
12250 if test -f "$ltmain" && test -n "$tagnames"; then
12251 if test ! -f "${ofile}"; then
12252 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12253 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12256 if test -z "$LTCC"; then
12257 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12258 if test -z "$LTCC"; then
12259 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12260 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12263 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12266 if test -z "$LTCFLAGS"; then
12267 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12270 # Extract list of available tagged configurations in $ofile.
12271 # Note that this assumes the entire list is on one line.
12272 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12275 for tagname in $tagnames; do
12277 # Check whether tagname contains only valid characters
12278 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12280 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12281 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12282 { (exit 1); exit 1; }; }
12286 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12288 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12289 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12290 { (exit 1); exit 1; }; }
12293 # Update the list of available tags.
12294 if test -n "$tagname"; then
12295 echo appending configuration tag \"$tagname\" to $ofile
12299 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12300 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12301 (test "X$CXX" != "Xg++"))) ; then
12303 ac_cpp='$CXXCPP $CPPFLAGS'
12304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12311 archive_cmds_need_lc_CXX=no
12312 allow_undefined_flag_CXX=
12313 always_export_symbols_CXX=no
12314 archive_expsym_cmds_CXX=
12315 export_dynamic_flag_spec_CXX=
12316 hardcode_direct_CXX=no
12317 hardcode_libdir_flag_spec_CXX=
12318 hardcode_libdir_flag_spec_ld_CXX=
12319 hardcode_libdir_separator_CXX=
12320 hardcode_minus_L_CXX=no
12321 hardcode_shlibpath_var_CXX=unsupported
12322 hardcode_automatic_CXX=no
12324 module_expsym_cmds_CXX=
12325 link_all_deplibs_CXX=unknown
12326 old_archive_cmds_CXX=$old_archive_cmds
12327 no_undefined_flag_CXX=
12328 whole_archive_flag_spec_CXX=
12329 enable_shared_with_static_runtimes_CXX=no
12331 # Dependencies to place before and after the object being linked:
12332 predep_objects_CXX=
12333 postdep_objects_CXX=
12336 compiler_lib_search_path_CXX=
12338 # Source file extension for C++ test sources.
12341 # Object file extension for compiled C++ test sources.
12345 # Code to be used in simple compile tests
12346 lt_simple_compile_test_code="int some_variable = 0;"
12348 # Code to be used in simple link tests
12349 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12353 # If no C compiler was specified, use CC.
12356 # If no C compiler flags were specified, use CFLAGS.
12357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12359 # Allow CC to be a program name with arguments.
12363 # save warnings/boilerplate of simple test code
12364 ac_outfile=conftest.$ac_objext
12365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12367 _lt_compiler_boilerplate=`cat conftest.err`
12370 ac_outfile=conftest.$ac_objext
12371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12373 _lt_linker_boilerplate=`cat conftest.err`
12377 # Allow CC to be a program name with arguments.
12382 lt_save_with_gnu_ld=$with_gnu_ld
12383 lt_save_path_LD=$lt_cv_path_LD
12384 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12385 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12387 $as_unset lt_cv_prog_gnu_ld
12389 if test -n "${lt_cv_path_LDCXX+set}"; then
12390 lt_cv_path_LD=$lt_cv_path_LDCXX
12392 $as_unset lt_cv_path_LD
12394 test -z "${LDCXX+set}" || LD=$LDCXX
12398 for cc_temp in $compiler""; do
12400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12409 # We don't want -fno-exception wen compiling C++ code, so set the
12410 # no_builtin_flag separately
12411 if test "$GXX" = yes; then
12412 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12414 lt_prog_compiler_no_builtin_flag_CXX=
12417 if test "$GXX" = yes; then
12418 # Set up default GNU C++ configuration
12421 # Check whether --with-gnu-ld was given.
12422 if test "${with_gnu_ld+set}" = set; then
12423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12429 if test "$GCC" = yes; then
12430 # Check if gcc -print-prog-name=ld gives a path.
12431 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12432 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12435 # gcc leaves a trailing carriage return which upsets mingw
12436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12441 # Accept absolute paths.
12443 re_direlt='/[^/][^/]*/\.\./'
12444 # Canonicalize the pathname of ld
12445 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12446 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12447 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12449 test -z "$LD" && LD="$ac_prog"
12452 # If it fails, then pretend we aren't using GCC.
12456 # If it is relative, then search for the first ld in PATH.
12457 with_gnu_ld=unknown
12460 elif test "$with_gnu_ld" = yes; then
12461 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12462 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12464 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12465 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12467 if test "${lt_cv_path_LD+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 if test -z "$LD"; then
12471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12472 for ac_dir in $PATH; do
12474 test -z "$ac_dir" && ac_dir=.
12475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12476 lt_cv_path_LD="$ac_dir/$ac_prog"
12477 # Check to see if the program is GNU ld. I'd rather use --version,
12478 # but apparently some variants of GNU ld only accept -v.
12479 # Break only if it was the GNU/non-GNU ld that we prefer.
12480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12481 *GNU* | *'with BFD'*)
12482 test "$with_gnu_ld" != no && break
12485 test "$with_gnu_ld" != yes && break
12492 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12496 LD="$lt_cv_path_LD"
12497 if test -n "$LD"; then
12498 { echo "$as_me:$LINENO: result: $LD" >&5
12499 echo "${ECHO_T}$LD" >&6; }
12501 { echo "$as_me:$LINENO: result: no" >&5
12502 echo "${ECHO_T}no" >&6; }
12504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12506 { (exit 1); exit 1; }; }
12507 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12509 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12513 case `$LD -v 2>&1 </dev/null` in
12514 *GNU* | *'with BFD'*)
12515 lt_cv_prog_gnu_ld=yes
12518 lt_cv_prog_gnu_ld=no
12522 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12523 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12524 with_gnu_ld=$lt_cv_prog_gnu_ld
12528 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12529 # archiving commands below assume that GNU ld is being used.
12530 if test "$with_gnu_ld" = yes; then
12531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12532 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'
12534 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12535 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12537 # If archive_cmds runs LD, not CC, wlarc should be empty
12538 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12539 # investigate it a little bit more. (MM)
12542 # ancient GNU ld didn't support --whole-archive et. al.
12543 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12544 grep 'no-whole-archive' > /dev/null; then
12545 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12547 whole_archive_flag_spec_CXX=
12553 # A generic and very simple default shared library creation
12554 # command for GNU C++ for the case where it uses the native
12555 # linker, instead of GNU ld. If possible, this setting should
12556 # overridden to take advantage of the native linker features on
12557 # the platform it is being used on.
12558 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12561 # Commands to make compiler produce verbose output that lists
12562 # what "hidden" libraries, object files and flags are used when
12563 # linking a shared library.
12564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12572 # PORTME: fill in a description of your system's C++ link characteristics
12573 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12574 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12578 # FIXME: insert proper C++ library support
12582 if test "$host_cpu" = ia64; then
12583 # On IA64, the linker does run time linking by default, so we don't
12584 # have to do anything special.
12585 aix_use_runtimelinking=no
12586 exp_sym_flag='-Bexport'
12589 aix_use_runtimelinking=no
12591 # Test if we are trying to use run time linking or normal
12592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12593 # need to do runtime linking.
12594 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12595 for ld_flag in $LDFLAGS; do
12598 aix_use_runtimelinking=yes
12606 exp_sym_flag='-bexport'
12607 no_entry_flag='-bnoentry'
12610 # When large executables or shared objects are built, AIX ld can
12611 # have problems creating the table of contents. If linking a library
12612 # or program results in "error TOC overflow" add -mminimal-toc to
12613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12616 archive_cmds_CXX=''
12617 hardcode_direct_CXX=yes
12618 hardcode_libdir_separator_CXX=':'
12619 link_all_deplibs_CXX=yes
12621 if test "$GXX" = yes; then
12622 case $host_os in aix4.[012]|aix4.[012].*)
12623 # We only want to do this on AIX 4.2 and lower, the check
12624 # below for broken collect2 doesn't work under 4.3+
12625 collect2name=`${CC} -print-prog-name=collect2`
12626 if test -f "$collect2name" && \
12627 strings "$collect2name" | grep resolve_lib_name >/dev/null
12629 # We have reworked collect2
12632 # We have old collect2
12633 hardcode_direct_CXX=unsupported
12634 # It fails to find uninstalled libraries when the uninstalled
12635 # path is not listed in the libpath. Setting hardcode_minus_L
12636 # to unsupported forces relinking
12637 hardcode_minus_L_CXX=yes
12638 hardcode_libdir_flag_spec_CXX='-L$libdir'
12639 hardcode_libdir_separator_CXX=
12643 shared_flag='-shared'
12644 if test "$aix_use_runtimelinking" = yes; then
12645 shared_flag="$shared_flag "'${wl}-G'
12649 if test "$host_cpu" = ia64; then
12650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12651 # chokes on -Wl,-G. The following line is correct:
12654 if test "$aix_use_runtimelinking" = yes; then
12655 shared_flag='${wl}-G'
12657 shared_flag='${wl}-bM:SRE'
12662 # It seems that -bexpall does not export symbols beginning with
12663 # underscore (_), so it is better to generate a list of symbols to export.
12664 always_export_symbols_CXX=yes
12665 if test "$aix_use_runtimelinking" = yes; then
12666 # Warning - without using the other runtime loading flags (-brtl),
12667 # -berok will link without error, but may produce a broken library.
12668 allow_undefined_flag_CXX='-berok'
12669 # Determine the default libpath from the value encoded in an empty executable.
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && {
12699 test -z "$ac_cxx_werror_flag" ||
12700 test ! -s conftest.err
12701 } && test -s conftest$ac_exeext &&
12702 $as_test_x conftest$ac_exeext; then
12704 lt_aix_libpath_sed='
12705 /Import File Strings/,/^$/ {
12711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12712 # Check for a 64-bit object if we didn't find anything.
12713 if test -z "$aix_libpath"; then
12714 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724 conftest$ac_exeext conftest.$ac_ext
12725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12729 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12731 if test "$host_cpu" = ia64; then
12732 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12733 allow_undefined_flag_CXX="-z nodefs"
12734 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"
12736 # Determine the default libpath from the value encoded in an empty executable.
12737 cat >conftest.$ac_ext <<_ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_link") 2>conftest.er1
12761 grep -v '^ *+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } && {
12766 test -z "$ac_cxx_werror_flag" ||
12767 test ! -s conftest.err
12768 } && test -s conftest$ac_exeext &&
12769 $as_test_x conftest$ac_exeext; then
12771 lt_aix_libpath_sed='
12772 /Import File Strings/,/^$/ {
12778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12779 # Check for a 64-bit object if we didn't find anything.
12780 if test -z "$aix_libpath"; then
12781 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12791 conftest$ac_exeext conftest.$ac_ext
12792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12794 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12795 # Warning - without using the other run time loading flags,
12796 # -berok will link without error, but may produce a broken library.
12797 no_undefined_flag_CXX=' ${wl}-bernotok'
12798 allow_undefined_flag_CXX=' ${wl}-berok'
12799 # Exported symbols can be pulled into shared objects from archives
12800 whole_archive_flag_spec_CXX='$convenience'
12801 archive_cmds_need_lc_CXX=yes
12802 # This is similar to how AIX traditionally builds its shared libraries.
12803 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'
12809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12810 allow_undefined_flag_CXX=unsupported
12811 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12812 # support --undefined. This deserves some investigation. FIXME
12813 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 case $cc_basename in
12822 # FIXME: insert proper C++ library support
12828 cygwin* | mingw* | pw32*)
12829 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12830 # as there is no search path for DLLs.
12831 hardcode_libdir_flag_spec_CXX='-L$libdir'
12832 allow_undefined_flag_CXX=unsupported
12833 always_export_symbols_CXX=no
12834 enable_shared_with_static_runtimes_CXX=yes
12836 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12837 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'
12838 # If the export-symbols file already is a .def file (1st line
12839 # is EXPORTS), use it as is; otherwise, prepend...
12840 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12841 cp $export_symbols $output_objdir/$soname.def;
12843 echo EXPORTS > $output_objdir/$soname.def;
12844 cat $export_symbols >> $output_objdir/$soname.def;
12846 $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'
12851 darwin* | rhapsody*)
12853 rhapsody* | darwin1.[012])
12854 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12857 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12858 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12860 case ${MACOSX_DEPLOYMENT_TARGET} in
12862 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12865 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12871 archive_cmds_need_lc_CXX=no
12872 hardcode_direct_CXX=no
12873 hardcode_automatic_CXX=yes
12874 hardcode_shlibpath_var_CXX=unsupported
12875 whole_archive_flag_spec_CXX=''
12876 link_all_deplibs_CXX=yes
12878 if test "$GXX" = yes ; then
12879 lt_int_apple_cc_single_mod=no
12880 output_verbose_link_cmd='echo'
12881 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12882 lt_int_apple_cc_single_mod=yes
12884 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12885 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12887 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'
12889 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12890 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12891 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12892 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12894 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12896 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12898 case $cc_basename in
12900 output_verbose_link_cmd='echo'
12901 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12902 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12904 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12905 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12915 case $cc_basename in
12917 # FIXME: insert proper C++ library support
12921 # Green Hills C++ Compiler
12922 # FIXME: insert proper C++ library support
12926 # FIXME: insert proper C++ library support
12932 # C++ shared libraries reported to be fairly broken before switch to ELF
12936 archive_cmds_need_lc_CXX=no
12938 freebsd* | dragonfly*)
12939 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12946 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12947 hardcode_libdir_separator_CXX=:
12948 export_dynamic_flag_spec_CXX='${wl}-E'
12949 hardcode_direct_CXX=yes
12950 hardcode_minus_L_CXX=yes # Not in the search PATH,
12951 # but as the default
12952 # location of the library.
12954 case $cc_basename in
12956 # FIXME: insert proper C++ library support
12960 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'
12961 # Commands to make compiler produce verbose output that lists
12962 # what "hidden" libraries, object files and flags are used when
12963 # linking a shared library.
12965 # There doesn't appear to be a way to prevent this compiler from
12966 # explicitly linking system object files so we need to strip them
12967 # from the output so that they don't get included in the library
12969 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12972 if test "$GXX" = yes; then
12973 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'
12975 # FIXME: insert proper C++ library support
12982 if test $with_gnu_ld = no; then
12983 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12984 hardcode_libdir_separator_CXX=:
12989 export_dynamic_flag_spec_CXX='${wl}-E'
12995 hardcode_direct_CXX=no
12996 hardcode_shlibpath_var_CXX=no
12999 hardcode_direct_CXX=yes
13000 hardcode_minus_L_CXX=yes # Not in the search PATH,
13001 # but as the default
13002 # location of the library.
13006 case $cc_basename in
13008 # FIXME: insert proper C++ library support
13014 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13020 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13023 # Commands to make compiler produce verbose output that lists
13024 # what "hidden" libraries, object files and flags are used when
13025 # linking a shared library.
13027 # There doesn't appear to be a way to prevent this compiler from
13028 # explicitly linking system object files so we need to strip them
13029 # from the output so that they don't get included in the library
13031 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13034 if test "$GXX" = yes; then
13035 if test $with_gnu_ld = no; then
13038 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13041 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13044 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'
13049 # FIXME: insert proper C++ library support
13056 hardcode_direct_CXX=no
13057 hardcode_shlibpath_var_CXX=no
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13059 export_dynamic_flag_spec_CXX='${wl}-E'
13060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13061 # Instead, shared libraries are loaded at an image base (0x10000000 by
13062 # default) and relocated if they conflict, which is a slow very memory
13063 # consuming and fragmenting process. To avoid this, we pick a random,
13064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13066 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'
13067 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'
13070 case $cc_basename in
13073 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13075 # Archives containing C++ object files must be created using
13076 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13077 # necessary to make sure instantiated templates are included
13079 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13082 if test "$GXX" = yes; then
13083 if test "$with_gnu_ld" = no; then
13084 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13086 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13089 link_all_deplibs_CXX=yes
13092 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13093 hardcode_libdir_separator_CXX=:
13095 linux* | k*bsd*-gnu)
13096 case $cc_basename in
13098 # Kuck and Associates, Inc. (KAI) C++ Compiler
13100 # KCC will only create a shared library if the output file
13101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13102 # to its proper name (with version) after linking.
13103 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'
13104 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'
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13109 # There doesn't appear to be a way to prevent this compiler from
13110 # explicitly linking system object files so we need to strip them
13111 # from the output so that they don't get included in the library
13113 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13115 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13116 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13118 # Archives containing C++ object files must be created using
13119 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13120 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13125 # version 8.0 and above of icpc choke on multiply defined symbols
13126 # if we add $predep_objects and $postdep_objects, however 7.1 and
13127 # earlier do not add the objects themselves.
13128 case `$CC -V 2>&1` in
13130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13131 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'
13133 *) # Version 8.0 or newer
13136 ia64*) tmp_idyn=' -i_dynamic';;
13138 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139 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'
13142 archive_cmds_need_lc_CXX=no
13143 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13144 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13145 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13148 # Portland Group C++ compiler
13149 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13150 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'
13152 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13154 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'
13158 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159 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'
13161 runpath_var=LD_RUN_PATH
13162 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13163 hardcode_libdir_separator_CXX=:
13165 # Commands to make compiler produce verbose output that lists
13166 # what "hidden" libraries, object files and flags are used when
13167 # linking a shared library.
13169 # There doesn't appear to be a way to prevent this compiler from
13170 # explicitly linking system object files so we need to strip them
13171 # from the output so that they don't get included in the library
13173 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13176 case `$CC -V 2>&1 | sed 5q` in
13179 no_undefined_flag_CXX=' -zdefs'
13180 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181 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'
13182 hardcode_libdir_flag_spec_CXX='-R$libdir'
13183 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'
13185 # Not sure whether something based on
13186 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13188 output_verbose_link_cmd='echo'
13190 # Archives containing C++ object files must be created using
13191 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13192 # necessary to make sure instantiated templates are included
13194 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13201 # FIXME: insert proper C++ library support
13205 # FIXME: insert proper C++ library support
13209 case $cc_basename in
13211 # FIXME: insert proper C++ library support
13215 # FIXME: insert proper C++ library support
13221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13222 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13224 hardcode_libdir_flag_spec_CXX='-R$libdir'
13225 hardcode_direct_CXX=yes
13226 hardcode_shlibpath_var_CXX=no
13228 # Workaround some broken pre-1.5 toolchains
13229 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13232 # C++ shared libraries are fairly broken
13236 if test -f /usr/libexec/ld.so; then
13237 hardcode_direct_CXX=yes
13238 hardcode_shlibpath_var_CXX=no
13239 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13242 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13243 export_dynamic_flag_spec_CXX='${wl}-E'
13244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13246 output_verbose_link_cmd='echo'
13252 case $cc_basename in
13254 # Kuck and Associates, Inc. (KAI) C++ Compiler
13256 # KCC will only create a shared library if the output file
13257 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13258 # to its proper name (with version) after linking.
13259 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'
13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13262 hardcode_libdir_separator_CXX=:
13264 # Archives containing C++ object files must be created using
13265 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13266 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13270 # Rational C++ 2.4.1
13271 # FIXME: insert proper C++ library support
13275 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13276 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279 hardcode_libdir_separator_CXX=:
13281 # Commands to make compiler produce verbose output that lists
13282 # what "hidden" libraries, object files and flags are used when
13283 # linking a shared library.
13285 # There doesn't appear to be a way to prevent this compiler from
13286 # explicitly linking system object files so we need to strip them
13287 # from the output so that they don't get included in the library
13289 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13292 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13293 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13294 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13296 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13297 hardcode_libdir_separator_CXX=:
13299 # Commands to make compiler produce verbose output that lists
13300 # what "hidden" libraries, object files and flags are used when
13301 # linking a shared library.
13302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13305 # FIXME: insert proper C++ library support
13312 case $cc_basename in
13314 # Kuck and Associates, Inc. (KAI) C++ Compiler
13316 # KCC will only create a shared library if the output file
13317 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13318 # to its proper name (with version) after linking.
13319 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'
13321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13322 hardcode_libdir_separator_CXX=:
13324 # Archives containing C++ object files must be created using
13325 # the KAI C++ compiler.
13326 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13329 # Rational C++ 2.4.1
13330 # FIXME: insert proper C++ library support
13334 allow_undefined_flag_CXX=' -expect_unresolved \*'
13335 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13336 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13337 echo "-hidden">> $lib.exp~
13338 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13341 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13342 hardcode_libdir_separator_CXX=:
13344 # Commands to make compiler produce verbose output that lists
13345 # what "hidden" libraries, object files and flags are used when
13346 # linking a shared library.
13348 # There doesn't appear to be a way to prevent this compiler from
13349 # explicitly linking system object files so we need to strip them
13350 # from the output so that they don't get included in the library
13352 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13355 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13356 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13357 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13360 hardcode_libdir_separator_CXX=:
13362 # Commands to make compiler produce verbose output that lists
13363 # what "hidden" libraries, object files and flags are used when
13364 # linking a shared library.
13365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13368 # FIXME: insert proper C++ library support
13375 # FIXME: insert proper C++ library support
13379 case $cc_basename in
13382 # FIXME: insert proper C++ library support
13387 # FIXME: insert proper C++ library support
13391 # FIXME: insert proper C++ library support
13397 case $cc_basename in
13399 # Sun C++ 4.2, 5.x and Centerline C++
13400 archive_cmds_need_lc_CXX=yes
13401 no_undefined_flag_CXX=' -zdefs'
13402 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13403 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13404 $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'
13406 hardcode_libdir_flag_spec_CXX='-R$libdir'
13407 hardcode_shlibpath_var_CXX=no
13409 solaris2.[0-5] | solaris2.[0-5].*) ;;
13411 # The compiler driver will combine and reorder linker options,
13412 # but understands `-z linker_flag'.
13413 # Supported since Solaris 2.6 (maybe 2.5.1?)
13414 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13417 link_all_deplibs_CXX=yes
13419 output_verbose_link_cmd='echo'
13421 # Archives containing C++ object files must be created using
13422 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13423 # necessary to make sure instantiated templates are included
13425 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13428 # Green Hills C++ Compiler
13429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13431 # The C++ compiler must be used to create the archive.
13432 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13435 # GNU C++ compiler with Solaris linker
13436 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13437 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13438 if $CC --version | grep -v '^2\.7' > /dev/null; then
13439 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13440 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13441 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13443 # Commands to make compiler produce verbose output that lists
13444 # what "hidden" libraries, object files and flags are used when
13445 # linking a shared library.
13446 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13448 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13450 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13451 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13452 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13454 # Commands to make compiler produce verbose output that lists
13455 # what "hidden" libraries, object files and flags are used when
13456 # linking a shared library.
13457 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13460 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13462 solaris2.[0-5] | solaris2.[0-5].*) ;;
13464 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13472 no_undefined_flag_CXX='${wl}-z,text'
13473 archive_cmds_need_lc_CXX=no
13474 hardcode_shlibpath_var_CXX=no
13475 runpath_var='LD_RUN_PATH'
13477 case $cc_basename in
13479 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 sysv5* | sco3.2v5* | sco5v6*)
13489 # Note: We can NOT use -z defs as we might desire, because we do not
13490 # link with -lc, and that would cause any symbols used from libc to
13491 # always be unresolved, which means just about no library would
13492 # ever link correctly. If we're not using GNU ld we use -z text
13493 # though, which does catch some bad symbols but isn't as heavy-handed
13495 # For security reasons, it is highly recommended that you always
13496 # use absolute paths for naming shared libraries, and exclude the
13497 # DT_RUNPATH tag from executables and libraries. But doing so
13498 # requires that you compile everything twice, which is a pain.
13499 # So that behaviour is only enabled if SCOABSPATH is set to a
13500 # non-empty value in the environment. Most likely only useful for
13501 # creating official distributions of packages.
13502 # This is a hack until libtool officially supports absolute path
13503 # names for shared libraries.
13504 no_undefined_flag_CXX='${wl}-z,text'
13505 allow_undefined_flag_CXX='${wl}-z,nodefs'
13506 archive_cmds_need_lc_CXX=no
13507 hardcode_shlibpath_var_CXX=no
13508 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13509 hardcode_libdir_separator_CXX=':'
13510 link_all_deplibs_CXX=yes
13511 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13512 runpath_var='LD_RUN_PATH'
13514 case $cc_basename in
13516 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13526 case $cc_basename in
13528 # NonStop-UX NCC 3.20
13529 # FIXME: insert proper C++ library support
13533 # FIXME: insert proper C++ library support
13539 # FIXME: insert proper C++ library support
13543 # FIXME: insert proper C++ library support
13547 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13548 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13549 test "$ld_shlibs_CXX" = no && can_build_shared=no
13555 cat > conftest.$ac_ext <<EOF
13559 Foo (void) { a = 0; }
13565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566 (eval $ac_compile) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; then
13570 # Parse the compiler output and extract the necessary
13571 # objects, libraries and library flags.
13573 # Sentinel used to keep track of whether or not we are before
13574 # the conftest object file.
13575 pre_test_object_deps_done=no
13577 # The `*' in the case matches for architectures that use `case' in
13578 # $output_verbose_cmd can trigger glob expansion during the loop
13579 # eval without this substitution.
13580 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13582 for p in `eval $output_verbose_link_cmd`; do
13586 # Some compilers place space between "-{L,R}" and the path.
13587 # Remove the space.
13588 if test $p = "-L" \
13589 || test $p = "-R"; then
13596 if test "$pre_test_object_deps_done" = no; then
13599 # Internal compiler library paths should come after those
13600 # provided the user. The postdeps already come after the
13601 # user supplied libs so there is no need to process them.
13602 if test -z "$compiler_lib_search_path_CXX"; then
13603 compiler_lib_search_path_CXX="${prev}${p}"
13605 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13608 # The "-l" case would never come before the object being
13609 # linked, so don't bother handling this case.
13612 if test -z "$postdeps_CXX"; then
13613 postdeps_CXX="${prev}${p}"
13615 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13621 # This assumes that the test object file only shows up
13622 # once in the compiler output.
13623 if test "$p" = "conftest.$objext"; then
13624 pre_test_object_deps_done=yes
13628 if test "$pre_test_object_deps_done" = no; then
13629 if test -z "$predep_objects_CXX"; then
13630 predep_objects_CXX="$p"
13632 predep_objects_CXX="$predep_objects_CXX $p"
13635 if test -z "$postdep_objects_CXX"; then
13636 postdep_objects_CXX="$p"
13638 postdep_objects_CXX="$postdep_objects_CXX $p"
13643 *) ;; # Ignore the rest.
13651 echo "libtool.m4: error: problem compiling CXX test program"
13654 $rm -f confest.$objext
13656 # PORTME: override above test on systems where it is broken
13659 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13660 # hack all around it, let's just trust "g++" to DTRT.
13661 predep_objects_CXX=
13662 postdep_objects_CXX=
13667 case `$CC -V 2>&1 | sed 5q` in
13671 # The more standards-conforming stlport4 library is
13672 # incompatible with the Cstd library. Avoid specifying
13673 # it if it's in CXXFLAGS. Ignore libCrun as
13674 # -library=stlport4 depends on it.
13675 case " $CXX $CXXFLAGS " in
13676 *" -library=stlport4 "*)
13677 solaris_use_stlport4=yes
13680 if test "$solaris_use_stlport4" != yes; then
13681 postdeps_CXX='-library=Cstd -library=Crun'
13688 case $cc_basename in
13690 # The more standards-conforming stlport4 library is
13691 # incompatible with the Cstd library. Avoid specifying
13692 # it if it's in CXXFLAGS. Ignore libCrun as
13693 # -library=stlport4 depends on it.
13694 case " $CXX $CXXFLAGS " in
13695 *" -library=stlport4 "*)
13696 solaris_use_stlport4=yes
13700 # Adding this requires a known-good setup of shared libraries for
13701 # Sun compiler versions before 5.6, else PIC objects from an old
13702 # archive will be linked into the output, leading to subtle bugs.
13703 if test "$solaris_use_stlport4" != yes; then
13704 postdeps_CXX='-library=Cstd -library=Crun'
13712 case " $postdeps_CXX " in
13713 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13716 lt_prog_compiler_wl_CXX=
13717 lt_prog_compiler_pic_CXX=
13718 lt_prog_compiler_static_CXX=
13720 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13721 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13723 # C++ specific cases for pic, static, wl, etc.
13724 if test "$GXX" = yes; then
13725 lt_prog_compiler_wl_CXX='-Wl,'
13726 lt_prog_compiler_static_CXX='-static'
13730 # All AIX code is PIC.
13731 if test "$host_cpu" = ia64; then
13732 # AIX 5 now supports IA64 processor
13733 lt_prog_compiler_static_CXX='-Bstatic'
13737 # FIXME: we need at least 68020 code to build shared libraries, but
13738 # adding the `-m68020' flag to GCC prevents building anything better,
13740 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13742 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13743 # PIC is the default for these OSes.
13745 mingw* | cygwin* | os2* | pw32*)
13746 # This hack is so that the source file can tell whether it is being
13747 # built for inclusion in a dll (and should export symbols for example).
13748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13749 # (--disable-auto-import) libraries
13750 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13752 darwin* | rhapsody*)
13753 # PIC is the default on this platform
13754 # Common symbols not allowed in MH_DYLIB files
13755 lt_prog_compiler_pic_CXX='-fno-common'
13758 # DJGPP does not support shared libraries at all
13759 lt_prog_compiler_pic_CXX=
13762 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13763 # Instead, we relocate shared libraries at runtime.
13766 if test -d /usr/nec; then
13767 lt_prog_compiler_pic_CXX=-Kconform_pic
13771 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13772 # not for PA HP-UX.
13777 lt_prog_compiler_pic_CXX='-fPIC'
13782 lt_prog_compiler_pic_CXX='-fPIC'
13788 # All AIX code is PIC.
13789 if test "$host_cpu" = ia64; then
13790 # AIX 5 now supports IA64 processor
13791 lt_prog_compiler_static_CXX='-Bstatic'
13793 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13797 case $cc_basename in
13799 # Green Hills C++ Compiler
13800 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13805 # PIC is the default on this platform
13806 # Common symbols not allowed in MH_DYLIB files
13807 case $cc_basename in
13809 lt_prog_compiler_pic_CXX='-qnocommon'
13810 lt_prog_compiler_wl_CXX='-Wl,'
13815 case $cc_basename in
13817 lt_prog_compiler_pic_CXX='-KPIC'
13820 # Green Hills C++ Compiler
13821 lt_prog_compiler_pic_CXX='-pic'
13827 freebsd* | dragonfly*)
13828 # FreeBSD uses GNU C++
13830 hpux9* | hpux10* | hpux11*)
13831 case $cc_basename in
13833 lt_prog_compiler_wl_CXX='-Wl,'
13834 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13835 if test "$host_cpu" != ia64; then
13836 lt_prog_compiler_pic_CXX='+Z'
13840 lt_prog_compiler_wl_CXX='-Wl,'
13841 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13847 lt_prog_compiler_pic_CXX='+Z'
13856 # This is c89, which is MS Visual C++ (no shared libs)
13857 # Anyone wants to do a port?
13859 irix5* | irix6* | nonstopux*)
13860 case $cc_basename in
13862 lt_prog_compiler_wl_CXX='-Wl,'
13863 lt_prog_compiler_static_CXX='-non_shared'
13864 # CC pic flag -KPIC is the default.
13870 linux* | k*bsd*-gnu)
13871 case $cc_basename in
13874 lt_prog_compiler_wl_CXX='--backend -Wl,'
13875 lt_prog_compiler_pic_CXX='-fPIC'
13879 lt_prog_compiler_wl_CXX='-Wl,'
13880 lt_prog_compiler_pic_CXX='-KPIC'
13881 lt_prog_compiler_static_CXX='-static'
13884 # Portland Group C++ compiler.
13885 lt_prog_compiler_wl_CXX='-Wl,'
13886 lt_prog_compiler_pic_CXX='-fpic'
13887 lt_prog_compiler_static_CXX='-Bstatic'
13891 # Make sure the PIC flag is empty. It appears that all Alpha
13892 # Linux and Compaq Tru64 Unix objects are PIC.
13893 lt_prog_compiler_pic_CXX=
13894 lt_prog_compiler_static_CXX='-non_shared'
13897 case `$CC -V 2>&1 | sed 5q` in
13900 lt_prog_compiler_pic_CXX='-KPIC'
13901 lt_prog_compiler_static_CXX='-Bstatic'
13902 lt_prog_compiler_wl_CXX='-Qoption ld '
13913 case $cc_basename in
13915 lt_prog_compiler_pic_CXX='-W c,exportall'
13923 osf3* | osf4* | osf5*)
13924 case $cc_basename in
13926 lt_prog_compiler_wl_CXX='--backend -Wl,'
13929 # Rational C++ 2.4.1
13930 lt_prog_compiler_pic_CXX='-pic'
13933 # Digital/Compaq C++
13934 lt_prog_compiler_wl_CXX='-Wl,'
13935 # Make sure the PIC flag is empty. It appears that all Alpha
13936 # Linux and Compaq Tru64 Unix objects are PIC.
13937 lt_prog_compiler_pic_CXX=
13938 lt_prog_compiler_static_CXX='-non_shared'
13947 case $cc_basename in
13949 # Sun C++ 4.2, 5.x and Centerline C++
13950 lt_prog_compiler_pic_CXX='-KPIC'
13951 lt_prog_compiler_static_CXX='-Bstatic'
13952 lt_prog_compiler_wl_CXX='-Qoption ld '
13955 # Green Hills C++ Compiler
13956 lt_prog_compiler_pic_CXX='-PIC'
13963 case $cc_basename in
13966 lt_prog_compiler_pic_CXX='-pic'
13967 lt_prog_compiler_static_CXX='-Bstatic'
13971 lt_prog_compiler_pic_CXX='-pic'
13978 case $cc_basename in
13980 # NonStop-UX NCC 3.20
13981 lt_prog_compiler_pic_CXX='-KPIC'
13987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13988 case $cc_basename in
13990 lt_prog_compiler_wl_CXX='-Wl,'
13991 lt_prog_compiler_pic_CXX='-KPIC'
13992 lt_prog_compiler_static_CXX='-Bstatic'
13999 lt_prog_compiler_can_build_shared_CXX=no
14004 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14005 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14008 # Check to make sure the PIC flag actually works.
14010 if test -n "$lt_prog_compiler_pic_CXX"; then
14012 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14013 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14014 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 lt_prog_compiler_pic_works_CXX=no
14018 ac_outfile=conftest.$ac_objext
14019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14020 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14021 # Insert the option either (1) after the last *FLAGS variable, or
14022 # (2) before a word containing "conftest.", or (3) at the end.
14023 # Note that $ac_compile itself does not contain backslashes and begins
14024 # with a dollar sign (not a hyphen), so the echo should work correctly.
14025 # The option is referenced via a variable to avoid confusing sed.
14026 lt_compile=`echo "$ac_compile" | $SED \
14027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14029 -e 's:$: $lt_compiler_flag:'`
14030 (eval echo "\"\$as_me:14030: $lt_compile\"" >&5)
14031 (eval "$lt_compile" 2>conftest.err)
14033 cat conftest.err >&5
14034 echo "$as_me:14034: \$? = $ac_status" >&5
14035 if (exit $ac_status) && test -s "$ac_outfile"; then
14036 # The compiler can only warn and ignore the option if not recognized
14037 # So say no if there are warnings other than the usual output.
14038 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14041 lt_prog_compiler_pic_works_CXX=yes
14047 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14048 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14050 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14051 case $lt_prog_compiler_pic_CXX in
14053 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14056 lt_prog_compiler_pic_CXX=
14057 lt_prog_compiler_can_build_shared_CXX=no
14062 # For platforms which do not support PIC, -DPIC is meaningless:
14064 lt_prog_compiler_pic_CXX=
14067 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14072 # Check to make sure the static flag actually works.
14074 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14075 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14076 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14077 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 lt_prog_compiler_static_works_CXX=no
14081 save_LDFLAGS="$LDFLAGS"
14082 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14083 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14084 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14085 # The linker can only warn and ignore the option if not recognized
14086 # So say no if there are warnings
14087 if test -s conftest.err; then
14088 # Append any errors to the config.log.
14089 cat conftest.err 1>&5
14090 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14092 if diff conftest.exp conftest.er2 >/dev/null; then
14093 lt_prog_compiler_static_works_CXX=yes
14096 lt_prog_compiler_static_works_CXX=yes
14100 LDFLAGS="$save_LDFLAGS"
14103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14104 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14106 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14109 lt_prog_compiler_static_CXX=
14113 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14114 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14115 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 lt_cv_prog_compiler_c_o_CXX=no
14119 $rm -r conftest 2>/dev/null
14123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14125 lt_compiler_flag="-o out/conftest2.$ac_objext"
14126 # Insert the option either (1) after the last *FLAGS variable, or
14127 # (2) before a word containing "conftest.", or (3) at the end.
14128 # Note that $ac_compile itself does not contain backslashes and begins
14129 # with a dollar sign (not a hyphen), so the echo should work correctly.
14130 lt_compile=`echo "$ac_compile" | $SED \
14131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14133 -e 's:$: $lt_compiler_flag:'`
14134 (eval echo "\"\$as_me:14134: $lt_compile\"" >&5)
14135 (eval "$lt_compile" 2>out/conftest.err)
14137 cat out/conftest.err >&5
14138 echo "$as_me:14138: \$? = $ac_status" >&5
14139 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14141 # The compiler can only warn and ignore the option if not recognized
14142 # So say no if there are warnings
14143 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14144 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14145 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14146 lt_cv_prog_compiler_c_o_CXX=yes
14151 # SGI C++ compiler will create directory out/ii_files/ for
14152 # template instantiation
14153 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14154 $rm out/* && rmdir out
14160 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14161 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14164 hard_links="nottested"
14165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14166 # do not overwrite the value of need_locks provided by the user
14167 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14173 ln conftest.a conftest.b 2>&5 || hard_links=no
14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 { echo "$as_me:$LINENO: result: $hard_links" >&5
14176 echo "${ECHO_T}$hard_links" >&6; }
14177 if test "$hard_links" = no; then
14178 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14186 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14187 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14189 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192 # If we're using GNU nm, then we don't want the "-C" option.
14193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14194 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14195 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'
14197 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'
14201 export_symbols_cmds_CXX="$ltdll_cmds"
14204 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'
14207 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14211 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14212 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14213 test "$ld_shlibs_CXX" = no && can_build_shared=no
14216 # Do we need to explicitly link libc?
14218 case "x$archive_cmds_need_lc_CXX" in
14220 # Assume -lc should be added
14221 archive_cmds_need_lc_CXX=yes
14223 if test "$enable_shared" = yes && test "$GCC" = yes; then
14224 case $archive_cmds_CXX in
14226 # FIXME: we may have to deal with multi-command sequences.
14229 # Test whether the compiler implicitly links with -lc since on some
14230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14231 # to ld, don't add -lc before -lgcc.
14232 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } 2>conftest.err; then
14244 libobjs=conftest.$ac_objext
14246 wl=$lt_prog_compiler_wl_CXX
14247 pic_flag=$lt_prog_compiler_pic_CXX
14253 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14254 allow_undefined_flag_CXX=
14255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14256 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }
14261 archive_cmds_need_lc_CXX=no
14263 archive_cmds_need_lc_CXX=yes
14265 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14267 cat conftest.err 1>&5
14270 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14271 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14280 library_names_spec=
14281 libname_spec='lib$name'
14285 postuninstall_cmds=
14289 shlibpath_overrides_runpath=unknown
14291 dynamic_linker="$host_os ld.so"
14292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14294 need_lib_prefix=unknown
14295 hardcode_into_libs=no
14297 # when you set need_version to no, make sure it does not cause -set_version
14298 # flags to be left without arguments
14299 need_version=unknown
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14305 shlibpath_var=LIBPATH
14307 # AIX 3 has no versioning support, so we append a major version to the name.
14308 soname_spec='${libname}${release}${shared_ext}$major'
14315 hardcode_into_libs=yes
14316 if test "$host_cpu" = ia64; then
14317 # AIX 5 supports IA64
14318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14319 shlibpath_var=LD_LIBRARY_PATH
14321 # With GCC up to 2.95.x, collect2 would create an import file
14322 # for dependence libraries. The import file would start with
14323 # the line `#! .'. This would cause the generated library to
14324 # depend on `.', always an invalid library. This was fixed in
14325 # development snapshots of GCC prior to 3.0.
14327 aix4 | aix4.[01] | aix4.[01].*)
14328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14330 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14333 can_build_shared=no
14337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14338 # soname into executable. Probably we can add versioning support to
14339 # collect2, so additional links can be useful in future.
14340 if test "$aix_use_runtimelinking" = yes; then
14341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14342 # instead of lib<name>.a to let people know that these are not
14343 # typical AIX shared libraries.
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346 # We preserve .a as extension for shared libraries through AIX4.2
14347 # and later when we are not doing run time linking.
14348 library_names_spec='${libname}${release}.a $libname.a'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14351 shlibpath_var=LIBPATH
14356 library_names_spec='$libname.ixlibrary $libname.a'
14357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14358 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'
14362 library_names_spec='${libname}${shared_ext}'
14363 dynamic_linker="$host_os ld.so"
14364 shlibpath_var=LIBRARY_PATH
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371 soname_spec='${libname}${release}${shared_ext}$major'
14372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14376 # the default ld.so.conf also contains /usr/contrib/lib and
14377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14378 # libtool to hard-code these into programs
14381 cygwin* | mingw* | pw32*)
14382 version_type=windows
14387 case $GCC,$host_os in
14388 yes,cygwin* | yes,mingw* | yes,pw32*)
14389 library_names_spec='$libname.dll.a'
14390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14391 postinstall_cmds='base_file=`basename \${file}`~
14392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14393 dldir=$destdir/`dirname \$dlpath`~
14394 test -d \$dldir || mkdir -p \$dldir~
14395 $install_prog $dir/$dlname \$dldir/$dlname~
14396 chmod a+x \$dldir/$dlname'
14397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14398 dlpath=$dir/\$dldll~
14400 shlibpath_overrides_runpath=yes
14404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14406 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14409 # MinGW DLLs use traditional 'lib' prefix
14410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14412 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14413 # It is most probably a Windows format PATH printed by
14414 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14415 # path with ; separators, and with drive letters. We can handle the
14416 # drive letters (cygwin fileutils understands them), so leave them,
14417 # especially as we might pass files found there to a mingw objdump,
14418 # which wouldn't understand a cygwinified path. Ahh.
14419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14425 # pw32 DLLs use 'pw' prefix rather than 'lib'
14426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14435 dynamic_linker='Win32 ld.exe'
14436 # FIXME: first we should search . and the directory the executable is in
14440 darwin* | rhapsody*)
14441 dynamic_linker="$host_os dyld"
14442 version_type=darwin
14445 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14446 soname_spec='${libname}${release}${major}$shared_ext'
14447 shlibpath_overrides_runpath=yes
14448 shlibpath_var=DYLD_LIBRARY_PATH
14449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 shlibpath_var=LD_LIBRARY_PATH
14467 freebsd* | dragonfly*)
14468 # DragonFly does not have aout. When/if they implement a new
14469 # versioning mechanism, adjust this.
14470 if test -x /usr/bin/objformat; then
14471 objformat=`/usr/bin/objformat`
14474 freebsd[123]*) objformat=aout ;;
14475 *) objformat=elf ;;
14478 version_type=freebsd-$objformat
14479 case $version_type in
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14490 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=yes
14495 freebsd3.[01]* | freebsdelf3.[01]*)
14496 shlibpath_overrides_runpath=yes
14497 hardcode_into_libs=yes
14499 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14500 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14501 shlibpath_overrides_runpath=no
14502 hardcode_into_libs=yes
14504 *) # from 4.6 on, and DragonFly
14505 shlibpath_overrides_runpath=yes
14506 hardcode_into_libs=yes
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 hardcode_into_libs=yes
14521 hpux9* | hpux10* | hpux11*)
14522 # Give a soname corresponding to the major version so that dld.sl refuses to
14523 # link against other versions.
14530 hardcode_into_libs=yes
14531 dynamic_linker="$host_os dld.so"
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 if test "X$HPUX_IA64_MODE" = X32; then
14537 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14539 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14545 hardcode_into_libs=yes
14546 dynamic_linker="$host_os dld.sl"
14547 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14556 dynamic_linker="$host_os dld.sl"
14557 shlibpath_var=SHLIB_PATH
14558 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14563 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14564 postinstall_cmds='chmod 555 $lib'
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=no
14576 hardcode_into_libs=yes
14579 irix5* | irix6* | nonstopux*)
14581 nonstopux*) version_type=nonstopux ;;
14583 if test "$lt_cv_prog_gnu_ld" = yes; then
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14594 irix5* | nonstopux*)
14595 libsuff= shlibsuff=
14598 case $LD in # libtool.m4 will add one of these switches to LD
14599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14600 libsuff= shlibsuff= libmagic=32-bit;;
14601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14602 libsuff=32 shlibsuff=N32 libmagic=N32;;
14603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14605 *) libsuff= shlibsuff= libmagic=never-match;;
14609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14610 shlibpath_overrides_runpath=no
14611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14613 hardcode_into_libs=yes
14616 # No shared lib support for Linux oldld, aout, or coff.
14617 linux*oldld* | linux*aout* | linux*coff*)
14621 # This must be Linux ELF.
14622 linux* | k*bsd*-gnu)
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=no
14631 # This implies no fast_install, which is unacceptable.
14632 # Some rework will be needed to allow for fast_install
14633 # before this can be enabled.
14634 hardcode_into_libs=yes
14635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14638 # Append ld.so.conf contents to the search path
14639 if test -f /etc/ld.so.conf; then
14640 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' ' '`
14641 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14644 # We used to test for /lib/ld.so.1 and disable shared libraries on
14645 # powerpc, because MkLinux only supported shared libraries with the
14646 # GNU dynamic linker. Since this was broken with cross compilers,
14647 # most powerpc-linux boxes support dynamic linking these days and
14648 # people can always --disable-shared, the test was removed, and we
14649 # assume the GNU/Linux dynamic linker is in use.
14650 dynamic_linker='GNU/Linux ld.so'
14657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14660 dynamic_linker='NetBSD (a.out) ld.so'
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 dynamic_linker='NetBSD ld.elf_so'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes
14668 hardcode_into_libs=yes
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=yes
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 shlibpath_overrides_runpath=yes
14690 sys_lib_dlsearch_path_spec="/usr/lib"
14692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14695 *) need_version=no ;;
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14702 openbsd2.[89] | openbsd2.[89].*)
14703 shlibpath_overrides_runpath=no
14706 shlibpath_overrides_runpath=yes
14710 shlibpath_overrides_runpath=yes
14715 libname_spec='$name'
14718 library_names_spec='$libname${shared_ext} $libname.a'
14719 dynamic_linker='OS/2 ld.exe'
14720 shlibpath_var=LIBPATH
14723 osf3* | osf4* | osf5*)
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 shlibpath_overrides_runpath=yes
14746 hardcode_into_libs=yes
14747 # ldd complains unless libraries are executable
14748 postinstall_cmds='chmod +x $lib'
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14757 if test "$with_gnu_ld" = yes; then
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 case $host_vendor in
14770 shlibpath_overrides_runpath=no
14772 export_dynamic_flag_spec='${wl}-Blargedynsym'
14773 runpath_var=LD_RUN_PATH
14781 shlibpath_overrides_runpath=no
14782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14788 if test -d /usr/nec ;then
14790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14791 soname_spec='$libname${shared_ext}.$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14797 version_type=freebsd-elf
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 hardcode_into_libs=yes
14804 if test "$with_gnu_ld" = yes; then
14805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14806 shlibpath_overrides_runpath=no
14808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14809 shlibpath_overrides_runpath=yes
14812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14816 sys_lib_dlsearch_path_spec='/usr/lib'
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 shlibpath_var=LD_LIBRARY_PATH
14830 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14831 echo "${ECHO_T}$dynamic_linker" >&6; }
14832 test "$dynamic_linker" = no && can_build_shared=no
14834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14835 if test "$GCC" = yes; then
14836 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14839 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14840 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14841 hardcode_action_CXX=
14842 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14843 test -n "$runpath_var_CXX" || \
14844 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14846 # We can hardcode non-existant directories.
14847 if test "$hardcode_direct_CXX" != no &&
14848 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14849 # have to relink, otherwise we might link with an installed library
14850 # when we should be linking with a yet-to-be-installed one
14851 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14852 test "$hardcode_minus_L_CXX" != no; then
14853 # Linking always hardcodes the temporary library directory.
14854 hardcode_action_CXX=relink
14856 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14857 hardcode_action_CXX=immediate
14860 # We cannot hardcode anything, or else we can only hardcode existing
14862 hardcode_action_CXX=unsupported
14864 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14865 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14867 if test "$hardcode_action_CXX" = relink; then
14868 # Fast installation is not supported
14869 enable_fast_install=no
14870 elif test "$shlibpath_overrides_runpath" = yes ||
14871 test "$enable_shared" = no; then
14872 # Fast installation is not necessary
14873 enable_fast_install=needless
14877 # The else clause should only fire when bootstrapping the
14878 # libtool distribution, otherwise you forgot to ship ltmain.sh
14879 # with your package, and you will get complaints that there are
14880 # no rules to generate ltmain.sh.
14881 if test -f "$ltmain"; then
14882 # See if we are running on zsh, and set the options which allow our commands through
14883 # without removal of \ escapes.
14884 if test -n "${ZSH_VERSION+set}" ; then
14885 setopt NO_GLOB_SUBST
14887 # Now quote all the things that may contain metacharacters while being
14888 # careful not to overquote the AC_SUBSTed values. We take copies of the
14889 # variables and quote the copies for generation of the libtool script.
14890 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14892 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14893 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14894 deplibs_check_method reload_flag reload_cmds need_locks \
14895 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14896 lt_cv_sys_global_symbol_to_c_name_address \
14897 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14898 old_postinstall_cmds old_postuninstall_cmds \
14902 lt_prog_compiler_wl_CXX \
14903 lt_prog_compiler_pic_CXX \
14904 lt_prog_compiler_static_CXX \
14905 lt_prog_compiler_no_builtin_flag_CXX \
14906 export_dynamic_flag_spec_CXX \
14907 thread_safe_flag_spec_CXX \
14908 whole_archive_flag_spec_CXX \
14909 enable_shared_with_static_runtimes_CXX \
14910 old_archive_cmds_CXX \
14911 old_archive_from_new_cmds_CXX \
14912 predep_objects_CXX \
14913 postdep_objects_CXX \
14916 compiler_lib_search_path_CXX \
14918 archive_expsym_cmds_CXX \
14919 postinstall_cmds_CXX \
14920 postuninstall_cmds_CXX \
14921 old_archive_from_expsyms_cmds_CXX \
14922 allow_undefined_flag_CXX \
14923 no_undefined_flag_CXX \
14924 export_symbols_cmds_CXX \
14925 hardcode_libdir_flag_spec_CXX \
14926 hardcode_libdir_flag_spec_ld_CXX \
14927 hardcode_libdir_separator_CXX \
14928 hardcode_automatic_CXX \
14930 module_expsym_cmds_CXX \
14931 lt_cv_prog_compiler_c_o_CXX \
14932 fix_srcfile_path_CXX \
14933 exclude_expsyms_CXX \
14934 include_expsyms_CXX; do
14937 old_archive_cmds_CXX | \
14938 old_archive_from_new_cmds_CXX | \
14939 archive_cmds_CXX | \
14940 archive_expsym_cmds_CXX | \
14941 module_cmds_CXX | \
14942 module_expsym_cmds_CXX | \
14943 old_archive_from_expsyms_cmds_CXX | \
14944 export_symbols_cmds_CXX | \
14945 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14946 postinstall_cmds | postuninstall_cmds | \
14947 old_postinstall_cmds | old_postuninstall_cmds | \
14948 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14949 # Double-quote double-evaled strings.
14950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14959 *'\$0 --fallback-echo"')
14960 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14966 cat <<__EOF__ >> "$cfgfile"
14967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14971 # Shell to use when invoking shell scripts.
14974 # Whether or not to build shared libraries.
14975 build_libtool_libs=$enable_shared
14977 # Whether or not to build static libraries.
14978 build_old_libs=$enable_static
14980 # Whether or not to add -lc for building shared libraries.
14981 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14983 # Whether or not to disallow shared libs when runtime libs are static
14984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14986 # Whether or not to optimize for fast installation.
14987 fast_install=$enable_fast_install
14990 host_alias=$host_alias
14994 # The build system.
14995 build_alias=$build_alias
14999 # An echo program that does not interpret backslashes.
15004 AR_FLAGS=$lt_AR_FLAGS
15009 # LTCC compiler flags.
15010 LTCFLAGS=$lt_LTCFLAGS
15012 # A language-specific compiler.
15013 CC=$lt_compiler_CXX
15015 # Is the compiler the GNU C compiler?
15021 # The linker used to build libraries.
15024 # Whether we need hard or soft links.
15027 # A BSD-compatible nm program.
15030 # A symbol stripping program
15033 # Used to examine libraries when file_magic_cmd begins "file"
15034 MAGIC_CMD=$MAGIC_CMD
15036 # Used on cygwin: DLL creation program.
15039 # Used on cygwin: object dumper.
15042 # Used on cygwin: assembler.
15045 # The name of the directory that contains temporary libtool files.
15048 # How to create reloadable object files.
15049 reload_flag=$lt_reload_flag
15050 reload_cmds=$lt_reload_cmds
15052 # How to pass a linker flag through the compiler.
15053 wl=$lt_lt_prog_compiler_wl_CXX
15055 # Object file suffix (normally "o").
15056 objext="$ac_objext"
15058 # Old archive suffix (normally "a").
15061 # Shared library suffix (normally ".so").
15062 shrext_cmds='$shrext_cmds'
15064 # Executable file suffix (normally "").
15067 # Additional compiler flags for building library objects.
15068 pic_flag=$lt_lt_prog_compiler_pic_CXX
15071 # What is the maximum length of a command?
15072 max_cmd_len=$lt_cv_sys_max_cmd_len
15074 # Does compiler simultaneously support -c and -o options?
15075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15077 # Must we lock files when doing compilation?
15078 need_locks=$lt_need_locks
15080 # Do we need the lib prefix for modules?
15081 need_lib_prefix=$need_lib_prefix
15083 # Do we need a version for libraries?
15084 need_version=$need_version
15086 # Whether dlopen is supported.
15087 dlopen_support=$enable_dlopen
15089 # Whether dlopen of programs is supported.
15090 dlopen_self=$enable_dlopen_self
15092 # Whether dlopen of statically linked programs is supported.
15093 dlopen_self_static=$enable_dlopen_self_static
15095 # Compiler flag to prevent dynamic linking.
15096 link_static_flag=$lt_lt_prog_compiler_static_CXX
15098 # Compiler flag to turn off builtin functions.
15099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15101 # Compiler flag to allow reflexive dlopens.
15102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15104 # Compiler flag to generate shared objects directly from archives.
15105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15107 # Compiler flag to generate thread-safe objects.
15108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15110 # Library versioning type.
15111 version_type=$version_type
15113 # Format of library name prefix.
15114 libname_spec=$lt_libname_spec
15116 # List of archive names. First name is the real one, the rest are links.
15117 # The last name is the one that the linker finds with -lNAME.
15118 library_names_spec=$lt_library_names_spec
15120 # The coded name of the library, if different from the real name.
15121 soname_spec=$lt_soname_spec
15123 # Commands used to build and install an old-style archive.
15125 old_archive_cmds=$lt_old_archive_cmds_CXX
15126 old_postinstall_cmds=$lt_old_postinstall_cmds
15127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15129 # Create an old-style archive from a shared archive.
15130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15132 # Create a temporary old-style archive to link instead of a shared archive.
15133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15135 # Commands used to build and install a shared archive.
15136 archive_cmds=$lt_archive_cmds_CXX
15137 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15138 postinstall_cmds=$lt_postinstall_cmds
15139 postuninstall_cmds=$lt_postuninstall_cmds
15141 # Commands used to build a loadable module (assumed same as above if empty)
15142 module_cmds=$lt_module_cmds_CXX
15143 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15145 # Commands to strip libraries.
15146 old_striplib=$lt_old_striplib
15147 striplib=$lt_striplib
15149 # Dependencies to place before the objects being linked to create a
15151 predep_objects=$lt_predep_objects_CXX
15153 # Dependencies to place after the objects being linked to create a
15155 postdep_objects=$lt_postdep_objects_CXX
15157 # Dependencies to place before the objects being linked to create a
15159 predeps=$lt_predeps_CXX
15161 # Dependencies to place after the objects being linked to create a
15163 postdeps=$lt_postdeps_CXX
15165 # The library search path used internally by the compiler when linking
15166 # a shared library.
15167 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15169 # Method to check whether dependent libraries are shared objects.
15170 deplibs_check_method=$lt_deplibs_check_method
15172 # Command to use when deplibs_check_method == file_magic.
15173 file_magic_cmd=$lt_file_magic_cmd
15175 # Flag that allows shared libraries with undefined symbols to be built.
15176 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15178 # Flag that forces no undefined symbols.
15179 no_undefined_flag=$lt_no_undefined_flag_CXX
15181 # Commands used to finish a libtool library installation in a directory.
15182 finish_cmds=$lt_finish_cmds
15184 # Same as above, but a single script fragment to be evaled but not shown.
15185 finish_eval=$lt_finish_eval
15187 # Take the output of nm and produce a listing of raw symbols and C names.
15188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15190 # Transform the output of nm in a proper C declaration
15191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15193 # Transform the output of nm in a C name address pair
15194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15196 # This is the shared library runtime path variable.
15197 runpath_var=$runpath_var
15199 # This is the shared library path variable.
15200 shlibpath_var=$shlibpath_var
15202 # Is shlibpath searched before the hard-coded library search path?
15203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15205 # How to hardcode a shared library path into an executable.
15206 hardcode_action=$hardcode_action_CXX
15208 # Whether we should hardcode library paths into libraries.
15209 hardcode_into_libs=$hardcode_into_libs
15211 # Flag to hardcode \$libdir into a binary during linking.
15212 # This must work even if \$libdir does not exist.
15213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15215 # If ld is used when linking, flag to hardcode \$libdir into
15216 # a binary during linking. This must work even if \$libdir does
15218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15220 # Whether we need a single -rpath flag with a separated argument.
15221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15224 # resulting binary.
15225 hardcode_direct=$hardcode_direct_CXX
15227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15228 # resulting binary.
15229 hardcode_minus_L=$hardcode_minus_L_CXX
15231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15232 # the resulting binary.
15233 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15235 # Set to yes if building a shared library automatically hardcodes DIR into the library
15236 # and all subsequent libraries and executables linked against it.
15237 hardcode_automatic=$hardcode_automatic_CXX
15239 # Variables whose values should be saved in libtool wrapper scripts and
15240 # restored at relink time.
15241 variables_saved_for_relink="$variables_saved_for_relink"
15243 # Whether libtool must link a program against all its dependency libraries.
15244 link_all_deplibs=$link_all_deplibs_CXX
15246 # Compile-time system search path for libraries
15247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15249 # Run-time system search path for libraries
15250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15252 # Fix the shell variable \$srcfile for the compiler.
15253 fix_srcfile_path=$lt_fix_srcfile_path
15255 # Set to yes if exported symbols are required.
15256 always_export_symbols=$always_export_symbols_CXX
15258 # The commands to list exported symbols.
15259 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15261 # The commands to extract the exported symbol list from a shared archive.
15262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15264 # Symbols that should not be listed in the preloaded symbols.
15265 exclude_expsyms=$lt_exclude_expsyms_CXX
15267 # Symbols that must always be exported.
15268 include_expsyms=$lt_include_expsyms_CXX
15270 # ### END LIBTOOL TAG CONFIG: $tagname
15276 # If there is no Makefile yet, we rely on a make rule to execute
15277 # `config.status --recheck' to rerun these tests and create the
15278 # libtool script then.
15279 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15280 if test -f "$ltmain_in"; then
15281 test -f Makefile && make "$ltmain"
15287 ac_cpp='$CPP $CPPFLAGS'
15288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15296 with_gnu_ldcxx=$with_gnu_ld
15297 with_gnu_ld=$lt_save_with_gnu_ld
15298 lt_cv_path_LDCXX=$lt_cv_path_LD
15299 lt_cv_path_LD=$lt_save_path_LD
15300 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15301 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15309 if test -n "$F77" && test "X$F77" != "Xno"; then
15312 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15313 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15314 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15317 archive_cmds_need_lc_F77=no
15318 allow_undefined_flag_F77=
15319 always_export_symbols_F77=no
15320 archive_expsym_cmds_F77=
15321 export_dynamic_flag_spec_F77=
15322 hardcode_direct_F77=no
15323 hardcode_libdir_flag_spec_F77=
15324 hardcode_libdir_flag_spec_ld_F77=
15325 hardcode_libdir_separator_F77=
15326 hardcode_minus_L_F77=no
15327 hardcode_automatic_F77=no
15329 module_expsym_cmds_F77=
15330 link_all_deplibs_F77=unknown
15331 old_archive_cmds_F77=$old_archive_cmds
15332 no_undefined_flag_F77=
15333 whole_archive_flag_spec_F77=
15334 enable_shared_with_static_runtimes_F77=no
15336 # Source file extension for f77 test sources.
15339 # Object file extension for compiled f77 test sources.
15343 # Code to be used in simple compile tests
15344 lt_simple_compile_test_code="\
15350 # Code to be used in simple link tests
15351 lt_simple_link_test_code="\
15356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15358 # If no C compiler was specified, use CC.
15361 # If no C compiler flags were specified, use CFLAGS.
15362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15364 # Allow CC to be a program name with arguments.
15368 # save warnings/boilerplate of simple test code
15369 ac_outfile=conftest.$ac_objext
15370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15372 _lt_compiler_boilerplate=`cat conftest.err`
15375 ac_outfile=conftest.$ac_objext
15376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15378 _lt_linker_boilerplate=`cat conftest.err`
15382 # Allow CC to be a program name with arguments.
15387 for cc_temp in $compiler""; do
15389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15398 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15399 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15400 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15401 echo "${ECHO_T}$can_build_shared" >&6; }
15403 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15404 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15405 test "$can_build_shared" = "no" && enable_shared=no
15407 # On AIX, shared libraries and static libraries use the same namespace, and
15408 # are all built from PIC.
15411 test "$enable_shared" = yes && enable_static=no
15412 if test -n "$RANLIB"; then
15413 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15414 postinstall_cmds='$RANLIB $lib'
15418 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15419 test "$enable_shared" = yes && enable_static=no
15423 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15424 echo "${ECHO_T}$enable_shared" >&6; }
15426 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15427 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15428 # Make sure either enable_shared or enable_static is yes.
15429 test "$enable_shared" = yes || enable_static=yes
15430 { echo "$as_me:$LINENO: result: $enable_static" >&5
15431 echo "${ECHO_T}$enable_static" >&6; }
15436 lt_prog_compiler_wl_F77=
15437 lt_prog_compiler_pic_F77=
15438 lt_prog_compiler_static_F77=
15440 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15441 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15443 if test "$GCC" = yes; then
15444 lt_prog_compiler_wl_F77='-Wl,'
15445 lt_prog_compiler_static_F77='-static'
15449 # All AIX code is PIC.
15450 if test "$host_cpu" = ia64; then
15451 # AIX 5 now supports IA64 processor
15452 lt_prog_compiler_static_F77='-Bstatic'
15457 # FIXME: we need at least 68020 code to build shared libraries, but
15458 # adding the `-m68020' flag to GCC prevents building anything better,
15460 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15463 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15464 # PIC is the default for these OSes.
15467 mingw* | cygwin* | pw32* | os2*)
15468 # This hack is so that the source file can tell whether it is being
15469 # built for inclusion in a dll (and should export symbols for example).
15470 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15471 # (--disable-auto-import) libraries
15472 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15475 darwin* | rhapsody*)
15476 # PIC is the default on this platform
15477 # Common symbols not allowed in MH_DYLIB files
15478 lt_prog_compiler_pic_F77='-fno-common'
15482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15483 # Instead, we relocate shared libraries at runtime.
15487 # Just because we use GCC doesn't mean we suddenly get shared libraries
15488 # on systems that don't support them.
15489 lt_prog_compiler_can_build_shared_F77=no
15494 if test -d /usr/nec; then
15495 lt_prog_compiler_pic_F77=-Kconform_pic
15500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15501 # not for PA HP-UX.
15507 lt_prog_compiler_pic_F77='-fPIC'
15513 lt_prog_compiler_pic_F77='-fPIC'
15517 # PORTME Check for flag to pass linker flags through the system compiler.
15520 lt_prog_compiler_wl_F77='-Wl,'
15521 if test "$host_cpu" = ia64; then
15522 # AIX 5 now supports IA64 processor
15523 lt_prog_compiler_static_F77='-Bstatic'
15525 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15529 # PIC is the default on this platform
15530 # Common symbols not allowed in MH_DYLIB files
15531 case $cc_basename in
15533 lt_prog_compiler_pic_F77='-qnocommon'
15534 lt_prog_compiler_wl_F77='-Wl,'
15539 mingw* | cygwin* | pw32* | os2*)
15540 # This hack is so that the source file can tell whether it is being
15541 # built for inclusion in a dll (and should export symbols for example).
15542 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15545 hpux9* | hpux10* | hpux11*)
15546 lt_prog_compiler_wl_F77='-Wl,'
15547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15548 # not for PA HP-UX.
15554 lt_prog_compiler_pic_F77='+Z'
15557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15558 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15561 irix5* | irix6* | nonstopux*)
15562 lt_prog_compiler_wl_F77='-Wl,'
15563 # PIC (with -KPIC) is the default.
15564 lt_prog_compiler_static_F77='-non_shared'
15568 lt_prog_compiler_pic_F77='-KPIC'
15569 lt_prog_compiler_static_F77='-Bstatic'
15572 linux* | k*bsd*-gnu)
15573 case $cc_basename in
15575 lt_prog_compiler_wl_F77='-Wl,'
15576 lt_prog_compiler_pic_F77='-KPIC'
15577 lt_prog_compiler_static_F77='-static'
15579 pgcc* | pgf77* | pgf90* | pgf95*)
15580 # Portland Group compilers (*not* the Pentium gcc compiler,
15581 # which looks to be a dead project)
15582 lt_prog_compiler_wl_F77='-Wl,'
15583 lt_prog_compiler_pic_F77='-fpic'
15584 lt_prog_compiler_static_F77='-Bstatic'
15587 lt_prog_compiler_wl_F77='-Wl,'
15588 # All Alpha code is PIC.
15589 lt_prog_compiler_static_F77='-non_shared'
15592 case `$CC -V 2>&1 | sed 5q` in
15595 lt_prog_compiler_pic_F77='-KPIC'
15596 lt_prog_compiler_static_F77='-Bstatic'
15597 lt_prog_compiler_wl_F77='-Wl,'
15600 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15601 lt_prog_compiler_pic_F77='-KPIC'
15602 lt_prog_compiler_static_F77='-Bstatic'
15603 lt_prog_compiler_wl_F77=''
15610 osf3* | osf4* | osf5*)
15611 lt_prog_compiler_wl_F77='-Wl,'
15612 # All OSF/1 code is PIC.
15613 lt_prog_compiler_static_F77='-non_shared'
15617 lt_prog_compiler_static_F77='-non_shared'
15621 lt_prog_compiler_pic_F77='-KPIC'
15622 lt_prog_compiler_static_F77='-Bstatic'
15623 case $cc_basename in
15624 f77* | f90* | f95*)
15625 lt_prog_compiler_wl_F77='-Qoption ld ';;
15627 lt_prog_compiler_wl_F77='-Wl,';;
15632 lt_prog_compiler_wl_F77='-Qoption ld '
15633 lt_prog_compiler_pic_F77='-PIC'
15634 lt_prog_compiler_static_F77='-Bstatic'
15637 sysv4 | sysv4.2uw2* | sysv4.3*)
15638 lt_prog_compiler_wl_F77='-Wl,'
15639 lt_prog_compiler_pic_F77='-KPIC'
15640 lt_prog_compiler_static_F77='-Bstatic'
15644 if test -d /usr/nec ;then
15645 lt_prog_compiler_pic_F77='-Kconform_pic'
15646 lt_prog_compiler_static_F77='-Bstatic'
15650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15651 lt_prog_compiler_wl_F77='-Wl,'
15652 lt_prog_compiler_pic_F77='-KPIC'
15653 lt_prog_compiler_static_F77='-Bstatic'
15657 lt_prog_compiler_wl_F77='-Wl,'
15658 lt_prog_compiler_can_build_shared_F77=no
15662 lt_prog_compiler_pic_F77='-pic'
15663 lt_prog_compiler_static_F77='-Bstatic'
15667 lt_prog_compiler_can_build_shared_F77=no
15672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15673 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15676 # Check to make sure the PIC flag actually works.
15678 if test -n "$lt_prog_compiler_pic_F77"; then
15680 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15681 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15682 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 lt_prog_compiler_pic_works_F77=no
15686 ac_outfile=conftest.$ac_objext
15687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15688 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15689 # Insert the option either (1) after the last *FLAGS variable, or
15690 # (2) before a word containing "conftest.", or (3) at the end.
15691 # Note that $ac_compile itself does not contain backslashes and begins
15692 # with a dollar sign (not a hyphen), so the echo should work correctly.
15693 # The option is referenced via a variable to avoid confusing sed.
15694 lt_compile=`echo "$ac_compile" | $SED \
15695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15697 -e 's:$: $lt_compiler_flag:'`
15698 (eval echo "\"\$as_me:15698: $lt_compile\"" >&5)
15699 (eval "$lt_compile" 2>conftest.err)
15701 cat conftest.err >&5
15702 echo "$as_me:15702: \$? = $ac_status" >&5
15703 if (exit $ac_status) && test -s "$ac_outfile"; then
15704 # The compiler can only warn and ignore the option if not recognized
15705 # So say no if there are warnings other than the usual output.
15706 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15709 lt_prog_compiler_pic_works_F77=yes
15715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15716 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15718 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15719 case $lt_prog_compiler_pic_F77 in
15721 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15724 lt_prog_compiler_pic_F77=
15725 lt_prog_compiler_can_build_shared_F77=no
15730 # For platforms which do not support PIC, -DPIC is meaningless:
15732 lt_prog_compiler_pic_F77=
15735 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15740 # Check to make sure the static flag actually works.
15742 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15743 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15744 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15745 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 lt_prog_compiler_static_works_F77=no
15749 save_LDFLAGS="$LDFLAGS"
15750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15753 # The linker can only warn and ignore the option if not recognized
15754 # So say no if there are warnings
15755 if test -s conftest.err; then
15756 # Append any errors to the config.log.
15757 cat conftest.err 1>&5
15758 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15760 if diff conftest.exp conftest.er2 >/dev/null; then
15761 lt_prog_compiler_static_works_F77=yes
15764 lt_prog_compiler_static_works_F77=yes
15768 LDFLAGS="$save_LDFLAGS"
15771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15772 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15774 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15777 lt_prog_compiler_static_F77=
15781 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15782 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15783 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 lt_cv_prog_compiler_c_o_F77=no
15787 $rm -r conftest 2>/dev/null
15791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15793 lt_compiler_flag="-o out/conftest2.$ac_objext"
15794 # Insert the option either (1) after the last *FLAGS variable, or
15795 # (2) before a word containing "conftest.", or (3) at the end.
15796 # Note that $ac_compile itself does not contain backslashes and begins
15797 # with a dollar sign (not a hyphen), so the echo should work correctly.
15798 lt_compile=`echo "$ac_compile" | $SED \
15799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15801 -e 's:$: $lt_compiler_flag:'`
15802 (eval echo "\"\$as_me:15802: $lt_compile\"" >&5)
15803 (eval "$lt_compile" 2>out/conftest.err)
15805 cat out/conftest.err >&5
15806 echo "$as_me:15806: \$? = $ac_status" >&5
15807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15809 # The compiler can only warn and ignore the option if not recognized
15810 # So say no if there are warnings
15811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15814 lt_cv_prog_compiler_c_o_F77=yes
15819 # SGI C++ compiler will create directory out/ii_files/ for
15820 # template instantiation
15821 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15822 $rm out/* && rmdir out
15828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15829 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15832 hard_links="nottested"
15833 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15834 # do not overwrite the value of need_locks provided by the user
15835 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15836 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15841 ln conftest.a conftest.b 2>&5 || hard_links=no
15842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15843 { echo "$as_me:$LINENO: result: $hard_links" >&5
15844 echo "${ECHO_T}$hard_links" >&6; }
15845 if test "$hard_links" = no; then
15846 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15847 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15854 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15855 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15858 allow_undefined_flag_F77=
15859 enable_shared_with_static_runtimes_F77=no
15861 archive_expsym_cmds_F77=
15862 old_archive_From_new_cmds_F77=
15863 old_archive_from_expsyms_cmds_F77=
15864 export_dynamic_flag_spec_F77=
15865 whole_archive_flag_spec_F77=
15866 thread_safe_flag_spec_F77=
15867 hardcode_libdir_flag_spec_F77=
15868 hardcode_libdir_flag_spec_ld_F77=
15869 hardcode_libdir_separator_F77=
15870 hardcode_direct_F77=no
15871 hardcode_minus_L_F77=no
15872 hardcode_shlibpath_var_F77=unsupported
15873 link_all_deplibs_F77=unknown
15874 hardcode_automatic_F77=no
15876 module_expsym_cmds_F77=
15877 always_export_symbols_F77=no
15878 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15879 # include_expsyms should be a list of space-separated symbols to be *always*
15880 # included in the symbol list
15881 include_expsyms_F77=
15882 # exclude_expsyms can be an extended regexp of symbols to exclude
15883 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15885 # as well as any symbol that contains `d'.
15886 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15888 # platforms (ab)use it in PIC code, but their linkers get confused if
15889 # the symbol is explicitly referenced. Since portable code cannot
15890 # rely on this symbol name, it's probably fine to never include it in
15891 # preloaded symbol tables.
15892 extract_expsyms_cmds=
15893 # Just being paranoid about ensuring that cc_basename is set.
15894 for cc_temp in $compiler""; do
15896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15905 cygwin* | mingw* | pw32*)
15906 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15907 # When not using gcc, we currently assume that we are using
15908 # Microsoft Visual C++.
15909 if test "$GCC" != yes; then
15914 # we just hope/assume this is gcc and not c89 (= MSVC++)
15923 if test "$with_gnu_ld" = yes; then
15924 # If archive_cmds runs LD, not CC, wlarc should be empty
15927 # Set some defaults for GNU ld with shared library support. These
15928 # are reset later if shared libraries are not supported. Putting them
15929 # here allows them to be overridden if necessary.
15930 runpath_var=LD_RUN_PATH
15931 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15932 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15933 # ancient GNU ld didn't support --whole-archive et. al.
15934 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15935 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15937 whole_archive_flag_spec_F77=
15939 supports_anon_versioning=no
15940 case `$LD -v 2>/dev/null` in
15941 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15942 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15943 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15944 *\ 2.11.*) ;; # other 2.11 versions
15945 *) supports_anon_versioning=yes ;;
15948 # See if GNU ld supports shared libraries.
15950 aix3* | aix4* | aix5*)
15951 # On AIX/PPC, the GNU linker is very broken
15952 if test "$host_cpu" != ia64; then
15956 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15957 *** to be unable to reliably create shared libraries on AIX.
15958 *** Therefore, libtool is disabling shared libraries support. If you
15959 *** really care for shared libraries, you may want to modify your PATH
15960 *** so that a non-GNU linker is found, and then restart.
15967 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15968 hardcode_libdir_flag_spec_F77='-L$libdir'
15969 hardcode_minus_L_F77=yes
15971 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15972 # that the semantics of dynamic libraries on AmigaOS, at least up
15973 # to version 4, is to share data among multiple programs linked
15974 # with the same dynamic library. Since this doesn't match the
15975 # behavior of shared libraries on other platforms, we can't use
15981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15982 allow_undefined_flag_F77=unsupported
15983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15984 # support --undefined. This deserves some investigation. FIXME
15985 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991 cygwin* | mingw* | pw32*)
15992 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15993 # as there is no search path for DLLs.
15994 hardcode_libdir_flag_spec_F77='-L$libdir'
15995 allow_undefined_flag_F77=unsupported
15996 always_export_symbols_F77=no
15997 enable_shared_with_static_runtimes_F77=yes
15998 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16000 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16001 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16002 # If the export-symbols file already is a .def file (1st line
16003 # is EXPORTS), use it as is; otherwise, prepend...
16004 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16005 cp $export_symbols $output_objdir/$soname.def;
16007 echo EXPORTS > $output_objdir/$soname.def;
16008 cat $export_symbols >> $output_objdir/$soname.def;
16010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16017 hardcode_direct_F77=no
16018 hardcode_shlibpath_var_F77=no
16019 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16020 export_dynamic_flag_spec_F77='${wl}-E'
16021 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16022 # Instead, shared libraries are loaded at an image base (0x10000000 by
16023 # default) and relocated if they conflict, which is a slow very memory
16024 # consuming and fragmenting process. To avoid this, we pick a random,
16025 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16026 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16027 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16028 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16031 gnu* | linux* | k*bsd*-gnu)
16032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16034 case $cc_basename,$host_cpu in
16035 pgcc*) # Portland Group C compiler
16036 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16037 tmp_addflag=' $pic_flag'
16039 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16040 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16041 tmp_addflag=' $pic_flag -Mnomain' ;;
16042 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16043 tmp_addflag=' -i_dynamic' ;;
16044 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16045 tmp_addflag=' -i_dynamic -nofor_main' ;;
16046 ifc* | ifort*) # Intel Fortran compiler
16047 tmp_addflag=' -nofor_main' ;;
16049 case `$CC -V 2>&1 | sed 5q` in
16050 *Sun\ C*) # Sun C 5.9
16051 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16052 tmp_sharedflag='-G' ;;
16053 *Sun\ F*) # Sun Fortran 8.3
16054 tmp_sharedflag='-G' ;;
16056 tmp_sharedflag='-shared' ;;
16058 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 if test $supports_anon_versioning = yes; then
16061 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16063 $echo "local: *; };" >> $output_objdir/$libname.ver~
16064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16073 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16076 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16082 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16087 *** create shared libraries on Solaris systems. Therefore, libtool
16088 *** is disabling shared libraries support. We urge you to upgrade GNU
16089 *** binutils to release 2.9.1 or newer. Another option is to modify
16090 *** your PATH or compiler configuration so that the native linker is
16091 *** used, and then restart.
16094 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16095 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16096 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16103 case `$LD -v 2>&1` in
16104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16109 *** reliably create shared libraries on SCO systems. Therefore, libtool
16110 *** is disabling shared libraries support. We urge you to upgrade GNU
16111 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16112 *** your PATH or compiler configuration so that the native linker is
16113 *** used, and then restart.
16118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16119 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16120 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16121 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16130 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16132 hardcode_direct_F77=yes
16133 hardcode_shlibpath_var_F77=no
16137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16138 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16139 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16146 if test "$ld_shlibs_F77" = no; then
16148 hardcode_libdir_flag_spec_F77=
16149 export_dynamic_flag_spec_F77=
16150 whole_archive_flag_spec_F77=
16153 # PORTME fill in a description of your system's linker (not GNU ld)
16156 allow_undefined_flag_F77=unsupported
16157 always_export_symbols_F77=yes
16158 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16159 # Note: this linker hardcodes the directories in LIBPATH if there
16160 # are no directories specified by -L.
16161 hardcode_minus_L_F77=yes
16162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16163 # Neither direct hardcoding nor static linking is supported with a
16165 hardcode_direct_F77=unsupported
16170 if test "$host_cpu" = ia64; then
16171 # On IA64, the linker does run time linking by default, so we don't
16172 # have to do anything special.
16173 aix_use_runtimelinking=no
16174 exp_sym_flag='-Bexport'
16177 # If we're using GNU nm, then we don't want the "-C" option.
16178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16180 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16182 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16184 aix_use_runtimelinking=no
16186 # Test if we are trying to use run time linking or normal
16187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16188 # need to do runtime linking.
16189 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16190 for ld_flag in $LDFLAGS; do
16191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16192 aix_use_runtimelinking=yes
16199 exp_sym_flag='-bexport'
16200 no_entry_flag='-bnoentry'
16203 # When large executables or shared objects are built, AIX ld can
16204 # have problems creating the table of contents. If linking a library
16205 # or program results in "error TOC overflow" add -mminimal-toc to
16206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16209 archive_cmds_F77=''
16210 hardcode_direct_F77=yes
16211 hardcode_libdir_separator_F77=':'
16212 link_all_deplibs_F77=yes
16214 if test "$GCC" = yes; then
16215 case $host_os in aix4.[012]|aix4.[012].*)
16216 # We only want to do this on AIX 4.2 and lower, the check
16217 # below for broken collect2 doesn't work under 4.3+
16218 collect2name=`${CC} -print-prog-name=collect2`
16219 if test -f "$collect2name" && \
16220 strings "$collect2name" | grep resolve_lib_name >/dev/null
16222 # We have reworked collect2
16225 # We have old collect2
16226 hardcode_direct_F77=unsupported
16227 # It fails to find uninstalled libraries when the uninstalled
16228 # path is not listed in the libpath. Setting hardcode_minus_L
16229 # to unsupported forces relinking
16230 hardcode_minus_L_F77=yes
16231 hardcode_libdir_flag_spec_F77='-L$libdir'
16232 hardcode_libdir_separator_F77=
16236 shared_flag='-shared'
16237 if test "$aix_use_runtimelinking" = yes; then
16238 shared_flag="$shared_flag "'${wl}-G'
16242 if test "$host_cpu" = ia64; then
16243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16244 # chokes on -Wl,-G. The following line is correct:
16247 if test "$aix_use_runtimelinking" = yes; then
16248 shared_flag='${wl}-G'
16250 shared_flag='${wl}-bM:SRE'
16255 # It seems that -bexpall does not export symbols beginning with
16256 # underscore (_), so it is better to generate a list of symbols to export.
16257 always_export_symbols_F77=yes
16258 if test "$aix_use_runtimelinking" = yes; then
16259 # Warning - without using the other runtime loading flags (-brtl),
16260 # -berok will link without error, but may produce a broken library.
16261 allow_undefined_flag_F77='-berok'
16262 # Determine the default libpath from the value encoded in an empty executable.
16263 cat >conftest.$ac_ext <<_ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (ac_try="$ac_link"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_link") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } && {
16282 test -z "$ac_f77_werror_flag" ||
16283 test ! -s conftest.err
16284 } && test -s conftest$ac_exeext &&
16285 $as_test_x conftest$ac_exeext; then
16287 lt_aix_libpath_sed='
16288 /Import File Strings/,/^$/ {
16294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16295 # Check for a 64-bit object if we didn't find anything.
16296 if test -z "$aix_libpath"; then
16297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16307 conftest$ac_exeext conftest.$ac_ext
16308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16310 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16311 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16313 if test "$host_cpu" = ia64; then
16314 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16315 allow_undefined_flag_F77="-z nodefs"
16316 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16318 # Determine the default libpath from the value encoded in an empty executable.
16319 cat >conftest.$ac_ext <<_ACEOF
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (ac_try="$ac_link"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_link") 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_f77_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest$ac_exeext &&
16341 $as_test_x conftest$ac_exeext; then
16343 lt_aix_libpath_sed='
16344 /Import File Strings/,/^$/ {
16350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16351 # Check for a 64-bit object if we didn't find anything.
16352 if test -z "$aix_libpath"; then
16353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363 conftest$ac_exeext conftest.$ac_ext
16364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16366 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16367 # Warning - without using the other run time loading flags,
16368 # -berok will link without error, but may produce a broken library.
16369 no_undefined_flag_F77=' ${wl}-bernotok'
16370 allow_undefined_flag_F77=' ${wl}-berok'
16371 # Exported symbols can be pulled into shared objects from archives
16372 whole_archive_flag_spec_F77='$convenience'
16373 archive_cmds_need_lc_F77=yes
16374 # This is similar to how AIX traditionally builds its shared libraries.
16375 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16381 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16382 hardcode_libdir_flag_spec_F77='-L$libdir'
16383 hardcode_minus_L_F77=yes
16384 # see comment about different semantics on the GNU ld section
16389 export_dynamic_flag_spec_F77=-rdynamic
16392 cygwin* | mingw* | pw32*)
16393 # When not using gcc, we currently assume that we are using
16394 # Microsoft Visual C++.
16395 # hardcode_libdir_flag_spec is actually meaningless, as there is
16396 # no search path for DLLs.
16397 hardcode_libdir_flag_spec_F77=' '
16398 allow_undefined_flag_F77=unsupported
16399 # Tell ltmain to make .lib files, not .a files.
16401 # Tell ltmain to make .dll files, not .so files.
16403 # FIXME: Setting linknames here is a bad hack.
16404 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16405 # The linker will automatically build a .lib file if we build a DLL.
16406 old_archive_From_new_cmds_F77='true'
16407 # FIXME: Should let the user specify the lib program.
16408 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16409 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16410 enable_shared_with_static_runtimes_F77=yes
16413 darwin* | rhapsody*)
16415 rhapsody* | darwin1.[012])
16416 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16419 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16420 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16422 case ${MACOSX_DEPLOYMENT_TARGET} in
16424 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16427 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16433 archive_cmds_need_lc_F77=no
16434 hardcode_direct_F77=no
16435 hardcode_automatic_F77=yes
16436 hardcode_shlibpath_var_F77=unsupported
16437 whole_archive_flag_spec_F77=''
16438 link_all_deplibs_F77=yes
16439 if test "$GCC" = yes ; then
16440 output_verbose_link_cmd='echo'
16441 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16442 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16444 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16445 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16447 case $cc_basename in
16449 output_verbose_link_cmd='echo'
16450 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16451 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16453 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16454 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16464 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 hardcode_libdir_flag_spec_F77='-L$libdir'
16466 hardcode_shlibpath_var_F77=no
16473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16474 # support. Future versions do this automatically, but an explicit c++rt0.o
16475 # does not break anything, and helps significantly (at the cost of a little
16478 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16479 hardcode_libdir_flag_spec_F77='-R$libdir'
16480 hardcode_direct_F77=yes
16481 hardcode_shlibpath_var_F77=no
16484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16486 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16487 hardcode_direct_F77=yes
16488 hardcode_minus_L_F77=yes
16489 hardcode_shlibpath_var_F77=no
16492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16493 freebsd* | dragonfly*)
16494 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16495 hardcode_libdir_flag_spec_F77='-R$libdir'
16496 hardcode_direct_F77=yes
16497 hardcode_shlibpath_var_F77=no
16501 if test "$GCC" = yes; then
16502 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16504 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16507 hardcode_libdir_separator_F77=:
16508 hardcode_direct_F77=yes
16510 # hardcode_minus_L: Not really in the search PATH,
16511 # but as the default location of the library.
16512 hardcode_minus_L_F77=yes
16513 export_dynamic_flag_spec_F77='${wl}-E'
16517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16518 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16520 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16522 if test "$with_gnu_ld" = no; then
16523 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16524 hardcode_libdir_separator_F77=:
16526 hardcode_direct_F77=yes
16527 export_dynamic_flag_spec_F77='${wl}-E'
16529 # hardcode_minus_L: Not really in the search PATH,
16530 # but as the default location of the library.
16531 hardcode_minus_L_F77=yes
16536 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16539 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16561 if test "$with_gnu_ld" = no; then
16562 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16563 hardcode_libdir_separator_F77=:
16567 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16568 hardcode_direct_F77=no
16569 hardcode_shlibpath_var_F77=no
16572 hardcode_direct_F77=yes
16573 export_dynamic_flag_spec_F77='${wl}-E'
16575 # hardcode_minus_L: Not really in the search PATH,
16576 # but as the default location of the library.
16577 hardcode_minus_L_F77=yes
16583 irix5* | irix6* | nonstopux*)
16584 if test "$GCC" = yes; then
16585 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16587 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16588 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16591 hardcode_libdir_separator_F77=:
16592 link_all_deplibs_F77=yes
16596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16597 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16599 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16601 hardcode_libdir_flag_spec_F77='-R$libdir'
16602 hardcode_direct_F77=yes
16603 hardcode_shlibpath_var_F77=no
16607 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16608 hardcode_direct_F77=yes
16609 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16610 hardcode_libdir_separator_F77=:
16611 hardcode_shlibpath_var_F77=no
16615 if test -f /usr/libexec/ld.so; then
16616 hardcode_direct_F77=yes
16617 hardcode_shlibpath_var_F77=no
16618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16619 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16621 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16622 export_dynamic_flag_spec_F77='${wl}-E'
16625 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16626 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16627 hardcode_libdir_flag_spec_F77='-R$libdir'
16630 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16631 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16641 hardcode_libdir_flag_spec_F77='-L$libdir'
16642 hardcode_minus_L_F77=yes
16643 allow_undefined_flag_F77=unsupported
16644 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16645 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16649 if test "$GCC" = yes; then
16650 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16651 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16653 allow_undefined_flag_F77=' -expect_unresolved \*'
16654 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16657 hardcode_libdir_separator_F77=:
16660 osf4* | osf5*) # as osf3* with the addition of -msym flag
16661 if test "$GCC" = yes; then
16662 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16663 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16666 allow_undefined_flag_F77=' -expect_unresolved \*'
16667 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16668 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16669 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16671 # Both c and cxx compiler support -rpath directly
16672 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16674 hardcode_libdir_separator_F77=:
16678 no_undefined_flag_F77=' -z text'
16679 if test "$GCC" = yes; then
16681 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16683 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16686 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16690 hardcode_libdir_flag_spec_F77='-R$libdir'
16691 hardcode_shlibpath_var_F77=no
16693 solaris2.[0-5] | solaris2.[0-5].*) ;;
16695 # The compiler driver will combine and reorder linker options,
16696 # but understands `-z linker_flag'. GCC discards it without `$wl',
16697 # but is careful enough not to reorder.
16698 # Supported since Solaris 2.6 (maybe 2.5.1?)
16699 if test "$GCC" = yes; then
16700 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16702 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16706 link_all_deplibs_F77=yes
16710 if test "x$host_vendor" = xsequent; then
16711 # Use $CC to link under sequent, because it throws in some extra .o
16712 # files that make .init and .fini sections work.
16713 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16715 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec_F77='-L$libdir'
16718 hardcode_direct_F77=yes
16719 hardcode_minus_L_F77=yes
16720 hardcode_shlibpath_var_F77=no
16724 case $host_vendor in
16726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_direct_F77=yes # is this really true???
16730 ## LD is ld it makes a PLAMLIB
16731 ## CC just makes a GrossModule.
16732 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16733 reload_cmds_F77='$CC -r -o $output$reload_objs'
16734 hardcode_direct_F77=no
16737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16741 runpath_var='LD_RUN_PATH'
16742 hardcode_shlibpath_var_F77=no
16746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_shlibpath_var_F77=no
16748 export_dynamic_flag_spec_F77='-Bexport'
16752 if test -d /usr/nec; then
16753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16754 hardcode_shlibpath_var_F77=no
16755 runpath_var=LD_RUN_PATH
16756 hardcode_runpath_var=yes
16761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16762 no_undefined_flag_F77='${wl}-z,text'
16763 archive_cmds_need_lc_F77=no
16764 hardcode_shlibpath_var_F77=no
16765 runpath_var='LD_RUN_PATH'
16767 if test "$GCC" = yes; then
16768 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16776 sysv5* | sco3.2v5* | sco5v6*)
16777 # Note: We can NOT use -z defs as we might desire, because we do not
16778 # link with -lc, and that would cause any symbols used from libc to
16779 # always be unresolved, which means just about no library would
16780 # ever link correctly. If we're not using GNU ld we use -z text
16781 # though, which does catch some bad symbols but isn't as heavy-handed
16783 no_undefined_flag_F77='${wl}-z,text'
16784 allow_undefined_flag_F77='${wl}-z,nodefs'
16785 archive_cmds_need_lc_F77=no
16786 hardcode_shlibpath_var_F77=no
16787 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16788 hardcode_libdir_separator_F77=':'
16789 link_all_deplibs_F77=yes
16790 export_dynamic_flag_spec_F77='${wl}-Bexport'
16791 runpath_var='LD_RUN_PATH'
16793 if test "$GCC" = yes; then
16794 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804 hardcode_libdir_flag_spec_F77='-L$libdir'
16805 hardcode_shlibpath_var_F77=no
16814 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16815 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16816 test "$ld_shlibs_F77" = no && can_build_shared=no
16819 # Do we need to explicitly link libc?
16821 case "x$archive_cmds_need_lc_F77" in
16823 # Assume -lc should be added
16824 archive_cmds_need_lc_F77=yes
16826 if test "$enable_shared" = yes && test "$GCC" = yes; then
16827 case $archive_cmds_F77 in
16829 # FIXME: we may have to deal with multi-command sequences.
16832 # Test whether the compiler implicitly links with -lc since on some
16833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16834 # to ld, don't add -lc before -lgcc.
16835 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841 (eval $ac_compile) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } 2>conftest.err; then
16847 libobjs=conftest.$ac_objext
16849 wl=$lt_prog_compiler_wl_F77
16850 pic_flag=$lt_prog_compiler_pic_F77
16856 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16857 allow_undefined_flag_F77=
16858 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16859 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }
16864 archive_cmds_need_lc_F77=no
16866 archive_cmds_need_lc_F77=yes
16868 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16870 cat conftest.err 1>&5
16873 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16874 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16881 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16883 library_names_spec=
16884 libname_spec='lib$name'
16888 postuninstall_cmds=
16892 shlibpath_overrides_runpath=unknown
16894 dynamic_linker="$host_os ld.so"
16895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16897 need_lib_prefix=unknown
16898 hardcode_into_libs=no
16900 # when you set need_version to no, make sure it does not cause -set_version
16901 # flags to be left without arguments
16902 need_version=unknown
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16908 shlibpath_var=LIBPATH
16910 # AIX 3 has no versioning support, so we append a major version to the name.
16911 soname_spec='${libname}${release}${shared_ext}$major'
16918 hardcode_into_libs=yes
16919 if test "$host_cpu" = ia64; then
16920 # AIX 5 supports IA64
16921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16922 shlibpath_var=LD_LIBRARY_PATH
16924 # With GCC up to 2.95.x, collect2 would create an import file
16925 # for dependence libraries. The import file would start with
16926 # the line `#! .'. This would cause the generated library to
16927 # depend on `.', always an invalid library. This was fixed in
16928 # development snapshots of GCC prior to 3.0.
16930 aix4 | aix4.[01] | aix4.[01].*)
16931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16936 can_build_shared=no
16940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16941 # soname into executable. Probably we can add versioning support to
16942 # collect2, so additional links can be useful in future.
16943 if test "$aix_use_runtimelinking" = yes; then
16944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16945 # instead of lib<name>.a to let people know that these are not
16946 # typical AIX shared libraries.
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 # We preserve .a as extension for shared libraries through AIX4.2
16950 # and later when we are not doing run time linking.
16951 library_names_spec='${libname}${release}.a $libname.a'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LIBPATH
16959 library_names_spec='$libname.ixlibrary $libname.a'
16960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16961 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'
16965 library_names_spec='${libname}${shared_ext}'
16966 dynamic_linker="$host_os ld.so"
16967 shlibpath_var=LIBRARY_PATH
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16979 # the default ld.so.conf also contains /usr/contrib/lib and
16980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16981 # libtool to hard-code these into programs
16984 cygwin* | mingw* | pw32*)
16985 version_type=windows
16990 case $GCC,$host_os in
16991 yes,cygwin* | yes,mingw* | yes,pw32*)
16992 library_names_spec='$libname.dll.a'
16993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16994 postinstall_cmds='base_file=`basename \${file}`~
16995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16996 dldir=$destdir/`dirname \$dlpath`~
16997 test -d \$dldir || mkdir -p \$dldir~
16998 $install_prog $dir/$dlname \$dldir/$dlname~
16999 chmod a+x \$dldir/$dlname'
17000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17001 dlpath=$dir/\$dldll~
17003 shlibpath_overrides_runpath=yes
17007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17012 # MinGW DLLs use traditional 'lib' prefix
17013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17014 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17015 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17016 # It is most probably a Windows format PATH printed by
17017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17018 # path with ; separators, and with drive letters. We can handle the
17019 # drive letters (cygwin fileutils understands them), so leave them,
17020 # especially as we might pass files found there to a mingw objdump,
17021 # which wouldn't understand a cygwinified path. Ahh.
17022 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17028 # pw32 DLLs use 'pw' prefix rather than 'lib'
17029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17038 dynamic_linker='Win32 ld.exe'
17039 # FIXME: first we should search . and the directory the executable is in
17043 darwin* | rhapsody*)
17044 dynamic_linker="$host_os dyld"
17045 version_type=darwin
17048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17049 soname_spec='${libname}${release}${major}$shared_ext'
17050 shlibpath_overrides_runpath=yes
17051 shlibpath_var=DYLD_LIBRARY_PATH
17052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 shlibpath_var=LD_LIBRARY_PATH
17070 freebsd* | dragonfly*)
17071 # DragonFly does not have aout. When/if they implement a new
17072 # versioning mechanism, adjust this.
17073 if test -x /usr/bin/objformat; then
17074 objformat=`/usr/bin/objformat`
17077 freebsd[123]*) objformat=aout ;;
17078 *) objformat=elf ;;
17081 version_type=freebsd-$objformat
17082 case $version_type in
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17093 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=yes
17098 freebsd3.[01]* | freebsdelf3.[01]*)
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17102 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17103 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17104 shlibpath_overrides_runpath=no
17105 hardcode_into_libs=yes
17107 *) # from 4.6 on, and DragonFly
17108 shlibpath_overrides_runpath=yes
17109 hardcode_into_libs=yes
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 hardcode_into_libs=yes
17124 hpux9* | hpux10* | hpux11*)
17125 # Give a soname corresponding to the major version so that dld.sl refuses to
17126 # link against other versions.
17133 hardcode_into_libs=yes
17134 dynamic_linker="$host_os dld.so"
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec='${libname}${release}${shared_ext}$major'
17139 if test "X$HPUX_IA64_MODE" = X32; then
17140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17148 hardcode_into_libs=yes
17149 dynamic_linker="$host_os dld.sl"
17150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159 dynamic_linker="$host_os dld.sl"
17160 shlibpath_var=SHLIB_PATH
17161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17166 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17167 postinstall_cmds='chmod 555 $lib'
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=no
17179 hardcode_into_libs=yes
17182 irix5* | irix6* | nonstopux*)
17184 nonstopux*) version_type=nonstopux ;;
17186 if test "$lt_cv_prog_gnu_ld" = yes; then
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17197 irix5* | nonstopux*)
17198 libsuff= shlibsuff=
17201 case $LD in # libtool.m4 will add one of these switches to LD
17202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17203 libsuff= shlibsuff= libmagic=32-bit;;
17204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17205 libsuff=32 shlibsuff=N32 libmagic=N32;;
17206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17207 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17208 *) libsuff= shlibsuff= libmagic=never-match;;
17212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17213 shlibpath_overrides_runpath=no
17214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17216 hardcode_into_libs=yes
17219 # No shared lib support for Linux oldld, aout, or coff.
17220 linux*oldld* | linux*aout* | linux*coff*)
17224 # This must be Linux ELF.
17225 linux* | k*bsd*-gnu)
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230 soname_spec='${libname}${release}${shared_ext}$major'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 shlibpath_overrides_runpath=no
17234 # This implies no fast_install, which is unacceptable.
17235 # Some rework will be needed to allow for fast_install
17236 # before this can be enabled.
17237 hardcode_into_libs=yes
17238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17241 # Append ld.so.conf contents to the search path
17242 if test -f /etc/ld.so.conf; then
17243 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' ' '`
17244 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17247 # We used to test for /lib/ld.so.1 and disable shared libraries on
17248 # powerpc, because MkLinux only supported shared libraries with the
17249 # GNU dynamic linker. Since this was broken with cross compilers,
17250 # most powerpc-linux boxes support dynamic linking these days and
17251 # people can always --disable-shared, the test was removed, and we
17252 # assume the GNU/Linux dynamic linker is in use.
17253 dynamic_linker='GNU/Linux ld.so'
17260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17263 dynamic_linker='NetBSD (a.out) ld.so'
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 dynamic_linker='NetBSD ld.elf_so'
17269 shlibpath_var=LD_LIBRARY_PATH
17270 shlibpath_overrides_runpath=yes
17271 hardcode_into_libs=yes
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 shlibpath_var=LD_LIBRARY_PATH
17278 shlibpath_overrides_runpath=yes
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes
17293 sys_lib_dlsearch_path_spec="/usr/lib"
17295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17298 *) need_version=no ;;
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17305 openbsd2.[89] | openbsd2.[89].*)
17306 shlibpath_overrides_runpath=no
17309 shlibpath_overrides_runpath=yes
17313 shlibpath_overrides_runpath=yes
17318 libname_spec='$name'
17321 library_names_spec='$libname${shared_ext} $libname.a'
17322 dynamic_linker='OS/2 ld.exe'
17323 shlibpath_var=LIBPATH
17326 osf3* | osf4* | osf5*)
17330 soname_spec='${libname}${release}${shared_ext}$major'
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes
17349 hardcode_into_libs=yes
17350 # ldd complains unless libraries are executable
17351 postinstall_cmds='chmod +x $lib'
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=yes
17360 if test "$with_gnu_ld" = yes; then
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 case $host_vendor in
17373 shlibpath_overrides_runpath=no
17375 export_dynamic_flag_spec='${wl}-Blargedynsym'
17376 runpath_var=LD_RUN_PATH
17384 shlibpath_overrides_runpath=no
17385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17391 if test -d /usr/nec ;then
17393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17394 soname_spec='$libname${shared_ext}.$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17400 version_type=freebsd-elf
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 hardcode_into_libs=yes
17407 if test "$with_gnu_ld" = yes; then
17408 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17409 shlibpath_overrides_runpath=no
17411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17412 shlibpath_overrides_runpath=yes
17415 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17419 sys_lib_dlsearch_path_spec='/usr/lib'
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 shlibpath_var=LD_LIBRARY_PATH
17433 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17434 echo "${ECHO_T}$dynamic_linker" >&6; }
17435 test "$dynamic_linker" = no && can_build_shared=no
17437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17438 if test "$GCC" = yes; then
17439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17442 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17444 hardcode_action_F77=
17445 if test -n "$hardcode_libdir_flag_spec_F77" || \
17446 test -n "$runpath_var_F77" || \
17447 test "X$hardcode_automatic_F77" = "Xyes" ; then
17449 # We can hardcode non-existant directories.
17450 if test "$hardcode_direct_F77" != no &&
17451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452 # have to relink, otherwise we might link with an installed library
17453 # when we should be linking with a yet-to-be-installed one
17454 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17455 test "$hardcode_minus_L_F77" != no; then
17456 # Linking always hardcodes the temporary library directory.
17457 hardcode_action_F77=relink
17459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460 hardcode_action_F77=immediate
17463 # We cannot hardcode anything, or else we can only hardcode existing
17465 hardcode_action_F77=unsupported
17467 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17468 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17470 if test "$hardcode_action_F77" = relink; then
17471 # Fast installation is not supported
17472 enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474 test "$enable_shared" = no; then
17475 # Fast installation is not necessary
17476 enable_fast_install=needless
17480 # The else clause should only fire when bootstrapping the
17481 # libtool distribution, otherwise you forgot to ship ltmain.sh
17482 # with your package, and you will get complaints that there are
17483 # no rules to generate ltmain.sh.
17484 if test -f "$ltmain"; then
17485 # See if we are running on zsh, and set the options which allow our commands through
17486 # without removal of \ escapes.
17487 if test -n "${ZSH_VERSION+set}" ; then
17488 setopt NO_GLOB_SUBST
17490 # Now quote all the things that may contain metacharacters while being
17491 # careful not to overquote the AC_SUBSTed values. We take copies of the
17492 # variables and quote the copies for generation of the libtool script.
17493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17497 deplibs_check_method reload_flag reload_cmds need_locks \
17498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17499 lt_cv_sys_global_symbol_to_c_name_address \
17500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17501 old_postinstall_cmds old_postuninstall_cmds \
17505 lt_prog_compiler_wl_F77 \
17506 lt_prog_compiler_pic_F77 \
17507 lt_prog_compiler_static_F77 \
17508 lt_prog_compiler_no_builtin_flag_F77 \
17509 export_dynamic_flag_spec_F77 \
17510 thread_safe_flag_spec_F77 \
17511 whole_archive_flag_spec_F77 \
17512 enable_shared_with_static_runtimes_F77 \
17513 old_archive_cmds_F77 \
17514 old_archive_from_new_cmds_F77 \
17515 predep_objects_F77 \
17516 postdep_objects_F77 \
17519 compiler_lib_search_path_F77 \
17521 archive_expsym_cmds_F77 \
17522 postinstall_cmds_F77 \
17523 postuninstall_cmds_F77 \
17524 old_archive_from_expsyms_cmds_F77 \
17525 allow_undefined_flag_F77 \
17526 no_undefined_flag_F77 \
17527 export_symbols_cmds_F77 \
17528 hardcode_libdir_flag_spec_F77 \
17529 hardcode_libdir_flag_spec_ld_F77 \
17530 hardcode_libdir_separator_F77 \
17531 hardcode_automatic_F77 \
17533 module_expsym_cmds_F77 \
17534 lt_cv_prog_compiler_c_o_F77 \
17535 fix_srcfile_path_F77 \
17536 exclude_expsyms_F77 \
17537 include_expsyms_F77; do
17540 old_archive_cmds_F77 | \
17541 old_archive_from_new_cmds_F77 | \
17542 archive_cmds_F77 | \
17543 archive_expsym_cmds_F77 | \
17544 module_cmds_F77 | \
17545 module_expsym_cmds_F77 | \
17546 old_archive_from_expsyms_cmds_F77 | \
17547 export_symbols_cmds_F77 | \
17548 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17549 postinstall_cmds | postuninstall_cmds | \
17550 old_postinstall_cmds | old_postuninstall_cmds | \
17551 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17552 # Double-quote double-evaled strings.
17553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17562 *'\$0 --fallback-echo"')
17563 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17569 cat <<__EOF__ >> "$cfgfile"
17570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17574 # Shell to use when invoking shell scripts.
17577 # Whether or not to build shared libraries.
17578 build_libtool_libs=$enable_shared
17580 # Whether or not to build static libraries.
17581 build_old_libs=$enable_static
17583 # Whether or not to add -lc for building shared libraries.
17584 build_libtool_need_lc=$archive_cmds_need_lc_F77
17586 # Whether or not to disallow shared libs when runtime libs are static
17587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17589 # Whether or not to optimize for fast installation.
17590 fast_install=$enable_fast_install
17593 host_alias=$host_alias
17597 # The build system.
17598 build_alias=$build_alias
17602 # An echo program that does not interpret backslashes.
17607 AR_FLAGS=$lt_AR_FLAGS
17612 # LTCC compiler flags.
17613 LTCFLAGS=$lt_LTCFLAGS
17615 # A language-specific compiler.
17616 CC=$lt_compiler_F77
17618 # Is the compiler the GNU C compiler?
17624 # The linker used to build libraries.
17627 # Whether we need hard or soft links.
17630 # A BSD-compatible nm program.
17633 # A symbol stripping program
17636 # Used to examine libraries when file_magic_cmd begins "file"
17637 MAGIC_CMD=$MAGIC_CMD
17639 # Used on cygwin: DLL creation program.
17642 # Used on cygwin: object dumper.
17645 # Used on cygwin: assembler.
17648 # The name of the directory that contains temporary libtool files.
17651 # How to create reloadable object files.
17652 reload_flag=$lt_reload_flag
17653 reload_cmds=$lt_reload_cmds
17655 # How to pass a linker flag through the compiler.
17656 wl=$lt_lt_prog_compiler_wl_F77
17658 # Object file suffix (normally "o").
17659 objext="$ac_objext"
17661 # Old archive suffix (normally "a").
17664 # Shared library suffix (normally ".so").
17665 shrext_cmds='$shrext_cmds'
17667 # Executable file suffix (normally "").
17670 # Additional compiler flags for building library objects.
17671 pic_flag=$lt_lt_prog_compiler_pic_F77
17674 # What is the maximum length of a command?
17675 max_cmd_len=$lt_cv_sys_max_cmd_len
17677 # Does compiler simultaneously support -c and -o options?
17678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17680 # Must we lock files when doing compilation?
17681 need_locks=$lt_need_locks
17683 # Do we need the lib prefix for modules?
17684 need_lib_prefix=$need_lib_prefix
17686 # Do we need a version for libraries?
17687 need_version=$need_version
17689 # Whether dlopen is supported.
17690 dlopen_support=$enable_dlopen
17692 # Whether dlopen of programs is supported.
17693 dlopen_self=$enable_dlopen_self
17695 # Whether dlopen of statically linked programs is supported.
17696 dlopen_self_static=$enable_dlopen_self_static
17698 # Compiler flag to prevent dynamic linking.
17699 link_static_flag=$lt_lt_prog_compiler_static_F77
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17704 # Compiler flag to allow reflexive dlopens.
17705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17707 # Compiler flag to generate shared objects directly from archives.
17708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17710 # Compiler flag to generate thread-safe objects.
17711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17713 # Library versioning type.
17714 version_type=$version_type
17716 # Format of library name prefix.
17717 libname_spec=$lt_libname_spec
17719 # List of archive names. First name is the real one, the rest are links.
17720 # The last name is the one that the linker finds with -lNAME.
17721 library_names_spec=$lt_library_names_spec
17723 # The coded name of the library, if different from the real name.
17724 soname_spec=$lt_soname_spec
17726 # Commands used to build and install an old-style archive.
17728 old_archive_cmds=$lt_old_archive_cmds_F77
17729 old_postinstall_cmds=$lt_old_postinstall_cmds
17730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17732 # Create an old-style archive from a shared archive.
17733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17735 # Create a temporary old-style archive to link instead of a shared archive.
17736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17738 # Commands used to build and install a shared archive.
17739 archive_cmds=$lt_archive_cmds_F77
17740 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17741 postinstall_cmds=$lt_postinstall_cmds
17742 postuninstall_cmds=$lt_postuninstall_cmds
17744 # Commands used to build a loadable module (assumed same as above if empty)
17745 module_cmds=$lt_module_cmds_F77
17746 module_expsym_cmds=$lt_module_expsym_cmds_F77
17748 # Commands to strip libraries.
17749 old_striplib=$lt_old_striplib
17750 striplib=$lt_striplib
17752 # Dependencies to place before the objects being linked to create a
17754 predep_objects=$lt_predep_objects_F77
17756 # Dependencies to place after the objects being linked to create a
17758 postdep_objects=$lt_postdep_objects_F77
17760 # Dependencies to place before the objects being linked to create a
17762 predeps=$lt_predeps_F77
17764 # Dependencies to place after the objects being linked to create a
17766 postdeps=$lt_postdeps_F77
17768 # The library search path used internally by the compiler when linking
17769 # a shared library.
17770 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17772 # Method to check whether dependent libraries are shared objects.
17773 deplibs_check_method=$lt_deplibs_check_method
17775 # Command to use when deplibs_check_method == file_magic.
17776 file_magic_cmd=$lt_file_magic_cmd
17778 # Flag that allows shared libraries with undefined symbols to be built.
17779 allow_undefined_flag=$lt_allow_undefined_flag_F77
17781 # Flag that forces no undefined symbols.
17782 no_undefined_flag=$lt_no_undefined_flag_F77
17784 # Commands used to finish a libtool library installation in a directory.
17785 finish_cmds=$lt_finish_cmds
17787 # Same as above, but a single script fragment to be evaled but not shown.
17788 finish_eval=$lt_finish_eval
17790 # Take the output of nm and produce a listing of raw symbols and C names.
17791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17793 # Transform the output of nm in a proper C declaration
17794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17796 # Transform the output of nm in a C name address pair
17797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17799 # This is the shared library runtime path variable.
17800 runpath_var=$runpath_var
17802 # This is the shared library path variable.
17803 shlibpath_var=$shlibpath_var
17805 # Is shlibpath searched before the hard-coded library search path?
17806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17808 # How to hardcode a shared library path into an executable.
17809 hardcode_action=$hardcode_action_F77
17811 # Whether we should hardcode library paths into libraries.
17812 hardcode_into_libs=$hardcode_into_libs
17814 # Flag to hardcode \$libdir into a binary during linking.
17815 # This must work even if \$libdir does not exist.
17816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17818 # If ld is used when linking, flag to hardcode \$libdir into
17819 # a binary during linking. This must work even if \$libdir does
17821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17823 # Whether we need a single -rpath flag with a separated argument.
17824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17827 # resulting binary.
17828 hardcode_direct=$hardcode_direct_F77
17830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_minus_L=$hardcode_minus_L_F77
17834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17835 # the resulting binary.
17836 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17838 # Set to yes if building a shared library automatically hardcodes DIR into the library
17839 # and all subsequent libraries and executables linked against it.
17840 hardcode_automatic=$hardcode_automatic_F77
17842 # Variables whose values should be saved in libtool wrapper scripts and
17843 # restored at relink time.
17844 variables_saved_for_relink="$variables_saved_for_relink"
17846 # Whether libtool must link a program against all its dependency libraries.
17847 link_all_deplibs=$link_all_deplibs_F77
17849 # Compile-time system search path for libraries
17850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17852 # Run-time system search path for libraries
17853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17855 # Fix the shell variable \$srcfile for the compiler.
17856 fix_srcfile_path=$lt_fix_srcfile_path
17858 # Set to yes if exported symbols are required.
17859 always_export_symbols=$always_export_symbols_F77
17861 # The commands to list exported symbols.
17862 export_symbols_cmds=$lt_export_symbols_cmds_F77
17864 # The commands to extract the exported symbol list from a shared archive.
17865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17867 # Symbols that should not be listed in the preloaded symbols.
17868 exclude_expsyms=$lt_exclude_expsyms_F77
17870 # Symbols that must always be exported.
17871 include_expsyms=$lt_include_expsyms_F77
17873 # ### END LIBTOOL TAG CONFIG: $tagname
17879 # If there is no Makefile yet, we rely on a make rule to execute
17880 # `config.status --recheck' to rerun these tests and create the
17881 # libtool script then.
17882 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17883 if test -f "$ltmain_in"; then
17884 test -f Makefile && make "$ltmain"
17890 ac_cpp='$CPP $CPPFLAGS'
17891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17903 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17906 # Source file extension for Java test sources.
17909 # Object file extension for compiled Java test sources.
17913 # Code to be used in simple compile tests
17914 lt_simple_compile_test_code="class foo {}"
17916 # Code to be used in simple link tests
17917 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17921 # If no C compiler was specified, use CC.
17924 # If no C compiler flags were specified, use CFLAGS.
17925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17927 # Allow CC to be a program name with arguments.
17931 # save warnings/boilerplate of simple test code
17932 ac_outfile=conftest.$ac_objext
17933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17935 _lt_compiler_boilerplate=`cat conftest.err`
17938 ac_outfile=conftest.$ac_objext
17939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17941 _lt_linker_boilerplate=`cat conftest.err`
17945 # Allow CC to be a program name with arguments.
17950 for cc_temp in $compiler""; do
17952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17962 archive_cmds_need_lc_GCJ=no
17964 old_archive_cmds_GCJ=$old_archive_cmds
17967 lt_prog_compiler_no_builtin_flag_GCJ=
17969 if test "$GCC" = yes; then
17970 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 lt_cv_prog_compiler_rtti_exceptions=no
17979 ac_outfile=conftest.$ac_objext
17980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17981 lt_compiler_flag="-fno-rtti -fno-exceptions"
17982 # Insert the option either (1) after the last *FLAGS variable, or
17983 # (2) before a word containing "conftest.", or (3) at the end.
17984 # Note that $ac_compile itself does not contain backslashes and begins
17985 # with a dollar sign (not a hyphen), so the echo should work correctly.
17986 # The option is referenced via a variable to avoid confusing sed.
17987 lt_compile=`echo "$ac_compile" | $SED \
17988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17990 -e 's:$: $lt_compiler_flag:'`
17991 (eval echo "\"\$as_me:17991: $lt_compile\"" >&5)
17992 (eval "$lt_compile" 2>conftest.err)
17994 cat conftest.err >&5
17995 echo "$as_me:17995: \$? = $ac_status" >&5
17996 if (exit $ac_status) && test -s "$ac_outfile"; then
17997 # The compiler can only warn and ignore the option if not recognized
17998 # So say no if there are warnings other than the usual output.
17999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18002 lt_cv_prog_compiler_rtti_exceptions=yes
18008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18012 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18019 lt_prog_compiler_wl_GCJ=
18020 lt_prog_compiler_pic_GCJ=
18021 lt_prog_compiler_static_GCJ=
18023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18026 if test "$GCC" = yes; then
18027 lt_prog_compiler_wl_GCJ='-Wl,'
18028 lt_prog_compiler_static_GCJ='-static'
18032 # All AIX code is PIC.
18033 if test "$host_cpu" = ia64; then
18034 # AIX 5 now supports IA64 processor
18035 lt_prog_compiler_static_GCJ='-Bstatic'
18040 # FIXME: we need at least 68020 code to build shared libraries, but
18041 # adding the `-m68020' flag to GCC prevents building anything better,
18043 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18047 # PIC is the default for these OSes.
18050 mingw* | cygwin* | pw32* | os2*)
18051 # This hack is so that the source file can tell whether it is being
18052 # built for inclusion in a dll (and should export symbols for example).
18053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18054 # (--disable-auto-import) libraries
18055 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18058 darwin* | rhapsody*)
18059 # PIC is the default on this platform
18060 # Common symbols not allowed in MH_DYLIB files
18061 lt_prog_compiler_pic_GCJ='-fno-common'
18065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18066 # Instead, we relocate shared libraries at runtime.
18070 # Just because we use GCC doesn't mean we suddenly get shared libraries
18071 # on systems that don't support them.
18072 lt_prog_compiler_can_build_shared_GCJ=no
18077 if test -d /usr/nec; then
18078 lt_prog_compiler_pic_GCJ=-Kconform_pic
18083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18084 # not for PA HP-UX.
18090 lt_prog_compiler_pic_GCJ='-fPIC'
18096 lt_prog_compiler_pic_GCJ='-fPIC'
18100 # PORTME Check for flag to pass linker flags through the system compiler.
18103 lt_prog_compiler_wl_GCJ='-Wl,'
18104 if test "$host_cpu" = ia64; then
18105 # AIX 5 now supports IA64 processor
18106 lt_prog_compiler_static_GCJ='-Bstatic'
18108 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18112 # PIC is the default on this platform
18113 # Common symbols not allowed in MH_DYLIB files
18114 case $cc_basename in
18116 lt_prog_compiler_pic_GCJ='-qnocommon'
18117 lt_prog_compiler_wl_GCJ='-Wl,'
18122 mingw* | cygwin* | pw32* | os2*)
18123 # This hack is so that the source file can tell whether it is being
18124 # built for inclusion in a dll (and should export symbols for example).
18125 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18128 hpux9* | hpux10* | hpux11*)
18129 lt_prog_compiler_wl_GCJ='-Wl,'
18130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18131 # not for PA HP-UX.
18137 lt_prog_compiler_pic_GCJ='+Z'
18140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18141 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18144 irix5* | irix6* | nonstopux*)
18145 lt_prog_compiler_wl_GCJ='-Wl,'
18146 # PIC (with -KPIC) is the default.
18147 lt_prog_compiler_static_GCJ='-non_shared'
18151 lt_prog_compiler_pic_GCJ='-KPIC'
18152 lt_prog_compiler_static_GCJ='-Bstatic'
18155 linux* | k*bsd*-gnu)
18156 case $cc_basename in
18158 lt_prog_compiler_wl_GCJ='-Wl,'
18159 lt_prog_compiler_pic_GCJ='-KPIC'
18160 lt_prog_compiler_static_GCJ='-static'
18162 pgcc* | pgf77* | pgf90* | pgf95*)
18163 # Portland Group compilers (*not* the Pentium gcc compiler,
18164 # which looks to be a dead project)
18165 lt_prog_compiler_wl_GCJ='-Wl,'
18166 lt_prog_compiler_pic_GCJ='-fpic'
18167 lt_prog_compiler_static_GCJ='-Bstatic'
18170 lt_prog_compiler_wl_GCJ='-Wl,'
18171 # All Alpha code is PIC.
18172 lt_prog_compiler_static_GCJ='-non_shared'
18175 case `$CC -V 2>&1 | sed 5q` in
18178 lt_prog_compiler_pic_GCJ='-KPIC'
18179 lt_prog_compiler_static_GCJ='-Bstatic'
18180 lt_prog_compiler_wl_GCJ='-Wl,'
18183 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18184 lt_prog_compiler_pic_GCJ='-KPIC'
18185 lt_prog_compiler_static_GCJ='-Bstatic'
18186 lt_prog_compiler_wl_GCJ=''
18193 osf3* | osf4* | osf5*)
18194 lt_prog_compiler_wl_GCJ='-Wl,'
18195 # All OSF/1 code is PIC.
18196 lt_prog_compiler_static_GCJ='-non_shared'
18200 lt_prog_compiler_static_GCJ='-non_shared'
18204 lt_prog_compiler_pic_GCJ='-KPIC'
18205 lt_prog_compiler_static_GCJ='-Bstatic'
18206 case $cc_basename in
18207 f77* | f90* | f95*)
18208 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18210 lt_prog_compiler_wl_GCJ='-Wl,';;
18215 lt_prog_compiler_wl_GCJ='-Qoption ld '
18216 lt_prog_compiler_pic_GCJ='-PIC'
18217 lt_prog_compiler_static_GCJ='-Bstatic'
18220 sysv4 | sysv4.2uw2* | sysv4.3*)
18221 lt_prog_compiler_wl_GCJ='-Wl,'
18222 lt_prog_compiler_pic_GCJ='-KPIC'
18223 lt_prog_compiler_static_GCJ='-Bstatic'
18227 if test -d /usr/nec ;then
18228 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18229 lt_prog_compiler_static_GCJ='-Bstatic'
18233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18234 lt_prog_compiler_wl_GCJ='-Wl,'
18235 lt_prog_compiler_pic_GCJ='-KPIC'
18236 lt_prog_compiler_static_GCJ='-Bstatic'
18240 lt_prog_compiler_wl_GCJ='-Wl,'
18241 lt_prog_compiler_can_build_shared_GCJ=no
18245 lt_prog_compiler_pic_GCJ='-pic'
18246 lt_prog_compiler_static_GCJ='-Bstatic'
18250 lt_prog_compiler_can_build_shared_GCJ=no
18255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18256 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18259 # Check to make sure the PIC flag actually works.
18261 if test -n "$lt_prog_compiler_pic_GCJ"; then
18263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18265 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 lt_prog_compiler_pic_works_GCJ=no
18269 ac_outfile=conftest.$ac_objext
18270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18271 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18272 # Insert the option either (1) after the last *FLAGS variable, or
18273 # (2) before a word containing "conftest.", or (3) at the end.
18274 # Note that $ac_compile itself does not contain backslashes and begins
18275 # with a dollar sign (not a hyphen), so the echo should work correctly.
18276 # The option is referenced via a variable to avoid confusing sed.
18277 lt_compile=`echo "$ac_compile" | $SED \
18278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18280 -e 's:$: $lt_compiler_flag:'`
18281 (eval echo "\"\$as_me:18281: $lt_compile\"" >&5)
18282 (eval "$lt_compile" 2>conftest.err)
18284 cat conftest.err >&5
18285 echo "$as_me:18285: \$? = $ac_status" >&5
18286 if (exit $ac_status) && test -s "$ac_outfile"; then
18287 # The compiler can only warn and ignore the option if not recognized
18288 # So say no if there are warnings other than the usual output.
18289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18292 lt_prog_compiler_pic_works_GCJ=yes
18298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18299 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18301 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18302 case $lt_prog_compiler_pic_GCJ in
18304 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18307 lt_prog_compiler_pic_GCJ=
18308 lt_prog_compiler_can_build_shared_GCJ=no
18313 # For platforms which do not support PIC, -DPIC is meaningless:
18315 lt_prog_compiler_pic_GCJ=
18318 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18323 # Check to make sure the static flag actually works.
18325 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18328 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 lt_prog_compiler_static_works_GCJ=no
18332 save_LDFLAGS="$LDFLAGS"
18333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18336 # The linker can only warn and ignore the option if not recognized
18337 # So say no if there are warnings
18338 if test -s conftest.err; then
18339 # Append any errors to the config.log.
18340 cat conftest.err 1>&5
18341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18343 if diff conftest.exp conftest.er2 >/dev/null; then
18344 lt_prog_compiler_static_works_GCJ=yes
18347 lt_prog_compiler_static_works_GCJ=yes
18351 LDFLAGS="$save_LDFLAGS"
18354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18355 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18357 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18360 lt_prog_compiler_static_GCJ=
18364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18366 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 lt_cv_prog_compiler_c_o_GCJ=no
18370 $rm -r conftest 2>/dev/null
18374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18376 lt_compiler_flag="-o out/conftest2.$ac_objext"
18377 # Insert the option either (1) after the last *FLAGS variable, or
18378 # (2) before a word containing "conftest.", or (3) at the end.
18379 # Note that $ac_compile itself does not contain backslashes and begins
18380 # with a dollar sign (not a hyphen), so the echo should work correctly.
18381 lt_compile=`echo "$ac_compile" | $SED \
18382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18384 -e 's:$: $lt_compiler_flag:'`
18385 (eval echo "\"\$as_me:18385: $lt_compile\"" >&5)
18386 (eval "$lt_compile" 2>out/conftest.err)
18388 cat out/conftest.err >&5
18389 echo "$as_me:18389: \$? = $ac_status" >&5
18390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18392 # The compiler can only warn and ignore the option if not recognized
18393 # So say no if there are warnings
18394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18397 lt_cv_prog_compiler_c_o_GCJ=yes
18402 # SGI C++ compiler will create directory out/ii_files/ for
18403 # template instantiation
18404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18405 $rm out/* && rmdir out
18411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18415 hard_links="nottested"
18416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18417 # do not overwrite the value of need_locks provided by the user
18418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18424 ln conftest.a conftest.b 2>&5 || hard_links=no
18425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18426 { echo "$as_me:$LINENO: result: $hard_links" >&5
18427 echo "${ECHO_T}$hard_links" >&6; }
18428 if test "$hard_links" = no; then
18429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18441 allow_undefined_flag_GCJ=
18442 enable_shared_with_static_runtimes_GCJ=no
18444 archive_expsym_cmds_GCJ=
18445 old_archive_From_new_cmds_GCJ=
18446 old_archive_from_expsyms_cmds_GCJ=
18447 export_dynamic_flag_spec_GCJ=
18448 whole_archive_flag_spec_GCJ=
18449 thread_safe_flag_spec_GCJ=
18450 hardcode_libdir_flag_spec_GCJ=
18451 hardcode_libdir_flag_spec_ld_GCJ=
18452 hardcode_libdir_separator_GCJ=
18453 hardcode_direct_GCJ=no
18454 hardcode_minus_L_GCJ=no
18455 hardcode_shlibpath_var_GCJ=unsupported
18456 link_all_deplibs_GCJ=unknown
18457 hardcode_automatic_GCJ=no
18459 module_expsym_cmds_GCJ=
18460 always_export_symbols_GCJ=no
18461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18462 # include_expsyms should be a list of space-separated symbols to be *always*
18463 # included in the symbol list
18464 include_expsyms_GCJ=
18465 # exclude_expsyms can be an extended regexp of symbols to exclude
18466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18468 # as well as any symbol that contains `d'.
18469 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18471 # platforms (ab)use it in PIC code, but their linkers get confused if
18472 # the symbol is explicitly referenced. Since portable code cannot
18473 # rely on this symbol name, it's probably fine to never include it in
18474 # preloaded symbol tables.
18475 extract_expsyms_cmds=
18476 # Just being paranoid about ensuring that cc_basename is set.
18477 for cc_temp in $compiler""; do
18479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18488 cygwin* | mingw* | pw32*)
18489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18490 # When not using gcc, we currently assume that we are using
18491 # Microsoft Visual C++.
18492 if test "$GCC" != yes; then
18497 # we just hope/assume this is gcc and not c89 (= MSVC++)
18506 if test "$with_gnu_ld" = yes; then
18507 # If archive_cmds runs LD, not CC, wlarc should be empty
18510 # Set some defaults for GNU ld with shared library support. These
18511 # are reset later if shared libraries are not supported. Putting them
18512 # here allows them to be overridden if necessary.
18513 runpath_var=LD_RUN_PATH
18514 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18515 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18516 # ancient GNU ld didn't support --whole-archive et. al.
18517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18518 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18520 whole_archive_flag_spec_GCJ=
18522 supports_anon_versioning=no
18523 case `$LD -v 2>/dev/null` in
18524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18527 *\ 2.11.*) ;; # other 2.11 versions
18528 *) supports_anon_versioning=yes ;;
18531 # See if GNU ld supports shared libraries.
18533 aix3* | aix4* | aix5*)
18534 # On AIX/PPC, the GNU linker is very broken
18535 if test "$host_cpu" != ia64; then
18539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18540 *** to be unable to reliably create shared libraries on AIX.
18541 *** Therefore, libtool is disabling shared libraries support. If you
18542 *** really care for shared libraries, you may want to modify your PATH
18543 *** so that a non-GNU linker is found, and then restart.
18550 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552 hardcode_minus_L_GCJ=yes
18554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18555 # that the semantics of dynamic libraries on AmigaOS, at least up
18556 # to version 4, is to share data among multiple programs linked
18557 # with the same dynamic library. Since this doesn't match the
18558 # behavior of shared libraries on other platforms, we can't use
18564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18565 allow_undefined_flag_GCJ=unsupported
18566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18567 # support --undefined. This deserves some investigation. FIXME
18568 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574 cygwin* | mingw* | pw32*)
18575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18576 # as there is no search path for DLLs.
18577 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18578 allow_undefined_flag_GCJ=unsupported
18579 always_export_symbols_GCJ=no
18580 enable_shared_with_static_runtimes_GCJ=yes
18581 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18585 # If the export-symbols file already is a .def file (1st line
18586 # is EXPORTS), use it as is; otherwise, prepend...
18587 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18588 cp $export_symbols $output_objdir/$soname.def;
18590 echo EXPORTS > $output_objdir/$soname.def;
18591 cat $export_symbols >> $output_objdir/$soname.def;
18593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18600 hardcode_direct_GCJ=no
18601 hardcode_shlibpath_var_GCJ=no
18602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18603 export_dynamic_flag_spec_GCJ='${wl}-E'
18604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18605 # Instead, shared libraries are loaded at an image base (0x10000000 by
18606 # default) and relocated if they conflict, which is a slow very memory
18607 # consuming and fragmenting process. To avoid this, we pick a random,
18608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18610 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18611 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18614 gnu* | linux* | k*bsd*-gnu)
18615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18617 case $cc_basename,$host_cpu in
18618 pgcc*) # Portland Group C compiler
18619 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18620 tmp_addflag=' $pic_flag'
18622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18623 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18624 tmp_addflag=' $pic_flag -Mnomain' ;;
18625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18626 tmp_addflag=' -i_dynamic' ;;
18627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18628 tmp_addflag=' -i_dynamic -nofor_main' ;;
18629 ifc* | ifort*) # Intel Fortran compiler
18630 tmp_addflag=' -nofor_main' ;;
18632 case `$CC -V 2>&1 | sed 5q` in
18633 *Sun\ C*) # Sun C 5.9
18634 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18635 tmp_sharedflag='-G' ;;
18636 *Sun\ F*) # Sun Fortran 8.3
18637 tmp_sharedflag='-G' ;;
18639 tmp_sharedflag='-shared' ;;
18641 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643 if test $supports_anon_versioning = yes; then
18644 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18646 $echo "local: *; };" >> $output_objdir/$libname.ver~
18647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18656 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18659 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18665 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18670 *** create shared libraries on Solaris systems. Therefore, libtool
18671 *** is disabling shared libraries support. We urge you to upgrade GNU
18672 *** binutils to release 2.9.1 or newer. Another option is to modify
18673 *** your PATH or compiler configuration so that the native linker is
18674 *** used, and then restart.
18677 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18686 case `$LD -v 2>&1` in
18687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18692 *** reliably create shared libraries on SCO systems. Therefore, libtool
18693 *** is disabling shared libraries support. We urge you to upgrade GNU
18694 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18695 *** your PATH or compiler configuration so that the native linker is
18696 *** used, and then restart.
18701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18702 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18703 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18704 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18713 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18715 hardcode_direct_GCJ=yes
18716 hardcode_shlibpath_var_GCJ=no
18720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18721 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18729 if test "$ld_shlibs_GCJ" = no; then
18731 hardcode_libdir_flag_spec_GCJ=
18732 export_dynamic_flag_spec_GCJ=
18733 whole_archive_flag_spec_GCJ=
18736 # PORTME fill in a description of your system's linker (not GNU ld)
18739 allow_undefined_flag_GCJ=unsupported
18740 always_export_symbols_GCJ=yes
18741 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18742 # Note: this linker hardcodes the directories in LIBPATH if there
18743 # are no directories specified by -L.
18744 hardcode_minus_L_GCJ=yes
18745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18746 # Neither direct hardcoding nor static linking is supported with a
18748 hardcode_direct_GCJ=unsupported
18753 if test "$host_cpu" = ia64; then
18754 # On IA64, the linker does run time linking by default, so we don't
18755 # have to do anything special.
18756 aix_use_runtimelinking=no
18757 exp_sym_flag='-Bexport'
18760 # If we're using GNU nm, then we don't want the "-C" option.
18761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18762 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18763 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18765 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18767 aix_use_runtimelinking=no
18769 # Test if we are trying to use run time linking or normal
18770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18771 # need to do runtime linking.
18772 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18773 for ld_flag in $LDFLAGS; do
18774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18775 aix_use_runtimelinking=yes
18782 exp_sym_flag='-bexport'
18783 no_entry_flag='-bnoentry'
18786 # When large executables or shared objects are built, AIX ld can
18787 # have problems creating the table of contents. If linking a library
18788 # or program results in "error TOC overflow" add -mminimal-toc to
18789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18792 archive_cmds_GCJ=''
18793 hardcode_direct_GCJ=yes
18794 hardcode_libdir_separator_GCJ=':'
18795 link_all_deplibs_GCJ=yes
18797 if test "$GCC" = yes; then
18798 case $host_os in aix4.[012]|aix4.[012].*)
18799 # We only want to do this on AIX 4.2 and lower, the check
18800 # below for broken collect2 doesn't work under 4.3+
18801 collect2name=`${CC} -print-prog-name=collect2`
18802 if test -f "$collect2name" && \
18803 strings "$collect2name" | grep resolve_lib_name >/dev/null
18805 # We have reworked collect2
18808 # We have old collect2
18809 hardcode_direct_GCJ=unsupported
18810 # It fails to find uninstalled libraries when the uninstalled
18811 # path is not listed in the libpath. Setting hardcode_minus_L
18812 # to unsupported forces relinking
18813 hardcode_minus_L_GCJ=yes
18814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18815 hardcode_libdir_separator_GCJ=
18819 shared_flag='-shared'
18820 if test "$aix_use_runtimelinking" = yes; then
18821 shared_flag="$shared_flag "'${wl}-G'
18825 if test "$host_cpu" = ia64; then
18826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18827 # chokes on -Wl,-G. The following line is correct:
18830 if test "$aix_use_runtimelinking" = yes; then
18831 shared_flag='${wl}-G'
18833 shared_flag='${wl}-bM:SRE'
18838 # It seems that -bexpall does not export symbols beginning with
18839 # underscore (_), so it is better to generate a list of symbols to export.
18840 always_export_symbols_GCJ=yes
18841 if test "$aix_use_runtimelinking" = yes; then
18842 # Warning - without using the other runtime loading flags (-brtl),
18843 # -berok will link without error, but may produce a broken library.
18844 allow_undefined_flag_GCJ='-berok'
18845 # Determine the default libpath from the value encoded in an empty executable.
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_link") 2>conftest.er1
18870 grep -v '^ *+' conftest.er1 >conftest.err
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } && {
18875 test -z "$ac_c_werror_flag" ||
18876 test ! -s conftest.err
18877 } && test -s conftest$ac_exeext &&
18878 $as_test_x conftest$ac_exeext; then
18880 lt_aix_libpath_sed='
18881 /Import File Strings/,/^$/ {
18887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18888 # Check for a 64-bit object if we didn't find anything.
18889 if test -z "$aix_libpath"; then
18890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900 conftest$ac_exeext conftest.$ac_ext
18901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18903 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18904 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18906 if test "$host_cpu" = ia64; then
18907 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18908 allow_undefined_flag_GCJ="-z nodefs"
18909 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18911 # Determine the default libpath from the value encoded in an empty executable.
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18936 grep -v '^ *+' conftest.er1 >conftest.err
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } && {
18941 test -z "$ac_c_werror_flag" ||
18942 test ! -s conftest.err
18943 } && test -s conftest$ac_exeext &&
18944 $as_test_x conftest$ac_exeext; then
18946 lt_aix_libpath_sed='
18947 /Import File Strings/,/^$/ {
18953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18954 # Check for a 64-bit object if we didn't find anything.
18955 if test -z "$aix_libpath"; then
18956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18966 conftest$ac_exeext conftest.$ac_ext
18967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18969 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18970 # Warning - without using the other run time loading flags,
18971 # -berok will link without error, but may produce a broken library.
18972 no_undefined_flag_GCJ=' ${wl}-bernotok'
18973 allow_undefined_flag_GCJ=' ${wl}-berok'
18974 # Exported symbols can be pulled into shared objects from archives
18975 whole_archive_flag_spec_GCJ='$convenience'
18976 archive_cmds_need_lc_GCJ=yes
18977 # This is similar to how AIX traditionally builds its shared libraries.
18978 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18984 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18985 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18986 hardcode_minus_L_GCJ=yes
18987 # see comment about different semantics on the GNU ld section
18992 export_dynamic_flag_spec_GCJ=-rdynamic
18995 cygwin* | mingw* | pw32*)
18996 # When not using gcc, we currently assume that we are using
18997 # Microsoft Visual C++.
18998 # hardcode_libdir_flag_spec is actually meaningless, as there is
18999 # no search path for DLLs.
19000 hardcode_libdir_flag_spec_GCJ=' '
19001 allow_undefined_flag_GCJ=unsupported
19002 # Tell ltmain to make .lib files, not .a files.
19004 # Tell ltmain to make .dll files, not .so files.
19006 # FIXME: Setting linknames here is a bad hack.
19007 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19008 # The linker will automatically build a .lib file if we build a DLL.
19009 old_archive_From_new_cmds_GCJ='true'
19010 # FIXME: Should let the user specify the lib program.
19011 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19012 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19013 enable_shared_with_static_runtimes_GCJ=yes
19016 darwin* | rhapsody*)
19018 rhapsody* | darwin1.[012])
19019 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19023 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19025 case ${MACOSX_DEPLOYMENT_TARGET} in
19027 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19030 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19036 archive_cmds_need_lc_GCJ=no
19037 hardcode_direct_GCJ=no
19038 hardcode_automatic_GCJ=yes
19039 hardcode_shlibpath_var_GCJ=unsupported
19040 whole_archive_flag_spec_GCJ=''
19041 link_all_deplibs_GCJ=yes
19042 if test "$GCC" = yes ; then
19043 output_verbose_link_cmd='echo'
19044 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19045 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19047 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19048 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19050 case $cc_basename in
19052 output_verbose_link_cmd='echo'
19053 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19054 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19056 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19057 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19069 hardcode_shlibpath_var_GCJ=no
19076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19077 # support. Future versions do this automatically, but an explicit c++rt0.o
19078 # does not break anything, and helps significantly (at the cost of a little
19081 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19083 hardcode_direct_GCJ=yes
19084 hardcode_shlibpath_var_GCJ=no
19087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19089 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19090 hardcode_direct_GCJ=yes
19091 hardcode_minus_L_GCJ=yes
19092 hardcode_shlibpath_var_GCJ=no
19095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19096 freebsd* | dragonfly*)
19097 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19098 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19099 hardcode_direct_GCJ=yes
19100 hardcode_shlibpath_var_GCJ=no
19104 if test "$GCC" = yes; then
19105 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19107 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19109 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19110 hardcode_libdir_separator_GCJ=:
19111 hardcode_direct_GCJ=yes
19113 # hardcode_minus_L: Not really in the search PATH,
19114 # but as the default location of the library.
19115 hardcode_minus_L_GCJ=yes
19116 export_dynamic_flag_spec_GCJ='${wl}-E'
19120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19121 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19123 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19125 if test "$with_gnu_ld" = no; then
19126 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19127 hardcode_libdir_separator_GCJ=:
19129 hardcode_direct_GCJ=yes
19130 export_dynamic_flag_spec_GCJ='${wl}-E'
19132 # hardcode_minus_L: Not really in the search PATH,
19133 # but as the default location of the library.
19134 hardcode_minus_L_GCJ=yes
19139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19142 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19145 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19148 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19157 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19160 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19164 if test "$with_gnu_ld" = no; then
19165 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19166 hardcode_libdir_separator_GCJ=:
19170 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19171 hardcode_direct_GCJ=no
19172 hardcode_shlibpath_var_GCJ=no
19175 hardcode_direct_GCJ=yes
19176 export_dynamic_flag_spec_GCJ='${wl}-E'
19178 # hardcode_minus_L: Not really in the search PATH,
19179 # but as the default location of the library.
19180 hardcode_minus_L_GCJ=yes
19186 irix5* | irix6* | nonstopux*)
19187 if test "$GCC" = yes; then
19188 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19190 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19191 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19194 hardcode_libdir_separator_GCJ=:
19195 link_all_deplibs_GCJ=yes
19199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19202 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19205 hardcode_direct_GCJ=yes
19206 hardcode_shlibpath_var_GCJ=no
19210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19211 hardcode_direct_GCJ=yes
19212 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19213 hardcode_libdir_separator_GCJ=:
19214 hardcode_shlibpath_var_GCJ=no
19218 if test -f /usr/libexec/ld.so; then
19219 hardcode_direct_GCJ=yes
19220 hardcode_shlibpath_var_GCJ=no
19221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19222 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19223 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19224 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19225 export_dynamic_flag_spec_GCJ='${wl}-E'
19228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19229 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19230 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19233 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245 hardcode_minus_L_GCJ=yes
19246 allow_undefined_flag_GCJ=unsupported
19247 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19248 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19252 if test "$GCC" = yes; then
19253 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19254 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19256 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19257 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19260 hardcode_libdir_separator_GCJ=:
19263 osf4* | osf5*) # as osf3* with the addition of -msym flag
19264 if test "$GCC" = yes; then
19265 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19266 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19269 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19270 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19271 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19272 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19274 # Both c and cxx compiler support -rpath directly
19275 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19277 hardcode_libdir_separator_GCJ=:
19281 no_undefined_flag_GCJ=' -z text'
19282 if test "$GCC" = yes; then
19284 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19286 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19289 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294 hardcode_shlibpath_var_GCJ=no
19296 solaris2.[0-5] | solaris2.[0-5].*) ;;
19298 # The compiler driver will combine and reorder linker options,
19299 # but understands `-z linker_flag'. GCC discards it without `$wl',
19300 # but is careful enough not to reorder.
19301 # Supported since Solaris 2.6 (maybe 2.5.1?)
19302 if test "$GCC" = yes; then
19303 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19305 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19309 link_all_deplibs_GCJ=yes
19313 if test "x$host_vendor" = xsequent; then
19314 # Use $CC to link under sequent, because it throws in some extra .o
19315 # files that make .init and .fini sections work.
19316 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19321 hardcode_direct_GCJ=yes
19322 hardcode_minus_L_GCJ=yes
19323 hardcode_shlibpath_var_GCJ=no
19327 case $host_vendor in
19329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330 hardcode_direct_GCJ=yes # is this really true???
19333 ## LD is ld it makes a PLAMLIB
19334 ## CC just makes a GrossModule.
19335 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19336 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19337 hardcode_direct_GCJ=no
19340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19341 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19344 runpath_var='LD_RUN_PATH'
19345 hardcode_shlibpath_var_GCJ=no
19349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19350 hardcode_shlibpath_var_GCJ=no
19351 export_dynamic_flag_spec_GCJ='-Bexport'
19355 if test -d /usr/nec; then
19356 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357 hardcode_shlibpath_var_GCJ=no
19358 runpath_var=LD_RUN_PATH
19359 hardcode_runpath_var=yes
19364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19365 no_undefined_flag_GCJ='${wl}-z,text'
19366 archive_cmds_need_lc_GCJ=no
19367 hardcode_shlibpath_var_GCJ=no
19368 runpath_var='LD_RUN_PATH'
19370 if test "$GCC" = yes; then
19371 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19372 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19374 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19379 sysv5* | sco3.2v5* | sco5v6*)
19380 # Note: We can NOT use -z defs as we might desire, because we do not
19381 # link with -lc, and that would cause any symbols used from libc to
19382 # always be unresolved, which means just about no library would
19383 # ever link correctly. If we're not using GNU ld we use -z text
19384 # though, which does catch some bad symbols but isn't as heavy-handed
19386 no_undefined_flag_GCJ='${wl}-z,text'
19387 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19388 archive_cmds_need_lc_GCJ=no
19389 hardcode_shlibpath_var_GCJ=no
19390 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19391 hardcode_libdir_separator_GCJ=':'
19392 link_all_deplibs_GCJ=yes
19393 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19394 runpath_var='LD_RUN_PATH'
19396 if test "$GCC" = yes; then
19397 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19398 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19400 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19401 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19406 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19408 hardcode_shlibpath_var_GCJ=no
19417 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19418 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19419 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19422 # Do we need to explicitly link libc?
19424 case "x$archive_cmds_need_lc_GCJ" in
19426 # Assume -lc should be added
19427 archive_cmds_need_lc_GCJ=yes
19429 if test "$enable_shared" = yes && test "$GCC" = yes; then
19430 case $archive_cmds_GCJ in
19432 # FIXME: we may have to deal with multi-command sequences.
19435 # Test whether the compiler implicitly links with -lc since on some
19436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19437 # to ld, don't add -lc before -lgcc.
19438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } 2>conftest.err; then
19450 libobjs=conftest.$ac_objext
19452 wl=$lt_prog_compiler_wl_GCJ
19453 pic_flag=$lt_prog_compiler_pic_GCJ
19459 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19460 allow_undefined_flag_GCJ=
19461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19462 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }
19467 archive_cmds_need_lc_GCJ=no
19469 archive_cmds_need_lc_GCJ=yes
19471 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19473 cat conftest.err 1>&5
19476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19486 library_names_spec=
19487 libname_spec='lib$name'
19491 postuninstall_cmds=
19495 shlibpath_overrides_runpath=unknown
19497 dynamic_linker="$host_os ld.so"
19498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19500 need_lib_prefix=unknown
19501 hardcode_into_libs=no
19503 # when you set need_version to no, make sure it does not cause -set_version
19504 # flags to be left without arguments
19505 need_version=unknown
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19511 shlibpath_var=LIBPATH
19513 # AIX 3 has no versioning support, so we append a major version to the name.
19514 soname_spec='${libname}${release}${shared_ext}$major'
19521 hardcode_into_libs=yes
19522 if test "$host_cpu" = ia64; then
19523 # AIX 5 supports IA64
19524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19525 shlibpath_var=LD_LIBRARY_PATH
19527 # With GCC up to 2.95.x, collect2 would create an import file
19528 # for dependence libraries. The import file would start with
19529 # the line `#! .'. This would cause the generated library to
19530 # depend on `.', always an invalid library. This was fixed in
19531 # development snapshots of GCC prior to 3.0.
19533 aix4 | aix4.[01] | aix4.[01].*)
19534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19539 can_build_shared=no
19543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19544 # soname into executable. Probably we can add versioning support to
19545 # collect2, so additional links can be useful in future.
19546 if test "$aix_use_runtimelinking" = yes; then
19547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19548 # instead of lib<name>.a to let people know that these are not
19549 # typical AIX shared libraries.
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19552 # We preserve .a as extension for shared libraries through AIX4.2
19553 # and later when we are not doing run time linking.
19554 library_names_spec='${libname}${release}.a $libname.a'
19555 soname_spec='${libname}${release}${shared_ext}$major'
19557 shlibpath_var=LIBPATH
19562 library_names_spec='$libname.ixlibrary $libname.a'
19563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19564 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'
19568 library_names_spec='${libname}${shared_ext}'
19569 dynamic_linker="$host_os ld.so"
19570 shlibpath_var=LIBRARY_PATH
19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19577 soname_spec='${libname}${release}${shared_ext}$major'
19578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19579 shlibpath_var=LD_LIBRARY_PATH
19580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19582 # the default ld.so.conf also contains /usr/contrib/lib and
19583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19584 # libtool to hard-code these into programs
19587 cygwin* | mingw* | pw32*)
19588 version_type=windows
19593 case $GCC,$host_os in
19594 yes,cygwin* | yes,mingw* | yes,pw32*)
19595 library_names_spec='$libname.dll.a'
19596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19597 postinstall_cmds='base_file=`basename \${file}`~
19598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19599 dldir=$destdir/`dirname \$dlpath`~
19600 test -d \$dldir || mkdir -p \$dldir~
19601 $install_prog $dir/$dlname \$dldir/$dlname~
19602 chmod a+x \$dldir/$dlname'
19603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19604 dlpath=$dir/\$dldll~
19606 shlibpath_overrides_runpath=yes
19610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19615 # MinGW DLLs use traditional 'lib' prefix
19616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19619 # It is most probably a Windows format PATH printed by
19620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19621 # path with ; separators, and with drive letters. We can handle the
19622 # drive letters (cygwin fileutils understands them), so leave them,
19623 # especially as we might pass files found there to a mingw objdump,
19624 # which wouldn't understand a cygwinified path. Ahh.
19625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19631 # pw32 DLLs use 'pw' prefix rather than 'lib'
19632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19641 dynamic_linker='Win32 ld.exe'
19642 # FIXME: first we should search . and the directory the executable is in
19646 darwin* | rhapsody*)
19647 dynamic_linker="$host_os dyld"
19648 version_type=darwin
19651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19652 soname_spec='${libname}${release}${major}$shared_ext'
19653 shlibpath_overrides_runpath=yes
19654 shlibpath_var=DYLD_LIBRARY_PATH
19655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19665 soname_spec='${libname}${release}${shared_ext}$major'
19666 shlibpath_var=LD_LIBRARY_PATH
19673 freebsd* | dragonfly*)
19674 # DragonFly does not have aout. When/if they implement a new
19675 # versioning mechanism, adjust this.
19676 if test -x /usr/bin/objformat; then
19677 objformat=`/usr/bin/objformat`
19680 freebsd[123]*) objformat=aout ;;
19681 *) objformat=elf ;;
19684 version_type=freebsd-$objformat
19685 case $version_type in
19687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19696 shlibpath_var=LD_LIBRARY_PATH
19699 shlibpath_overrides_runpath=yes
19701 freebsd3.[01]* | freebsdelf3.[01]*)
19702 shlibpath_overrides_runpath=yes
19703 hardcode_into_libs=yes
19705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19707 shlibpath_overrides_runpath=no
19708 hardcode_into_libs=yes
19710 *) # from 4.6 on, and DragonFly
19711 shlibpath_overrides_runpath=yes
19712 hardcode_into_libs=yes
19721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19722 soname_spec='${libname}${release}${shared_ext}$major'
19723 shlibpath_var=LD_LIBRARY_PATH
19724 hardcode_into_libs=yes
19727 hpux9* | hpux10* | hpux11*)
19728 # Give a soname corresponding to the major version so that dld.sl refuses to
19729 # link against other versions.
19736 hardcode_into_libs=yes
19737 dynamic_linker="$host_os dld.so"
19738 shlibpath_var=LD_LIBRARY_PATH
19739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741 soname_spec='${libname}${release}${shared_ext}$major'
19742 if test "X$HPUX_IA64_MODE" = X32; then
19743 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19751 hardcode_into_libs=yes
19752 dynamic_linker="$host_os dld.sl"
19753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756 soname_spec='${libname}${release}${shared_ext}$major'
19757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19762 dynamic_linker="$host_os dld.sl"
19763 shlibpath_var=SHLIB_PATH
19764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766 soname_spec='${libname}${release}${shared_ext}$major'
19769 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19770 postinstall_cmds='chmod 555 $lib'
19777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19778 soname_spec='${libname}${release}${shared_ext}$major'
19779 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19780 shlibpath_var=LD_LIBRARY_PATH
19781 shlibpath_overrides_runpath=no
19782 hardcode_into_libs=yes
19785 irix5* | irix6* | nonstopux*)
19787 nonstopux*) version_type=nonstopux ;;
19789 if test "$lt_cv_prog_gnu_ld" = yes; then
19797 soname_spec='${libname}${release}${shared_ext}$major'
19798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19800 irix5* | nonstopux*)
19801 libsuff= shlibsuff=
19804 case $LD in # libtool.m4 will add one of these switches to LD
19805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19806 libsuff= shlibsuff= libmagic=32-bit;;
19807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19808 libsuff=32 shlibsuff=N32 libmagic=N32;;
19809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19811 *) libsuff= shlibsuff= libmagic=never-match;;
19815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19816 shlibpath_overrides_runpath=no
19817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19819 hardcode_into_libs=yes
19822 # No shared lib support for Linux oldld, aout, or coff.
19823 linux*oldld* | linux*aout* | linux*coff*)
19827 # This must be Linux ELF.
19828 linux* | k*bsd*-gnu)
19832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19835 shlibpath_var=LD_LIBRARY_PATH
19836 shlibpath_overrides_runpath=no
19837 # This implies no fast_install, which is unacceptable.
19838 # Some rework will be needed to allow for fast_install
19839 # before this can be enabled.
19840 hardcode_into_libs=yes
19841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19844 # Append ld.so.conf contents to the search path
19845 if test -f /etc/ld.so.conf; then
19846 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' ' '`
19847 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19850 # We used to test for /lib/ld.so.1 and disable shared libraries on
19851 # powerpc, because MkLinux only supported shared libraries with the
19852 # GNU dynamic linker. Since this was broken with cross compilers,
19853 # most powerpc-linux boxes support dynamic linking these days and
19854 # people can always --disable-shared, the test was removed, and we
19855 # assume the GNU/Linux dynamic linker is in use.
19856 dynamic_linker='GNU/Linux ld.so'
19863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19866 dynamic_linker='NetBSD (a.out) ld.so'
19868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19869 soname_spec='${libname}${release}${shared_ext}$major'
19870 dynamic_linker='NetBSD ld.elf_so'
19872 shlibpath_var=LD_LIBRARY_PATH
19873 shlibpath_overrides_runpath=yes
19874 hardcode_into_libs=yes
19879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19880 shlibpath_var=LD_LIBRARY_PATH
19881 shlibpath_overrides_runpath=yes
19888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19889 soname_spec='${libname}${release}${shared_ext}$major'
19890 shlibpath_var=LD_LIBRARY_PATH
19891 shlibpath_overrides_runpath=yes
19896 sys_lib_dlsearch_path_spec="/usr/lib"
19898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19901 *) need_version=no ;;
19903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19905 shlibpath_var=LD_LIBRARY_PATH
19906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19908 openbsd2.[89] | openbsd2.[89].*)
19909 shlibpath_overrides_runpath=no
19912 shlibpath_overrides_runpath=yes
19916 shlibpath_overrides_runpath=yes
19921 libname_spec='$name'
19924 library_names_spec='$libname${shared_ext} $libname.a'
19925 dynamic_linker='OS/2 ld.exe'
19926 shlibpath_var=LIBPATH
19929 osf3* | osf4* | osf5*)
19933 soname_spec='${libname}${release}${shared_ext}$major'
19934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19949 soname_spec='${libname}${release}${shared_ext}$major'
19950 shlibpath_var=LD_LIBRARY_PATH
19951 shlibpath_overrides_runpath=yes
19952 hardcode_into_libs=yes
19953 # ldd complains unless libraries are executable
19954 postinstall_cmds='chmod +x $lib'
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19961 shlibpath_var=LD_LIBRARY_PATH
19962 shlibpath_overrides_runpath=yes
19963 if test "$with_gnu_ld" = yes; then
19971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972 soname_spec='${libname}${release}${shared_ext}$major'
19973 shlibpath_var=LD_LIBRARY_PATH
19974 case $host_vendor in
19976 shlibpath_overrides_runpath=no
19978 export_dynamic_flag_spec='${wl}-Blargedynsym'
19979 runpath_var=LD_RUN_PATH
19987 shlibpath_overrides_runpath=no
19988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19994 if test -d /usr/nec ;then
19996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19997 soname_spec='$libname${shared_ext}.$major'
19998 shlibpath_var=LD_LIBRARY_PATH
20002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20003 version_type=freebsd-elf
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 shlibpath_var=LD_LIBRARY_PATH
20009 hardcode_into_libs=yes
20010 if test "$with_gnu_ld" = yes; then
20011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20012 shlibpath_overrides_runpath=no
20014 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20015 shlibpath_overrides_runpath=yes
20018 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20022 sys_lib_dlsearch_path_spec='/usr/lib'
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20028 soname_spec='${libname}${release}${shared_ext}$major'
20029 shlibpath_var=LD_LIBRARY_PATH
20036 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20037 echo "${ECHO_T}$dynamic_linker" >&6; }
20038 test "$dynamic_linker" = no && can_build_shared=no
20040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20041 if test "$GCC" = yes; then
20042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20045 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20046 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20047 hardcode_action_GCJ=
20048 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20049 test -n "$runpath_var_GCJ" || \
20050 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20052 # We can hardcode non-existant directories.
20053 if test "$hardcode_direct_GCJ" != no &&
20054 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20055 # have to relink, otherwise we might link with an installed library
20056 # when we should be linking with a yet-to-be-installed one
20057 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20058 test "$hardcode_minus_L_GCJ" != no; then
20059 # Linking always hardcodes the temporary library directory.
20060 hardcode_action_GCJ=relink
20062 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20063 hardcode_action_GCJ=immediate
20066 # We cannot hardcode anything, or else we can only hardcode existing
20068 hardcode_action_GCJ=unsupported
20070 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20071 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20073 if test "$hardcode_action_GCJ" = relink; then
20074 # Fast installation is not supported
20075 enable_fast_install=no
20076 elif test "$shlibpath_overrides_runpath" = yes ||
20077 test "$enable_shared" = no; then
20078 # Fast installation is not necessary
20079 enable_fast_install=needless
20083 # The else clause should only fire when bootstrapping the
20084 # libtool distribution, otherwise you forgot to ship ltmain.sh
20085 # with your package, and you will get complaints that there are
20086 # no rules to generate ltmain.sh.
20087 if test -f "$ltmain"; then
20088 # See if we are running on zsh, and set the options which allow our commands through
20089 # without removal of \ escapes.
20090 if test -n "${ZSH_VERSION+set}" ; then
20091 setopt NO_GLOB_SUBST
20093 # Now quote all the things that may contain metacharacters while being
20094 # careful not to overquote the AC_SUBSTed values. We take copies of the
20095 # variables and quote the copies for generation of the libtool script.
20096 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20098 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20099 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20100 deplibs_check_method reload_flag reload_cmds need_locks \
20101 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20102 lt_cv_sys_global_symbol_to_c_name_address \
20103 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20104 old_postinstall_cmds old_postuninstall_cmds \
20108 lt_prog_compiler_wl_GCJ \
20109 lt_prog_compiler_pic_GCJ \
20110 lt_prog_compiler_static_GCJ \
20111 lt_prog_compiler_no_builtin_flag_GCJ \
20112 export_dynamic_flag_spec_GCJ \
20113 thread_safe_flag_spec_GCJ \
20114 whole_archive_flag_spec_GCJ \
20115 enable_shared_with_static_runtimes_GCJ \
20116 old_archive_cmds_GCJ \
20117 old_archive_from_new_cmds_GCJ \
20118 predep_objects_GCJ \
20119 postdep_objects_GCJ \
20122 compiler_lib_search_path_GCJ \
20124 archive_expsym_cmds_GCJ \
20125 postinstall_cmds_GCJ \
20126 postuninstall_cmds_GCJ \
20127 old_archive_from_expsyms_cmds_GCJ \
20128 allow_undefined_flag_GCJ \
20129 no_undefined_flag_GCJ \
20130 export_symbols_cmds_GCJ \
20131 hardcode_libdir_flag_spec_GCJ \
20132 hardcode_libdir_flag_spec_ld_GCJ \
20133 hardcode_libdir_separator_GCJ \
20134 hardcode_automatic_GCJ \
20136 module_expsym_cmds_GCJ \
20137 lt_cv_prog_compiler_c_o_GCJ \
20138 fix_srcfile_path_GCJ \
20139 exclude_expsyms_GCJ \
20140 include_expsyms_GCJ; do
20143 old_archive_cmds_GCJ | \
20144 old_archive_from_new_cmds_GCJ | \
20145 archive_cmds_GCJ | \
20146 archive_expsym_cmds_GCJ | \
20147 module_cmds_GCJ | \
20148 module_expsym_cmds_GCJ | \
20149 old_archive_from_expsyms_cmds_GCJ | \
20150 export_symbols_cmds_GCJ | \
20151 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20152 postinstall_cmds | postuninstall_cmds | \
20153 old_postinstall_cmds | old_postuninstall_cmds | \
20154 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20155 # Double-quote double-evaled strings.
20156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20165 *'\$0 --fallback-echo"')
20166 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20172 cat <<__EOF__ >> "$cfgfile"
20173 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20177 # Shell to use when invoking shell scripts.
20180 # Whether or not to build shared libraries.
20181 build_libtool_libs=$enable_shared
20183 # Whether or not to build static libraries.
20184 build_old_libs=$enable_static
20186 # Whether or not to add -lc for building shared libraries.
20187 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20189 # Whether or not to disallow shared libs when runtime libs are static
20190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20192 # Whether or not to optimize for fast installation.
20193 fast_install=$enable_fast_install
20196 host_alias=$host_alias
20200 # The build system.
20201 build_alias=$build_alias
20205 # An echo program that does not interpret backslashes.
20210 AR_FLAGS=$lt_AR_FLAGS
20215 # LTCC compiler flags.
20216 LTCFLAGS=$lt_LTCFLAGS
20218 # A language-specific compiler.
20219 CC=$lt_compiler_GCJ
20221 # Is the compiler the GNU C compiler?
20227 # The linker used to build libraries.
20230 # Whether we need hard or soft links.
20233 # A BSD-compatible nm program.
20236 # A symbol stripping program
20239 # Used to examine libraries when file_magic_cmd begins "file"
20240 MAGIC_CMD=$MAGIC_CMD
20242 # Used on cygwin: DLL creation program.
20245 # Used on cygwin: object dumper.
20248 # Used on cygwin: assembler.
20251 # The name of the directory that contains temporary libtool files.
20254 # How to create reloadable object files.
20255 reload_flag=$lt_reload_flag
20256 reload_cmds=$lt_reload_cmds
20258 # How to pass a linker flag through the compiler.
20259 wl=$lt_lt_prog_compiler_wl_GCJ
20261 # Object file suffix (normally "o").
20262 objext="$ac_objext"
20264 # Old archive suffix (normally "a").
20267 # Shared library suffix (normally ".so").
20268 shrext_cmds='$shrext_cmds'
20270 # Executable file suffix (normally "").
20273 # Additional compiler flags for building library objects.
20274 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20277 # What is the maximum length of a command?
20278 max_cmd_len=$lt_cv_sys_max_cmd_len
20280 # Does compiler simultaneously support -c and -o options?
20281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20283 # Must we lock files when doing compilation?
20284 need_locks=$lt_need_locks
20286 # Do we need the lib prefix for modules?
20287 need_lib_prefix=$need_lib_prefix
20289 # Do we need a version for libraries?
20290 need_version=$need_version
20292 # Whether dlopen is supported.
20293 dlopen_support=$enable_dlopen
20295 # Whether dlopen of programs is supported.
20296 dlopen_self=$enable_dlopen_self
20298 # Whether dlopen of statically linked programs is supported.
20299 dlopen_self_static=$enable_dlopen_self_static
20301 # Compiler flag to prevent dynamic linking.
20302 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20304 # Compiler flag to turn off builtin functions.
20305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20307 # Compiler flag to allow reflexive dlopens.
20308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20310 # Compiler flag to generate shared objects directly from archives.
20311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20313 # Compiler flag to generate thread-safe objects.
20314 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20316 # Library versioning type.
20317 version_type=$version_type
20319 # Format of library name prefix.
20320 libname_spec=$lt_libname_spec
20322 # List of archive names. First name is the real one, the rest are links.
20323 # The last name is the one that the linker finds with -lNAME.
20324 library_names_spec=$lt_library_names_spec
20326 # The coded name of the library, if different from the real name.
20327 soname_spec=$lt_soname_spec
20329 # Commands used to build and install an old-style archive.
20331 old_archive_cmds=$lt_old_archive_cmds_GCJ
20332 old_postinstall_cmds=$lt_old_postinstall_cmds
20333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20335 # Create an old-style archive from a shared archive.
20336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20338 # Create a temporary old-style archive to link instead of a shared archive.
20339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20341 # Commands used to build and install a shared archive.
20342 archive_cmds=$lt_archive_cmds_GCJ
20343 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20344 postinstall_cmds=$lt_postinstall_cmds
20345 postuninstall_cmds=$lt_postuninstall_cmds
20347 # Commands used to build a loadable module (assumed same as above if empty)
20348 module_cmds=$lt_module_cmds_GCJ
20349 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20351 # Commands to strip libraries.
20352 old_striplib=$lt_old_striplib
20353 striplib=$lt_striplib
20355 # Dependencies to place before the objects being linked to create a
20357 predep_objects=$lt_predep_objects_GCJ
20359 # Dependencies to place after the objects being linked to create a
20361 postdep_objects=$lt_postdep_objects_GCJ
20363 # Dependencies to place before the objects being linked to create a
20365 predeps=$lt_predeps_GCJ
20367 # Dependencies to place after the objects being linked to create a
20369 postdeps=$lt_postdeps_GCJ
20371 # The library search path used internally by the compiler when linking
20372 # a shared library.
20373 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20375 # Method to check whether dependent libraries are shared objects.
20376 deplibs_check_method=$lt_deplibs_check_method
20378 # Command to use when deplibs_check_method == file_magic.
20379 file_magic_cmd=$lt_file_magic_cmd
20381 # Flag that allows shared libraries with undefined symbols to be built.
20382 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20384 # Flag that forces no undefined symbols.
20385 no_undefined_flag=$lt_no_undefined_flag_GCJ
20387 # Commands used to finish a libtool library installation in a directory.
20388 finish_cmds=$lt_finish_cmds
20390 # Same as above, but a single script fragment to be evaled but not shown.
20391 finish_eval=$lt_finish_eval
20393 # Take the output of nm and produce a listing of raw symbols and C names.
20394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20396 # Transform the output of nm in a proper C declaration
20397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20399 # Transform the output of nm in a C name address pair
20400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20402 # This is the shared library runtime path variable.
20403 runpath_var=$runpath_var
20405 # This is the shared library path variable.
20406 shlibpath_var=$shlibpath_var
20408 # Is shlibpath searched before the hard-coded library search path?
20409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20411 # How to hardcode a shared library path into an executable.
20412 hardcode_action=$hardcode_action_GCJ
20414 # Whether we should hardcode library paths into libraries.
20415 hardcode_into_libs=$hardcode_into_libs
20417 # Flag to hardcode \$libdir into a binary during linking.
20418 # This must work even if \$libdir does not exist.
20419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20421 # If ld is used when linking, flag to hardcode \$libdir into
20422 # a binary during linking. This must work even if \$libdir does
20424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20426 # Whether we need a single -rpath flag with a separated argument.
20427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20430 # resulting binary.
20431 hardcode_direct=$hardcode_direct_GCJ
20433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20434 # resulting binary.
20435 hardcode_minus_L=$hardcode_minus_L_GCJ
20437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20438 # the resulting binary.
20439 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20441 # Set to yes if building a shared library automatically hardcodes DIR into the library
20442 # and all subsequent libraries and executables linked against it.
20443 hardcode_automatic=$hardcode_automatic_GCJ
20445 # Variables whose values should be saved in libtool wrapper scripts and
20446 # restored at relink time.
20447 variables_saved_for_relink="$variables_saved_for_relink"
20449 # Whether libtool must link a program against all its dependency libraries.
20450 link_all_deplibs=$link_all_deplibs_GCJ
20452 # Compile-time system search path for libraries
20453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20455 # Run-time system search path for libraries
20456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20458 # Fix the shell variable \$srcfile for the compiler.
20459 fix_srcfile_path=$lt_fix_srcfile_path
20461 # Set to yes if exported symbols are required.
20462 always_export_symbols=$always_export_symbols_GCJ
20464 # The commands to list exported symbols.
20465 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20467 # The commands to extract the exported symbol list from a shared archive.
20468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20470 # Symbols that should not be listed in the preloaded symbols.
20471 exclude_expsyms=$lt_exclude_expsyms_GCJ
20473 # Symbols that must always be exported.
20474 include_expsyms=$lt_include_expsyms_GCJ
20476 # ### END LIBTOOL TAG CONFIG: $tagname
20482 # If there is no Makefile yet, we rely on a make rule to execute
20483 # `config.status --recheck' to rerun these tests and create the
20484 # libtool script then.
20485 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20486 if test -f "$ltmain_in"; then
20487 test -f Makefile && make "$ltmain"
20493 ac_cpp='$CPP $CPPFLAGS'
20494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20508 # Source file extension for RC test sources.
20511 # Object file extension for compiled RC test sources.
20515 # Code to be used in simple compile tests
20516 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20518 # Code to be used in simple link tests
20519 lt_simple_link_test_code="$lt_simple_compile_test_code"
20521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20523 # If no C compiler was specified, use CC.
20526 # If no C compiler flags were specified, use CFLAGS.
20527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20529 # Allow CC to be a program name with arguments.
20533 # save warnings/boilerplate of simple test code
20534 ac_outfile=conftest.$ac_objext
20535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20537 _lt_compiler_boilerplate=`cat conftest.err`
20540 ac_outfile=conftest.$ac_objext
20541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20543 _lt_linker_boilerplate=`cat conftest.err`
20547 # Allow CC to be a program name with arguments.
20552 for cc_temp in $compiler""; do
20554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20562 lt_cv_prog_compiler_c_o_RC=yes
20564 # The else clause should only fire when bootstrapping the
20565 # libtool distribution, otherwise you forgot to ship ltmain.sh
20566 # with your package, and you will get complaints that there are
20567 # no rules to generate ltmain.sh.
20568 if test -f "$ltmain"; then
20569 # See if we are running on zsh, and set the options which allow our commands through
20570 # without removal of \ escapes.
20571 if test -n "${ZSH_VERSION+set}" ; then
20572 setopt NO_GLOB_SUBST
20574 # Now quote all the things that may contain metacharacters while being
20575 # careful not to overquote the AC_SUBSTed values. We take copies of the
20576 # variables and quote the copies for generation of the libtool script.
20577 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20579 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20580 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20581 deplibs_check_method reload_flag reload_cmds need_locks \
20582 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20583 lt_cv_sys_global_symbol_to_c_name_address \
20584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20585 old_postinstall_cmds old_postuninstall_cmds \
20589 lt_prog_compiler_wl_RC \
20590 lt_prog_compiler_pic_RC \
20591 lt_prog_compiler_static_RC \
20592 lt_prog_compiler_no_builtin_flag_RC \
20593 export_dynamic_flag_spec_RC \
20594 thread_safe_flag_spec_RC \
20595 whole_archive_flag_spec_RC \
20596 enable_shared_with_static_runtimes_RC \
20597 old_archive_cmds_RC \
20598 old_archive_from_new_cmds_RC \
20599 predep_objects_RC \
20600 postdep_objects_RC \
20603 compiler_lib_search_path_RC \
20605 archive_expsym_cmds_RC \
20606 postinstall_cmds_RC \
20607 postuninstall_cmds_RC \
20608 old_archive_from_expsyms_cmds_RC \
20609 allow_undefined_flag_RC \
20610 no_undefined_flag_RC \
20611 export_symbols_cmds_RC \
20612 hardcode_libdir_flag_spec_RC \
20613 hardcode_libdir_flag_spec_ld_RC \
20614 hardcode_libdir_separator_RC \
20615 hardcode_automatic_RC \
20617 module_expsym_cmds_RC \
20618 lt_cv_prog_compiler_c_o_RC \
20619 fix_srcfile_path_RC \
20620 exclude_expsyms_RC \
20621 include_expsyms_RC; do
20624 old_archive_cmds_RC | \
20625 old_archive_from_new_cmds_RC | \
20626 archive_cmds_RC | \
20627 archive_expsym_cmds_RC | \
20629 module_expsym_cmds_RC | \
20630 old_archive_from_expsyms_cmds_RC | \
20631 export_symbols_cmds_RC | \
20632 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20633 postinstall_cmds | postuninstall_cmds | \
20634 old_postinstall_cmds | old_postuninstall_cmds | \
20635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20636 # Double-quote double-evaled strings.
20637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20646 *'\$0 --fallback-echo"')
20647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20653 cat <<__EOF__ >> "$cfgfile"
20654 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20658 # Shell to use when invoking shell scripts.
20661 # Whether or not to build shared libraries.
20662 build_libtool_libs=$enable_shared
20664 # Whether or not to build static libraries.
20665 build_old_libs=$enable_static
20667 # Whether or not to add -lc for building shared libraries.
20668 build_libtool_need_lc=$archive_cmds_need_lc_RC
20670 # Whether or not to disallow shared libs when runtime libs are static
20671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20673 # Whether or not to optimize for fast installation.
20674 fast_install=$enable_fast_install
20677 host_alias=$host_alias
20681 # The build system.
20682 build_alias=$build_alias
20686 # An echo program that does not interpret backslashes.
20691 AR_FLAGS=$lt_AR_FLAGS
20696 # LTCC compiler flags.
20697 LTCFLAGS=$lt_LTCFLAGS
20699 # A language-specific compiler.
20702 # Is the compiler the GNU C compiler?
20708 # The linker used to build libraries.
20711 # Whether we need hard or soft links.
20714 # A BSD-compatible nm program.
20717 # A symbol stripping program
20720 # Used to examine libraries when file_magic_cmd begins "file"
20721 MAGIC_CMD=$MAGIC_CMD
20723 # Used on cygwin: DLL creation program.
20726 # Used on cygwin: object dumper.
20729 # Used on cygwin: assembler.
20732 # The name of the directory that contains temporary libtool files.
20735 # How to create reloadable object files.
20736 reload_flag=$lt_reload_flag
20737 reload_cmds=$lt_reload_cmds
20739 # How to pass a linker flag through the compiler.
20740 wl=$lt_lt_prog_compiler_wl_RC
20742 # Object file suffix (normally "o").
20743 objext="$ac_objext"
20745 # Old archive suffix (normally "a").
20748 # Shared library suffix (normally ".so").
20749 shrext_cmds='$shrext_cmds'
20751 # Executable file suffix (normally "").
20754 # Additional compiler flags for building library objects.
20755 pic_flag=$lt_lt_prog_compiler_pic_RC
20758 # What is the maximum length of a command?
20759 max_cmd_len=$lt_cv_sys_max_cmd_len
20761 # Does compiler simultaneously support -c and -o options?
20762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20764 # Must we lock files when doing compilation?
20765 need_locks=$lt_need_locks
20767 # Do we need the lib prefix for modules?
20768 need_lib_prefix=$need_lib_prefix
20770 # Do we need a version for libraries?
20771 need_version=$need_version
20773 # Whether dlopen is supported.
20774 dlopen_support=$enable_dlopen
20776 # Whether dlopen of programs is supported.
20777 dlopen_self=$enable_dlopen_self
20779 # Whether dlopen of statically linked programs is supported.
20780 dlopen_self_static=$enable_dlopen_self_static
20782 # Compiler flag to prevent dynamic linking.
20783 link_static_flag=$lt_lt_prog_compiler_static_RC
20785 # Compiler flag to turn off builtin functions.
20786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20788 # Compiler flag to allow reflexive dlopens.
20789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20791 # Compiler flag to generate shared objects directly from archives.
20792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20794 # Compiler flag to generate thread-safe objects.
20795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20797 # Library versioning type.
20798 version_type=$version_type
20800 # Format of library name prefix.
20801 libname_spec=$lt_libname_spec
20803 # List of archive names. First name is the real one, the rest are links.
20804 # The last name is the one that the linker finds with -lNAME.
20805 library_names_spec=$lt_library_names_spec
20807 # The coded name of the library, if different from the real name.
20808 soname_spec=$lt_soname_spec
20810 # Commands used to build and install an old-style archive.
20812 old_archive_cmds=$lt_old_archive_cmds_RC
20813 old_postinstall_cmds=$lt_old_postinstall_cmds
20814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20816 # Create an old-style archive from a shared archive.
20817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20819 # Create a temporary old-style archive to link instead of a shared archive.
20820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20822 # Commands used to build and install a shared archive.
20823 archive_cmds=$lt_archive_cmds_RC
20824 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20825 postinstall_cmds=$lt_postinstall_cmds
20826 postuninstall_cmds=$lt_postuninstall_cmds
20828 # Commands used to build a loadable module (assumed same as above if empty)
20829 module_cmds=$lt_module_cmds_RC
20830 module_expsym_cmds=$lt_module_expsym_cmds_RC
20832 # Commands to strip libraries.
20833 old_striplib=$lt_old_striplib
20834 striplib=$lt_striplib
20836 # Dependencies to place before the objects being linked to create a
20838 predep_objects=$lt_predep_objects_RC
20840 # Dependencies to place after the objects being linked to create a
20842 postdep_objects=$lt_postdep_objects_RC
20844 # Dependencies to place before the objects being linked to create a
20846 predeps=$lt_predeps_RC
20848 # Dependencies to place after the objects being linked to create a
20850 postdeps=$lt_postdeps_RC
20852 # The library search path used internally by the compiler when linking
20853 # a shared library.
20854 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20856 # Method to check whether dependent libraries are shared objects.
20857 deplibs_check_method=$lt_deplibs_check_method
20859 # Command to use when deplibs_check_method == file_magic.
20860 file_magic_cmd=$lt_file_magic_cmd
20862 # Flag that allows shared libraries with undefined symbols to be built.
20863 allow_undefined_flag=$lt_allow_undefined_flag_RC
20865 # Flag that forces no undefined symbols.
20866 no_undefined_flag=$lt_no_undefined_flag_RC
20868 # Commands used to finish a libtool library installation in a directory.
20869 finish_cmds=$lt_finish_cmds
20871 # Same as above, but a single script fragment to be evaled but not shown.
20872 finish_eval=$lt_finish_eval
20874 # Take the output of nm and produce a listing of raw symbols and C names.
20875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20877 # Transform the output of nm in a proper C declaration
20878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20880 # Transform the output of nm in a C name address pair
20881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20883 # This is the shared library runtime path variable.
20884 runpath_var=$runpath_var
20886 # This is the shared library path variable.
20887 shlibpath_var=$shlibpath_var
20889 # Is shlibpath searched before the hard-coded library search path?
20890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20892 # How to hardcode a shared library path into an executable.
20893 hardcode_action=$hardcode_action_RC
20895 # Whether we should hardcode library paths into libraries.
20896 hardcode_into_libs=$hardcode_into_libs
20898 # Flag to hardcode \$libdir into a binary during linking.
20899 # This must work even if \$libdir does not exist.
20900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20902 # If ld is used when linking, flag to hardcode \$libdir into
20903 # a binary during linking. This must work even if \$libdir does
20905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20907 # Whether we need a single -rpath flag with a separated argument.
20908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20910 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20911 # resulting binary.
20912 hardcode_direct=$hardcode_direct_RC
20914 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20915 # resulting binary.
20916 hardcode_minus_L=$hardcode_minus_L_RC
20918 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20919 # the resulting binary.
20920 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20922 # Set to yes if building a shared library automatically hardcodes DIR into the library
20923 # and all subsequent libraries and executables linked against it.
20924 hardcode_automatic=$hardcode_automatic_RC
20926 # Variables whose values should be saved in libtool wrapper scripts and
20927 # restored at relink time.
20928 variables_saved_for_relink="$variables_saved_for_relink"
20930 # Whether libtool must link a program against all its dependency libraries.
20931 link_all_deplibs=$link_all_deplibs_RC
20933 # Compile-time system search path for libraries
20934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20936 # Run-time system search path for libraries
20937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20939 # Fix the shell variable \$srcfile for the compiler.
20940 fix_srcfile_path=$lt_fix_srcfile_path
20942 # Set to yes if exported symbols are required.
20943 always_export_symbols=$always_export_symbols_RC
20945 # The commands to list exported symbols.
20946 export_symbols_cmds=$lt_export_symbols_cmds_RC
20948 # The commands to extract the exported symbol list from a shared archive.
20949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20951 # Symbols that should not be listed in the preloaded symbols.
20952 exclude_expsyms=$lt_exclude_expsyms_RC
20954 # Symbols that must always be exported.
20955 include_expsyms=$lt_include_expsyms_RC
20957 # ### END LIBTOOL TAG CONFIG: $tagname
20963 # If there is no Makefile yet, we rely on a make rule to execute
20964 # `config.status --recheck' to rerun these tests and create the
20965 # libtool script then.
20966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20967 if test -f "$ltmain_in"; then
20968 test -f Makefile && make "$ltmain"
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20984 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20985 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20986 { (exit 1); exit 1; }; }
20990 # Append the new tag name to the list of available tags.
20991 if test -n "$tagname" ; then
20992 available_tags="$available_tags $tagname"
20998 # Now substitute the updated list of available tags.
20999 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21000 mv "${ofile}T" "$ofile"
21004 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21005 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21006 { (exit 1); exit 1; }; }
21012 # This can be used to rebuild libtool when needed
21013 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21015 # Always use our own libtool.
21016 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21018 # Prevent multiple expansion
21039 if test "x$CC" != xcc; then
21040 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21041 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21043 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21044 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21046 set dummy $CC; ac_cc=`echo $2 |
21047 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21048 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 cat >conftest.$ac_ext <<_ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21066 # Make sure it works both with $CC and with simple cc.
21067 # We do the test twice because some compilers refuse to overwrite an
21068 # existing .o file with -o, though they will create one.
21069 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21071 if { (case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_try") 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } &&
21080 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_try") 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); };
21090 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21091 if test "x$CC" != xcc; then
21092 # Test first that cc exists at all.
21093 if { ac_try='cc -c conftest.$ac_ext >&5'
21094 { (case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_try") 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; }; then
21103 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21105 if { (case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_try") 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116 *) ac_try_echo=$ac_try;;
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_try") 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); };
21127 # cc exists but doesn't like -o.
21128 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21133 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21135 rm -f core conftest*
21138 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21139 { echo "$as_me:$LINENO: result: yes" >&5
21140 echo "${ECHO_T}yes" >&6; }
21142 { echo "$as_me:$LINENO: result: no" >&5
21143 echo "${ECHO_T}no" >&6; }
21145 cat >>confdefs.h <<\_ACEOF
21146 #define NO_MINUS_C_MINUS_O 1
21151 # FIXME: we rely on the cache variable name because
21152 # there is no other way.
21154 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21155 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21156 # Losing compiler, so override with the script.
21157 # FIXME: It is wrong to rewrite CC.
21158 # But if we don't then we get into trouble of one sort or another.
21159 # A longer-term fix would be to have automake use am__CC in this case,
21160 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21161 CC="$am_aux_dir/compile $CC"
21166 if test "x$cross_compiling" = "xno"; then
21167 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21169 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21174 if test -n "$ac_tool_prefix"; then
21175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21176 set dummy ${ac_tool_prefix}ar; ac_word=$2
21177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21179 if test "${ac_cv_prog_AR+set}" = set; then
21180 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 if test -n "$AR"; then
21183 ac_cv_prog_AR="$AR" # Let the user override the test.
21185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186 for as_dir in $PATH
21189 test -z "$as_dir" && as_dir=.
21190 for ac_exec_ext in '' $ac_executable_extensions; do
21191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21192 ac_cv_prog_AR="${ac_tool_prefix}ar"
21193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21203 if test -n "$AR"; then
21204 { echo "$as_me:$LINENO: result: $AR" >&5
21205 echo "${ECHO_T}$AR" >&6; }
21207 { echo "$as_me:$LINENO: result: no" >&5
21208 echo "${ECHO_T}no" >&6; }
21213 if test -z "$ac_cv_prog_AR"; then
21215 # Extract the first word of "ar", so it can be a program name with args.
21216 set dummy ar; ac_word=$2
21217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21219 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 if test -n "$ac_ct_AR"; then
21223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21226 for as_dir in $PATH
21229 test -z "$as_dir" && as_dir=.
21230 for ac_exec_ext in '' $ac_executable_extensions; do
21231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21232 ac_cv_prog_ac_ct_AR="ar"
21233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21243 if test -n "$ac_ct_AR"; then
21244 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21245 echo "${ECHO_T}$ac_ct_AR" >&6; }
21247 { echo "$as_me:$LINENO: result: no" >&5
21248 echo "${ECHO_T}no" >&6; }
21251 if test "x$ac_ct_AR" = x; then
21254 case $cross_compiling:$ac_tool_warned in
21256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21257 whose name does not start with the host triplet. If you think this
21258 configuration is useful to you, please write to autoconf@gnu.org." >&5
21259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21260 whose name does not start with the host triplet. If you think this
21261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21262 ac_tool_warned=yes ;;
21267 AR="$ac_cv_prog_AR"
21270 if test -n "$ac_tool_prefix"; then
21271 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21272 set dummy ${ac_tool_prefix}ld; ac_word=$2
21273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21275 if test "${ac_cv_prog_LD+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 if test -n "$LD"; then
21279 ac_cv_prog_LD="$LD" # Let the user override the test.
21281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21282 for as_dir in $PATH
21285 test -z "$as_dir" && as_dir=.
21286 for ac_exec_ext in '' $ac_executable_extensions; do
21287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21288 ac_cv_prog_LD="${ac_tool_prefix}ld"
21289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21299 if test -n "$LD"; then
21300 { echo "$as_me:$LINENO: result: $LD" >&5
21301 echo "${ECHO_T}$LD" >&6; }
21303 { echo "$as_me:$LINENO: result: no" >&5
21304 echo "${ECHO_T}no" >&6; }
21309 if test -z "$ac_cv_prog_LD"; then
21311 # Extract the first word of "ld", so it can be a program name with args.
21312 set dummy ld; ac_word=$2
21313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21315 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 if test -n "$ac_ct_LD"; then
21319 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21322 for as_dir in $PATH
21325 test -z "$as_dir" && as_dir=.
21326 for ac_exec_ext in '' $ac_executable_extensions; do
21327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21328 ac_cv_prog_ac_ct_LD="ld"
21329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21338 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21339 if test -n "$ac_ct_LD"; then
21340 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21341 echo "${ECHO_T}$ac_ct_LD" >&6; }
21343 { echo "$as_me:$LINENO: result: no" >&5
21344 echo "${ECHO_T}no" >&6; }
21347 if test "x$ac_ct_LD" = x; then
21350 case $cross_compiling:$ac_tool_warned in
21352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21353 whose name does not start with the host triplet. If you think this
21354 configuration is useful to you, please write to autoconf@gnu.org." >&5
21355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21356 whose name does not start with the host triplet. If you think this
21357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21358 ac_tool_warned=yes ;;
21363 LD="$ac_cv_prog_LD"
21367 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_stdc+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 cat >conftest.$ac_ext <<_ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h. */
21378 #include <stdlib.h>
21379 #include <stdarg.h>
21380 #include <string.h>
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 ac_cv_header_stdc=yes
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_cv_header_stdc=no
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 if test $ac_cv_header_stdc = yes; then
21419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 #include <string.h>
21429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21430 $EGREP "memchr" >/dev/null 2>&1; then
21433 ac_cv_header_stdc=no
21439 if test $ac_cv_header_stdc = yes; then
21440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <stdlib.h>
21450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21451 $EGREP "free" >/dev/null 2>&1; then
21454 ac_cv_header_stdc=no
21460 if test $ac_cv_header_stdc = yes; then
21461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21462 if test "$cross_compiling" = yes; then
21465 cat >conftest.$ac_ext <<_ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21472 #include <stdlib.h>
21473 #if ((' ' & 0x0FF) == 0x020)
21474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21477 # define ISLOWER(c) \
21478 (('a' <= (c) && (c) <= 'i') \
21479 || ('j' <= (c) && (c) <= 'r') \
21480 || ('s' <= (c) && (c) <= 'z'))
21481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21489 for (i = 0; i < 256; i++)
21490 if (XOR (islower (i), ISLOWER (i))
21491 || toupper (i) != TOUPPER (i))
21496 rm -f conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_link") 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21507 { (case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_try") 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21518 echo "$as_me: program exited with status $ac_status" >&5
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21522 ( exit $ac_status )
21523 ac_cv_header_stdc=no
21525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21531 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21532 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21533 if test $ac_cv_header_stdc = yes; then
21535 cat >>confdefs.h <<\_ACEOF
21536 #define STDC_HEADERS 1
21542 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21543 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21544 if test "${knfsd_cv_glibc2+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21554 #include <features.h>
21555 #if !defined(__GLIBC__)
21560 if { (ac_try="$ac_cpp conftest.$ac_ext"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } >/dev/null && {
21573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21576 knfsd_cv_glibc2=yes
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21584 rm -f conftest.err conftest.$ac_ext
21587 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21588 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21589 if test $knfsd_cv_glibc2 = yes; then
21590 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21591 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21595 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21596 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21597 if test "${knfsd_cv_bsd_signals+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 if test "$cross_compiling" = yes; then
21603 *linux*) knfsd_cv_bsd_signals=no;;
21604 *bsd*) knfsd_cv_bsd_signals=yes;;
21605 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21606 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21607 { (exit 1); exit 1; }; };;
21611 cat >conftest.$ac_ext <<_ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21618 #include <signal.h>
21619 #include <unistd.h>
21620 #include <sys/wait.h>
21622 static int counter = 0;
21623 static RETSIGTYPE handler(int num) { counter++; }
21628 if ((s = fork()) < 0) return 1;
21630 if (wait(&s) < 0) return 1;
21631 return WIFSIGNALED(s)? 1 : 0;
21634 signal(SIGHUP, handler);
21635 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21636 return (counter == 2)? 0 : 1;
21640 rm -f conftest$ac_exeext
21641 if { (ac_try="$ac_link"
21642 case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647 (eval "$ac_link") 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651 { (case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_try") 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 knfsd_cv_bsd_signals=yes
21662 echo "$as_me: program exited with status $ac_status" >&5
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21666 ( exit $ac_status )
21667 knfsd_cv_bsd_signals=no
21669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21674 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21675 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21676 test $knfsd_cv_bsd_signals = yes &&
21677 cat >>confdefs.h <<\_ACEOF
21678 #define HAVE_BSD_SIGNALS 1
21683 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21684 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21685 if test "${ac_cv_func_gethostbyname+set}" = set; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21696 #define gethostbyname innocuous_gethostbyname
21698 /* System header to define __stub macros and hopefully few prototypes,
21699 which can conflict with char gethostbyname (); below.
21700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701 <limits.h> exists even on freestanding compilers. */
21704 # include <limits.h>
21706 # include <assert.h>
21709 #undef gethostbyname
21711 /* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
21717 char gethostbyname ();
21718 /* The GNU C library defines this for functions which it implements
21719 to always fail with ENOSYS. Some functions are actually named
21720 something starting with __ and the normal name is an alias. */
21721 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21728 return gethostbyname ();
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_link") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest$ac_exeext &&
21750 $as_test_x conftest$ac_exeext; then
21751 ac_cv_func_gethostbyname=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_func_gethostbyname=no
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760 conftest$ac_exeext conftest.$ac_ext
21762 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21763 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21764 if test $ac_cv_func_gethostbyname = yes; then
21767 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21768 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21769 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 ac_check_lib_save_LIBS=$LIBS
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21781 /* Override any GCC internal prototype to avoid an error.
21782 Use char because int might match the return type of a GCC
21783 builtin and then its argument prototype would still apply. */
21787 char gethostbyname ();
21791 return gethostbyname ();
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_link") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest$ac_exeext &&
21813 $as_test_x conftest$ac_exeext; then
21814 ac_cv_lib_nsl_gethostbyname=yes
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ac_cv_lib_nsl_gethostbyname=no
21822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21823 conftest$ac_exeext conftest.$ac_ext
21824 LIBS=$ac_check_lib_save_LIBS
21826 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21827 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21828 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21836 { echo "$as_me:$LINENO: checking for connect" >&5
21837 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21838 if test "${ac_cv_func_connect+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21849 #define connect innocuous_connect
21851 /* System header to define __stub macros and hopefully few prototypes,
21852 which can conflict with char connect (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21857 # include <limits.h>
21859 # include <assert.h>
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined __stub_connect || defined __stub___connect
21886 rm -f conftest.$ac_objext conftest$ac_exeext
21887 if { (ac_try="$ac_link"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_link") 2>conftest.er1
21895 grep -v '^ *+' conftest.er1 >conftest.err
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest$ac_exeext &&
21903 $as_test_x conftest$ac_exeext; then
21904 ac_cv_func_connect=yes
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_cv_func_connect=no
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21915 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21916 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21917 if test $ac_cv_func_connect = yes; then
21920 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21921 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21922 if test "${ac_cv_lib_socket_connect+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 ac_check_lib_save_LIBS=$LIBS
21926 LIBS="-lsocket $LIBNSL $LIBS"
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21934 /* Override any GCC internal prototype to avoid an error.
21935 Use char because int might match the return type of a GCC
21936 builtin and then its argument prototype would still apply. */
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest$ac_exeext &&
21966 $as_test_x conftest$ac_exeext; then
21967 ac_cv_lib_socket_connect=yes
21969 echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 ac_cv_lib_socket_connect=no
21975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21976 conftest$ac_exeext conftest.$ac_ext
21977 LIBS=$ac_check_lib_save_LIBS
21979 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21980 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21981 if test $ac_cv_lib_socket_connect = yes; then
21982 LIBSOCKET="-lsocket"
21984 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21985 echo "$as_me: error: Function 'socket' not found." >&2;}
21986 { (exit 1); exit 1; }; }
21992 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21993 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21994 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
22004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22005 #define getaddrinfo innocuous_getaddrinfo
22007 /* System header to define __stub macros and hopefully few prototypes,
22008 which can conflict with char getaddrinfo (); below.
22009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22010 <limits.h> exists even on freestanding compilers. */
22013 # include <limits.h>
22015 # include <assert.h>
22020 /* Override any GCC internal prototype to avoid an error.
22021 Use char because int might match the return type of a GCC
22022 builtin and then its argument prototype would still apply. */
22026 char getaddrinfo ();
22027 /* The GNU C library defines this for functions which it implements
22028 to always fail with ENOSYS. Some functions are actually named
22029 something starting with __ and the normal name is an alias. */
22030 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
22037 return getaddrinfo ();
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (ac_try="$ac_link"
22044 case "(($ac_try" in
22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046 *) ac_try_echo=$ac_try;;
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049 (eval "$ac_link") 2>conftest.er1
22051 grep -v '^ *+' conftest.er1 >conftest.err
22053 cat conftest.err >&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } && {
22056 test -z "$ac_c_werror_flag" ||
22057 test ! -s conftest.err
22058 } && test -s conftest$ac_exeext &&
22059 $as_test_x conftest$ac_exeext; then
22060 ac_cv_func_getaddrinfo=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_func_getaddrinfo=no
22068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22069 conftest$ac_exeext conftest.$ac_ext
22071 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
22072 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
22075 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22076 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22077 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22080 ac_check_lib_save_LIBS=$LIBS
22081 LIBS="-lcrypt $LIBS"
22082 cat >conftest.$ac_ext <<_ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h. */
22089 /* Override any GCC internal prototype to avoid an error.
22090 Use char because int might match the return type of a GCC
22091 builtin and then its argument prototype would still apply. */
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (ac_try="$ac_link"
22106 case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_link") 2>conftest.er1
22113 grep -v '^ *+' conftest.er1 >conftest.err
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && {
22118 test -z "$ac_c_werror_flag" ||
22119 test ! -s conftest.err
22120 } && test -s conftest$ac_exeext &&
22121 $as_test_x conftest$ac_exeext; then
22122 ac_cv_lib_crypt_crypt=yes
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_cv_lib_crypt_crypt=no
22130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22131 conftest$ac_exeext conftest.$ac_ext
22132 LIBS=$ac_check_lib_save_LIBS
22134 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22135 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22136 if test $ac_cv_lib_crypt_crypt = yes; then
22140 if test "$enable_nfsv4" = yes; then
22141 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22142 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22143 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
22146 ac_check_lib_save_LIBS=$LIBS
22147 LIBS="-levent $LIBS"
22148 cat >conftest.$ac_ext <<_ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22155 /* Override any GCC internal prototype to avoid an error.
22156 Use char because int might match the return type of a GCC
22157 builtin and then its argument prototype would still apply. */
22161 char event_dispatch ();
22165 return event_dispatch ();
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (ac_try="$ac_link"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_link") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext &&
22187 $as_test_x conftest$ac_exeext; then
22188 ac_cv_lib_event_event_dispatch=yes
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 ac_cv_lib_event_event_dispatch=no
22196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22197 conftest$ac_exeext conftest.$ac_ext
22198 LIBS=$ac_check_lib_save_LIBS
22200 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22201 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22202 if test $ac_cv_lib_event_event_dispatch = yes; then
22205 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22206 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22207 { (exit 1); exit 1; }; }
22210 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22211 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22212 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 ac_check_lib_save_LIBS=$LIBS
22216 LIBS="-lnfsidmap $LIBS"
22217 cat >conftest.$ac_ext <<_ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22224 /* Override any GCC internal prototype to avoid an error.
22225 Use char because int might match the return type of a GCC
22226 builtin and then its argument prototype would still apply. */
22230 char nfs4_init_name_mapping ();
22234 return nfs4_init_name_mapping ();
22239 rm -f conftest.$ac_objext conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_link") 2>conftest.er1
22248 grep -v '^ *+' conftest.er1 >conftest.err
22250 cat conftest.err >&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest$ac_exeext &&
22256 $as_test_x conftest$ac_exeext; then
22257 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22269 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22270 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22271 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22274 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22275 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22276 { (exit 1); exit 1; }; }
22280 for ac_header in event.h
22282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 ac_res=`eval echo '${'$as_ac_Header'}'`
22290 { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22293 # Is the header compilable?
22294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22302 $ac_includes_default
22303 #include <$ac_header>
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22322 ac_header_compiler=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_header_compiler=no
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22332 echo "${ECHO_T}$ac_header_compiler" >&6; }
22334 # Is the header present?
22335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 #include <$ac_header>
22345 if { (ac_try="$ac_cpp conftest.$ac_ext"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } >/dev/null && {
22358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22361 ac_header_preproc=yes
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_header_preproc=no
22369 rm -f conftest.err conftest.$ac_ext
22370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22371 echo "${ECHO_T}$ac_header_preproc" >&6; }
22373 # So? What about this header?
22374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22380 ac_header_preproc=yes
22383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22396 ## ---------------------------------------- ##
22397 ## Report this to linux-nfs@vger.kernel.org ##
22398 ## ---------------------------------------- ##
22400 ) | sed "s/^/$as_me: WARNING: /" >&2
22403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 eval "$as_ac_Header=\$ac_header_preproc"
22410 ac_res=`eval echo '${'$as_ac_Header'}'`
22411 { echo "$as_me:$LINENO: result: $ac_res" >&5
22412 echo "${ECHO_T}$ac_res" >&6; }
22415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22416 cat >>confdefs.h <<_ACEOF
22417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22421 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22422 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22423 { (exit 1); exit 1; }; }
22429 for ac_header in nfsidmap.h
22431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22438 ac_res=`eval echo '${'$as_ac_Header'}'`
22439 { echo "$as_me:$LINENO: result: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22442 # Is the header compilable?
22443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22452 #include <$ac_header>
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_compile") 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest.$ac_objext; then
22471 ac_header_compiler=yes
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 ac_header_compiler=no
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22481 echo "${ECHO_T}$ac_header_compiler" >&6; }
22483 # Is the header present?
22484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 #include <$ac_header>
22494 if { (ac_try="$ac_cpp conftest.$ac_ext"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22502 grep -v '^ *+' conftest.er1 >conftest.err
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } >/dev/null && {
22507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22508 test ! -s conftest.err
22510 ac_header_preproc=yes
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ac_header_preproc=no
22518 rm -f conftest.err conftest.$ac_ext
22519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520 echo "${ECHO_T}$ac_header_preproc" >&6; }
22522 # So? What about this header?
22523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22529 ac_header_preproc=yes
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22545 ## ---------------------------------------- ##
22546 ## Report this to linux-nfs@vger.kernel.org ##
22547 ## ---------------------------------------- ##
22549 ) | sed "s/^/$as_me: WARNING: /" >&2
22552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 eval "$as_ac_Header=\$ac_header_preproc"
22559 ac_res=`eval echo '${'$as_ac_Header'}'`
22560 { echo "$as_me:$LINENO: result: $ac_res" >&5
22561 echo "${ECHO_T}$ac_res" >&6; }
22564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22565 cat >>confdefs.h <<_ACEOF
22566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22570 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22571 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22572 { (exit 1); exit 1; }; }
22577 if test "$enable_gss" = yes; then
22580 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22581 if test -n "$ac_tool_prefix"; then
22582 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22586 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 case $PKG_CONFIG in
22591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22595 for as_dir in $PATH
22598 test -z "$as_dir" && as_dir=.
22599 for ac_exec_ext in '' $ac_executable_extensions; do
22600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22612 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22613 if test -n "$PKG_CONFIG"; then
22614 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22615 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22617 { echo "$as_me:$LINENO: result: no" >&5
22618 echo "${ECHO_T}no" >&6; }
22623 if test -z "$ac_cv_path_PKG_CONFIG"; then
22624 ac_pt_PKG_CONFIG=$PKG_CONFIG
22625 # Extract the first word of "pkg-config", so it can be a program name with args.
22626 set dummy pkg-config; ac_word=$2
22627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22629 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 case $ac_pt_PKG_CONFIG in
22634 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22638 for as_dir in $PATH
22641 test -z "$as_dir" && as_dir=.
22642 for ac_exec_ext in '' $ac_executable_extensions; do
22643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22644 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22655 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22656 if test -n "$ac_pt_PKG_CONFIG"; then
22657 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22658 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22660 { echo "$as_me:$LINENO: result: no" >&5
22661 echo "${ECHO_T}no" >&6; }
22664 if test "x$ac_pt_PKG_CONFIG" = x; then
22667 case $cross_compiling:$ac_tool_warned in
22669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22670 whose name does not start with the host triplet. If you think this
22671 configuration is useful to you, please write to autoconf@gnu.org." >&5
22672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22673 whose name does not start with the host triplet. If you think this
22674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22675 ac_tool_warned=yes ;;
22677 PKG_CONFIG=$ac_pt_PKG_CONFIG
22680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22684 if test -n "$PKG_CONFIG"; then
22685 _pkg_min_version=0.9.0
22686 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22687 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22689 { echo "$as_me:$LINENO: result: yes" >&5
22690 echo "${ECHO_T}yes" >&6; }
22692 { echo "$as_me:$LINENO: result: no" >&5
22693 echo "${ECHO_T}no" >&6; }
22700 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22701 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22703 if test -n "$RPCSECGSS_CFLAGS"; then
22704 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22705 elif test -n "$PKG_CONFIG"; then
22706 if test -n "$PKG_CONFIG" && \
22707 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22708 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; then
22712 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22719 if test -n "$RPCSECGSS_LIBS"; then
22720 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22721 elif test -n "$PKG_CONFIG"; then
22722 if test -n "$PKG_CONFIG" && \
22723 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22724 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; then
22728 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22738 if test $pkg_failed = yes; then
22740 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22741 _pkg_short_errors_supported=yes
22743 _pkg_short_errors_supported=no
22745 if test $_pkg_short_errors_supported = yes; then
22746 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
22748 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
22750 # Put the nasty error message in config.log where it belongs
22751 echo "$RPCSECGSS_PKG_ERRORS" >&5
22753 { echo "$as_me:$LINENO: result: no" >&5
22754 echo "${ECHO_T}no" >&6; }
22755 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22756 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22757 { (exit 1); exit 1; }; }
22760 elif test $pkg_failed = untried; then
22761 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22762 echo "$as_me: error: Unable to locate information required to use librpcsecgss. If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22763 { (exit 1); exit 1; }; }
22767 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22768 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22769 { echo "$as_me:$LINENO: result: yes" >&5
22770 echo "${ECHO_T}yes" >&6; }
22775 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22776 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22778 if test -n "$GSSGLUE_CFLAGS"; then
22779 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22780 elif test -n "$PKG_CONFIG"; then
22781 if test -n "$PKG_CONFIG" && \
22782 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22783 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; then
22787 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22794 if test -n "$GSSGLUE_LIBS"; then
22795 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22796 elif test -n "$PKG_CONFIG"; then
22797 if test -n "$PKG_CONFIG" && \
22798 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22799 ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; then
22803 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22813 if test $pkg_failed = yes; then
22815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22816 _pkg_short_errors_supported=yes
22818 _pkg_short_errors_supported=no
22820 if test $_pkg_short_errors_supported = yes; then
22821 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
22823 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
22825 # Put the nasty error message in config.log where it belongs
22826 echo "$GSSGLUE_PKG_ERRORS" >&5
22828 { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22830 $GSSGLUE_PKG_ERRORS
22832 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22833 installed software in a non-standard prefix.
22835 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22836 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22837 See the pkg-config man page for more details.
22839 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22841 $GSSGLUE_PKG_ERRORS
22843 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22844 installed software in a non-standard prefix.
22846 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22847 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22848 See the pkg-config man page for more details.
22850 { (exit 1); exit 1; }; }
22851 elif test $pkg_failed = untried; then
22852 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22853 is in your PATH or set the PKG_CONFIG environment variable to the full
22854 path to pkg-config.
22856 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22857 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22858 See the pkg-config man page for more details.
22860 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22861 See \`config.log' for more details." >&5
22862 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22863 is in your PATH or set the PKG_CONFIG environment variable to the full
22864 path to pkg-config.
22866 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22867 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22868 See the pkg-config man page for more details.
22870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22871 See \`config.log' for more details." >&2;}
22872 { (exit 1); exit 1; }; }
22874 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22875 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22876 { echo "$as_me:$LINENO: result: yes" >&5
22877 echo "${ECHO_T}yes" >&6; }
22883 if test "$knfsd_cv_glibc2" = no; then
22884 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22885 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22886 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 ac_check_lib_save_LIBS=$LIBS
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22898 /* Override any GCC internal prototype to avoid an error.
22899 Use char because int might match the return type of a GCC
22900 builtin and then its argument prototype would still apply. */
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_link") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest$ac_exeext &&
22930 $as_test_x conftest$ac_exeext; then
22931 ac_cv_lib_bsd_daemon=yes
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ac_cv_lib_bsd_daemon=no
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940 conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22943 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22944 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22945 if test $ac_cv_lib_bsd_daemon = yes; then
22951 if test "$choose_blkid" != no; then
22952 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22953 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22954 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 ac_check_lib_save_LIBS=$LIBS
22958 LIBS="-lblkid $LIBS"
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22966 /* Override any GCC internal prototype to avoid an error.
22967 Use char because int might match the return type of a GCC
22968 builtin and then its argument prototype would still apply. */
22972 char blkid_get_library_version ();
22976 return blkid_get_library_version ();
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_link") 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest$ac_exeext &&
22998 $as_test_x conftest$ac_exeext; then
22999 ac_cv_lib_blkid_blkid_get_library_version=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 ac_cv_lib_blkid_blkid_get_library_version=no
23007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008 conftest$ac_exeext conftest.$ac_ext
23009 LIBS=$ac_check_lib_save_LIBS
23011 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
23012 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
23013 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
23016 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
23017 echo "$as_me: error: libblkid needed" >&2;}
23018 { (exit 1); exit 1; }; }
23021 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23022 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23023 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23024 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23027 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23028 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23030 # Is the header compilable?
23031 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
23032 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23039 $ac_includes_default
23040 #include <blkid/blkid.h>
23042 rm -f conftest.$ac_objext
23043 if { (ac_try="$ac_compile"
23044 case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_compile") 2>conftest.er1
23051 grep -v '^ *+' conftest.er1 >conftest.err
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && {
23056 test -z "$ac_c_werror_flag" ||
23057 test ! -s conftest.err
23058 } && test -s conftest.$ac_objext; then
23059 ac_header_compiler=yes
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 ac_header_compiler=no
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23069 echo "${ECHO_T}$ac_header_compiler" >&6; }
23071 # Is the header present?
23072 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23073 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23074 cat >conftest.$ac_ext <<_ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23080 #include <blkid/blkid.h>
23082 if { (ac_try="$ac_cpp conftest.$ac_ext"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23090 grep -v '^ *+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } >/dev/null && {
23095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23096 test ! -s conftest.err
23098 ac_header_preproc=yes
23100 echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23103 ac_header_preproc=no
23106 rm -f conftest.err conftest.$ac_ext
23107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23108 echo "${ECHO_T}$ac_header_preproc" >&6; }
23110 # So? What about this header?
23111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23113 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23114 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23116 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23117 ac_header_preproc=yes
23120 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23121 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23122 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23123 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23124 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23125 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23126 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23127 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23128 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23129 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23131 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23133 ## ---------------------------------------- ##
23134 ## Report this to linux-nfs@vger.kernel.org ##
23135 ## ---------------------------------------- ##
23137 ) | sed "s/^/$as_me: WARNING: /" >&2
23140 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23141 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23142 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23145 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23147 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23148 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23151 if test $ac_cv_header_blkid_blkid_h = yes; then
23154 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23155 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23156 { (exit 1); exit 1; }; }
23161 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23162 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23163 if test "${libblkid_is_recent+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23169 if test "$cross_compiling" = yes; then
23170 libblkid_is_recent=unknown
23172 cat >conftest.$ac_ext <<_ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23179 #include <blkid/blkid.h>
23182 int vers = blkid_get_library_version(0, 0);
23183 return vers >= 140 ? 0 : 1;
23187 rm -f conftest$ac_exeext
23188 if { (ac_try="$ac_link"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194 (eval "$ac_link") 2>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23198 { (case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_try") 2>&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23207 libblkid_is_recent=yes
23209 echo "$as_me: program exited with status $ac_status" >&5
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 ( exit $ac_status )
23214 libblkid_is_recent=no
23216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23223 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23224 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23226 if test $choose_blkid = yes; then
23228 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23229 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23231 if test $libblkid_is_recent = yes
23234 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23235 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23239 cat >>confdefs.h <<_ACEOF
23240 #define USE_BLKID $use_blkid
23249 if test "$enable_gss" = yes; then
23251 for ac_header in nfsidmap.h
23253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 ac_res=`eval echo '${'$as_ac_Header'}'`
23261 { echo "$as_me:$LINENO: result: $ac_res" >&5
23262 echo "${ECHO_T}$ac_res" >&6; }
23264 # Is the header compilable?
23265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 $ac_includes_default
23274 #include <$ac_header>
23276 rm -f conftest.$ac_objext
23277 if { (ac_try="$ac_compile"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_compile") 2>conftest.er1
23285 grep -v '^ *+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest.$ac_objext; then
23293 ac_header_compiler=yes
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ac_header_compiler=no
23301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23303 echo "${ECHO_T}$ac_header_compiler" >&6; }
23305 # Is the header present?
23306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23308 cat >conftest.$ac_ext <<_ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 #include <$ac_header>
23316 if { (ac_try="$ac_cpp conftest.$ac_ext"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23324 grep -v '^ *+' conftest.er1 >conftest.err
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } >/dev/null && {
23329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23330 test ! -s conftest.err
23332 ac_header_preproc=yes
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ac_header_preproc=no
23340 rm -f conftest.err conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23342 echo "${ECHO_T}$ac_header_preproc" >&6; }
23344 # So? What about this header?
23345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23351 ac_header_preproc=yes
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23367 ## ---------------------------------------- ##
23368 ## Report this to linux-nfs@vger.kernel.org ##
23369 ## ---------------------------------------- ##
23371 ) | sed "s/^/$as_me: WARNING: /" >&2
23374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23379 eval "$as_ac_Header=\$ac_header_preproc"
23381 ac_res=`eval echo '${'$as_ac_Header'}'`
23382 { echo "$as_me:$LINENO: result: $ac_res" >&5
23383 echo "${ECHO_T}$ac_res" >&6; }
23386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23387 cat >>confdefs.h <<_ACEOF
23388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23392 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23393 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23394 { (exit 1); exit 1; }; }
23400 for ac_header in spkm3.h
23402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 ac_res=`eval echo '${'$as_ac_Header'}'`
23410 { echo "$as_me:$LINENO: result: $ac_res" >&5
23411 echo "${ECHO_T}$ac_res" >&6; }
23413 # Is the header compilable?
23414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 $ac_includes_default
23423 #include <$ac_header>
23425 rm -f conftest.$ac_objext
23426 if { (ac_try="$ac_compile"
23427 case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_compile") 2>conftest.er1
23434 grep -v '^ *+' conftest.er1 >conftest.err
23436 cat conftest.err >&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && {
23439 test -z "$ac_c_werror_flag" ||
23440 test ! -s conftest.err
23441 } && test -s conftest.$ac_objext; then
23442 ac_header_compiler=yes
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23447 ac_header_compiler=no
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23452 echo "${ECHO_T}$ac_header_compiler" >&6; }
23454 # Is the header present?
23455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 #include <$ac_header>
23465 if { (ac_try="$ac_cpp conftest.$ac_ext"
23466 case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23473 grep -v '^ *+' conftest.er1 >conftest.err
23475 cat conftest.err >&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); } >/dev/null && {
23478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23479 test ! -s conftest.err
23481 ac_header_preproc=yes
23483 echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23486 ac_header_preproc=no
23489 rm -f conftest.err conftest.$ac_ext
23490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23491 echo "${ECHO_T}$ac_header_preproc" >&6; }
23493 # So? What about this header?
23494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23500 ac_header_preproc=yes
23503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23516 ## ---------------------------------------- ##
23517 ## Report this to linux-nfs@vger.kernel.org ##
23518 ## ---------------------------------------- ##
23520 ) | sed "s/^/$as_me: WARNING: /" >&2
23523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 eval "$as_ac_Header=\$ac_header_preproc"
23530 ac_res=`eval echo '${'$as_ac_Header'}'`
23531 { echo "$as_me:$LINENO: result: $ac_res" >&5
23532 echo "${ECHO_T}$ac_res" >&6; }
23535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23536 cat >>confdefs.h <<_ACEOF
23537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23541 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23542 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23547 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23548 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23549 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23550 echo $ECHO_N "(cached) $ECHO_C" >&6
23552 ac_check_lib_save_LIBS=$LIBS
23553 LIBS="-lnfsidmap $LIBS"
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23561 /* Override any GCC internal prototype to avoid an error.
23562 Use char because int might match the return type of a GCC
23563 builtin and then its argument prototype would still apply. */
23567 char nfs4_set_debug ();
23571 return nfs4_set_debug ();
23576 rm -f conftest.$ac_objext conftest$ac_exeext
23577 if { (ac_try="$ac_link"
23578 case "(($ac_try" in
23579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583 (eval "$ac_link") 2>conftest.er1
23585 grep -v '^ *+' conftest.er1 >conftest.err
23587 cat conftest.err >&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest$ac_exeext &&
23593 $as_test_x conftest$ac_exeext; then
23594 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23596 echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23599 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23603 conftest$ac_exeext conftest.$ac_ext
23604 LIBS=$ac_check_lib_save_LIBS
23606 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23607 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23608 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23610 cat >>confdefs.h <<\_ACEOF
23611 #define HAVE_NFS4_SET_DEBUG 1
23618 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23619 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23621 # Check whether --with-krb5 was given.
23622 if test "${with_krb5+set}" = set; then
23623 withval=$with_krb5; case "$withval" in
23628 krb5_with="$withval"
23635 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23636 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23638 if test -f $dir/bin/krb5-config; then
23639 K5CONFIG=$dir/bin/krb5-config
23640 elif test -f "/usr/kerberos/bin/krb5-config"; then
23641 K5CONFIG="/usr/kerberos/bin/krb5-config"
23642 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23643 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23645 if test "$K5CONFIG" != ""; then
23646 KRBCFLAGS=`$K5CONFIG --cflags`
23647 KRBLIBS=`$K5CONFIG --libs gssapi`
23648 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23650 cat >>confdefs.h <<_ACEOF
23651 #define KRB5_VERSION $K5VERS
23654 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23655 \( -f $dir/lib/libgssapi_krb5.a -o \
23656 -f $dir/lib64/libgssapi_krb5.a -o \
23657 -f $dir/lib64/libgssapi_krb5.so -o \
23658 -f $dir/lib/libgssapi_krb5.so \) ; then
23660 cat >>confdefs.h <<\_ACEOF
23661 #define HAVE_KRB5 1
23665 if test $K5VERS -le 131; then
23667 cat >>confdefs.h <<\_ACEOF
23668 #define USE_GSS_KRB5_CCACHE_NAME 1
23672 gssapi_lib=gssapi_krb5
23674 elif test \( -f $dir/include/heim_err.h -o\
23675 -f $dir/include/heimdal/heim_err.h \) -a \
23676 -f $dir/lib/libroken.a; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define HAVE_HEIMDAL 1
23688 if test "x$KRBDIR" = "x"; then
23689 if test "x$krb5_with" = "x"; then
23690 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23691 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23692 { (exit 1); exit 1; }; }
23694 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23695 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23696 { (exit 1); exit 1; }; }
23699 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23700 echo "${ECHO_T}$KRBDIR" >&6; }
23702 echo "The current KRBDIR is $KRBDIR"
23703 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23704 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23706 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23709 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23712 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23713 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23714 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23715 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23718 ac_check_lib_save_LIBS=$LIBS
23719 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23727 /* Override any GCC internal prototype to avoid an error.
23728 Use char because int might match the return type of a GCC
23729 builtin and then its argument prototype would still apply. */
23733 char gss_krb5_export_lucid_sec_context ();
23737 return gss_krb5_export_lucid_sec_context ();
23742 rm -f conftest.$ac_objext conftest$ac_exeext
23743 if { (ac_try="$ac_link"
23744 case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_link") 2>conftest.er1
23751 grep -v '^ *+' conftest.er1 >conftest.err
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest$ac_exeext &&
23759 $as_test_x conftest$ac_exeext; then
23760 eval "$as_ac_Lib=yes"
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 eval "$as_ac_Lib=no"
23768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23769 conftest$ac_exeext conftest.$ac_ext
23770 LIBS=$ac_check_lib_save_LIBS
23772 ac_res=`eval echo '${'$as_ac_Lib'}'`
23773 { echo "$as_me:$LINENO: result: $ac_res" >&5
23774 echo "${ECHO_T}$ac_res" >&6; }
23775 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23783 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23784 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23785 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23786 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 ac_check_lib_save_LIBS=$LIBS
23790 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23791 cat >conftest.$ac_ext <<_ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h. */
23798 /* Override any GCC internal prototype to avoid an error.
23799 Use char because int might match the return type of a GCC
23800 builtin and then its argument prototype would still apply. */
23804 char gss_krb5_set_allowable_enctypes ();
23808 return gss_krb5_set_allowable_enctypes ();
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820 (eval "$ac_link") 2>conftest.er1
23822 grep -v '^ *+' conftest.er1 >conftest.err
23824 cat conftest.err >&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } && {
23827 test -z "$ac_c_werror_flag" ||
23828 test ! -s conftest.err
23829 } && test -s conftest$ac_exeext &&
23830 $as_test_x conftest$ac_exeext; then
23831 eval "$as_ac_Lib=yes"
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23836 eval "$as_ac_Lib=no"
23839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23840 conftest$ac_exeext conftest.$ac_ext
23841 LIBS=$ac_check_lib_save_LIBS
23843 ac_res=`eval echo '${'$as_ac_Lib'}'`
23844 { echo "$as_me:$LINENO: result: $ac_res" >&5
23845 echo "${ECHO_T}$ac_res" >&6; }
23846 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23848 cat >>confdefs.h <<\_ACEOF
23849 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23854 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23855 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23856 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23857 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23860 ac_check_lib_save_LIBS=$LIBS
23861 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23869 /* Override any GCC internal prototype to avoid an error.
23870 Use char because int might match the return type of a GCC
23871 builtin and then its argument prototype would still apply. */
23875 char gss_krb5_ccache_name ();
23879 return gss_krb5_ccache_name ();
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (ac_try="$ac_link"
23886 case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_link") 2>conftest.er1
23893 grep -v '^ *+' conftest.er1 >conftest.err
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } && {
23898 test -z "$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 } && test -s conftest$ac_exeext &&
23901 $as_test_x conftest$ac_exeext; then
23902 eval "$as_ac_Lib=yes"
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 eval "$as_ac_Lib=no"
23910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23911 conftest$ac_exeext conftest.$ac_ext
23912 LIBS=$ac_check_lib_save_LIBS
23914 ac_res=`eval echo '${'$as_ac_Lib'}'`
23915 { echo "$as_me:$LINENO: result: $ac_res" >&5
23916 echo "${ECHO_T}$ac_res" >&6; }
23917 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23919 cat >>confdefs.h <<\_ACEOF
23920 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23926 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23927 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23928 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23929 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23941 /* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23947 char krb5_get_error_message ();
23951 return krb5_get_error_message ();
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_link") 2>conftest.er1
23965 grep -v '^ *+' conftest.er1 >conftest.err
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest$ac_exeext &&
23973 $as_test_x conftest$ac_exeext; then
23974 eval "$as_ac_Lib=yes"
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23979 eval "$as_ac_Lib=no"
23982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23983 conftest$ac_exeext conftest.$ac_ext
23984 LIBS=$ac_check_lib_save_LIBS
23986 ac_res=`eval echo '${'$as_ac_Lib'}'`
23987 { echo "$as_me:$LINENO: result: $ac_res" >&5
23988 echo "${ECHO_T}$ac_res" >&6; }
23989 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23991 cat >>confdefs.h <<\_ACEOF
23992 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23998 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23999 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
24000 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
24001 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24002 echo $ECHO_N "(cached) $ECHO_C" >&6
24004 ac_check_lib_save_LIBS=$LIBS
24005 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24006 cat >conftest.$ac_ext <<_ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h. */
24013 /* Override any GCC internal prototype to avoid an error.
24014 Use char because int might match the return type of a GCC
24015 builtin and then its argument prototype would still apply. */
24019 char krb5_get_init_creds_opt_set_addressless ();
24023 return krb5_get_init_creds_opt_set_addressless ();
24028 rm -f conftest.$ac_objext conftest$ac_exeext
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_link") 2>conftest.er1
24037 grep -v '^ *+' conftest.er1 >conftest.err
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } && {
24042 test -z "$ac_c_werror_flag" ||
24043 test ! -s conftest.err
24044 } && test -s conftest$ac_exeext &&
24045 $as_test_x conftest$ac_exeext; then
24046 eval "$as_ac_Lib=yes"
24048 echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24051 eval "$as_ac_Lib=no"
24054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24055 conftest$ac_exeext conftest.$ac_ext
24056 LIBS=$ac_check_lib_save_LIBS
24058 ac_res=`eval echo '${'$as_ac_Lib'}'`
24059 { echo "$as_me:$LINENO: result: $ac_res" >&5
24060 echo "${ECHO_T}$ac_res" >&6; }
24061 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24063 cat >>confdefs.h <<\_ACEOF
24064 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24070 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24071 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24072 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24083 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24084 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24085 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24088 ac_check_lib_save_LIBS=$LIBS
24089 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24097 /* Override any GCC internal prototype to avoid an error.
24098 Use char because int might match the return type of a GCC
24099 builtin and then its argument prototype would still apply. */
24103 char authgss_create_default ();
24107 return authgss_create_default ();
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (ac_try="$ac_link"
24114 case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_link") 2>conftest.er1
24121 grep -v '^ *+' conftest.er1 >conftest.err
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest$ac_exeext &&
24129 $as_test_x conftest$ac_exeext; then
24130 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24132 echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24135 ac_cv_lib_rpcsecgss_authgss_create_default=no
24138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24139 conftest$ac_exeext conftest.$ac_ext
24140 LIBS=$ac_check_lib_save_LIBS
24142 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24143 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24144 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24147 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24148 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24149 { (exit 1); exit 1; }; }
24152 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24153 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24154 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 ac_check_lib_save_LIBS=$LIBS
24158 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24159 cat >conftest.$ac_ext <<_ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24166 /* Override any GCC internal prototype to avoid an error.
24167 Use char because int might match the return type of a GCC
24168 builtin and then its argument prototype would still apply. */
24172 char authgss_set_debug_level ();
24176 return authgss_set_debug_level ();
24181 rm -f conftest.$ac_objext conftest$ac_exeext
24182 if { (ac_try="$ac_link"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_link") 2>conftest.er1
24190 grep -v '^ *+' conftest.er1 >conftest.err
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } && {
24195 test -z "$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24197 } && test -s conftest$ac_exeext &&
24198 $as_test_x conftest$ac_exeext; then
24199 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24201 echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24208 conftest$ac_exeext conftest.$ac_ext
24209 LIBS=$ac_check_lib_save_LIBS
24211 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24212 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24213 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24215 cat >>confdefs.h <<\_ACEOF
24216 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24224 if test "$enable_ipv6" = yes; then
24225 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
24226 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
24227 if test "${ac_cv_func_inet_ntop+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24230 cat >conftest.$ac_ext <<_ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24236 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
24237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24238 #define inet_ntop innocuous_inet_ntop
24240 /* System header to define __stub macros and hopefully few prototypes,
24241 which can conflict with char inet_ntop (); below.
24242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24243 <limits.h> exists even on freestanding compilers. */
24246 # include <limits.h>
24248 # include <assert.h>
24253 /* Override any GCC internal prototype to avoid an error.
24254 Use char because int might match the return type of a GCC
24255 builtin and then its argument prototype would still apply. */
24260 /* The GNU C library defines this for functions which it implements
24261 to always fail with ENOSYS. Some functions are actually named
24262 something starting with __ and the normal name is an alias. */
24263 #if defined __stub_inet_ntop || defined __stub___inet_ntop
24270 return inet_ntop ();
24275 rm -f conftest.$ac_objext conftest$ac_exeext
24276 if { (ac_try="$ac_link"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282 (eval "$ac_link") 2>conftest.er1
24284 grep -v '^ *+' conftest.er1 >conftest.err
24286 cat conftest.err >&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest$ac_exeext &&
24292 $as_test_x conftest$ac_exeext; then
24293 ac_cv_func_inet_ntop=yes
24295 echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_cv_func_inet_ntop=no
24301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24302 conftest$ac_exeext conftest.$ac_ext
24304 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
24305 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
24307 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
24308 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
24309 if test "${ac_cv_func_getnameinfo+set}" = set; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24312 cat >conftest.$ac_ext <<_ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h. */
24318 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24320 #define getnameinfo innocuous_getnameinfo
24322 /* System header to define __stub macros and hopefully few prototypes,
24323 which can conflict with char getnameinfo (); below.
24324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24325 <limits.h> exists even on freestanding compilers. */
24328 # include <limits.h>
24330 # include <assert.h>
24335 /* Override any GCC internal prototype to avoid an error.
24336 Use char because int might match the return type of a GCC
24337 builtin and then its argument prototype would still apply. */
24341 char getnameinfo ();
24342 /* The GNU C library defines this for functions which it implements
24343 to always fail with ENOSYS. Some functions are actually named
24344 something starting with __ and the normal name is an alias. */
24345 #if defined __stub_getnameinfo || defined __stub___getnameinfo
24352 return getnameinfo ();
24357 rm -f conftest.$ac_objext conftest$ac_exeext
24358 if { (ac_try="$ac_link"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364 (eval "$ac_link") 2>conftest.er1
24366 grep -v '^ *+' conftest.er1 >conftest.err
24368 cat conftest.err >&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } && {
24371 test -z "$ac_c_werror_flag" ||
24372 test ! -s conftest.err
24373 } && test -s conftest$ac_exeext &&
24374 $as_test_x conftest$ac_exeext; then
24375 ac_cv_func_getnameinfo=yes
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_cv_func_getnameinfo=no
24383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24384 conftest$ac_exeext conftest.$ac_ext
24386 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24387 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
24390 { echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
24391 echo $ECHO_N "checking for clnt_tli_create in -ltirpc... $ECHO_C" >&6; }
24392 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 ac_check_lib_save_LIBS=$LIBS
24396 LIBS="-ltirpc $LIBS"
24397 cat >conftest.$ac_ext <<_ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24404 /* Override any GCC internal prototype to avoid an error.
24405 Use char because int might match the return type of a GCC
24406 builtin and then its argument prototype would still apply. */
24410 char clnt_tli_create ();
24414 return clnt_tli_create ();
24419 rm -f conftest.$ac_objext conftest$ac_exeext
24420 if { (ac_try="$ac_link"
24421 case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_link") 2>conftest.er1
24428 grep -v '^ *+' conftest.er1 >conftest.err
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } && {
24433 test -z "$ac_c_werror_flag" ||
24434 test ! -s conftest.err
24435 } && test -s conftest$ac_exeext &&
24436 $as_test_x conftest$ac_exeext; then
24437 ac_cv_lib_tirpc_clnt_tli_create=yes
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24442 ac_cv_lib_tirpc_clnt_tli_create=no
24445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24446 conftest$ac_exeext conftest.$ac_ext
24447 LIBS=$ac_check_lib_save_LIBS
24449 { echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
24450 echo "${ECHO_T}$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
24451 if test $ac_cv_lib_tirpc_clnt_tli_create = yes; then
24452 cat >>confdefs.h <<_ACEOF
24453 #define HAVE_LIBTIRPC 1
24456 LIBS="-ltirpc $LIBS"
24459 { { echo "$as_me:$LINENO: error: libtirpc needed for IPv6 support" >&5
24460 echo "$as_me: error: libtirpc needed for IPv6 support" >&2;}
24461 { (exit 1); exit 1; }; }
24465 for ac_header in tirpc/netconfig.h
24467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24474 ac_res=`eval echo '${'$as_ac_Header'}'`
24475 { echo "$as_me:$LINENO: result: $ac_res" >&5
24476 echo "${ECHO_T}$ac_res" >&6; }
24478 # Is the header compilable?
24479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 $ac_includes_default
24488 #include <$ac_header>
24490 rm -f conftest.$ac_objext
24491 if { (ac_try="$ac_compile"
24492 case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_compile") 2>conftest.er1
24499 grep -v '^ *+' conftest.er1 >conftest.err
24501 cat conftest.err >&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } && {
24504 test -z "$ac_c_werror_flag" ||
24505 test ! -s conftest.err
24506 } && test -s conftest.$ac_objext; then
24507 ac_header_compiler=yes
24509 echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24512 ac_header_compiler=no
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24517 echo "${ECHO_T}$ac_header_compiler" >&6; }
24519 # Is the header present?
24520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24522 cat >conftest.$ac_ext <<_ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <$ac_header>
24530 if { (ac_try="$ac_cpp conftest.$ac_ext"
24531 case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24538 grep -v '^ *+' conftest.er1 >conftest.err
24540 cat conftest.err >&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } >/dev/null && {
24543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24544 test ! -s conftest.err
24546 ac_header_preproc=yes
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24551 ac_header_preproc=no
24554 rm -f conftest.err conftest.$ac_ext
24555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24556 echo "${ECHO_T}$ac_header_preproc" >&6; }
24558 # So? What about this header?
24559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24565 ac_header_preproc=yes
24568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24581 ## ---------------------------------------- ##
24582 ## Report this to linux-nfs@vger.kernel.org ##
24583 ## ---------------------------------------- ##
24585 ) | sed "s/^/$as_me: WARNING: /" >&2
24588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24591 echo $ECHO_N "(cached) $ECHO_C" >&6
24593 eval "$as_ac_Header=\$ac_header_preproc"
24595 ac_res=`eval echo '${'$as_ac_Header'}'`
24596 { echo "$as_me:$LINENO: result: $ac_res" >&5
24597 echo "${ECHO_T}$ac_res" >&6; }
24600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24601 cat >>confdefs.h <<_ACEOF
24602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24606 { { echo "$as_me:$LINENO: error: libtirpc-devel needed for IPv6 support" >&5
24607 echo "$as_me: error: libtirpc-devel needed for IPv6 support" >&2;}
24608 { (exit 1); exit 1; }; }
24639 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24640 malloc.h memory.h netdb.h netinet/in.h paths.h \
24641 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24642 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24643 syslog.h unistd.h com_err.h et/com_err.h \
24644 ifaddrs.h tirpc/netconfig.h
24646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 ac_res=`eval echo '${'$as_ac_Header'}'`
24654 { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24657 # Is the header compilable?
24658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24660 cat >conftest.$ac_ext <<_ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h. */
24666 $ac_includes_default
24667 #include <$ac_header>
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_compile") 2>conftest.er1
24678 grep -v '^ *+' conftest.er1 >conftest.err
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } && {
24683 test -z "$ac_c_werror_flag" ||
24684 test ! -s conftest.err
24685 } && test -s conftest.$ac_objext; then
24686 ac_header_compiler=yes
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_header_compiler=no
24694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24696 echo "${ECHO_T}$ac_header_compiler" >&6; }
24698 # Is the header present?
24699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24701 cat >conftest.$ac_ext <<_ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h. */
24707 #include <$ac_header>
24709 if { (ac_try="$ac_cpp conftest.$ac_ext"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } >/dev/null && {
24722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24723 test ! -s conftest.err
24725 ac_header_preproc=yes
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ac_header_preproc=no
24733 rm -f conftest.err conftest.$ac_ext
24734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24735 echo "${ECHO_T}$ac_header_preproc" >&6; }
24737 # So? What about this header?
24738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24744 ac_header_preproc=yes
24747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24760 ## ---------------------------------------- ##
24761 ## Report this to linux-nfs@vger.kernel.org ##
24762 ## ---------------------------------------- ##
24764 ) | sed "s/^/$as_me: WARNING: /" >&2
24767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 eval "$as_ac_Header=\$ac_header_preproc"
24774 ac_res=`eval echo '${'$as_ac_Header'}'`
24775 { echo "$as_me:$LINENO: result: $ac_res" >&5
24776 echo "${ECHO_T}$ac_res" >&6; }
24779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24780 cat >>confdefs.h <<_ACEOF
24781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24789 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24790 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24791 if test "${ac_cv_c_const+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 cat >conftest.$ac_ext <<_ACEOF
24797 cat confdefs.h >>conftest.$ac_ext
24798 cat >>conftest.$ac_ext <<_ACEOF
24799 /* end confdefs.h. */
24804 /* FIXME: Include the comments suggested by Paul. */
24805 #ifndef __cplusplus
24806 /* Ultrix mips cc rejects this. */
24807 typedef int charset[2];
24809 /* SunOS 4.1.1 cc rejects this. */
24810 char const *const *pcpcc;
24812 /* NEC SVR4.0.2 mips cc rejects this. */
24813 struct point {int x, y;};
24814 static struct point const zero = {0,0};
24815 /* AIX XL C 1.02.0.0 rejects this.
24816 It does not let you subtract one const X* pointer from another in
24817 an arm of an if-expression whose if-part is not a constant
24819 const char *g = "string";
24820 pcpcc = &g + (g ? g-g : 0);
24821 /* HPUX 7.0 cc rejects these. */
24823 ppc = (char**) pcpcc;
24824 pcpcc = (char const *const *) ppc;
24825 { /* SCO 3.2v4 cc rejects this. */
24827 char const *s = 0 ? (char *) 0 : (char const *) 0;
24832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24833 int x[] = {25, 17};
24834 const int *foo = &x[0];
24837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24838 typedef const int *iptr;
24842 { /* AIX XL C 1.02.0.0 rejects this saying
24843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24844 struct s { int j; const int *ap[3]; };
24845 struct s *b; b->j = 5;
24847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24848 const int foo = 10;
24849 if (!foo) return 0;
24851 return !cs[0] && !zero.x;
24858 rm -f conftest.$ac_objext
24859 if { (ac_try="$ac_compile"
24860 case "(($ac_try" in
24861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862 *) ac_try_echo=$ac_try;;
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865 (eval "$ac_compile") 2>conftest.er1
24867 grep -v '^ *+' conftest.er1 >conftest.err
24869 cat conftest.err >&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } && {
24872 test -z "$ac_c_werror_flag" ||
24873 test ! -s conftest.err
24874 } && test -s conftest.$ac_objext; then
24877 echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24886 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24887 if test $ac_cv_c_const = no; then
24889 cat >>confdefs.h <<\_ACEOF
24895 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24896 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24897 if test "${ac_cv_type_uid_t+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 cat >conftest.$ac_ext <<_ACEOF
24903 cat confdefs.h >>conftest.$ac_ext
24904 cat >>conftest.$ac_ext <<_ACEOF
24905 /* end confdefs.h. */
24906 #include <sys/types.h>
24909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24910 $EGREP "uid_t" >/dev/null 2>&1; then
24911 ac_cv_type_uid_t=yes
24913 ac_cv_type_uid_t=no
24918 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24919 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24920 if test $ac_cv_type_uid_t = no; then
24922 cat >>confdefs.h <<\_ACEOF
24927 cat >>confdefs.h <<\_ACEOF
24933 { echo "$as_me:$LINENO: checking for inline" >&5
24934 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24935 if test "${ac_cv_c_inline+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24939 for ac_kw in inline __inline__ __inline; do
24940 cat >conftest.$ac_ext <<_ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 #ifndef __cplusplus
24948 static $ac_kw foo_t static_foo () {return 0; }
24949 $ac_kw foo_t foo () {return 0; }
24953 rm -f conftest.$ac_objext
24954 if { (ac_try="$ac_compile"
24955 case "(($ac_try" in
24956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960 (eval "$ac_compile") 2>conftest.er1
24962 grep -v '^ *+' conftest.er1 >conftest.err
24964 cat conftest.err >&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } && {
24967 test -z "$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 } && test -s conftest.$ac_objext; then
24970 ac_cv_c_inline=$ac_kw
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 test "$ac_cv_c_inline" != no && break
24983 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24984 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24987 case $ac_cv_c_inline in
24990 case $ac_cv_c_inline in
24992 *) ac_val=$ac_cv_c_inline;;
24994 cat >>confdefs.h <<_ACEOF
24995 #ifndef __cplusplus
24996 #define inline $ac_val
25002 { echo "$as_me:$LINENO: checking for off_t" >&5
25003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25004 if test "${ac_cv_type_off_t+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25007 cat >conftest.$ac_ext <<_ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25013 $ac_includes_default
25014 typedef off_t ac__type_new_;
25018 if ((ac__type_new_ *) 0)
25020 if (sizeof (ac__type_new_))
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25043 ac_cv_type_off_t=yes
25045 echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25048 ac_cv_type_off_t=no
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25055 if test $ac_cv_type_off_t = yes; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define off_t long int
25065 { echo "$as_me:$LINENO: checking for pid_t" >&5
25066 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
25067 if test "${ac_cv_type_pid_t+set}" = set; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25070 cat >conftest.$ac_ext <<_ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h. */
25076 $ac_includes_default
25077 typedef pid_t ac__type_new_;
25081 if ((ac__type_new_ *) 0)
25083 if (sizeof (ac__type_new_))
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093 *) ac_try_echo=$ac_try;;
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096 (eval "$ac_compile") 2>conftest.er1
25098 grep -v '^ *+' conftest.er1 >conftest.err
25100 cat conftest.err >&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } && {
25103 test -z "$ac_c_werror_flag" ||
25104 test ! -s conftest.err
25105 } && test -s conftest.$ac_objext; then
25106 ac_cv_type_pid_t=yes
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25111 ac_cv_type_pid_t=no
25114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25117 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
25118 if test $ac_cv_type_pid_t = yes; then
25122 cat >>confdefs.h <<_ACEOF
25128 { echo "$as_me:$LINENO: checking for size_t" >&5
25129 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25130 if test "${ac_cv_type_size_t+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25133 cat >conftest.$ac_ext <<_ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h. */
25139 $ac_includes_default
25140 typedef size_t ac__type_new_;
25144 if ((ac__type_new_ *) 0)
25146 if (sizeof (ac__type_new_))
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25169 ac_cv_type_size_t=yes
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_cv_type_size_t=no
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25180 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25181 if test $ac_cv_type_size_t = yes; then
25185 cat >>confdefs.h <<_ACEOF
25186 #define size_t unsigned int
25191 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25192 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25193 if test "${ac_cv_header_time+set}" = set; then
25194 echo $ECHO_N "(cached) $ECHO_C" >&6
25196 cat >conftest.$ac_ext <<_ACEOF
25199 cat confdefs.h >>conftest.$ac_ext
25200 cat >>conftest.$ac_ext <<_ACEOF
25201 /* end confdefs.h. */
25202 #include <sys/types.h>
25203 #include <sys/time.h>
25209 if ((struct tm *) 0)
25215 rm -f conftest.$ac_objext
25216 if { (ac_try="$ac_compile"
25217 case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_compile") 2>conftest.er1
25224 grep -v '^ *+' conftest.er1 >conftest.err
25226 cat conftest.err >&5
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); } && {
25229 test -z "$ac_c_werror_flag" ||
25230 test ! -s conftest.err
25231 } && test -s conftest.$ac_objext; then
25232 ac_cv_header_time=yes
25234 echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25237 ac_cv_header_time=no
25240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25243 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25244 if test $ac_cv_header_time = yes; then
25246 cat >>confdefs.h <<\_ACEOF
25247 #define TIME_WITH_SYS_TIME 1
25252 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25253 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25254 if test "${ac_cv_struct_tm+set}" = set; then
25255 echo $ECHO_N "(cached) $ECHO_C" >&6
25257 cat >conftest.$ac_ext <<_ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h. */
25263 #include <sys/types.h>
25270 int *p = &tm.tm_sec;
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283 (eval "$ac_compile") 2>conftest.er1
25285 grep -v '^ *+' conftest.er1 >conftest.err
25287 cat conftest.err >&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && {
25290 test -z "$ac_c_werror_flag" ||
25291 test ! -s conftest.err
25292 } && test -s conftest.$ac_objext; then
25293 ac_cv_struct_tm=time.h
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ac_cv_struct_tm=sys/time.h
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25304 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25305 if test $ac_cv_struct_tm = sys/time.h; then
25307 cat >>confdefs.h <<\_ACEOF
25308 #define TM_IN_SYS_TIME 1
25314 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25315 # for constant arguments. Useless!
25316 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25317 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25318 if test "${ac_cv_working_alloca_h+set}" = set; then
25319 echo $ECHO_N "(cached) $ECHO_C" >&6
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25327 #include <alloca.h>
25331 char *p = (char *) alloca (2 * sizeof (int));
25337 rm -f conftest.$ac_objext conftest$ac_exeext
25338 if { (ac_try="$ac_link"
25339 case "(($ac_try" in
25340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341 *) ac_try_echo=$ac_try;;
25343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25344 (eval "$ac_link") 2>conftest.er1
25346 grep -v '^ *+' conftest.er1 >conftest.err
25348 cat conftest.err >&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } && {
25351 test -z "$ac_c_werror_flag" ||
25352 test ! -s conftest.err
25353 } && test -s conftest$ac_exeext &&
25354 $as_test_x conftest$ac_exeext; then
25355 ac_cv_working_alloca_h=yes
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 ac_cv_working_alloca_h=no
25363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25364 conftest$ac_exeext conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25367 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25368 if test $ac_cv_working_alloca_h = yes; then
25370 cat >>confdefs.h <<\_ACEOF
25371 #define HAVE_ALLOCA_H 1
25376 { echo "$as_me:$LINENO: checking for alloca" >&5
25377 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25378 if test "${ac_cv_func_alloca_works+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25388 # define alloca __builtin_alloca
25391 # include <malloc.h>
25392 # define alloca _alloca
25394 # ifdef HAVE_ALLOCA_H
25395 # include <alloca.h>
25400 # ifndef alloca /* predefined by HP cc +Olibcalls */
25411 char *p = (char *) alloca (1);
25417 rm -f conftest.$ac_objext conftest$ac_exeext
25418 if { (ac_try="$ac_link"
25419 case "(($ac_try" in
25420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421 *) ac_try_echo=$ac_try;;
25423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424 (eval "$ac_link") 2>conftest.er1
25426 grep -v '^ *+' conftest.er1 >conftest.err
25428 cat conftest.err >&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } && {
25431 test -z "$ac_c_werror_flag" ||
25432 test ! -s conftest.err
25433 } && test -s conftest$ac_exeext &&
25434 $as_test_x conftest$ac_exeext; then
25435 ac_cv_func_alloca_works=yes
25437 echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25440 ac_cv_func_alloca_works=no
25443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25444 conftest$ac_exeext conftest.$ac_ext
25446 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25447 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25449 if test $ac_cv_func_alloca_works = yes; then
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_ALLOCA 1
25456 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25457 # that cause trouble. Some versions do not even contain alloca or
25458 # contain a buggy version. If you still want to use their alloca,
25459 # use ar to extract alloca.o from them instead of compiling alloca.c.
25461 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25463 cat >>confdefs.h <<\_ACEOF
25468 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25469 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25470 if test "${ac_cv_os_cray+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #if defined CRAY && ! defined CRAY2
25486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25487 $EGREP "webecray" >/dev/null 2>&1; then
25495 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25496 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25497 if test $ac_cv_os_cray = yes; then
25498 for ac_func in _getb67 GETB67 getb67; do
25499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25503 echo $ECHO_N "(cached) $ECHO_C" >&6
25505 cat >conftest.$ac_ext <<_ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25513 #define $ac_func innocuous_$ac_func
25515 /* System header to define __stub macros and hopefully few prototypes,
25516 which can conflict with char $ac_func (); below.
25517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25518 <limits.h> exists even on freestanding compilers. */
25521 # include <limits.h>
25523 # include <assert.h>
25528 /* Override any GCC internal prototype to avoid an error.
25529 Use char because int might match the return type of a GCC
25530 builtin and then its argument prototype would still apply. */
25535 /* The GNU C library defines this for functions which it implements
25536 to always fail with ENOSYS. Some functions are actually named
25537 something starting with __ and the normal name is an alias. */
25538 #if defined __stub_$ac_func || defined __stub___$ac_func
25545 return $ac_func ();
25550 rm -f conftest.$ac_objext conftest$ac_exeext
25551 if { (ac_try="$ac_link"
25552 case "(($ac_try" in
25553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25554 *) ac_try_echo=$ac_try;;
25556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25557 (eval "$ac_link") 2>conftest.er1
25559 grep -v '^ *+' conftest.er1 >conftest.err
25561 cat conftest.err >&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } && {
25564 test -z "$ac_c_werror_flag" ||
25565 test ! -s conftest.err
25566 } && test -s conftest$ac_exeext &&
25567 $as_test_x conftest$ac_exeext; then
25568 eval "$as_ac_var=yes"
25570 echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 eval "$as_ac_var=no"
25576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25577 conftest$ac_exeext conftest.$ac_ext
25579 ac_res=`eval echo '${'$as_ac_var'}'`
25580 { echo "$as_me:$LINENO: result: $ac_res" >&5
25581 echo "${ECHO_T}$ac_res" >&6; }
25582 if test `eval echo '${'$as_ac_var'}'` = yes; then
25584 cat >>confdefs.h <<_ACEOF
25585 #define CRAY_STACKSEG_END $ac_func
25594 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25595 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25596 if test "${ac_cv_c_stack_direction+set}" = set; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25599 if test "$cross_compiling" = yes; then
25600 ac_cv_c_stack_direction=0
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 $ac_includes_default
25610 find_stack_direction ()
25612 static char *addr = 0;
25617 return find_stack_direction ();
25620 return (&dummy > addr) ? 1 : -1;
25626 return find_stack_direction () < 0;
25629 rm -f conftest$ac_exeext
25630 if { (ac_try="$ac_link"
25631 case "(($ac_try" in
25632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633 *) ac_try_echo=$ac_try;;
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636 (eval "$ac_link") 2>&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25640 { (case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_try") 2>&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; }; then
25649 ac_cv_c_stack_direction=1
25651 echo "$as_me: program exited with status $ac_status" >&5
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ( exit $ac_status )
25656 ac_cv_c_stack_direction=-1
25658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25663 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25664 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25666 cat >>confdefs.h <<_ACEOF
25667 #define STACK_DIRECTION $ac_cv_c_stack_direction
25678 ac_header_dirent=no
25679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25680 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25681 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25682 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 cat >conftest.$ac_ext <<_ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h. */
25692 #include <sys/types.h>
25704 rm -f conftest.$ac_objext
25705 if { (ac_try="$ac_compile"
25706 case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711 (eval "$ac_compile") 2>conftest.er1
25713 grep -v '^ *+' conftest.er1 >conftest.err
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } && {
25718 test -z "$ac_c_werror_flag" ||
25719 test ! -s conftest.err
25720 } && test -s conftest.$ac_objext; then
25721 eval "$as_ac_Header=yes"
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 eval "$as_ac_Header=no"
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 ac_res=`eval echo '${'$as_ac_Header'}'`
25732 { echo "$as_me:$LINENO: result: $ac_res" >&5
25733 echo "${ECHO_T}$ac_res" >&6; }
25734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25735 cat >>confdefs.h <<_ACEOF
25736 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25739 ac_header_dirent=$ac_hdr; break
25743 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25744 if test $ac_header_dirent = dirent.h; then
25745 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25746 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25747 if test "${ac_cv_search_opendir+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 ac_func_search_save_LIBS=$LIBS
25751 cat >conftest.$ac_ext <<_ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h. */
25758 /* Override any GCC internal prototype to avoid an error.
25759 Use char because int might match the return type of a GCC
25760 builtin and then its argument prototype would still apply. */
25773 for ac_lib in '' dir; do
25774 if test -z "$ac_lib"; then
25775 ac_res="none required"
25778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25780 rm -f conftest.$ac_objext conftest$ac_exeext
25781 if { (ac_try="$ac_link"
25782 case "(($ac_try" in
25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_link") 2>conftest.er1
25789 grep -v '^ *+' conftest.er1 >conftest.err
25791 cat conftest.err >&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } && {
25794 test -z "$ac_c_werror_flag" ||
25795 test ! -s conftest.err
25796 } && test -s conftest$ac_exeext &&
25797 $as_test_x conftest$ac_exeext; then
25798 ac_cv_search_opendir=$ac_res
25800 echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25808 if test "${ac_cv_search_opendir+set}" = set; then
25812 if test "${ac_cv_search_opendir+set}" = set; then
25815 ac_cv_search_opendir=no
25817 rm conftest.$ac_ext
25818 LIBS=$ac_func_search_save_LIBS
25820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25822 ac_res=$ac_cv_search_opendir
25823 if test "$ac_res" != no; then
25824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25829 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25831 if test "${ac_cv_search_opendir+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 ac_func_search_save_LIBS=$LIBS
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25842 /* Override any GCC internal prototype to avoid an error.
25843 Use char because int might match the return type of a GCC
25844 builtin and then its argument prototype would still apply. */
25857 for ac_lib in '' x; do
25858 if test -z "$ac_lib"; then
25859 ac_res="none required"
25862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25864 rm -f conftest.$ac_objext conftest$ac_exeext
25865 if { (ac_try="$ac_link"
25866 case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_link") 2>conftest.er1
25873 grep -v '^ *+' conftest.er1 >conftest.err
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } && {
25878 test -z "$ac_c_werror_flag" ||
25879 test ! -s conftest.err
25880 } && test -s conftest$ac_exeext &&
25881 $as_test_x conftest$ac_exeext; then
25882 ac_cv_search_opendir=$ac_res
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25892 if test "${ac_cv_search_opendir+set}" = set; then
25896 if test "${ac_cv_search_opendir+set}" = set; then
25899 ac_cv_search_opendir=no
25901 rm conftest.$ac_ext
25902 LIBS=$ac_func_search_save_LIBS
25904 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25905 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25906 ac_res=$ac_cv_search_opendir
25907 if test "$ac_res" != no; then
25908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25914 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25915 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25916 if test "${ac_cv_func_closedir_void+set}" = set; then
25917 echo $ECHO_N "(cached) $ECHO_C" >&6
25919 if test "$cross_compiling" = yes; then
25920 ac_cv_func_closedir_void=yes
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25929 #include <$ac_header_dirent>
25930 #ifndef __cplusplus
25937 return closedir (opendir (".")) != 0;
25942 rm -f conftest$ac_exeext
25943 if { (ac_try="$ac_link"
25944 case "(($ac_try" in
25945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946 *) ac_try_echo=$ac_try;;
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949 (eval "$ac_link") 2>&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25953 { (case "(($ac_try" in
25954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955 *) ac_try_echo=$ac_try;;
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958 (eval "$ac_try") 2>&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; }; then
25962 ac_cv_func_closedir_void=no
25964 echo "$as_me: program exited with status $ac_status" >&5
25965 echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25968 ( exit $ac_status )
25969 ac_cv_func_closedir_void=yes
25971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25976 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25977 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25978 if test $ac_cv_func_closedir_void = yes; then
25980 cat >>confdefs.h <<\_ACEOF
25981 #define CLOSEDIR_VOID 1
25986 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25987 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25988 if test "${ac_cv_lib_error_at_line+set}" = set; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
26001 error_at_line (0, 0, "", 0, "an error occurred");
26006 rm -f conftest.$ac_objext conftest$ac_exeext
26007 if { (ac_try="$ac_link"
26008 case "(($ac_try" in
26009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010 *) ac_try_echo=$ac_try;;
26012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013 (eval "$ac_link") 2>conftest.er1
26015 grep -v '^ *+' conftest.er1 >conftest.err
26017 cat conftest.err >&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } && {
26020 test -z "$ac_c_werror_flag" ||
26021 test ! -s conftest.err
26022 } && test -s conftest$ac_exeext &&
26023 $as_test_x conftest$ac_exeext; then
26024 ac_cv_lib_error_at_line=yes
26026 echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26029 ac_cv_lib_error_at_line=no
26032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26033 conftest$ac_exeext conftest.$ac_ext
26035 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
26036 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
26037 if test $ac_cv_lib_error_at_line = no; then
26038 case " $LIBOBJS " in
26039 *" error.$ac_objext "* ) ;;
26040 *) LIBOBJS="$LIBOBJS error.$ac_objext"
26047 for ac_header in vfork.h
26049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 ac_res=`eval echo '${'$as_ac_Header'}'`
26057 { echo "$as_me:$LINENO: result: $ac_res" >&5
26058 echo "${ECHO_T}$ac_res" >&6; }
26060 # Is the header compilable?
26061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26063 cat >conftest.$ac_ext <<_ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 $ac_includes_default
26070 #include <$ac_header>
26072 rm -f conftest.$ac_objext
26073 if { (ac_try="$ac_compile"
26074 case "(($ac_try" in
26075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076 *) ac_try_echo=$ac_try;;
26078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26079 (eval "$ac_compile") 2>conftest.er1
26081 grep -v '^ *+' conftest.er1 >conftest.err
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } && {
26086 test -z "$ac_c_werror_flag" ||
26087 test ! -s conftest.err
26088 } && test -s conftest.$ac_objext; then
26089 ac_header_compiler=yes
26091 echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26094 ac_header_compiler=no
26097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26099 echo "${ECHO_T}$ac_header_compiler" >&6; }
26101 # Is the header present?
26102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26104 cat >conftest.$ac_ext <<_ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h. */
26110 #include <$ac_header>
26112 if { (ac_try="$ac_cpp conftest.$ac_ext"
26113 case "(($ac_try" in
26114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115 *) ac_try_echo=$ac_try;;
26117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26120 grep -v '^ *+' conftest.er1 >conftest.err
26122 cat conftest.err >&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } >/dev/null && {
26125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26126 test ! -s conftest.err
26128 ac_header_preproc=yes
26130 echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26133 ac_header_preproc=no
26136 rm -f conftest.err conftest.$ac_ext
26137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26138 echo "${ECHO_T}$ac_header_preproc" >&6; }
26140 # So? What about this header?
26141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26147 ac_header_preproc=yes
26150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26163 ## ---------------------------------------- ##
26164 ## Report this to linux-nfs@vger.kernel.org ##
26165 ## ---------------------------------------- ##
26167 ) | sed "s/^/$as_me: WARNING: /" >&2
26170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26173 echo $ECHO_N "(cached) $ECHO_C" >&6
26175 eval "$as_ac_Header=\$ac_header_preproc"
26177 ac_res=`eval echo '${'$as_ac_Header'}'`
26178 { echo "$as_me:$LINENO: result: $ac_res" >&5
26179 echo "${ECHO_T}$ac_res" >&6; }
26182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26183 cat >>confdefs.h <<_ACEOF
26184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26193 for ac_func in fork vfork
26195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26199 echo $ECHO_N "(cached) $ECHO_C" >&6
26201 cat >conftest.$ac_ext <<_ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26209 #define $ac_func innocuous_$ac_func
26211 /* System header to define __stub macros and hopefully few prototypes,
26212 which can conflict with char $ac_func (); below.
26213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26214 <limits.h> exists even on freestanding compilers. */
26217 # include <limits.h>
26219 # include <assert.h>
26224 /* Override any GCC internal prototype to avoid an error.
26225 Use char because int might match the return type of a GCC
26226 builtin and then its argument prototype would still apply. */
26231 /* The GNU C library defines this for functions which it implements
26232 to always fail with ENOSYS. Some functions are actually named
26233 something starting with __ and the normal name is an alias. */
26234 #if defined __stub_$ac_func || defined __stub___$ac_func
26241 return $ac_func ();
26246 rm -f conftest.$ac_objext conftest$ac_exeext
26247 if { (ac_try="$ac_link"
26248 case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253 (eval "$ac_link") 2>conftest.er1
26255 grep -v '^ *+' conftest.er1 >conftest.err
26257 cat conftest.err >&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest$ac_exeext &&
26263 $as_test_x conftest$ac_exeext; then
26264 eval "$as_ac_var=yes"
26266 echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26269 eval "$as_ac_var=no"
26272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26273 conftest$ac_exeext conftest.$ac_ext
26275 ac_res=`eval echo '${'$as_ac_var'}'`
26276 { echo "$as_me:$LINENO: result: $ac_res" >&5
26277 echo "${ECHO_T}$ac_res" >&6; }
26278 if test `eval echo '${'$as_ac_var'}'` = yes; then
26279 cat >>confdefs.h <<_ACEOF
26280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26286 if test "x$ac_cv_func_fork" = xyes; then
26287 { echo "$as_me:$LINENO: checking for working fork" >&5
26288 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
26289 if test "${ac_cv_func_fork_works+set}" = set; then
26290 echo $ECHO_N "(cached) $ECHO_C" >&6
26292 if test "$cross_compiling" = yes; then
26293 ac_cv_func_fork_works=cross
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26306 /* By Ruediger Kuhlmann. */
26307 return fork () < 0;
26313 rm -f conftest$ac_exeext
26314 if { (ac_try="$ac_link"
26315 case "(($ac_try" in
26316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317 *) ac_try_echo=$ac_try;;
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320 (eval "$ac_link") 2>&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26324 { (case "(($ac_try" in
26325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26326 *) ac_try_echo=$ac_try;;
26328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26329 (eval "$ac_try") 2>&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); }; }; then
26333 ac_cv_func_fork_works=yes
26335 echo "$as_me: program exited with status $ac_status" >&5
26336 echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26339 ( exit $ac_status )
26340 ac_cv_func_fork_works=no
26342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26347 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
26348 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
26351 ac_cv_func_fork_works=$ac_cv_func_fork
26353 if test "x$ac_cv_func_fork_works" = xcross; then
26355 *-*-amigaos* | *-*-msdosdjgpp*)
26356 # Override, as these systems have only a dummy fork() stub
26357 ac_cv_func_fork_works=no
26360 ac_cv_func_fork_works=yes
26363 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26364 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26366 ac_cv_func_vfork_works=$ac_cv_func_vfork
26367 if test "x$ac_cv_func_vfork" = xyes; then
26368 { echo "$as_me:$LINENO: checking for working vfork" >&5
26369 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
26370 if test "${ac_cv_func_vfork_works+set}" = set; then
26371 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 if test "$cross_compiling" = yes; then
26374 ac_cv_func_vfork_works=cross
26376 cat >conftest.$ac_ext <<_ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h. */
26382 /* Thanks to Paul Eggert for this test. */
26383 $ac_includes_default
26384 #include <sys/wait.h>
26385 #ifdef HAVE_VFORK_H
26386 # include <vfork.h>
26388 /* On some sparc systems, changes by the child to local and incoming
26389 argument registers are propagated back to the parent. The compiler
26390 is told about this with #include <vfork.h>, but some compilers
26391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
26392 static variable whose address is put into a register that is
26393 clobbered by the vfork. */
26396 sparc_address_test (int arg)
26398 sparc_address_test (arg) int arg;
26401 static pid_t child;
26419 pid_t parent = getpid ();
26422 sparc_address_test (0);
26427 /* Here is another test for sparc vfork register problems. This
26428 test uses lots of local variables, at least as many local
26429 variables as main has allocated so far including compiler
26430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
26431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
26432 reuse the register of parent for one of the local variables,
26433 since it will think that parent can't possibly be used any more
26434 in this routine. Assigning to the local variable will thus
26435 munge parent in the parent process. */
26437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26439 /* Convince the compiler that p..p7 are live; otherwise, it might
26440 use the same hardware register for all 8 local variables. */
26441 if (p != p1 || p != p2 || p != p3 || p != p4
26442 || p != p5 || p != p6 || p != p7)
26445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26446 from child file descriptors. If the child closes a descriptor
26447 before it execs or exits, this munges the parent's descriptor
26448 as well. Test for this by closing stdout in the child. */
26449 _exit(close(fileno(stdout)) != 0);
26454 while (wait(&status) != child)
26457 /* Was there some problem with vforking? */
26460 /* Did the child fail? (This shouldn't happen.) */
26463 /* Did the vfork/compiler bug occur? */
26464 || parent != getpid()
26466 /* Did the file descriptor bug occur? */
26467 || fstat(fileno(stdout), &st) != 0
26472 rm -f conftest$ac_exeext
26473 if { (ac_try="$ac_link"
26474 case "(($ac_try" in
26475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26476 *) ac_try_echo=$ac_try;;
26478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26479 (eval "$ac_link") 2>&5
26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26483 { (case "(($ac_try" in
26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485 *) ac_try_echo=$ac_try;;
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_try") 2>&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; }; then
26492 ac_cv_func_vfork_works=yes
26494 echo "$as_me: program exited with status $ac_status" >&5
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 ( exit $ac_status )
26499 ac_cv_func_vfork_works=no
26501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26506 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26507 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26510 if test "x$ac_cv_func_fork_works" = xcross; then
26511 ac_cv_func_vfork_works=$ac_cv_func_vfork
26512 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26513 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26516 if test "x$ac_cv_func_vfork_works" = xyes; then
26518 cat >>confdefs.h <<\_ACEOF
26519 #define HAVE_WORKING_VFORK 1
26524 cat >>confdefs.h <<\_ACEOF
26529 if test "x$ac_cv_func_fork_works" = xyes; then
26531 cat >>confdefs.h <<\_ACEOF
26532 #define HAVE_WORKING_FORK 1
26537 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26538 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26539 if test "${ac_cv_type_getgroups+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
26542 if test "$cross_compiling" = yes; then
26543 ac_cv_type_getgroups=cross
26545 cat >conftest.$ac_ext <<_ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h. */
26551 /* Thanks to Mike Rendell for this test. */
26552 $ac_includes_default
26555 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26560 gid_t gidset[NGID];
26562 union { gid_t gval; long int lval; } val;
26565 for (i = 0; i < NGID; i++)
26566 gidset[i] = val.gval;
26567 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26569 /* Exit non-zero if getgroups seems to require an array of ints. This
26570 happens when gid_t is short int but getgroups modifies an array
26572 return n > 0 && gidset[n] != val.gval;
26575 rm -f conftest$ac_exeext
26576 if { (ac_try="$ac_link"
26577 case "(($ac_try" in
26578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579 *) ac_try_echo=$ac_try;;
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582 (eval "$ac_link") 2>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26586 { (case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591 (eval "$ac_try") 2>&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); }; }; then
26595 ac_cv_type_getgroups=gid_t
26597 echo "$as_me: program exited with status $ac_status" >&5
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ( exit $ac_status )
26602 ac_cv_type_getgroups=int
26604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26608 if test $ac_cv_type_getgroups = cross; then
26609 cat >conftest.$ac_ext <<_ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h. */
26615 #include <unistd.h>
26618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26619 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26620 ac_cv_type_getgroups=gid_t
26622 ac_cv_type_getgroups=int
26628 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26629 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26631 cat >>confdefs.h <<_ACEOF
26632 #define GETGROUPS_T $ac_cv_type_getgroups
26636 { echo "$as_me:$LINENO: checking for getgroups" >&5
26637 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26638 if test "${ac_cv_func_getgroups+set}" = set; then
26639 echo $ECHO_N "(cached) $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26649 #define getgroups innocuous_getgroups
26651 /* System header to define __stub macros and hopefully few prototypes,
26652 which can conflict with char getgroups (); below.
26653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26654 <limits.h> exists even on freestanding compilers. */
26657 # include <limits.h>
26659 # include <assert.h>
26664 /* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26671 /* The GNU C library defines this for functions which it implements
26672 to always fail with ENOSYS. Some functions are actually named
26673 something starting with __ and the normal name is an alias. */
26674 #if defined __stub_getgroups || defined __stub___getgroups
26681 return getgroups ();
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690 *) ac_try_echo=$ac_try;;
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693 (eval "$ac_link") 2>conftest.er1
26695 grep -v '^ *+' conftest.er1 >conftest.err
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } && {
26700 test -z "$ac_c_werror_flag" ||
26701 test ! -s conftest.err
26702 } && test -s conftest$ac_exeext &&
26703 $as_test_x conftest$ac_exeext; then
26704 ac_cv_func_getgroups=yes
26706 echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26709 ac_cv_func_getgroups=no
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713 conftest$ac_exeext conftest.$ac_ext
26715 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26716 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26719 # If we don't yet have getgroups, see if it's in -lbsd.
26720 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26722 if test $ac_cv_func_getgroups = no; then
26723 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26724 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26725 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26726 echo $ECHO_N "(cached) $ECHO_C" >&6
26728 ac_check_lib_save_LIBS=$LIBS
26730 cat >conftest.$ac_ext <<_ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26737 /* Override any GCC internal prototype to avoid an error.
26738 Use char because int might match the return type of a GCC
26739 builtin and then its argument prototype would still apply. */
26747 return getgroups ();
26752 rm -f conftest.$ac_objext conftest$ac_exeext
26753 if { (ac_try="$ac_link"
26754 case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759 (eval "$ac_link") 2>conftest.er1
26761 grep -v '^ *+' conftest.er1 >conftest.err
26763 cat conftest.err >&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } && {
26766 test -z "$ac_c_werror_flag" ||
26767 test ! -s conftest.err
26768 } && test -s conftest$ac_exeext &&
26769 $as_test_x conftest$ac_exeext; then
26770 ac_cv_lib_bsd_getgroups=yes
26772 echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26775 ac_cv_lib_bsd_getgroups=no
26778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26779 conftest$ac_exeext conftest.$ac_ext
26780 LIBS=$ac_check_lib_save_LIBS
26782 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26783 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26784 if test $ac_cv_lib_bsd_getgroups = yes; then
26785 GETGROUPS_LIB=-lbsd
26790 # Run the program to test the functionality of the system-supplied
26791 # getgroups function only if there is such a function.
26792 if test $ac_cv_func_getgroups = yes; then
26793 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26794 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26795 if test "${ac_cv_func_getgroups_works+set}" = set; then
26796 echo $ECHO_N "(cached) $ECHO_C" >&6
26798 if test "$cross_compiling" = yes; then
26799 ac_cv_func_getgroups_works=no
26801 cat >conftest.$ac_ext <<_ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 $ac_includes_default
26811 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26812 return getgroups (0, 0) == -1;
26817 rm -f conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_link") 2>&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26828 { (case "(($ac_try" in
26829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830 *) ac_try_echo=$ac_try;;
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833 (eval "$ac_try") 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_func_getgroups_works=yes
26839 echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26843 ( exit $ac_status )
26844 ac_cv_func_getgroups_works=no
26846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26852 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26853 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26854 if test $ac_cv_func_getgroups_works = yes; then
26856 cat >>confdefs.h <<\_ACEOF
26857 #define HAVE_GETGROUPS 1
26864 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26865 # -lseq on Dynix/PTX, -lgen on Unixware.
26866 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26867 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26868 if test "${ac_cv_search_getmntent+set}" = set; then
26869 echo $ECHO_N "(cached) $ECHO_C" >&6
26871 ac_func_search_save_LIBS=$LIBS
26872 cat >conftest.$ac_ext <<_ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h. */
26879 /* Override any GCC internal prototype to avoid an error.
26880 Use char because int might match the return type of a GCC
26881 builtin and then its argument prototype would still apply. */
26889 return getmntent ();
26894 for ac_lib in '' sun seq gen; do
26895 if test -z "$ac_lib"; then
26896 ac_res="none required"
26899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26901 rm -f conftest.$ac_objext conftest$ac_exeext
26902 if { (ac_try="$ac_link"
26903 case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_link") 2>conftest.er1
26910 grep -v '^ *+' conftest.er1 >conftest.err
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } && {
26915 test -z "$ac_c_werror_flag" ||
26916 test ! -s conftest.err
26917 } && test -s conftest$ac_exeext &&
26918 $as_test_x conftest$ac_exeext; then
26919 ac_cv_search_getmntent=$ac_res
26921 echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26929 if test "${ac_cv_search_getmntent+set}" = set; then
26933 if test "${ac_cv_search_getmntent+set}" = set; then
26936 ac_cv_search_getmntent=no
26938 rm conftest.$ac_ext
26939 LIBS=$ac_func_search_save_LIBS
26941 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26942 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26943 ac_res=$ac_cv_search_getmntent
26944 if test "$ac_res" != no; then
26945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26946 ac_cv_func_getmntent=yes
26948 cat >>confdefs.h <<\_ACEOF
26949 #define HAVE_GETMNTENT
26953 ac_cv_func_getmntent=no
26957 if test $ac_cv_c_compiler_gnu = yes; then
26958 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26959 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26960 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26961 echo $ECHO_N "(cached) $ECHO_C" >&6
26963 ac_pattern="Autoconf.*'x'"
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26974 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26975 ac_cv_prog_gcc_traditional=yes
26977 ac_cv_prog_gcc_traditional=no
26982 if test $ac_cv_prog_gcc_traditional = no; then
26983 cat >conftest.$ac_ext <<_ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26989 #include <termio.h>
26992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26993 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26994 ac_cv_prog_gcc_traditional=yes
27000 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
27001 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
27002 if test $ac_cv_prog_gcc_traditional = yes; then
27003 CC="$CC -traditional"
27007 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
27008 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
27009 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
27010 echo $ECHO_N "(cached) $ECHO_C" >&6
27012 rm -f conftest.sym conftest.file
27013 echo >conftest.file
27014 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27015 if test "$cross_compiling" = yes; then
27016 ac_cv_func_lstat_dereferences_slashed_symlink=no
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27024 $ac_includes_default
27029 /* Linux will dereference the symlink and fail.
27030 That is better in the sense that it means we will not
27031 have to compile and use the lstat wrapper. */
27032 return lstat ("conftest.sym/", &sbuf) == 0;
27037 rm -f conftest$ac_exeext
27038 if { (ac_try="$ac_link"
27039 case "(($ac_try" in
27040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041 *) ac_try_echo=$ac_try;;
27043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044 (eval "$ac_link") 2>&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27048 { (case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_try") 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; }; then
27057 ac_cv_func_lstat_dereferences_slashed_symlink=yes
27059 echo "$as_me: program exited with status $ac_status" >&5
27060 echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27063 ( exit $ac_status )
27064 ac_cv_func_lstat_dereferences_slashed_symlink=no
27066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27071 # If the `ln -s' command failed, then we probably don't even
27072 # have an lstat function.
27073 ac_cv_func_lstat_dereferences_slashed_symlink=no
27075 rm -f conftest.sym conftest.file
27078 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27079 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27081 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27083 cat >>confdefs.h <<_ACEOF
27084 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27088 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27089 case " $LIBOBJS " in
27090 *" lstat.$ac_objext "* ) ;;
27091 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27097 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
27098 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
27099 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
27100 echo $ECHO_N "(cached) $ECHO_C" >&6
27102 if test "$cross_compiling" = yes; then
27103 ac_cv_func_lstat_empty_string_bug=yes
27105 cat >conftest.$ac_ext <<_ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 $ac_includes_default
27116 return lstat ("", &sbuf) == 0;
27121 rm -f conftest$ac_exeext
27122 if { (ac_try="$ac_link"
27123 case "(($ac_try" in
27124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27125 *) ac_try_echo=$ac_try;;
27127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27128 (eval "$ac_link") 2>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; }; then
27141 ac_cv_func_lstat_empty_string_bug=no
27143 echo "$as_me: program exited with status $ac_status" >&5
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27147 ( exit $ac_status )
27148 ac_cv_func_lstat_empty_string_bug=yes
27150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27155 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
27156 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
27157 if test $ac_cv_func_lstat_empty_string_bug = yes; then
27158 case " $LIBOBJS " in
27159 *" lstat.$ac_objext "* ) ;;
27160 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27165 cat >>confdefs.h <<_ACEOF
27166 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
27171 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
27172 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
27173 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27176 rm -f conftest.sym conftest.file
27177 echo >conftest.file
27178 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27179 if test "$cross_compiling" = yes; then
27180 ac_cv_func_lstat_dereferences_slashed_symlink=no
27182 cat >conftest.$ac_ext <<_ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27188 $ac_includes_default
27193 /* Linux will dereference the symlink and fail.
27194 That is better in the sense that it means we will not
27195 have to compile and use the lstat wrapper. */
27196 return lstat ("conftest.sym/", &sbuf) == 0;
27201 rm -f conftest$ac_exeext
27202 if { (ac_try="$ac_link"
27203 case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_link") 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27212 { (case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_try") 2>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; }; then
27221 ac_cv_func_lstat_dereferences_slashed_symlink=yes
27223 echo "$as_me: program exited with status $ac_status" >&5
27224 echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27227 ( exit $ac_status )
27228 ac_cv_func_lstat_dereferences_slashed_symlink=no
27230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27235 # If the `ln -s' command failed, then we probably don't even
27236 # have an lstat function.
27237 ac_cv_func_lstat_dereferences_slashed_symlink=no
27239 rm -f conftest.sym conftest.file
27242 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27243 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27245 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27247 cat >>confdefs.h <<_ACEOF
27248 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27252 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27253 case " $LIBOBJS " in
27254 *" lstat.$ac_objext "* ) ;;
27255 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27261 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
27262 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
27263 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
27264 echo $ECHO_N "(cached) $ECHO_C" >&6
27266 cat >conftest.$ac_ext <<_ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h. */
27272 #include <sys/types.h>
27276 return makedev(0, 0);
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (ac_try="$ac_link"
27283 case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_link") 2>conftest.er1
27290 grep -v '^ *+' conftest.er1 >conftest.err
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } && {
27295 test -z "$ac_c_werror_flag" ||
27296 test ! -s conftest.err
27297 } && test -s conftest$ac_exeext &&
27298 $as_test_x conftest$ac_exeext; then
27299 ac_cv_header_sys_types_h_makedev=yes
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27304 ac_cv_header_sys_types_h_makedev=no
27307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27308 conftest$ac_exeext conftest.$ac_ext
27311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
27312 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
27314 if test $ac_cv_header_sys_types_h_makedev = no; then
27315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27316 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27317 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27318 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27319 echo $ECHO_N "(cached) $ECHO_C" >&6
27321 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27322 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27324 # Is the header compilable?
27325 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
27326 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
27327 cat >conftest.$ac_ext <<_ACEOF
27330 cat confdefs.h >>conftest.$ac_ext
27331 cat >>conftest.$ac_ext <<_ACEOF
27332 /* end confdefs.h. */
27333 $ac_includes_default
27334 #include <sys/mkdev.h>
27336 rm -f conftest.$ac_objext
27337 if { (ac_try="$ac_compile"
27338 case "(($ac_try" in
27339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340 *) ac_try_echo=$ac_try;;
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343 (eval "$ac_compile") 2>conftest.er1
27345 grep -v '^ *+' conftest.er1 >conftest.err
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && {
27350 test -z "$ac_c_werror_flag" ||
27351 test ! -s conftest.err
27352 } && test -s conftest.$ac_objext; then
27353 ac_header_compiler=yes
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27358 ac_header_compiler=no
27361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27363 echo "${ECHO_T}$ac_header_compiler" >&6; }
27365 # Is the header present?
27366 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
27367 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27374 #include <sys/mkdev.h>
27376 if { (ac_try="$ac_cpp conftest.$ac_ext"
27377 case "(($ac_try" in
27378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27379 *) ac_try_echo=$ac_try;;
27381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27384 grep -v '^ *+' conftest.er1 >conftest.err
27386 cat conftest.err >&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } >/dev/null && {
27389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27390 test ! -s conftest.err
27392 ac_header_preproc=yes
27394 echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27397 ac_header_preproc=no
27400 rm -f conftest.err conftest.$ac_ext
27401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27402 echo "${ECHO_T}$ac_header_preproc" >&6; }
27404 # So? What about this header?
27405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27407 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
27408 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27409 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
27410 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
27411 ac_header_preproc=yes
27414 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
27415 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
27416 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
27417 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
27418 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
27419 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
27420 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
27421 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
27423 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
27424 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
27425 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
27427 ## ---------------------------------------- ##
27428 ## Report this to linux-nfs@vger.kernel.org ##
27429 ## ---------------------------------------- ##
27431 ) | sed "s/^/$as_me: WARNING: /" >&2
27434 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27435 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27436 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27437 echo $ECHO_N "(cached) $ECHO_C" >&6
27439 ac_cv_header_sys_mkdev_h=$ac_header_preproc
27441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27442 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27445 if test $ac_cv_header_sys_mkdev_h = yes; then
27447 cat >>confdefs.h <<\_ACEOF
27448 #define MAJOR_IN_MKDEV 1
27455 if test $ac_cv_header_sys_mkdev_h = no; then
27456 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27457 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27458 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27459 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27460 echo $ECHO_N "(cached) $ECHO_C" >&6
27462 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27463 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27465 # Is the header compilable?
27466 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27467 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27468 cat >conftest.$ac_ext <<_ACEOF
27471 cat confdefs.h >>conftest.$ac_ext
27472 cat >>conftest.$ac_ext <<_ACEOF
27473 /* end confdefs.h. */
27474 $ac_includes_default
27475 #include <sys/sysmacros.h>
27477 rm -f conftest.$ac_objext
27478 if { (ac_try="$ac_compile"
27479 case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_compile") 2>conftest.er1
27486 grep -v '^ *+' conftest.er1 >conftest.err
27488 cat conftest.err >&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); } && {
27491 test -z "$ac_c_werror_flag" ||
27492 test ! -s conftest.err
27493 } && test -s conftest.$ac_objext; then
27494 ac_header_compiler=yes
27496 echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27499 ac_header_compiler=no
27502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27504 echo "${ECHO_T}$ac_header_compiler" >&6; }
27506 # Is the header present?
27507 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27508 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27509 cat >conftest.$ac_ext <<_ACEOF
27512 cat confdefs.h >>conftest.$ac_ext
27513 cat >>conftest.$ac_ext <<_ACEOF
27514 /* end confdefs.h. */
27515 #include <sys/sysmacros.h>
27517 if { (ac_try="$ac_cpp conftest.$ac_ext"
27518 case "(($ac_try" in
27519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27520 *) ac_try_echo=$ac_try;;
27522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27525 grep -v '^ *+' conftest.er1 >conftest.err
27527 cat conftest.err >&5
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); } >/dev/null && {
27530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27531 test ! -s conftest.err
27533 ac_header_preproc=yes
27535 echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27538 ac_header_preproc=no
27541 rm -f conftest.err conftest.$ac_ext
27542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27543 echo "${ECHO_T}$ac_header_preproc" >&6; }
27545 # So? What about this header?
27546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27548 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27549 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27550 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27551 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27552 ac_header_preproc=yes
27555 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27556 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27557 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27558 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27559 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27560 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27561 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27562 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27563 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27564 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27565 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27566 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27568 ## ---------------------------------------- ##
27569 ## Report this to linux-nfs@vger.kernel.org ##
27570 ## ---------------------------------------- ##
27572 ) | sed "s/^/$as_me: WARNING: /" >&2
27575 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27576 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27577 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27578 echo $ECHO_N "(cached) $ECHO_C" >&6
27580 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27582 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27583 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27586 if test $ac_cv_header_sys_sysmacros_h = yes; then
27588 cat >>confdefs.h <<\_ACEOF
27589 #define MAJOR_IN_SYSMACROS 1
27599 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27600 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27601 if test "${ac_cv_func_memcmp_working+set}" = set; then
27602 echo $ECHO_N "(cached) $ECHO_C" >&6
27604 if test "$cross_compiling" = yes; then
27605 ac_cv_func_memcmp_working=no
27607 cat >conftest.$ac_ext <<_ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h. */
27613 $ac_includes_default
27618 /* Some versions of memcmp are not 8-bit clean. */
27619 char c0 = '\100', c1 = '\200', c2 = '\201';
27620 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27623 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27624 or more and with at least one buffer not starting on a 4-byte boundary.
27625 William Lewis provided this test program. */
27630 for (i = 0; i < 4; i++)
27634 strcpy (a, "--------01111111");
27635 strcpy (b, "--------10000000");
27636 if (memcmp (a, b, 16) >= 0)
27646 rm -f conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; }; then
27666 ac_cv_func_memcmp_working=yes
27668 echo "$as_me: program exited with status $ac_status" >&5
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 ( exit $ac_status )
27673 ac_cv_func_memcmp_working=no
27675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27680 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27681 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27682 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27683 *" memcmp.$ac_objext "* ) ;;
27684 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27692 for ac_header in sys/select.h sys/socket.h
27694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27699 echo $ECHO_N "(cached) $ECHO_C" >&6
27701 ac_res=`eval echo '${'$as_ac_Header'}'`
27702 { echo "$as_me:$LINENO: result: $ac_res" >&5
27703 echo "${ECHO_T}$ac_res" >&6; }
27705 # Is the header compilable?
27706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27708 cat >conftest.$ac_ext <<_ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27714 $ac_includes_default
27715 #include <$ac_header>
27717 rm -f conftest.$ac_objext
27718 if { (ac_try="$ac_compile"
27719 case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_compile") 2>conftest.er1
27726 grep -v '^ *+' conftest.er1 >conftest.err
27728 cat conftest.err >&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } && {
27731 test -z "$ac_c_werror_flag" ||
27732 test ! -s conftest.err
27733 } && test -s conftest.$ac_objext; then
27734 ac_header_compiler=yes
27736 echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27739 ac_header_compiler=no
27742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27744 echo "${ECHO_T}$ac_header_compiler" >&6; }
27746 # Is the header present?
27747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27749 cat >conftest.$ac_ext <<_ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h. */
27755 #include <$ac_header>
27757 if { (ac_try="$ac_cpp conftest.$ac_ext"
27758 case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27765 grep -v '^ *+' conftest.er1 >conftest.err
27767 cat conftest.err >&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } >/dev/null && {
27770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27771 test ! -s conftest.err
27773 ac_header_preproc=yes
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 ac_header_preproc=no
27781 rm -f conftest.err conftest.$ac_ext
27782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27783 echo "${ECHO_T}$ac_header_preproc" >&6; }
27785 # So? What about this header?
27786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27792 ac_header_preproc=yes
27795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27808 ## ---------------------------------------- ##
27809 ## Report this to linux-nfs@vger.kernel.org ##
27810 ## ---------------------------------------- ##
27812 ) | sed "s/^/$as_me: WARNING: /" >&2
27815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 eval "$as_ac_Header=\$ac_header_preproc"
27822 ac_res=`eval echo '${'$as_ac_Header'}'`
27823 { echo "$as_me:$LINENO: result: $ac_res" >&5
27824 echo "${ECHO_T}$ac_res" >&6; }
27827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27828 cat >>confdefs.h <<_ACEOF
27829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27836 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27837 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27838 if test "${ac_cv_func_select_args+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27842 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27843 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27844 cat >conftest.$ac_ext <<_ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h. */
27850 $ac_includes_default
27851 #ifdef HAVE_SYS_SELECT_H
27852 # include <sys/select.h>
27854 #ifdef HAVE_SYS_SOCKET_H
27855 # include <sys/socket.h>
27861 extern int select ($ac_arg1,
27862 $ac_arg234, $ac_arg234, $ac_arg234,
27868 rm -f conftest.$ac_objext
27869 if { (ac_try="$ac_compile"
27870 case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_compile") 2>conftest.er1
27877 grep -v '^ *+' conftest.er1 >conftest.err
27879 cat conftest.err >&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } && {
27882 test -z "$ac_c_werror_flag" ||
27883 test ! -s conftest.err
27884 } && test -s conftest.$ac_objext; then
27885 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27887 echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27897 # Provide a safe default value.
27898 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27901 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27902 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27903 ac_save_IFS=$IFS; IFS=','
27904 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27908 cat >>confdefs.h <<_ACEOF
27909 #define SELECT_TYPE_ARG1 $1
27913 cat >>confdefs.h <<_ACEOF
27914 #define SELECT_TYPE_ARG234 ($2)
27918 cat >>confdefs.h <<_ACEOF
27919 #define SELECT_TYPE_ARG5 ($3)
27924 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27925 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27926 if test "${ac_cv_type_signal+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27929 cat >conftest.$ac_ext <<_ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27935 #include <sys/types.h>
27936 #include <signal.h>
27941 return *(signal (0, 0)) (0) == 1;
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_compile") 2>conftest.er1
27955 grep -v '^ *+' conftest.er1 >conftest.err
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } && {
27960 test -z "$ac_c_werror_flag" ||
27961 test ! -s conftest.err
27962 } && test -s conftest.$ac_objext; then
27963 ac_cv_type_signal=int
27965 echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27968 ac_cv_type_signal=void
27971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27973 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27974 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27976 cat >>confdefs.h <<_ACEOF
27977 #define RETSIGTYPE $ac_cv_type_signal
27981 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27982 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27983 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27984 echo $ECHO_N "(cached) $ECHO_C" >&6
27986 if test "$cross_compiling" = yes; then
27987 ac_cv_func_stat_empty_string_bug=yes
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 $ac_includes_default
28000 return stat ("", &sbuf) == 0;
28005 rm -f conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009 *) ac_try_echo=$ac_try;;
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012 (eval "$ac_link") 2>&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28016 { (case "(($ac_try" in
28017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28018 *) ac_try_echo=$ac_try;;
28020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28021 (eval "$ac_try") 2>&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; }; then
28025 ac_cv_func_stat_empty_string_bug=no
28027 echo "$as_me: program exited with status $ac_status" >&5
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28031 ( exit $ac_status )
28032 ac_cv_func_stat_empty_string_bug=yes
28034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28039 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
28040 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
28041 if test $ac_cv_func_stat_empty_string_bug = yes; then
28042 case " $LIBOBJS " in
28043 *" stat.$ac_objext "* ) ;;
28044 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
28049 cat >>confdefs.h <<_ACEOF
28050 #define HAVE_STAT_EMPTY_STRING_BUG 1
28056 for ac_func in vprintf
28058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28064 cat >conftest.$ac_ext <<_ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h. */
28070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28072 #define $ac_func innocuous_$ac_func
28074 /* System header to define __stub macros and hopefully few prototypes,
28075 which can conflict with char $ac_func (); below.
28076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28077 <limits.h> exists even on freestanding compilers. */
28080 # include <limits.h>
28082 # include <assert.h>
28087 /* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28094 /* The GNU C library defines this for functions which it implements
28095 to always fail with ENOSYS. Some functions are actually named
28096 something starting with __ and the normal name is an alias. */
28097 #if defined __stub_$ac_func || defined __stub___$ac_func
28104 return $ac_func ();
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (ac_try="$ac_link"
28111 case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_link") 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } && {
28123 test -z "$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 } && test -s conftest$ac_exeext &&
28126 $as_test_x conftest$ac_exeext; then
28127 eval "$as_ac_var=yes"
28129 echo "$as_me: failed program was:" >&5
28130 sed 's/^/| /' conftest.$ac_ext >&5
28132 eval "$as_ac_var=no"
28135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28136 conftest$ac_exeext conftest.$ac_ext
28138 ac_res=`eval echo '${'$as_ac_var'}'`
28139 { echo "$as_me:$LINENO: result: $ac_res" >&5
28140 echo "${ECHO_T}$ac_res" >&6; }
28141 if test `eval echo '${'$as_ac_var'}'` = yes; then
28142 cat >>confdefs.h <<_ACEOF
28143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28146 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28147 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28148 if test "${ac_cv_func__doprnt+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28151 cat >conftest.$ac_ext <<_ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28157 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28159 #define _doprnt innocuous__doprnt
28161 /* System header to define __stub macros and hopefully few prototypes,
28162 which can conflict with char _doprnt (); below.
28163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28164 <limits.h> exists even on freestanding compilers. */
28167 # include <limits.h>
28169 # include <assert.h>
28174 /* Override any GCC internal prototype to avoid an error.
28175 Use char because int might match the return type of a GCC
28176 builtin and then its argument prototype would still apply. */
28181 /* The GNU C library defines this for functions which it implements
28182 to always fail with ENOSYS. Some functions are actually named
28183 something starting with __ and the normal name is an alias. */
28184 #if defined __stub__doprnt || defined __stub____doprnt
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (ac_try="$ac_link"
28198 case "(($ac_try" in
28199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200 *) ac_try_echo=$ac_try;;
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203 (eval "$ac_link") 2>conftest.er1
28205 grep -v '^ *+' conftest.er1 >conftest.err
28207 cat conftest.err >&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); } && {
28210 test -z "$ac_c_werror_flag" ||
28211 test ! -s conftest.err
28212 } && test -s conftest$ac_exeext &&
28213 $as_test_x conftest$ac_exeext; then
28214 ac_cv_func__doprnt=yes
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_cv_func__doprnt=no
28222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28223 conftest$ac_exeext conftest.$ac_ext
28225 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28226 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28227 if test $ac_cv_func__doprnt = yes; then
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_DOPRNT 1
28279 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
28280 gethostbyaddr gethostbyname gethostname getmntent \
28281 inet_ntop getnameinfo getrpcbyname \
28282 bindresvport_sa getnetconfig \
28283 clnt_create clnt_create_timed \
28284 clnt_tli_create clnt_vc_create clnt_dg_create xdr_rpcb \
28285 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
28286 realpath rmdir select socket strcasecmp strchr strdup \
28287 strerror strrchr strtol strtoul sigprocmask
28289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28293 echo $ECHO_N "(cached) $ECHO_C" >&6
28295 cat >conftest.$ac_ext <<_ACEOF
28298 cat confdefs.h >>conftest.$ac_ext
28299 cat >>conftest.$ac_ext <<_ACEOF
28300 /* end confdefs.h. */
28301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28303 #define $ac_func innocuous_$ac_func
28305 /* System header to define __stub macros and hopefully few prototypes,
28306 which can conflict with char $ac_func (); below.
28307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28308 <limits.h> exists even on freestanding compilers. */
28311 # include <limits.h>
28313 # include <assert.h>
28318 /* Override any GCC internal prototype to avoid an error.
28319 Use char because int might match the return type of a GCC
28320 builtin and then its argument prototype would still apply. */
28325 /* The GNU C library defines this for functions which it implements
28326 to always fail with ENOSYS. Some functions are actually named
28327 something starting with __ and the normal name is an alias. */
28328 #if defined __stub_$ac_func || defined __stub___$ac_func
28335 return $ac_func ();
28340 rm -f conftest.$ac_objext conftest$ac_exeext
28341 if { (ac_try="$ac_link"
28342 case "(($ac_try" in
28343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344 *) ac_try_echo=$ac_try;;
28346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347 (eval "$ac_link") 2>conftest.er1
28349 grep -v '^ *+' conftest.er1 >conftest.err
28351 cat conftest.err >&5
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); } && {
28354 test -z "$ac_c_werror_flag" ||
28355 test ! -s conftest.err
28356 } && test -s conftest$ac_exeext &&
28357 $as_test_x conftest$ac_exeext; then
28358 eval "$as_ac_var=yes"
28360 echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28363 eval "$as_ac_var=no"
28366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28367 conftest$ac_exeext conftest.$ac_ext
28369 ac_res=`eval echo '${'$as_ac_var'}'`
28370 { echo "$as_me:$LINENO: result: $ac_res" >&5
28371 echo "${ECHO_T}$ac_res" >&6; }
28372 if test `eval echo '${'$as_ac_var'}'` = yes; then
28373 cat >>confdefs.h <<_ACEOF
28374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28382 { echo "$as_me:$LINENO: checking for short" >&5
28383 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28384 if test "${ac_cv_type_short+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28387 cat >conftest.$ac_ext <<_ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h. */
28393 $ac_includes_default
28394 typedef short ac__type_new_;
28398 if ((ac__type_new_ *) 0)
28400 if (sizeof (ac__type_new_))
28406 rm -f conftest.$ac_objext
28407 if { (ac_try="$ac_compile"
28408 case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_compile") 2>conftest.er1
28415 grep -v '^ *+' conftest.er1 >conftest.err
28417 cat conftest.err >&5
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } && {
28420 test -z "$ac_c_werror_flag" ||
28421 test ! -s conftest.err
28422 } && test -s conftest.$ac_objext; then
28423 ac_cv_type_short=yes
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 ac_cv_type_short=no
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28433 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28434 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28436 # The cast to long int works around a bug in the HP C Compiler
28437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28439 # This bug is HP SR number 8606223364.
28440 { echo "$as_me:$LINENO: checking size of short" >&5
28441 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28442 if test "${ac_cv_sizeof_short+set}" = set; then
28443 echo $ECHO_N "(cached) $ECHO_C" >&6
28445 if test "$cross_compiling" = yes; then
28446 # Depending upon the size, compute the lo and hi bounds.
28447 cat >conftest.$ac_ext <<_ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h. */
28453 $ac_includes_default
28454 typedef short ac__type_sizeof_;
28458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28465 rm -f conftest.$ac_objext
28466 if { (ac_try="$ac_compile"
28467 case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_compile") 2>conftest.er1
28474 grep -v '^ *+' conftest.er1 >conftest.err
28476 cat conftest.err >&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } && {
28479 test -z "$ac_c_werror_flag" ||
28480 test ! -s conftest.err
28481 } && test -s conftest.$ac_objext; then
28484 cat >conftest.$ac_ext <<_ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28490 $ac_includes_default
28491 typedef short ac__type_sizeof_;
28495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28502 rm -f conftest.$ac_objext
28503 if { (ac_try="$ac_compile"
28504 case "(($ac_try" in
28505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506 *) ac_try_echo=$ac_try;;
28508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509 (eval "$ac_compile") 2>conftest.er1
28511 grep -v '^ *+' conftest.er1 >conftest.err
28513 cat conftest.err >&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); } && {
28516 test -z "$ac_c_werror_flag" ||
28517 test ! -s conftest.err
28518 } && test -s conftest.$ac_objext; then
28519 ac_hi=$ac_mid; break
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28524 ac_lo=`expr $ac_mid + 1`
28525 if test $ac_lo -le $ac_mid; then
28529 ac_mid=`expr 2 '*' $ac_mid + 1`
28532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28538 cat >conftest.$ac_ext <<_ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h. */
28544 $ac_includes_default
28545 typedef short ac__type_sizeof_;
28549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28556 rm -f conftest.$ac_objext
28557 if { (ac_try="$ac_compile"
28558 case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563 (eval "$ac_compile") 2>conftest.er1
28565 grep -v '^ *+' conftest.er1 >conftest.err
28567 cat conftest.err >&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } && {
28570 test -z "$ac_c_werror_flag" ||
28571 test ! -s conftest.err
28572 } && test -s conftest.$ac_objext; then
28575 cat >conftest.$ac_ext <<_ACEOF
28578 cat confdefs.h >>conftest.$ac_ext
28579 cat >>conftest.$ac_ext <<_ACEOF
28580 /* end confdefs.h. */
28581 $ac_includes_default
28582 typedef short ac__type_sizeof_;
28586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28593 rm -f conftest.$ac_objext
28594 if { (ac_try="$ac_compile"
28595 case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600 (eval "$ac_compile") 2>conftest.er1
28602 grep -v '^ *+' conftest.er1 >conftest.err
28604 cat conftest.err >&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); } && {
28607 test -z "$ac_c_werror_flag" ||
28608 test ! -s conftest.err
28609 } && test -s conftest.$ac_objext; then
28610 ac_lo=$ac_mid; break
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_hi=`expr '(' $ac_mid ')' - 1`
28616 if test $ac_mid -le $ac_hi; then
28620 ac_mid=`expr 2 '*' $ac_mid`
28623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28626 echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28636 # Binary search between lo and hi bounds.
28637 while test "x$ac_lo" != "x$ac_hi"; do
28638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28639 cat >conftest.$ac_ext <<_ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h. */
28645 $ac_includes_default
28646 typedef short ac__type_sizeof_;
28650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28657 rm -f conftest.$ac_objext
28658 if { (ac_try="$ac_compile"
28659 case "(($ac_try" in
28660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28661 *) ac_try_echo=$ac_try;;
28663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28664 (eval "$ac_compile") 2>conftest.er1
28666 grep -v '^ *+' conftest.er1 >conftest.err
28668 cat conftest.err >&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); } && {
28671 test -z "$ac_c_werror_flag" ||
28672 test ! -s conftest.err
28673 } && test -s conftest.$ac_objext; then
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 ac_lo=`expr '(' $ac_mid ')' + 1`
28682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28685 ?*) ac_cv_sizeof_short=$ac_lo;;
28686 '') if test "$ac_cv_type_short" = yes; then
28687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28688 See \`config.log' for more details." >&5
28689 echo "$as_me: error: cannot compute sizeof (short)
28690 See \`config.log' for more details." >&2;}
28691 { (exit 77); exit 77; }; }
28693 ac_cv_sizeof_short=0
28697 cat >conftest.$ac_ext <<_ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h. */
28703 $ac_includes_default
28704 typedef short ac__type_sizeof_;
28705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28708 #include <stdlib.h>
28713 FILE *f = fopen ("conftest.val", "w");
28716 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28718 long int i = longval ();
28719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28721 fprintf (f, "%ld\n", i);
28725 unsigned long int i = ulongval ();
28726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28728 fprintf (f, "%lu\n", i);
28730 return ferror (f) || fclose (f) != 0;
28736 rm -f conftest$ac_exeext
28737 if { (ac_try="$ac_link"
28738 case "(($ac_try" in
28739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740 *) ac_try_echo=$ac_try;;
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743 (eval "$ac_link") 2>&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28747 { (case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_try") 2>&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_cv_sizeof_short=`cat conftest.val`
28758 echo "$as_me: program exited with status $ac_status" >&5
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28762 ( exit $ac_status )
28763 if test "$ac_cv_type_short" = yes; then
28764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28765 See \`config.log' for more details." >&5
28766 echo "$as_me: error: cannot compute sizeof (short)
28767 See \`config.log' for more details." >&2;}
28768 { (exit 77); exit 77; }; }
28770 ac_cv_sizeof_short=0
28773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28778 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28782 cat >>confdefs.h <<_ACEOF
28783 #define SIZEOF_SHORT $ac_cv_sizeof_short
28787 { echo "$as_me:$LINENO: checking for int" >&5
28788 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28789 if test "${ac_cv_type_int+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28798 $ac_includes_default
28799 typedef int ac__type_new_;
28803 if ((ac__type_new_ *) 0)
28805 if (sizeof (ac__type_new_))
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_compile") 2>conftest.er1
28820 grep -v '^ *+' conftest.er1 >conftest.err
28822 cat conftest.err >&5
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } && {
28825 test -z "$ac_c_werror_flag" ||
28826 test ! -s conftest.err
28827 } && test -s conftest.$ac_objext; then
28830 echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28838 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28839 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28841 # The cast to long int works around a bug in the HP C Compiler
28842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28844 # This bug is HP SR number 8606223364.
28845 { echo "$as_me:$LINENO: checking size of int" >&5
28846 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28847 if test "${ac_cv_sizeof_int+set}" = set; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28850 if test "$cross_compiling" = yes; then
28851 # Depending upon the size, compute the lo and hi bounds.
28852 cat >conftest.$ac_ext <<_ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28858 $ac_includes_default
28859 typedef int ac__type_sizeof_;
28863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28870 rm -f conftest.$ac_objext
28871 if { (ac_try="$ac_compile"
28872 case "(($ac_try" in
28873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28874 *) ac_try_echo=$ac_try;;
28876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28877 (eval "$ac_compile") 2>conftest.er1
28879 grep -v '^ *+' conftest.er1 >conftest.err
28881 cat conftest.err >&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); } && {
28884 test -z "$ac_c_werror_flag" ||
28885 test ! -s conftest.err
28886 } && test -s conftest.$ac_objext; then
28889 cat >conftest.$ac_ext <<_ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h. */
28895 $ac_includes_default
28896 typedef int ac__type_sizeof_;
28900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911 *) ac_try_echo=$ac_try;;
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914 (eval "$ac_compile") 2>conftest.er1
28916 grep -v '^ *+' conftest.er1 >conftest.err
28918 cat conftest.err >&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } && {
28921 test -z "$ac_c_werror_flag" ||
28922 test ! -s conftest.err
28923 } && test -s conftest.$ac_objext; then
28924 ac_hi=$ac_mid; break
28926 echo "$as_me: failed program was:" >&5
28927 sed 's/^/| /' conftest.$ac_ext >&5
28929 ac_lo=`expr $ac_mid + 1`
28930 if test $ac_lo -le $ac_mid; then
28934 ac_mid=`expr 2 '*' $ac_mid + 1`
28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28940 echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.$ac_ext >&5
28943 cat >conftest.$ac_ext <<_ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 $ac_includes_default
28950 typedef int ac__type_sizeof_;
28954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28961 rm -f conftest.$ac_objext
28962 if { (ac_try="$ac_compile"
28963 case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_compile") 2>conftest.er1
28970 grep -v '^ *+' conftest.er1 >conftest.err
28972 cat conftest.err >&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); } && {
28975 test -z "$ac_c_werror_flag" ||
28976 test ! -s conftest.err
28977 } && test -s conftest.$ac_objext; then
28980 cat >conftest.$ac_ext <<_ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h. */
28986 $ac_includes_default
28987 typedef int ac__type_sizeof_;
28991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_compile") 2>conftest.er1
29007 grep -v '^ *+' conftest.er1 >conftest.err
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest.$ac_objext; then
29015 ac_lo=$ac_mid; break
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_hi=`expr '(' $ac_mid ')' - 1`
29021 if test $ac_mid -le $ac_hi; then
29025 ac_mid=`expr 2 '*' $ac_mid`
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 echo "$as_me: failed program was:" >&5
29032 sed 's/^/| /' conftest.$ac_ext >&5
29037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29041 # Binary search between lo and hi bounds.
29042 while test "x$ac_lo" != "x$ac_hi"; do
29043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29044 cat >conftest.$ac_ext <<_ACEOF
29047 cat confdefs.h >>conftest.$ac_ext
29048 cat >>conftest.$ac_ext <<_ACEOF
29049 /* end confdefs.h. */
29050 $ac_includes_default
29051 typedef int ac__type_sizeof_;
29055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
29071 grep -v '^ *+' conftest.er1 >conftest.err
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } && {
29076 test -z "$ac_c_werror_flag" ||
29077 test ! -s conftest.err
29078 } && test -s conftest.$ac_objext; then
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29084 ac_lo=`expr '(' $ac_mid ')' + 1`
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29090 ?*) ac_cv_sizeof_int=$ac_lo;;
29091 '') if test "$ac_cv_type_int" = yes; then
29092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29093 See \`config.log' for more details." >&5
29094 echo "$as_me: error: cannot compute sizeof (int)
29095 See \`config.log' for more details." >&2;}
29096 { (exit 77); exit 77; }; }
29102 cat >conftest.$ac_ext <<_ACEOF
29105 cat confdefs.h >>conftest.$ac_ext
29106 cat >>conftest.$ac_ext <<_ACEOF
29107 /* end confdefs.h. */
29108 $ac_includes_default
29109 typedef int ac__type_sizeof_;
29110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29113 #include <stdlib.h>
29118 FILE *f = fopen ("conftest.val", "w");
29121 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29123 long int i = longval ();
29124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29126 fprintf (f, "%ld\n", i);
29130 unsigned long int i = ulongval ();
29131 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29133 fprintf (f, "%lu\n", i);
29135 return ferror (f) || fclose (f) != 0;
29141 rm -f conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_link") 2>&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29152 { (case "(($ac_try" in
29153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154 *) ac_try_echo=$ac_try;;
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157 (eval "$ac_try") 2>&5
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); }; }; then
29161 ac_cv_sizeof_int=`cat conftest.val`
29163 echo "$as_me: program exited with status $ac_status" >&5
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29167 ( exit $ac_status )
29168 if test "$ac_cv_type_int" = yes; then
29169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29170 See \`config.log' for more details." >&5
29171 echo "$as_me: error: cannot compute sizeof (int)
29172 See \`config.log' for more details." >&2;}
29173 { (exit 77); exit 77; }; }
29178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29183 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29187 cat >>confdefs.h <<_ACEOF
29188 #define SIZEOF_INT $ac_cv_sizeof_int
29192 { echo "$as_me:$LINENO: checking for long" >&5
29193 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29194 if test "${ac_cv_type_long+set}" = set; then
29195 echo $ECHO_N "(cached) $ECHO_C" >&6
29197 cat >conftest.$ac_ext <<_ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203 $ac_includes_default
29204 typedef long ac__type_new_;
29208 if ((ac__type_new_ *) 0)
29210 if (sizeof (ac__type_new_))
29216 rm -f conftest.$ac_objext
29217 if { (ac_try="$ac_compile"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_compile") 2>conftest.er1
29225 grep -v '^ *+' conftest.er1 >conftest.err
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } && {
29230 test -z "$ac_c_werror_flag" ||
29231 test ! -s conftest.err
29232 } && test -s conftest.$ac_objext; then
29233 ac_cv_type_long=yes
29235 echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29243 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29244 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29246 # The cast to long int works around a bug in the HP C Compiler
29247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29249 # This bug is HP SR number 8606223364.
29250 { echo "$as_me:$LINENO: checking size of long" >&5
29251 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29252 if test "${ac_cv_sizeof_long+set}" = set; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29255 if test "$cross_compiling" = yes; then
29256 # Depending upon the size, compute the lo and hi bounds.
29257 cat >conftest.$ac_ext <<_ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29263 $ac_includes_default
29264 typedef long ac__type_sizeof_;
29268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29275 rm -f conftest.$ac_objext
29276 if { (ac_try="$ac_compile"
29277 case "(($ac_try" in
29278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279 *) ac_try_echo=$ac_try;;
29281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282 (eval "$ac_compile") 2>conftest.er1
29284 grep -v '^ *+' conftest.er1 >conftest.err
29286 cat conftest.err >&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); } && {
29289 test -z "$ac_c_werror_flag" ||
29290 test ! -s conftest.err
29291 } && test -s conftest.$ac_objext; then
29294 cat >conftest.$ac_ext <<_ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h. */
29300 $ac_includes_default
29301 typedef long ac__type_sizeof_;
29305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29312 rm -f conftest.$ac_objext
29313 if { (ac_try="$ac_compile"
29314 case "(($ac_try" in
29315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316 *) ac_try_echo=$ac_try;;
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319 (eval "$ac_compile") 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } && {
29326 test -z "$ac_c_werror_flag" ||
29327 test ! -s conftest.err
29328 } && test -s conftest.$ac_objext; then
29329 ac_hi=$ac_mid; break
29331 echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29334 ac_lo=`expr $ac_mid + 1`
29335 if test $ac_lo -le $ac_mid; then
29339 ac_mid=`expr 2 '*' $ac_mid + 1`
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345 echo "$as_me: failed program was:" >&5
29346 sed 's/^/| /' conftest.$ac_ext >&5
29348 cat >conftest.$ac_ext <<_ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h. */
29354 $ac_includes_default
29355 typedef long ac__type_sizeof_;
29359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29366 rm -f conftest.$ac_objext
29367 if { (ac_try="$ac_compile"
29368 case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373 (eval "$ac_compile") 2>conftest.er1
29375 grep -v '^ *+' conftest.er1 >conftest.err
29377 cat conftest.err >&5
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } && {
29380 test -z "$ac_c_werror_flag" ||
29381 test ! -s conftest.err
29382 } && test -s conftest.$ac_objext; then
29385 cat >conftest.$ac_ext <<_ACEOF
29388 cat confdefs.h >>conftest.$ac_ext
29389 cat >>conftest.$ac_ext <<_ACEOF
29390 /* end confdefs.h. */
29391 $ac_includes_default
29392 typedef long ac__type_sizeof_;
29396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29403 rm -f conftest.$ac_objext
29404 if { (ac_try="$ac_compile"
29405 case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_compile") 2>conftest.er1
29412 grep -v '^ *+' conftest.er1 >conftest.err
29414 cat conftest.err >&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); } && {
29417 test -z "$ac_c_werror_flag" ||
29418 test ! -s conftest.err
29419 } && test -s conftest.$ac_objext; then
29420 ac_lo=$ac_mid; break
29422 echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29425 ac_hi=`expr '(' $ac_mid ')' - 1`
29426 if test $ac_mid -le $ac_hi; then
29430 ac_mid=`expr 2 '*' $ac_mid`
29433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29436 echo "$as_me: failed program was:" >&5
29437 sed 's/^/| /' conftest.$ac_ext >&5
29442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29446 # Binary search between lo and hi bounds.
29447 while test "x$ac_lo" != "x$ac_hi"; do
29448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29449 cat >conftest.$ac_ext <<_ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 $ac_includes_default
29456 typedef long ac__type_sizeof_;
29460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29467 rm -f conftest.$ac_objext
29468 if { (ac_try="$ac_compile"
29469 case "(($ac_try" in
29470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471 *) ac_try_echo=$ac_try;;
29473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474 (eval "$ac_compile") 2>conftest.er1
29476 grep -v '^ *+' conftest.er1 >conftest.err
29478 cat conftest.err >&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); } && {
29481 test -z "$ac_c_werror_flag" ||
29482 test ! -s conftest.err
29483 } && test -s conftest.$ac_objext; then
29486 echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29489 ac_lo=`expr '(' $ac_mid ')' + 1`
29492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29495 ?*) ac_cv_sizeof_long=$ac_lo;;
29496 '') if test "$ac_cv_type_long" = yes; then
29497 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29498 See \`config.log' for more details." >&5
29499 echo "$as_me: error: cannot compute sizeof (long)
29500 See \`config.log' for more details." >&2;}
29501 { (exit 77); exit 77; }; }
29503 ac_cv_sizeof_long=0
29507 cat >conftest.$ac_ext <<_ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29513 $ac_includes_default
29514 typedef long ac__type_sizeof_;
29515 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29516 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29518 #include <stdlib.h>
29523 FILE *f = fopen ("conftest.val", "w");
29526 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29528 long int i = longval ();
29529 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29531 fprintf (f, "%ld\n", i);
29535 unsigned long int i = ulongval ();
29536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29538 fprintf (f, "%lu\n", i);
29540 return ferror (f) || fclose (f) != 0;
29546 rm -f conftest$ac_exeext
29547 if { (ac_try="$ac_link"
29548 case "(($ac_try" in
29549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550 *) ac_try_echo=$ac_try;;
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553 (eval "$ac_link") 2>&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; }; then
29566 ac_cv_sizeof_long=`cat conftest.val`
29568 echo "$as_me: program exited with status $ac_status" >&5
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29572 ( exit $ac_status )
29573 if test "$ac_cv_type_long" = yes; then
29574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29575 See \`config.log' for more details." >&5
29576 echo "$as_me: error: cannot compute sizeof (long)
29577 See \`config.log' for more details." >&2;}
29578 { (exit 77); exit 77; }; }
29580 ac_cv_sizeof_long=0
29583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29588 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29592 cat >>confdefs.h <<_ACEOF
29593 #define SIZEOF_LONG $ac_cv_sizeof_long
29597 { echo "$as_me:$LINENO: checking for size_t" >&5
29598 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29599 if test "${ac_cv_type_size_t+set}" = set; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 cat >conftest.$ac_ext <<_ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h. */
29608 $ac_includes_default
29609 typedef size_t ac__type_new_;
29613 if ((ac__type_new_ *) 0)
29615 if (sizeof (ac__type_new_))
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_compile") 2>conftest.er1
29630 grep -v '^ *+' conftest.er1 >conftest.err
29632 cat conftest.err >&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } && {
29635 test -z "$ac_c_werror_flag" ||
29636 test ! -s conftest.err
29637 } && test -s conftest.$ac_objext; then
29638 ac_cv_type_size_t=yes
29640 echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29643 ac_cv_type_size_t=no
29646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29648 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29649 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29651 # The cast to long int works around a bug in the HP C Compiler
29652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29654 # This bug is HP SR number 8606223364.
29655 { echo "$as_me:$LINENO: checking size of size_t" >&5
29656 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29657 if test "${ac_cv_sizeof_size_t+set}" = set; then
29658 echo $ECHO_N "(cached) $ECHO_C" >&6
29660 if test "$cross_compiling" = yes; then
29661 # Depending upon the size, compute the lo and hi bounds.
29662 cat >conftest.$ac_ext <<_ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h. */
29668 $ac_includes_default
29669 typedef size_t ac__type_sizeof_;
29673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29680 rm -f conftest.$ac_objext
29681 if { (ac_try="$ac_compile"
29682 case "(($ac_try" in
29683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684 *) ac_try_echo=$ac_try;;
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687 (eval "$ac_compile") 2>conftest.er1
29689 grep -v '^ *+' conftest.er1 >conftest.err
29691 cat conftest.err >&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); } && {
29694 test -z "$ac_c_werror_flag" ||
29695 test ! -s conftest.err
29696 } && test -s conftest.$ac_objext; then
29699 cat >conftest.$ac_ext <<_ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29705 $ac_includes_default
29706 typedef size_t ac__type_sizeof_;
29710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29717 rm -f conftest.$ac_objext
29718 if { (ac_try="$ac_compile"
29719 case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_compile") 2>conftest.er1
29726 grep -v '^ *+' conftest.er1 >conftest.err
29728 cat conftest.err >&5
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); } && {
29731 test -z "$ac_c_werror_flag" ||
29732 test ! -s conftest.err
29733 } && test -s conftest.$ac_objext; then
29734 ac_hi=$ac_mid; break
29736 echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.$ac_ext >&5
29739 ac_lo=`expr $ac_mid + 1`
29740 if test $ac_lo -le $ac_mid; then
29744 ac_mid=`expr 2 '*' $ac_mid + 1`
29747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29753 cat >conftest.$ac_ext <<_ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h. */
29759 $ac_includes_default
29760 typedef size_t ac__type_sizeof_;
29764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29771 rm -f conftest.$ac_objext
29772 if { (ac_try="$ac_compile"
29773 case "(($ac_try" in
29774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_compile") 2>conftest.er1
29780 grep -v '^ *+' conftest.er1 >conftest.err
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } && {
29785 test -z "$ac_c_werror_flag" ||
29786 test ! -s conftest.err
29787 } && test -s conftest.$ac_objext; then
29790 cat >conftest.$ac_ext <<_ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h. */
29796 $ac_includes_default
29797 typedef size_t ac__type_sizeof_;
29801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29808 rm -f conftest.$ac_objext
29809 if { (ac_try="$ac_compile"
29810 case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_compile") 2>conftest.er1
29817 grep -v '^ *+' conftest.er1 >conftest.err
29819 cat conftest.err >&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } && {
29822 test -z "$ac_c_werror_flag" ||
29823 test ! -s conftest.err
29824 } && test -s conftest.$ac_objext; then
29825 ac_lo=$ac_mid; break
29827 echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29830 ac_hi=`expr '(' $ac_mid ')' - 1`
29831 if test $ac_mid -le $ac_hi; then
29835 ac_mid=`expr 2 '*' $ac_mid`
29838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29851 # Binary search between lo and hi bounds.
29852 while test "x$ac_lo" != "x$ac_hi"; do
29853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29860 $ac_includes_default
29861 typedef size_t ac__type_sizeof_;
29865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_compile") 2>conftest.er1
29881 grep -v '^ *+' conftest.er1 >conftest.err
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } && {
29886 test -z "$ac_c_werror_flag" ||
29887 test ! -s conftest.err
29888 } && test -s conftest.$ac_objext; then
29891 echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29894 ac_lo=`expr '(' $ac_mid ')' + 1`
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29900 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29901 '') if test "$ac_cv_type_size_t" = yes; then
29902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29903 See \`config.log' for more details." >&5
29904 echo "$as_me: error: cannot compute sizeof (size_t)
29905 See \`config.log' for more details." >&2;}
29906 { (exit 77); exit 77; }; }
29908 ac_cv_sizeof_size_t=0
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29918 $ac_includes_default
29919 typedef size_t ac__type_sizeof_;
29920 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29921 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29923 #include <stdlib.h>
29928 FILE *f = fopen ("conftest.val", "w");
29931 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29933 long int i = longval ();
29934 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29936 fprintf (f, "%ld\n", i);
29940 unsigned long int i = ulongval ();
29941 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29943 fprintf (f, "%lu\n", i);
29945 return ferror (f) || fclose (f) != 0;
29951 rm -f conftest$ac_exeext
29952 if { (ac_try="$ac_link"
29953 case "(($ac_try" in
29954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955 *) ac_try_echo=$ac_try;;
29957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958 (eval "$ac_link") 2>&5
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29962 { (case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_try") 2>&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 ac_cv_sizeof_size_t=`cat conftest.val`
29973 echo "$as_me: program exited with status $ac_status" >&5
29974 echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29977 ( exit $ac_status )
29978 if test "$ac_cv_type_size_t" = yes; then
29979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29980 See \`config.log' for more details." >&5
29981 echo "$as_me: error: cannot compute sizeof (size_t)
29982 See \`config.log' for more details." >&2;}
29983 { (exit 77); exit 77; }; }
29985 ac_cv_sizeof_size_t=0
29988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29992 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29993 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29997 cat >>confdefs.h <<_ACEOF
29998 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30002 { echo "$as_me:$LINENO: checking for socklen_t" >&5
30003 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30004 if test "${ac_cv_type_socklen_t+set}" = set; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30007 cat >conftest.$ac_ext <<_ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h. */
30013 $ac_includes_default
30014 typedef socklen_t ac__type_new_;
30018 if ((ac__type_new_ *) 0)
30020 if (sizeof (ac__type_new_))
30026 rm -f conftest.$ac_objext
30027 if { (ac_try="$ac_compile"
30028 case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_compile") 2>conftest.er1
30035 grep -v '^ *+' conftest.er1 >conftest.err
30037 cat conftest.err >&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } && {
30040 test -z "$ac_c_werror_flag" ||
30041 test ! -s conftest.err
30042 } && test -s conftest.$ac_objext; then
30043 ac_cv_type_socklen_t=yes
30045 echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30048 ac_cv_type_socklen_t=no
30051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30053 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30054 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30056 # The cast to long int works around a bug in the HP C Compiler
30057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30059 # This bug is HP SR number 8606223364.
30060 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30061 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30062 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30063 echo $ECHO_N "(cached) $ECHO_C" >&6
30065 if test "$cross_compiling" = yes; then
30066 # Depending upon the size, compute the lo and hi bounds.
30067 cat >conftest.$ac_ext <<_ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h. */
30073 $ac_includes_default
30074 typedef socklen_t ac__type_sizeof_;
30078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30085 rm -f conftest.$ac_objext
30086 if { (ac_try="$ac_compile"
30087 case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_compile") 2>conftest.er1
30094 grep -v '^ *+' conftest.er1 >conftest.err
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } && {
30099 test -z "$ac_c_werror_flag" ||
30100 test ! -s conftest.err
30101 } && test -s conftest.$ac_objext; then
30104 cat >conftest.$ac_ext <<_ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h. */
30110 $ac_includes_default
30111 typedef socklen_t ac__type_sizeof_;
30115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_compile") 2>conftest.er1
30131 grep -v '^ *+' conftest.er1 >conftest.err
30133 cat conftest.err >&5
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); } && {
30136 test -z "$ac_c_werror_flag" ||
30137 test ! -s conftest.err
30138 } && test -s conftest.$ac_objext; then
30139 ac_hi=$ac_mid; break
30141 echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144 ac_lo=`expr $ac_mid + 1`
30145 if test $ac_lo -le $ac_mid; then
30149 ac_mid=`expr 2 '*' $ac_mid + 1`
30152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30155 echo "$as_me: failed program was:" >&5
30156 sed 's/^/| /' conftest.$ac_ext >&5
30158 cat >conftest.$ac_ext <<_ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h. */
30164 $ac_includes_default
30165 typedef socklen_t ac__type_sizeof_;
30169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30176 rm -f conftest.$ac_objext
30177 if { (ac_try="$ac_compile"
30178 case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_compile") 2>conftest.er1
30185 grep -v '^ *+' conftest.er1 >conftest.err
30187 cat conftest.err >&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); } && {
30190 test -z "$ac_c_werror_flag" ||
30191 test ! -s conftest.err
30192 } && test -s conftest.$ac_objext; then
30195 cat >conftest.$ac_ext <<_ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30201 $ac_includes_default
30202 typedef socklen_t ac__type_sizeof_;
30206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30213 rm -f conftest.$ac_objext
30214 if { (ac_try="$ac_compile"
30215 case "(($ac_try" in
30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217 *) ac_try_echo=$ac_try;;
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220 (eval "$ac_compile") 2>conftest.er1
30222 grep -v '^ *+' conftest.er1 >conftest.err
30224 cat conftest.err >&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); } && {
30227 test -z "$ac_c_werror_flag" ||
30228 test ! -s conftest.err
30229 } && test -s conftest.$ac_objext; then
30230 ac_lo=$ac_mid; break
30232 echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30235 ac_hi=`expr '(' $ac_mid ')' - 1`
30236 if test $ac_mid -le $ac_hi; then
30240 ac_mid=`expr 2 '*' $ac_mid`
30243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30246 echo "$as_me: failed program was:" >&5
30247 sed 's/^/| /' conftest.$ac_ext >&5
30252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30256 # Binary search between lo and hi bounds.
30257 while test "x$ac_lo" != "x$ac_hi"; do
30258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30259 cat >conftest.$ac_ext <<_ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h. */
30265 $ac_includes_default
30266 typedef socklen_t ac__type_sizeof_;
30270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30277 rm -f conftest.$ac_objext
30278 if { (ac_try="$ac_compile"
30279 case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_compile") 2>conftest.er1
30286 grep -v '^ *+' conftest.er1 >conftest.err
30288 cat conftest.err >&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); } && {
30291 test -z "$ac_c_werror_flag" ||
30292 test ! -s conftest.err
30293 } && test -s conftest.$ac_objext; then
30296 echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30299 ac_lo=`expr '(' $ac_mid ')' + 1`
30302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30305 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30306 '') if test "$ac_cv_type_socklen_t" = yes; then
30307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30308 See \`config.log' for more details." >&5
30309 echo "$as_me: error: cannot compute sizeof (socklen_t)
30310 See \`config.log' for more details." >&2;}
30311 { (exit 77); exit 77; }; }
30313 ac_cv_sizeof_socklen_t=0
30317 cat >conftest.$ac_ext <<_ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h. */
30323 $ac_includes_default
30324 typedef socklen_t ac__type_sizeof_;
30325 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30326 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30328 #include <stdlib.h>
30333 FILE *f = fopen ("conftest.val", "w");
30336 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30338 long int i = longval ();
30339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30341 fprintf (f, "%ld\n", i);
30345 unsigned long int i = ulongval ();
30346 if (i != ((long int) (sizeof (ac__type_sizeof_))))
30348 fprintf (f, "%lu\n", i);
30350 return ferror (f) || fclose (f) != 0;
30356 rm -f conftest$ac_exeext
30357 if { (ac_try="$ac_link"
30358 case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_link") 2>&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30367 { (case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_try") 2>&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; }; then
30376 ac_cv_sizeof_socklen_t=`cat conftest.val`
30378 echo "$as_me: program exited with status $ac_status" >&5
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30382 ( exit $ac_status )
30383 if test "$ac_cv_type_socklen_t" = yes; then
30384 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30385 See \`config.log' for more details." >&5
30386 echo "$as_me: error: cannot compute sizeof (socklen_t)
30387 See \`config.log' for more details." >&2;}
30388 { (exit 77); exit 77; }; }
30390 ac_cv_sizeof_socklen_t=0
30393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30397 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30398 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30402 cat >>confdefs.h <<_ACEOF
30403 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30410 cat >>confdefs.h <<_ACEOF
30411 #define NFS_STATEDIR "$statedir"
30415 if test "x$cross_compiling" = "xno"; then
30416 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30417 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30418 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30419 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30421 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30422 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30423 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30424 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30442 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
30444 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
30446 AM_CFLAGS="$my_am_cflags"
30449 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30450 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30453 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"
30455 cat >confcache <<\_ACEOF
30456 # This file is a shell script that caches the results of configure
30457 # tests run on this system so they can be shared between configure
30458 # scripts and configure runs, see configure's option --config-cache.
30459 # It is not useful on other systems. If it contains results you don't
30460 # want to keep, you may remove or edit it.
30462 # config.status only pays attention to the cache file if you give it
30463 # the --recheck option to rerun configure.
30465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30467 # following values.
30471 # The following way of writing the cache mishandles newlines in values,
30472 # but we know of no workaround that is simple, portable, and efficient.
30473 # So, we kill variables containing newlines.
30474 # Ultrix sh set writes to stderr and can't be redirected directly,
30475 # and sets the high bit in the cache file unless we assign to the vars.
30477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30478 eval ac_val=\$$ac_var
30482 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30486 _ | IFS | as_nl) ;; #(
30487 *) $as_unset $ac_var ;;
30493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30494 *${as_nl}ac_space=\ *)
30495 # `set' does not quote correctly, so add quotes (double-quote
30496 # substitution turns \\\\ into \\, and sed turns \\ into \).
30499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30502 # `set' quotes correctly as required by POSIX, so do not add quotes.
30503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30517 if test -w "$cache_file"; then
30518 test "x$cache_file" != "x/dev/null" &&
30519 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30520 echo "$as_me: updating cache $cache_file" >&6;}
30521 cat confcache >$cache_file
30523 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30530 # Let make expand exec_prefix.
30531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30533 DEFS=-DHAVE_CONFIG_H
30537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30538 # 1. Remove the extension, and $U if already installed.
30539 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30540 ac_i=`echo "$ac_i" | sed "$ac_script"`
30541 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30542 # will be set to the directory where LIBOBJS objects are built.
30543 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30544 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30546 LIBOBJS=$ac_libobjs
30548 LTLIBOBJS=$ac_ltlibobjs
30551 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30552 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30553 Usually this means the macro was only invoked conditionally." >&5
30554 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30555 Usually this means the macro was only invoked conditionally." >&2;}
30556 { (exit 1); exit 1; }; }
30558 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30559 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30560 Usually this means the macro was only invoked conditionally." >&5
30561 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30562 Usually this means the macro was only invoked conditionally." >&2;}
30563 { (exit 1); exit 1; }; }
30565 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30566 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30567 Usually this means the macro was only invoked conditionally." >&5
30568 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30569 Usually this means the macro was only invoked conditionally." >&2;}
30570 { (exit 1); exit 1; }; }
30572 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30573 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30574 Usually this means the macro was only invoked conditionally." >&5
30575 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30576 Usually this means the macro was only invoked conditionally." >&2;}
30577 { (exit 1); exit 1; }; }
30579 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30580 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30581 Usually this means the macro was only invoked conditionally." >&5
30582 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30583 Usually this means the macro was only invoked conditionally." >&2;}
30584 { (exit 1); exit 1; }; }
30586 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
30587 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
30588 Usually this means the macro was only invoked conditionally." >&5
30589 echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
30590 Usually this means the macro was only invoked conditionally." >&2;}
30591 { (exit 1); exit 1; }; }
30593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30594 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30595 Usually this means the macro was only invoked conditionally." >&5
30596 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30597 Usually this means the macro was only invoked conditionally." >&2;}
30598 { (exit 1); exit 1; }; }
30600 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30601 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30602 Usually this means the macro was only invoked conditionally." >&5
30603 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30604 Usually this means the macro was only invoked conditionally." >&2;}
30605 { (exit 1); exit 1; }; }
30607 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30608 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30609 Usually this means the macro was only invoked conditionally." >&5
30610 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30611 Usually this means the macro was only invoked conditionally." >&2;}
30612 { (exit 1); exit 1; }; }
30614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30615 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30616 Usually this means the macro was only invoked conditionally." >&5
30617 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30618 Usually this means the macro was only invoked conditionally." >&2;}
30619 { (exit 1); exit 1; }; }
30622 : ${CONFIG_STATUS=./config.status}
30623 ac_clean_files_save=$ac_clean_files
30624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30625 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30626 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30627 cat >$CONFIG_STATUS <<_ACEOF
30629 # Generated by $as_me.
30630 # Run this file to recreate the current configuration.
30631 # Compiler output produced by configure, useful for debugging
30632 # configure, is in config.log if it exists.
30635 ac_cs_recheck=false
30637 SHELL=\${CONFIG_SHELL-$SHELL}
30640 cat >>$CONFIG_STATUS <<\_ACEOF
30641 ## --------------------- ##
30642 ## M4sh Initialization. ##
30643 ## --------------------- ##
30645 # Be more Bourne compatible
30646 DUALCASE=1; export DUALCASE # for MKS sh
30647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30650 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30651 # is contrary to our usage. Disable this feature.
30652 alias -g '${1+"$@"}'='"$@"'
30653 setopt NO_GLOB_SUBST
30655 case `(set -o) 2>/dev/null` in
30656 *posix*) set -o posix ;;
30665 # Avoid depending upon Character Ranges.
30666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30669 as_cr_digits='0123456789'
30670 as_cr_alnum=$as_cr_Letters$as_cr_digits
30672 # The user is always right.
30673 if test "${PATH_SEPARATOR+set}" != set; then
30674 echo "#! /bin/sh" >conf$$.sh
30675 echo "exit 0" >>conf$$.sh
30677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30685 # Support unset when possible.
30686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30694 # We need space, tab and new line, in precisely that order. Quoting is
30695 # there to prevent editors from complaining about space-tab.
30696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30697 # splitting by setting IFS to empty value.)
30702 # Find who we are. Look in the path if we contain no directory separator.
30704 *[\\/]* ) as_myself=$0 ;;
30705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30706 for as_dir in $PATH
30709 test -z "$as_dir" && as_dir=.
30710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30716 # We did not find ourselves, most probably we were run as `sh COMMAND'
30717 # in which case we are not to be found in the path.
30718 if test "x$as_myself" = x; then
30721 if test ! -f "$as_myself"; then
30722 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30723 { (exit 1); exit 1; }
30726 # Work around bugs in pre-3.0 UWIN ksh.
30727 for as_var in ENV MAIL MAILPATH
30728 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30736 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30737 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30738 LC_TELEPHONE LC_TIME
30740 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30741 eval $as_var=C; export $as_var
30743 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30747 # Required to use basename.
30748 if expr a : '\(a\)' >/dev/null 2>&1 &&
30749 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30755 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30756 as_basename=basename
30762 # Name of the executable.
30763 as_me=`$as_basename -- "$0" ||
30764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30765 X"$0" : 'X\(//\)$' \| \
30766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30768 sed '/^.*\/\([^/][^/]*\)\/*$/{
30787 as_lineno_1=$LINENO
30788 as_lineno_2=$LINENO
30789 test "x$as_lineno_1" != "x$as_lineno_2" &&
30790 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30792 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30793 # uniformly replaced by the line number. The first 'sed' inserts a
30794 # line-number line after each line using $LINENO; the second 'sed'
30795 # does the real work. The second script uses 'N' to pair each
30796 # line-number line with the line containing $LINENO, and appends
30797 # trailing '-' during substitution so that $LINENO is not a special
30798 # case at line end.
30799 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30800 # scripts with optimization help from Paolo Bonzini. Blame Lee
30801 # E. McMahon (1931-1989) for sed's syntax. :-)
30813 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30816 ' >$as_me.lineno &&
30817 chmod +x "$as_me.lineno" ||
30818 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30819 { (exit 1); exit 1; }; }
30821 # Don't try to exec as it changes $[0], causing all sort of problems
30822 # (the dirname of $[0] is not the place where we might find the
30823 # original and so on. Autoconf is especially sensitive to this).
30824 . "./$as_me.lineno"
30825 # Exit status is that of the last command.
30830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30836 ECHO_C= ECHO_N= ECHO_T=
30837 case `echo -n x` in
30839 case `echo 'x\c'` in
30840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30847 if expr a : '\(a\)' >/dev/null 2>&1 &&
30848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30854 rm -f conf$$ conf$$.exe conf$$.file
30855 if test -d conf$$.dir; then
30856 rm -f conf$$.dir/conf$$.file
30862 if ln -s conf$$.file conf$$ 2>/dev/null; then
30864 # ... but there are two gotchas:
30865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30867 # In both cases, we have to default to `cp -p'.
30868 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30870 elif ln conf$$.file conf$$ 2>/dev/null; then
30875 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30876 rmdir conf$$.dir 2>/dev/null
30878 if mkdir -p . 2>/dev/null; then
30881 test -d ./-p && rmdir ./-p
30885 if test -x / >/dev/null 2>&1; then
30886 as_test_x='test -x'
30888 if ls -dL / >/dev/null 2>&1; then
30895 if test -d "$1"; then
30901 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30902 ???[sx]*):;;*)false;;esac;fi
30906 as_executable_p=$as_test_x
30908 # Sed expression to map a string onto a valid CPP name.
30909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30911 # Sed expression to map a string onto a valid variable name.
30912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30917 # Save the log message, to keep $[0] and so on meaningful, and to
30918 # report actual input values of CONFIG_FILES etc. instead of their
30919 # values after options handling.
30921 This file was extended by linux nfs-utils $as_me 1.1.3, which was
30922 generated by GNU Autoconf 2.61. Invocation command line was
30924 CONFIG_FILES = $CONFIG_FILES
30925 CONFIG_HEADERS = $CONFIG_HEADERS
30926 CONFIG_LINKS = $CONFIG_LINKS
30927 CONFIG_COMMANDS = $CONFIG_COMMANDS
30930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30935 cat >>$CONFIG_STATUS <<_ACEOF
30936 # Files that config.status was made for.
30937 config_files="$ac_config_files"
30938 config_headers="$ac_config_headers"
30939 config_commands="$ac_config_commands"
30943 cat >>$CONFIG_STATUS <<\_ACEOF
30945 \`$as_me' instantiates files from templates according to the
30946 current configuration.
30948 Usage: $0 [OPTIONS] [FILE]...
30950 -h, --help print this help, then exit
30951 -V, --version print version number and configuration settings, then exit
30952 -q, --quiet do not print progress messages
30953 -d, --debug don't remove temporary files
30954 --recheck update $as_me by reconfiguring in the same conditions
30955 --file=FILE[:TEMPLATE]
30956 instantiate the configuration file FILE
30957 --header=FILE[:TEMPLATE]
30958 instantiate the configuration header FILE
30960 Configuration files:
30963 Configuration headers:
30966 Configuration commands:
30969 Report bugs to <bug-autoconf@gnu.org>."
30972 cat >>$CONFIG_STATUS <<_ACEOF
30974 linux nfs-utils config.status 1.1.3
30975 configured by $0, generated by GNU Autoconf 2.61,
30976 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30978 Copyright (C) 2006 Free Software Foundation, Inc.
30979 This config.status script is free software; the Free Software Foundation
30980 gives unlimited permission to copy, distribute and modify it."
30988 cat >>$CONFIG_STATUS <<\_ACEOF
30989 # If no file are specified by the user, then we need to provide default
30990 # value. By we need to know if files were specified by the user.
30996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31008 # Handling of the options.
31009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31011 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31012 echo "$ac_cs_version"; exit ;;
31013 --debug | --debu | --deb | --de | --d | -d )
31015 --file | --fil | --fi | --f )
31017 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31018 ac_need_defaults=false;;
31019 --header | --heade | --head | --hea )
31021 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31022 ac_need_defaults=false;;
31024 # Conflict between --help and --header
31025 { echo "$as_me: error: ambiguous option: $1
31026 Try \`$0 --help' for more information." >&2
31027 { (exit 1); exit 1; }; };;
31028 --help | --hel | -h )
31029 echo "$ac_cs_usage"; exit ;;
31030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31031 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31034 # This is an error.
31035 -*) { echo "$as_me: error: unrecognized option: $1
31036 Try \`$0 --help' for more information." >&2
31037 { (exit 1); exit 1; }; } ;;
31039 *) ac_config_targets="$ac_config_targets $1"
31040 ac_need_defaults=false ;;
31046 ac_configure_extra_args=
31048 if $ac_cs_silent; then
31050 ac_configure_extra_args="$ac_configure_extra_args --silent"
31054 cat >>$CONFIG_STATUS <<_ACEOF
31055 if \$ac_cs_recheck; then
31056 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31057 CONFIG_SHELL=$SHELL
31058 export CONFIG_SHELL
31059 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31063 cat >>$CONFIG_STATUS <<\_ACEOF
31067 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31068 ## Running $as_me. ##
31074 cat >>$CONFIG_STATUS <<_ACEOF
31078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31082 cat >>$CONFIG_STATUS <<\_ACEOF
31084 # Handling of arguments.
31085 for ac_config_target in $ac_config_targets
31087 case $ac_config_target in
31088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31089 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31091 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31092 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31093 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31094 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31095 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31096 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31097 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31098 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31099 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31100 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31101 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31102 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31103 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31104 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31105 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31106 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31107 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31108 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31109 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31110 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31111 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31112 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31113 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31114 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31115 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31119 { (exit 1); exit 1; }; };;
31124 # If the user did not use the arguments to specify the items to instantiate,
31125 # then the envvar interface is used. Set only those that are not.
31126 # We use the long form for the default assignment because of an extremely
31127 # bizarre bug on SunOS 4.1.3.
31128 if $ac_need_defaults; then
31129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31134 # Have a temporary directory for convenience. Make it in the build tree
31135 # simply because there is no reason against having it here, and in addition,
31136 # creating and moving files from /tmp can sometimes cause problems.
31137 # Hook for its removal unless debugging.
31138 # Note that there is a small window in which the directory will not be cleaned:
31139 # after its creation but before its name has been assigned to `$tmp'.
31143 trap 'exit_status=$?
31144 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31146 trap '{ (exit 1); exit 1; }' 1 2 13 15
31148 # Create a (secure) tmp directory for tmp files.
31151 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31152 test -n "$tmp" && test -d "$tmp"
31155 tmp=./conf$$-$RANDOM
31156 (umask 077 && mkdir "$tmp")
31159 echo "$me: cannot create a temporary directory in ." >&2
31160 { (exit 1); exit 1; }
31164 # Set up the sed scripts for CONFIG_FILES section.
31167 # No need to generate the scripts if there are no CONFIG_FILES.
31168 # This happens for instance when ./config.status config.h
31169 if test -n "$CONFIG_FILES"; then
31176 for ac_last_try in false false false false false :; do
31177 cat >conf$$subs.sed <<_ACEOF
31178 SHELL!$SHELL$ac_delim
31179 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31180 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31181 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31182 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31183 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31184 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31185 exec_prefix!$exec_prefix$ac_delim
31186 prefix!$prefix$ac_delim
31187 program_transform_name!$program_transform_name$ac_delim
31188 bindir!$bindir$ac_delim
31189 sbindir!$sbindir$ac_delim
31190 libexecdir!$libexecdir$ac_delim
31191 datarootdir!$datarootdir$ac_delim
31192 datadir!$datadir$ac_delim
31193 sysconfdir!$sysconfdir$ac_delim
31194 sharedstatedir!$sharedstatedir$ac_delim
31195 localstatedir!$localstatedir$ac_delim
31196 includedir!$includedir$ac_delim
31197 oldincludedir!$oldincludedir$ac_delim
31198 docdir!$docdir$ac_delim
31199 infodir!$infodir$ac_delim
31200 htmldir!$htmldir$ac_delim
31201 dvidir!$dvidir$ac_delim
31202 pdfdir!$pdfdir$ac_delim
31203 psdir!$psdir$ac_delim
31204 libdir!$libdir$ac_delim
31205 localedir!$localedir$ac_delim
31206 mandir!$mandir$ac_delim
31207 DEFS!$DEFS$ac_delim
31208 ECHO_C!$ECHO_C$ac_delim
31209 ECHO_N!$ECHO_N$ac_delim
31210 ECHO_T!$ECHO_T$ac_delim
31211 LIBS!$LIBS$ac_delim
31212 build_alias!$build_alias$ac_delim
31213 host_alias!$host_alias$ac_delim
31214 target_alias!$target_alias$ac_delim
31215 build!$build$ac_delim
31216 build_cpu!$build_cpu$ac_delim
31217 build_vendor!$build_vendor$ac_delim
31218 build_os!$build_os$ac_delim
31219 host!$host$ac_delim
31220 host_cpu!$host_cpu$ac_delim
31221 host_vendor!$host_vendor$ac_delim
31222 host_os!$host_os$ac_delim
31223 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31224 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31225 INSTALL_DATA!$INSTALL_DATA$ac_delim
31226 am__isrc!$am__isrc$ac_delim
31227 CYGPATH_W!$CYGPATH_W$ac_delim
31228 PACKAGE!$PACKAGE$ac_delim
31229 VERSION!$VERSION$ac_delim
31230 ACLOCAL!$ACLOCAL$ac_delim
31231 AUTOCONF!$AUTOCONF$ac_delim
31232 AUTOMAKE!$AUTOMAKE$ac_delim
31233 AUTOHEADER!$AUTOHEADER$ac_delim
31234 MAKEINFO!$MAKEINFO$ac_delim
31235 install_sh!$install_sh$ac_delim
31236 STRIP!$STRIP$ac_delim
31237 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31238 mkdir_p!$mkdir_p$ac_delim
31240 SET_MAKE!$SET_MAKE$ac_delim
31241 am__leading_dot!$am__leading_dot$ac_delim
31242 AMTAR!$AMTAR$ac_delim
31243 am__tar!$am__tar$ac_delim
31244 am__untar!$am__untar$ac_delim
31245 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
31246 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
31247 MAINT!$MAINT$ac_delim
31248 RELEASE!$RELEASE$ac_delim
31249 statedir!$statedir$ac_delim
31250 statduser!$statduser$ac_delim
31251 startstatd!$startstatd$ac_delim
31252 enable_nfsv3!$enable_nfsv3$ac_delim
31253 IDMAPD!$IDMAPD$ac_delim
31254 enable_nfsv4!$enable_nfsv4$ac_delim
31255 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31256 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31257 GSSD!$GSSD$ac_delim
31258 SVCGSSD!$SVCGSSD$ac_delim
31259 enable_gss!$enable_gss$ac_delim
31260 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31261 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31262 kprefix!$kprefix$ac_delim
31263 secure_statd!$secure_statd$ac_delim
31264 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
31265 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
31266 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
31267 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31268 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31269 enable_ipv6!$enable_ipv6$ac_delim
31270 CONFIG_IPV6_TRUE!$CONFIG_IPV6_TRUE$ac_delim
31271 CONFIG_IPV6_FALSE!$CONFIG_IPV6_FALSE$ac_delim
31273 CFLAGS!$CFLAGS$ac_delim
31274 LDFLAGS!$LDFLAGS$ac_delim
31277 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31279 elif $ac_last_try; then
31280 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31282 { (exit 1); exit 1; }; }
31284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31288 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31289 if test -n "$ac_eof"; then
31290 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31291 ac_eof=`expr $ac_eof + 1`
31294 cat >>$CONFIG_STATUS <<_ACEOF
31295 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31300 s/^/s,@/; s/!/@,|#_!!_#|/
31303 s/'"$ac_delim"'$/,g/; t
31305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31306 ' >>$CONFIG_STATUS <conf$$subs.sed
31307 rm -f conf$$subs.sed
31308 cat >>$CONFIG_STATUS <<_ACEOF
31314 for ac_last_try in false false false false false :; do
31315 cat >conf$$subs.sed <<_ACEOF
31316 CPPFLAGS!$CPPFLAGS$ac_delim
31317 ac_ct_CC!$ac_ct_CC$ac_delim
31318 EXEEXT!$EXEEXT$ac_delim
31319 OBJEXT!$OBJEXT$ac_delim
31320 DEPDIR!$DEPDIR$ac_delim
31321 am__include!$am__include$ac_delim
31322 am__quote!$am__quote$ac_delim
31323 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31324 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31325 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31326 CCDEPMODE!$CCDEPMODE$ac_delim
31327 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31328 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31329 LIBWRAP!$LIBWRAP$ac_delim
31330 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31331 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31333 CXXFLAGS!$CXXFLAGS$ac_delim
31334 ac_ct_CXX!$ac_ct_CXX$ac_delim
31335 CXXDEPMODE!$CXXDEPMODE$ac_delim
31336 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31337 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31339 LN_S!$LN_S$ac_delim
31341 GREP!$GREP$ac_delim
31342 EGREP!$EGREP$ac_delim
31343 ECHO!$ECHO$ac_delim
31345 RANLIB!$RANLIB$ac_delim
31346 CXXCPP!$CXXCPP$ac_delim
31348 FFLAGS!$FFLAGS$ac_delim
31349 ac_ct_F77!$ac_ct_F77$ac_delim
31350 LIBTOOL!$LIBTOOL$ac_delim
31351 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31353 LIBNSL!$LIBNSL$ac_delim
31354 PKG_CONFIG!$PKG_CONFIG$ac_delim
31355 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31356 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31357 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
31358 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
31359 LIBSOCKET!$LIBSOCKET$ac_delim
31360 LIBCRYPT!$LIBCRYPT$ac_delim
31361 LIBBSD!$LIBBSD$ac_delim
31362 LIBBLKID!$LIBBLKID$ac_delim
31363 KRBDIR!$KRBDIR$ac_delim
31364 KRBLIBS!$KRBLIBS$ac_delim
31365 KRBCFLAGS!$KRBCFLAGS$ac_delim
31366 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31367 K5VERS!$K5VERS$ac_delim
31368 ALLOCA!$ALLOCA$ac_delim
31369 LIBOBJS!$LIBOBJS$ac_delim
31370 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31371 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31372 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31373 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31374 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31375 AM_CFLAGS!$AM_CFLAGS$ac_delim
31376 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31377 LTLIBOBJS!$LTLIBOBJS$ac_delim
31380 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
31382 elif $ac_last_try; then
31383 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31385 { (exit 1); exit 1; }; }
31387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31392 if test -n "$ac_eof"; then
31393 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31394 ac_eof=`expr $ac_eof + 1`
31397 cat >>$CONFIG_STATUS <<_ACEOF
31398 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31403 s/^/s,@/; s/!/@,|#_!!_#|/
31406 s/'"$ac_delim"'$/,g/; t
31408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31409 ' >>$CONFIG_STATUS <conf$$subs.sed
31410 rm -f conf$$subs.sed
31411 cat >>$CONFIG_STATUS <<_ACEOF
31418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31420 # trailing colons and then remove the whole line if VPATH becomes empty
31421 # (actually we leave an empty line to preserve line numbers).
31422 if test "x$srcdir" = x.; then
31423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31424 s/:*\$(srcdir):*/:/
31425 s/:*\${srcdir}:*/:/
31427 s/^\([^=]*=[ ]*\):*/\1/
31433 cat >>$CONFIG_STATUS <<\_ACEOF
31434 fi # test -n "$CONFIG_FILES"
31437 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31440 :[FHLC]) ac_mode=$ac_tag; continue;;
31442 case $ac_mode$ac_tag in
31444 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31445 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31446 { (exit 1); exit 1; }; };;
31447 :[FH]-) ac_tag=-:-;;
31448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31465 -) ac_f="$tmp/stdin";;
31466 *) # Look for the file first in the build tree, then in the source tree
31467 # (if the path is not absolute). The absolute path cannot be DOS-style,
31468 # because $ac_f cannot contain `:'.
31472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31474 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31475 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31476 { (exit 1); exit 1; }; };;
31478 ac_file_inputs="$ac_file_inputs $ac_f"
31481 # Let's still pretend it is `configure' which instantiates (i.e., don't
31482 # use $as_me), people would be surprised to read:
31483 # /* config.h. Generated by config.status. */
31484 configure_input="Generated from "`IFS=:
31485 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31486 if test x"$ac_file" != x-; then
31487 configure_input="$ac_file. $configure_input"
31488 { echo "$as_me:$LINENO: creating $ac_file" >&5
31489 echo "$as_me: creating $ac_file" >&6;}
31493 *:-:* | *:-) cat >"$tmp/stdin";;
31498 ac_dir=`$as_dirname -- "$ac_file" ||
31499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31500 X"$ac_file" : 'X\(//\)[^/]' \| \
31501 X"$ac_file" : 'X\(//\)$' \| \
31502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31508 /^X\(\/\/\)[^/].*/{
31523 -*) as_dir=./$as_dir;;
31525 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31529 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31530 *) as_qdir=$as_dir;;
31532 as_dirs="'$as_qdir' $as_dirs"
31533 as_dir=`$as_dirname -- "$as_dir" ||
31534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31535 X"$as_dir" : 'X\(//\)[^/]' \| \
31536 X"$as_dir" : 'X\(//\)$' \| \
31537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31543 /^X\(\/\/\)[^/].*/{
31556 test -d "$as_dir" && break
31558 test -z "$as_dirs" || eval "mkdir $as_dirs"
31559 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31560 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31561 { (exit 1); exit 1; }; }; }
31565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31568 # A ".." for each directory in $ac_dir_suffix.
31569 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31570 case $ac_top_builddir_sub in
31571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31575 ac_abs_top_builddir=$ac_pwd
31576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31577 # for backward compatibility:
31578 ac_top_builddir=$ac_top_build_prefix
31581 .) # We are building in place.
31583 ac_top_srcdir=$ac_top_builddir_sub
31584 ac_abs_top_srcdir=$ac_pwd ;;
31585 [\\/]* | ?:[\\/]* ) # Absolute name.
31586 ac_srcdir=$srcdir$ac_dir_suffix;
31587 ac_top_srcdir=$srcdir
31588 ac_abs_top_srcdir=$srcdir ;;
31589 *) # Relative name.
31590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31591 ac_top_srcdir=$ac_top_build_prefix$srcdir
31592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31604 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31605 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31607 ac_MKDIR_P=$MKDIR_P
31609 [\\/$]* | ?:[\\/]* ) ;;
31610 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31614 cat >>$CONFIG_STATUS <<\_ACEOF
31615 # If the template does not know about datarootdir, expand it.
31616 # FIXME: This hack should be removed a few years after 2.60.
31617 ac_datarootdir_hack=; ac_datarootdir_seen=
31619 case `sed -n '/datarootdir/ {
31628 ' $ac_file_inputs` in
31629 *datarootdir*) ac_datarootdir_seen=yes;;
31630 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31631 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31632 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31634 cat >>$CONFIG_STATUS <<_ACEOF
31635 ac_datarootdir_hack='
31636 s&@datadir@&$datadir&g
31637 s&@docdir@&$docdir&g
31638 s&@infodir@&$infodir&g
31639 s&@localedir@&$localedir&g
31640 s&@mandir@&$mandir&g
31641 s&\\\${datarootdir}&$datarootdir&g' ;;
31645 # Neutralize VPATH when `$srcdir' = `.'.
31646 # Shell code in configure.ac might set extrasub.
31647 # FIXME: do we really want to maintain this feature?
31648 cat >>$CONFIG_STATUS <<_ACEOF
31652 cat >>$CONFIG_STATUS <<\_ACEOF
31654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31655 s&@configure_input@&$configure_input&;t t
31656 s&@top_builddir@&$ac_top_builddir_sub&;t t
31657 s&@srcdir@&$ac_srcdir&;t t
31658 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31659 s&@top_srcdir@&$ac_top_srcdir&;t t
31660 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31661 s&@builddir@&$ac_builddir&;t t
31662 s&@abs_builddir@&$ac_abs_builddir&;t t
31663 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31664 s&@INSTALL@&$ac_INSTALL&;t t
31665 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31666 $ac_datarootdir_hack
31667 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31669 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31670 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31671 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31672 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31673 which seems to be undefined. Please make sure it is defined." >&5
31674 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31675 which seems to be undefined. Please make sure it is defined." >&2;}
31679 -) cat "$tmp/out"; rm -f "$tmp/out";;
31680 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31689 # Transform confdefs.h into a sed script `conftest.defines', that
31690 # substitutes the proper values into config.h.in to produce config.h.
31691 rm -f conftest.defines conftest.tail
31692 # First, append a space to every undef/define line, to ease matching.
31693 echo 's/$/ /' >conftest.defines
31694 # Then, protect against being on the right side of a sed subst, or in
31695 # an unquoted here document, in config.status. If some macros were
31696 # called several times there might be several #defines for the same
31697 # symbol, which is useless. But do not sort them, since the last
31698 # AC_DEFINE must be honored.
31699 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31700 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31701 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31702 # PARAMS is the parameter list in the macro definition--in most cases, it's
31703 # just an empty string.
31704 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31705 ac_dB='\\)[ (].*,\\1define\\2'
31713 s/^[ ]*#[ ]*define[ ][ ]*//
31718 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31719 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31720 ' >>conftest.defines
31722 # Remove the space that was appended to ease matching.
31723 # Then replace #undef with comments. This is necessary, for
31724 # example, in the case of _POSIX_SOURCE, which is predefined and required
31725 # on some systems where configure will not decide to define it.
31726 # (The regexp can be short, since the line contains either #define or #undef.)
31728 s,^[ #]*u.*,/* & */,' >>conftest.defines
31730 # Break up conftest.defines:
31731 ac_max_sed_lines=50
31733 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31734 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31735 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31737 ac_in='$ac_file_inputs'
31738 ac_out='"$tmp/out1"'
31739 ac_nxt='"$tmp/out2"'
31743 # Write a here document:
31744 cat >>$CONFIG_STATUS <<_ACEOF
31745 # First, check the format of the line:
31746 cat >"\$tmp/defines.sed" <<\\CEOF
31747 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31748 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31752 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31754 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31755 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31756 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31757 grep . conftest.tail >/dev/null || break
31758 rm -f conftest.defines
31759 mv conftest.tail conftest.defines
31761 rm -f conftest.defines conftest.tail
31763 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31764 cat >>$CONFIG_STATUS <<\_ACEOF
31765 if test x"$ac_file" != x-; then
31766 echo "/* $configure_input */" >"$tmp/config.h"
31767 cat "$ac_result" >>"$tmp/config.h"
31768 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31769 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31770 echo "$as_me: $ac_file is unchanged" >&6;}
31773 mv "$tmp/config.h" $ac_file
31776 echo "/* $configure_input */"
31780 # Compute $ac_file's index in $config_headers.
31783 for _am_header in $config_headers :; do
31784 case $_am_header in
31785 $_am_arg | $_am_arg:* )
31788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31791 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31792 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31793 X"$_am_arg" : 'X\(//\)[^/]' \| \
31794 X"$_am_arg" : 'X\(//\)$' \| \
31795 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31801 /^X\(\/\/\)[^/].*/{
31813 s/.*/./; q'`/stamp-h$_am_stamp_count
31816 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31817 echo "$as_me: executing $ac_file commands" >&6;}
31822 case $ac_file$ac_mode in
31823 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31824 # Strip MF so we end up with the name of the file.
31825 mf=`echo "$mf" | sed -e 's/:.*$//'`
31826 # Check whether this is an Automake generated Makefile or not.
31827 # We used to match only the files named `Makefile.in', but
31828 # some people rename them; so instead we look at the file content.
31829 # Grep'ing the first line is not enough: some people post-process
31830 # each Makefile.in and add a new line on top of each file to say so.
31831 # Grep'ing the whole file is not good either: AIX grep has a line
31832 # limit of 2048, but all sed's we know have understand at least 4000.
31833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31834 dirpart=`$as_dirname -- "$mf" ||
31835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31836 X"$mf" : 'X\(//\)[^/]' \| \
31837 X"$mf" : 'X\(//\)$' \| \
31838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31844 /^X\(\/\/\)[^/].*/{
31860 # Extract the definition of DEPDIR, am__include, and am__quote
31861 # from the Makefile without running `make'.
31862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31863 test -z "$DEPDIR" && continue
31864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31865 test -z "am__include" && continue
31866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31867 # When using ansi2knr, U may be empty or an underscore; expand it
31868 U=`sed -n 's/^U = //p' < "$mf"`
31869 # Find all dependency output files, they are included files with
31870 # $(DEPDIR) in their names. We invoke sed twice because it is the
31871 # simplest approach to changing $(DEPDIR) to its actual value in the
31873 for file in `sed -n "
31874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31876 # Make sure the directory exists.
31877 test -f "$dirpart/$file" && continue
31878 fdir=`$as_dirname -- "$file" ||
31879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31880 X"$file" : 'X\(//\)[^/]' \| \
31881 X"$file" : 'X\(//\)$' \| \
31882 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31888 /^X\(\/\/\)[^/].*/{
31901 { as_dir=$dirpart/$fdir
31903 -*) as_dir=./$as_dir;;
31905 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31909 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31910 *) as_qdir=$as_dir;;
31912 as_dirs="'$as_qdir' $as_dirs"
31913 as_dir=`$as_dirname -- "$as_dir" ||
31914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31915 X"$as_dir" : 'X\(//\)[^/]' \| \
31916 X"$as_dir" : 'X\(//\)$' \| \
31917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31923 /^X\(\/\/\)[^/].*/{
31936 test -d "$as_dir" && break
31938 test -z "$as_dirs" || eval "mkdir $as_dirs"
31939 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31940 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31941 { (exit 1); exit 1; }; }; }
31942 # echo "creating $dirpart/$file"
31943 echo '# dummy' > "$dirpart/$file"
31952 { (exit 0); exit 0; }
31954 chmod +x $CONFIG_STATUS
31955 ac_clean_files=$ac_clean_files_save
31958 # configure is writing to config.log, and then calls config.status.
31959 # config.status does its own redirection, appending to config.log.
31960 # Unfortunately, on DOS this fails, as config.log is still kept open
31961 # by configure, so config.status won't be able to write to it; its
31962 # output is simply discarded. So we exec the FD to /dev/null,
31963 # effectively closing config.log, so it can be properly (re)opened and
31964 # appended to by config.status. When coming back to configure, we
31965 # need to make the FD available again.
31966 if test "$no_create" != yes; then
31968 ac_config_status_args=
31969 test "$silent" = yes &&
31970 ac_config_status_args="$ac_config_status_args --quiet"
31972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31975 # would make configure fail if this is the last instruction.
31976 $ac_cs_success || { (exit 1); exit 1; }