2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.10.
5 @%:@ Report bugs to <nfs@lists.sf.net>.
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
832 INSTALL_STRIP_PROGRAM
923 ac_precious_vars='build_alias
945 # Initialize some variables set by options.
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052 eval enable_$ac_feature=no ;;
1054 -docdir | --docdir | --docdi | --doc | --do)
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1064 -enable-* | --enable-*)
1065 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071 eval enable_$ac_feature=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1235 -site=* | --site=* | --sit=*)
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1262 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid package name: $ac_package" >&2
1266 { (exit 1); exit 1; }; }
1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268 eval with_$ac_package=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid package name: $ac_package" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277 eval with_$ac_package=no ;;
1280 # Obsolete; use --with-x.
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1297 -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1328 # Be sure to have absolute directory names.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val=\$$ac_var
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340 { (exit 1); exit 1; }; }
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 { echo "$as_me: error: Working directory cannot be determined" >&2
1371 { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 { echo "$as_me: error: pwd does not report name of working directory" >&2
1374 { (exit 1); exit 1; }; }
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$0" : 'X\(//\)[^/]' \| \
1384 X"$0" : 'X\(//\)$' \| \
1385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414 { (exit 1); exit 1; }; }
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419 { (exit 1); exit 1; }; }
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1445 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1523 --enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1524 --enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1525 --enable-kprefix install progs as rpc.knfsd etc
1526 --enable-secure-statd Only lockd can use statd (security)
1527 --enable-rquotad enable rquotad @<:@default=yes@:>@
1528 --enable-mount Create mount.nfs and don't use the util-linux
1529 mount(8) functionality. @<:@default=no@:>@
1530 --disable-dependency-tracking speeds up one-time build
1531 --enable-dependency-tracking do not reject slow dependency extractors
1532 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1533 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1534 --enable-fast-install@<:@=PKGS@:>@
1535 optimize for fast installation @<:@default=yes@:>@
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-release=XXX set release to XXX [1]
1542 --with-statedir=/foo use state dir /foo /var/lib/nfs
1543 --with-statduser=rpcuser
1544 statd to run under @<:@rpcuser or nobody@:>@
1545 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1546 (optionally in PATH)
1547 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1548 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1550 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1551 --with-krb5=DIR use Kerberos v5 installation in DIR
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
1567 PKG_CONFIG path to pkg-config utility
1569 C compiler flags for RPCSECGSS, overriding pkg-config
1571 linker flags for RPCSECGSS, overriding pkg-config
1573 C compiler flags for GSSAPI, overriding pkg-config
1574 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to <nfs@lists.sf.net>.
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" || continue
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1607 .) # We are building in place.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1631 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1640 linux nfs-utils configure 1.0.10
1641 generated by GNU Autoconf 2.61
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1654 It was created by linux nfs-utils $as_me 1.0.10, which was
1655 generated by GNU Autoconf 2.61. Invocation command line was
1663 @%:@@%:@ --------- @%:@@%:@
1664 @%:@@%:@ Platform. @%:@@%:@
1665 @%:@@%:@ --------- @%:@@%:@
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir=.
1691 echo "PATH: $as_dir"
1700 @%:@@%:@ ----------- @%:@@%:@
1701 @%:@@%:@ Core tests. @%:@@%:@
1702 @%:@@%:@ ----------- @%:@@%:@
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_must_keep_next=false
1721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723 | -silent | --silent | --silen | --sile | --sil)
1726 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true; then
1733 ac_must_keep_next=false # Got value, back to normal.
1736 *=* | --config-cache | -C | -disable-* | --disable-* \
1737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739 | -with-* | --with-* | -without-* | --without-* | --x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 -* ) ac_must_keep_next=true ;;
1747 ac_configure_args="$ac_configure_args '$ac_arg'"
1752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log. We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1766 @%:@@%:@ ---------------- @%:@@%:@
1767 @%:@@%:@ Cache variables. @%:@@%:@
1768 @%:@@%:@ ---------------- @%:@@%:@
1771 # The following way of writing the cache mishandles newlines in values,
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1778 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1779 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782 _ | IFS | as_nl) ;; #(
1783 *) $as_unset $ac_var ;;
1788 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789 *${as_nl}ac_space=\ *)
1791 "s/'\''/'\''\\\\'\'''\''/g;
1792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 @%:@@%:@ ----------------- @%:@@%:@
1804 @%:@@%:@ Output variables. @%:@@%:@
1805 @%:@@%:@ ----------------- @%:@@%:@
1808 for ac_var in $ac_subst_vars
1810 eval ac_val=\$$ac_var
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 echo "$ac_var='\''$ac_val'\''"
1818 if test -n "$ac_subst_files"; then
1820 @%:@@%:@ ------------------- @%:@@%:@
1821 @%:@@%:@ File substitutions. @%:@@%:@
1822 @%:@@%:@ ------------------- @%:@@%:@
1825 for ac_var in $ac_subst_files
1827 eval ac_val=\$$ac_var
1829 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 echo "$ac_var='\''$ac_val'\''"
1836 if test -s confdefs.h; then
1838 @%:@@%:@ ----------- @%:@@%:@
1839 @%:@@%:@ confdefs.h. @%:@@%:@
1840 @%:@@%:@ ----------- @%:@@%:@
1846 test "$ac_signal" != 0 &&
1847 echo "$as_me: caught signal $ac_signal"
1848 echo "$as_me: exit $exit_status"
1850 rm -f core *.core core.conftest.* &&
1851 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854 for ac_signal in 1 2 13 15; do
1855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1860 rm -f -r conftest* confdefs.h
1862 # Predefined preprocessor variables.
1864 cat >>confdefs.h <<_ACEOF
1865 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1869 cat >>confdefs.h <<_ACEOF
1870 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 cat >>confdefs.h <<_ACEOF
1875 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 cat >>confdefs.h <<_ACEOF
1880 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1884 cat >>confdefs.h <<_ACEOF
1885 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 # Let the site file select an alternate cache file if it wants to.
1890 # Prefer explicitly selected file to automatically selected ones.
1891 if test -n "$CONFIG_SITE"; then
1892 set x "$CONFIG_SITE"
1893 elif test "x$prefix" != xNONE; then
1894 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1896 set x "$ac_default_prefix/share/config.site" \
1897 "$ac_default_prefix/etc/config.site"
1902 if test -r "$ac_site_file"; then
1903 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1910 if test -r "$cache_file"; then
1911 # Some versions of bash will fail to source /dev/null (special
1912 # files actually), so we avoid doing that.
1913 if test -f "$cache_file"; then
1914 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 echo "$as_me: loading cache $cache_file" >&6;}
1917 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1918 *) . "./$cache_file";;
1922 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 echo "$as_me: creating cache $cache_file" >&6;}
1927 # Check that the precious variables saved in the cache have kept the same
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1941 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1950 echo "$as_me: former value: $ac_old_val" >&2;}
1951 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1952 echo "$as_me: current value: $ac_new_val" >&2;}
1953 ac_cache_corrupted=:
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009 if test -f "$ac_dir/install-sh"; then
2011 ac_install_sh="$ac_aux_dir/install-sh -c"
2013 elif test -f "$ac_dir/install.sh"; then
2015 ac_install_sh="$ac_aux_dir/install.sh -c"
2017 elif test -f "$ac_dir/shtool"; then
2019 ac_install_sh="$ac_aux_dir/shtool install -c"
2023 if test -z "$ac_aux_dir"; then
2024 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2025 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2026 { (exit 1); exit 1; }; }
2029 # These three variables are undocumented and unsupported,
2030 # and are intended to be withdrawn in a future Autoconf release.
2031 # They can cause serious problems if a builder's source tree is in a directory
2032 # whose full name contains unusual characters.
2033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2038 # Make sure we can run config.sub.
2039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2040 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2041 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2042 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: checking build system type" >&5
2045 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_build+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 ac_build_alias=$build_alias
2050 test "x$ac_build_alias" = x &&
2051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2052 test "x$ac_build_alias" = x &&
2053 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2054 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2055 { (exit 1); exit 1; }; }
2056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2057 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2059 { (exit 1); exit 1; }; }
2062 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2063 echo "${ECHO_T}$ac_cv_build" >&6; }
2064 case $ac_cv_build in
2066 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2067 echo "$as_me: error: invalid value of canonical build" >&2;}
2068 { (exit 1); exit 1; }; };;
2071 ac_save_IFS=$IFS; IFS='-'
2077 # Remember, the first character of IFS is used to create $*,
2078 # except with old shells:
2081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2084 { echo "$as_me:$LINENO: checking host system type" >&5
2085 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_host+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test "x$host_alias" = x; then
2090 ac_cv_host=$ac_cv_build
2092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2093 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2095 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2100 echo "${ECHO_T}$ac_cv_host" >&6; }
2103 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2104 echo "$as_me: error: invalid value of canonical host" >&2;}
2105 { (exit 1); exit 1; }; };;
2108 ac_save_IFS=$IFS; IFS='-'
2114 # Remember, the first character of IFS is used to create $*,
2115 # except with old shells:
2118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2123 am__api_version="1.9"
2124 # Find a good install program. We prefer a C program (faster),
2125 # so one script is as good as another. But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 # Account for people who put trailing slashes in PATH elements.
2150 ./ | .// | /cC/* | \
2151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2155 # OSF1 and SCO ODT 3.0 have their own names for install.
2156 # Don't use installbsd from OSF since it installs stuff as root
2158 for ac_prog in ginstall scoinst install; do
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161 if test $ac_prog = install &&
2162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # AIX install. It has an incompatible calling convention.
2165 elif test $ac_prog = install &&
2166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167 # program-specific install script used by HP pwplus--don't use.
2170 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2183 if test "${ac_cv_path_install+set}" = set; then
2184 INSTALL=$ac_cv_path_install
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for INSTALL within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 INSTALL=$ac_install_sh
2193 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2194 echo "${ECHO_T}$INSTALL" >&6; }
2196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2197 # It thinks the first close brace ends the variable substitution.
2198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2204 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2208 echo timestamp > conftest.file
2209 # Do `set' in a subshell so we don't clobber the current shell's
2210 # arguments. Must try -L first in case configure is actually a
2211 # symlink; some systems play weird games with the mod time of symlinks
2212 # (eg FreeBSD returns the mod time of the symlink's containing
2215 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2216 if test "$*" = "X"; then
2218 set X `ls -t $srcdir/configure conftest.file`
2221 if test "$*" != "X $srcdir/configure conftest.file" \
2222 && test "$*" != "X conftest.file $srcdir/configure"; then
2224 # If neither matched, then we have a broken ls. This can happen
2225 # if, for instance, CONFIG_SHELL is bash and it inherits a
2226 # broken ls alias from the environment. This has actually
2227 # happened. Such a system could not be considered "sane".
2228 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&5
2230 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2231 alias in your environment" >&2;}
2232 { (exit 1); exit 1; }; }
2235 test "$2" = conftest.file
2241 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2242 Check your system clock" >&5
2243 echo "$as_me: error: newly created file is older than distributed files!
2244 Check your system clock" >&2;}
2245 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249 test "$program_prefix" != NONE &&
2250 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2251 # Use a double $ so make ignores it.
2252 test "$program_suffix" != NONE &&
2253 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2254 # Double any \ or $. echo might interpret backslashes.
2255 # By default was `s,x,x', remove it if useless.
2256 cat <<\_ACEOF >conftest.sed
2257 s/[\\$]/&&/g;s/;s,x,x,$//
2259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2262 # expand $ac_aux_dir to an absolute path
2263 am_aux_dir=`cd $ac_aux_dir && pwd`
2265 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2266 # Use eval to expand $SHELL
2267 if eval "$MISSING --run true"; then
2268 am_missing_run="$MISSING --run "
2271 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2272 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2275 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2276 # We used to keeping the `.' as first argument, in order to
2277 # allow $(mkdir_p) to be used without argument. As in
2278 # $(mkdir_p) $(somedir)
2279 # where $(somedir) is conditionally defined. However this is wrong
2281 # 1. if the package is installed by a user who cannot write `.'
2282 # make install will fail,
2283 # 2. the above comment should most certainly read
2284 # $(mkdir_p) $(DESTDIR)$(somedir)
2285 # so it does not work when $(somedir) is undefined and
2286 # $(DESTDIR) is not.
2287 # To support the latter case, we have to write
2288 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2289 # so the `.' trick is pointless.
2290 mkdir_p='mkdir -p --'
2292 # On NextStep and OpenStep, the `mkdir' command does not
2293 # recognize any option. It will interpret all options as
2294 # directories to create, and then abort because `.' already
2296 for d in ./-p ./--version;
2298 test -d $d && rmdir $d
2300 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2301 if test -f "$ac_aux_dir/mkinstalldirs"; then
2302 mkdir_p='$(mkinstalldirs)'
2304 mkdir_p='$(install_sh) -d'
2308 for ac_prog in gawk mawk nawk awk
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_AWK+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$AWK"; then
2318 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_AWK="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$AWK"; then
2339 { echo "$as_me:$LINENO: result: $AWK" >&5
2340 echo "${ECHO_T}$AWK" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$AWK" && break
2350 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2351 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2352 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2353 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 cat >conftest.make <<\_ACEOF
2359 @echo '@@@%%%=$(MAKE)=@@@%%%'
2361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2364 eval ac_cv_prog_make_${ac_make}_set=yes;;
2366 eval ac_cv_prog_make_${ac_make}_set=no;;
2370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2371 { echo "$as_me:$LINENO: result: yes" >&5
2372 echo "${ECHO_T}yes" >&6; }
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 SET_MAKE="MAKE=${MAKE-make}"
2380 rm -rf .tst 2>/dev/null
2381 mkdir .tst 2>/dev/null
2382 if test -d .tst; then
2387 rmdir .tst 2>/dev/null
2389 # test to see if srcdir already configured
2390 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2391 test -f $srcdir/config.status; then
2392 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394 { (exit 1); exit 1; }; }
2397 # test whether we have cygpath
2398 if test -z "$CYGPATH_W"; then
2399 if (cygpath --version) >/dev/null 2>/dev/null; then
2400 CYGPATH_W='cygpath -w'
2407 # Define the identity of the package.
2412 cat >>confdefs.h <<_ACEOF
2413 @%:@define PACKAGE "$PACKAGE"
2417 cat >>confdefs.h <<_ACEOF
2418 @%:@define VERSION "$VERSION"
2421 # Some tools Automake needs.
2423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2437 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'. However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { echo "$as_me:$LINENO: result: $STRIP" >&5
2475 echo "${ECHO_T}$STRIP" >&6; }
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2483 if test -z "$ac_cv_prog_STRIP"; then
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2521 if test "x$ac_ct_STRIP" = x; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned=yes ;;
2537 STRIP="$ac_cv_prog_STRIP"
2541 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2543 # We need awk for the "check" target. The system "awk" is bad on
2545 # Always define AMTAR for backward compatibility.
2547 AMTAR=${AMTAR-"${am_missing_run}tar"}
2549 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2559 # Check whether --with-release was given.
2560 if test "${with_release+set}" = set; then
2561 withval=$with_release; RELEASE=$withval
2568 # Check whether --with-statedir was given.
2569 if test "${with_statedir+set}" = set; then
2570 withval=$with_statedir; statedir=$withval
2572 statedir=/var/lib/nfs
2577 # Check whether --with-statduser was given.
2578 if test "${with_statduser+set}" = set; then
2579 withval=$with_statduser; statduser=$withval
2581 if test "x$cross_compiling" = "xno"; then
2582 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2593 # Check whether --enable-nfsv3 was given.
2594 if test "${enable_nfsv3+set}" = set; then
2595 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2600 if test "$enable_nfsv3" = yes; then
2602 cat >>confdefs.h <<\_ACEOF
2603 @%:@define NFS3_SUPPORTED 1
2610 # Check whether --enable-nfsv4 was given.
2611 if test "${enable_nfsv4+set}" = set; then
2612 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2617 if test "$enable_nfsv4" = yes; then
2619 cat >>confdefs.h <<\_ACEOF
2620 @%:@define NFS4_SUPPORTED 1
2632 if test "$enable_nfsv4" = "yes"; then
2634 CONFIG_NFSV4_FALSE='#'
2636 CONFIG_NFSV4_TRUE='#'
2640 # Check whether --enable-gss was given.
2641 if test "${enable_gss+set}" = set; then
2642 enableval=$enable_gss; enable_gss=$enableval
2647 if test "$enable_gss" = yes; then
2649 cat >>confdefs.h <<\_ACEOF
2650 @%:@define GSS_SUPPORTED 1
2665 if test "$enable_gss" = "yes"; then
2667 CONFIG_GSS_FALSE='#'
2673 # Check whether --enable-kprefix was given.
2674 if test "${enable_kprefix+set}" = set; then
2675 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2681 # Check whether --enable-secure-statd was given.
2682 if test "${enable_secure_statd+set}" = set; then
2683 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2688 if test "$secure_statd" = yes; then
2690 cat >>confdefs.h <<\_ACEOF
2691 @%:@define RESTRICTED_STATD 1
2696 # Check whether --enable-rquotad was given.
2697 if test "${enable_rquotad+set}" = set; then
2698 enableval=$enable_rquotad; enable_rquotad=$enableval
2703 if test "$enable_rquotad" = yes; then
2710 if test "$enable_rquotad" = "yes"; then
2711 CONFIG_RQUOTAD_TRUE=
2712 CONFIG_RQUOTAD_FALSE='#'
2714 CONFIG_RQUOTAD_TRUE='#'
2715 CONFIG_RQUOTAD_FALSE=
2719 # Check whether --enable-mount was given.
2720 if test "${enable_mount+set}" = set; then
2721 enableval=$enable_mount; enable_mount=$enableval
2728 if test "$enable_mount" = "yes"; then
2730 CONFIG_MOUNT_FALSE='#'
2732 CONFIG_MOUNT_TRUE='#'
2737 # Check whether user wants TCP wrappers support
2738 DEPDIR="${am__leading_dot}deps"
2740 ac_config_commands="$ac_config_commands depfiles"
2743 am_make=${MAKE-make}
2744 cat > confinc << 'END'
2749 # If we don't find an include directive, just comment out the code.
2750 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2751 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2755 # First try GNU make style include.
2756 echo "include confinc" > confmf
2757 # We grep out `Entering directory' and `Leaving directory'
2758 # messages which can occur if `w' ends up in MAKEFLAGS.
2759 # In particular we don't look at `^make:' because GNU make might
2760 # be invoked under some other name (usually "gmake"), in which
2761 # case it prints its new name instead of `make'.
2762 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2767 # Now try BSD make style include.
2768 if test "$am__include" = "#"; then
2769 echo '.include "confinc"' > confmf
2770 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2771 am__include=.include
2778 { echo "$as_me:$LINENO: result: $_am_result" >&5
2779 echo "${ECHO_T}$_am_result" >&6; }
2780 rm -f confinc confmf
2782 # Check whether --enable-dependency-tracking was given.
2783 if test "${enable_dependency_tracking+set}" = set; then
2784 enableval=$enable_dependency_tracking;
2787 if test "x$enable_dependency_tracking" != xno; then
2788 am_depcomp="$ac_aux_dir/depcomp"
2793 if test "x$enable_dependency_tracking" != xno; then
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2847 if test -z "$ac_cv_prog_CC"; then
2849 # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_ac_ct_CC="gcc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2885 if test "x$ac_ct_CC" = x; then
2888 case $cross_compiling:$ac_tool_warned in
2890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2891 whose name does not start with the host triplet. If you think this
2892 configuration is useful to you, please write to autoconf@gnu.org." >&5
2893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet. If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2896 ac_tool_warned=yes ;;
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_CC="${ac_tool_prefix}cc"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2945 if test -z "$CC"; then
2946 # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965 ac_prog_rejected=yes
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test $ac_prog_rejected = yes; then
2977 # We found a bogon in the path, so make sure we never use it.
2978 set dummy $ac_cv_prog_CC
2980 if test $@%:@ != 0; then
2981 # We chose a different compiler from the bogus one.
2982 # However, it has the same basename, so the bogon will be chosen
2983 # first if we set CC to just the basename; use the full file name.
2985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2991 if test -n "$CC"; then
2992 { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 for ac_prog in cl.exe
3005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$CC"; then
3034 { echo "$as_me:$LINENO: result: $CC" >&5
3035 echo "${ECHO_T}$CC" >&6; }
3037 { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3042 test -n "$CC" && break
3045 if test -z "$CC"; then
3047 for ac_prog in cl.exe
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_ac_ct_CC="$ac_prog"
3067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3079 echo "${ECHO_T}$ac_ct_CC" >&6; }
3081 { echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6; }
3086 test -n "$ac_ct_CC" && break
3089 if test "x$ac_ct_CC" = x; then
3092 case $cross_compiling:$ac_tool_warned in
3094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3095 whose name does not start with the host triplet. If you think this
3096 configuration is useful to you, please write to autoconf@gnu.org." >&5
3097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet. If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3100 ac_tool_warned=yes ;;
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO: checking for C compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (ac_try="$ac_compiler --version >&5"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compiler --version >&5") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (ac_try="$ac_compiler -v >&5"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compiler -v >&5") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (ac_try="$ac_compiler -V >&5"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compiler -V >&5") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3169 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3173 # List of possible output files, starting from the most likely.
3174 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3175 # only as a last resort. b.out is created by i960 compilers.
3176 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3178 # The IRIX 6 linker writes into existing files which may not be
3179 # executable, retaining their permissions. Remove them first so a
3180 # subsequent execution test works.
3182 for ac_file in $ac_files
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3186 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191 if { (ac_try="$ac_link_default"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_link_default") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3206 for ac_file in $ac_files ''
3208 test -f "$ac_file" || continue
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3213 # We found the default executable, but exeext='' is most
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3231 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237 { echo "$as_me:$LINENO: result: $ac_file" >&5
3238 echo "${ECHO_T}$ac_file" >&6; }
3239 if test -z "$ac_file"; then
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: C compiler cannot create executables
3246 See \`config.log' for more details." >&2;}
3247 { (exit 77); exit 77; }; }
3250 ac_exeext=$ac_cv_exeext
3252 # Check that the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259 if { ac_try='./$ac_file'
3260 { (case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_try") 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 if test "$cross_compiling" = maybe; then
3274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details." >&5
3277 echo "$as_me: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }
3284 { echo "$as_me:$LINENO: result: yes" >&5
3285 echo "${ECHO_T}yes" >&6; }
3287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run. If not, either
3290 # the compiler is broken, or we cross compile.
3291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3294 echo "${ECHO_T}$cross_compiling" >&6; }
3296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3298 if { (ac_try="$ac_link"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_link") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; then
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3329 rm -f conftest$ac_cv_exeext
3330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3338 if test "${ac_cv_objext+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 rm -f conftest.o conftest.obj
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; then
3367 for ac_file in conftest.o conftest.obj conftest.*; do
3368 test -f "$ac_file" || continue;
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3376 echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3389 echo "${ECHO_T}$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } && {
3429 test -z "$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 } && test -s conftest.$ac_objext; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3446 GCC=`test $ac_compiler_gnu = yes && echo yes`
3447 ac_test_CFLAGS=${CFLAGS+set}
3448 ac_save_CFLAGS=$CFLAGS
3449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3451 if test "${ac_cv_prog_cc_g+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 ac_save_c_werror_flag=$ac_c_werror_flag
3455 ac_c_werror_flag=yes
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 ac_c_werror_flag=$ac_save_c_werror_flag
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_c_werror_flag=$ac_save_c_werror_flag
3584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3585 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3586 if test "$ac_test_CFLAGS" = set; then
3587 CFLAGS=$ac_save_CFLAGS
3588 elif test $ac_cv_prog_cc_g = yes; then
3589 if test "$GCC" = yes; then
3595 if test "$GCC" = yes; then
3601 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3602 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_cc_c89+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 ac_cv_prog_cc_c89=no
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3616 #include <sys/types.h>
3617 #include <sys/stat.h>
3618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3619 struct buf { int x; };
3620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621 static char *e (p, i)
3627 static char *f (char * (*g) (char **, int), char **p, ...)
3632 s = g (p, va_arg (v,int));
3637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3638 function prototypes and stuff, but not '\xHH' hex character constants.
3639 These don't provoke an error unfortunately, instead are silently treated
3640 as 'x'. The following induces an error, until -std is added to get
3641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3642 array size at least. It's necessary to write '\x00'==0 to get something
3643 that's true only with -std. */
3644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647 inside strings and character constants. */
3649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3651 int test (int i, double x);
3652 struct s1 {int (*f) (int a);};
3653 struct s2 {int (*f) (double a);};
3654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3668 CC="$ac_save_CC $ac_arg"
3669 rm -f conftest.$ac_objext
3670 if { (ac_try="$ac_compile"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_compile") 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } && {
3683 test -z "$ac_c_werror_flag" ||
3684 test ! -s conftest.err
3685 } && test -s conftest.$ac_objext; then
3686 ac_cv_prog_cc_c89=$ac_arg
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3694 rm -f core conftest.err conftest.$ac_objext
3695 test "x$ac_cv_prog_cc_c89" != "xno" && break
3697 rm -f conftest.$ac_ext
3702 case "x$ac_cv_prog_cc_c89" in
3704 { echo "$as_me:$LINENO: result: none needed" >&5
3705 echo "${ECHO_T}none needed" >&6; } ;;
3707 { echo "$as_me:$LINENO: result: unsupported" >&5
3708 echo "${ECHO_T}unsupported" >&6; } ;;
3710 CC="$CC $ac_cv_prog_cc_c89"
3711 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 depcc="$CC" am_compiler_list=
3724 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730 # We make a subdir and do the tests there. Otherwise we can end up
3731 # making bogus files that we don't know about and never remove. For
3732 # instance it was reported that on HP-UX the gcc test will end up
3733 # making a dummy file named `D' -- because `-MD' means `put the output
3736 # Copy depcomp to subdir because otherwise we won't find it if we're
3737 # using a relative directory.
3738 cp "$am_depcomp" conftest.dir
3740 # We will build objects and dependencies in a subdirectory because
3741 # it helps to detect inapplicable dependency modes. For instance
3742 # both Tru64's cc and ICC support -MD to output dependencies as a
3743 # side effect of compilation, but ICC will put the dependencies in
3744 # the current directory while Tru64 will put them in the object
3748 am_cv_CC_dependencies_compiler_type=none
3749 if test "$am_compiler_list" = ""; then
3750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3752 for depmode in $am_compiler_list; do
3753 # Setup a source with many dependencies, because some compilers
3754 # like to wrap large dependency lists on column 80 (with \), and
3755 # we should not choose a depcomp mode which is confused by this.
3757 # We need to recreate these files for each test, as the compiler may
3758 # overwrite some of them when testing with obscure command lines.
3759 # This happens at least with the AIX C compiler.
3761 for i in 1 2 3 4 5 6; do
3762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764 # Solaris 8's {/usr,}/bin/sh.
3765 touch sub/conftst$i.h
3767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3771 # after this tag, mechanisms are not by side-effect, so they'll
3772 # only be used when explicitly requested
3773 if test "x$enable_dependency_tracking" = xyes; then
3781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3782 # mode. It turns out that the SunPro C++ compiler does not properly
3783 # handle `-M -o', and we need to detect this.
3784 if depmode=$depmode \
3785 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3788 >/dev/null 2>conftest.err &&
3789 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3791 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792 # icc doesn't choke on unknown options, it will just issue warnings
3793 # or remarks (even with -Werror). So we grep stderr for any message
3794 # that says an option was ignored or not supported.
3795 # When given -MP, icc 7.0 and 7.1 complain thusly:
3796 # icc: Command line warning: ignoring option '-M'; no argument required
3797 # The diagnosis changed in icc 8.0:
3798 # icc: Command line remark: option '-MP' not supported
3799 if (grep 'ignoring option' conftest.err ||
3800 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801 am_cv_CC_dependencies_compiler_type=$depmode
3810 am_cv_CC_dependencies_compiler_type=none
3814 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821 test "x$enable_dependency_tracking" != xno \
3822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3824 am__fastdepCC_FALSE='#'
3826 am__fastdepCC_TRUE='#'
3827 am__fastdepCC_FALSE=
3835 # Check whether --with-tcp-wrappers was given.
3836 if test "${with_tcp_wrappers+set}" = set; then
3837 withval=$with_tcp_wrappers;
3838 if test "x$withval" != "xno" ; then
3840 saved_LDFLAGS="$LDFLAGS"
3841 saved_CPPFLAGS="$CPPFLAGS"
3842 if test -n "${withval}" -a "${withval}" != "yes"; then
3843 if test -d "${withval}/lib"; then
3844 if test -n "${need_dash_r}"; then
3845 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3847 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3850 if test -n "${need_dash_r}"; then
3851 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3853 LDFLAGS="-L${withval} ${LDFLAGS}"
3856 if test -d "${withval}/include"; then
3857 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3859 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3863 LIBS="$LIBWRAP $LIBS"
3864 { echo "$as_me:$LINENO: checking for libwrap" >&5
3865 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3874 int deny_severity = 0, allow_severity = 0;
3884 rm -f conftest.$ac_objext conftest$ac_exeext
3885 if { (ac_try="$ac_link"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_link") 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && {
3898 test -z "$ac_c_werror_flag" ||
3899 test ! -s conftest.err
3900 } && test -s conftest$ac_exeext &&
3901 $as_test_x conftest$ac_exeext; then
3903 { echo "$as_me:$LINENO: result: yes" >&5
3904 echo "${ECHO_T}yes" >&6; }
3907 cat >>confdefs.h <<\_ACEOF
3908 @%:@define LIBWRAP 1
3912 cat >>confdefs.h <<\_ACEOF
3913 @%:@define HAVE_LIBWRAP 1
3917 cat >>confdefs.h <<\_ACEOF
3918 @%:@define HAVE_TCP_WRAPPER 1
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3928 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3929 echo "$as_me: error: *** libwrap missing" >&2;}
3930 { (exit 1); exit 1; }; }
3935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3936 conftest$ac_exeext conftest.$ac_ext
3949 ac_config_headers="$ac_config_headers support/include/config.h"
3952 # Checks for programs.
3954 ac_cpp='$CXXCPP $CPPFLAGS'
3955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3958 if test -z "$CXX"; then
3959 if test -n "$CCC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_CXX+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test -n "$CXX"; then
3973 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 if test -n "$CXX"; then
3994 { echo "$as_me:$LINENO: result: $CXX" >&5
3995 echo "${ECHO_T}$CXX" >&6; }
3997 { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
4002 test -n "$CXX" && break
4005 if test -z "$CXX"; then
4007 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4009 # Extract the first word of "$ac_prog", so it can be a program name with args.
4010 set dummy $ac_prog; ac_word=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 if test -n "$ac_ct_CXX"; then
4017 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_prog_ac_ct_CXX="$ac_prog"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4041 { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4046 test -n "$ac_ct_CXX" && break
4049 if test "x$ac_ct_CXX" = x; then
4052 case $cross_compiling:$ac_tool_warned in
4054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4055 whose name does not start with the host triplet. If you think this
4056 configuration is useful to you, please write to autoconf@gnu.org." >&5
4057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet. If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4060 ac_tool_warned=yes ;;
4068 # Provide some information about the compiler.
4069 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4070 ac_compiler=`set X $ac_compile; echo $2`
4071 { (ac_try="$ac_compiler --version >&5"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_compiler --version >&5") 2>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }
4081 { (ac_try="$ac_compiler -v >&5"
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compiler -v >&5") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }
4091 { (ac_try="$ac_compiler -V >&5"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_compiler -V >&5") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }
4102 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4103 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4104 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_cxx_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4154 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4155 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4156 GXX=`test $ac_compiler_gnu = yes && echo yes`
4157 ac_test_CXXFLAGS=${CXXFLAGS+set}
4158 ac_save_CXXFLAGS=$CXXFLAGS
4159 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4161 if test "${ac_cv_prog_cxx_g+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4165 ac_cxx_werror_flag=yes
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && {
4197 test -z "$ac_cxx_werror_flag" ||
4198 test ! -s conftest.err
4199 } && test -s conftest.$ac_objext; then
4200 ac_cv_prog_cxx_g=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_cxx_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_cxx_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest.$ac_objext; then
4277 ac_cv_prog_cxx_g=yes
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4295 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4296 if test "$ac_test_CXXFLAGS" = set; then
4297 CXXFLAGS=$ac_save_CXXFLAGS
4298 elif test $ac_cv_prog_cxx_g = yes; then
4299 if test "$GXX" = yes; then
4305 if test "$GXX" = yes; then
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 depcc="$CXX" am_compiler_list=
4319 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4321 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325 # We make a subdir and do the tests there. Otherwise we can end up
4326 # making bogus files that we don't know about and never remove. For
4327 # instance it was reported that on HP-UX the gcc test will end up
4328 # making a dummy file named `D' -- because `-MD' means `put the output
4331 # Copy depcomp to subdir because otherwise we won't find it if we're
4332 # using a relative directory.
4333 cp "$am_depcomp" conftest.dir
4335 # We will build objects and dependencies in a subdirectory because
4336 # it helps to detect inapplicable dependency modes. For instance
4337 # both Tru64's cc and ICC support -MD to output dependencies as a
4338 # side effect of compilation, but ICC will put the dependencies in
4339 # the current directory while Tru64 will put them in the object
4343 am_cv_CXX_dependencies_compiler_type=none
4344 if test "$am_compiler_list" = ""; then
4345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 for depmode in $am_compiler_list; do
4348 # Setup a source with many dependencies, because some compilers
4349 # like to wrap large dependency lists on column 80 (with \), and
4350 # we should not choose a depcomp mode which is confused by this.
4352 # We need to recreate these files for each test, as the compiler may
4353 # overwrite some of them when testing with obscure command lines.
4354 # This happens at least with the AIX C compiler.
4356 for i in 1 2 3 4 5 6; do
4357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4359 # Solaris 8's {/usr,}/bin/sh.
4360 touch sub/conftst$i.h
4362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366 # after this tag, mechanisms are not by side-effect, so they'll
4367 # only be used when explicitly requested
4368 if test "x$enable_dependency_tracking" = xyes; then
4376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle `-M -o', and we need to detect this.
4379 if depmode=$depmode \
4380 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4382 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4383 >/dev/null 2>conftest.err &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CXX_dependencies_compiler_type=$depmode
4405 am_cv_CXX_dependencies_compiler_type=none
4409 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4410 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4411 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4416 test "x$enable_dependency_tracking" != xno \
4417 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4418 am__fastdepCXX_TRUE=
4419 am__fastdepCXX_FALSE='#'
4421 am__fastdepCXX_TRUE='#'
4422 am__fastdepCXX_FALSE=
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 if test -n "$CC"; then
4461 { echo "$as_me:$LINENO: result: $CC" >&5
4462 echo "${ECHO_T}$CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4470 if test -z "$ac_cv_prog_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$ac_ct_CC"; then
4480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_ac_ct_CC="gcc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500 if test -n "$ac_ct_CC"; then
4501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4502 echo "${ECHO_T}$ac_ct_CC" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4508 if test "x$ac_ct_CC" = x; then
4511 case $cross_compiling:$ac_tool_warned in
4513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4514 whose name does not start with the host triplet. If you think this
4515 configuration is useful to you, please write to autoconf@gnu.org." >&5
4516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4517 whose name does not start with the host triplet. If you think this
4518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4519 ac_tool_warned=yes ;;
4527 if test -z "$CC"; then
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}cc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_CC="${ac_tool_prefix}cc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 if test -n "$CC"; then
4558 { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4568 if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570 set dummy cc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588 ac_prog_rejected=yes
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 if test $ac_prog_rejected = yes; then
4600 # We found a bogon in the path, so make sure we never use it.
4601 set dummy $ac_cv_prog_CC
4603 if test $@%:@ != 0; then
4604 # We chose a different compiler from the bogus one.
4605 # However, it has the same basename, so the bogon will be chosen
4606 # first if we set CC to just the basename; use the full file name.
4608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4614 if test -n "$CC"; then
4615 { echo "$as_me:$LINENO: result: $CC" >&5
4616 echo "${ECHO_T}$CC" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4624 if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in cl.exe
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4665 test -n "$CC" && break
4668 if test -z "$CC"; then
4670 for ac_prog in cl.exe
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CC="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4702 echo "${ECHO_T}$ac_ct_CC" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4709 test -n "$ac_ct_CC" && break
4712 if test "x$ac_ct_CC" = x; then
4715 case $cross_compiling:$ac_tool_warned in
4717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4718 whose name does not start with the host triplet. If you think this
4719 configuration is useful to you, please write to autoconf@gnu.org." >&5
4720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4721 whose name does not start with the host triplet. If you think this
4722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4723 ac_tool_warned=yes ;;
4732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." >&2;}
4736 { (exit 1); exit 1; }; }
4738 # Provide some information about the compiler.
4739 echo "$as_me:$LINENO: checking for C compiler version" >&5
4740 ac_compiler=`set X $ac_compile; echo $2`
4741 { (ac_try="$ac_compiler --version >&5"
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747 (eval "$ac_compiler --version >&5") 2>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }
4751 { (ac_try="$ac_compiler -v >&5"
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compiler -v >&5") 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }
4761 { (ac_try="$ac_compiler -V >&5"
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_compiler -V >&5") 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }
4772 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4773 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4774 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.$ac_ext <<_ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_compile") 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } && {
4809 test -z "$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 } && test -s conftest.$ac_objext; then
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4826 GCC=`test $ac_compiler_gnu = yes && echo yes`
4827 ac_test_CFLAGS=${CFLAGS+set}
4828 ac_save_CFLAGS=$CFLAGS
4829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_cc_g+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 ac_save_c_werror_flag=$ac_c_werror_flag
4835 ac_c_werror_flag=yes
4838 cat >conftest.$ac_ext <<_ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_compile") 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 ac_c_werror_flag=$ac_save_c_werror_flag
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4964 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4975 if test "$GCC" = yes; then
4981 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4982 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_cc_c89+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_prog_cc_c89=no
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5012 s = g (p, va_arg (v,int));
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std. */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027 inside strings and character constants. */
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048 CC="$ac_save_CC $ac_arg"
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_prog_cc_c89=$ac_arg
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5074 rm -f core conftest.err conftest.$ac_objext
5075 test "x$ac_cv_prog_cc_c89" != "xno" && break
5077 rm -f conftest.$ac_ext
5082 case "x$ac_cv_prog_cc_c89" in
5084 { echo "$as_me:$LINENO: result: none needed" >&5
5085 echo "${ECHO_T}none needed" >&6; } ;;
5087 { echo "$as_me:$LINENO: result: unsupported" >&5
5088 echo "${ECHO_T}unsupported" >&6; } ;;
5090 CC="$CC $ac_cv_prog_cc_c89"
5091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5092 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 depcc="$CC" am_compiler_list=
5104 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110 # We make a subdir and do the tests there. Otherwise we can end up
5111 # making bogus files that we don't know about and never remove. For
5112 # instance it was reported that on HP-UX the gcc test will end up
5113 # making a dummy file named `D' -- because `-MD' means `put the output
5116 # Copy depcomp to subdir because otherwise we won't find it if we're
5117 # using a relative directory.
5118 cp "$am_depcomp" conftest.dir
5120 # We will build objects and dependencies in a subdirectory because
5121 # it helps to detect inapplicable dependency modes. For instance
5122 # both Tru64's cc and ICC support -MD to output dependencies as a
5123 # side effect of compilation, but ICC will put the dependencies in
5124 # the current directory while Tru64 will put them in the object
5128 am_cv_CC_dependencies_compiler_type=none
5129 if test "$am_compiler_list" = ""; then
5130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5132 for depmode in $am_compiler_list; do
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5141 for i in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144 # Solaris 8's {/usr,}/bin/sh.
5145 touch sub/conftst$i.h
5147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5151 # after this tag, mechanisms are not by side-effect, so they'll
5152 # only be used when explicitly requested
5153 if test "x$enable_dependency_tracking" = xyes; then
5161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle `-M -o', and we need to detect this.
5164 if depmode=$depmode \
5165 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168 >/dev/null 2>conftest.err &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5190 am_cv_CC_dependencies_compiler_type=none
5194 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5201 test "x$enable_dependency_tracking" != xno \
5202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5204 am__fastdepCC_FALSE='#'
5206 am__fastdepCC_TRUE='#'
5207 am__fastdepCC_FALSE=
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218 # On Suns, sometimes $CPP names a directory.
5219 if test -n "$CPP" && test -d "$CPP"; then
5222 if test -z "$CPP"; then
5223 if test "${ac_cv_prog_CPP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 # Double quotes because CPP needs to be expanded
5227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5230 for ac_c_preproc_warn_flag in '' yes
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5245 @%:@ include <limits.h>
5247 @%:@ include <assert.h>
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null && {
5264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5272 # Broken: fails on valid input.
5276 rm -f conftest.err conftest.$ac_ext
5278 # OK, works on sane cases. Now check whether nonexistent headers
5279 # can be detected and how.
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 @%:@include <ac_nonexistent.h>
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } >/dev/null && {
5301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5304 # Broken: success on invalid input.
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 # Passes both tests.
5315 rm -f conftest.err conftest.$ac_ext
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then
5332 { echo "$as_me:$LINENO: result: $CPP" >&5
5333 echo "${ECHO_T}$CPP" >&6; }
5335 for ac_c_preproc_warn_flag in '' yes
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5350 @%:@ include <limits.h>
5352 @%:@ include <assert.h>
5356 if { (ac_try="$ac_cpp conftest.$ac_ext"
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null && {
5369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 # Broken: fails on valid input.
5381 rm -f conftest.err conftest.$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 @%:@include <ac_nonexistent.h>
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null && {
5406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5407 test ! -s conftest.err
5409 # Broken: success on invalid input.
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 # Passes both tests.
5420 rm -f conftest.err conftest.$ac_ext
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 # Find a good install program. We prefer a C program (faster),
5442 # so one script is as good as another. But avoid the broken or
5443 # incompatible versions:
5444 # SysV /etc/install, /usr/sbin/install
5445 # SunOS /usr/etc/install
5446 # IRIX /sbin/install
5448 # AmigaOS /C/install, which installs bootblocks on floppy discs
5449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5452 # OS/2's system install, which has a completely different semantic
5453 # ./install, which can be erroneously created by make from ./install.sh.
5454 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5455 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5456 if test -z "$INSTALL"; then
5457 if test "${ac_cv_path_install+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 # Account for people who put trailing slashes in PATH elements.
5467 ./ | .// | /cC/* | \
5468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5469 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5472 # OSF1 and SCO ODT 3.0 have their own names for install.
5473 # Don't use installbsd from OSF since it installs stuff as root
5475 for ac_prog in ginstall scoinst install; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5478 if test $ac_prog = install &&
5479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5480 # AIX install. It has an incompatible calling convention.
5482 elif test $ac_prog = install &&
5483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5484 # program-specific install script used by HP pwplus--don't use.
5487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5500 if test "${ac_cv_path_install+set}" = set; then
5501 INSTALL=$ac_cv_path_install
5503 # As a last resort, use the slow shell script. Don't cache a
5504 # value for INSTALL within a source directory, because that will
5505 # break other packages using the cache if that directory is
5506 # removed, or if the value is a relative name.
5507 INSTALL=$ac_install_sh
5510 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5511 echo "${ECHO_T}$INSTALL" >&6; }
5513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5514 # It thinks the first close brace ends the variable substitution.
5515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5521 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5522 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5524 if test "$LN_S" = "ln -s"; then
5525 { echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6; }
5528 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5529 echo "${ECHO_T}no, using $LN_S" >&6; }
5532 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5534 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5535 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.make <<\_ACEOF
5541 @echo '@@@%%%=$(MAKE)=@@@%%%'
5543 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5544 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5546 eval ac_cv_prog_make_${ac_make}_set=yes;;
5548 eval ac_cv_prog_make_${ac_make}_set=no;;
5552 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5553 { echo "$as_me:$LINENO: result: yes" >&5
5554 echo "${ECHO_T}yes" >&6; }
5557 { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5559 SET_MAKE="MAKE=${MAKE-make}"
5562 # Check whether --enable-shared was given.
5563 if test "${enable_shared+set}" = set; then
5564 enableval=$enable_shared; p=${PACKAGE-default}
5566 yes) enable_shared=yes ;;
5567 no) enable_shared=no ;;
5570 # Look at the argument we got. We use all the common list separators.
5571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5572 for pkg in $enableval; do
5574 if test "X$pkg" = "X$p"; then
5586 # Check whether --enable-static was given.
5587 if test "${enable_static+set}" = set; then
5588 enableval=$enable_static; p=${PACKAGE-default}
5590 yes) enable_static=yes ;;
5591 no) enable_static=no ;;
5594 # Look at the argument we got. We use all the common list separators.
5595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5596 for pkg in $enableval; do
5598 if test "X$pkg" = "X$p"; then
5610 # Check whether --enable-fast-install was given.
5611 if test "${enable_fast_install+set}" = set; then
5612 enableval=$enable_fast_install; p=${PACKAGE-default}
5614 yes) enable_fast_install=yes ;;
5615 no) enable_fast_install=no ;;
5617 enable_fast_install=no
5618 # Look at the argument we got. We use all the common list separators.
5619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5620 for pkg in $enableval; do
5622 if test "X$pkg" = "X$p"; then
5623 enable_fast_install=yes
5630 enable_fast_install=yes
5634 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5635 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5636 if test "${lt_cv_path_SED+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 # Loop through the user's path and test for sed and gsed.
5640 # Then use that list of sed's as ones to test for truncation.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for lt_ac_prog in sed gsed; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5649 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5656 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5657 # along with /bin/sed that truncates output.
5658 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5659 test ! -f $lt_ac_sed && continue
5660 cat /dev/null > conftest.in
5662 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5663 # Check for GNU sed and select it if it is found.
5664 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5665 lt_cv_path_SED=$lt_ac_sed
5669 cat conftest.in conftest.in >conftest.tmp
5670 mv conftest.tmp conftest.in
5671 cp conftest.in conftest.nl
5673 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5674 cmp -s conftest.out conftest.nl || break
5675 # 10000 chars as input seems more than enough
5676 test $lt_ac_count -gt 10 && break
5677 lt_ac_count=`expr $lt_ac_count + 1`
5678 if test $lt_ac_count -gt $lt_ac_max; then
5679 lt_ac_max=$lt_ac_count
5680 lt_cv_path_SED=$lt_ac_sed
5688 { echo "$as_me:$LINENO: result: $SED" >&5
5689 echo "${ECHO_T}$SED" >&6; }
5691 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5692 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5693 if test "${ac_cv_path_GREP+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 # Extract the first word of "grep ggrep" to use in msg output
5697 if test -z "$GREP"; then
5698 set dummy grep ggrep; ac_prog_name=$2
5699 if test "${ac_cv_path_GREP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 ac_path_GREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708 test -z "$as_dir" && as_dir=.
5709 for ac_prog in grep ggrep; do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5712 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5713 # Check for GNU ac_path_GREP and select it if it is found.
5714 # Check for GNU $ac_path_GREP
5715 case `"$ac_path_GREP" --version 2>&1` in
5717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5720 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 echo 'GREP' >> "conftest.nl"
5727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 ac_count=`expr $ac_count + 1`
5730 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_GREP="$ac_path_GREP"
5733 ac_path_GREP_max=$ac_count
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742 $ac_path_GREP_found && break 3
5752 GREP="$ac_cv_path_GREP"
5753 if test -z "$GREP"; then
5754 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5755 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5756 { (exit 1); exit 1; }; }
5760 ac_cv_path_GREP=$GREP
5765 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5766 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5767 GREP="$ac_cv_path_GREP"
5770 { echo "$as_me:$LINENO: checking for egrep" >&5
5771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_EGREP+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5776 then ac_cv_path_EGREP="$GREP -E"
5778 # Extract the first word of "egrep" to use in msg output
5779 if test -z "$EGREP"; then
5780 set dummy egrep; ac_prog_name=$2
5781 if test "${ac_cv_path_EGREP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 ac_path_EGREP_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5790 test -z "$as_dir" && as_dir=.
5791 for ac_prog in egrep; do
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5794 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5795 # Check for GNU ac_path_EGREP and select it if it is found.
5796 # Check for GNU $ac_path_EGREP
5797 case `"$ac_path_EGREP" --version 2>&1` in
5799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5805 cat "conftest.in" "conftest.in" >"conftest.tmp"
5806 mv "conftest.tmp" "conftest.in"
5807 cp "conftest.in" "conftest.nl"
5808 echo 'EGREP' >> "conftest.nl"
5809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811 ac_count=`expr $ac_count + 1`
5812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5813 # Best one so far, save it but keep looking for a better one
5814 ac_cv_path_EGREP="$ac_path_EGREP"
5815 ac_path_EGREP_max=$ac_count
5817 # 10*(2^10) chars as input seems more than enough
5818 test $ac_count -gt 10 && break
5820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5824 $ac_path_EGREP_found && break 3
5834 EGREP="$ac_cv_path_EGREP"
5835 if test -z "$EGREP"; then
5836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5838 { (exit 1); exit 1; }; }
5842 ac_cv_path_EGREP=$EGREP
5848 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5849 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5850 EGREP="$ac_cv_path_EGREP"
5854 # Check whether --with-gnu-ld was given.
5855 if test "${with_gnu_ld+set}" = set; then
5856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5862 if test "$GCC" = yes; then
5863 # Check if gcc -print-prog-name=ld gives a path.
5864 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5865 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5868 # gcc leaves a trailing carriage return which upsets mingw
5869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5874 # Accept absolute paths.
5876 re_direlt='/[^/][^/]*/\.\./'
5877 # Canonicalize the pathname of ld
5878 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5879 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5880 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5882 test -z "$LD" && LD="$ac_prog"
5885 # If it fails, then pretend we aren't using GCC.
5889 # If it is relative, then search for the first ld in PATH.
5893 elif test "$with_gnu_ld" = yes; then
5894 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5895 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5897 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5898 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5900 if test "${lt_cv_path_LD+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 if test -z "$LD"; then
5904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5907 test -z "$ac_dir" && ac_dir=.
5908 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5909 lt_cv_path_LD="$ac_dir/$ac_prog"
5910 # Check to see if the program is GNU ld. I'd rather use --version,
5911 # but apparently some variants of GNU ld only accept -v.
5912 # Break only if it was the GNU/non-GNU ld that we prefer.
5913 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5914 *GNU* | *'with BFD'*)
5915 test "$with_gnu_ld" != no && break
5918 test "$with_gnu_ld" != yes && break
5925 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5930 if test -n "$LD"; then
5931 { echo "$as_me:$LINENO: result: $LD" >&5
5932 echo "${ECHO_T}$LD" >&6; }
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5937 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5938 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5939 { (exit 1); exit 1; }; }
5940 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5941 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948 lt_cv_prog_gnu_ld=yes
5951 lt_cv_prog_gnu_ld=no
5955 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5956 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5960 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5961 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5962 if test "${lt_cv_ld_reload_flag+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 lt_cv_ld_reload_flag='-r'
5967 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5968 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5969 reload_flag=$lt_cv_ld_reload_flag
5970 case $reload_flag in
5972 *) reload_flag=" $reload_flag" ;;
5974 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5977 if test "$GCC" = yes; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5985 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5986 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5987 if test "${lt_cv_path_NM+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$NM"; then
5991 # Let the user override the test.
5994 lt_nm_to_check="${ac_tool_prefix}nm"
5995 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5996 lt_nm_to_check="$lt_nm_to_check nm"
5998 for lt_tmp_nm in $lt_nm_to_check; do
5999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6002 test -z "$ac_dir" && ac_dir=.
6003 tmp_nm="$ac_dir/$lt_tmp_nm"
6004 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6005 # Check to see if the nm accepts a BSD-compat flag.
6006 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6007 # nm: unknown option "B" ignored
6008 # Tru64's nm complains that /dev/null is an invalid object file
6009 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6010 */dev/null* | *'Invalid file or object type'*)
6011 lt_cv_path_NM="$tmp_nm -B"
6015 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6017 lt_cv_path_NM="$tmp_nm -p"
6021 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6022 continue # so that we can try to find one that supports BSD flags
6031 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6034 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6035 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6038 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6039 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6040 if test "${lt_cv_deplibs_check_method+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 lt_cv_file_magic_cmd='$MAGIC_CMD'
6044 lt_cv_file_magic_test_file=
6045 lt_cv_deplibs_check_method='unknown'
6046 # Need to set the preceding variable on all platforms that support
6047 # interlibrary dependencies.
6048 # 'none' -- dependencies not supported.
6049 # `unknown' -- same as none, but documents that we really don't know.
6050 # 'pass_all' -- all dependencies passed with no checks.
6051 # 'test_compile' -- check by making test program.
6052 # 'file_magic [[regex]]' -- check by looking for files in library path
6053 # which responds to the $file_magic_cmd with a given extended regex.
6054 # If you have `file' or equivalent on your system and you're not sure
6055 # whether `pass_all' will *always* work, you probably want this one.
6059 lt_cv_deplibs_check_method=pass_all
6063 lt_cv_deplibs_check_method=pass_all
6067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6068 lt_cv_file_magic_cmd='/usr/bin/file -L'
6069 lt_cv_file_magic_test_file=/shlib/libc.so
6073 # func_win32_libid is a shell function defined in ltmain.sh
6074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6075 lt_cv_file_magic_cmd='func_win32_libid'
6079 # Base MSYS/MinGW do not provide the 'file' command needed by
6080 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6081 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6082 lt_cv_file_magic_cmd='$OBJDUMP -f'
6085 darwin* | rhapsody*)
6086 lt_cv_deplibs_check_method=pass_all
6089 freebsd* | dragonfly*)
6090 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6093 # Not sure whether the presence of OpenBSD here was a mistake.
6094 # Let's accept both of them until this is cleared up.
6095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6096 lt_cv_file_magic_cmd=/usr/bin/file
6097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6101 lt_cv_deplibs_check_method=pass_all
6106 lt_cv_deplibs_check_method=pass_all
6109 hpux10.20* | hpux11*)
6110 lt_cv_file_magic_cmd=/usr/bin/file
6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6132 irix5* | irix6* | nonstopux*)
6134 *-32|*"-32 ") libmagic=32-bit;;
6135 *-n32|*"-n32 ") libmagic=N32;;
6136 *-64|*"-64 ") libmagic=64-bit;;
6137 *) libmagic=never-match;;
6139 lt_cv_deplibs_check_method=pass_all
6142 # This must be Linux ELF.
6143 linux* | k*bsd*-gnu)
6144 lt_cv_deplibs_check_method=pass_all
6147 netbsd* | netbsdelf*-gnu)
6148 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6162 lt_cv_deplibs_check_method=unknown
6166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 osf3* | osf4* | osf5*)
6174 lt_cv_deplibs_check_method=pass_all
6178 lt_cv_deplibs_check_method=pass_all
6182 case $host_vendor in
6184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6188 lt_cv_deplibs_check_method=pass_all
6191 lt_cv_file_magic_cmd='/bin/file'
6192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6195 lt_cv_file_magic_cmd='/bin/file'
6196 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197 lt_cv_file_magic_test_file=/lib/libc.so
6200 lt_cv_deplibs_check_method=pass_all
6203 lt_cv_deplibs_check_method=pass_all
6208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6209 lt_cv_deplibs_check_method=pass_all
6214 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6215 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6216 file_magic_cmd=$lt_cv_file_magic_cmd
6217 deplibs_check_method=$lt_cv_deplibs_check_method
6218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6223 # If no C compiler was specified, use CC.
6226 # If no C compiler flags were specified, use CFLAGS.
6227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6229 # Allow CC to be a program name with arguments.
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234 enableval=$enable_libtool_lock;
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6239 # Some flags need to be propagated to the compiler or linker for good
6243 # Find out which ABI we are using.
6244 echo 'int i;' > conftest.$ac_ext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; then
6250 case `/usr/bin/file conftest.$ac_objext` in
6262 # Find out which ABI we are using.
6263 echo '#line __oline__ "configure"' > conftest.$ac_ext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; then
6269 if test "$lt_cv_prog_gnu_ld" = yes; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6272 LD="${LD-ld} -melf32bsmip"
6275 LD="${LD-ld} -melf32bmipn32"
6278 LD="${LD-ld} -melf64bmip"
6282 case `/usr/bin/file conftest.$ac_objext` in
6298 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6299 # Find out which ABI we are using.
6300 echo 'int i;' > conftest.$ac_ext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; then
6306 case `/usr/bin/file conftest.o` in
6310 LD="${LD-ld} -m elf_i386"
6312 ppc64-*linux*|powerpc64-*linux*)
6313 LD="${LD-ld} -m elf32ppclinux"
6316 LD="${LD-ld} -m elf_s390"
6319 LD="${LD-ld} -m elf32_sparc"
6326 LD="${LD-ld} -m elf_x86_64"
6328 ppc*-*linux*|powerpc*-*linux*)
6329 LD="${LD-ld} -m elf64ppc"
6332 LD="${LD-ld} -m elf64_s390"
6335 LD="${LD-ld} -m elf64_sparc"
6345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6346 SAVE_CFLAGS="$CFLAGS"
6347 CFLAGS="$CFLAGS -belf"
6348 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6349 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6350 if test "${lt_cv_cc_needs_belf+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359 cat >conftest.$ac_ext <<_ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (ac_try="$ac_link"
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_link") 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_c_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest$ac_exeext &&
6391 $as_test_x conftest$ac_exeext; then
6392 lt_cv_cc_needs_belf=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 lt_cv_cc_needs_belf=no
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401 conftest$ac_exeext conftest.$ac_ext
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6410 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6411 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413 CFLAGS="$SAVE_CFLAGS"
6417 # Find out which ABI we are using.
6418 echo 'int i;' > conftest.$ac_ext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420 (eval $ac_compile) 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; then
6424 case `/usr/bin/file conftest.o` in
6426 case $lt_cv_prog_gnu_ld in
6427 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428 *) LD="${LD-ld} -64" ;;
6439 need_locks="$enable_libtool_lock"
6443 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6445 if test "${ac_cv_header_stdc+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.$ac_objext; then
6484 ac_cv_header_stdc=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_cv_header_stdc=no
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 if test $ac_cv_header_stdc = yes; then
6495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506 $EGREP "memchr" >/dev/null 2>&1; then
6509 ac_cv_header_stdc=no
6515 if test $ac_cv_header_stdc = yes; then
6516 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6517 cat >conftest.$ac_ext <<_ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 $EGREP "free" >/dev/null 2>&1; then
6530 ac_cv_header_stdc=no
6536 if test $ac_cv_header_stdc = yes; then
6537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6538 if test "$cross_compiling" = yes; then
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6553 # define ISLOWER(c) \
6554 (('a' <= (c) && (c) <= 'i') \
6555 || ('j' <= (c) && (c) <= 'r') \
6556 || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6565 for (i = 0; i < 256; i++)
6566 if (XOR (islower (i), ISLOWER (i))
6567 || toupper (i) != TOUPPER (i))
6572 rm -f conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_link") 2>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6594 echo "$as_me: program exited with status $ac_status" >&5
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_cv_header_stdc=no
6601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6607 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6608 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6609 if test $ac_cv_header_stdc = yes; then
6611 cat >>confdefs.h <<\_ACEOF
6612 @%:@define STDC_HEADERS 1
6617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6628 inttypes.h stdint.h unistd.h
6630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6644 @%:@include <$ac_header>
6646 rm -f conftest.$ac_objext
6647 if { (ac_try="$ac_compile"
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_compile") 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest.$ac_objext; then
6663 eval "$as_ac_Header=yes"
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 eval "$as_ac_Header=no"
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674 { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677 cat >>confdefs.h <<_ACEOF
6678 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6687 for ac_header in dlfcn.h
6689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_res=`eval echo '${'$as_ac_Header'}'`
6697 { echo "$as_me:$LINENO: result: $ac_res" >&5
6698 echo "${ECHO_T}$ac_res" >&6; }
6700 # Is the header compilable?
6701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6703 cat >conftest.$ac_ext <<_ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 $ac_includes_default
6710 @%:@include <$ac_header>
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6721 grep -v '^ *+' conftest.er1 >conftest.err
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.$ac_objext; then
6729 ac_header_compiler=yes
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6734 ac_header_compiler=no
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6739 echo "${ECHO_T}$ac_header_compiler" >&6; }
6741 # Is the header present?
6742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 @%:@include <$ac_header>
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev/null && {
6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6768 ac_header_preproc=yes
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 ac_header_preproc=no
6776 rm -f conftest.err conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6778 echo "${ECHO_T}$ac_header_preproc" >&6; }
6780 # So? What about this header?
6781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6787 ac_header_preproc=yes
6790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6803 @%:@@%:@ ------------------------------- @%:@@%:@
6804 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6805 @%:@@%:@ ------------------------------- @%:@@%:@
6807 ) | sed "s/^/$as_me: WARNING: /" >&2
6810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 eval "$as_ac_Header=\$ac_header_preproc"
6817 ac_res=`eval echo '${'$as_ac_Header'}'`
6818 { echo "$as_me:$LINENO: result: $ac_res" >&5
6819 echo "${ECHO_T}$ac_res" >&6; }
6822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6823 cat >>confdefs.h <<_ACEOF
6824 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6833 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6834 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6835 (test "X$CXX" != "Xg++"))) ; then
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6842 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6843 if test -z "$CXXCPP"; then
6844 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 # Double quotes because CXXCPP needs to be expanded
6848 for CXXCPP in "$CXX -E" "/lib/cpp"
6851 for ac_cxx_preproc_warn_flag in '' yes
6853 # Use a header file that comes with gcc, so configuring glibc
6854 # with a fresh cross-compiler works.
6855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856 # <limits.h> exists even on freestanding compilers.
6857 # On the NeXT, cc -E runs the code through the compiler's parser,
6858 # not just through cpp. "Syntax error" is here to catch this case.
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6866 @%:@ include <limits.h>
6868 @%:@ include <assert.h>
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6880 grep -v '^ *+' conftest.er1 >conftest.err
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } >/dev/null && {
6885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6886 test ! -s conftest.err
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6893 # Broken: fails on valid input.
6897 rm -f conftest.err conftest.$ac_ext
6899 # OK, works on sane cases. Now check whether nonexistent headers
6900 # can be detected and how.
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 @%:@include <ac_nonexistent.h>
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null && {
6922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6923 test ! -s conftest.err
6925 # Broken: success on invalid input.
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 # Passes both tests.
6936 rm -f conftest.err conftest.$ac_ext
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then
6946 ac_cv_prog_CXXCPP=$CXXCPP
6949 CXXCPP=$ac_cv_prog_CXXCPP
6951 ac_cv_prog_CXXCPP=$CXXCPP
6953 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6954 echo "${ECHO_T}$CXXCPP" >&6; }
6956 for ac_cxx_preproc_warn_flag in '' yes
6958 # Use a header file that comes with gcc, so configuring glibc
6959 # with a fresh cross-compiler works.
6960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6961 # <limits.h> exists even on freestanding compilers.
6962 # On the NeXT, cc -E runs the code through the compiler's parser,
6963 # not just through cpp. "Syntax error" is here to catch this case.
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6971 @%:@ include <limits.h>
6973 @%:@ include <assert.h>
6977 if { (ac_try="$ac_cpp conftest.$ac_ext"
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev/null && {
6990 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6991 test ! -s conftest.err
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 # Broken: fails on valid input.
7002 rm -f conftest.err conftest.$ac_ext
7004 # OK, works on sane cases. Now check whether nonexistent headers
7005 # can be detected and how.
7006 cat >conftest.$ac_ext <<_ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 @%:@include <ac_nonexistent.h>
7014 if { (ac_try="$ac_cpp conftest.$ac_ext"
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7022 grep -v '^ *+' conftest.er1 >conftest.err
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } >/dev/null && {
7027 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7028 test ! -s conftest.err
7030 # Broken: success on invalid input.
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 # Passes both tests.
7041 rm -f conftest.err conftest.$ac_ext
7044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7045 rm -f conftest.err conftest.$ac_ext
7046 if $ac_preproc_ok; then
7049 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7050 See \`config.log' for more details." >&5
7051 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7052 See \`config.log' for more details." >&2;}
7053 { (exit 1); exit 1; }; }
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7066 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7067 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7069 if test -n "$ac_tool_prefix"; then
7070 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_F77+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 if test -n "$F77"; then
7080 ac_cv_prog_F77="$F77" # Let the user override the test.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 if test -n "$F77"; then
7101 { echo "$as_me:$LINENO: result: $F77" >&5
7102 echo "${ECHO_T}$F77" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 test -n "$F77" && break
7112 if test -z "$F77"; then
7114 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7116 # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 if test -n "$ac_ct_F77"; then
7124 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_ac_ct_F77="$ac_prog"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7144 if test -n "$ac_ct_F77"; then
7145 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7146 echo "${ECHO_T}$ac_ct_F77" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7153 test -n "$ac_ct_F77" && break
7156 if test "x$ac_ct_F77" = x; then
7159 case $cross_compiling:$ac_tool_warned in
7161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet. If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&5
7164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7165 whose name does not start with the host triplet. If you think this
7166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7167 ac_tool_warned=yes ;;
7174 # Provide some information about the compiler.
7175 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7176 ac_compiler=`set X $ac_compile; echo $2`
7177 { (ac_try="$ac_compiler --version >&5"
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compiler --version >&5") 2>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }
7187 { (ac_try="$ac_compiler -v >&5"
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compiler -v >&5") 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }
7197 { (ac_try="$ac_compiler -V >&5"
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compiler -V >&5") 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }
7209 # If we don't use `.F' as extension, the preprocessor is not run on the
7210 # input file. (Note that this only needs to work for GNU compilers.)
7213 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7214 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7215 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 cat >conftest.$ac_ext <<_ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_f77_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7255 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7256 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7258 ac_test_FFLAGS=${FFLAGS+set}
7259 ac_save_FFLAGS=$FFLAGS
7261 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7262 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7263 if test "${ac_cv_prog_f77_g+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_f77_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_prog_f77_g=yes
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7301 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7302 if test "$ac_test_FFLAGS" = set; then
7303 FFLAGS=$ac_save_FFLAGS
7304 elif test $ac_cv_prog_f77_g = yes; then
7305 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7311 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7318 G77=`test $ac_compiler_gnu = yes && echo yes`
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7329 # find the maximum length of command line arguments
7330 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7331 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7332 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 # On DJGPP, this test can blow up pretty badly due to problems in libc
7341 # (any single argument exceeding 2000 bytes causes a buffer overrun
7342 # during glob expansion). Even if it were fixed, the result of this
7343 # check would be larger than it should be.
7344 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7348 # Under GNU Hurd, this test is not required because there is
7349 # no limit to the length of command line arguments.
7350 # Libtool will interpret -1 as no limit whatsoever
7351 lt_cv_sys_max_cmd_len=-1;
7355 # On Win9x/ME, this test blows up -- it succeeds, but takes
7356 # about 5 minutes as the teststring grows exponentially.
7357 # Worse, since 9x/ME are not pre-emptively multitasking,
7358 # you end up with a "frozen" computer, even though with patience
7359 # the test eventually succeeds (with a max line length of 256k).
7360 # Instead, let's just punt: use the minimum linelength reported by
7361 # all of the supported platforms: 8192 (on NT/2K/XP).
7362 lt_cv_sys_max_cmd_len=8192;
7366 # On AmigaOS with pdksh, this test takes hours, literally.
7367 # So we just punt and use a minimum line length of 8192.
7368 lt_cv_sys_max_cmd_len=8192;
7371 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7372 # This has been around since 386BSD, at least. Likely further.
7373 if test -x /sbin/sysctl; then
7374 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7375 elif test -x /usr/sbin/sysctl; then
7376 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7378 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7380 # And add a safety zone
7381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7386 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7387 lt_cv_sys_max_cmd_len=196608
7391 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7392 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7393 # nice to cause kernel panics so lets avoid the loop below.
7394 # First set a reasonable default.
7395 lt_cv_sys_max_cmd_len=16384
7397 if test -x /sbin/sysconfig; then
7398 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7399 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7404 lt_cv_sys_max_cmd_len=102400
7406 sysv5* | sco5v6* | sysv4.2uw2*)
7407 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7408 if test -n "$kargmax"; then
7409 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7411 lt_cv_sys_max_cmd_len=32768
7415 # If test is not a shell built-in, we'll probably end up computing a
7416 # maximum length that is only half of the actual maximum length, but
7418 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7419 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7420 = "XX$teststring") >/dev/null 2>&1 &&
7421 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7422 lt_cv_sys_max_cmd_len=$new_result &&
7423 test $i != 17 # 1/2 MB should be enough
7426 teststring=$teststring$teststring
7429 # Add a significant safety factor because C++ compilers can tack on massive
7430 # amounts of additional arguments before passing them to the linker.
7431 # It appears as though 1/2 is a usable value.
7432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7438 if test -n $lt_cv_sys_max_cmd_len ; then
7439 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7440 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7442 { echo "$as_me:$LINENO: result: none" >&5
7443 echo "${ECHO_T}none" >&6; }
7449 # Check for command to grab the raw symbol name followed by C symbol from nm.
7450 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7451 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7452 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 # These are sane defaults that work on at least a few old systems.
7457 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7459 # Character class describing NM global symbol codes.
7460 symcode='[BCDEGRST]'
7462 # Regexp to match symbols that can be accessed directly from C.
7463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7465 # Transform an extracted symbol line into a proper C declaration
7466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7468 # Transform an extracted symbol line into symbol name and symbol address
7469 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7471 # Define system-specific variables.
7476 cygwin* | mingw* | pw32*)
7477 symcode='[ABCDGISTW]'
7479 hpux*) # Its linker distinguishes data from code symbols
7480 if test "$host_cpu" = ia64; then
7481 symcode='[ABCDEGRST]'
7483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7486 linux* | k*bsd*-gnu)
7487 if test "$host_cpu" = ia64; then
7488 symcode='[ABCDGIRSTW]'
7489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7494 symcode='[BCDEGRST]'
7497 symcode='[BCDEGQRST]'
7508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7516 # Handle CRLF in mingw tool chain
7520 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7524 # If we're using GNU nm, then use its standard symbol codes.
7525 case `$NM -V 2>&1` in
7526 *GNU* | *'with BFD'*)
7527 symcode='[ABCDGIRSTW]' ;;
7530 # Try without a prefix undercore, then with it.
7531 for ac_symprfx in "" "_"; do
7533 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7534 symxfrm="\\1 $ac_symprfx\\2 \\2"
7536 # Write the raw and C identifiers.
7537 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7539 # Check to see that the pipe works correctly.
7543 cat > conftest.$ac_ext <<EOF
7548 void nm_test_func(){}
7552 int main(){nm_test_var='a';nm_test_func();return(0);}
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; then
7560 # Now try to grab the symbols.
7562 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7563 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && test -s "$nlist"; then
7567 # Try sorting and uniquifying the output.
7568 if sort "$nlist" | uniq > "$nlist"T; then
7569 mv -f "$nlist"T "$nlist"
7574 # Make sure that we snagged all the symbols we need.
7575 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7576 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7577 cat <<EOF > conftest.$ac_ext
7583 # Now generate the symbol file.
7584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7586 cat <<EOF >> conftest.$ac_ext
7587 #if defined (__STDC__) && __STDC__
7588 # define lt_ptr_t void *
7590 # define lt_ptr_t char *
7594 /* The mapping between symbol names and symbols. */
7599 lt_preloaded_symbols[] =
7602 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7603 cat <<\EOF >> conftest.$ac_ext
7611 # Now try linking the two files.
7612 mv conftest.$ac_objext conftstm.$ac_objext
7613 lt_save_LIBS="$LIBS"
7614 lt_save_CFLAGS="$CFLAGS"
7615 LIBS="conftstm.$ac_objext"
7616 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7624 LIBS="$lt_save_LIBS"
7625 CFLAGS="$lt_save_CFLAGS"
7627 echo "cannot find nm_test_func in $nlist" >&5
7630 echo "cannot find nm_test_var in $nlist" >&5
7633 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7636 echo "$progname: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7639 rm -f conftest* conftst*
7641 # Do not use the global_symbol_pipe unless it works.
7642 if test "$pipe_works" = yes; then
7645 lt_cv_sys_global_symbol_pipe=
7651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7652 lt_cv_sys_global_symbol_to_cdecl=
7654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7655 { echo "$as_me:$LINENO: result: failed" >&5
7656 echo "${ECHO_T}failed" >&6; }
7658 { echo "$as_me:$LINENO: result: ok" >&5
7659 echo "${ECHO_T}ok" >&6; }
7662 { echo "$as_me:$LINENO: checking for objdir" >&5
7663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7664 if test "${lt_cv_objdir+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 rm -f .libs 2>/dev/null
7668 mkdir .libs 2>/dev/null
7669 if test -d .libs; then
7672 # MS-DOS does not allow filenames that begin with a dot.
7675 rmdir .libs 2>/dev/null
7677 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7678 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7679 objdir=$lt_cv_objdir
7687 # AIX sometimes has problems with the GCC collect2 program. For some
7688 # reason, if we set the COLLECT_NAMES environment variable, the problems
7689 # vanish in a puff of smoke.
7690 if test "X${COLLECT_NAMES+set}" != Xset; then
7692 export COLLECT_NAMES
7697 # Sed substitution that helps us do robust quoting. It backslashifies
7698 # metacharacters that are still active within double-quoted strings.
7699 Xsed='sed -e 1s/^X//'
7700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7702 # Same as above, but do not quote variable references.
7703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7705 # Sed substitution to delay expansion of an escaped shell variable in a
7706 # double_quote_subst'ed string.
7707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7709 # Sed substitution to avoid accidental globbing in evaled expressions
7710 no_glob_subst='s/\*/\\\*/g'
7716 default_ofile=libtool
7717 can_build_shared=yes
7719 # All known linkers require a `.a' archive for static linking (except MSVC,
7720 # which needs '.lib').
7722 ltmain="$ac_aux_dir/ltmain.sh"
7723 ofile="$default_ofile"
7724 with_gnu_ld="$lt_cv_prog_gnu_ld"
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}ar; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_prog_AR+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 if test -n "$AR"; then
7735 ac_cv_prog_AR="$AR" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_AR="${ac_tool_prefix}ar"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 if test -n "$AR"; then
7756 { echo "$as_me:$LINENO: result: $AR" >&5
7757 echo "${ECHO_T}$AR" >&6; }
7759 { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7765 if test -z "$ac_cv_prog_AR"; then
7767 # Extract the first word of "ar", so it can be a program name with args.
7768 set dummy ar; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test -n "$ac_ct_AR"; then
7775 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_ac_ct_AR="ar"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7795 if test -n "$ac_ct_AR"; then
7796 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7797 echo "${ECHO_T}$ac_ct_AR" >&6; }
7799 { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7803 if test "x$ac_ct_AR" = x; then
7806 case $cross_compiling:$ac_tool_warned in
7808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet. If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&5
7811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet. If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7814 ac_tool_warned=yes ;;
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_RANLIB+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 if test -n "$RANLIB"; then
7831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 RANLIB=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7853 echo "${ECHO_T}$RANLIB" >&6; }
7855 { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862 ac_ct_RANLIB=$RANLIB
7863 # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 if test -n "$ac_ct_RANLIB"; then
7871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_ac_ct_RANLIB="ranlib"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7893 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7899 if test "x$ac_ct_RANLIB" = x; then
7902 case $cross_compiling:$ac_tool_warned in
7904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7905 whose name does not start with the host triplet. If you think this
7906 configuration is useful to you, please write to autoconf@gnu.org." >&5
7907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7908 whose name does not start with the host triplet. If you think this
7909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7910 ac_tool_warned=yes ;;
7912 RANLIB=$ac_ct_RANLIB
7915 RANLIB="$ac_cv_prog_RANLIB"
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}strip; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_prog_STRIP+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 if test -n "$STRIP"; then
7927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 STRIP=$ac_cv_prog_STRIP
7947 if test -n "$STRIP"; then
7948 { echo "$as_me:$LINENO: result: $STRIP" >&5
7949 echo "${ECHO_T}$STRIP" >&6; }
7951 { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7957 if test -z "$ac_cv_prog_STRIP"; then
7959 # Extract the first word of "strip", so it can be a program name with args.
7960 set dummy strip; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 if test -n "$ac_ct_STRIP"; then
7967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_ac_ct_STRIP="strip"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7987 if test -n "$ac_ct_STRIP"; then
7988 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7989 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7991 { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7995 if test "x$ac_ct_STRIP" = x; then
7998 case $cross_compiling:$ac_tool_warned in
8000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8001 whose name does not start with the host triplet. If you think this
8002 configuration is useful to you, please write to autoconf@gnu.org." >&5
8003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8004 whose name does not start with the host triplet. If you think this
8005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8006 ac_tool_warned=yes ;;
8011 STRIP="$ac_cv_prog_STRIP"
8016 old_CFLAGS="$CFLAGS"
8018 # Set sane defaults for various variables
8019 test -z "$AR" && AR=ar
8020 test -z "$AR_FLAGS" && AR_FLAGS=cru
8021 test -z "$AS" && AS=as
8022 test -z "$CC" && CC=cc
8023 test -z "$LTCC" && LTCC=$CC
8024 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8025 test -z "$DLLTOOL" && DLLTOOL=dlltool
8026 test -z "$LD" && LD=ld
8027 test -z "$LN_S" && LN_S="ln -s"
8028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8029 test -z "$NM" && NM=nm
8030 test -z "$SED" && SED=sed
8031 test -z "$OBJDUMP" && OBJDUMP=objdump
8032 test -z "$RANLIB" && RANLIB=:
8033 test -z "$STRIP" && STRIP=:
8034 test -z "$ac_objext" && ac_objext=o
8036 # Determine commands to create old-style static archives.
8037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8038 old_postinstall_cmds='chmod 644 $oldlib'
8039 old_postuninstall_cmds=
8041 if test -n "$RANLIB"; then
8044 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8053 for cc_temp in $compiler""; do
8055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8064 # Only perform the check for file, if the check method requires it
8065 case $deplibs_check_method in
8067 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8068 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8069 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8078 lt_save_MAGIC_CMD="$MAGIC_CMD"
8079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8081 for ac_dir in $ac_dummy; do
8083 test -z "$ac_dir" && ac_dir=.
8084 if test -f $ac_dir/${ac_tool_prefix}file; then
8085 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8086 if test -n "$file_magic_test_file"; then
8087 case $deplibs_check_method in
8089 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8092 $EGREP "$file_magic_regex" > /dev/null; then
8097 *** Warning: the command libtool uses to detect shared libraries,
8098 *** $file_magic_cmd, produces output that libtool cannot recognize.
8099 *** The result is that libtool may fail to recognize shared libraries
8100 *** as such. This will affect the creation of libtool libraries that
8101 *** depend on shared libraries, but programs linked with such libtool
8102 *** libraries will work regardless of this problem. Nevertheless, you
8103 *** may want to report the problem to your system manager and/or to
8104 *** bug-libtool@gnu.org
8114 MAGIC_CMD="$lt_save_MAGIC_CMD"
8119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if test -n "$MAGIC_CMD"; then
8121 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8122 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8124 { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8128 if test -z "$lt_cv_path_MAGIC_CMD"; then
8129 if test -n "$ac_tool_prefix"; then
8130 { echo "$as_me:$LINENO: checking for file" >&5
8131 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8140 lt_save_MAGIC_CMD="$MAGIC_CMD"
8141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143 for ac_dir in $ac_dummy; do
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f $ac_dir/file; then
8147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8148 if test -n "$file_magic_test_file"; then
8149 case $deplibs_check_method in
8151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154 $EGREP "$file_magic_regex" > /dev/null; then
8159 *** Warning: the command libtool uses to detect shared libraries,
8160 *** $file_magic_cmd, produces output that libtool cannot recognize.
8161 *** The result is that libtool may fail to recognize shared libraries
8162 *** as such. This will affect the creation of libtool libraries that
8163 *** depend on shared libraries, but programs linked with such libtool
8164 *** libraries will work regardless of this problem. Nevertheless, you
8165 *** may want to report the problem to your system manager and/or to
8166 *** bug-libtool@gnu.org
8176 MAGIC_CMD="$lt_save_MAGIC_CMD"
8181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182 if test -n "$MAGIC_CMD"; then
8183 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8184 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8186 { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8202 # Check whether --enable-libtool-lock was given.
8203 if test "${enable_libtool_lock+set}" = set; then
8204 enableval=$enable_libtool_lock;
8207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8210 # Check whether --with-pic was given.
8211 if test "${with_pic+set}" = set; then
8212 withval=$with_pic; pic_mode="$withval"
8217 test -z "$pic_mode" && pic_mode=default
8219 # Use C for the default configuration in the libtool script
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229 # Source file extension for C test sources.
8232 # Object file extension for compiled C test sources.
8236 # Code to be used in simple compile tests
8237 lt_simple_compile_test_code="int some_variable = 0;\n"
8239 # Code to be used in simple link tests
8240 lt_simple_link_test_code='int main(){return(0);}\n'
8243 # If no C compiler was specified, use CC.
8246 # If no C compiler flags were specified, use CFLAGS.
8247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8249 # Allow CC to be a program name with arguments.
8253 # save warnings/boilerplate of simple test code
8254 ac_outfile=conftest.$ac_objext
8255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257 _lt_compiler_boilerplate=`cat conftest.err`
8260 ac_outfile=conftest.$ac_objext
8261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263 _lt_linker_boilerplate=`cat conftest.err`
8268 lt_prog_compiler_no_builtin_flag=
8270 if test "$GCC" = yes; then
8271 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8274 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8275 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 lt_cv_prog_compiler_rtti_exceptions=no
8280 ac_outfile=conftest.$ac_objext
8281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8282 lt_compiler_flag="-fno-rtti -fno-exceptions"
8283 # Insert the option either (1) after the last *FLAGS variable, or
8284 # (2) before a word containing "conftest.", or (3) at the end.
8285 # Note that $ac_compile itself does not contain backslashes and begins
8286 # with a dollar sign (not a hyphen), so the echo should work correctly.
8287 # The option is referenced via a variable to avoid confusing sed.
8288 lt_compile=`echo "$ac_compile" | $SED \
8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291 -e 's:$: $lt_compiler_flag:'`
8292 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8293 (eval "$lt_compile" 2>conftest.err)
8295 cat conftest.err >&5
8296 echo "$as_me:__oline__: \$? = $ac_status" >&5
8297 if (exit $ac_status) && test -s "$ac_outfile"; then
8298 # The compiler can only warn and ignore the option if not recognized
8299 # So say no if there are warnings other than the usual output.
8300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8303 lt_cv_prog_compiler_rtti_exceptions=yes
8309 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8310 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8312 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8313 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8320 lt_prog_compiler_wl=
8321 lt_prog_compiler_pic=
8322 lt_prog_compiler_static=
8324 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8325 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8327 if test "$GCC" = yes; then
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_static='-static'
8333 # All AIX code is PIC.
8334 if test "$host_cpu" = ia64; then
8335 # AIX 5 now supports IA64 processor
8336 lt_prog_compiler_static='-Bstatic'
8341 # FIXME: we need at least 68020 code to build shared libraries, but
8342 # adding the `-m68020' flag to GCC prevents building anything better,
8344 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8347 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8348 # PIC is the default for these OSes.
8351 mingw* | pw32* | os2*)
8352 # This hack is so that the source file can tell whether it is being
8353 # built for inclusion in a dll (and should export symbols for example).
8354 lt_prog_compiler_pic='-DDLL_EXPORT'
8357 darwin* | rhapsody*)
8358 # PIC is the default on this platform
8359 # Common symbols not allowed in MH_DYLIB files
8360 lt_prog_compiler_pic='-fno-common'
8364 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8365 # Instead, we relocate shared libraries at runtime.
8369 # Just because we use GCC doesn't mean we suddenly get shared libraries
8370 # on systems that don't support them.
8371 lt_prog_compiler_can_build_shared=no
8376 if test -d /usr/nec; then
8377 lt_prog_compiler_pic=-Kconform_pic
8382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8389 lt_prog_compiler_pic='-fPIC'
8395 lt_prog_compiler_pic='-fPIC'
8399 # PORTME Check for flag to pass linker flags through the system compiler.
8402 lt_prog_compiler_wl='-Wl,'
8403 if test "$host_cpu" = ia64; then
8404 # AIX 5 now supports IA64 processor
8405 lt_prog_compiler_static='-Bstatic'
8407 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8411 # PIC is the default on this platform
8412 # Common symbols not allowed in MH_DYLIB files
8413 case $cc_basename in
8415 lt_prog_compiler_pic='-qnocommon'
8416 lt_prog_compiler_wl='-Wl,'
8421 mingw* | pw32* | os2*)
8422 # This hack is so that the source file can tell whether it is being
8423 # built for inclusion in a dll (and should export symbols for example).
8424 lt_prog_compiler_pic='-DDLL_EXPORT'
8427 hpux9* | hpux10* | hpux11*)
8428 lt_prog_compiler_wl='-Wl,'
8429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8436 lt_prog_compiler_pic='+Z'
8439 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8440 lt_prog_compiler_static='${wl}-a ${wl}archive'
8443 irix5* | irix6* | nonstopux*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # PIC (with -KPIC) is the default.
8446 lt_prog_compiler_static='-non_shared'
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-Bstatic'
8454 linux* | k*bsd*-gnu)
8455 case $cc_basename in
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_pic='-KPIC'
8459 lt_prog_compiler_static='-static'
8461 pgcc* | pgf77* | pgf90* | pgf95*)
8462 # Portland Group compilers (*not* the Pentium gcc compiler,
8463 # which looks to be a dead project)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-fpic'
8466 lt_prog_compiler_static='-Bstatic'
8469 lt_prog_compiler_wl='-Wl,'
8470 # All Alpha code is PIC.
8471 lt_prog_compiler_static='-non_shared'
8476 osf3* | osf4* | osf5*)
8477 lt_prog_compiler_wl='-Wl,'
8478 # All OSF/1 code is PIC.
8479 lt_prog_compiler_static='-non_shared'
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 case $cc_basename in
8487 lt_prog_compiler_wl='-Qoption ld ';;
8489 lt_prog_compiler_wl='-Wl,';;
8494 lt_prog_compiler_wl='-Qoption ld '
8495 lt_prog_compiler_pic='-PIC'
8496 lt_prog_compiler_static='-Bstatic'
8499 sysv4 | sysv4.2uw2* | sysv4.3*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-KPIC'
8502 lt_prog_compiler_static='-Bstatic'
8506 if test -d /usr/nec ;then
8507 lt_prog_compiler_pic='-Kconform_pic'
8508 lt_prog_compiler_static='-Bstatic'
8512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_can_build_shared=no
8524 lt_prog_compiler_pic='-pic'
8525 lt_prog_compiler_static='-Bstatic'
8529 lt_prog_compiler_can_build_shared=no
8534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8535 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8538 # Check to make sure the PIC flag actually works.
8540 if test -n "$lt_prog_compiler_pic"; then
8542 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8543 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8544 if test "${lt_prog_compiler_pic_works+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 lt_prog_compiler_pic_works=no
8548 ac_outfile=conftest.$ac_objext
8549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8550 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8551 # Insert the option either (1) after the last *FLAGS variable, or
8552 # (2) before a word containing "conftest.", or (3) at the end.
8553 # Note that $ac_compile itself does not contain backslashes and begins
8554 # with a dollar sign (not a hyphen), so the echo should work correctly.
8555 # The option is referenced via a variable to avoid confusing sed.
8556 lt_compile=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>conftest.err)
8563 cat conftest.err >&5
8564 echo "$as_me:__oline__: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s "$ac_outfile"; then
8566 # The compiler can only warn and ignore the option if not recognized
8567 # So say no if there are warnings other than the usual output.
8568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8571 lt_prog_compiler_pic_works=yes
8577 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8578 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8580 if test x"$lt_prog_compiler_pic_works" = xyes; then
8581 case $lt_prog_compiler_pic in
8583 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8586 lt_prog_compiler_pic=
8587 lt_prog_compiler_can_build_shared=no
8592 # For platforms which do not support PIC, -DPIC is meaningless:
8594 lt_prog_compiler_pic=
8597 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8602 # Check to make sure the static flag actually works.
8604 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8605 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8606 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8607 if test "${lt_prog_compiler_static_works+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 lt_prog_compiler_static_works=no
8611 save_LDFLAGS="$LDFLAGS"
8612 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8613 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8615 # The linker can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 if test -s conftest.err; then
8618 # Append any errors to the config.log.
8619 cat conftest.err 1>&5
8620 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8622 if diff conftest.exp conftest.er2 >/dev/null; then
8623 lt_prog_compiler_static_works=yes
8626 lt_prog_compiler_static_works=yes
8630 LDFLAGS="$save_LDFLAGS"
8633 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8636 if test x"$lt_prog_compiler_static_works" = xyes; then
8639 lt_prog_compiler_static=
8643 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8644 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8645 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 lt_cv_prog_compiler_c_o=no
8649 $rm -r conftest 2>/dev/null
8653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8655 lt_compiler_flag="-o out/conftest2.$ac_objext"
8656 # Insert the option either (1) after the last *FLAGS variable, or
8657 # (2) before a word containing "conftest.", or (3) at the end.
8658 # Note that $ac_compile itself does not contain backslashes and begins
8659 # with a dollar sign (not a hyphen), so the echo should work correctly.
8660 lt_compile=`echo "$ac_compile" | $SED \
8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663 -e 's:$: $lt_compiler_flag:'`
8664 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8665 (eval "$lt_compile" 2>out/conftest.err)
8667 cat out/conftest.err >&5
8668 echo "$as_me:__oline__: \$? = $ac_status" >&5
8669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8671 # The compiler can only warn and ignore the option if not recognized
8672 # So say no if there are warnings
8673 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676 lt_cv_prog_compiler_c_o=yes
8681 # SGI C++ compiler will create directory out/ii_files/ for
8682 # template instantiation
8683 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8684 $rm out/* && rmdir out
8690 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8691 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8694 hard_links="nottested"
8695 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696 # do not overwrite the value of need_locks provided by the user
8697 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8698 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 ln conftest.a conftest.b 2>&5 || hard_links=no
8704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705 { echo "$as_me:$LINENO: result: $hard_links" >&5
8706 echo "${ECHO_T}$hard_links" >&6; }
8707 if test "$hard_links" = no; then
8708 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8716 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8720 allow_undefined_flag=
8721 enable_shared_with_static_runtimes=no
8723 archive_expsym_cmds=
8724 old_archive_From_new_cmds=
8725 old_archive_from_expsyms_cmds=
8726 export_dynamic_flag_spec=
8727 whole_archive_flag_spec=
8728 thread_safe_flag_spec=
8729 hardcode_libdir_flag_spec=
8730 hardcode_libdir_flag_spec_ld=
8731 hardcode_libdir_separator=
8734 hardcode_shlibpath_var=unsupported
8735 link_all_deplibs=unknown
8736 hardcode_automatic=no
8739 always_export_symbols=no
8740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8741 # include_expsyms should be a list of space-separated symbols to be *always*
8742 # included in the symbol list
8744 # exclude_expsyms can be an extended regexp of symbols to exclude
8745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8747 # as well as any symbol that contains `d'.
8748 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8750 # platforms (ab)use it in PIC code, but their linkers get confused if
8751 # the symbol is explicitly referenced. Since portable code cannot
8752 # rely on this symbol name, it's probably fine to never include it in
8753 # preloaded symbol tables.
8754 extract_expsyms_cmds=
8755 # Just being paranoid about ensuring that cc_basename is set.
8756 for cc_temp in $compiler""; do
8758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8767 cygwin* | mingw* | pw32*)
8768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769 # When not using gcc, we currently assume that we are using
8770 # Microsoft Visual C++.
8771 if test "$GCC" != yes; then
8776 # we just hope/assume this is gcc and not c89 (= MSVC++)
8785 if test "$with_gnu_ld" = yes; then
8786 # If archive_cmds runs LD, not CC, wlarc should be empty
8789 # Set some defaults for GNU ld with shared library support. These
8790 # are reset later if shared libraries are not supported. Putting them
8791 # here allows them to be overridden if necessary.
8792 runpath_var=LD_RUN_PATH
8793 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8794 export_dynamic_flag_spec='${wl}--export-dynamic'
8795 # ancient GNU ld didn't support --whole-archive et. al.
8796 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8797 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8799 whole_archive_flag_spec=
8801 supports_anon_versioning=no
8802 case `$LD -v 2>/dev/null` in
8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806 *\ 2.11.*) ;; # other 2.11 versions
8807 *) supports_anon_versioning=yes ;;
8810 # See if GNU ld supports shared libraries.
8812 aix3* | aix4* | aix5*)
8813 # On AIX/PPC, the GNU linker is very broken
8814 if test "$host_cpu" != ia64; then
8818 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support. If you
8821 *** really care for shared libraries, you may want to modify your PATH
8822 *** so that a non-GNU linker is found, and then restart.
8829 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)'
8830 hardcode_libdir_flag_spec='-L$libdir'
8831 hardcode_minus_L=yes
8833 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8834 # that the semantics of dynamic libraries on AmigaOS, at least up
8835 # to version 4, is to share data among multiple programs linked
8836 # with the same dynamic library. Since this doesn't match the
8837 # behavior of shared libraries on other platforms, we can't use
8843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8844 allow_undefined_flag=unsupported
8845 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8846 # support --undefined. This deserves some investigation. FIXME
8847 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 cygwin* | mingw* | pw32*)
8854 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8855 # as there is no search path for DLLs.
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 allow_undefined_flag=unsupported
8858 always_export_symbols=no
8859 enable_shared_with_static_runtimes=yes
8860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8862 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 # If the export-symbols file already is a .def file (1st line
8865 # is EXPORTS), use it as is; otherwise, prepend...
8866 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8867 cp $export_symbols $output_objdir/$soname.def;
8869 echo EXPORTS > $output_objdir/$soname.def;
8870 cat $export_symbols >> $output_objdir/$soname.def;
8872 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8880 hardcode_shlibpath_var=no
8881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8882 export_dynamic_flag_spec='${wl}-E'
8883 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8884 # Instead, shared libraries are loaded at an image base (0x10000000 by
8885 # default) and relocated if they conflict, which is a slow very memory
8886 # consuming and fragmenting process. To avoid this, we pick a random,
8887 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8888 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8890 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'
8893 linux* | k*bsd*-gnu)
8894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8896 case $cc_basename,$host_cpu in
8897 pgcc*) # Portland Group C compiler
8898 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'
8899 tmp_addflag=' $pic_flag'
8901 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8902 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8903 tmp_addflag=' $pic_flag -Mnomain' ;;
8904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8905 tmp_addflag=' -i_dynamic' ;;
8906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8907 tmp_addflag=' -i_dynamic -nofor_main' ;;
8908 ifc* | ifort*) # Intel Fortran compiler
8909 tmp_addflag=' -nofor_main' ;;
8911 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913 if test $supports_anon_versioning = yes; then
8914 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916 $echo "local: *; };" >> $output_objdir/$libname.ver~
8917 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8925 netbsd* | netbsdelf*-gnu)
8926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8927 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8940 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8941 *** create shared libraries on Solaris systems. Therefore, libtool
8942 *** is disabling shared libraries support. We urge you to upgrade GNU
8943 *** binutils to release 2.9.1 or newer. Another option is to modify
8944 *** your PATH or compiler configuration so that the native linker is
8945 *** used, and then restart.
8948 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8957 case `$LD -v 2>&1` in
8958 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8962 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8963 *** reliably create shared libraries on SCO systems. Therefore, libtool
8964 *** is disabling shared libraries support. We urge you to upgrade GNU
8965 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8972 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8973 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8984 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8987 hardcode_shlibpath_var=no
8991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9000 if test "$ld_shlibs" = no; then
9002 hardcode_libdir_flag_spec=
9003 export_dynamic_flag_spec=
9004 whole_archive_flag_spec=
9007 # PORTME fill in a description of your system's linker (not GNU ld)
9010 allow_undefined_flag=unsupported
9011 always_export_symbols=yes
9012 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'
9013 # Note: this linker hardcodes the directories in LIBPATH if there
9014 # are no directories specified by -L.
9015 hardcode_minus_L=yes
9016 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9017 # Neither direct hardcoding nor static linking is supported with a
9019 hardcode_direct=unsupported
9024 if test "$host_cpu" = ia64; then
9025 # On IA64, the linker does run time linking by default, so we don't
9026 # have to do anything special.
9027 aix_use_runtimelinking=no
9028 exp_sym_flag='-Bexport'
9031 # If we're using GNU nm, then we don't want the "-C" option.
9032 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9033 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9034 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'
9036 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'
9038 aix_use_runtimelinking=no
9040 # Test if we are trying to use run time linking or normal
9041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9042 # need to do runtime linking.
9043 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9044 for ld_flag in $LDFLAGS; do
9045 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9046 aix_use_runtimelinking=yes
9053 exp_sym_flag='-bexport'
9054 no_entry_flag='-bnoentry'
9057 # When large executables or shared objects are built, AIX ld can
9058 # have problems creating the table of contents. If linking a library
9059 # or program results in "error TOC overflow" add -mminimal-toc to
9060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9065 hardcode_libdir_separator=':'
9066 link_all_deplibs=yes
9068 if test "$GCC" = yes; then
9069 case $host_os in aix4.[012]|aix4.[012].*)
9070 # We only want to do this on AIX 4.2 and lower, the check
9071 # below for broken collect2 doesn't work under 4.3+
9072 collect2name=`${CC} -print-prog-name=collect2`
9073 if test -f "$collect2name" && \
9074 strings "$collect2name" | grep resolve_lib_name >/dev/null
9076 # We have reworked collect2
9079 # We have old collect2
9080 hardcode_direct=unsupported
9081 # It fails to find uninstalled libraries when the uninstalled
9082 # path is not listed in the libpath. Setting hardcode_minus_L
9083 # to unsupported forces relinking
9084 hardcode_minus_L=yes
9085 hardcode_libdir_flag_spec='-L$libdir'
9086 hardcode_libdir_separator=
9090 shared_flag='-shared'
9091 if test "$aix_use_runtimelinking" = yes; then
9092 shared_flag="$shared_flag "'${wl}-G'
9096 if test "$host_cpu" = ia64; then
9097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9098 # chokes on -Wl,-G. The following line is correct:
9101 if test "$aix_use_runtimelinking" = yes; then
9102 shared_flag='${wl}-G'
9104 shared_flag='${wl}-bM:SRE'
9109 # It seems that -bexpall does not export symbols beginning with
9110 # underscore (_), so it is better to generate a list of symbols to export.
9111 always_export_symbols=yes
9112 if test "$aix_use_runtimelinking" = yes; then
9113 # Warning - without using the other runtime loading flags (-brtl),
9114 # -berok will link without error, but may produce a broken library.
9115 allow_undefined_flag='-berok'
9116 # Determine the default libpath from the value encoded in an empty executable.
9117 cat >conftest.$ac_ext <<_ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (ac_try="$ac_link"
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } && {
9146 test -z "$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9148 } && test -s conftest$ac_exeext &&
9149 $as_test_x conftest$ac_exeext; then
9151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9153 # Check for a 64-bit object if we didn't find anything.
9154 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9164 conftest$ac_exeext conftest.$ac_ext
9165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9167 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9168 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"
9170 if test "$host_cpu" = ia64; then
9171 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9172 allow_undefined_flag="-z nodefs"
9173 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"
9175 # Determine the default libpath from the value encoded in an empty executable.
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9191 rm -f conftest.$ac_objext conftest$ac_exeext
9192 if { (ac_try="$ac_link"
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_link") 2>conftest.er1
9200 grep -v '^ *+' conftest.er1 >conftest.err
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest$ac_exeext &&
9208 $as_test_x conftest$ac_exeext; then
9210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9212 # Check for a 64-bit object if we didn't find anything.
9213 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223 conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227 # Warning - without using the other run time loading flags,
9228 # -berok will link without error, but may produce a broken library.
9229 no_undefined_flag=' ${wl}-bernotok'
9230 allow_undefined_flag=' ${wl}-berok'
9231 # Exported symbols can be pulled into shared objects from archives
9232 whole_archive_flag_spec='$convenience'
9233 archive_cmds_need_lc=yes
9234 # This is similar to how AIX traditionally builds its shared libraries.
9235 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'
9241 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)'
9242 hardcode_libdir_flag_spec='-L$libdir'
9243 hardcode_minus_L=yes
9244 # see comment about different semantics on the GNU ld section
9249 export_dynamic_flag_spec=-rdynamic
9252 cygwin* | mingw* | pw32*)
9253 # When not using gcc, we currently assume that we are using
9254 # Microsoft Visual C++.
9255 # hardcode_libdir_flag_spec is actually meaningless, as there is
9256 # no search path for DLLs.
9257 hardcode_libdir_flag_spec=' '
9258 allow_undefined_flag=unsupported
9259 # Tell ltmain to make .lib files, not .a files.
9261 # Tell ltmain to make .dll files, not .so files.
9263 # FIXME: Setting linknames here is a bad hack.
9264 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9265 # The linker will automatically build a .lib file if we build a DLL.
9266 old_archive_From_new_cmds='true'
9267 # FIXME: Should let the user specify the lib program.
9268 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9269 fix_srcfile_path='`cygpath -w "$srcfile"`'
9270 enable_shared_with_static_runtimes=yes
9273 darwin* | rhapsody*)
9275 rhapsody* | darwin1.[012])
9276 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9279 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9280 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9282 case ${MACOSX_DEPLOYMENT_TARGET} in
9284 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9287 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9293 archive_cmds_need_lc=no
9295 hardcode_automatic=yes
9296 hardcode_shlibpath_var=unsupported
9297 whole_archive_flag_spec=''
9298 link_all_deplibs=yes
9299 if test "$GCC" = yes ; then
9300 output_verbose_link_cmd='echo'
9301 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9302 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9303 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9304 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}'
9305 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}'
9307 case $cc_basename in
9309 output_verbose_link_cmd='echo'
9310 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9311 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9312 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9313 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9314 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}'
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_libdir_flag_spec='-L$libdir'
9326 hardcode_shlibpath_var=no
9333 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9334 # support. Future versions do this automatically, but an explicit c++rt0.o
9335 # does not break anything, and helps significantly (at the cost of a little
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9339 hardcode_libdir_flag_spec='-R$libdir'
9341 hardcode_shlibpath_var=no
9344 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_minus_L=yes
9349 hardcode_shlibpath_var=no
9352 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9353 freebsd* | dragonfly*)
9354 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9355 hardcode_libdir_flag_spec='-R$libdir'
9357 hardcode_shlibpath_var=no
9361 if test "$GCC" = yes; then
9362 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'
9364 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'
9366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9367 hardcode_libdir_separator=:
9370 # hardcode_minus_L: Not really in the search PATH,
9371 # but as the default location of the library.
9372 hardcode_minus_L=yes
9373 export_dynamic_flag_spec='${wl}-E'
9377 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9378 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9382 if test "$with_gnu_ld" = no; then
9383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384 hardcode_libdir_separator=:
9387 export_dynamic_flag_spec='${wl}-E'
9389 # hardcode_minus_L: Not really in the search PATH,
9390 # but as the default location of the library.
9391 hardcode_minus_L=yes
9396 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9399 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 if test "$with_gnu_ld" = no; then
9422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_separator=:
9427 hardcode_libdir_flag_spec_ld='+b $libdir'
9429 hardcode_shlibpath_var=no
9433 export_dynamic_flag_spec='${wl}-E'
9435 # hardcode_minus_L: Not really in the search PATH,
9436 # but as the default location of the library.
9437 hardcode_minus_L=yes
9443 irix5* | irix6* | nonstopux*)
9444 if test "$GCC" = yes; then
9445 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'
9447 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'
9448 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451 hardcode_libdir_separator=:
9452 link_all_deplibs=yes
9455 netbsd* | netbsdelf*-gnu)
9456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9459 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9461 hardcode_libdir_flag_spec='-R$libdir'
9463 hardcode_shlibpath_var=no
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470 hardcode_libdir_separator=:
9471 hardcode_shlibpath_var=no
9476 hardcode_shlibpath_var=no
9477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 export_dynamic_flag_spec='${wl}-E'
9484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_libdir_flag_spec='-R$libdir'
9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_minus_L=yes
9499 allow_undefined_flag=unsupported
9500 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'
9501 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9505 if test "$GCC" = yes; then
9506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9507 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'
9509 allow_undefined_flag=' -expect_unresolved \*'
9510 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'
9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 hardcode_libdir_separator=:
9516 osf4* | osf5*) # as osf3* with the addition of -msym flag
9517 if test "$GCC" = yes; then
9518 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9519 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'
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522 allow_undefined_flag=' -expect_unresolved \*'
9523 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'
9524 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9525 $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'
9527 # Both c and cxx compiler support -rpath directly
9528 hardcode_libdir_flag_spec='-rpath $libdir'
9530 hardcode_libdir_separator=:
9534 no_undefined_flag=' -z text'
9535 if test "$GCC" = yes; then
9537 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9539 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9542 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9544 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9546 hardcode_libdir_flag_spec='-R$libdir'
9547 hardcode_shlibpath_var=no
9549 solaris2.[0-5] | solaris2.[0-5].*) ;;
9551 # The compiler driver will combine linker options so we
9552 # cannot just pass the convience library names through
9553 # without $wl, iff we do not link with $LD.
9554 # Luckily, gcc supports the same syntax we need for Sun Studio.
9555 # Supported since Solaris 2.6 (maybe 2.5.1?)
9558 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9560 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9563 link_all_deplibs=yes
9567 if test "x$host_vendor" = xsequent; then
9568 # Use $CC to link under sequent, because it throws in some extra .o
9569 # files that make .init and .fini sections work.
9570 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9572 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9574 hardcode_libdir_flag_spec='-L$libdir'
9576 hardcode_minus_L=yes
9577 hardcode_shlibpath_var=no
9581 case $host_vendor in
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_direct=yes # is this really true???
9587 ## LD is ld it makes a PLAMLIB
9588 ## CC just makes a GrossModule.
9589 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9590 reload_cmds='$CC -r -o $output$reload_objs'
9594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9598 runpath_var='LD_RUN_PATH'
9599 hardcode_shlibpath_var=no
9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604 hardcode_shlibpath_var=no
9605 export_dynamic_flag_spec='-Bexport'
9609 if test -d /usr/nec; then
9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_shlibpath_var=no
9612 runpath_var=LD_RUN_PATH
9613 hardcode_runpath_var=yes
9618 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9619 no_undefined_flag='${wl}-z,text'
9620 archive_cmds_need_lc=no
9621 hardcode_shlibpath_var=no
9622 runpath_var='LD_RUN_PATH'
9624 if test "$GCC" = yes; then
9625 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 sysv5* | sco3.2v5* | sco5v6*)
9634 # Note: We can NOT use -z defs as we might desire, because we do not
9635 # link with -lc, and that would cause any symbols used from libc to
9636 # always be unresolved, which means just about no library would
9637 # ever link correctly. If we're not using GNU ld we use -z text
9638 # though, which does catch some bad symbols but isn't as heavy-handed
9640 no_undefined_flag='${wl}-z,text'
9641 allow_undefined_flag='${wl}-z,nodefs'
9642 archive_cmds_need_lc=no
9643 hardcode_shlibpath_var=no
9644 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9645 hardcode_libdir_separator=':'
9646 link_all_deplibs=yes
9647 export_dynamic_flag_spec='${wl}-Bexport'
9648 runpath_var='LD_RUN_PATH'
9650 if test "$GCC" = yes; then
9651 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9654 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_shlibpath_var=no
9671 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9672 echo "${ECHO_T}$ld_shlibs" >&6; }
9673 test "$ld_shlibs" = no && can_build_shared=no
9676 # Do we need to explicitly link libc?
9678 case "x$archive_cmds_need_lc" in
9680 # Assume -lc should be added
9681 archive_cmds_need_lc=yes
9683 if test "$enable_shared" = yes && test "$GCC" = yes; then
9684 case $archive_cmds in
9686 # FIXME: we may have to deal with multi-command sequences.
9689 # Test whether the compiler implicitly links with -lc since on some
9690 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9691 # to ld, don't add -lc before -lgcc.
9692 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9693 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9695 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698 (eval $ac_compile) 2>&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } 2>conftest.err; then
9704 libobjs=conftest.$ac_objext
9706 wl=$lt_prog_compiler_wl
9707 pic_flag=$lt_prog_compiler_pic
9713 lt_save_allow_undefined_flag=$allow_undefined_flag
9714 allow_undefined_flag=
9715 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9716 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }
9721 archive_cmds_need_lc=no
9723 archive_cmds_need_lc=yes
9725 allow_undefined_flag=$lt_save_allow_undefined_flag
9727 cat conftest.err 1>&5
9730 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9731 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9738 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9739 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9741 libname_spec='lib$name'
9749 shlibpath_overrides_runpath=unknown
9751 dynamic_linker="$host_os ld.so"
9752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9753 if test "$GCC" = yes; then
9754 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9755 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9756 # if the path contains ";" then we assume it to be the separator
9757 # otherwise default to the standard path separator (i.e. ":") - it is
9758 # assumed that no part of a normal pathname contains ";" but that should
9759 # okay in the real world where ";" in dirpaths is itself problematic.
9760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9767 need_lib_prefix=unknown
9768 hardcode_into_libs=no
9770 # when you set need_version to no, make sure it does not cause -set_version
9771 # flags to be left without arguments
9772 need_version=unknown
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9778 shlibpath_var=LIBPATH
9780 # AIX 3 has no versioning support, so we append a major version to the name.
9781 soname_spec='${libname}${release}${shared_ext}$major'
9788 hardcode_into_libs=yes
9789 if test "$host_cpu" = ia64; then
9790 # AIX 5 supports IA64
9791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9792 shlibpath_var=LD_LIBRARY_PATH
9794 # With GCC up to 2.95.x, collect2 would create an import file
9795 # for dependence libraries. The import file would start with
9796 # the line `#! .'. This would cause the generated library to
9797 # depend on `.', always an invalid library. This was fixed in
9798 # development snapshots of GCC prior to 3.0.
9800 aix4 | aix4.[01] | aix4.[01].*)
9801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9811 # soname into executable. Probably we can add versioning support to
9812 # collect2, so additional links can be useful in future.
9813 if test "$aix_use_runtimelinking" = yes; then
9814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9815 # instead of lib<name>.a to let people know that these are not
9816 # typical AIX shared libraries.
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 # We preserve .a as extension for shared libraries through AIX4.2
9820 # and later when we are not doing run time linking.
9821 library_names_spec='${libname}${release}.a $libname.a'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9824 shlibpath_var=LIBPATH
9829 library_names_spec='$libname.ixlibrary $libname.a'
9830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9831 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'
9835 library_names_spec='${libname}${shared_ext}'
9836 dynamic_linker="$host_os ld.so"
9837 shlibpath_var=LIBRARY_PATH
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9849 # the default ld.so.conf also contains /usr/contrib/lib and
9850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9851 # libtool to hard-code these into programs
9854 cygwin* | mingw* | pw32*)
9855 version_type=windows
9860 case $GCC,$host_os in
9861 yes,cygwin* | yes,mingw* | yes,pw32*)
9862 library_names_spec='$libname.dll.a'
9863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9864 postinstall_cmds='base_file=`basename \${file}`~
9865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9866 dldir=$destdir/`dirname \$dlpath`~
9867 test -d \$dldir || mkdir -p \$dldir~
9868 $install_prog $dir/$dlname \$dldir/$dlname~
9869 chmod a+x \$dldir/$dlname'
9870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9871 dlpath=$dir/\$dldll~
9873 shlibpath_overrides_runpath=yes
9877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9879 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9882 # MinGW DLLs use traditional 'lib' prefix
9883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9886 # It is most probably a Windows format PATH printed by
9887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9888 # path with ; separators, and with drive letters. We can handle the
9889 # drive letters (cygwin fileutils understands them), so leave them,
9890 # especially as we might pass files found there to a mingw objdump,
9891 # which wouldn't understand a cygwinified path. Ahh.
9892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9898 # pw32 DLLs use 'pw' prefix rather than 'lib'
9899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9908 dynamic_linker='Win32 ld.exe'
9909 # FIXME: first we should search . and the directory the executable is in
9913 darwin* | rhapsody*)
9914 dynamic_linker="$host_os dyld"
9918 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9919 soname_spec='${libname}${release}${major}$shared_ext'
9920 shlibpath_overrides_runpath=yes
9921 shlibpath_var=DYLD_LIBRARY_PATH
9922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9923 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9924 if test "$GCC" = yes; then
9925 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9927 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9945 freebsd* | dragonfly*)
9946 # DragonFly does not have aout. When/if they implement a new
9947 # versioning mechanism, adjust this.
9948 if test -x /usr/bin/objformat; then
9949 objformat=`/usr/bin/objformat`
9952 freebsd[123]*) objformat=aout ;;
9956 version_type=freebsd-$objformat
9957 case $version_type in
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9968 shlibpath_var=LD_LIBRARY_PATH
9971 shlibpath_overrides_runpath=yes
9973 freebsd3.[01]* | freebsdelf3.[01]*)
9974 shlibpath_overrides_runpath=yes
9975 hardcode_into_libs=yes
9977 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9978 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9979 shlibpath_overrides_runpath=no
9980 hardcode_into_libs=yes
9982 freebsd*) # from 4.6 on
9983 shlibpath_overrides_runpath=yes
9984 hardcode_into_libs=yes
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 shlibpath_var=LD_LIBRARY_PATH
9996 hardcode_into_libs=yes
9999 hpux9* | hpux10* | hpux11*)
10000 # Give a soname corresponding to the major version so that dld.sl refuses to
10001 # link against other versions.
10008 hardcode_into_libs=yes
10009 dynamic_linker="$host_os dld.so"
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 if test "X$HPUX_IA64_MODE" = X32; then
10015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 hardcode_into_libs=yes
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10034 dynamic_linker="$host_os dld.sl"
10035 shlibpath_var=SHLIB_PATH
10036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10041 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10042 postinstall_cmds='chmod 555 $lib'
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=no
10054 hardcode_into_libs=yes
10057 irix5* | irix6* | nonstopux*)
10059 nonstopux*) version_type=nonstopux ;;
10061 if test "$lt_cv_prog_gnu_ld" = yes; then
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10072 irix5* | nonstopux*)
10073 libsuff= shlibsuff=
10076 case $LD in # libtool.m4 will add one of these switches to LD
10077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10078 libsuff= shlibsuff= libmagic=32-bit;;
10079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10080 libsuff=32 shlibsuff=N32 libmagic=N32;;
10081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10083 *) libsuff= shlibsuff= libmagic=never-match;;
10087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10088 shlibpath_overrides_runpath=no
10089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10091 hardcode_into_libs=yes
10094 # No shared lib support for Linux oldld, aout, or coff.
10095 linux*oldld* | linux*aout* | linux*coff*)
10099 # This must be Linux ELF.
10100 linux* | k*bsd*-gnu)
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 shlibpath_overrides_runpath=no
10109 # This implies no fast_install, which is unacceptable.
10110 # Some rework will be needed to allow for fast_install
10111 # before this can be enabled.
10112 hardcode_into_libs=yes
10114 # Append ld.so.conf contents to the search path
10115 if test -f /etc/ld.so.conf; then
10116 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10120 # We used to test for /lib/ld.so.1 and disable shared libraries on
10121 # powerpc, because MkLinux only supported shared libraries with the
10122 # GNU dynamic linker. Since this was broken with cross compilers,
10123 # most powerpc-linux boxes support dynamic linking these days and
10124 # people can always --disable-shared, the test was removed, and we
10125 # assume the GNU/Linux dynamic linker is in use.
10126 dynamic_linker='GNU/Linux ld.so'
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=no
10137 hardcode_into_libs=yes
10138 dynamic_linker='NetBSD ld.elf_so'
10145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10148 dynamic_linker='NetBSD (a.out) ld.so'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 dynamic_linker='NetBSD ld.elf_so'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=yes
10156 hardcode_into_libs=yes
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath=yes
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=yes
10178 sys_lib_dlsearch_path_spec="/usr/lib"
10180 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10182 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10183 *) need_version=no ;;
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10190 openbsd2.[89] | openbsd2.[89].*)
10191 shlibpath_overrides_runpath=no
10194 shlibpath_overrides_runpath=yes
10198 shlibpath_overrides_runpath=yes
10203 libname_spec='$name'
10206 library_names_spec='$libname${shared_ext} $libname.a'
10207 dynamic_linker='OS/2 ld.exe'
10208 shlibpath_var=LIBPATH
10211 osf3* | osf4* | osf5*)
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=yes
10230 hardcode_into_libs=yes
10231 # ldd complains unless libraries are executable
10232 postinstall_cmds='chmod +x $lib'
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10241 if test "$with_gnu_ld" = yes; then
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 case $host_vendor in
10254 shlibpath_overrides_runpath=no
10256 export_dynamic_flag_spec='${wl}-Blargedynsym'
10257 runpath_var=LD_RUN_PATH
10265 shlibpath_overrides_runpath=no
10266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10272 if test -d /usr/nec ;then
10274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10275 soname_spec='$libname${shared_ext}.$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10281 version_type=freebsd-elf
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 hardcode_into_libs=yes
10288 if test "$with_gnu_ld" = yes; then
10289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10290 shlibpath_overrides_runpath=no
10292 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10293 shlibpath_overrides_runpath=yes
10296 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10300 sys_lib_dlsearch_path_spec='/usr/lib'
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10314 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10315 echo "${ECHO_T}$dynamic_linker" >&6; }
10316 test "$dynamic_linker" = no && can_build_shared=no
10318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10319 if test "$GCC" = yes; then
10320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10323 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10326 if test -n "$hardcode_libdir_flag_spec" || \
10327 test -n "$runpath_var" || \
10328 test "X$hardcode_automatic" = "Xyes" ; then
10330 # We can hardcode non-existant directories.
10331 if test "$hardcode_direct" != no &&
10332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10333 # have to relink, otherwise we might link with an installed library
10334 # when we should be linking with a yet-to-be-installed one
10335 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10336 test "$hardcode_minus_L" != no; then
10337 # Linking always hardcodes the temporary library directory.
10338 hardcode_action=relink
10340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10341 hardcode_action=immediate
10344 # We cannot hardcode anything, or else we can only hardcode existing
10346 hardcode_action=unsupported
10348 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10349 echo "${ECHO_T}$hardcode_action" >&6; }
10351 if test "$hardcode_action" = relink; then
10352 # Fast installation is not supported
10353 enable_fast_install=no
10354 elif test "$shlibpath_overrides_runpath" = yes ||
10355 test "$enable_shared" = no; then
10356 # Fast installation is not necessary
10357 enable_fast_install=needless
10362 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10363 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10364 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10367 { echo "$as_me:$LINENO: result: yes" >&5
10368 echo "${ECHO_T}yes" >&6; }
10370 # FIXME - insert some real tests, host_os isn't really good enough
10373 if test -n "$STRIP" ; then
10374 striplib="$STRIP -x"
10375 { echo "$as_me:$LINENO: result: yes" >&5
10376 echo "${ECHO_T}yes" >&6; }
10378 { echo "$as_me:$LINENO: result: no" >&5
10379 echo "${ECHO_T}no" >&6; }
10383 { echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6; }
10389 if test "x$enable_dlopen" != xyes; then
10390 enable_dlopen=unknown
10391 enable_dlopen_self=unknown
10392 enable_dlopen_self_static=unknown
10399 lt_cv_dlopen="load_add_on"
10401 lt_cv_dlopen_self=yes
10405 lt_cv_dlopen="LoadLibrary"
10410 lt_cv_dlopen="dlopen"
10415 # if libdl is installed we need to link against it
10416 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_check_lib_save_LIBS=$LIBS
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (ac_try="$ac_link"
10447 case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_link") 2>conftest.er1
10454 grep -v '^ *+' conftest.er1 >conftest.err
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest$ac_exeext &&
10462 $as_test_x conftest$ac_exeext; then
10463 ac_cv_lib_dl_dlopen=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_cv_lib_dl_dlopen=no
10471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10475 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10476 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10477 if test $ac_cv_lib_dl_dlopen = yes; then
10478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10481 lt_cv_dlopen="dyld"
10483 lt_cv_dlopen_self=yes
10490 { echo "$as_me:$LINENO: checking for shl_load" >&5
10491 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10492 if test "${ac_cv_func_shl_load+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10503 #define shl_load innocuous_shl_load
10505 /* System header to define __stub macros and hopefully few prototypes,
10506 which can conflict with char shl_load (); below.
10507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10508 <limits.h> exists even on freestanding compilers. */
10511 # include <limits.h>
10513 # include <assert.h>
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10525 /* The GNU C library defines this for functions which it implements
10526 to always fail with ENOSYS. Some functions are actually named
10527 something starting with __ and the normal name is an alias. */
10528 #if defined __stub_shl_load || defined __stub___shl_load
10535 return shl_load ();
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (ac_try="$ac_link"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_link") 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest$ac_exeext &&
10557 $as_test_x conftest$ac_exeext; then
10558 ac_cv_func_shl_load=yes
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 ac_cv_func_shl_load=no
10566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10567 conftest$ac_exeext conftest.$ac_ext
10569 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10570 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10571 if test $ac_cv_func_shl_load = yes; then
10572 lt_cv_dlopen="shl_load"
10574 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10575 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10576 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 ac_check_lib_save_LIBS=$LIBS
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10598 return shl_load ();
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_link") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest$ac_exeext &&
10620 $as_test_x conftest$ac_exeext; then
10621 ac_cv_lib_dld_shl_load=yes
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_cv_lib_dld_shl_load=no
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10635 if test $ac_cv_lib_dld_shl_load = yes; then
10636 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10638 { echo "$as_me:$LINENO: checking for dlopen" >&5
10639 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10640 if test "${ac_cv_func_dlopen+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10651 #define dlopen innocuous_dlopen
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char dlopen (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10659 # include <limits.h>
10661 # include <assert.h>
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined __stub_dlopen || defined __stub___dlopen
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest$ac_exeext &&
10705 $as_test_x conftest$ac_exeext; then
10706 ac_cv_func_dlopen=yes
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_cv_func_dlopen=no
10714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715 conftest$ac_exeext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10718 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10719 if test $ac_cv_func_dlopen = yes; then
10720 lt_cv_dlopen="dlopen"
10722 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 ac_check_lib_save_LIBS=$LIBS
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_link") 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext &&
10768 $as_test_x conftest$ac_exeext; then
10769 ac_cv_lib_dl_dlopen=yes
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ac_cv_lib_dl_dlopen=no
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10782 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10783 if test $ac_cv_lib_dl_dlopen = yes; then
10784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10786 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10787 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10788 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-lsvld $LIBS"
10793 cat >conftest.$ac_ext <<_ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext &&
10832 $as_test_x conftest$ac_exeext; then
10833 ac_cv_lib_svld_dlopen=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_lib_svld_dlopen=no
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842 conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10845 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10846 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10847 if test $ac_cv_lib_svld_dlopen = yes; then
10848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10850 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10851 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10852 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 ac_check_lib_save_LIBS=$LIBS
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10874 return dld_link ();
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_link") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest$ac_exeext &&
10896 $as_test_x conftest$ac_exeext; then
10897 ac_cv_lib_dld_dld_link=yes
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_cv_lib_dld_dld_link=no
10905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10910 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10911 if test $ac_cv_lib_dld_dld_link = yes; then
10912 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10933 if test "x$lt_cv_dlopen" != xno; then
10939 case $lt_cv_dlopen in
10941 save_CPPFLAGS="$CPPFLAGS"
10942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10944 save_LDFLAGS="$LDFLAGS"
10945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10948 LIBS="$lt_cv_dlopen_libs $LIBS"
10950 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10951 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10952 if test "${lt_cv_dlopen_self+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 if test "$cross_compiling" = yes; then :
10956 lt_cv_dlopen_self=cross
10958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10959 lt_status=$lt_dlunknown
10960 cat > conftest.$ac_ext <<EOF
10961 #line __oline__ "configure"
10962 #include "confdefs.h"
10971 # define LT_DLGLOBAL RTLD_GLOBAL
10974 # define LT_DLGLOBAL DL_GLOBAL
10976 # define LT_DLGLOBAL 0
10980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10981 find out it does not work in some platform. */
10982 #ifndef LT_DLLAZY_OR_NOW
10984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10987 # define LT_DLLAZY_OR_NOW DL_LAZY
10990 # define LT_DLLAZY_OR_NOW RTLD_NOW
10993 # define LT_DLLAZY_OR_NOW DL_NOW
10995 # define LT_DLLAZY_OR_NOW 0
11003 extern "C" void exit (int);
11006 void fnord() { int i=42;}
11009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11010 int status = $lt_dlunknown;
11014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11016 /* dlclose (self); */
11024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025 (eval $ac_link) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11029 (./conftest; exit; ) >&5 2>/dev/null
11031 case x$lt_status in
11032 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11033 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11034 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11037 # compilation failed
11038 lt_cv_dlopen_self=no
11045 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11046 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11048 if test "x$lt_cv_dlopen_self" = xyes; then
11049 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11050 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11051 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11052 if test "${lt_cv_dlopen_self_static+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 if test "$cross_compiling" = yes; then :
11056 lt_cv_dlopen_self_static=cross
11058 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11059 lt_status=$lt_dlunknown
11060 cat > conftest.$ac_ext <<EOF
11061 #line __oline__ "configure"
11062 #include "confdefs.h"
11071 # define LT_DLGLOBAL RTLD_GLOBAL
11074 # define LT_DLGLOBAL DL_GLOBAL
11076 # define LT_DLGLOBAL 0
11080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11081 find out it does not work in some platform. */
11082 #ifndef LT_DLLAZY_OR_NOW
11084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11087 # define LT_DLLAZY_OR_NOW DL_LAZY
11090 # define LT_DLLAZY_OR_NOW RTLD_NOW
11093 # define LT_DLLAZY_OR_NOW DL_NOW
11095 # define LT_DLLAZY_OR_NOW 0
11103 extern "C" void exit (int);
11106 void fnord() { int i=42;}
11109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11110 int status = $lt_dlunknown;
11114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11115 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11116 /* dlclose (self); */
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125 (eval $ac_link) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11129 (./conftest; exit; ) >&5 2>/dev/null
11131 case x$lt_status in
11132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11134 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11137 # compilation failed
11138 lt_cv_dlopen_self_static=no
11145 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11146 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11149 CPPFLAGS="$save_CPPFLAGS"
11150 LDFLAGS="$save_LDFLAGS"
11155 case $lt_cv_dlopen_self in
11156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11157 *) enable_dlopen_self=unknown ;;
11160 case $lt_cv_dlopen_self_static in
11161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11162 *) enable_dlopen_self_static=unknown ;;
11167 # Report which library types will actually be built
11168 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11169 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11170 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11171 echo "${ECHO_T}$can_build_shared" >&6; }
11173 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11174 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11175 test "$can_build_shared" = "no" && enable_shared=no
11177 # On AIX, shared libraries and static libraries use the same namespace, and
11178 # are all built from PIC.
11181 test "$enable_shared" = yes && enable_static=no
11182 if test -n "$RANLIB"; then
11183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11184 postinstall_cmds='$RANLIB $lib'
11189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11190 test "$enable_shared" = yes && enable_static=no
11194 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11195 echo "${ECHO_T}$enable_shared" >&6; }
11197 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11198 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11199 # Make sure either enable_shared or enable_static is yes.
11200 test "$enable_shared" = yes || enable_static=yes
11201 { echo "$as_me:$LINENO: result: $enable_static" >&5
11202 echo "${ECHO_T}$enable_static" >&6; }
11204 # The else clause should only fire when bootstrapping the
11205 # libtool distribution, otherwise you forgot to ship ltmain.sh
11206 # with your package, and you will get complaints that there are
11207 # no rules to generate ltmain.sh.
11208 if test -f "$ltmain"; then
11209 # See if we are running on zsh, and set the options which allow our commands through
11210 # without removal of \ escapes.
11211 if test -n "${ZSH_VERSION+set}" ; then
11212 setopt NO_GLOB_SUBST
11214 # Now quote all the things that may contain metacharacters while being
11215 # careful not to overquote the AC_SUBSTed values. We take copies of the
11216 # variables and quote the copies for generation of the libtool script.
11217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11221 deplibs_check_method reload_flag reload_cmds need_locks \
11222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11223 lt_cv_sys_global_symbol_to_c_name_address \
11224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11225 old_postinstall_cmds old_postuninstall_cmds \
11229 lt_prog_compiler_wl \
11230 lt_prog_compiler_pic \
11231 lt_prog_compiler_static \
11232 lt_prog_compiler_no_builtin_flag \
11233 export_dynamic_flag_spec \
11234 thread_safe_flag_spec \
11235 whole_archive_flag_spec \
11236 enable_shared_with_static_runtimes \
11238 old_archive_from_new_cmds \
11243 compiler_lib_search_path \
11245 archive_expsym_cmds \
11247 postuninstall_cmds \
11248 old_archive_from_expsyms_cmds \
11249 allow_undefined_flag \
11250 no_undefined_flag \
11251 export_symbols_cmds \
11252 hardcode_libdir_flag_spec \
11253 hardcode_libdir_flag_spec_ld \
11254 hardcode_libdir_separator \
11255 hardcode_automatic \
11257 module_expsym_cmds \
11258 lt_cv_prog_compiler_c_o \
11260 include_expsyms; do
11263 old_archive_cmds | \
11264 old_archive_from_new_cmds | \
11266 archive_expsym_cmds | \
11268 module_expsym_cmds | \
11269 old_archive_from_expsyms_cmds | \
11270 export_symbols_cmds | \
11271 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11272 postinstall_cmds | postuninstall_cmds | \
11273 old_postinstall_cmds | old_postuninstall_cmds | \
11274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11275 # Double-quote double-evaled strings.
11276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11285 *'\$0 --fallback-echo"')
11286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11290 cfgfile="${ofile}T"
11291 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11293 { echo "$as_me:$LINENO: creating $ofile" >&5
11294 echo "$as_me: creating $ofile" >&6;}
11296 cat <<__EOF__ >> "$cfgfile"
11299 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11300 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11301 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11303 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11304 # Free Software Foundation, Inc.
11306 # This file is part of GNU Libtool:
11307 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11309 # This program is free software; you can redistribute it and/or modify
11310 # it under the terms of the GNU General Public License as published by
11311 # the Free Software Foundation; either version 2 of the License, or
11312 # (at your option) any later version.
11314 # This program is distributed in the hope that it will be useful, but
11315 # WITHOUT ANY WARRANTY; without even the implied warranty of
11316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11317 # General Public License for more details.
11319 # You should have received a copy of the GNU General Public License
11320 # along with this program; if not, write to the Free Software
11321 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11323 # As a special exception to the GNU General Public License, if you
11324 # distribute this file as part of a program that contains a
11325 # configuration script generated by Autoconf, you may include it under
11326 # the same distribution terms that you use for the rest of that program.
11328 # A sed program that does not truncate output.
11331 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11332 Xsed="$SED -e 1s/^X//"
11334 # The HP-UX ksh and POSIX shell print the target directory to stdout
11335 # if CDPATH is set.
11336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11338 # The names of the tagged configurations supported by this script.
11341 # ### BEGIN LIBTOOL CONFIG
11343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11345 # Shell to use when invoking shell scripts.
11348 # Whether or not to build shared libraries.
11349 build_libtool_libs=$enable_shared
11351 # Whether or not to build static libraries.
11352 build_old_libs=$enable_static
11354 # Whether or not to add -lc for building shared libraries.
11355 build_libtool_need_lc=$archive_cmds_need_lc
11357 # Whether or not to disallow shared libs when runtime libs are static
11358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11360 # Whether or not to optimize for fast installation.
11361 fast_install=$enable_fast_install
11364 host_alias=$host_alias
11368 # The build system.
11369 build_alias=$build_alias
11373 # An echo program that does not interpret backslashes.
11378 AR_FLAGS=$lt_AR_FLAGS
11383 # LTCC compiler flags.
11384 LTCFLAGS=$lt_LTCFLAGS
11386 # A language-specific compiler.
11389 # Is the compiler the GNU C compiler?
11395 # The linker used to build libraries.
11398 # Whether we need hard or soft links.
11401 # A BSD-compatible nm program.
11404 # A symbol stripping program
11407 # Used to examine libraries when file_magic_cmd begins "file"
11408 MAGIC_CMD=$MAGIC_CMD
11410 # Used on cygwin: DLL creation program.
11413 # Used on cygwin: object dumper.
11416 # Used on cygwin: assembler.
11419 # The name of the directory that contains temporary libtool files.
11422 # How to create reloadable object files.
11423 reload_flag=$lt_reload_flag
11424 reload_cmds=$lt_reload_cmds
11426 # How to pass a linker flag through the compiler.
11427 wl=$lt_lt_prog_compiler_wl
11429 # Object file suffix (normally "o").
11430 objext="$ac_objext"
11432 # Old archive suffix (normally "a").
11435 # Shared library suffix (normally ".so").
11436 shrext_cmds='$shrext_cmds'
11438 # Executable file suffix (normally "").
11441 # Additional compiler flags for building library objects.
11442 pic_flag=$lt_lt_prog_compiler_pic
11445 # What is the maximum length of a command?
11446 max_cmd_len=$lt_cv_sys_max_cmd_len
11448 # Does compiler simultaneously support -c and -o options?
11449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11451 # Must we lock files when doing compilation?
11452 need_locks=$lt_need_locks
11454 # Do we need the lib prefix for modules?
11455 need_lib_prefix=$need_lib_prefix
11457 # Do we need a version for libraries?
11458 need_version=$need_version
11460 # Whether dlopen is supported.
11461 dlopen_support=$enable_dlopen
11463 # Whether dlopen of programs is supported.
11464 dlopen_self=$enable_dlopen_self
11466 # Whether dlopen of statically linked programs is supported.
11467 dlopen_self_static=$enable_dlopen_self_static
11469 # Compiler flag to prevent dynamic linking.
11470 link_static_flag=$lt_lt_prog_compiler_static
11472 # Compiler flag to turn off builtin functions.
11473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11475 # Compiler flag to allow reflexive dlopens.
11476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11478 # Compiler flag to generate shared objects directly from archives.
11479 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11481 # Compiler flag to generate thread-safe objects.
11482 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11484 # Library versioning type.
11485 version_type=$version_type
11487 # Format of library name prefix.
11488 libname_spec=$lt_libname_spec
11490 # List of archive names. First name is the real one, the rest are links.
11491 # The last name is the one that the linker finds with -lNAME.
11492 library_names_spec=$lt_library_names_spec
11494 # The coded name of the library, if different from the real name.
11495 soname_spec=$lt_soname_spec
11497 # Commands used to build and install an old-style archive.
11499 old_archive_cmds=$lt_old_archive_cmds
11500 old_postinstall_cmds=$lt_old_postinstall_cmds
11501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11503 # Create an old-style archive from a shared archive.
11504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11506 # Create a temporary old-style archive to link instead of a shared archive.
11507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11509 # Commands used to build and install a shared archive.
11510 archive_cmds=$lt_archive_cmds
11511 archive_expsym_cmds=$lt_archive_expsym_cmds
11512 postinstall_cmds=$lt_postinstall_cmds
11513 postuninstall_cmds=$lt_postuninstall_cmds
11515 # Commands used to build a loadable module (assumed same as above if empty)
11516 module_cmds=$lt_module_cmds
11517 module_expsym_cmds=$lt_module_expsym_cmds
11519 # Commands to strip libraries.
11520 old_striplib=$lt_old_striplib
11521 striplib=$lt_striplib
11523 # Dependencies to place before the objects being linked to create a
11525 predep_objects=$lt_predep_objects
11527 # Dependencies to place after the objects being linked to create a
11529 postdep_objects=$lt_postdep_objects
11531 # Dependencies to place before the objects being linked to create a
11533 predeps=$lt_predeps
11535 # Dependencies to place after the objects being linked to create a
11537 postdeps=$lt_postdeps
11539 # The library search path used internally by the compiler when linking
11540 # a shared library.
11541 compiler_lib_search_path=$lt_compiler_lib_search_path
11543 # Method to check whether dependent libraries are shared objects.
11544 deplibs_check_method=$lt_deplibs_check_method
11546 # Command to use when deplibs_check_method == file_magic.
11547 file_magic_cmd=$lt_file_magic_cmd
11549 # Flag that allows shared libraries with undefined symbols to be built.
11550 allow_undefined_flag=$lt_allow_undefined_flag
11552 # Flag that forces no undefined symbols.
11553 no_undefined_flag=$lt_no_undefined_flag
11555 # Commands used to finish a libtool library installation in a directory.
11556 finish_cmds=$lt_finish_cmds
11558 # Same as above, but a single script fragment to be evaled but not shown.
11559 finish_eval=$lt_finish_eval
11561 # Take the output of nm and produce a listing of raw symbols and C names.
11562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11564 # Transform the output of nm in a proper C declaration
11565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11567 # Transform the output of nm in a C name address pair
11568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11570 # This is the shared library runtime path variable.
11571 runpath_var=$runpath_var
11573 # This is the shared library path variable.
11574 shlibpath_var=$shlibpath_var
11576 # Is shlibpath searched before the hard-coded library search path?
11577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11579 # How to hardcode a shared library path into an executable.
11580 hardcode_action=$hardcode_action
11582 # Whether we should hardcode library paths into libraries.
11583 hardcode_into_libs=$hardcode_into_libs
11585 # Flag to hardcode \$libdir into a binary during linking.
11586 # This must work even if \$libdir does not exist.
11587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11589 # If ld is used when linking, flag to hardcode \$libdir into
11590 # a binary during linking. This must work even if \$libdir does
11592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11594 # Whether we need a single -rpath flag with a separated argument.
11595 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11597 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11598 # resulting binary.
11599 hardcode_direct=$hardcode_direct
11601 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11602 # resulting binary.
11603 hardcode_minus_L=$hardcode_minus_L
11605 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11606 # the resulting binary.
11607 hardcode_shlibpath_var=$hardcode_shlibpath_var
11609 # Set to yes if building a shared library automatically hardcodes DIR into the library
11610 # and all subsequent libraries and executables linked against it.
11611 hardcode_automatic=$hardcode_automatic
11613 # Variables whose values should be saved in libtool wrapper scripts and
11614 # restored at relink time.
11615 variables_saved_for_relink="$variables_saved_for_relink"
11617 # Whether libtool must link a program against all its dependency libraries.
11618 link_all_deplibs=$link_all_deplibs
11620 # Compile-time system search path for libraries
11621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11623 # Run-time system search path for libraries
11624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11626 # Fix the shell variable \$srcfile for the compiler.
11627 fix_srcfile_path="$fix_srcfile_path"
11629 # Set to yes if exported symbols are required.
11630 always_export_symbols=$always_export_symbols
11632 # The commands to list exported symbols.
11633 export_symbols_cmds=$lt_export_symbols_cmds
11635 # The commands to extract the exported symbol list from a shared archive.
11636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11638 # Symbols that should not be listed in the preloaded symbols.
11639 exclude_expsyms=$lt_exclude_expsyms
11641 # Symbols that must always be exported.
11642 include_expsyms=$lt_include_expsyms
11644 # ### END LIBTOOL CONFIG
11651 cat <<\EOF >> "$cfgfile"
11653 # AIX sometimes has problems with the GCC collect2 program. For some
11654 # reason, if we set the COLLECT_NAMES environment variable, the problems
11655 # vanish in a puff of smoke.
11656 if test "X${COLLECT_NAMES+set}" != Xset; then
11658 export COLLECT_NAMES
11664 # We use sed instead of cat because bash on DJGPP gets confused if
11665 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11666 # text mode, it properly converts lines to CR/LF. This bash problem
11667 # is reportedly fixed, but why not run on old versions too?
11668 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11670 mv -f "$cfgfile" "$ofile" || \
11671 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11675 # If there is no Makefile yet, we rely on a make rule to execute
11676 # `config.status --recheck' to rerun these tests and create the
11677 # libtool script then.
11678 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11679 if test -f "$ltmain_in"; then
11680 test -f Makefile && make "$ltmain"
11686 ac_cpp='$CPP $CPPFLAGS'
11687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11694 # Check whether --with-tags was given.
11695 if test "${with_tags+set}" = set; then
11696 withval=$with_tags; tagnames="$withval"
11700 if test -f "$ltmain" && test -n "$tagnames"; then
11701 if test ! -f "${ofile}"; then
11702 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11703 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11706 if test -z "$LTCC"; then
11707 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11708 if test -z "$LTCC"; then
11709 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11710 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11713 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11716 if test -z "$LTCFLAGS"; then
11717 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11720 # Extract list of available tagged configurations in $ofile.
11721 # Note that this assumes the entire list is on one line.
11722 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11725 for tagname in $tagnames; do
11727 # Check whether tagname contains only valid characters
11728 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11730 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11731 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11732 { (exit 1); exit 1; }; }
11736 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11738 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11739 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11740 { (exit 1); exit 1; }; }
11743 # Update the list of available tags.
11744 if test -n "$tagname"; then
11745 echo appending configuration tag \"$tagname\" to $ofile
11749 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11750 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11751 (test "X$CXX" != "Xg++"))) ; then
11753 ac_cpp='$CXXCPP $CPPFLAGS'
11754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11761 archive_cmds_need_lc_CXX=no
11762 allow_undefined_flag_CXX=
11763 always_export_symbols_CXX=no
11764 archive_expsym_cmds_CXX=
11765 export_dynamic_flag_spec_CXX=
11766 hardcode_direct_CXX=no
11767 hardcode_libdir_flag_spec_CXX=
11768 hardcode_libdir_flag_spec_ld_CXX=
11769 hardcode_libdir_separator_CXX=
11770 hardcode_minus_L_CXX=no
11771 hardcode_shlibpath_var_CXX=unsupported
11772 hardcode_automatic_CXX=no
11774 module_expsym_cmds_CXX=
11775 link_all_deplibs_CXX=unknown
11776 old_archive_cmds_CXX=$old_archive_cmds
11777 no_undefined_flag_CXX=
11778 whole_archive_flag_spec_CXX=
11779 enable_shared_with_static_runtimes_CXX=no
11781 # Dependencies to place before and after the object being linked:
11782 predep_objects_CXX=
11783 postdep_objects_CXX=
11786 compiler_lib_search_path_CXX=
11788 # Source file extension for C++ test sources.
11791 # Object file extension for compiled C++ test sources.
11795 # Code to be used in simple compile tests
11796 lt_simple_compile_test_code="int some_variable = 0;\n"
11798 # Code to be used in simple link tests
11799 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11803 # If no C compiler was specified, use CC.
11806 # If no C compiler flags were specified, use CFLAGS.
11807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11809 # Allow CC to be a program name with arguments.
11813 # save warnings/boilerplate of simple test code
11814 ac_outfile=conftest.$ac_objext
11815 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11817 _lt_compiler_boilerplate=`cat conftest.err`
11820 ac_outfile=conftest.$ac_objext
11821 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11823 _lt_linker_boilerplate=`cat conftest.err`
11827 # Allow CC to be a program name with arguments.
11832 lt_save_with_gnu_ld=$with_gnu_ld
11833 lt_save_path_LD=$lt_cv_path_LD
11834 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11835 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11837 $as_unset lt_cv_prog_gnu_ld
11839 if test -n "${lt_cv_path_LDCXX+set}"; then
11840 lt_cv_path_LD=$lt_cv_path_LDCXX
11842 $as_unset lt_cv_path_LD
11844 test -z "${LDCXX+set}" || LD=$LDCXX
11848 for cc_temp in $compiler""; do
11850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11859 # We don't want -fno-exception wen compiling C++ code, so set the
11860 # no_builtin_flag separately
11861 if test "$GXX" = yes; then
11862 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11864 lt_prog_compiler_no_builtin_flag_CXX=
11867 if test "$GXX" = yes; then
11868 # Set up default GNU C++ configuration
11871 # Check whether --with-gnu-ld was given.
11872 if test "${with_gnu_ld+set}" = set; then
11873 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11879 if test "$GCC" = yes; then
11880 # Check if gcc -print-prog-name=ld gives a path.
11881 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11882 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11885 # gcc leaves a trailing carriage return which upsets mingw
11886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11891 # Accept absolute paths.
11893 re_direlt='/[^/][^/]*/\.\./'
11894 # Canonicalize the pathname of ld
11895 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11896 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11897 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11899 test -z "$LD" && LD="$ac_prog"
11902 # If it fails, then pretend we aren't using GCC.
11906 # If it is relative, then search for the first ld in PATH.
11907 with_gnu_ld=unknown
11910 elif test "$with_gnu_ld" = yes; then
11911 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11912 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11914 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11915 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11917 if test "${lt_cv_path_LD+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 if test -z "$LD"; then
11921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11922 for ac_dir in $PATH; do
11924 test -z "$ac_dir" && ac_dir=.
11925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11926 lt_cv_path_LD="$ac_dir/$ac_prog"
11927 # Check to see if the program is GNU ld. I'd rather use --version,
11928 # but apparently some variants of GNU ld only accept -v.
11929 # Break only if it was the GNU/non-GNU ld that we prefer.
11930 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11931 *GNU* | *'with BFD'*)
11932 test "$with_gnu_ld" != no && break
11935 test "$with_gnu_ld" != yes && break
11942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11946 LD="$lt_cv_path_LD"
11947 if test -n "$LD"; then
11948 { echo "$as_me:$LINENO: result: $LD" >&5
11949 echo "${ECHO_T}$LD" >&6; }
11951 { echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6; }
11954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11956 { (exit 1); exit 1; }; }
11957 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11963 case `$LD -v 2>&1 </dev/null` in
11964 *GNU* | *'with BFD'*)
11965 lt_cv_prog_gnu_ld=yes
11968 lt_cv_prog_gnu_ld=no
11972 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11973 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11974 with_gnu_ld=$lt_cv_prog_gnu_ld
11978 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11979 # archiving commands below assume that GNU ld is being used.
11980 if test "$with_gnu_ld" = yes; then
11981 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11982 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'
11984 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11987 # If archive_cmds runs LD, not CC, wlarc should be empty
11988 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11989 # investigate it a little bit more. (MM)
11992 # ancient GNU ld didn't support --whole-archive et. al.
11993 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11994 grep 'no-whole-archive' > /dev/null; then
11995 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11997 whole_archive_flag_spec_CXX=
12003 # A generic and very simple default shared library creation
12004 # command for GNU C++ for the case where it uses the native
12005 # linker, instead of GNU ld. If possible, this setting should
12006 # overridden to take advantage of the native linker features on
12007 # the platform it is being used on.
12008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12011 # Commands to make compiler produce verbose output that lists
12012 # what "hidden" libraries, object files and flags are used when
12013 # linking a shared library.
12014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12022 # PORTME: fill in a description of your system's C++ link characteristics
12023 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12028 # FIXME: insert proper C++ library support
12032 if test "$host_cpu" = ia64; then
12033 # On IA64, the linker does run time linking by default, so we don't
12034 # have to do anything special.
12035 aix_use_runtimelinking=no
12036 exp_sym_flag='-Bexport'
12039 aix_use_runtimelinking=no
12041 # Test if we are trying to use run time linking or normal
12042 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12043 # need to do runtime linking.
12044 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12045 for ld_flag in $LDFLAGS; do
12048 aix_use_runtimelinking=yes
12056 exp_sym_flag='-bexport'
12057 no_entry_flag='-bnoentry'
12060 # When large executables or shared objects are built, AIX ld can
12061 # have problems creating the table of contents. If linking a library
12062 # or program results in "error TOC overflow" add -mminimal-toc to
12063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12066 archive_cmds_CXX=''
12067 hardcode_direct_CXX=yes
12068 hardcode_libdir_separator_CXX=':'
12069 link_all_deplibs_CXX=yes
12071 if test "$GXX" = yes; then
12072 case $host_os in aix4.[012]|aix4.[012].*)
12073 # We only want to do this on AIX 4.2 and lower, the check
12074 # below for broken collect2 doesn't work under 4.3+
12075 collect2name=`${CC} -print-prog-name=collect2`
12076 if test -f "$collect2name" && \
12077 strings "$collect2name" | grep resolve_lib_name >/dev/null
12079 # We have reworked collect2
12080 hardcode_direct_CXX=yes
12082 # We have old collect2
12083 hardcode_direct_CXX=unsupported
12084 # It fails to find uninstalled libraries when the uninstalled
12085 # path is not listed in the libpath. Setting hardcode_minus_L
12086 # to unsupported forces relinking
12087 hardcode_minus_L_CXX=yes
12088 hardcode_libdir_flag_spec_CXX='-L$libdir'
12089 hardcode_libdir_separator_CXX=
12093 shared_flag='-shared'
12094 if test "$aix_use_runtimelinking" = yes; then
12095 shared_flag="$shared_flag "'${wl}-G'
12099 if test "$host_cpu" = ia64; then
12100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12101 # chokes on -Wl,-G. The following line is correct:
12104 if test "$aix_use_runtimelinking" = yes; then
12105 shared_flag='${wl}-G'
12107 shared_flag='${wl}-bM:SRE'
12112 # It seems that -bexpall does not export symbols beginning with
12113 # underscore (_), so it is better to generate a list of symbols to export.
12114 always_export_symbols_CXX=yes
12115 if test "$aix_use_runtimelinking" = yes; then
12116 # Warning - without using the other runtime loading flags (-brtl),
12117 # -berok will link without error, but may produce a broken library.
12118 allow_undefined_flag_CXX='-berok'
12119 # Determine the default libpath from the value encoded in an empty executable.
12120 cat >conftest.$ac_ext <<_ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_link") 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && {
12149 test -z "$ac_cxx_werror_flag" ||
12150 test ! -s conftest.err
12151 } && test -s conftest$ac_exeext &&
12152 $as_test_x conftest$ac_exeext; then
12154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12156 # Check for a 64-bit object if we didn't find anything.
12157 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167 conftest$ac_exeext conftest.$ac_ext
12168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12170 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12172 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"
12174 if test "$host_cpu" = ia64; then
12175 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12176 allow_undefined_flag_CXX="-z nodefs"
12177 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"
12179 # Determine the default libpath from the value encoded in an empty executable.
12180 cat >conftest.$ac_ext <<_ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_cxx_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest$ac_exeext &&
12212 $as_test_x conftest$ac_exeext; then
12214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12216 # Check for a 64-bit object if we didn't find anything.
12217 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12230 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12231 # Warning - without using the other run time loading flags,
12232 # -berok will link without error, but may produce a broken library.
12233 no_undefined_flag_CXX=' ${wl}-bernotok'
12234 allow_undefined_flag_CXX=' ${wl}-berok'
12235 # Exported symbols can be pulled into shared objects from archives
12236 whole_archive_flag_spec_CXX='$convenience'
12237 archive_cmds_need_lc_CXX=yes
12238 # This is similar to how AIX traditionally builds its shared libraries.
12239 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'
12245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12246 allow_undefined_flag_CXX=unsupported
12247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12248 # support --undefined. This deserves some investigation. FIXME
12249 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256 case $cc_basename in
12258 # FIXME: insert proper C++ library support
12264 cygwin* | mingw* | pw32*)
12265 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12266 # as there is no search path for DLLs.
12267 hardcode_libdir_flag_spec_CXX='-L$libdir'
12268 allow_undefined_flag_CXX=unsupported
12269 always_export_symbols_CXX=no
12270 enable_shared_with_static_runtimes_CXX=yes
12272 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12273 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'
12274 # If the export-symbols file already is a .def file (1st line
12275 # is EXPORTS), use it as is; otherwise, prepend...
12276 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12277 cp $export_symbols $output_objdir/$soname.def;
12279 echo EXPORTS > $output_objdir/$soname.def;
12280 cat $export_symbols >> $output_objdir/$soname.def;
12282 $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'
12287 darwin* | rhapsody*)
12289 rhapsody* | darwin1.[012])
12290 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12293 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12294 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12296 case ${MACOSX_DEPLOYMENT_TARGET} in
12298 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12301 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12307 archive_cmds_need_lc_CXX=no
12308 hardcode_direct_CXX=no
12309 hardcode_automatic_CXX=yes
12310 hardcode_shlibpath_var_CXX=unsupported
12311 whole_archive_flag_spec_CXX=''
12312 link_all_deplibs_CXX=yes
12314 if test "$GXX" = yes ; then
12315 lt_int_apple_cc_single_mod=no
12316 output_verbose_link_cmd='echo'
12317 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12318 lt_int_apple_cc_single_mod=yes
12320 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12321 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12323 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'
12325 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12326 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12327 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12328 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}'
12330 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}'
12332 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}'
12334 case $cc_basename in
12336 output_verbose_link_cmd='echo'
12337 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12338 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12339 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12340 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12341 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}'
12351 case $cc_basename in
12353 # FIXME: insert proper C++ library support
12357 # Green Hills C++ Compiler
12358 # FIXME: insert proper C++ library support
12362 # FIXME: insert proper C++ library support
12368 # C++ shared libraries reported to be fairly broken before switch to ELF
12372 archive_cmds_need_lc_CXX=no
12374 freebsd* | dragonfly*)
12375 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12382 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12383 hardcode_libdir_separator_CXX=:
12384 export_dynamic_flag_spec_CXX='${wl}-E'
12385 hardcode_direct_CXX=yes
12386 hardcode_minus_L_CXX=yes # Not in the search PATH,
12387 # but as the default
12388 # location of the library.
12390 case $cc_basename in
12392 # FIXME: insert proper C++ library support
12396 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'
12397 # Commands to make compiler produce verbose output that lists
12398 # what "hidden" libraries, object files and flags are used when
12399 # linking a shared library.
12401 # There doesn't appear to be a way to prevent this compiler from
12402 # explicitly linking system object files so we need to strip them
12403 # from the output so that they don't get included in the library
12405 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'
12408 if test "$GXX" = yes; then
12409 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'
12411 # FIXME: insert proper C++ library support
12418 if test $with_gnu_ld = no; then
12419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12420 hardcode_libdir_separator_CXX=:
12424 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12427 export_dynamic_flag_spec_CXX='${wl}-E'
12433 hardcode_direct_CXX=no
12434 hardcode_shlibpath_var_CXX=no
12437 hardcode_direct_CXX=yes
12438 hardcode_minus_L_CXX=yes # Not in the search PATH,
12439 # but as the default
12440 # location of the library.
12444 case $cc_basename in
12446 # FIXME: insert proper C++ library support
12452 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12455 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12458 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12465 # There doesn't appear to be a way to prevent this compiler from
12466 # explicitly linking system object files so we need to strip them
12467 # from the output so that they don't get included in the library
12469 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'
12472 if test "$GXX" = yes; then
12473 if test $with_gnu_ld = no; then
12476 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12479 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12482 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'
12487 # FIXME: insert proper C++ library support
12494 hardcode_direct_CXX=no
12495 hardcode_shlibpath_var_CXX=no
12496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12497 export_dynamic_flag_spec_CXX='${wl}-E'
12498 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12499 # Instead, shared libraries are loaded at an image base (0x10000000 by
12500 # default) and relocated if they conflict, which is a slow very memory
12501 # consuming and fragmenting process. To avoid this, we pick a random,
12502 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12503 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12504 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'
12505 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'
12508 case $cc_basename in
12511 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'
12513 # Archives containing C++ object files must be created using
12514 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12515 # necessary to make sure instantiated templates are included
12517 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12520 if test "$GXX" = yes; then
12521 if test "$with_gnu_ld" = no; then
12522 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'
12524 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'
12527 link_all_deplibs_CXX=yes
12530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12531 hardcode_libdir_separator_CXX=:
12533 linux* | k*bsd*-gnu)
12534 case $cc_basename in
12536 # Kuck and Associates, Inc. (KAI) C++ Compiler
12538 # KCC will only create a shared library if the output file
12539 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12540 # to its proper name (with version) after linking.
12541 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'
12542 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'
12543 # Commands to make compiler produce verbose output that lists
12544 # what "hidden" libraries, object files and flags are used when
12545 # linking a shared library.
12547 # There doesn't appear to be a way to prevent this compiler from
12548 # explicitly linking system object files so we need to strip them
12549 # from the output so that they don't get included in the library
12551 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'
12553 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12556 # Archives containing C++ object files must be created using
12557 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12558 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12563 # version 8.0 and above of icpc choke on multiply defined symbols
12564 # if we add $predep_objects and $postdep_objects, however 7.1 and
12565 # earlier do not add the objects themselves.
12566 case `$CC -V 2>&1` in
12568 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12569 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'
12571 *) # Version 8.0 or newer
12574 ia64*) tmp_idyn=' -i_dynamic';;
12576 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577 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'
12580 archive_cmds_need_lc_CXX=no
12581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12583 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12586 # Portland Group C++ compiler
12587 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12588 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'
12590 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12592 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'
12596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12597 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'
12599 runpath_var=LD_RUN_PATH
12600 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12601 hardcode_libdir_separator_CXX=:
12603 # Commands to make compiler produce verbose output that lists
12604 # what "hidden" libraries, object files and flags are used when
12605 # linking a shared library.
12607 # There doesn't appear to be a way to prevent this compiler from
12608 # explicitly linking system object files so we need to strip them
12609 # from the output so that they don't get included in the library
12611 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'
12616 # FIXME: insert proper C++ library support
12620 # FIXME: insert proper C++ library support
12624 case $cc_basename in
12626 # FIXME: insert proper C++ library support
12630 # FIXME: insert proper C++ library support
12635 netbsd* | netbsdelf*-gnu)
12636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12637 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12639 hardcode_libdir_flag_spec_CXX='-R$libdir'
12640 hardcode_direct_CXX=yes
12641 hardcode_shlibpath_var_CXX=no
12643 # Workaround some broken pre-1.5 toolchains
12644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12647 # C++ shared libraries are fairly broken
12651 hardcode_direct_CXX=yes
12652 hardcode_shlibpath_var_CXX=no
12653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12654 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12656 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12657 export_dynamic_flag_spec_CXX='${wl}-E'
12658 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12660 output_verbose_link_cmd='echo'
12663 case $cc_basename in
12665 # Kuck and Associates, Inc. (KAI) C++ Compiler
12667 # KCC will only create a shared library if the output file
12668 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12669 # to its proper name (with version) after linking.
12670 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'
12672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12673 hardcode_libdir_separator_CXX=:
12675 # Archives containing C++ object files must be created using
12676 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12681 # Rational C++ 2.4.1
12682 # FIXME: insert proper C++ library support
12686 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12687 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'
12689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12690 hardcode_libdir_separator_CXX=:
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12696 # There doesn't appear to be a way to prevent this compiler from
12697 # explicitly linking system object files so we need to strip them
12698 # from the output so that they don't get included in the library
12700 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'
12703 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12704 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12705 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'
12707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12708 hardcode_libdir_separator_CXX=:
12710 # Commands to make compiler produce verbose output that lists
12711 # what "hidden" libraries, object files and flags are used when
12712 # linking a shared library.
12713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12716 # FIXME: insert proper C++ library support
12723 case $cc_basename in
12725 # Kuck and Associates, Inc. (KAI) C++ Compiler
12727 # KCC will only create a shared library if the output file
12728 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12729 # to its proper name (with version) after linking.
12730 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'
12732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12733 hardcode_libdir_separator_CXX=:
12735 # Archives containing C++ object files must be created using
12736 # the KAI C++ compiler.
12737 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12740 # Rational C++ 2.4.1
12741 # FIXME: insert proper C++ library support
12745 allow_undefined_flag_CXX=' -expect_unresolved \*'
12746 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'
12747 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12748 echo "-hidden">> $lib.exp~
12749 $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~
12752 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12753 hardcode_libdir_separator_CXX=:
12755 # Commands to make compiler produce verbose output that lists
12756 # what "hidden" libraries, object files and flags are used when
12757 # linking a shared library.
12759 # There doesn't appear to be a way to prevent this compiler from
12760 # explicitly linking system object files so we need to strip them
12761 # from the output so that they don't get included in the library
12763 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'
12766 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12767 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12768 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'
12770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12771 hardcode_libdir_separator_CXX=:
12773 # Commands to make compiler produce verbose output that lists
12774 # what "hidden" libraries, object files and flags are used when
12775 # linking a shared library.
12776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12779 # FIXME: insert proper C++ library support
12786 # FIXME: insert proper C++ library support
12790 case $cc_basename in
12793 # FIXME: insert proper C++ library support
12798 # FIXME: insert proper C++ library support
12802 # FIXME: insert proper C++ library support
12808 case $cc_basename in
12810 # Sun C++ 4.2, 5.x and Centerline C++
12811 archive_cmds_need_lc_CXX=yes
12812 no_undefined_flag_CXX=' -zdefs'
12813 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12814 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12815 $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'
12817 hardcode_libdir_flag_spec_CXX='-R$libdir'
12818 hardcode_shlibpath_var_CXX=no
12820 solaris2.[0-5] | solaris2.[0-5].*) ;;
12822 # The C++ compiler is used as linker so we must use $wl
12823 # flag to pass the commands to the underlying system
12824 # linker. We must also pass each convience library through
12825 # to the system linker between allextract/defaultextract.
12826 # The C++ compiler will combine linker options so we
12827 # cannot just pass the convience library names through
12829 # Supported since Solaris 2.6 (maybe 2.5.1?)
12830 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12833 link_all_deplibs_CXX=yes
12835 output_verbose_link_cmd='echo'
12837 # Archives containing C++ object files must be created using
12838 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12839 # necessary to make sure instantiated templates are included
12841 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12844 # Green Hills C++ Compiler
12845 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12847 # The C++ compiler must be used to create the archive.
12848 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12851 # GNU C++ compiler with Solaris linker
12852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12853 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12854 if $CC --version | grep -v '^2\.7' > /dev/null; then
12855 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12856 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12857 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12859 # Commands to make compiler produce verbose output that lists
12860 # what "hidden" libraries, object files and flags are used when
12861 # linking a shared library.
12862 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12864 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12866 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12867 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12868 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12873 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12876 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12882 no_undefined_flag_CXX='${wl}-z,text'
12883 archive_cmds_need_lc_CXX=no
12884 hardcode_shlibpath_var_CXX=no
12885 runpath_var='LD_RUN_PATH'
12887 case $cc_basename in
12889 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12890 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12893 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12894 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12898 sysv5* | sco3.2v5* | sco5v6*)
12899 # Note: We can NOT use -z defs as we might desire, because we do not
12900 # link with -lc, and that would cause any symbols used from libc to
12901 # always be unresolved, which means just about no library would
12902 # ever link correctly. If we're not using GNU ld we use -z text
12903 # though, which does catch some bad symbols but isn't as heavy-handed
12905 # For security reasons, it is highly recommended that you always
12906 # use absolute paths for naming shared libraries, and exclude the
12907 # DT_RUNPATH tag from executables and libraries. But doing so
12908 # requires that you compile everything twice, which is a pain.
12909 # So that behaviour is only enabled if SCOABSPATH is set to a
12910 # non-empty value in the environment. Most likely only useful for
12911 # creating official distributions of packages.
12912 # This is a hack until libtool officially supports absolute path
12913 # names for shared libraries.
12914 no_undefined_flag_CXX='${wl}-z,text'
12915 allow_undefined_flag_CXX='${wl}-z,nodefs'
12916 archive_cmds_need_lc_CXX=no
12917 hardcode_shlibpath_var_CXX=no
12918 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12919 hardcode_libdir_separator_CXX=':'
12920 link_all_deplibs_CXX=yes
12921 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12922 runpath_var='LD_RUN_PATH'
12924 case $cc_basename in
12926 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12927 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12930 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12936 case $cc_basename in
12938 # NonStop-UX NCC 3.20
12939 # FIXME: insert proper C++ library support
12943 # FIXME: insert proper C++ library support
12949 # FIXME: insert proper C++ library support
12953 # FIXME: insert proper C++ library support
12957 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12958 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12959 test "$ld_shlibs_CXX" = no && can_build_shared=no
12965 cat > conftest.$ac_ext <<EOF
12969 Foo (void) { a = 0; }
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; then
12980 # Parse the compiler output and extract the necessary
12981 # objects, libraries and library flags.
12983 # Sentinel used to keep track of whether or not we are before
12984 # the conftest object file.
12985 pre_test_object_deps_done=no
12987 # The `*' in the case matches for architectures that use `case' in
12988 # $output_verbose_cmd can trigger glob expansion during the loop
12989 # eval without this substitution.
12990 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12992 for p in `eval $output_verbose_link_cmd`; do
12996 # Some compilers place space between "-{L,R}" and the path.
12997 # Remove the space.
12998 if test $p = "-L" \
12999 || test $p = "-R"; then
13006 if test "$pre_test_object_deps_done" = no; then
13009 # Internal compiler library paths should come after those
13010 # provided the user. The postdeps already come after the
13011 # user supplied libs so there is no need to process them.
13012 if test -z "$compiler_lib_search_path_CXX"; then
13013 compiler_lib_search_path_CXX="${prev}${p}"
13015 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13018 # The "-l" case would never come before the object being
13019 # linked, so don't bother handling this case.
13022 if test -z "$postdeps_CXX"; then
13023 postdeps_CXX="${prev}${p}"
13025 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13031 # This assumes that the test object file only shows up
13032 # once in the compiler output.
13033 if test "$p" = "conftest.$objext"; then
13034 pre_test_object_deps_done=yes
13038 if test "$pre_test_object_deps_done" = no; then
13039 if test -z "$predep_objects_CXX"; then
13040 predep_objects_CXX="$p"
13042 predep_objects_CXX="$predep_objects_CXX $p"
13045 if test -z "$postdep_objects_CXX"; then
13046 postdep_objects_CXX="$p"
13048 postdep_objects_CXX="$postdep_objects_CXX $p"
13053 *) ;; # Ignore the rest.
13061 echo "libtool.m4: error: problem compiling CXX test program"
13064 $rm -f confest.$objext
13066 # PORTME: override above test on systems where it is broken
13069 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13070 # hack all around it, let's just trust "g++" to DTRT.
13071 predep_objects_CXX=
13072 postdep_objects_CXX=
13077 case $cc_basename in
13079 # Adding this requires a known-good setup of shared libraries for
13080 # Sun compiler versions before 5.6, else PIC objects from an old
13081 # archive will be linked into the output, leading to subtle bugs.
13082 postdeps_CXX='-lCstd -lCrun'
13089 case " $postdeps_CXX " in
13090 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13093 lt_prog_compiler_wl_CXX=
13094 lt_prog_compiler_pic_CXX=
13095 lt_prog_compiler_static_CXX=
13097 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13098 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13100 # C++ specific cases for pic, static, wl, etc.
13101 if test "$GXX" = yes; then
13102 lt_prog_compiler_wl_CXX='-Wl,'
13103 lt_prog_compiler_static_CXX='-static'
13107 # All AIX code is PIC.
13108 if test "$host_cpu" = ia64; then
13109 # AIX 5 now supports IA64 processor
13110 lt_prog_compiler_static_CXX='-Bstatic'
13114 # FIXME: we need at least 68020 code to build shared libraries, but
13115 # adding the `-m68020' flag to GCC prevents building anything better,
13117 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13119 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13120 # PIC is the default for these OSes.
13122 mingw* | os2* | pw32*)
13123 # This hack is so that the source file can tell whether it is being
13124 # built for inclusion in a dll (and should export symbols for example).
13125 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13127 darwin* | rhapsody*)
13128 # PIC is the default on this platform
13129 # Common symbols not allowed in MH_DYLIB files
13130 lt_prog_compiler_pic_CXX='-fno-common'
13133 # DJGPP does not support shared libraries at all
13134 lt_prog_compiler_pic_CXX=
13137 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13138 # Instead, we relocate shared libraries at runtime.
13141 if test -d /usr/nec; then
13142 lt_prog_compiler_pic_CXX=-Kconform_pic
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13152 lt_prog_compiler_pic_CXX='-fPIC'
13157 lt_prog_compiler_pic_CXX='-fPIC'
13163 # All AIX code is PIC.
13164 if test "$host_cpu" = ia64; then
13165 # AIX 5 now supports IA64 processor
13166 lt_prog_compiler_static_CXX='-Bstatic'
13168 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13172 case $cc_basename in
13174 # Green Hills C++ Compiler
13175 # _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"
13180 # PIC is the default on this platform
13181 # Common symbols not allowed in MH_DYLIB files
13182 case $cc_basename in
13184 lt_prog_compiler_pic_CXX='-qnocommon'
13185 lt_prog_compiler_wl_CXX='-Wl,'
13190 case $cc_basename in
13192 lt_prog_compiler_pic_CXX='-KPIC'
13195 # Green Hills C++ Compiler
13196 lt_prog_compiler_pic_CXX='-pic'
13202 freebsd* | dragonfly*)
13203 # FreeBSD uses GNU C++
13205 hpux9* | hpux10* | hpux11*)
13206 case $cc_basename in
13208 lt_prog_compiler_wl_CXX='-Wl,'
13209 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13210 if test "$host_cpu" != ia64; then
13211 lt_prog_compiler_pic_CXX='+Z'
13215 lt_prog_compiler_wl_CXX='-Wl,'
13216 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13222 lt_prog_compiler_pic_CXX='+Z'
13231 # This is c89, which is MS Visual C++ (no shared libs)
13232 # Anyone wants to do a port?
13234 irix5* | irix6* | nonstopux*)
13235 case $cc_basename in
13237 lt_prog_compiler_wl_CXX='-Wl,'
13238 lt_prog_compiler_static_CXX='-non_shared'
13239 # CC pic flag -KPIC is the default.
13245 linux* | k*bsd*-gnu)
13246 case $cc_basename in
13249 lt_prog_compiler_wl_CXX='--backend -Wl,'
13250 lt_prog_compiler_pic_CXX='-fPIC'
13254 lt_prog_compiler_wl_CXX='-Wl,'
13255 lt_prog_compiler_pic_CXX='-KPIC'
13256 lt_prog_compiler_static_CXX='-static'
13259 # Portland Group C++ compiler.
13260 lt_prog_compiler_wl_CXX='-Wl,'
13261 lt_prog_compiler_pic_CXX='-fpic'
13262 lt_prog_compiler_static_CXX='-Bstatic'
13266 # Make sure the PIC flag is empty. It appears that all Alpha
13267 # Linux and Compaq Tru64 Unix objects are PIC.
13268 lt_prog_compiler_pic_CXX=
13269 lt_prog_compiler_static_CXX='-non_shared'
13280 case $cc_basename in
13282 lt_prog_compiler_pic_CXX='-W c,exportall'
13288 netbsd* | netbsdelf*-gnu)
13290 osf3* | osf4* | osf5*)
13291 case $cc_basename in
13293 lt_prog_compiler_wl_CXX='--backend -Wl,'
13296 # Rational C++ 2.4.1
13297 lt_prog_compiler_pic_CXX='-pic'
13300 # Digital/Compaq C++
13301 lt_prog_compiler_wl_CXX='-Wl,'
13302 # Make sure the PIC flag is empty. It appears that all Alpha
13303 # Linux and Compaq Tru64 Unix objects are PIC.
13304 lt_prog_compiler_pic_CXX=
13305 lt_prog_compiler_static_CXX='-non_shared'
13314 case $cc_basename in
13316 # Sun C++ 4.2, 5.x and Centerline C++
13317 lt_prog_compiler_pic_CXX='-KPIC'
13318 lt_prog_compiler_static_CXX='-Bstatic'
13319 lt_prog_compiler_wl_CXX='-Qoption ld '
13322 # Green Hills C++ Compiler
13323 lt_prog_compiler_pic_CXX='-PIC'
13330 case $cc_basename in
13333 lt_prog_compiler_pic_CXX='-pic'
13334 lt_prog_compiler_static_CXX='-Bstatic'
13338 lt_prog_compiler_pic_CXX='-pic'
13345 case $cc_basename in
13347 # NonStop-UX NCC 3.20
13348 lt_prog_compiler_pic_CXX='-KPIC'
13354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13355 case $cc_basename in
13357 lt_prog_compiler_wl_CXX='-Wl,'
13358 lt_prog_compiler_pic_CXX='-KPIC'
13359 lt_prog_compiler_static_CXX='-Bstatic'
13366 lt_prog_compiler_can_build_shared_CXX=no
13371 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13372 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13375 # Check to make sure the PIC flag actually works.
13377 if test -n "$lt_prog_compiler_pic_CXX"; then
13379 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13381 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 lt_prog_compiler_pic_works_CXX=no
13385 ac_outfile=conftest.$ac_objext
13386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13388 # Insert the option either (1) after the last *FLAGS variable, or
13389 # (2) before a word containing "conftest.", or (3) at the end.
13390 # Note that $ac_compile itself does not contain backslashes and begins
13391 # with a dollar sign (not a hyphen), so the echo should work correctly.
13392 # The option is referenced via a variable to avoid confusing sed.
13393 lt_compile=`echo "$ac_compile" | $SED \
13394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396 -e 's:$: $lt_compiler_flag:'`
13397 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13398 (eval "$lt_compile" 2>conftest.err)
13400 cat conftest.err >&5
13401 echo "$as_me:__oline__: \$? = $ac_status" >&5
13402 if (exit $ac_status) && test -s "$ac_outfile"; then
13403 # The compiler can only warn and ignore the option if not recognized
13404 # So say no if there are warnings other than the usual output.
13405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13408 lt_prog_compiler_pic_works_CXX=yes
13414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13415 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13417 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13418 case $lt_prog_compiler_pic_CXX in
13420 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13423 lt_prog_compiler_pic_CXX=
13424 lt_prog_compiler_can_build_shared_CXX=no
13429 # For platforms which do not support PIC, -DPIC is meaningless:
13431 lt_prog_compiler_pic_CXX=
13434 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13439 # Check to make sure the static flag actually works.
13441 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13442 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13443 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13444 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 lt_prog_compiler_static_works_CXX=no
13448 save_LDFLAGS="$LDFLAGS"
13449 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13450 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13452 # The linker can only warn and ignore the option if not recognized
13453 # So say no if there are warnings
13454 if test -s conftest.err; then
13455 # Append any errors to the config.log.
13456 cat conftest.err 1>&5
13457 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459 if diff conftest.exp conftest.er2 >/dev/null; then
13460 lt_prog_compiler_static_works_CXX=yes
13463 lt_prog_compiler_static_works_CXX=yes
13467 LDFLAGS="$save_LDFLAGS"
13470 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13471 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13473 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13476 lt_prog_compiler_static_CXX=
13480 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13481 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13482 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 lt_cv_prog_compiler_c_o_CXX=no
13486 $rm -r conftest 2>/dev/null
13490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13492 lt_compiler_flag="-o out/conftest2.$ac_objext"
13493 # Insert the option either (1) after the last *FLAGS variable, or
13494 # (2) before a word containing "conftest.", or (3) at the end.
13495 # Note that $ac_compile itself does not contain backslashes and begins
13496 # with a dollar sign (not a hyphen), so the echo should work correctly.
13497 lt_compile=`echo "$ac_compile" | $SED \
13498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13500 -e 's:$: $lt_compiler_flag:'`
13501 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13502 (eval "$lt_compile" 2>out/conftest.err)
13504 cat out/conftest.err >&5
13505 echo "$as_me:__oline__: \$? = $ac_status" >&5
13506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13508 # The compiler can only warn and ignore the option if not recognized
13509 # So say no if there are warnings
13510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13513 lt_cv_prog_compiler_c_o_CXX=yes
13518 # SGI C++ compiler will create directory out/ii_files/ for
13519 # template instantiation
13520 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13521 $rm out/* && rmdir out
13527 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13531 hard_links="nottested"
13532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13533 # do not overwrite the value of need_locks provided by the user
13534 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 ln conftest.a conftest.b 2>&5 || hard_links=no
13541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13542 { echo "$as_me:$LINENO: result: $hard_links" >&5
13543 echo "${ECHO_T}$hard_links" >&6; }
13544 if test "$hard_links" = no; then
13545 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13553 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13559 # If we're using GNU nm, then we don't want the "-C" option.
13560 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13561 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13562 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'
13564 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'
13568 export_symbols_cmds_CXX="$ltdll_cmds"
13571 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'
13573 linux* | k*bsd*-gnu)
13574 link_all_deplibs_CXX=no
13577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13581 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13582 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13583 test "$ld_shlibs_CXX" = no && can_build_shared=no
13586 # Do we need to explicitly link libc?
13588 case "x$archive_cmds_need_lc_CXX" in
13590 # Assume -lc should be added
13591 archive_cmds_need_lc_CXX=yes
13593 if test "$enable_shared" = yes && test "$GCC" = yes; then
13594 case $archive_cmds_CXX in
13596 # FIXME: we may have to deal with multi-command sequences.
13599 # Test whether the compiler implicitly links with -lc since on some
13600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13601 # to ld, don't add -lc before -lgcc.
13602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } 2>conftest.err; then
13614 libobjs=conftest.$ac_objext
13616 wl=$lt_prog_compiler_wl_CXX
13617 pic_flag=$lt_prog_compiler_pic_CXX
13623 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13624 allow_undefined_flag_CXX=
13625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13626 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }
13631 archive_cmds_need_lc_CXX=no
13633 archive_cmds_need_lc_CXX=yes
13635 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13637 cat conftest.err 1>&5
13640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13641 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13650 library_names_spec=
13651 libname_spec='lib$name'
13655 postuninstall_cmds=
13659 shlibpath_overrides_runpath=unknown
13661 dynamic_linker="$host_os ld.so"
13662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13663 if test "$GCC" = yes; then
13664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13666 # if the path contains ";" then we assume it to be the separator
13667 # otherwise default to the standard path separator (i.e. ":") - it is
13668 # assumed that no part of a normal pathname contains ";" but that should
13669 # okay in the real world where ";" in dirpaths is itself problematic.
13670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13677 need_lib_prefix=unknown
13678 hardcode_into_libs=no
13680 # when you set need_version to no, make sure it does not cause -set_version
13681 # flags to be left without arguments
13682 need_version=unknown
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13688 shlibpath_var=LIBPATH
13690 # AIX 3 has no versioning support, so we append a major version to the name.
13691 soname_spec='${libname}${release}${shared_ext}$major'
13698 hardcode_into_libs=yes
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 supports IA64
13701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13702 shlibpath_var=LD_LIBRARY_PATH
13704 # With GCC up to 2.95.x, collect2 would create an import file
13705 # for dependence libraries. The import file would start with
13706 # the line `#! .'. This would cause the generated library to
13707 # depend on `.', always an invalid library. This was fixed in
13708 # development snapshots of GCC prior to 3.0.
13710 aix4 | aix4.[01] | aix4.[01].*)
13711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13716 can_build_shared=no
13720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13721 # soname into executable. Probably we can add versioning support to
13722 # collect2, so additional links can be useful in future.
13723 if test "$aix_use_runtimelinking" = yes; then
13724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13725 # instead of lib<name>.a to let people know that these are not
13726 # typical AIX shared libraries.
13727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13729 # We preserve .a as extension for shared libraries through AIX4.2
13730 # and later when we are not doing run time linking.
13731 library_names_spec='${libname}${release}.a $libname.a'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13734 shlibpath_var=LIBPATH
13739 library_names_spec='$libname.ixlibrary $libname.a'
13740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13741 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'
13745 library_names_spec='${libname}${shared_ext}'
13746 dynamic_linker="$host_os ld.so"
13747 shlibpath_var=LIBRARY_PATH
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13759 # the default ld.so.conf also contains /usr/contrib/lib and
13760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13761 # libtool to hard-code these into programs
13764 cygwin* | mingw* | pw32*)
13765 version_type=windows
13770 case $GCC,$host_os in
13771 yes,cygwin* | yes,mingw* | yes,pw32*)
13772 library_names_spec='$libname.dll.a'
13773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13774 postinstall_cmds='base_file=`basename \${file}`~
13775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13776 dldir=$destdir/`dirname \$dlpath`~
13777 test -d \$dldir || mkdir -p \$dldir~
13778 $install_prog $dir/$dlname \$dldir/$dlname~
13779 chmod a+x \$dldir/$dlname'
13780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13781 dlpath=$dir/\$dldll~
13783 shlibpath_overrides_runpath=yes
13787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13792 # MinGW DLLs use traditional 'lib' prefix
13793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13796 # It is most probably a Windows format PATH printed by
13797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13798 # path with ; separators, and with drive letters. We can handle the
13799 # drive letters (cygwin fileutils understands them), so leave them,
13800 # especially as we might pass files found there to a mingw objdump,
13801 # which wouldn't understand a cygwinified path. Ahh.
13802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13808 # pw32 DLLs use 'pw' prefix rather than 'lib'
13809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13818 dynamic_linker='Win32 ld.exe'
13819 # FIXME: first we should search . and the directory the executable is in
13823 darwin* | rhapsody*)
13824 dynamic_linker="$host_os dyld"
13825 version_type=darwin
13828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13829 soname_spec='${libname}${release}${major}$shared_ext'
13830 shlibpath_overrides_runpath=yes
13831 shlibpath_var=DYLD_LIBRARY_PATH
13832 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13834 if test "$GCC" = yes; then
13835 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 shlibpath_var=LD_LIBRARY_PATH
13855 freebsd* | dragonfly*)
13856 # DragonFly does not have aout. When/if they implement a new
13857 # versioning mechanism, adjust this.
13858 if test -x /usr/bin/objformat; then
13859 objformat=`/usr/bin/objformat`
13862 freebsd[123]*) objformat=aout ;;
13863 *) objformat=elf ;;
13866 version_type=freebsd-$objformat
13867 case $version_type in
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13878 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=yes
13883 freebsd3.[01]* | freebsdelf3.[01]*)
13884 shlibpath_overrides_runpath=yes
13885 hardcode_into_libs=yes
13887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13889 shlibpath_overrides_runpath=no
13890 hardcode_into_libs=yes
13892 freebsd*) # from 4.6 on
13893 shlibpath_overrides_runpath=yes
13894 hardcode_into_libs=yes
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13904 soname_spec='${libname}${release}${shared_ext}$major'
13905 shlibpath_var=LD_LIBRARY_PATH
13906 hardcode_into_libs=yes
13909 hpux9* | hpux10* | hpux11*)
13910 # Give a soname corresponding to the major version so that dld.sl refuses to
13911 # link against other versions.
13918 hardcode_into_libs=yes
13919 dynamic_linker="$host_os dld.so"
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 if test "X$HPUX_IA64_MODE" = X32; then
13925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13933 hardcode_into_libs=yes
13934 dynamic_linker="$host_os dld.sl"
13935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13944 dynamic_linker="$host_os dld.sl"
13945 shlibpath_var=SHLIB_PATH
13946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13951 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13952 postinstall_cmds='chmod 555 $lib'
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=no
13964 hardcode_into_libs=yes
13967 irix5* | irix6* | nonstopux*)
13969 nonstopux*) version_type=nonstopux ;;
13971 if test "$lt_cv_prog_gnu_ld" = yes; then
13979 soname_spec='${libname}${release}${shared_ext}$major'
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13982 irix5* | nonstopux*)
13983 libsuff= shlibsuff=
13986 case $LD in # libtool.m4 will add one of these switches to LD
13987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13988 libsuff= shlibsuff= libmagic=32-bit;;
13989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13990 libsuff=32 shlibsuff=N32 libmagic=N32;;
13991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13993 *) libsuff= shlibsuff= libmagic=never-match;;
13997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13998 shlibpath_overrides_runpath=no
13999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14001 hardcode_into_libs=yes
14004 # No shared lib support for Linux oldld, aout, or coff.
14005 linux*oldld* | linux*aout* | linux*coff*)
14009 # This must be Linux ELF.
14010 linux* | k*bsd*-gnu)
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=no
14019 # This implies no fast_install, which is unacceptable.
14020 # Some rework will be needed to allow for fast_install
14021 # before this can be enabled.
14022 hardcode_into_libs=yes
14024 # Append ld.so.conf contents to the search path
14025 if test -f /etc/ld.so.conf; then
14026 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14030 # We used to test for /lib/ld.so.1 and disable shared libraries on
14031 # powerpc, because MkLinux only supported shared libraries with the
14032 # GNU dynamic linker. Since this was broken with cross compilers,
14033 # most powerpc-linux boxes support dynamic linking these days and
14034 # people can always --disable-shared, the test was removed, and we
14035 # assume the GNU/Linux dynamic linker is in use.
14036 dynamic_linker='GNU/Linux ld.so'
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 shlibpath_var=LD_LIBRARY_PATH
14046 shlibpath_overrides_runpath=no
14047 hardcode_into_libs=yes
14048 dynamic_linker='NetBSD ld.elf_so'
14055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14058 dynamic_linker='NetBSD (a.out) ld.so'
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 dynamic_linker='NetBSD ld.elf_so'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 shlibpath_var=LD_LIBRARY_PATH
14073 shlibpath_overrides_runpath=yes
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=yes
14088 sys_lib_dlsearch_path_spec="/usr/lib"
14090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14093 *) need_version=no ;;
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14100 openbsd2.[89] | openbsd2.[89].*)
14101 shlibpath_overrides_runpath=no
14104 shlibpath_overrides_runpath=yes
14108 shlibpath_overrides_runpath=yes
14113 libname_spec='$name'
14116 library_names_spec='$libname${shared_ext} $libname.a'
14117 dynamic_linker='OS/2 ld.exe'
14118 shlibpath_var=LIBPATH
14121 osf3* | osf4* | osf5*)
14125 soname_spec='${libname}${release}${shared_ext}$major'
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=yes
14140 hardcode_into_libs=yes
14141 # ldd complains unless libraries are executable
14142 postinstall_cmds='chmod +x $lib'
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 shlibpath_overrides_runpath=yes
14151 if test "$with_gnu_ld" = yes; then
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 shlibpath_var=LD_LIBRARY_PATH
14162 case $host_vendor in
14164 shlibpath_overrides_runpath=no
14166 export_dynamic_flag_spec='${wl}-Blargedynsym'
14167 runpath_var=LD_RUN_PATH
14175 shlibpath_overrides_runpath=no
14176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14182 if test -d /usr/nec ;then
14184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14185 soname_spec='$libname${shared_ext}.$major'
14186 shlibpath_var=LD_LIBRARY_PATH
14190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14191 version_type=freebsd-elf
14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14195 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 hardcode_into_libs=yes
14198 if test "$with_gnu_ld" = yes; then
14199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14200 shlibpath_overrides_runpath=no
14202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14203 shlibpath_overrides_runpath=yes
14206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14210 sys_lib_dlsearch_path_spec='/usr/lib'
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 shlibpath_var=LD_LIBRARY_PATH
14224 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14225 echo "${ECHO_T}$dynamic_linker" >&6; }
14226 test "$dynamic_linker" = no && can_build_shared=no
14228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14229 if test "$GCC" = yes; then
14230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14233 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14234 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14235 hardcode_action_CXX=
14236 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14237 test -n "$runpath_var_CXX" || \
14238 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14240 # We can hardcode non-existant directories.
14241 if test "$hardcode_direct_CXX" != no &&
14242 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14243 # have to relink, otherwise we might link with an installed library
14244 # when we should be linking with a yet-to-be-installed one
14245 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14246 test "$hardcode_minus_L_CXX" != no; then
14247 # Linking always hardcodes the temporary library directory.
14248 hardcode_action_CXX=relink
14250 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14251 hardcode_action_CXX=immediate
14254 # We cannot hardcode anything, or else we can only hardcode existing
14256 hardcode_action_CXX=unsupported
14258 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14259 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14261 if test "$hardcode_action_CXX" = relink; then
14262 # Fast installation is not supported
14263 enable_fast_install=no
14264 elif test "$shlibpath_overrides_runpath" = yes ||
14265 test "$enable_shared" = no; then
14266 # Fast installation is not necessary
14267 enable_fast_install=needless
14271 # The else clause should only fire when bootstrapping the
14272 # libtool distribution, otherwise you forgot to ship ltmain.sh
14273 # with your package, and you will get complaints that there are
14274 # no rules to generate ltmain.sh.
14275 if test -f "$ltmain"; then
14276 # See if we are running on zsh, and set the options which allow our commands through
14277 # without removal of \ escapes.
14278 if test -n "${ZSH_VERSION+set}" ; then
14279 setopt NO_GLOB_SUBST
14281 # Now quote all the things that may contain metacharacters while being
14282 # careful not to overquote the AC_SUBSTed values. We take copies of the
14283 # variables and quote the copies for generation of the libtool script.
14284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14288 deplibs_check_method reload_flag reload_cmds need_locks \
14289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14290 lt_cv_sys_global_symbol_to_c_name_address \
14291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14292 old_postinstall_cmds old_postuninstall_cmds \
14296 lt_prog_compiler_wl_CXX \
14297 lt_prog_compiler_pic_CXX \
14298 lt_prog_compiler_static_CXX \
14299 lt_prog_compiler_no_builtin_flag_CXX \
14300 export_dynamic_flag_spec_CXX \
14301 thread_safe_flag_spec_CXX \
14302 whole_archive_flag_spec_CXX \
14303 enable_shared_with_static_runtimes_CXX \
14304 old_archive_cmds_CXX \
14305 old_archive_from_new_cmds_CXX \
14306 predep_objects_CXX \
14307 postdep_objects_CXX \
14310 compiler_lib_search_path_CXX \
14312 archive_expsym_cmds_CXX \
14313 postinstall_cmds_CXX \
14314 postuninstall_cmds_CXX \
14315 old_archive_from_expsyms_cmds_CXX \
14316 allow_undefined_flag_CXX \
14317 no_undefined_flag_CXX \
14318 export_symbols_cmds_CXX \
14319 hardcode_libdir_flag_spec_CXX \
14320 hardcode_libdir_flag_spec_ld_CXX \
14321 hardcode_libdir_separator_CXX \
14322 hardcode_automatic_CXX \
14324 module_expsym_cmds_CXX \
14325 lt_cv_prog_compiler_c_o_CXX \
14326 exclude_expsyms_CXX \
14327 include_expsyms_CXX; do
14330 old_archive_cmds_CXX | \
14331 old_archive_from_new_cmds_CXX | \
14332 archive_cmds_CXX | \
14333 archive_expsym_cmds_CXX | \
14334 module_cmds_CXX | \
14335 module_expsym_cmds_CXX | \
14336 old_archive_from_expsyms_cmds_CXX | \
14337 export_symbols_cmds_CXX | \
14338 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14339 postinstall_cmds | postuninstall_cmds | \
14340 old_postinstall_cmds | old_postuninstall_cmds | \
14341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14342 # Double-quote double-evaled strings.
14343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14352 *'\$0 --fallback-echo"')
14353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14359 cat <<__EOF__ >> "$cfgfile"
14360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14364 # Shell to use when invoking shell scripts.
14367 # Whether or not to build shared libraries.
14368 build_libtool_libs=$enable_shared
14370 # Whether or not to build static libraries.
14371 build_old_libs=$enable_static
14373 # Whether or not to add -lc for building shared libraries.
14374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14376 # Whether or not to disallow shared libs when runtime libs are static
14377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14379 # Whether or not to optimize for fast installation.
14380 fast_install=$enable_fast_install
14383 host_alias=$host_alias
14387 # The build system.
14388 build_alias=$build_alias
14392 # An echo program that does not interpret backslashes.
14397 AR_FLAGS=$lt_AR_FLAGS
14402 # LTCC compiler flags.
14403 LTCFLAGS=$lt_LTCFLAGS
14405 # A language-specific compiler.
14406 CC=$lt_compiler_CXX
14408 # Is the compiler the GNU C compiler?
14414 # The linker used to build libraries.
14417 # Whether we need hard or soft links.
14420 # A BSD-compatible nm program.
14423 # A symbol stripping program
14426 # Used to examine libraries when file_magic_cmd begins "file"
14427 MAGIC_CMD=$MAGIC_CMD
14429 # Used on cygwin: DLL creation program.
14432 # Used on cygwin: object dumper.
14435 # Used on cygwin: assembler.
14438 # The name of the directory that contains temporary libtool files.
14441 # How to create reloadable object files.
14442 reload_flag=$lt_reload_flag
14443 reload_cmds=$lt_reload_cmds
14445 # How to pass a linker flag through the compiler.
14446 wl=$lt_lt_prog_compiler_wl_CXX
14448 # Object file suffix (normally "o").
14449 objext="$ac_objext"
14451 # Old archive suffix (normally "a").
14454 # Shared library suffix (normally ".so").
14455 shrext_cmds='$shrext_cmds'
14457 # Executable file suffix (normally "").
14460 # Additional compiler flags for building library objects.
14461 pic_flag=$lt_lt_prog_compiler_pic_CXX
14464 # What is the maximum length of a command?
14465 max_cmd_len=$lt_cv_sys_max_cmd_len
14467 # Does compiler simultaneously support -c and -o options?
14468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14470 # Must we lock files when doing compilation?
14471 need_locks=$lt_need_locks
14473 # Do we need the lib prefix for modules?
14474 need_lib_prefix=$need_lib_prefix
14476 # Do we need a version for libraries?
14477 need_version=$need_version
14479 # Whether dlopen is supported.
14480 dlopen_support=$enable_dlopen
14482 # Whether dlopen of programs is supported.
14483 dlopen_self=$enable_dlopen_self
14485 # Whether dlopen of statically linked programs is supported.
14486 dlopen_self_static=$enable_dlopen_self_static
14488 # Compiler flag to prevent dynamic linking.
14489 link_static_flag=$lt_lt_prog_compiler_static_CXX
14491 # Compiler flag to turn off builtin functions.
14492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14494 # Compiler flag to allow reflexive dlopens.
14495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14497 # Compiler flag to generate shared objects directly from archives.
14498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14500 # Compiler flag to generate thread-safe objects.
14501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14503 # Library versioning type.
14504 version_type=$version_type
14506 # Format of library name prefix.
14507 libname_spec=$lt_libname_spec
14509 # List of archive names. First name is the real one, the rest are links.
14510 # The last name is the one that the linker finds with -lNAME.
14511 library_names_spec=$lt_library_names_spec
14513 # The coded name of the library, if different from the real name.
14514 soname_spec=$lt_soname_spec
14516 # Commands used to build and install an old-style archive.
14518 old_archive_cmds=$lt_old_archive_cmds_CXX
14519 old_postinstall_cmds=$lt_old_postinstall_cmds
14520 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14522 # Create an old-style archive from a shared archive.
14523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14525 # Create a temporary old-style archive to link instead of a shared archive.
14526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14528 # Commands used to build and install a shared archive.
14529 archive_cmds=$lt_archive_cmds_CXX
14530 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14531 postinstall_cmds=$lt_postinstall_cmds
14532 postuninstall_cmds=$lt_postuninstall_cmds
14534 # Commands used to build a loadable module (assumed same as above if empty)
14535 module_cmds=$lt_module_cmds_CXX
14536 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14538 # Commands to strip libraries.
14539 old_striplib=$lt_old_striplib
14540 striplib=$lt_striplib
14542 # Dependencies to place before the objects being linked to create a
14544 predep_objects=$lt_predep_objects_CXX
14546 # Dependencies to place after the objects being linked to create a
14548 postdep_objects=$lt_postdep_objects_CXX
14550 # Dependencies to place before the objects being linked to create a
14552 predeps=$lt_predeps_CXX
14554 # Dependencies to place after the objects being linked to create a
14556 postdeps=$lt_postdeps_CXX
14558 # The library search path used internally by the compiler when linking
14559 # a shared library.
14560 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14562 # Method to check whether dependent libraries are shared objects.
14563 deplibs_check_method=$lt_deplibs_check_method
14565 # Command to use when deplibs_check_method == file_magic.
14566 file_magic_cmd=$lt_file_magic_cmd
14568 # Flag that allows shared libraries with undefined symbols to be built.
14569 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14571 # Flag that forces no undefined symbols.
14572 no_undefined_flag=$lt_no_undefined_flag_CXX
14574 # Commands used to finish a libtool library installation in a directory.
14575 finish_cmds=$lt_finish_cmds
14577 # Same as above, but a single script fragment to be evaled but not shown.
14578 finish_eval=$lt_finish_eval
14580 # Take the output of nm and produce a listing of raw symbols and C names.
14581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14583 # Transform the output of nm in a proper C declaration
14584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14586 # Transform the output of nm in a C name address pair
14587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14589 # This is the shared library runtime path variable.
14590 runpath_var=$runpath_var
14592 # This is the shared library path variable.
14593 shlibpath_var=$shlibpath_var
14595 # Is shlibpath searched before the hard-coded library search path?
14596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14598 # How to hardcode a shared library path into an executable.
14599 hardcode_action=$hardcode_action_CXX
14601 # Whether we should hardcode library paths into libraries.
14602 hardcode_into_libs=$hardcode_into_libs
14604 # Flag to hardcode \$libdir into a binary during linking.
14605 # This must work even if \$libdir does not exist.
14606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14608 # If ld is used when linking, flag to hardcode \$libdir into
14609 # a binary during linking. This must work even if \$libdir does
14611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14613 # Whether we need a single -rpath flag with a separated argument.
14614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14617 # resulting binary.
14618 hardcode_direct=$hardcode_direct_CXX
14620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14621 # resulting binary.
14622 hardcode_minus_L=$hardcode_minus_L_CXX
14624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14625 # the resulting binary.
14626 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14628 # Set to yes if building a shared library automatically hardcodes DIR into the library
14629 # and all subsequent libraries and executables linked against it.
14630 hardcode_automatic=$hardcode_automatic_CXX
14632 # Variables whose values should be saved in libtool wrapper scripts and
14633 # restored at relink time.
14634 variables_saved_for_relink="$variables_saved_for_relink"
14636 # Whether libtool must link a program against all its dependency libraries.
14637 link_all_deplibs=$link_all_deplibs_CXX
14639 # Compile-time system search path for libraries
14640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14642 # Run-time system search path for libraries
14643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14645 # Fix the shell variable \$srcfile for the compiler.
14646 fix_srcfile_path="$fix_srcfile_path_CXX"
14648 # Set to yes if exported symbols are required.
14649 always_export_symbols=$always_export_symbols_CXX
14651 # The commands to list exported symbols.
14652 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14654 # The commands to extract the exported symbol list from a shared archive.
14655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14657 # Symbols that should not be listed in the preloaded symbols.
14658 exclude_expsyms=$lt_exclude_expsyms_CXX
14660 # Symbols that must always be exported.
14661 include_expsyms=$lt_include_expsyms_CXX
14663 # ### END LIBTOOL TAG CONFIG: $tagname
14669 # If there is no Makefile yet, we rely on a make rule to execute
14670 # `config.status --recheck' to rerun these tests and create the
14671 # libtool script then.
14672 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14673 if test -f "$ltmain_in"; then
14674 test -f Makefile && make "$ltmain"
14680 ac_cpp='$CPP $CPPFLAGS'
14681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14689 with_gnu_ldcxx=$with_gnu_ld
14690 with_gnu_ld=$lt_save_with_gnu_ld
14691 lt_cv_path_LDCXX=$lt_cv_path_LD
14692 lt_cv_path_LD=$lt_save_path_LD
14693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14702 if test -n "$F77" && test "X$F77" != "Xno"; then
14705 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14706 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14710 archive_cmds_need_lc_F77=no
14711 allow_undefined_flag_F77=
14712 always_export_symbols_F77=no
14713 archive_expsym_cmds_F77=
14714 export_dynamic_flag_spec_F77=
14715 hardcode_direct_F77=no
14716 hardcode_libdir_flag_spec_F77=
14717 hardcode_libdir_flag_spec_ld_F77=
14718 hardcode_libdir_separator_F77=
14719 hardcode_minus_L_F77=no
14720 hardcode_automatic_F77=no
14722 module_expsym_cmds_F77=
14723 link_all_deplibs_F77=unknown
14724 old_archive_cmds_F77=$old_archive_cmds
14725 no_undefined_flag_F77=
14726 whole_archive_flag_spec_F77=
14727 enable_shared_with_static_runtimes_F77=no
14729 # Source file extension for f77 test sources.
14732 # Object file extension for compiled f77 test sources.
14736 # Code to be used in simple compile tests
14737 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14739 # Code to be used in simple link tests
14740 lt_simple_link_test_code=" program t\n end\n"
14742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14744 # If no C compiler was specified, use CC.
14747 # If no C compiler flags were specified, use CFLAGS.
14748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14750 # Allow CC to be a program name with arguments.
14754 # save warnings/boilerplate of simple test code
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14758 _lt_compiler_boilerplate=`cat conftest.err`
14761 ac_outfile=conftest.$ac_objext
14762 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14764 _lt_linker_boilerplate=`cat conftest.err`
14768 # Allow CC to be a program name with arguments.
14773 for cc_temp in $compiler""; do
14775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14784 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14785 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14786 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14787 echo "${ECHO_T}$can_build_shared" >&6; }
14789 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14790 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14791 test "$can_build_shared" = "no" && enable_shared=no
14793 # On AIX, shared libraries and static libraries use the same namespace, and
14794 # are all built from PIC.
14797 test "$enable_shared" = yes && enable_static=no
14798 if test -n "$RANLIB"; then
14799 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14800 postinstall_cmds='$RANLIB $lib'
14804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14805 test "$enable_shared" = yes && enable_static=no
14809 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14810 echo "${ECHO_T}$enable_shared" >&6; }
14812 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14813 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14814 # Make sure either enable_shared or enable_static is yes.
14815 test "$enable_shared" = yes || enable_static=yes
14816 { echo "$as_me:$LINENO: result: $enable_static" >&5
14817 echo "${ECHO_T}$enable_static" >&6; }
14822 lt_prog_compiler_wl_F77=
14823 lt_prog_compiler_pic_F77=
14824 lt_prog_compiler_static_F77=
14826 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14829 if test "$GCC" = yes; then
14830 lt_prog_compiler_wl_F77='-Wl,'
14831 lt_prog_compiler_static_F77='-static'
14835 # All AIX code is PIC.
14836 if test "$host_cpu" = ia64; then
14837 # AIX 5 now supports IA64 processor
14838 lt_prog_compiler_static_F77='-Bstatic'
14843 # FIXME: we need at least 68020 code to build shared libraries, but
14844 # adding the `-m68020' flag to GCC prevents building anything better,
14846 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14849 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14850 # PIC is the default for these OSes.
14853 mingw* | pw32* | os2*)
14854 # This hack is so that the source file can tell whether it is being
14855 # built for inclusion in a dll (and should export symbols for example).
14856 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14859 darwin* | rhapsody*)
14860 # PIC is the default on this platform
14861 # Common symbols not allowed in MH_DYLIB files
14862 lt_prog_compiler_pic_F77='-fno-common'
14866 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14867 # Instead, we relocate shared libraries at runtime.
14871 # Just because we use GCC doesn't mean we suddenly get shared libraries
14872 # on systems that don't support them.
14873 lt_prog_compiler_can_build_shared_F77=no
14878 if test -d /usr/nec; then
14879 lt_prog_compiler_pic_F77=-Kconform_pic
14884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885 # not for PA HP-UX.
14891 lt_prog_compiler_pic_F77='-fPIC'
14897 lt_prog_compiler_pic_F77='-fPIC'
14901 # PORTME Check for flag to pass linker flags through the system compiler.
14904 lt_prog_compiler_wl_F77='-Wl,'
14905 if test "$host_cpu" = ia64; then
14906 # AIX 5 now supports IA64 processor
14907 lt_prog_compiler_static_F77='-Bstatic'
14909 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14913 # PIC is the default on this platform
14914 # Common symbols not allowed in MH_DYLIB files
14915 case $cc_basename in
14917 lt_prog_compiler_pic_F77='-qnocommon'
14918 lt_prog_compiler_wl_F77='-Wl,'
14923 mingw* | pw32* | os2*)
14924 # This hack is so that the source file can tell whether it is being
14925 # built for inclusion in a dll (and should export symbols for example).
14926 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14929 hpux9* | hpux10* | hpux11*)
14930 lt_prog_compiler_wl_F77='-Wl,'
14931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932 # not for PA HP-UX.
14938 lt_prog_compiler_pic_F77='+Z'
14941 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14942 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14945 irix5* | irix6* | nonstopux*)
14946 lt_prog_compiler_wl_F77='-Wl,'
14947 # PIC (with -KPIC) is the default.
14948 lt_prog_compiler_static_F77='-non_shared'
14952 lt_prog_compiler_pic_F77='-KPIC'
14953 lt_prog_compiler_static_F77='-Bstatic'
14956 linux* | k*bsd*-gnu)
14957 case $cc_basename in
14959 lt_prog_compiler_wl_F77='-Wl,'
14960 lt_prog_compiler_pic_F77='-KPIC'
14961 lt_prog_compiler_static_F77='-static'
14963 pgcc* | pgf77* | pgf90* | pgf95*)
14964 # Portland Group compilers (*not* the Pentium gcc compiler,
14965 # which looks to be a dead project)
14966 lt_prog_compiler_wl_F77='-Wl,'
14967 lt_prog_compiler_pic_F77='-fpic'
14968 lt_prog_compiler_static_F77='-Bstatic'
14971 lt_prog_compiler_wl_F77='-Wl,'
14972 # All Alpha code is PIC.
14973 lt_prog_compiler_static_F77='-non_shared'
14978 osf3* | osf4* | osf5*)
14979 lt_prog_compiler_wl_F77='-Wl,'
14980 # All OSF/1 code is PIC.
14981 lt_prog_compiler_static_F77='-non_shared'
14985 lt_prog_compiler_pic_F77='-KPIC'
14986 lt_prog_compiler_static_F77='-Bstatic'
14987 case $cc_basename in
14988 f77* | f90* | f95*)
14989 lt_prog_compiler_wl_F77='-Qoption ld ';;
14991 lt_prog_compiler_wl_F77='-Wl,';;
14996 lt_prog_compiler_wl_F77='-Qoption ld '
14997 lt_prog_compiler_pic_F77='-PIC'
14998 lt_prog_compiler_static_F77='-Bstatic'
15001 sysv4 | sysv4.2uw2* | sysv4.3*)
15002 lt_prog_compiler_wl_F77='-Wl,'
15003 lt_prog_compiler_pic_F77='-KPIC'
15004 lt_prog_compiler_static_F77='-Bstatic'
15008 if test -d /usr/nec ;then
15009 lt_prog_compiler_pic_F77='-Kconform_pic'
15010 lt_prog_compiler_static_F77='-Bstatic'
15014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15015 lt_prog_compiler_wl_F77='-Wl,'
15016 lt_prog_compiler_pic_F77='-KPIC'
15017 lt_prog_compiler_static_F77='-Bstatic'
15021 lt_prog_compiler_wl_F77='-Wl,'
15022 lt_prog_compiler_can_build_shared_F77=no
15026 lt_prog_compiler_pic_F77='-pic'
15027 lt_prog_compiler_static_F77='-Bstatic'
15031 lt_prog_compiler_can_build_shared_F77=no
15036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15037 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15040 # Check to make sure the PIC flag actually works.
15042 if test -n "$lt_prog_compiler_pic_F77"; then
15044 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15046 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 lt_prog_compiler_pic_works_F77=no
15050 ac_outfile=conftest.$ac_objext
15051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15053 # Insert the option either (1) after the last *FLAGS variable, or
15054 # (2) before a word containing "conftest.", or (3) at the end.
15055 # Note that $ac_compile itself does not contain backslashes and begins
15056 # with a dollar sign (not a hyphen), so the echo should work correctly.
15057 # The option is referenced via a variable to avoid confusing sed.
15058 lt_compile=`echo "$ac_compile" | $SED \
15059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
15062 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15063 (eval "$lt_compile" 2>conftest.err)
15065 cat conftest.err >&5
15066 echo "$as_me:__oline__: \$? = $ac_status" >&5
15067 if (exit $ac_status) && test -s "$ac_outfile"; then
15068 # The compiler can only warn and ignore the option if not recognized
15069 # So say no if there are warnings other than the usual output.
15070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15073 lt_prog_compiler_pic_works_F77=yes
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15082 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15083 case $lt_prog_compiler_pic_F77 in
15085 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15088 lt_prog_compiler_pic_F77=
15089 lt_prog_compiler_can_build_shared_F77=no
15094 # For platforms which do not support PIC, -DPIC is meaningless:
15096 lt_prog_compiler_pic_F77=
15099 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15104 # Check to make sure the static flag actually works.
15106 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15107 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15108 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15109 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 lt_prog_compiler_static_works_F77=no
15113 save_LDFLAGS="$LDFLAGS"
15114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15115 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15117 # The linker can only warn and ignore the option if not recognized
15118 # So say no if there are warnings
15119 if test -s conftest.err; then
15120 # Append any errors to the config.log.
15121 cat conftest.err 1>&5
15122 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15124 if diff conftest.exp conftest.er2 >/dev/null; then
15125 lt_prog_compiler_static_works_F77=yes
15128 lt_prog_compiler_static_works_F77=yes
15132 LDFLAGS="$save_LDFLAGS"
15135 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15136 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15138 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15141 lt_prog_compiler_static_F77=
15145 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15147 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 lt_cv_prog_compiler_c_o_F77=no
15151 $rm -r conftest 2>/dev/null
15155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15157 lt_compiler_flag="-o out/conftest2.$ac_objext"
15158 # Insert the option either (1) after the last *FLAGS variable, or
15159 # (2) before a word containing "conftest.", or (3) at the end.
15160 # Note that $ac_compile itself does not contain backslashes and begins
15161 # with a dollar sign (not a hyphen), so the echo should work correctly.
15162 lt_compile=`echo "$ac_compile" | $SED \
15163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15165 -e 's:$: $lt_compiler_flag:'`
15166 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15167 (eval "$lt_compile" 2>out/conftest.err)
15169 cat out/conftest.err >&5
15170 echo "$as_me:__oline__: \$? = $ac_status" >&5
15171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15173 # The compiler can only warn and ignore the option if not recognized
15174 # So say no if there are warnings
15175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15178 lt_cv_prog_compiler_c_o_F77=yes
15183 # SGI C++ compiler will create directory out/ii_files/ for
15184 # template instantiation
15185 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15186 $rm out/* && rmdir out
15192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15193 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15196 hard_links="nottested"
15197 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15198 # do not overwrite the value of need_locks provided by the user
15199 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15200 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15205 ln conftest.a conftest.b 2>&5 || hard_links=no
15206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15207 { echo "$as_me:$LINENO: result: $hard_links" >&5
15208 echo "${ECHO_T}$hard_links" >&6; }
15209 if test "$hard_links" = no; then
15210 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15211 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15218 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15219 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15222 allow_undefined_flag_F77=
15223 enable_shared_with_static_runtimes_F77=no
15225 archive_expsym_cmds_F77=
15226 old_archive_From_new_cmds_F77=
15227 old_archive_from_expsyms_cmds_F77=
15228 export_dynamic_flag_spec_F77=
15229 whole_archive_flag_spec_F77=
15230 thread_safe_flag_spec_F77=
15231 hardcode_libdir_flag_spec_F77=
15232 hardcode_libdir_flag_spec_ld_F77=
15233 hardcode_libdir_separator_F77=
15234 hardcode_direct_F77=no
15235 hardcode_minus_L_F77=no
15236 hardcode_shlibpath_var_F77=unsupported
15237 link_all_deplibs_F77=unknown
15238 hardcode_automatic_F77=no
15240 module_expsym_cmds_F77=
15241 always_export_symbols_F77=no
15242 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15243 # include_expsyms should be a list of space-separated symbols to be *always*
15244 # included in the symbol list
15245 include_expsyms_F77=
15246 # exclude_expsyms can be an extended regexp of symbols to exclude
15247 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15248 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15249 # as well as any symbol that contains `d'.
15250 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15251 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15252 # platforms (ab)use it in PIC code, but their linkers get confused if
15253 # the symbol is explicitly referenced. Since portable code cannot
15254 # rely on this symbol name, it's probably fine to never include it in
15255 # preloaded symbol tables.
15256 extract_expsyms_cmds=
15257 # Just being paranoid about ensuring that cc_basename is set.
15258 for cc_temp in $compiler""; do
15260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15269 cygwin* | mingw* | pw32*)
15270 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15271 # When not using gcc, we currently assume that we are using
15272 # Microsoft Visual C++.
15273 if test "$GCC" != yes; then
15278 # we just hope/assume this is gcc and not c89 (= MSVC++)
15287 if test "$with_gnu_ld" = yes; then
15288 # If archive_cmds runs LD, not CC, wlarc should be empty
15291 # Set some defaults for GNU ld with shared library support. These
15292 # are reset later if shared libraries are not supported. Putting them
15293 # here allows them to be overridden if necessary.
15294 runpath_var=LD_RUN_PATH
15295 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15296 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15297 # ancient GNU ld didn't support --whole-archive et. al.
15298 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15299 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15301 whole_archive_flag_spec_F77=
15303 supports_anon_versioning=no
15304 case `$LD -v 2>/dev/null` in
15305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15308 *\ 2.11.*) ;; # other 2.11 versions
15309 *) supports_anon_versioning=yes ;;
15312 # See if GNU ld supports shared libraries.
15314 aix3* | aix4* | aix5*)
15315 # On AIX/PPC, the GNU linker is very broken
15316 if test "$host_cpu" != ia64; then
15320 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15321 *** to be unable to reliably create shared libraries on AIX.
15322 *** Therefore, libtool is disabling shared libraries support. If you
15323 *** really care for shared libraries, you may want to modify your PATH
15324 *** so that a non-GNU linker is found, and then restart.
15331 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)'
15332 hardcode_libdir_flag_spec_F77='-L$libdir'
15333 hardcode_minus_L_F77=yes
15335 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15336 # that the semantics of dynamic libraries on AmigaOS, at least up
15337 # to version 4, is to share data among multiple programs linked
15338 # with the same dynamic library. Since this doesn't match the
15339 # behavior of shared libraries on other platforms, we can't use
15345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15346 allow_undefined_flag_F77=unsupported
15347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15348 # support --undefined. This deserves some investigation. FIXME
15349 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15355 cygwin* | mingw* | pw32*)
15356 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15357 # as there is no search path for DLLs.
15358 hardcode_libdir_flag_spec_F77='-L$libdir'
15359 allow_undefined_flag_F77=unsupported
15360 always_export_symbols_F77=no
15361 enable_shared_with_static_runtimes_F77=yes
15362 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15364 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15365 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15366 # If the export-symbols file already is a .def file (1st line
15367 # is EXPORTS), use it as is; otherwise, prepend...
15368 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15369 cp $export_symbols $output_objdir/$soname.def;
15371 echo EXPORTS > $output_objdir/$soname.def;
15372 cat $export_symbols >> $output_objdir/$soname.def;
15374 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15381 hardcode_direct_F77=no
15382 hardcode_shlibpath_var_F77=no
15383 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15384 export_dynamic_flag_spec_F77='${wl}-E'
15385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15386 # Instead, shared libraries are loaded at an image base (0x10000000 by
15387 # default) and relocated if they conflict, which is a slow very memory
15388 # consuming and fragmenting process. To avoid this, we pick a random,
15389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15391 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'
15392 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'
15395 linux* | k*bsd*-gnu)
15396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15398 case $cc_basename,$host_cpu in
15399 pgcc*) # Portland Group C compiler
15400 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'
15401 tmp_addflag=' $pic_flag'
15403 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15404 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'
15405 tmp_addflag=' $pic_flag -Mnomain' ;;
15406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15407 tmp_addflag=' -i_dynamic' ;;
15408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15409 tmp_addflag=' -i_dynamic -nofor_main' ;;
15410 ifc* | ifort*) # Intel Fortran compiler
15411 tmp_addflag=' -nofor_main' ;;
15413 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 if test $supports_anon_versioning = yes; then
15416 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418 $echo "local: *; };" >> $output_objdir/$libname.ver~
15419 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15421 link_all_deplibs_F77=no
15427 netbsd* | netbsdelf*-gnu)
15428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15429 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15438 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15443 *** create shared libraries on Solaris systems. Therefore, libtool
15444 *** is disabling shared libraries support. We urge you to upgrade GNU
15445 *** binutils to release 2.9.1 or newer. Another option is to modify
15446 *** your PATH or compiler configuration so that the native linker is
15447 *** used, and then restart.
15450 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15451 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15452 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15459 case `$LD -v 2>&1` in
15460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15465 *** reliably create shared libraries on SCO systems. Therefore, libtool
15466 *** is disabling shared libraries support. We urge you to upgrade GNU
15467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15468 *** your PATH or compiler configuration so that the native linker is
15469 *** used, and then restart.
15474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15475 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15476 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15477 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15486 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15488 hardcode_direct_F77=yes
15489 hardcode_shlibpath_var_F77=no
15493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15502 if test "$ld_shlibs_F77" = no; then
15504 hardcode_libdir_flag_spec_F77=
15505 export_dynamic_flag_spec_F77=
15506 whole_archive_flag_spec_F77=
15509 # PORTME fill in a description of your system's linker (not GNU ld)
15512 allow_undefined_flag_F77=unsupported
15513 always_export_symbols_F77=yes
15514 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'
15515 # Note: this linker hardcodes the directories in LIBPATH if there
15516 # are no directories specified by -L.
15517 hardcode_minus_L_F77=yes
15518 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15519 # Neither direct hardcoding nor static linking is supported with a
15521 hardcode_direct_F77=unsupported
15526 if test "$host_cpu" = ia64; then
15527 # On IA64, the linker does run time linking by default, so we don't
15528 # have to do anything special.
15529 aix_use_runtimelinking=no
15530 exp_sym_flag='-Bexport'
15533 # If we're using GNU nm, then we don't want the "-C" option.
15534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15535 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15536 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'
15538 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'
15540 aix_use_runtimelinking=no
15542 # Test if we are trying to use run time linking or normal
15543 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15544 # need to do runtime linking.
15545 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15546 for ld_flag in $LDFLAGS; do
15547 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15548 aix_use_runtimelinking=yes
15555 exp_sym_flag='-bexport'
15556 no_entry_flag='-bnoentry'
15559 # When large executables or shared objects are built, AIX ld can
15560 # have problems creating the table of contents. If linking a library
15561 # or program results in "error TOC overflow" add -mminimal-toc to
15562 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15563 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15565 archive_cmds_F77=''
15566 hardcode_direct_F77=yes
15567 hardcode_libdir_separator_F77=':'
15568 link_all_deplibs_F77=yes
15570 if test "$GCC" = yes; then
15571 case $host_os in aix4.[012]|aix4.[012].*)
15572 # We only want to do this on AIX 4.2 and lower, the check
15573 # below for broken collect2 doesn't work under 4.3+
15574 collect2name=`${CC} -print-prog-name=collect2`
15575 if test -f "$collect2name" && \
15576 strings "$collect2name" | grep resolve_lib_name >/dev/null
15578 # We have reworked collect2
15579 hardcode_direct_F77=yes
15581 # We have old collect2
15582 hardcode_direct_F77=unsupported
15583 # It fails to find uninstalled libraries when the uninstalled
15584 # path is not listed in the libpath. Setting hardcode_minus_L
15585 # to unsupported forces relinking
15586 hardcode_minus_L_F77=yes
15587 hardcode_libdir_flag_spec_F77='-L$libdir'
15588 hardcode_libdir_separator_F77=
15592 shared_flag='-shared'
15593 if test "$aix_use_runtimelinking" = yes; then
15594 shared_flag="$shared_flag "'${wl}-G'
15598 if test "$host_cpu" = ia64; then
15599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15600 # chokes on -Wl,-G. The following line is correct:
15603 if test "$aix_use_runtimelinking" = yes; then
15604 shared_flag='${wl}-G'
15606 shared_flag='${wl}-bM:SRE'
15611 # It seems that -bexpall does not export symbols beginning with
15612 # underscore (_), so it is better to generate a list of symbols to export.
15613 always_export_symbols_F77=yes
15614 if test "$aix_use_runtimelinking" = yes; then
15615 # Warning - without using the other runtime loading flags (-brtl),
15616 # -berok will link without error, but may produce a broken library.
15617 allow_undefined_flag_F77='-berok'
15618 # Determine the default libpath from the value encoded in an empty executable.
15619 cat >conftest.$ac_ext <<_ACEOF
15624 rm -f conftest.$ac_objext conftest$ac_exeext
15625 if { (ac_try="$ac_link"
15626 case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_link") 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } && {
15638 test -z "$ac_f77_werror_flag" ||
15639 test ! -s conftest.err
15640 } && test -s conftest$ac_exeext &&
15641 $as_test_x conftest$ac_exeext; then
15643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15645 # Check for a 64-bit object if we didn't find anything.
15646 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15656 conftest$ac_exeext conftest.$ac_ext
15657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15659 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15660 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"
15662 if test "$host_cpu" = ia64; then
15663 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15664 allow_undefined_flag_F77="-z nodefs"
15665 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"
15667 # Determine the default libpath from the value encoded in an empty executable.
15668 cat >conftest.$ac_ext <<_ACEOF
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (ac_try="$ac_link"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_link") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_f77_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest$ac_exeext &&
15690 $as_test_x conftest$ac_exeext; then
15692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15694 # Check for a 64-bit object if we didn't find anything.
15695 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15705 conftest$ac_exeext conftest.$ac_ext
15706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15708 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15709 # Warning - without using the other run time loading flags,
15710 # -berok will link without error, but may produce a broken library.
15711 no_undefined_flag_F77=' ${wl}-bernotok'
15712 allow_undefined_flag_F77=' ${wl}-berok'
15713 # Exported symbols can be pulled into shared objects from archives
15714 whole_archive_flag_spec_F77='$convenience'
15715 archive_cmds_need_lc_F77=yes
15716 # This is similar to how AIX traditionally builds its shared libraries.
15717 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'
15723 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)'
15724 hardcode_libdir_flag_spec_F77='-L$libdir'
15725 hardcode_minus_L_F77=yes
15726 # see comment about different semantics on the GNU ld section
15731 export_dynamic_flag_spec_F77=-rdynamic
15734 cygwin* | mingw* | pw32*)
15735 # When not using gcc, we currently assume that we are using
15736 # Microsoft Visual C++.
15737 # hardcode_libdir_flag_spec is actually meaningless, as there is
15738 # no search path for DLLs.
15739 hardcode_libdir_flag_spec_F77=' '
15740 allow_undefined_flag_F77=unsupported
15741 # Tell ltmain to make .lib files, not .a files.
15743 # Tell ltmain to make .dll files, not .so files.
15745 # FIXME: Setting linknames here is a bad hack.
15746 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15747 # The linker will automatically build a .lib file if we build a DLL.
15748 old_archive_From_new_cmds_F77='true'
15749 # FIXME: Should let the user specify the lib program.
15750 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15751 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15752 enable_shared_with_static_runtimes_F77=yes
15755 darwin* | rhapsody*)
15757 rhapsody* | darwin1.[012])
15758 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15762 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15764 case ${MACOSX_DEPLOYMENT_TARGET} in
15766 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15769 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15775 archive_cmds_need_lc_F77=no
15776 hardcode_direct_F77=no
15777 hardcode_automatic_F77=yes
15778 hardcode_shlibpath_var_F77=unsupported
15779 whole_archive_flag_spec_F77=''
15780 link_all_deplibs_F77=yes
15781 if test "$GCC" = yes ; then
15782 output_verbose_link_cmd='echo'
15783 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15784 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15786 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}'
15787 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}'
15789 case $cc_basename in
15791 output_verbose_link_cmd='echo'
15792 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15793 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15795 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15796 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}'
15806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15807 hardcode_libdir_flag_spec_F77='-L$libdir'
15808 hardcode_shlibpath_var_F77=no
15815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15816 # support. Future versions do this automatically, but an explicit c++rt0.o
15817 # does not break anything, and helps significantly (at the cost of a little
15820 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15821 hardcode_libdir_flag_spec_F77='-R$libdir'
15822 hardcode_direct_F77=yes
15823 hardcode_shlibpath_var_F77=no
15826 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15828 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_direct_F77=yes
15830 hardcode_minus_L_F77=yes
15831 hardcode_shlibpath_var_F77=no
15834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15835 freebsd* | dragonfly*)
15836 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15837 hardcode_libdir_flag_spec_F77='-R$libdir'
15838 hardcode_direct_F77=yes
15839 hardcode_shlibpath_var_F77=no
15843 if test "$GCC" = yes; then
15844 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'
15846 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'
15848 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15849 hardcode_libdir_separator_F77=:
15850 hardcode_direct_F77=yes
15852 # hardcode_minus_L: Not really in the search PATH,
15853 # but as the default location of the library.
15854 hardcode_minus_L_F77=yes
15855 export_dynamic_flag_spec_F77='${wl}-E'
15859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15860 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15862 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15864 if test "$with_gnu_ld" = no; then
15865 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15866 hardcode_libdir_separator_F77=:
15868 hardcode_direct_F77=yes
15869 export_dynamic_flag_spec_F77='${wl}-E'
15871 # hardcode_minus_L: Not really in the search PATH,
15872 # but as the default location of the library.
15873 hardcode_minus_L_F77=yes
15878 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15881 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15893 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15903 if test "$with_gnu_ld" = no; then
15904 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15905 hardcode_libdir_separator_F77=:
15909 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15910 hardcode_direct_F77=no
15911 hardcode_shlibpath_var_F77=no
15914 hardcode_direct_F77=yes
15915 export_dynamic_flag_spec_F77='${wl}-E'
15917 # hardcode_minus_L: Not really in the search PATH,
15918 # but as the default location of the library.
15919 hardcode_minus_L_F77=yes
15925 irix5* | irix6* | nonstopux*)
15926 if test "$GCC" = yes; then
15927 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'
15929 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'
15930 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15933 hardcode_libdir_separator_F77=:
15934 link_all_deplibs_F77=yes
15937 netbsd* | netbsdelf*-gnu)
15938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15939 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15941 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15943 hardcode_libdir_flag_spec_F77='-R$libdir'
15944 hardcode_direct_F77=yes
15945 hardcode_shlibpath_var_F77=no
15949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15950 hardcode_direct_F77=yes
15951 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15952 hardcode_libdir_separator_F77=:
15953 hardcode_shlibpath_var_F77=no
15957 hardcode_direct_F77=yes
15958 hardcode_shlibpath_var_F77=no
15959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15960 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15961 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15962 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15963 export_dynamic_flag_spec_F77='${wl}-E'
15966 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15967 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15968 hardcode_libdir_flag_spec_F77='-R$libdir'
15971 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15972 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15979 hardcode_libdir_flag_spec_F77='-L$libdir'
15980 hardcode_minus_L_F77=yes
15981 allow_undefined_flag_F77=unsupported
15982 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'
15983 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15987 if test "$GCC" = yes; then
15988 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15989 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'
15991 allow_undefined_flag_F77=' -expect_unresolved \*'
15992 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'
15994 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15995 hardcode_libdir_separator_F77=:
15998 osf4* | osf5*) # as osf3* with the addition of -msym flag
15999 if test "$GCC" = yes; then
16000 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16001 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'
16002 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16004 allow_undefined_flag_F77=' -expect_unresolved \*'
16005 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'
16006 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~
16007 $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'
16009 # Both c and cxx compiler support -rpath directly
16010 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16012 hardcode_libdir_separator_F77=:
16016 no_undefined_flag_F77=' -z text'
16017 if test "$GCC" = yes; then
16019 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16020 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16021 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16024 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16028 hardcode_libdir_flag_spec_F77='-R$libdir'
16029 hardcode_shlibpath_var_F77=no
16031 solaris2.[0-5] | solaris2.[0-5].*) ;;
16033 # The compiler driver will combine linker options so we
16034 # cannot just pass the convience library names through
16035 # without $wl, iff we do not link with $LD.
16036 # Luckily, gcc supports the same syntax we need for Sun Studio.
16037 # Supported since Solaris 2.6 (maybe 2.5.1?)
16040 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16042 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16045 link_all_deplibs_F77=yes
16049 if test "x$host_vendor" = xsequent; then
16050 # Use $CC to link under sequent, because it throws in some extra .o
16051 # files that make .init and .fini sections work.
16052 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16054 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16056 hardcode_libdir_flag_spec_F77='-L$libdir'
16057 hardcode_direct_F77=yes
16058 hardcode_minus_L_F77=yes
16059 hardcode_shlibpath_var_F77=no
16063 case $host_vendor in
16065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_direct_F77=yes # is this really true???
16069 ## LD is ld it makes a PLAMLIB
16070 ## CC just makes a GrossModule.
16071 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16072 reload_cmds_F77='$CC -r -o $output$reload_objs'
16073 hardcode_direct_F77=no
16076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16080 runpath_var='LD_RUN_PATH'
16081 hardcode_shlibpath_var_F77=no
16085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_shlibpath_var_F77=no
16087 export_dynamic_flag_spec_F77='-Bexport'
16091 if test -d /usr/nec; then
16092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_shlibpath_var_F77=no
16094 runpath_var=LD_RUN_PATH
16095 hardcode_runpath_var=yes
16100 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16101 no_undefined_flag_F77='${wl}-z,text'
16102 archive_cmds_need_lc_F77=no
16103 hardcode_shlibpath_var_F77=no
16104 runpath_var='LD_RUN_PATH'
16106 if test "$GCC" = yes; then
16107 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16108 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16110 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16111 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16115 sysv5* | sco3.2v5* | sco5v6*)
16116 # Note: We can NOT use -z defs as we might desire, because we do not
16117 # link with -lc, and that would cause any symbols used from libc to
16118 # always be unresolved, which means just about no library would
16119 # ever link correctly. If we're not using GNU ld we use -z text
16120 # though, which does catch some bad symbols but isn't as heavy-handed
16122 no_undefined_flag_F77='${wl}-z,text'
16123 allow_undefined_flag_F77='${wl}-z,nodefs'
16124 archive_cmds_need_lc_F77=no
16125 hardcode_shlibpath_var_F77=no
16126 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16127 hardcode_libdir_separator_F77=':'
16128 link_all_deplibs_F77=yes
16129 export_dynamic_flag_spec_F77='${wl}-Bexport'
16130 runpath_var='LD_RUN_PATH'
16132 if test "$GCC" = yes; then
16133 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 hardcode_libdir_flag_spec_F77='-L$libdir'
16144 hardcode_shlibpath_var_F77=no
16153 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16154 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16155 test "$ld_shlibs_F77" = no && can_build_shared=no
16158 # Do we need to explicitly link libc?
16160 case "x$archive_cmds_need_lc_F77" in
16162 # Assume -lc should be added
16163 archive_cmds_need_lc_F77=yes
16165 if test "$enable_shared" = yes && test "$GCC" = yes; then
16166 case $archive_cmds_F77 in
16168 # FIXME: we may have to deal with multi-command sequences.
16171 # Test whether the compiler implicitly links with -lc since on some
16172 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16173 # to ld, don't add -lc before -lgcc.
16174 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16175 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } 2>conftest.err; then
16186 libobjs=conftest.$ac_objext
16188 wl=$lt_prog_compiler_wl_F77
16189 pic_flag=$lt_prog_compiler_pic_F77
16195 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16196 allow_undefined_flag_F77=
16197 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16198 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }
16203 archive_cmds_need_lc_F77=no
16205 archive_cmds_need_lc_F77=yes
16207 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16209 cat conftest.err 1>&5
16212 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16213 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16220 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16222 library_names_spec=
16223 libname_spec='lib$name'
16227 postuninstall_cmds=
16231 shlibpath_overrides_runpath=unknown
16233 dynamic_linker="$host_os ld.so"
16234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16235 if test "$GCC" = yes; then
16236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16237 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16238 # if the path contains ";" then we assume it to be the separator
16239 # otherwise default to the standard path separator (i.e. ":") - it is
16240 # assumed that no part of a normal pathname contains ";" but that should
16241 # okay in the real world where ";" in dirpaths is itself problematic.
16242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16249 need_lib_prefix=unknown
16250 hardcode_into_libs=no
16252 # when you set need_version to no, make sure it does not cause -set_version
16253 # flags to be left without arguments
16254 need_version=unknown
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16260 shlibpath_var=LIBPATH
16262 # AIX 3 has no versioning support, so we append a major version to the name.
16263 soname_spec='${libname}${release}${shared_ext}$major'
16270 hardcode_into_libs=yes
16271 if test "$host_cpu" = ia64; then
16272 # AIX 5 supports IA64
16273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16274 shlibpath_var=LD_LIBRARY_PATH
16276 # With GCC up to 2.95.x, collect2 would create an import file
16277 # for dependence libraries. The import file would start with
16278 # the line `#! .'. This would cause the generated library to
16279 # depend on `.', always an invalid library. This was fixed in
16280 # development snapshots of GCC prior to 3.0.
16282 aix4 | aix4.[01] | aix4.[01].*)
16283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16285 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16288 can_build_shared=no
16292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16293 # soname into executable. Probably we can add versioning support to
16294 # collect2, so additional links can be useful in future.
16295 if test "$aix_use_runtimelinking" = yes; then
16296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16297 # instead of lib<name>.a to let people know that these are not
16298 # typical AIX shared libraries.
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 # We preserve .a as extension for shared libraries through AIX4.2
16302 # and later when we are not doing run time linking.
16303 library_names_spec='${libname}${release}.a $libname.a'
16304 soname_spec='${libname}${release}${shared_ext}$major'
16306 shlibpath_var=LIBPATH
16311 library_names_spec='$libname.ixlibrary $libname.a'
16312 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16313 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'
16317 library_names_spec='${libname}${shared_ext}'
16318 dynamic_linker="$host_os ld.so"
16319 shlibpath_var=LIBRARY_PATH
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16331 # the default ld.so.conf also contains /usr/contrib/lib and
16332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16333 # libtool to hard-code these into programs
16336 cygwin* | mingw* | pw32*)
16337 version_type=windows
16342 case $GCC,$host_os in
16343 yes,cygwin* | yes,mingw* | yes,pw32*)
16344 library_names_spec='$libname.dll.a'
16345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16346 postinstall_cmds='base_file=`basename \${file}`~
16347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16348 dldir=$destdir/`dirname \$dlpath`~
16349 test -d \$dldir || mkdir -p \$dldir~
16350 $install_prog $dir/$dlname \$dldir/$dlname~
16351 chmod a+x \$dldir/$dlname'
16352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16353 dlpath=$dir/\$dldll~
16355 shlibpath_overrides_runpath=yes
16359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16361 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16364 # MinGW DLLs use traditional 'lib' prefix
16365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16367 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16368 # It is most probably a Windows format PATH printed by
16369 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16370 # path with ; separators, and with drive letters. We can handle the
16371 # drive letters (cygwin fileutils understands them), so leave them,
16372 # especially as we might pass files found there to a mingw objdump,
16373 # which wouldn't understand a cygwinified path. Ahh.
16374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16380 # pw32 DLLs use 'pw' prefix rather than 'lib'
16381 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16390 dynamic_linker='Win32 ld.exe'
16391 # FIXME: first we should search . and the directory the executable is in
16395 darwin* | rhapsody*)
16396 dynamic_linker="$host_os dyld"
16397 version_type=darwin
16400 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16401 soname_spec='${libname}${release}${major}$shared_ext'
16402 shlibpath_overrides_runpath=yes
16403 shlibpath_var=DYLD_LIBRARY_PATH
16404 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16405 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16406 if test "$GCC" = yes; then
16407 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16409 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 shlibpath_var=LD_LIBRARY_PATH
16427 freebsd* | dragonfly*)
16428 # DragonFly does not have aout. When/if they implement a new
16429 # versioning mechanism, adjust this.
16430 if test -x /usr/bin/objformat; then
16431 objformat=`/usr/bin/objformat`
16434 freebsd[123]*) objformat=aout ;;
16435 *) objformat=elf ;;
16438 version_type=freebsd-$objformat
16439 case $version_type in
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16450 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes
16455 freebsd3.[01]* | freebsdelf3.[01]*)
16456 shlibpath_overrides_runpath=yes
16457 hardcode_into_libs=yes
16459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16461 shlibpath_overrides_runpath=no
16462 hardcode_into_libs=yes
16464 freebsd*) # from 4.6 on
16465 shlibpath_overrides_runpath=yes
16466 hardcode_into_libs=yes
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 hardcode_into_libs=yes
16481 hpux9* | hpux10* | hpux11*)
16482 # Give a soname corresponding to the major version so that dld.sl refuses to
16483 # link against other versions.
16490 hardcode_into_libs=yes
16491 dynamic_linker="$host_os dld.so"
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 if test "X$HPUX_IA64_MODE" = X32; then
16497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16505 hardcode_into_libs=yes
16506 dynamic_linker="$host_os dld.sl"
16507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16516 dynamic_linker="$host_os dld.sl"
16517 shlibpath_var=SHLIB_PATH
16518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16523 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16524 postinstall_cmds='chmod 555 $lib'
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=no
16536 hardcode_into_libs=yes
16539 irix5* | irix6* | nonstopux*)
16541 nonstopux*) version_type=nonstopux ;;
16543 if test "$lt_cv_prog_gnu_ld" = yes; then
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16554 irix5* | nonstopux*)
16555 libsuff= shlibsuff=
16558 case $LD in # libtool.m4 will add one of these switches to LD
16559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16560 libsuff= shlibsuff= libmagic=32-bit;;
16561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16562 libsuff=32 shlibsuff=N32 libmagic=N32;;
16563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16565 *) libsuff= shlibsuff= libmagic=never-match;;
16569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16570 shlibpath_overrides_runpath=no
16571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16573 hardcode_into_libs=yes
16576 # No shared lib support for Linux oldld, aout, or coff.
16577 linux*oldld* | linux*aout* | linux*coff*)
16581 # This must be Linux ELF.
16582 linux* | k*bsd*-gnu)
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=no
16591 # This implies no fast_install, which is unacceptable.
16592 # Some rework will be needed to allow for fast_install
16593 # before this can be enabled.
16594 hardcode_into_libs=yes
16596 # Append ld.so.conf contents to the search path
16597 if test -f /etc/ld.so.conf; then
16598 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16602 # We used to test for /lib/ld.so.1 and disable shared libraries on
16603 # powerpc, because MkLinux only supported shared libraries with the
16604 # GNU dynamic linker. Since this was broken with cross compilers,
16605 # most powerpc-linux boxes support dynamic linking these days and
16606 # people can always --disable-shared, the test was removed, and we
16607 # assume the GNU/Linux dynamic linker is in use.
16608 dynamic_linker='GNU/Linux ld.so'
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 shlibpath_var=LD_LIBRARY_PATH
16618 shlibpath_overrides_runpath=no
16619 hardcode_into_libs=yes
16620 dynamic_linker='NetBSD ld.elf_so'
16627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16630 dynamic_linker='NetBSD (a.out) ld.so'
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16633 soname_spec='${libname}${release}${shared_ext}$major'
16634 dynamic_linker='NetBSD ld.elf_so'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=yes
16638 hardcode_into_libs=yes
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=yes
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653 soname_spec='${libname}${release}${shared_ext}$major'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=yes
16660 sys_lib_dlsearch_path_spec="/usr/lib"
16662 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16664 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16665 *) need_version=no ;;
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16672 openbsd2.[89] | openbsd2.[89].*)
16673 shlibpath_overrides_runpath=no
16676 shlibpath_overrides_runpath=yes
16680 shlibpath_overrides_runpath=yes
16685 libname_spec='$name'
16688 library_names_spec='$libname${shared_ext} $libname.a'
16689 dynamic_linker='OS/2 ld.exe'
16690 shlibpath_var=LIBPATH
16693 osf3* | osf4* | osf5*)
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 hardcode_into_libs=yes
16713 # ldd complains unless libraries are executable
16714 postinstall_cmds='chmod +x $lib'
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16721 shlibpath_var=LD_LIBRARY_PATH
16722 shlibpath_overrides_runpath=yes
16723 if test "$with_gnu_ld" = yes; then
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 shlibpath_var=LD_LIBRARY_PATH
16734 case $host_vendor in
16736 shlibpath_overrides_runpath=no
16738 export_dynamic_flag_spec='${wl}-Blargedynsym'
16739 runpath_var=LD_RUN_PATH
16747 shlibpath_overrides_runpath=no
16748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16754 if test -d /usr/nec ;then
16756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16757 soname_spec='$libname${shared_ext}.$major'
16758 shlibpath_var=LD_LIBRARY_PATH
16762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16763 version_type=freebsd-elf
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 hardcode_into_libs=yes
16770 if test "$with_gnu_ld" = yes; then
16771 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16772 shlibpath_overrides_runpath=no
16774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16775 shlibpath_overrides_runpath=yes
16778 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16782 sys_lib_dlsearch_path_spec='/usr/lib'
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 shlibpath_var=LD_LIBRARY_PATH
16796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16797 echo "${ECHO_T}$dynamic_linker" >&6; }
16798 test "$dynamic_linker" = no && can_build_shared=no
16800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16801 if test "$GCC" = yes; then
16802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16805 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16807 hardcode_action_F77=
16808 if test -n "$hardcode_libdir_flag_spec_F77" || \
16809 test -n "$runpath_var_F77" || \
16810 test "X$hardcode_automatic_F77" = "Xyes" ; then
16812 # We can hardcode non-existant directories.
16813 if test "$hardcode_direct_F77" != no &&
16814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16815 # have to relink, otherwise we might link with an installed library
16816 # when we should be linking with a yet-to-be-installed one
16817 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16818 test "$hardcode_minus_L_F77" != no; then
16819 # Linking always hardcodes the temporary library directory.
16820 hardcode_action_F77=relink
16822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16823 hardcode_action_F77=immediate
16826 # We cannot hardcode anything, or else we can only hardcode existing
16828 hardcode_action_F77=unsupported
16830 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16831 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16833 if test "$hardcode_action_F77" = relink; then
16834 # Fast installation is not supported
16835 enable_fast_install=no
16836 elif test "$shlibpath_overrides_runpath" = yes ||
16837 test "$enable_shared" = no; then
16838 # Fast installation is not necessary
16839 enable_fast_install=needless
16843 # The else clause should only fire when bootstrapping the
16844 # libtool distribution, otherwise you forgot to ship ltmain.sh
16845 # with your package, and you will get complaints that there are
16846 # no rules to generate ltmain.sh.
16847 if test -f "$ltmain"; then
16848 # See if we are running on zsh, and set the options which allow our commands through
16849 # without removal of \ escapes.
16850 if test -n "${ZSH_VERSION+set}" ; then
16851 setopt NO_GLOB_SUBST
16853 # Now quote all the things that may contain metacharacters while being
16854 # careful not to overquote the AC_SUBSTed values. We take copies of the
16855 # variables and quote the copies for generation of the libtool script.
16856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16860 deplibs_check_method reload_flag reload_cmds need_locks \
16861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16862 lt_cv_sys_global_symbol_to_c_name_address \
16863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16864 old_postinstall_cmds old_postuninstall_cmds \
16868 lt_prog_compiler_wl_F77 \
16869 lt_prog_compiler_pic_F77 \
16870 lt_prog_compiler_static_F77 \
16871 lt_prog_compiler_no_builtin_flag_F77 \
16872 export_dynamic_flag_spec_F77 \
16873 thread_safe_flag_spec_F77 \
16874 whole_archive_flag_spec_F77 \
16875 enable_shared_with_static_runtimes_F77 \
16876 old_archive_cmds_F77 \
16877 old_archive_from_new_cmds_F77 \
16878 predep_objects_F77 \
16879 postdep_objects_F77 \
16882 compiler_lib_search_path_F77 \
16884 archive_expsym_cmds_F77 \
16885 postinstall_cmds_F77 \
16886 postuninstall_cmds_F77 \
16887 old_archive_from_expsyms_cmds_F77 \
16888 allow_undefined_flag_F77 \
16889 no_undefined_flag_F77 \
16890 export_symbols_cmds_F77 \
16891 hardcode_libdir_flag_spec_F77 \
16892 hardcode_libdir_flag_spec_ld_F77 \
16893 hardcode_libdir_separator_F77 \
16894 hardcode_automatic_F77 \
16896 module_expsym_cmds_F77 \
16897 lt_cv_prog_compiler_c_o_F77 \
16898 exclude_expsyms_F77 \
16899 include_expsyms_F77; do
16902 old_archive_cmds_F77 | \
16903 old_archive_from_new_cmds_F77 | \
16904 archive_cmds_F77 | \
16905 archive_expsym_cmds_F77 | \
16906 module_cmds_F77 | \
16907 module_expsym_cmds_F77 | \
16908 old_archive_from_expsyms_cmds_F77 | \
16909 export_symbols_cmds_F77 | \
16910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16911 postinstall_cmds | postuninstall_cmds | \
16912 old_postinstall_cmds | old_postuninstall_cmds | \
16913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16914 # Double-quote double-evaled strings.
16915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16924 *'\$0 --fallback-echo"')
16925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16931 cat <<__EOF__ >> "$cfgfile"
16932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16936 # Shell to use when invoking shell scripts.
16939 # Whether or not to build shared libraries.
16940 build_libtool_libs=$enable_shared
16942 # Whether or not to build static libraries.
16943 build_old_libs=$enable_static
16945 # Whether or not to add -lc for building shared libraries.
16946 build_libtool_need_lc=$archive_cmds_need_lc_F77
16948 # Whether or not to disallow shared libs when runtime libs are static
16949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16951 # Whether or not to optimize for fast installation.
16952 fast_install=$enable_fast_install
16955 host_alias=$host_alias
16959 # The build system.
16960 build_alias=$build_alias
16964 # An echo program that does not interpret backslashes.
16969 AR_FLAGS=$lt_AR_FLAGS
16974 # LTCC compiler flags.
16975 LTCFLAGS=$lt_LTCFLAGS
16977 # A language-specific compiler.
16978 CC=$lt_compiler_F77
16980 # Is the compiler the GNU C compiler?
16986 # The linker used to build libraries.
16989 # Whether we need hard or soft links.
16992 # A BSD-compatible nm program.
16995 # A symbol stripping program
16998 # Used to examine libraries when file_magic_cmd begins "file"
16999 MAGIC_CMD=$MAGIC_CMD
17001 # Used on cygwin: DLL creation program.
17004 # Used on cygwin: object dumper.
17007 # Used on cygwin: assembler.
17010 # The name of the directory that contains temporary libtool files.
17013 # How to create reloadable object files.
17014 reload_flag=$lt_reload_flag
17015 reload_cmds=$lt_reload_cmds
17017 # How to pass a linker flag through the compiler.
17018 wl=$lt_lt_prog_compiler_wl_F77
17020 # Object file suffix (normally "o").
17021 objext="$ac_objext"
17023 # Old archive suffix (normally "a").
17026 # Shared library suffix (normally ".so").
17027 shrext_cmds='$shrext_cmds'
17029 # Executable file suffix (normally "").
17032 # Additional compiler flags for building library objects.
17033 pic_flag=$lt_lt_prog_compiler_pic_F77
17036 # What is the maximum length of a command?
17037 max_cmd_len=$lt_cv_sys_max_cmd_len
17039 # Does compiler simultaneously support -c and -o options?
17040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17042 # Must we lock files when doing compilation?
17043 need_locks=$lt_need_locks
17045 # Do we need the lib prefix for modules?
17046 need_lib_prefix=$need_lib_prefix
17048 # Do we need a version for libraries?
17049 need_version=$need_version
17051 # Whether dlopen is supported.
17052 dlopen_support=$enable_dlopen
17054 # Whether dlopen of programs is supported.
17055 dlopen_self=$enable_dlopen_self
17057 # Whether dlopen of statically linked programs is supported.
17058 dlopen_self_static=$enable_dlopen_self_static
17060 # Compiler flag to prevent dynamic linking.
17061 link_static_flag=$lt_lt_prog_compiler_static_F77
17063 # Compiler flag to turn off builtin functions.
17064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17066 # Compiler flag to allow reflexive dlopens.
17067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17069 # Compiler flag to generate shared objects directly from archives.
17070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17072 # Compiler flag to generate thread-safe objects.
17073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17075 # Library versioning type.
17076 version_type=$version_type
17078 # Format of library name prefix.
17079 libname_spec=$lt_libname_spec
17081 # List of archive names. First name is the real one, the rest are links.
17082 # The last name is the one that the linker finds with -lNAME.
17083 library_names_spec=$lt_library_names_spec
17085 # The coded name of the library, if different from the real name.
17086 soname_spec=$lt_soname_spec
17088 # Commands used to build and install an old-style archive.
17090 old_archive_cmds=$lt_old_archive_cmds_F77
17091 old_postinstall_cmds=$lt_old_postinstall_cmds
17092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17094 # Create an old-style archive from a shared archive.
17095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17097 # Create a temporary old-style archive to link instead of a shared archive.
17098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17100 # Commands used to build and install a shared archive.
17101 archive_cmds=$lt_archive_cmds_F77
17102 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17103 postinstall_cmds=$lt_postinstall_cmds
17104 postuninstall_cmds=$lt_postuninstall_cmds
17106 # Commands used to build a loadable module (assumed same as above if empty)
17107 module_cmds=$lt_module_cmds_F77
17108 module_expsym_cmds=$lt_module_expsym_cmds_F77
17110 # Commands to strip libraries.
17111 old_striplib=$lt_old_striplib
17112 striplib=$lt_striplib
17114 # Dependencies to place before the objects being linked to create a
17116 predep_objects=$lt_predep_objects_F77
17118 # Dependencies to place after the objects being linked to create a
17120 postdep_objects=$lt_postdep_objects_F77
17122 # Dependencies to place before the objects being linked to create a
17124 predeps=$lt_predeps_F77
17126 # Dependencies to place after the objects being linked to create a
17128 postdeps=$lt_postdeps_F77
17130 # The library search path used internally by the compiler when linking
17131 # a shared library.
17132 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17134 # Method to check whether dependent libraries are shared objects.
17135 deplibs_check_method=$lt_deplibs_check_method
17137 # Command to use when deplibs_check_method == file_magic.
17138 file_magic_cmd=$lt_file_magic_cmd
17140 # Flag that allows shared libraries with undefined symbols to be built.
17141 allow_undefined_flag=$lt_allow_undefined_flag_F77
17143 # Flag that forces no undefined symbols.
17144 no_undefined_flag=$lt_no_undefined_flag_F77
17146 # Commands used to finish a libtool library installation in a directory.
17147 finish_cmds=$lt_finish_cmds
17149 # Same as above, but a single script fragment to be evaled but not shown.
17150 finish_eval=$lt_finish_eval
17152 # Take the output of nm and produce a listing of raw symbols and C names.
17153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17155 # Transform the output of nm in a proper C declaration
17156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17158 # Transform the output of nm in a C name address pair
17159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17161 # This is the shared library runtime path variable.
17162 runpath_var=$runpath_var
17164 # This is the shared library path variable.
17165 shlibpath_var=$shlibpath_var
17167 # Is shlibpath searched before the hard-coded library search path?
17168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17170 # How to hardcode a shared library path into an executable.
17171 hardcode_action=$hardcode_action_F77
17173 # Whether we should hardcode library paths into libraries.
17174 hardcode_into_libs=$hardcode_into_libs
17176 # Flag to hardcode \$libdir into a binary during linking.
17177 # This must work even if \$libdir does not exist.
17178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17180 # If ld is used when linking, flag to hardcode \$libdir into
17181 # a binary during linking. This must work even if \$libdir does
17183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17185 # Whether we need a single -rpath flag with a separated argument.
17186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17189 # resulting binary.
17190 hardcode_direct=$hardcode_direct_F77
17192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17193 # resulting binary.
17194 hardcode_minus_L=$hardcode_minus_L_F77
17196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17197 # the resulting binary.
17198 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17200 # Set to yes if building a shared library automatically hardcodes DIR into the library
17201 # and all subsequent libraries and executables linked against it.
17202 hardcode_automatic=$hardcode_automatic_F77
17204 # Variables whose values should be saved in libtool wrapper scripts and
17205 # restored at relink time.
17206 variables_saved_for_relink="$variables_saved_for_relink"
17208 # Whether libtool must link a program against all its dependency libraries.
17209 link_all_deplibs=$link_all_deplibs_F77
17211 # Compile-time system search path for libraries
17212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17214 # Run-time system search path for libraries
17215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17217 # Fix the shell variable \$srcfile for the compiler.
17218 fix_srcfile_path="$fix_srcfile_path_F77"
17220 # Set to yes if exported symbols are required.
17221 always_export_symbols=$always_export_symbols_F77
17223 # The commands to list exported symbols.
17224 export_symbols_cmds=$lt_export_symbols_cmds_F77
17226 # The commands to extract the exported symbol list from a shared archive.
17227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17229 # Symbols that should not be listed in the preloaded symbols.
17230 exclude_expsyms=$lt_exclude_expsyms_F77
17232 # Symbols that must always be exported.
17233 include_expsyms=$lt_include_expsyms_F77
17235 # ### END LIBTOOL TAG CONFIG: $tagname
17241 # If there is no Makefile yet, we rely on a make rule to execute
17242 # `config.status --recheck' to rerun these tests and create the
17243 # libtool script then.
17244 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17245 if test -f "$ltmain_in"; then
17246 test -f Makefile && make "$ltmain"
17252 ac_cpp='$CPP $CPPFLAGS'
17253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17265 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17268 # Source file extension for Java test sources.
17271 # Object file extension for compiled Java test sources.
17275 # Code to be used in simple compile tests
17276 lt_simple_compile_test_code="class foo {}\n"
17278 # Code to be used in simple link tests
17279 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17281 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17283 # If no C compiler was specified, use CC.
17286 # If no C compiler flags were specified, use CFLAGS.
17287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17289 # Allow CC to be a program name with arguments.
17293 # save warnings/boilerplate of simple test code
17294 ac_outfile=conftest.$ac_objext
17295 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17297 _lt_compiler_boilerplate=`cat conftest.err`
17300 ac_outfile=conftest.$ac_objext
17301 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17303 _lt_linker_boilerplate=`cat conftest.err`
17307 # Allow CC to be a program name with arguments.
17312 for cc_temp in $compiler""; do
17314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17320 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17324 archive_cmds_need_lc_GCJ=no
17326 old_archive_cmds_GCJ=$old_archive_cmds
17329 lt_prog_compiler_no_builtin_flag_GCJ=
17331 if test "$GCC" = yes; then
17332 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17336 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 lt_cv_prog_compiler_rtti_exceptions=no
17341 ac_outfile=conftest.$ac_objext
17342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17343 lt_compiler_flag="-fno-rtti -fno-exceptions"
17344 # Insert the option either (1) after the last *FLAGS variable, or
17345 # (2) before a word containing "conftest.", or (3) at the end.
17346 # Note that $ac_compile itself does not contain backslashes and begins
17347 # with a dollar sign (not a hyphen), so the echo should work correctly.
17348 # The option is referenced via a variable to avoid confusing sed.
17349 lt_compile=`echo "$ac_compile" | $SED \
17350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17352 -e 's:$: $lt_compiler_flag:'`
17353 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17354 (eval "$lt_compile" 2>conftest.err)
17356 cat conftest.err >&5
17357 echo "$as_me:__oline__: \$? = $ac_status" >&5
17358 if (exit $ac_status) && test -s "$ac_outfile"; then
17359 # The compiler can only warn and ignore the option if not recognized
17360 # So say no if there are warnings other than the usual output.
17361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17364 lt_cv_prog_compiler_rtti_exceptions=yes
17370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17371 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17374 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17381 lt_prog_compiler_wl_GCJ=
17382 lt_prog_compiler_pic_GCJ=
17383 lt_prog_compiler_static_GCJ=
17385 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17388 if test "$GCC" = yes; then
17389 lt_prog_compiler_wl_GCJ='-Wl,'
17390 lt_prog_compiler_static_GCJ='-static'
17394 # All AIX code is PIC.
17395 if test "$host_cpu" = ia64; then
17396 # AIX 5 now supports IA64 processor
17397 lt_prog_compiler_static_GCJ='-Bstatic'
17402 # FIXME: we need at least 68020 code to build shared libraries, but
17403 # adding the `-m68020' flag to GCC prevents building anything better,
17405 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17408 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17409 # PIC is the default for these OSes.
17412 mingw* | pw32* | os2*)
17413 # This hack is so that the source file can tell whether it is being
17414 # built for inclusion in a dll (and should export symbols for example).
17415 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17418 darwin* | rhapsody*)
17419 # PIC is the default on this platform
17420 # Common symbols not allowed in MH_DYLIB files
17421 lt_prog_compiler_pic_GCJ='-fno-common'
17425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17426 # Instead, we relocate shared libraries at runtime.
17430 # Just because we use GCC doesn't mean we suddenly get shared libraries
17431 # on systems that don't support them.
17432 lt_prog_compiler_can_build_shared_GCJ=no
17437 if test -d /usr/nec; then
17438 lt_prog_compiler_pic_GCJ=-Kconform_pic
17443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17444 # not for PA HP-UX.
17450 lt_prog_compiler_pic_GCJ='-fPIC'
17456 lt_prog_compiler_pic_GCJ='-fPIC'
17460 # PORTME Check for flag to pass linker flags through the system compiler.
17463 lt_prog_compiler_wl_GCJ='-Wl,'
17464 if test "$host_cpu" = ia64; then
17465 # AIX 5 now supports IA64 processor
17466 lt_prog_compiler_static_GCJ='-Bstatic'
17468 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17472 # PIC is the default on this platform
17473 # Common symbols not allowed in MH_DYLIB files
17474 case $cc_basename in
17476 lt_prog_compiler_pic_GCJ='-qnocommon'
17477 lt_prog_compiler_wl_GCJ='-Wl,'
17482 mingw* | pw32* | os2*)
17483 # This hack is so that the source file can tell whether it is being
17484 # built for inclusion in a dll (and should export symbols for example).
17485 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17488 hpux9* | hpux10* | hpux11*)
17489 lt_prog_compiler_wl_GCJ='-Wl,'
17490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17491 # not for PA HP-UX.
17497 lt_prog_compiler_pic_GCJ='+Z'
17500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17501 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17504 irix5* | irix6* | nonstopux*)
17505 lt_prog_compiler_wl_GCJ='-Wl,'
17506 # PIC (with -KPIC) is the default.
17507 lt_prog_compiler_static_GCJ='-non_shared'
17511 lt_prog_compiler_pic_GCJ='-KPIC'
17512 lt_prog_compiler_static_GCJ='-Bstatic'
17515 linux* | k*bsd*-gnu)
17516 case $cc_basename in
17518 lt_prog_compiler_wl_GCJ='-Wl,'
17519 lt_prog_compiler_pic_GCJ='-KPIC'
17520 lt_prog_compiler_static_GCJ='-static'
17522 pgcc* | pgf77* | pgf90* | pgf95*)
17523 # Portland Group compilers (*not* the Pentium gcc compiler,
17524 # which looks to be a dead project)
17525 lt_prog_compiler_wl_GCJ='-Wl,'
17526 lt_prog_compiler_pic_GCJ='-fpic'
17527 lt_prog_compiler_static_GCJ='-Bstatic'
17530 lt_prog_compiler_wl_GCJ='-Wl,'
17531 # All Alpha code is PIC.
17532 lt_prog_compiler_static_GCJ='-non_shared'
17537 osf3* | osf4* | osf5*)
17538 lt_prog_compiler_wl_GCJ='-Wl,'
17539 # All OSF/1 code is PIC.
17540 lt_prog_compiler_static_GCJ='-non_shared'
17544 lt_prog_compiler_pic_GCJ='-KPIC'
17545 lt_prog_compiler_static_GCJ='-Bstatic'
17546 case $cc_basename in
17547 f77* | f90* | f95*)
17548 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17550 lt_prog_compiler_wl_GCJ='-Wl,';;
17555 lt_prog_compiler_wl_GCJ='-Qoption ld '
17556 lt_prog_compiler_pic_GCJ='-PIC'
17557 lt_prog_compiler_static_GCJ='-Bstatic'
17560 sysv4 | sysv4.2uw2* | sysv4.3*)
17561 lt_prog_compiler_wl_GCJ='-Wl,'
17562 lt_prog_compiler_pic_GCJ='-KPIC'
17563 lt_prog_compiler_static_GCJ='-Bstatic'
17567 if test -d /usr/nec ;then
17568 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17569 lt_prog_compiler_static_GCJ='-Bstatic'
17573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17574 lt_prog_compiler_wl_GCJ='-Wl,'
17575 lt_prog_compiler_pic_GCJ='-KPIC'
17576 lt_prog_compiler_static_GCJ='-Bstatic'
17580 lt_prog_compiler_wl_GCJ='-Wl,'
17581 lt_prog_compiler_can_build_shared_GCJ=no
17585 lt_prog_compiler_pic_GCJ='-pic'
17586 lt_prog_compiler_static_GCJ='-Bstatic'
17590 lt_prog_compiler_can_build_shared_GCJ=no
17595 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17596 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17599 # Check to make sure the PIC flag actually works.
17601 if test -n "$lt_prog_compiler_pic_GCJ"; then
17603 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17604 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17605 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 lt_prog_compiler_pic_works_GCJ=no
17609 ac_outfile=conftest.$ac_objext
17610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17611 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17612 # Insert the option either (1) after the last *FLAGS variable, or
17613 # (2) before a word containing "conftest.", or (3) at the end.
17614 # Note that $ac_compile itself does not contain backslashes and begins
17615 # with a dollar sign (not a hyphen), so the echo should work correctly.
17616 # The option is referenced via a variable to avoid confusing sed.
17617 lt_compile=`echo "$ac_compile" | $SED \
17618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17620 -e 's:$: $lt_compiler_flag:'`
17621 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17622 (eval "$lt_compile" 2>conftest.err)
17624 cat conftest.err >&5
17625 echo "$as_me:__oline__: \$? = $ac_status" >&5
17626 if (exit $ac_status) && test -s "$ac_outfile"; then
17627 # The compiler can only warn and ignore the option if not recognized
17628 # So say no if there are warnings other than the usual output.
17629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17632 lt_prog_compiler_pic_works_GCJ=yes
17638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17639 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17641 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17642 case $lt_prog_compiler_pic_GCJ in
17644 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17647 lt_prog_compiler_pic_GCJ=
17648 lt_prog_compiler_can_build_shared_GCJ=no
17653 # For platforms which do not support PIC, -DPIC is meaningless:
17655 lt_prog_compiler_pic_GCJ=
17658 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17663 # Check to make sure the static flag actually works.
17665 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17666 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17667 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17668 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 lt_prog_compiler_static_works_GCJ=no
17672 save_LDFLAGS="$LDFLAGS"
17673 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17674 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17676 # The linker can only warn and ignore the option if not recognized
17677 # So say no if there are warnings
17678 if test -s conftest.err; then
17679 # Append any errors to the config.log.
17680 cat conftest.err 1>&5
17681 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17683 if diff conftest.exp conftest.er2 >/dev/null; then
17684 lt_prog_compiler_static_works_GCJ=yes
17687 lt_prog_compiler_static_works_GCJ=yes
17691 LDFLAGS="$save_LDFLAGS"
17694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17695 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17697 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17700 lt_prog_compiler_static_GCJ=
17704 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17705 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17706 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17709 lt_cv_prog_compiler_c_o_GCJ=no
17710 $rm -r conftest 2>/dev/null
17714 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17716 lt_compiler_flag="-o out/conftest2.$ac_objext"
17717 # Insert the option either (1) after the last *FLAGS variable, or
17718 # (2) before a word containing "conftest.", or (3) at the end.
17719 # Note that $ac_compile itself does not contain backslashes and begins
17720 # with a dollar sign (not a hyphen), so the echo should work correctly.
17721 lt_compile=`echo "$ac_compile" | $SED \
17722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17724 -e 's:$: $lt_compiler_flag:'`
17725 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17726 (eval "$lt_compile" 2>out/conftest.err)
17728 cat out/conftest.err >&5
17729 echo "$as_me:__oline__: \$? = $ac_status" >&5
17730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17732 # The compiler can only warn and ignore the option if not recognized
17733 # So say no if there are warnings
17734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17737 lt_cv_prog_compiler_c_o_GCJ=yes
17742 # SGI C++ compiler will create directory out/ii_files/ for
17743 # template instantiation
17744 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17745 $rm out/* && rmdir out
17751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17752 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17755 hard_links="nottested"
17756 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17757 # do not overwrite the value of need_locks provided by the user
17758 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17759 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17764 ln conftest.a conftest.b 2>&5 || hard_links=no
17765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17766 { echo "$as_me:$LINENO: result: $hard_links" >&5
17767 echo "${ECHO_T}$hard_links" >&6; }
17768 if test "$hard_links" = no; then
17769 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17770 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17777 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17778 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17781 allow_undefined_flag_GCJ=
17782 enable_shared_with_static_runtimes_GCJ=no
17784 archive_expsym_cmds_GCJ=
17785 old_archive_From_new_cmds_GCJ=
17786 old_archive_from_expsyms_cmds_GCJ=
17787 export_dynamic_flag_spec_GCJ=
17788 whole_archive_flag_spec_GCJ=
17789 thread_safe_flag_spec_GCJ=
17790 hardcode_libdir_flag_spec_GCJ=
17791 hardcode_libdir_flag_spec_ld_GCJ=
17792 hardcode_libdir_separator_GCJ=
17793 hardcode_direct_GCJ=no
17794 hardcode_minus_L_GCJ=no
17795 hardcode_shlibpath_var_GCJ=unsupported
17796 link_all_deplibs_GCJ=unknown
17797 hardcode_automatic_GCJ=no
17799 module_expsym_cmds_GCJ=
17800 always_export_symbols_GCJ=no
17801 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17802 # include_expsyms should be a list of space-separated symbols to be *always*
17803 # included in the symbol list
17804 include_expsyms_GCJ=
17805 # exclude_expsyms can be an extended regexp of symbols to exclude
17806 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17807 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17808 # as well as any symbol that contains `d'.
17809 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17810 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17811 # platforms (ab)use it in PIC code, but their linkers get confused if
17812 # the symbol is explicitly referenced. Since portable code cannot
17813 # rely on this symbol name, it's probably fine to never include it in
17814 # preloaded symbol tables.
17815 extract_expsyms_cmds=
17816 # Just being paranoid about ensuring that cc_basename is set.
17817 for cc_temp in $compiler""; do
17819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17828 cygwin* | mingw* | pw32*)
17829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17830 # When not using gcc, we currently assume that we are using
17831 # Microsoft Visual C++.
17832 if test "$GCC" != yes; then
17837 # we just hope/assume this is gcc and not c89 (= MSVC++)
17846 if test "$with_gnu_ld" = yes; then
17847 # If archive_cmds runs LD, not CC, wlarc should be empty
17850 # Set some defaults for GNU ld with shared library support. These
17851 # are reset later if shared libraries are not supported. Putting them
17852 # here allows them to be overridden if necessary.
17853 runpath_var=LD_RUN_PATH
17854 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17855 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17856 # ancient GNU ld didn't support --whole-archive et. al.
17857 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17858 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17860 whole_archive_flag_spec_GCJ=
17862 supports_anon_versioning=no
17863 case `$LD -v 2>/dev/null` in
17864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17867 *\ 2.11.*) ;; # other 2.11 versions
17868 *) supports_anon_versioning=yes ;;
17871 # See if GNU ld supports shared libraries.
17873 aix3* | aix4* | aix5*)
17874 # On AIX/PPC, the GNU linker is very broken
17875 if test "$host_cpu" != ia64; then
17879 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17880 *** to be unable to reliably create shared libraries on AIX.
17881 *** Therefore, libtool is disabling shared libraries support. If you
17882 *** really care for shared libraries, you may want to modify your PATH
17883 *** so that a non-GNU linker is found, and then restart.
17890 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)'
17891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17892 hardcode_minus_L_GCJ=yes
17894 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17895 # that the semantics of dynamic libraries on AmigaOS, at least up
17896 # to version 4, is to share data among multiple programs linked
17897 # with the same dynamic library. Since this doesn't match the
17898 # behavior of shared libraries on other platforms, we can't use
17904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17905 allow_undefined_flag_GCJ=unsupported
17906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17907 # support --undefined. This deserves some investigation. FIXME
17908 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17914 cygwin* | mingw* | pw32*)
17915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17916 # as there is no search path for DLLs.
17917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918 allow_undefined_flag_GCJ=unsupported
17919 always_export_symbols_GCJ=no
17920 enable_shared_with_static_runtimes_GCJ=yes
17921 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17923 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17924 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17925 # If the export-symbols file already is a .def file (1st line
17926 # is EXPORTS), use it as is; otherwise, prepend...
17927 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17928 cp $export_symbols $output_objdir/$soname.def;
17930 echo EXPORTS > $output_objdir/$soname.def;
17931 cat $export_symbols >> $output_objdir/$soname.def;
17933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17940 hardcode_direct_GCJ=no
17941 hardcode_shlibpath_var_GCJ=no
17942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17943 export_dynamic_flag_spec_GCJ='${wl}-E'
17944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17945 # Instead, shared libraries are loaded at an image base (0x10000000 by
17946 # default) and relocated if they conflict, which is a slow very memory
17947 # consuming and fragmenting process. To avoid this, we pick a random,
17948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17950 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'
17951 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'
17954 linux* | k*bsd*-gnu)
17955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17957 case $cc_basename,$host_cpu in
17958 pgcc*) # Portland Group C compiler
17959 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'
17960 tmp_addflag=' $pic_flag'
17962 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17963 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'
17964 tmp_addflag=' $pic_flag -Mnomain' ;;
17965 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17966 tmp_addflag=' -i_dynamic' ;;
17967 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17968 tmp_addflag=' -i_dynamic -nofor_main' ;;
17969 ifc* | ifort*) # Intel Fortran compiler
17970 tmp_addflag=' -nofor_main' ;;
17972 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17974 if test $supports_anon_versioning = yes; then
17975 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17977 $echo "local: *; };" >> $output_objdir/$libname.ver~
17978 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17980 link_all_deplibs_GCJ=no
17986 netbsd* | netbsdelf*-gnu)
17987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17988 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17997 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18002 *** create shared libraries on Solaris systems. Therefore, libtool
18003 *** is disabling shared libraries support. We urge you to upgrade GNU
18004 *** binutils to release 2.9.1 or newer. Another option is to modify
18005 *** your PATH or compiler configuration so that the native linker is
18006 *** used, and then restart.
18009 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18018 case `$LD -v 2>&1` in
18019 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18024 *** reliably create shared libraries on SCO systems. Therefore, libtool
18025 *** is disabling shared libraries support. We urge you to upgrade GNU
18026 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18027 *** your PATH or compiler configuration so that the native linker is
18028 *** used, and then restart.
18033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18034 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18035 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18036 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18045 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18047 hardcode_direct_GCJ=yes
18048 hardcode_shlibpath_var_GCJ=no
18052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18053 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18054 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18061 if test "$ld_shlibs_GCJ" = no; then
18063 hardcode_libdir_flag_spec_GCJ=
18064 export_dynamic_flag_spec_GCJ=
18065 whole_archive_flag_spec_GCJ=
18068 # PORTME fill in a description of your system's linker (not GNU ld)
18071 allow_undefined_flag_GCJ=unsupported
18072 always_export_symbols_GCJ=yes
18073 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'
18074 # Note: this linker hardcodes the directories in LIBPATH if there
18075 # are no directories specified by -L.
18076 hardcode_minus_L_GCJ=yes
18077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18078 # Neither direct hardcoding nor static linking is supported with a
18080 hardcode_direct_GCJ=unsupported
18085 if test "$host_cpu" = ia64; then
18086 # On IA64, the linker does run time linking by default, so we don't
18087 # have to do anything special.
18088 aix_use_runtimelinking=no
18089 exp_sym_flag='-Bexport'
18092 # If we're using GNU nm, then we don't want the "-C" option.
18093 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18094 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18095 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'
18097 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'
18099 aix_use_runtimelinking=no
18101 # Test if we are trying to use run time linking or normal
18102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18103 # need to do runtime linking.
18104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18105 for ld_flag in $LDFLAGS; do
18106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18107 aix_use_runtimelinking=yes
18114 exp_sym_flag='-bexport'
18115 no_entry_flag='-bnoentry'
18118 # When large executables or shared objects are built, AIX ld can
18119 # have problems creating the table of contents. If linking a library
18120 # or program results in "error TOC overflow" add -mminimal-toc to
18121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18124 archive_cmds_GCJ=''
18125 hardcode_direct_GCJ=yes
18126 hardcode_libdir_separator_GCJ=':'
18127 link_all_deplibs_GCJ=yes
18129 if test "$GCC" = yes; then
18130 case $host_os in aix4.[012]|aix4.[012].*)
18131 # We only want to do this on AIX 4.2 and lower, the check
18132 # below for broken collect2 doesn't work under 4.3+
18133 collect2name=`${CC} -print-prog-name=collect2`
18134 if test -f "$collect2name" && \
18135 strings "$collect2name" | grep resolve_lib_name >/dev/null
18137 # We have reworked collect2
18138 hardcode_direct_GCJ=yes
18140 # We have old collect2
18141 hardcode_direct_GCJ=unsupported
18142 # It fails to find uninstalled libraries when the uninstalled
18143 # path is not listed in the libpath. Setting hardcode_minus_L
18144 # to unsupported forces relinking
18145 hardcode_minus_L_GCJ=yes
18146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18147 hardcode_libdir_separator_GCJ=
18151 shared_flag='-shared'
18152 if test "$aix_use_runtimelinking" = yes; then
18153 shared_flag="$shared_flag "'${wl}-G'
18157 if test "$host_cpu" = ia64; then
18158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18159 # chokes on -Wl,-G. The following line is correct:
18162 if test "$aix_use_runtimelinking" = yes; then
18163 shared_flag='${wl}-G'
18165 shared_flag='${wl}-bM:SRE'
18170 # It seems that -bexpall does not export symbols beginning with
18171 # underscore (_), so it is better to generate a list of symbols to export.
18172 always_export_symbols_GCJ=yes
18173 if test "$aix_use_runtimelinking" = yes; then
18174 # Warning - without using the other runtime loading flags (-brtl),
18175 # -berok will link without error, but may produce a broken library.
18176 allow_undefined_flag_GCJ='-berok'
18177 # Determine the default libpath from the value encoded in an empty executable.
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_link") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest$ac_exeext &&
18210 $as_test_x conftest$ac_exeext; then
18212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18214 # Check for a 64-bit object if we didn't find anything.
18215 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225 conftest$ac_exeext conftest.$ac_ext
18226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18228 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18229 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"
18231 if test "$host_cpu" = ia64; then
18232 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18233 allow_undefined_flag_GCJ="-z nodefs"
18234 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"
18236 # Determine the default libpath from the value encoded in an empty executable.
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } && {
18266 test -z "$ac_c_werror_flag" ||
18267 test ! -s conftest.err
18268 } && test -s conftest$ac_exeext &&
18269 $as_test_x conftest$ac_exeext; then
18271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18273 # Check for a 64-bit object if we didn't find anything.
18274 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18284 conftest$ac_exeext conftest.$ac_ext
18285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18287 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18288 # Warning - without using the other run time loading flags,
18289 # -berok will link without error, but may produce a broken library.
18290 no_undefined_flag_GCJ=' ${wl}-bernotok'
18291 allow_undefined_flag_GCJ=' ${wl}-berok'
18292 # Exported symbols can be pulled into shared objects from archives
18293 whole_archive_flag_spec_GCJ='$convenience'
18294 archive_cmds_need_lc_GCJ=yes
18295 # This is similar to how AIX traditionally builds its shared libraries.
18296 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'
18302 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)'
18303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18304 hardcode_minus_L_GCJ=yes
18305 # see comment about different semantics on the GNU ld section
18310 export_dynamic_flag_spec_GCJ=-rdynamic
18313 cygwin* | mingw* | pw32*)
18314 # When not using gcc, we currently assume that we are using
18315 # Microsoft Visual C++.
18316 # hardcode_libdir_flag_spec is actually meaningless, as there is
18317 # no search path for DLLs.
18318 hardcode_libdir_flag_spec_GCJ=' '
18319 allow_undefined_flag_GCJ=unsupported
18320 # Tell ltmain to make .lib files, not .a files.
18322 # Tell ltmain to make .dll files, not .so files.
18324 # FIXME: Setting linknames here is a bad hack.
18325 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18326 # The linker will automatically build a .lib file if we build a DLL.
18327 old_archive_From_new_cmds_GCJ='true'
18328 # FIXME: Should let the user specify the lib program.
18329 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18330 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18331 enable_shared_with_static_runtimes_GCJ=yes
18334 darwin* | rhapsody*)
18336 rhapsody* | darwin1.[012])
18337 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18340 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18341 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18343 case ${MACOSX_DEPLOYMENT_TARGET} in
18345 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18348 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18354 archive_cmds_need_lc_GCJ=no
18355 hardcode_direct_GCJ=no
18356 hardcode_automatic_GCJ=yes
18357 hardcode_shlibpath_var_GCJ=unsupported
18358 whole_archive_flag_spec_GCJ=''
18359 link_all_deplibs_GCJ=yes
18360 if test "$GCC" = yes ; then
18361 output_verbose_link_cmd='echo'
18362 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18363 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18364 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18365 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}'
18366 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}'
18368 case $cc_basename in
18370 output_verbose_link_cmd='echo'
18371 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18372 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18374 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18375 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}'
18385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18386 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18387 hardcode_shlibpath_var_GCJ=no
18394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18395 # support. Future versions do this automatically, but an explicit c++rt0.o
18396 # does not break anything, and helps significantly (at the cost of a little
18399 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18400 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18401 hardcode_direct_GCJ=yes
18402 hardcode_shlibpath_var_GCJ=no
18405 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18407 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18408 hardcode_direct_GCJ=yes
18409 hardcode_minus_L_GCJ=yes
18410 hardcode_shlibpath_var_GCJ=no
18413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18414 freebsd* | dragonfly*)
18415 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18417 hardcode_direct_GCJ=yes
18418 hardcode_shlibpath_var_GCJ=no
18422 if test "$GCC" = yes; then
18423 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'
18425 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'
18427 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18428 hardcode_libdir_separator_GCJ=:
18429 hardcode_direct_GCJ=yes
18431 # hardcode_minus_L: Not really in the search PATH,
18432 # but as the default location of the library.
18433 hardcode_minus_L_GCJ=yes
18434 export_dynamic_flag_spec_GCJ='${wl}-E'
18438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18439 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18441 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18443 if test "$with_gnu_ld" = no; then
18444 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18445 hardcode_libdir_separator_GCJ=:
18447 hardcode_direct_GCJ=yes
18448 export_dynamic_flag_spec_GCJ='${wl}-E'
18450 # hardcode_minus_L: Not really in the search PATH,
18451 # but as the default location of the library.
18452 hardcode_minus_L_GCJ=yes
18457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18460 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18463 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18466 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18472 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18475 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18478 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18482 if test "$with_gnu_ld" = no; then
18483 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18484 hardcode_libdir_separator_GCJ=:
18488 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18489 hardcode_direct_GCJ=no
18490 hardcode_shlibpath_var_GCJ=no
18493 hardcode_direct_GCJ=yes
18494 export_dynamic_flag_spec_GCJ='${wl}-E'
18496 # hardcode_minus_L: Not really in the search PATH,
18497 # but as the default location of the library.
18498 hardcode_minus_L_GCJ=yes
18504 irix5* | irix6* | nonstopux*)
18505 if test "$GCC" = yes; then
18506 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'
18508 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'
18509 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18511 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18512 hardcode_libdir_separator_GCJ=:
18513 link_all_deplibs_GCJ=yes
18516 netbsd* | netbsdelf*-gnu)
18517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18518 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18520 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18522 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18523 hardcode_direct_GCJ=yes
18524 hardcode_shlibpath_var_GCJ=no
18528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18529 hardcode_direct_GCJ=yes
18530 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18531 hardcode_libdir_separator_GCJ=:
18532 hardcode_shlibpath_var_GCJ=no
18536 hardcode_direct_GCJ=yes
18537 hardcode_shlibpath_var_GCJ=no
18538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18539 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18540 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18542 export_dynamic_flag_spec_GCJ='${wl}-E'
18545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18547 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18550 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18559 hardcode_minus_L_GCJ=yes
18560 allow_undefined_flag_GCJ=unsupported
18561 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'
18562 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18566 if test "$GCC" = yes; then
18567 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18568 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'
18570 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18571 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'
18573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18574 hardcode_libdir_separator_GCJ=:
18577 osf4* | osf5*) # as osf3* with the addition of -msym flag
18578 if test "$GCC" = yes; then
18579 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18580 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18583 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18584 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'
18585 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~
18586 $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'
18588 # Both c and cxx compiler support -rpath directly
18589 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18591 hardcode_libdir_separator_GCJ=:
18595 no_undefined_flag_GCJ=' -z text'
18596 if test "$GCC" = yes; then
18598 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18599 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18603 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18604 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18608 hardcode_shlibpath_var_GCJ=no
18610 solaris2.[0-5] | solaris2.[0-5].*) ;;
18612 # The compiler driver will combine linker options so we
18613 # cannot just pass the convience library names through
18614 # without $wl, iff we do not link with $LD.
18615 # Luckily, gcc supports the same syntax we need for Sun Studio.
18616 # Supported since Solaris 2.6 (maybe 2.5.1?)
18619 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18621 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18624 link_all_deplibs_GCJ=yes
18628 if test "x$host_vendor" = xsequent; then
18629 # Use $CC to link under sequent, because it throws in some extra .o
18630 # files that make .init and .fini sections work.
18631 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18633 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18636 hardcode_direct_GCJ=yes
18637 hardcode_minus_L_GCJ=yes
18638 hardcode_shlibpath_var_GCJ=no
18642 case $host_vendor in
18644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18645 hardcode_direct_GCJ=yes # is this really true???
18648 ## LD is ld it makes a PLAMLIB
18649 ## CC just makes a GrossModule.
18650 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18651 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18652 hardcode_direct_GCJ=no
18655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18656 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18659 runpath_var='LD_RUN_PATH'
18660 hardcode_shlibpath_var_GCJ=no
18664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18665 hardcode_shlibpath_var_GCJ=no
18666 export_dynamic_flag_spec_GCJ='-Bexport'
18670 if test -d /usr/nec; then
18671 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18672 hardcode_shlibpath_var_GCJ=no
18673 runpath_var=LD_RUN_PATH
18674 hardcode_runpath_var=yes
18679 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18680 no_undefined_flag_GCJ='${wl}-z,text'
18681 archive_cmds_need_lc_GCJ=no
18682 hardcode_shlibpath_var_GCJ=no
18683 runpath_var='LD_RUN_PATH'
18685 if test "$GCC" = yes; then
18686 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18689 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18690 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18694 sysv5* | sco3.2v5* | sco5v6*)
18695 # Note: We can NOT use -z defs as we might desire, because we do not
18696 # link with -lc, and that would cause any symbols used from libc to
18697 # always be unresolved, which means just about no library would
18698 # ever link correctly. If we're not using GNU ld we use -z text
18699 # though, which does catch some bad symbols but isn't as heavy-handed
18701 no_undefined_flag_GCJ='${wl}-z,text'
18702 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18703 archive_cmds_need_lc_GCJ=no
18704 hardcode_shlibpath_var_GCJ=no
18705 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18706 hardcode_libdir_separator_GCJ=':'
18707 link_all_deplibs_GCJ=yes
18708 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18709 runpath_var='LD_RUN_PATH'
18711 if test "$GCC" = yes; then
18712 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18713 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18715 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18716 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18722 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18723 hardcode_shlibpath_var_GCJ=no
18732 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18733 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18734 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18737 # Do we need to explicitly link libc?
18739 case "x$archive_cmds_need_lc_GCJ" in
18741 # Assume -lc should be added
18742 archive_cmds_need_lc_GCJ=yes
18744 if test "$enable_shared" = yes && test "$GCC" = yes; then
18745 case $archive_cmds_GCJ in
18747 # FIXME: we may have to deal with multi-command sequences.
18750 # Test whether the compiler implicitly links with -lc since on some
18751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18752 # to ld, don't add -lc before -lgcc.
18753 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18759 (eval $ac_compile) 2>&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } 2>conftest.err; then
18765 libobjs=conftest.$ac_objext
18767 wl=$lt_prog_compiler_wl_GCJ
18768 pic_flag=$lt_prog_compiler_pic_GCJ
18774 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18775 allow_undefined_flag_GCJ=
18776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18777 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }
18782 archive_cmds_need_lc_GCJ=no
18784 archive_cmds_need_lc_GCJ=yes
18786 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18788 cat conftest.err 1>&5
18791 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18792 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18799 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18800 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18801 library_names_spec=
18802 libname_spec='lib$name'
18806 postuninstall_cmds=
18810 shlibpath_overrides_runpath=unknown
18812 dynamic_linker="$host_os ld.so"
18813 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18814 if test "$GCC" = yes; then
18815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18817 # if the path contains ";" then we assume it to be the separator
18818 # otherwise default to the standard path separator (i.e. ":") - it is
18819 # assumed that no part of a normal pathname contains ";" but that should
18820 # okay in the real world where ";" in dirpaths is itself problematic.
18821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18828 need_lib_prefix=unknown
18829 hardcode_into_libs=no
18831 # when you set need_version to no, make sure it does not cause -set_version
18832 # flags to be left without arguments
18833 need_version=unknown
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18839 shlibpath_var=LIBPATH
18841 # AIX 3 has no versioning support, so we append a major version to the name.
18842 soname_spec='${libname}${release}${shared_ext}$major'
18849 hardcode_into_libs=yes
18850 if test "$host_cpu" = ia64; then
18851 # AIX 5 supports IA64
18852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18853 shlibpath_var=LD_LIBRARY_PATH
18855 # With GCC up to 2.95.x, collect2 would create an import file
18856 # for dependence libraries. The import file would start with
18857 # the line `#! .'. This would cause the generated library to
18858 # depend on `.', always an invalid library. This was fixed in
18859 # development snapshots of GCC prior to 3.0.
18861 aix4 | aix4.[01] | aix4.[01].*)
18862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18867 can_build_shared=no
18871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18872 # soname into executable. Probably we can add versioning support to
18873 # collect2, so additional links can be useful in future.
18874 if test "$aix_use_runtimelinking" = yes; then
18875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18876 # instead of lib<name>.a to let people know that these are not
18877 # typical AIX shared libraries.
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18880 # We preserve .a as extension for shared libraries through AIX4.2
18881 # and later when we are not doing run time linking.
18882 library_names_spec='${libname}${release}.a $libname.a'
18883 soname_spec='${libname}${release}${shared_ext}$major'
18885 shlibpath_var=LIBPATH
18890 library_names_spec='$libname.ixlibrary $libname.a'
18891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18892 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'
18896 library_names_spec='${libname}${shared_ext}'
18897 dynamic_linker="$host_os ld.so"
18898 shlibpath_var=LIBRARY_PATH
18904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18905 soname_spec='${libname}${release}${shared_ext}$major'
18906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18910 # the default ld.so.conf also contains /usr/contrib/lib and
18911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18912 # libtool to hard-code these into programs
18915 cygwin* | mingw* | pw32*)
18916 version_type=windows
18921 case $GCC,$host_os in
18922 yes,cygwin* | yes,mingw* | yes,pw32*)
18923 library_names_spec='$libname.dll.a'
18924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18925 postinstall_cmds='base_file=`basename \${file}`~
18926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18927 dldir=$destdir/`dirname \$dlpath`~
18928 test -d \$dldir || mkdir -p \$dldir~
18929 $install_prog $dir/$dlname \$dldir/$dlname~
18930 chmod a+x \$dldir/$dlname'
18931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18932 dlpath=$dir/\$dldll~
18934 shlibpath_overrides_runpath=yes
18938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18940 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18943 # MinGW DLLs use traditional 'lib' prefix
18944 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18946 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18947 # It is most probably a Windows format PATH printed by
18948 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18949 # path with ; separators, and with drive letters. We can handle the
18950 # drive letters (cygwin fileutils understands them), so leave them,
18951 # especially as we might pass files found there to a mingw objdump,
18952 # which wouldn't understand a cygwinified path. Ahh.
18953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18959 # pw32 DLLs use 'pw' prefix rather than 'lib'
18960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18969 dynamic_linker='Win32 ld.exe'
18970 # FIXME: first we should search . and the directory the executable is in
18974 darwin* | rhapsody*)
18975 dynamic_linker="$host_os dyld"
18976 version_type=darwin
18979 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18980 soname_spec='${libname}${release}${major}$shared_ext'
18981 shlibpath_overrides_runpath=yes
18982 shlibpath_var=DYLD_LIBRARY_PATH
18983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18984 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18985 if test "$GCC" = yes; then
18986 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18988 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18998 soname_spec='${libname}${release}${shared_ext}$major'
18999 shlibpath_var=LD_LIBRARY_PATH
19006 freebsd* | dragonfly*)
19007 # DragonFly does not have aout. When/if they implement a new
19008 # versioning mechanism, adjust this.
19009 if test -x /usr/bin/objformat; then
19010 objformat=`/usr/bin/objformat`
19013 freebsd[123]*) objformat=aout ;;
19014 *) objformat=elf ;;
19017 version_type=freebsd-$objformat
19018 case $version_type in
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19029 shlibpath_var=LD_LIBRARY_PATH
19032 shlibpath_overrides_runpath=yes
19034 freebsd3.[01]* | freebsdelf3.[01]*)
19035 shlibpath_overrides_runpath=yes
19036 hardcode_into_libs=yes
19038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19040 shlibpath_overrides_runpath=no
19041 hardcode_into_libs=yes
19043 freebsd*) # from 4.6 on
19044 shlibpath_overrides_runpath=yes
19045 hardcode_into_libs=yes
19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19055 soname_spec='${libname}${release}${shared_ext}$major'
19056 shlibpath_var=LD_LIBRARY_PATH
19057 hardcode_into_libs=yes
19060 hpux9* | hpux10* | hpux11*)
19061 # Give a soname corresponding to the major version so that dld.sl refuses to
19062 # link against other versions.
19069 hardcode_into_libs=yes
19070 dynamic_linker="$host_os dld.so"
19071 shlibpath_var=LD_LIBRARY_PATH
19072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19074 soname_spec='${libname}${release}${shared_ext}$major'
19075 if test "X$HPUX_IA64_MODE" = X32; then
19076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19084 hardcode_into_libs=yes
19085 dynamic_linker="$host_os dld.sl"
19086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19095 dynamic_linker="$host_os dld.sl"
19096 shlibpath_var=SHLIB_PATH
19097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099 soname_spec='${libname}${release}${shared_ext}$major'
19102 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19103 postinstall_cmds='chmod 555 $lib'
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19113 shlibpath_var=LD_LIBRARY_PATH
19114 shlibpath_overrides_runpath=no
19115 hardcode_into_libs=yes
19118 irix5* | irix6* | nonstopux*)
19120 nonstopux*) version_type=nonstopux ;;
19122 if test "$lt_cv_prog_gnu_ld" = yes; then
19130 soname_spec='${libname}${release}${shared_ext}$major'
19131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19133 irix5* | nonstopux*)
19134 libsuff= shlibsuff=
19137 case $LD in # libtool.m4 will add one of these switches to LD
19138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19139 libsuff= shlibsuff= libmagic=32-bit;;
19140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19141 libsuff=32 shlibsuff=N32 libmagic=N32;;
19142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19144 *) libsuff= shlibsuff= libmagic=never-match;;
19148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19149 shlibpath_overrides_runpath=no
19150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19152 hardcode_into_libs=yes
19155 # No shared lib support for Linux oldld, aout, or coff.
19156 linux*oldld* | linux*aout* | linux*coff*)
19160 # This must be Linux ELF.
19161 linux* | k*bsd*-gnu)
19165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19166 soname_spec='${libname}${release}${shared_ext}$major'
19167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19168 shlibpath_var=LD_LIBRARY_PATH
19169 shlibpath_overrides_runpath=no
19170 # This implies no fast_install, which is unacceptable.
19171 # Some rework will be needed to allow for fast_install
19172 # before this can be enabled.
19173 hardcode_into_libs=yes
19175 # Append ld.so.conf contents to the search path
19176 if test -f /etc/ld.so.conf; then
19177 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19181 # We used to test for /lib/ld.so.1 and disable shared libraries on
19182 # powerpc, because MkLinux only supported shared libraries with the
19183 # GNU dynamic linker. Since this was broken with cross compilers,
19184 # most powerpc-linux boxes support dynamic linking these days and
19185 # people can always --disable-shared, the test was removed, and we
19186 # assume the GNU/Linux dynamic linker is in use.
19187 dynamic_linker='GNU/Linux ld.so'
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19195 soname_spec='${libname}${release}${shared_ext}$major'
19196 shlibpath_var=LD_LIBRARY_PATH
19197 shlibpath_overrides_runpath=no
19198 hardcode_into_libs=yes
19199 dynamic_linker='NetBSD ld.elf_so'
19206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19209 dynamic_linker='NetBSD (a.out) ld.so'
19211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19212 soname_spec='${libname}${release}${shared_ext}$major'
19213 dynamic_linker='NetBSD ld.elf_so'
19215 shlibpath_var=LD_LIBRARY_PATH
19216 shlibpath_overrides_runpath=yes
19217 hardcode_into_libs=yes
19222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223 shlibpath_var=LD_LIBRARY_PATH
19224 shlibpath_overrides_runpath=yes
19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232 soname_spec='${libname}${release}${shared_ext}$major'
19233 shlibpath_var=LD_LIBRARY_PATH
19234 shlibpath_overrides_runpath=yes
19239 sys_lib_dlsearch_path_spec="/usr/lib"
19241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19244 *) need_version=no ;;
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19248 shlibpath_var=LD_LIBRARY_PATH
19249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19251 openbsd2.[89] | openbsd2.[89].*)
19252 shlibpath_overrides_runpath=no
19255 shlibpath_overrides_runpath=yes
19259 shlibpath_overrides_runpath=yes
19264 libname_spec='$name'
19267 library_names_spec='$libname${shared_ext} $libname.a'
19268 dynamic_linker='OS/2 ld.exe'
19269 shlibpath_var=LIBPATH
19272 osf3* | osf4* | osf5*)
19276 soname_spec='${libname}${release}${shared_ext}$major'
19277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19288 soname_spec='${libname}${release}${shared_ext}$major'
19289 shlibpath_var=LD_LIBRARY_PATH
19290 shlibpath_overrides_runpath=yes
19291 hardcode_into_libs=yes
19292 # ldd complains unless libraries are executable
19293 postinstall_cmds='chmod +x $lib'
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 shlibpath_overrides_runpath=yes
19302 if test "$with_gnu_ld" = yes; then
19310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19311 soname_spec='${libname}${release}${shared_ext}$major'
19312 shlibpath_var=LD_LIBRARY_PATH
19313 case $host_vendor in
19315 shlibpath_overrides_runpath=no
19317 export_dynamic_flag_spec='${wl}-Blargedynsym'
19318 runpath_var=LD_RUN_PATH
19326 shlibpath_overrides_runpath=no
19327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19333 if test -d /usr/nec ;then
19335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19336 soname_spec='$libname${shared_ext}.$major'
19337 shlibpath_var=LD_LIBRARY_PATH
19341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19342 version_type=freebsd-elf
19345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19346 soname_spec='${libname}${release}${shared_ext}$major'
19347 shlibpath_var=LD_LIBRARY_PATH
19348 hardcode_into_libs=yes
19349 if test "$with_gnu_ld" = yes; then
19350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19351 shlibpath_overrides_runpath=no
19353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19354 shlibpath_overrides_runpath=yes
19357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19361 sys_lib_dlsearch_path_spec='/usr/lib'
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367 soname_spec='${libname}${release}${shared_ext}$major'
19368 shlibpath_var=LD_LIBRARY_PATH
19375 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19376 echo "${ECHO_T}$dynamic_linker" >&6; }
19377 test "$dynamic_linker" = no && can_build_shared=no
19379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19380 if test "$GCC" = yes; then
19381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19384 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19385 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19386 hardcode_action_GCJ=
19387 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19388 test -n "$runpath_var_GCJ" || \
19389 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19391 # We can hardcode non-existant directories.
19392 if test "$hardcode_direct_GCJ" != no &&
19393 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19394 # have to relink, otherwise we might link with an installed library
19395 # when we should be linking with a yet-to-be-installed one
19396 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19397 test "$hardcode_minus_L_GCJ" != no; then
19398 # Linking always hardcodes the temporary library directory.
19399 hardcode_action_GCJ=relink
19401 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19402 hardcode_action_GCJ=immediate
19405 # We cannot hardcode anything, or else we can only hardcode existing
19407 hardcode_action_GCJ=unsupported
19409 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19410 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19412 if test "$hardcode_action_GCJ" = relink; then
19413 # Fast installation is not supported
19414 enable_fast_install=no
19415 elif test "$shlibpath_overrides_runpath" = yes ||
19416 test "$enable_shared" = no; then
19417 # Fast installation is not necessary
19418 enable_fast_install=needless
19422 # The else clause should only fire when bootstrapping the
19423 # libtool distribution, otherwise you forgot to ship ltmain.sh
19424 # with your package, and you will get complaints that there are
19425 # no rules to generate ltmain.sh.
19426 if test -f "$ltmain"; then
19427 # See if we are running on zsh, and set the options which allow our commands through
19428 # without removal of \ escapes.
19429 if test -n "${ZSH_VERSION+set}" ; then
19430 setopt NO_GLOB_SUBST
19432 # Now quote all the things that may contain metacharacters while being
19433 # careful not to overquote the AC_SUBSTed values. We take copies of the
19434 # variables and quote the copies for generation of the libtool script.
19435 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19437 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19438 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19439 deplibs_check_method reload_flag reload_cmds need_locks \
19440 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19441 lt_cv_sys_global_symbol_to_c_name_address \
19442 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19443 old_postinstall_cmds old_postuninstall_cmds \
19447 lt_prog_compiler_wl_GCJ \
19448 lt_prog_compiler_pic_GCJ \
19449 lt_prog_compiler_static_GCJ \
19450 lt_prog_compiler_no_builtin_flag_GCJ \
19451 export_dynamic_flag_spec_GCJ \
19452 thread_safe_flag_spec_GCJ \
19453 whole_archive_flag_spec_GCJ \
19454 enable_shared_with_static_runtimes_GCJ \
19455 old_archive_cmds_GCJ \
19456 old_archive_from_new_cmds_GCJ \
19457 predep_objects_GCJ \
19458 postdep_objects_GCJ \
19461 compiler_lib_search_path_GCJ \
19463 archive_expsym_cmds_GCJ \
19464 postinstall_cmds_GCJ \
19465 postuninstall_cmds_GCJ \
19466 old_archive_from_expsyms_cmds_GCJ \
19467 allow_undefined_flag_GCJ \
19468 no_undefined_flag_GCJ \
19469 export_symbols_cmds_GCJ \
19470 hardcode_libdir_flag_spec_GCJ \
19471 hardcode_libdir_flag_spec_ld_GCJ \
19472 hardcode_libdir_separator_GCJ \
19473 hardcode_automatic_GCJ \
19475 module_expsym_cmds_GCJ \
19476 lt_cv_prog_compiler_c_o_GCJ \
19477 exclude_expsyms_GCJ \
19478 include_expsyms_GCJ; do
19481 old_archive_cmds_GCJ | \
19482 old_archive_from_new_cmds_GCJ | \
19483 archive_cmds_GCJ | \
19484 archive_expsym_cmds_GCJ | \
19485 module_cmds_GCJ | \
19486 module_expsym_cmds_GCJ | \
19487 old_archive_from_expsyms_cmds_GCJ | \
19488 export_symbols_cmds_GCJ | \
19489 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19490 postinstall_cmds | postuninstall_cmds | \
19491 old_postinstall_cmds | old_postuninstall_cmds | \
19492 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19493 # Double-quote double-evaled strings.
19494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19503 *'\$0 --fallback-echo"')
19504 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19510 cat <<__EOF__ >> "$cfgfile"
19511 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19515 # Shell to use when invoking shell scripts.
19518 # Whether or not to build shared libraries.
19519 build_libtool_libs=$enable_shared
19521 # Whether or not to build static libraries.
19522 build_old_libs=$enable_static
19524 # Whether or not to add -lc for building shared libraries.
19525 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19527 # Whether or not to disallow shared libs when runtime libs are static
19528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19530 # Whether or not to optimize for fast installation.
19531 fast_install=$enable_fast_install
19534 host_alias=$host_alias
19538 # The build system.
19539 build_alias=$build_alias
19543 # An echo program that does not interpret backslashes.
19548 AR_FLAGS=$lt_AR_FLAGS
19553 # LTCC compiler flags.
19554 LTCFLAGS=$lt_LTCFLAGS
19556 # A language-specific compiler.
19557 CC=$lt_compiler_GCJ
19559 # Is the compiler the GNU C compiler?
19565 # The linker used to build libraries.
19568 # Whether we need hard or soft links.
19571 # A BSD-compatible nm program.
19574 # A symbol stripping program
19577 # Used to examine libraries when file_magic_cmd begins "file"
19578 MAGIC_CMD=$MAGIC_CMD
19580 # Used on cygwin: DLL creation program.
19583 # Used on cygwin: object dumper.
19586 # Used on cygwin: assembler.
19589 # The name of the directory that contains temporary libtool files.
19592 # How to create reloadable object files.
19593 reload_flag=$lt_reload_flag
19594 reload_cmds=$lt_reload_cmds
19596 # How to pass a linker flag through the compiler.
19597 wl=$lt_lt_prog_compiler_wl_GCJ
19599 # Object file suffix (normally "o").
19600 objext="$ac_objext"
19602 # Old archive suffix (normally "a").
19605 # Shared library suffix (normally ".so").
19606 shrext_cmds='$shrext_cmds'
19608 # Executable file suffix (normally "").
19611 # Additional compiler flags for building library objects.
19612 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19615 # What is the maximum length of a command?
19616 max_cmd_len=$lt_cv_sys_max_cmd_len
19618 # Does compiler simultaneously support -c and -o options?
19619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19621 # Must we lock files when doing compilation?
19622 need_locks=$lt_need_locks
19624 # Do we need the lib prefix for modules?
19625 need_lib_prefix=$need_lib_prefix
19627 # Do we need a version for libraries?
19628 need_version=$need_version
19630 # Whether dlopen is supported.
19631 dlopen_support=$enable_dlopen
19633 # Whether dlopen of programs is supported.
19634 dlopen_self=$enable_dlopen_self
19636 # Whether dlopen of statically linked programs is supported.
19637 dlopen_self_static=$enable_dlopen_self_static
19639 # Compiler flag to prevent dynamic linking.
19640 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19642 # Compiler flag to turn off builtin functions.
19643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19645 # Compiler flag to allow reflexive dlopens.
19646 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19648 # Compiler flag to generate shared objects directly from archives.
19649 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19651 # Compiler flag to generate thread-safe objects.
19652 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19654 # Library versioning type.
19655 version_type=$version_type
19657 # Format of library name prefix.
19658 libname_spec=$lt_libname_spec
19660 # List of archive names. First name is the real one, the rest are links.
19661 # The last name is the one that the linker finds with -lNAME.
19662 library_names_spec=$lt_library_names_spec
19664 # The coded name of the library, if different from the real name.
19665 soname_spec=$lt_soname_spec
19667 # Commands used to build and install an old-style archive.
19669 old_archive_cmds=$lt_old_archive_cmds_GCJ
19670 old_postinstall_cmds=$lt_old_postinstall_cmds
19671 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19673 # Create an old-style archive from a shared archive.
19674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19676 # Create a temporary old-style archive to link instead of a shared archive.
19677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19679 # Commands used to build and install a shared archive.
19680 archive_cmds=$lt_archive_cmds_GCJ
19681 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19682 postinstall_cmds=$lt_postinstall_cmds
19683 postuninstall_cmds=$lt_postuninstall_cmds
19685 # Commands used to build a loadable module (assumed same as above if empty)
19686 module_cmds=$lt_module_cmds_GCJ
19687 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19689 # Commands to strip libraries.
19690 old_striplib=$lt_old_striplib
19691 striplib=$lt_striplib
19693 # Dependencies to place before the objects being linked to create a
19695 predep_objects=$lt_predep_objects_GCJ
19697 # Dependencies to place after the objects being linked to create a
19699 postdep_objects=$lt_postdep_objects_GCJ
19701 # Dependencies to place before the objects being linked to create a
19703 predeps=$lt_predeps_GCJ
19705 # Dependencies to place after the objects being linked to create a
19707 postdeps=$lt_postdeps_GCJ
19709 # The library search path used internally by the compiler when linking
19710 # a shared library.
19711 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19713 # Method to check whether dependent libraries are shared objects.
19714 deplibs_check_method=$lt_deplibs_check_method
19716 # Command to use when deplibs_check_method == file_magic.
19717 file_magic_cmd=$lt_file_magic_cmd
19719 # Flag that allows shared libraries with undefined symbols to be built.
19720 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19722 # Flag that forces no undefined symbols.
19723 no_undefined_flag=$lt_no_undefined_flag_GCJ
19725 # Commands used to finish a libtool library installation in a directory.
19726 finish_cmds=$lt_finish_cmds
19728 # Same as above, but a single script fragment to be evaled but not shown.
19729 finish_eval=$lt_finish_eval
19731 # Take the output of nm and produce a listing of raw symbols and C names.
19732 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19734 # Transform the output of nm in a proper C declaration
19735 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19737 # Transform the output of nm in a C name address pair
19738 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19740 # This is the shared library runtime path variable.
19741 runpath_var=$runpath_var
19743 # This is the shared library path variable.
19744 shlibpath_var=$shlibpath_var
19746 # Is shlibpath searched before the hard-coded library search path?
19747 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19749 # How to hardcode a shared library path into an executable.
19750 hardcode_action=$hardcode_action_GCJ
19752 # Whether we should hardcode library paths into libraries.
19753 hardcode_into_libs=$hardcode_into_libs
19755 # Flag to hardcode \$libdir into a binary during linking.
19756 # This must work even if \$libdir does not exist.
19757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19759 # If ld is used when linking, flag to hardcode \$libdir into
19760 # a binary during linking. This must work even if \$libdir does
19762 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19764 # Whether we need a single -rpath flag with a separated argument.
19765 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19767 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19768 # resulting binary.
19769 hardcode_direct=$hardcode_direct_GCJ
19771 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19772 # resulting binary.
19773 hardcode_minus_L=$hardcode_minus_L_GCJ
19775 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19776 # the resulting binary.
19777 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19779 # Set to yes if building a shared library automatically hardcodes DIR into the library
19780 # and all subsequent libraries and executables linked against it.
19781 hardcode_automatic=$hardcode_automatic_GCJ
19783 # Variables whose values should be saved in libtool wrapper scripts and
19784 # restored at relink time.
19785 variables_saved_for_relink="$variables_saved_for_relink"
19787 # Whether libtool must link a program against all its dependency libraries.
19788 link_all_deplibs=$link_all_deplibs_GCJ
19790 # Compile-time system search path for libraries
19791 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19793 # Run-time system search path for libraries
19794 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19796 # Fix the shell variable \$srcfile for the compiler.
19797 fix_srcfile_path="$fix_srcfile_path_GCJ"
19799 # Set to yes if exported symbols are required.
19800 always_export_symbols=$always_export_symbols_GCJ
19802 # The commands to list exported symbols.
19803 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19805 # The commands to extract the exported symbol list from a shared archive.
19806 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19808 # Symbols that should not be listed in the preloaded symbols.
19809 exclude_expsyms=$lt_exclude_expsyms_GCJ
19811 # Symbols that must always be exported.
19812 include_expsyms=$lt_include_expsyms_GCJ
19814 # ### END LIBTOOL TAG CONFIG: $tagname
19820 # If there is no Makefile yet, we rely on a make rule to execute
19821 # `config.status --recheck' to rerun these tests and create the
19822 # libtool script then.
19823 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19824 if test -f "$ltmain_in"; then
19825 test -f Makefile && make "$ltmain"
19831 ac_cpp='$CPP $CPPFLAGS'
19832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19846 # Source file extension for RC test sources.
19849 # Object file extension for compiled RC test sources.
19853 # Code to be used in simple compile tests
19854 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19856 # Code to be used in simple link tests
19857 lt_simple_link_test_code="$lt_simple_compile_test_code"
19859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19861 # If no C compiler was specified, use CC.
19864 # If no C compiler flags were specified, use CFLAGS.
19865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19867 # Allow CC to be a program name with arguments.
19871 # save warnings/boilerplate of simple test code
19872 ac_outfile=conftest.$ac_objext
19873 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19875 _lt_compiler_boilerplate=`cat conftest.err`
19878 ac_outfile=conftest.$ac_objext
19879 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19881 _lt_linker_boilerplate=`cat conftest.err`
19885 # Allow CC to be a program name with arguments.
19890 for cc_temp in $compiler""; do
19892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19900 lt_cv_prog_compiler_c_o_RC=yes
19902 # The else clause should only fire when bootstrapping the
19903 # libtool distribution, otherwise you forgot to ship ltmain.sh
19904 # with your package, and you will get complaints that there are
19905 # no rules to generate ltmain.sh.
19906 if test -f "$ltmain"; then
19907 # See if we are running on zsh, and set the options which allow our commands through
19908 # without removal of \ escapes.
19909 if test -n "${ZSH_VERSION+set}" ; then
19910 setopt NO_GLOB_SUBST
19912 # Now quote all the things that may contain metacharacters while being
19913 # careful not to overquote the AC_SUBSTed values. We take copies of the
19914 # variables and quote the copies for generation of the libtool script.
19915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19919 deplibs_check_method reload_flag reload_cmds need_locks \
19920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19921 lt_cv_sys_global_symbol_to_c_name_address \
19922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19923 old_postinstall_cmds old_postuninstall_cmds \
19927 lt_prog_compiler_wl_RC \
19928 lt_prog_compiler_pic_RC \
19929 lt_prog_compiler_static_RC \
19930 lt_prog_compiler_no_builtin_flag_RC \
19931 export_dynamic_flag_spec_RC \
19932 thread_safe_flag_spec_RC \
19933 whole_archive_flag_spec_RC \
19934 enable_shared_with_static_runtimes_RC \
19935 old_archive_cmds_RC \
19936 old_archive_from_new_cmds_RC \
19937 predep_objects_RC \
19938 postdep_objects_RC \
19941 compiler_lib_search_path_RC \
19943 archive_expsym_cmds_RC \
19944 postinstall_cmds_RC \
19945 postuninstall_cmds_RC \
19946 old_archive_from_expsyms_cmds_RC \
19947 allow_undefined_flag_RC \
19948 no_undefined_flag_RC \
19949 export_symbols_cmds_RC \
19950 hardcode_libdir_flag_spec_RC \
19951 hardcode_libdir_flag_spec_ld_RC \
19952 hardcode_libdir_separator_RC \
19953 hardcode_automatic_RC \
19955 module_expsym_cmds_RC \
19956 lt_cv_prog_compiler_c_o_RC \
19957 exclude_expsyms_RC \
19958 include_expsyms_RC; do
19961 old_archive_cmds_RC | \
19962 old_archive_from_new_cmds_RC | \
19963 archive_cmds_RC | \
19964 archive_expsym_cmds_RC | \
19966 module_expsym_cmds_RC | \
19967 old_archive_from_expsyms_cmds_RC | \
19968 export_symbols_cmds_RC | \
19969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19970 postinstall_cmds | postuninstall_cmds | \
19971 old_postinstall_cmds | old_postuninstall_cmds | \
19972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19973 # Double-quote double-evaled strings.
19974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19983 *'\$0 --fallback-echo"')
19984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19990 cat <<__EOF__ >> "$cfgfile"
19991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19995 # Shell to use when invoking shell scripts.
19998 # Whether or not to build shared libraries.
19999 build_libtool_libs=$enable_shared
20001 # Whether or not to build static libraries.
20002 build_old_libs=$enable_static
20004 # Whether or not to add -lc for building shared libraries.
20005 build_libtool_need_lc=$archive_cmds_need_lc_RC
20007 # Whether or not to disallow shared libs when runtime libs are static
20008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20010 # Whether or not to optimize for fast installation.
20011 fast_install=$enable_fast_install
20014 host_alias=$host_alias
20018 # The build system.
20019 build_alias=$build_alias
20023 # An echo program that does not interpret backslashes.
20028 AR_FLAGS=$lt_AR_FLAGS
20033 # LTCC compiler flags.
20034 LTCFLAGS=$lt_LTCFLAGS
20036 # A language-specific compiler.
20039 # Is the compiler the GNU C compiler?
20045 # The linker used to build libraries.
20048 # Whether we need hard or soft links.
20051 # A BSD-compatible nm program.
20054 # A symbol stripping program
20057 # Used to examine libraries when file_magic_cmd begins "file"
20058 MAGIC_CMD=$MAGIC_CMD
20060 # Used on cygwin: DLL creation program.
20063 # Used on cygwin: object dumper.
20066 # Used on cygwin: assembler.
20069 # The name of the directory that contains temporary libtool files.
20072 # How to create reloadable object files.
20073 reload_flag=$lt_reload_flag
20074 reload_cmds=$lt_reload_cmds
20076 # How to pass a linker flag through the compiler.
20077 wl=$lt_lt_prog_compiler_wl_RC
20079 # Object file suffix (normally "o").
20080 objext="$ac_objext"
20082 # Old archive suffix (normally "a").
20085 # Shared library suffix (normally ".so").
20086 shrext_cmds='$shrext_cmds'
20088 # Executable file suffix (normally "").
20091 # Additional compiler flags for building library objects.
20092 pic_flag=$lt_lt_prog_compiler_pic_RC
20095 # What is the maximum length of a command?
20096 max_cmd_len=$lt_cv_sys_max_cmd_len
20098 # Does compiler simultaneously support -c and -o options?
20099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20101 # Must we lock files when doing compilation?
20102 need_locks=$lt_need_locks
20104 # Do we need the lib prefix for modules?
20105 need_lib_prefix=$need_lib_prefix
20107 # Do we need a version for libraries?
20108 need_version=$need_version
20110 # Whether dlopen is supported.
20111 dlopen_support=$enable_dlopen
20113 # Whether dlopen of programs is supported.
20114 dlopen_self=$enable_dlopen_self
20116 # Whether dlopen of statically linked programs is supported.
20117 dlopen_self_static=$enable_dlopen_self_static
20119 # Compiler flag to prevent dynamic linking.
20120 link_static_flag=$lt_lt_prog_compiler_static_RC
20122 # Compiler flag to turn off builtin functions.
20123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20125 # Compiler flag to allow reflexive dlopens.
20126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20128 # Compiler flag to generate shared objects directly from archives.
20129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20131 # Compiler flag to generate thread-safe objects.
20132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20134 # Library versioning type.
20135 version_type=$version_type
20137 # Format of library name prefix.
20138 libname_spec=$lt_libname_spec
20140 # List of archive names. First name is the real one, the rest are links.
20141 # The last name is the one that the linker finds with -lNAME.
20142 library_names_spec=$lt_library_names_spec
20144 # The coded name of the library, if different from the real name.
20145 soname_spec=$lt_soname_spec
20147 # Commands used to build and install an old-style archive.
20149 old_archive_cmds=$lt_old_archive_cmds_RC
20150 old_postinstall_cmds=$lt_old_postinstall_cmds
20151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20153 # Create an old-style archive from a shared archive.
20154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20156 # Create a temporary old-style archive to link instead of a shared archive.
20157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20159 # Commands used to build and install a shared archive.
20160 archive_cmds=$lt_archive_cmds_RC
20161 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20162 postinstall_cmds=$lt_postinstall_cmds
20163 postuninstall_cmds=$lt_postuninstall_cmds
20165 # Commands used to build a loadable module (assumed same as above if empty)
20166 module_cmds=$lt_module_cmds_RC
20167 module_expsym_cmds=$lt_module_expsym_cmds_RC
20169 # Commands to strip libraries.
20170 old_striplib=$lt_old_striplib
20171 striplib=$lt_striplib
20173 # Dependencies to place before the objects being linked to create a
20175 predep_objects=$lt_predep_objects_RC
20177 # Dependencies to place after the objects being linked to create a
20179 postdep_objects=$lt_postdep_objects_RC
20181 # Dependencies to place before the objects being linked to create a
20183 predeps=$lt_predeps_RC
20185 # Dependencies to place after the objects being linked to create a
20187 postdeps=$lt_postdeps_RC
20189 # The library search path used internally by the compiler when linking
20190 # a shared library.
20191 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20193 # Method to check whether dependent libraries are shared objects.
20194 deplibs_check_method=$lt_deplibs_check_method
20196 # Command to use when deplibs_check_method == file_magic.
20197 file_magic_cmd=$lt_file_magic_cmd
20199 # Flag that allows shared libraries with undefined symbols to be built.
20200 allow_undefined_flag=$lt_allow_undefined_flag_RC
20202 # Flag that forces no undefined symbols.
20203 no_undefined_flag=$lt_no_undefined_flag_RC
20205 # Commands used to finish a libtool library installation in a directory.
20206 finish_cmds=$lt_finish_cmds
20208 # Same as above, but a single script fragment to be evaled but not shown.
20209 finish_eval=$lt_finish_eval
20211 # Take the output of nm and produce a listing of raw symbols and C names.
20212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20214 # Transform the output of nm in a proper C declaration
20215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20217 # Transform the output of nm in a C name address pair
20218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20220 # This is the shared library runtime path variable.
20221 runpath_var=$runpath_var
20223 # This is the shared library path variable.
20224 shlibpath_var=$shlibpath_var
20226 # Is shlibpath searched before the hard-coded library search path?
20227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20229 # How to hardcode a shared library path into an executable.
20230 hardcode_action=$hardcode_action_RC
20232 # Whether we should hardcode library paths into libraries.
20233 hardcode_into_libs=$hardcode_into_libs
20235 # Flag to hardcode \$libdir into a binary during linking.
20236 # This must work even if \$libdir does not exist.
20237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20239 # If ld is used when linking, flag to hardcode \$libdir into
20240 # a binary during linking. This must work even if \$libdir does
20242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20244 # Whether we need a single -rpath flag with a separated argument.
20245 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20248 # resulting binary.
20249 hardcode_direct=$hardcode_direct_RC
20251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20252 # resulting binary.
20253 hardcode_minus_L=$hardcode_minus_L_RC
20255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20256 # the resulting binary.
20257 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20259 # Set to yes if building a shared library automatically hardcodes DIR into the library
20260 # and all subsequent libraries and executables linked against it.
20261 hardcode_automatic=$hardcode_automatic_RC
20263 # Variables whose values should be saved in libtool wrapper scripts and
20264 # restored at relink time.
20265 variables_saved_for_relink="$variables_saved_for_relink"
20267 # Whether libtool must link a program against all its dependency libraries.
20268 link_all_deplibs=$link_all_deplibs_RC
20270 # Compile-time system search path for libraries
20271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20273 # Run-time system search path for libraries
20274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20276 # Fix the shell variable \$srcfile for the compiler.
20277 fix_srcfile_path="$fix_srcfile_path_RC"
20279 # Set to yes if exported symbols are required.
20280 always_export_symbols=$always_export_symbols_RC
20282 # The commands to list exported symbols.
20283 export_symbols_cmds=$lt_export_symbols_cmds_RC
20285 # The commands to extract the exported symbol list from a shared archive.
20286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20288 # Symbols that should not be listed in the preloaded symbols.
20289 exclude_expsyms=$lt_exclude_expsyms_RC
20291 # Symbols that must always be exported.
20292 include_expsyms=$lt_include_expsyms_RC
20294 # ### END LIBTOOL TAG CONFIG: $tagname
20300 # If there is no Makefile yet, we rely on a make rule to execute
20301 # `config.status --recheck' to rerun these tests and create the
20302 # libtool script then.
20303 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20304 if test -f "$ltmain_in"; then
20305 test -f Makefile && make "$ltmain"
20311 ac_cpp='$CPP $CPPFLAGS'
20312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20321 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20322 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20323 { (exit 1); exit 1; }; }
20327 # Append the new tag name to the list of available tags.
20328 if test -n "$tagname" ; then
20329 available_tags="$available_tags $tagname"
20335 # Now substitute the updated list of available tags.
20336 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20337 mv "${ofile}T" "$ofile"
20341 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20342 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20343 { (exit 1); exit 1; }; }
20349 # This can be used to rebuild libtool when needed
20350 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20352 # Always use our own libtool.
20353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20355 # Prevent multiple expansion
20377 if test "x$cross_compiling" = "xno"; then
20378 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20380 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20385 if test -n "$ac_tool_prefix"; then
20386 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20387 set dummy ${ac_tool_prefix}ar; ac_word=$2
20388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20390 if test "${ac_cv_prog_AR+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 if test -n "$AR"; then
20394 ac_cv_prog_AR="$AR" # Let the user override the test.
20396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20397 for as_dir in $PATH
20400 test -z "$as_dir" && as_dir=.
20401 for ac_exec_ext in '' $ac_executable_extensions; do
20402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20403 ac_cv_prog_AR="${ac_tool_prefix}ar"
20404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20414 if test -n "$AR"; then
20415 { echo "$as_me:$LINENO: result: $AR" >&5
20416 echo "${ECHO_T}$AR" >&6; }
20418 { echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6; }
20424 if test -z "$ac_cv_prog_AR"; then
20426 # Extract the first word of "ar", so it can be a program name with args.
20427 set dummy ar; ac_word=$2
20428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20430 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 if test -n "$ac_ct_AR"; then
20434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437 for as_dir in $PATH
20440 test -z "$as_dir" && as_dir=.
20441 for ac_exec_ext in '' $ac_executable_extensions; do
20442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20443 ac_cv_prog_ac_ct_AR="ar"
20444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20454 if test -n "$ac_ct_AR"; then
20455 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20456 echo "${ECHO_T}$ac_ct_AR" >&6; }
20458 { echo "$as_me:$LINENO: result: no" >&5
20459 echo "${ECHO_T}no" >&6; }
20462 if test "x$ac_ct_AR" = x; then
20465 case $cross_compiling:$ac_tool_warned in
20467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20468 whose name does not start with the host triplet. If you think this
20469 configuration is useful to you, please write to autoconf@gnu.org." >&5
20470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20471 whose name does not start with the host triplet. If you think this
20472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20473 ac_tool_warned=yes ;;
20478 AR="$ac_cv_prog_AR"
20481 if test -n "$ac_tool_prefix"; then
20482 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20483 set dummy ${ac_tool_prefix}ld; ac_word=$2
20484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20486 if test "${ac_cv_prog_LD+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 if test -n "$LD"; then
20490 ac_cv_prog_LD="$LD" # Let the user override the test.
20492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20493 for as_dir in $PATH
20496 test -z "$as_dir" && as_dir=.
20497 for ac_exec_ext in '' $ac_executable_extensions; do
20498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20499 ac_cv_prog_LD="${ac_tool_prefix}ld"
20500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20510 if test -n "$LD"; then
20511 { echo "$as_me:$LINENO: result: $LD" >&5
20512 echo "${ECHO_T}$LD" >&6; }
20514 { echo "$as_me:$LINENO: result: no" >&5
20515 echo "${ECHO_T}no" >&6; }
20520 if test -z "$ac_cv_prog_LD"; then
20522 # Extract the first word of "ld", so it can be a program name with args.
20523 set dummy ld; ac_word=$2
20524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20526 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 if test -n "$ac_ct_LD"; then
20530 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533 for as_dir in $PATH
20536 test -z "$as_dir" && as_dir=.
20537 for ac_exec_ext in '' $ac_executable_extensions; do
20538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20539 ac_cv_prog_ac_ct_LD="ld"
20540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20549 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20550 if test -n "$ac_ct_LD"; then
20551 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20552 echo "${ECHO_T}$ac_ct_LD" >&6; }
20554 { echo "$as_me:$LINENO: result: no" >&5
20555 echo "${ECHO_T}no" >&6; }
20558 if test "x$ac_ct_LD" = x; then
20561 case $cross_compiling:$ac_tool_warned in
20563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20564 whose name does not start with the host triplet. If you think this
20565 configuration is useful to you, please write to autoconf@gnu.org." >&5
20566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20567 whose name does not start with the host triplet. If you think this
20568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20569 ac_tool_warned=yes ;;
20574 LD="$ac_cv_prog_LD"
20578 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20580 if test "${ac_cv_header_stdc+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 #include <stdlib.h>
20590 #include <stdarg.h>
20591 #include <string.h>
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_compile") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.$ac_objext; then
20619 ac_cv_header_stdc=yes
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_cv_header_stdc=no
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629 if test $ac_cv_header_stdc = yes; then
20630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20631 cat >conftest.$ac_ext <<_ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20637 #include <string.h>
20640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20641 $EGREP "memchr" >/dev/null 2>&1; then
20644 ac_cv_header_stdc=no
20650 if test $ac_cv_header_stdc = yes; then
20651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20658 #include <stdlib.h>
20661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20662 $EGREP "free" >/dev/null 2>&1; then
20665 ac_cv_header_stdc=no
20671 if test $ac_cv_header_stdc = yes; then
20672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20673 if test "$cross_compiling" = yes; then
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20683 #include <stdlib.h>
20684 #if ((' ' & 0x0FF) == 0x020)
20685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20688 # define ISLOWER(c) \
20689 (('a' <= (c) && (c) <= 'i') \
20690 || ('j' <= (c) && (c) <= 'r') \
20691 || ('s' <= (c) && (c) <= 'z'))
20692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20700 for (i = 0; i < 256; i++)
20701 if (XOR (islower (i), ISLOWER (i))
20702 || toupper (i) != TOUPPER (i))
20707 rm -f conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_link") 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20729 echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ( exit $ac_status )
20734 ac_cv_header_stdc=no
20736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20742 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20743 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20744 if test $ac_cv_header_stdc = yes; then
20746 cat >>confdefs.h <<\_ACEOF
20747 @%:@define STDC_HEADERS 1
20753 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20754 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20755 if test "${knfsd_cv_glibc2+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20765 #include <features.h>
20766 #if !defined(__GLIBC__)
20771 if { (ac_try="$ac_cpp conftest.$ac_ext"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } >/dev/null && {
20784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20787 knfsd_cv_glibc2=yes
20789 echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20795 rm -f conftest.err conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20799 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20800 if test $knfsd_cv_glibc2 = yes; then
20801 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20802 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20806 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20807 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20808 if test "${knfsd_cv_bsd_signals+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 if test "$cross_compiling" = yes; then
20812 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20813 See \`config.log' for more details." >&5
20814 echo "$as_me: error: cannot run test program while cross compiling
20815 See \`config.log' for more details." >&2;}
20816 { (exit 1); exit 1; }; }
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20825 #include <signal.h>
20826 #include <unistd.h>
20827 #include <sys/wait.h>
20829 static int counter = 0;
20830 static RETSIGTYPE handler(int num) { counter++; }
20835 if ((s = fork()) < 0) return 1;
20837 if (wait(&s) < 0) return 1;
20838 return WIFSIGNALED(s)? 1 : 0;
20841 signal(SIGHUP, handler);
20842 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20843 return (counter == 2)? 0 : 1;
20847 rm -f conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 knfsd_cv_bsd_signals=yes
20869 echo "$as_me: program exited with status $ac_status" >&5
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ( exit $ac_status )
20874 knfsd_cv_bsd_signals=no
20876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20881 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20882 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20883 test $knfsd_cv_bsd_signals = yes &&
20884 cat >>confdefs.h <<\_ACEOF
20885 @%:@define HAVE_BSD_SIGNALS 1
20890 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20891 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20892 if test "${ac_cv_func_gethostbyname+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 cat >conftest.$ac_ext <<_ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20903 #define gethostbyname innocuous_gethostbyname
20905 /* System header to define __stub macros and hopefully few prototypes,
20906 which can conflict with char gethostbyname (); below.
20907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20908 <limits.h> exists even on freestanding compilers. */
20911 # include <limits.h>
20913 # include <assert.h>
20916 #undef gethostbyname
20918 /* Override any GCC internal prototype to avoid an error.
20919 Use char because int might match the return type of a GCC
20920 builtin and then its argument prototype would still apply. */
20924 char gethostbyname ();
20925 /* The GNU C library defines this for functions which it implements
20926 to always fail with ENOSYS. Some functions are actually named
20927 something starting with __ and the normal name is an alias. */
20928 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20935 return gethostbyname ();
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (ac_try="$ac_link"
20942 case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_link") 2>conftest.er1
20949 grep -v '^ *+' conftest.er1 >conftest.err
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } && {
20954 test -z "$ac_c_werror_flag" ||
20955 test ! -s conftest.err
20956 } && test -s conftest$ac_exeext &&
20957 $as_test_x conftest$ac_exeext; then
20958 ac_cv_func_gethostbyname=yes
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_cv_func_gethostbyname=no
20966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20967 conftest$ac_exeext conftest.$ac_ext
20969 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20970 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20971 if test $ac_cv_func_gethostbyname = yes; then
20974 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20975 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20976 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 ac_check_lib_save_LIBS=$LIBS
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20994 char gethostbyname ();
20998 return gethostbyname ();
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_link") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest$ac_exeext &&
21020 $as_test_x conftest$ac_exeext; then
21021 ac_cv_lib_nsl_gethostbyname=yes
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_lib_nsl_gethostbyname=no
21029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21034 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21035 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21043 { echo "$as_me:$LINENO: checking for connect" >&5
21044 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21045 if test "${ac_cv_func_connect+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21056 #define connect innocuous_connect
21058 /* System header to define __stub macros and hopefully few prototypes,
21059 which can conflict with char connect (); below.
21060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21061 <limits.h> exists even on freestanding compilers. */
21064 # include <limits.h>
21066 # include <assert.h>
21071 /* Override any GCC internal prototype to avoid an error.
21072 Use char because int might match the return type of a GCC
21073 builtin and then its argument prototype would still apply. */
21078 /* The GNU C library defines this for functions which it implements
21079 to always fail with ENOSYS. Some functions are actually named
21080 something starting with __ and the normal name is an alias. */
21081 #if defined __stub_connect || defined __stub___connect
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest$ac_exeext &&
21110 $as_test_x conftest$ac_exeext; then
21111 ac_cv_func_connect=yes
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_cv_func_connect=no
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120 conftest$ac_exeext conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21123 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21124 if test $ac_cv_func_connect = yes; then
21127 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21128 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21129 if test "${ac_cv_lib_socket_connect+set}" = set; then
21130 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 ac_check_lib_save_LIBS=$LIBS
21133 LIBS="-lsocket $LIBNSL $LIBS"
21134 cat >conftest.$ac_ext <<_ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21141 /* Override any GCC internal prototype to avoid an error.
21142 Use char because int might match the return type of a GCC
21143 builtin and then its argument prototype would still apply. */
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_link") 2>conftest.er1
21165 grep -v '^ *+' conftest.er1 >conftest.err
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest$ac_exeext &&
21173 $as_test_x conftest$ac_exeext; then
21174 ac_cv_lib_socket_connect=yes
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_cv_lib_socket_connect=no
21182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21183 conftest$ac_exeext conftest.$ac_ext
21184 LIBS=$ac_check_lib_save_LIBS
21186 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21187 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21188 if test $ac_cv_lib_socket_connect = yes; then
21189 LIBSOCKET="-lsocket"
21191 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21192 echo "$as_me: error: Function 'socket' not found." >&2;}
21193 { (exit 1); exit 1; }; }
21199 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21200 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21201 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_check_lib_save_LIBS=$LIBS
21205 LIBS="-lcrypt $LIBS"
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21213 /* Override any GCC internal prototype to avoid an error.
21214 Use char because int might match the return type of a GCC
21215 builtin and then its argument prototype would still apply. */
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (ac_try="$ac_link"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_link") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest$ac_exeext &&
21245 $as_test_x conftest$ac_exeext; then
21246 ac_cv_lib_crypt_crypt=yes
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_lib_crypt_crypt=no
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255 conftest$ac_exeext conftest.$ac_ext
21256 LIBS=$ac_check_lib_save_LIBS
21258 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21259 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21260 if test $ac_cv_lib_crypt_crypt = yes; then
21264 if test "$enable_nfsv4" = yes; then
21265 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21266 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21267 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 ac_check_lib_save_LIBS=$LIBS
21271 LIBS="-levent $LIBS"
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21279 /* Override any GCC internal prototype to avoid an error.
21280 Use char because int might match the return type of a GCC
21281 builtin and then its argument prototype would still apply. */
21285 char event_dispatch ();
21289 return event_dispatch ();
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_link") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest$ac_exeext &&
21311 $as_test_x conftest$ac_exeext; then
21312 ac_cv_lib_event_event_dispatch=yes
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_cv_lib_event_event_dispatch=no
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21321 conftest$ac_exeext conftest.$ac_ext
21322 LIBS=$ac_check_lib_save_LIBS
21324 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21325 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21326 if test $ac_cv_lib_event_event_dispatch = yes; then
21329 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21330 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21331 { (exit 1); exit 1; }; }
21334 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21335 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21336 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 ac_check_lib_save_LIBS=$LIBS
21340 LIBS="-lnfsidmap $LIBS"
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21348 /* Override any GCC internal prototype to avoid an error.
21349 Use char because int might match the return type of a GCC
21350 builtin and then its argument prototype would still apply. */
21354 char nfs4_init_name_mapping ();
21358 return nfs4_init_name_mapping ();
21363 rm -f conftest.$ac_objext conftest$ac_exeext
21364 if { (ac_try="$ac_link"
21365 case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_link") 2>conftest.er1
21372 grep -v '^ *+' conftest.er1 >conftest.err
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } && {
21377 test -z "$ac_c_werror_flag" ||
21378 test ! -s conftest.err
21379 } && test -s conftest$ac_exeext &&
21380 $as_test_x conftest$ac_exeext; then
21381 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21390 conftest$ac_exeext conftest.$ac_ext
21391 LIBS=$ac_check_lib_save_LIBS
21393 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21394 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21395 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21398 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21399 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21400 { (exit 1); exit 1; }; }
21404 for ac_header in event.h
21406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 ac_res=`eval echo '${'$as_ac_Header'}'`
21414 { echo "$as_me:$LINENO: result: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21417 # Is the header compilable?
21418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 $ac_includes_default
21427 @%:@include <$ac_header>
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_compile") 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest.$ac_objext; then
21446 ac_header_compiler=yes
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 ac_header_compiler=no
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21456 echo "${ECHO_T}$ac_header_compiler" >&6; }
21458 # Is the header present?
21459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 @%:@include <$ac_header>
21469 if { (ac_try="$ac_cpp conftest.$ac_ext"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } >/dev/null && {
21482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21485 ac_header_preproc=yes
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_header_preproc=no
21493 rm -f conftest.err conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21495 echo "${ECHO_T}$ac_header_preproc" >&6; }
21497 # So? What about this header?
21498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21504 ac_header_preproc=yes
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21520 @%:@@%:@ ------------------------------- @%:@@%:@
21521 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21522 @%:@@%:@ ------------------------------- @%:@@%:@
21524 ) | sed "s/^/$as_me: WARNING: /" >&2
21527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21532 eval "$as_ac_Header=\$ac_header_preproc"
21534 ac_res=`eval echo '${'$as_ac_Header'}'`
21535 { echo "$as_me:$LINENO: result: $ac_res" >&5
21536 echo "${ECHO_T}$ac_res" >&6; }
21539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21540 cat >>confdefs.h <<_ACEOF
21541 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21545 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21546 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21547 { (exit 1); exit 1; }; }
21553 for ac_header in nfsidmap.h
21555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 ac_res=`eval echo '${'$as_ac_Header'}'`
21563 { echo "$as_me:$LINENO: result: $ac_res" >&5
21564 echo "${ECHO_T}$ac_res" >&6; }
21566 # Is the header compilable?
21567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 @%:@include <$ac_header>
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21595 ac_header_compiler=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_header_compiler=no
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21605 echo "${ECHO_T}$ac_header_compiler" >&6; }
21607 # Is the header present?
21608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 @%:@include <$ac_header>
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } >/dev/null && {
21631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21634 ac_header_preproc=yes
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_header_preproc=no
21642 rm -f conftest.err conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21644 echo "${ECHO_T}$ac_header_preproc" >&6; }
21646 # So? What about this header?
21647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21653 ac_header_preproc=yes
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21669 @%:@@%:@ ------------------------------- @%:@@%:@
21670 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21671 @%:@@%:@ ------------------------------- @%:@@%:@
21673 ) | sed "s/^/$as_me: WARNING: /" >&2
21676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 eval "$as_ac_Header=\$ac_header_preproc"
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684 { echo "$as_me:$LINENO: result: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21689 cat >>confdefs.h <<_ACEOF
21690 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21694 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21695 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21696 { (exit 1); exit 1; }; }
21701 if test "$enable_gss" = yes; then
21704 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21705 if test -n "$ac_tool_prefix"; then
21706 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21707 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21710 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 case $PKG_CONFIG in
21715 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719 for as_dir in $PATH
21722 test -z "$as_dir" && as_dir=.
21723 for ac_exec_ext in '' $ac_executable_extensions; do
21724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21725 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21737 if test -n "$PKG_CONFIG"; then
21738 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21739 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21741 { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21747 if test -z "$ac_cv_path_PKG_CONFIG"; then
21748 ac_pt_PKG_CONFIG=$PKG_CONFIG
21749 # Extract the first word of "pkg-config", so it can be a program name with args.
21750 set dummy pkg-config; ac_word=$2
21751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21753 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 case $ac_pt_PKG_CONFIG in
21758 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762 for as_dir in $PATH
21765 test -z "$as_dir" && as_dir=.
21766 for ac_exec_ext in '' $ac_executable_extensions; do
21767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21768 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21779 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21780 if test -n "$ac_pt_PKG_CONFIG"; then
21781 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21782 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21784 { echo "$as_me:$LINENO: result: no" >&5
21785 echo "${ECHO_T}no" >&6; }
21788 if test "x$ac_pt_PKG_CONFIG" = x; then
21791 case $cross_compiling:$ac_tool_warned in
21793 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21794 whose name does not start with the host triplet. If you think this
21795 configuration is useful to you, please write to autoconf@gnu.org." >&5
21796 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21797 whose name does not start with the host triplet. If you think this
21798 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21799 ac_tool_warned=yes ;;
21801 PKG_CONFIG=$ac_pt_PKG_CONFIG
21804 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21808 if test -n "$PKG_CONFIG"; then
21809 _pkg_min_version=0.9.0
21810 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21811 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21812 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21813 { echo "$as_me:$LINENO: result: yes" >&5
21814 echo "${ECHO_T}yes" >&6; }
21816 { echo "$as_me:$LINENO: result: no" >&5
21817 echo "${ECHO_T}no" >&6; }
21824 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21825 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21827 if test -n "$PKG_CONFIG"; then
21828 if test -n "$RPCSECGSS_CFLAGS"; then
21829 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21831 if test -n "$PKG_CONFIG" && \
21832 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21833 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; then
21837 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21845 if test -n "$PKG_CONFIG"; then
21846 if test -n "$RPCSECGSS_LIBS"; then
21847 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21849 if test -n "$PKG_CONFIG" && \
21850 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21851 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; then
21855 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21866 if test $pkg_failed = yes; then
21868 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21869 _pkg_short_errors_supported=yes
21871 _pkg_short_errors_supported=no
21873 if test $_pkg_short_errors_supported = yes; then
21874 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21876 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21878 # Put the nasty error message in config.log where it belongs
21879 echo "$RPCSECGSS_PKG_ERRORS" >&5
21881 { echo "$as_me:$LINENO: result: no" >&5
21882 echo "${ECHO_T}no" >&6; }
21883 { { 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
21884 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;}
21885 { (exit 1); exit 1; }; }
21888 elif test $pkg_failed = untried; then
21889 { { 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
21890 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;}
21891 { (exit 1); exit 1; }; }
21895 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21896 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21897 { echo "$as_me:$LINENO: result: yes" >&5
21898 echo "${ECHO_T}yes" >&6; }
21903 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21904 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21906 if test -n "$PKG_CONFIG"; then
21907 if test -n "$GSSAPI_CFLAGS"; then
21908 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21910 if test -n "$PKG_CONFIG" && \
21911 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21912 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; then
21916 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21924 if test -n "$PKG_CONFIG"; then
21925 if test -n "$GSSAPI_LIBS"; then
21926 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21928 if test -n "$PKG_CONFIG" && \
21929 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21930 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; then
21934 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21945 if test $pkg_failed = yes; then
21947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21948 _pkg_short_errors_supported=yes
21950 _pkg_short_errors_supported=no
21952 if test $_pkg_short_errors_supported = yes; then
21953 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21955 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21957 # Put the nasty error message in config.log where it belongs
21958 echo "$GSSAPI_PKG_ERRORS" >&5
21960 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21964 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21965 installed software in a non-standard prefix.
21967 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21968 and GSSAPI_LIBS to avoid the need to call pkg-config.
21969 See the pkg-config man page for more details.
21971 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21976 installed software in a non-standard prefix.
21978 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21979 and GSSAPI_LIBS to avoid the need to call pkg-config.
21980 See the pkg-config man page for more details.
21982 { (exit 1); exit 1; }; }
21983 elif test $pkg_failed = untried; then
21984 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21985 is in your PATH or set the PKG_CONFIG environment variable to the full
21986 path to pkg-config.
21988 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21989 and GSSAPI_LIBS to avoid the need to call pkg-config.
21990 See the pkg-config man page for more details.
21992 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21993 See \`config.log' for more details." >&5
21994 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21995 is in your PATH or set the PKG_CONFIG environment variable to the full
21996 path to pkg-config.
21998 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21999 and GSSAPI_LIBS to avoid the need to call pkg-config.
22000 See the pkg-config man page for more details.
22002 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22003 See \`config.log' for more details." >&2;}
22004 { (exit 1); exit 1; }; }
22006 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22007 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22008 { echo "$as_me:$LINENO: result: yes" >&5
22009 echo "${ECHO_T}yes" >&6; }
22015 if test "$knfsd_cv_glibc2" = no; then
22016 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22017 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22018 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 ac_check_lib_save_LIBS=$LIBS
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22030 /* Override any GCC internal prototype to avoid an error.
22031 Use char because int might match the return type of a GCC
22032 builtin and then its argument prototype would still apply. */
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_link") 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest$ac_exeext &&
22062 $as_test_x conftest$ac_exeext; then
22063 ac_cv_lib_bsd_daemon=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_cv_lib_bsd_daemon=no
22071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22072 conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22075 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22076 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22077 if test $ac_cv_lib_bsd_daemon = yes; then
22086 if test "$enable_gss" = yes; then
22088 for ac_header in nfsidmap.h
22090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 ac_res=`eval echo '${'$as_ac_Header'}'`
22098 { echo "$as_me:$LINENO: result: $ac_res" >&5
22099 echo "${ECHO_T}$ac_res" >&6; }
22101 # Is the header compilable?
22102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 $ac_includes_default
22111 @%:@include <$ac_header>
22113 rm -f conftest.$ac_objext
22114 if { (ac_try="$ac_compile"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_compile") 2>conftest.er1
22122 grep -v '^ *+' conftest.er1 >conftest.err
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest.$ac_objext; then
22130 ac_header_compiler=yes
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22135 ac_header_compiler=no
22138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22140 echo "${ECHO_T}$ac_header_compiler" >&6; }
22142 # Is the header present?
22143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 @%:@include <$ac_header>
22153 if { (ac_try="$ac_cpp conftest.$ac_ext"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1 >conftest.err
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } >/dev/null && {
22166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22169 ac_header_preproc=yes
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22174 ac_header_preproc=no
22177 rm -f conftest.err conftest.$ac_ext
22178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22179 echo "${ECHO_T}$ac_header_preproc" >&6; }
22181 # So? What about this header?
22182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22188 ac_header_preproc=yes
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22204 @%:@@%:@ ------------------------------- @%:@@%:@
22205 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22206 @%:@@%:@ ------------------------------- @%:@@%:@
22208 ) | sed "s/^/$as_me: WARNING: /" >&2
22211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 eval "$as_ac_Header=\$ac_header_preproc"
22218 ac_res=`eval echo '${'$as_ac_Header'}'`
22219 { echo "$as_me:$LINENO: result: $ac_res" >&5
22220 echo "${ECHO_T}$ac_res" >&6; }
22223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22224 cat >>confdefs.h <<_ACEOF
22225 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22229 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22230 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22231 { (exit 1); exit 1; }; }
22237 for ac_header in spkm3.h
22239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 ac_res=`eval echo '${'$as_ac_Header'}'`
22247 { echo "$as_me:$LINENO: result: $ac_res" >&5
22248 echo "${ECHO_T}$ac_res" >&6; }
22250 # Is the header compilable?
22251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 $ac_includes_default
22260 @%:@include <$ac_header>
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest.$ac_objext; then
22279 ac_header_compiler=yes
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_header_compiler=no
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22289 echo "${ECHO_T}$ac_header_compiler" >&6; }
22291 # Is the header present?
22292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 @%:@include <$ac_header>
22302 if { (ac_try="$ac_cpp conftest.$ac_ext"
22303 case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22310 grep -v '^ *+' conftest.er1 >conftest.err
22312 cat conftest.err >&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } >/dev/null && {
22315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22316 test ! -s conftest.err
22318 ac_header_preproc=yes
22320 echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22323 ac_header_preproc=no
22326 rm -f conftest.err conftest.$ac_ext
22327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22328 echo "${ECHO_T}$ac_header_preproc" >&6; }
22330 # So? What about this header?
22331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22337 ac_header_preproc=yes
22340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22353 @%:@@%:@ ------------------------------- @%:@@%:@
22354 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22355 @%:@@%:@ ------------------------------- @%:@@%:@
22357 ) | sed "s/^/$as_me: WARNING: /" >&2
22360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 eval "$as_ac_Header=\$ac_header_preproc"
22367 ac_res=`eval echo '${'$as_ac_Header'}'`
22368 { echo "$as_me:$LINENO: result: $ac_res" >&5
22369 echo "${ECHO_T}$ac_res" >&6; }
22372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22373 cat >>confdefs.h <<_ACEOF
22374 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22378 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22379 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22384 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22385 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22386 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 ac_check_lib_save_LIBS=$LIBS
22390 LIBS="-lnfsidmap $LIBS"
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22398 /* Override any GCC internal prototype to avoid an error.
22399 Use char because int might match the return type of a GCC
22400 builtin and then its argument prototype would still apply. */
22404 char nfs4_set_debug ();
22408 return nfs4_set_debug ();
22413 rm -f conftest.$ac_objext conftest$ac_exeext
22414 if { (ac_try="$ac_link"
22415 case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_link") 2>conftest.er1
22422 grep -v '^ *+' conftest.er1 >conftest.err
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest$ac_exeext &&
22430 $as_test_x conftest$ac_exeext; then
22431 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 ac_cv_lib_nfsidmap_nfs4_set_debug=no
22439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22440 conftest$ac_exeext conftest.$ac_ext
22441 LIBS=$ac_check_lib_save_LIBS
22443 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22444 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22445 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22447 cat >>confdefs.h <<\_ACEOF
22448 @%:@define HAVE_NFS4_SET_DEBUG 1
22455 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22456 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22458 # Check whether --with-krb5 was given.
22459 if test "${with_krb5+set}" = set; then
22460 withval=$with_krb5; case "$withval" in
22465 krb5_with="$withval"
22472 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22473 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22475 if test -f $dir/bin/krb5-config; then
22476 K5CONFIG=$dir/bin/krb5-config
22477 elif test -f "/usr/kerberos/bin/krb5-config"; then
22478 K5CONFIG="/usr/kerberos/bin/krb5-config"
22479 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22480 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22482 if test "$K5CONFIG" != ""; then
22483 KRBCFLAGS=`$K5CONFIG --cflags`
22484 KRBLIBS=`$K5CONFIG --libs gssapi`
22485 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22487 cat >>confdefs.h <<_ACEOF
22488 @%:@define KRB5_VERSION $K5VERS
22491 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22492 \( -f $dir/lib/libgssapi_krb5.a -o \
22493 -f $dir/lib/libgssapi_krb5.so \) ; then
22495 cat >>confdefs.h <<\_ACEOF
22496 @%:@define HAVE_KRB5 1
22500 if test $K5VERS -le 131; then
22502 cat >>confdefs.h <<\_ACEOF
22503 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22507 gssapi_lib=gssapi_krb5
22509 elif test \( -f $dir/include/heim_err.h -o\
22510 -f $dir/include/heimdal/heim_err.h \) -a \
22511 -f $dir/lib/libroken.a; then
22513 cat >>confdefs.h <<\_ACEOF
22514 @%:@define HAVE_HEIMDAL 1
22523 if test "x$KRBDIR" = "x"; then
22524 if test "x$krb5_with" = "x"; then
22525 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22526 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22527 { (exit 1); exit 1; }; }
22529 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22530 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22531 { (exit 1); exit 1; }; }
22534 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22535 echo "${ECHO_T}$KRBDIR" >&6; }
22537 echo "The current KRBDIR is $KRBDIR"
22538 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22539 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22541 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22544 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22547 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22548 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22549 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22550 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 ac_check_lib_save_LIBS=$LIBS
22554 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22555 cat >conftest.$ac_ext <<_ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22562 /* Override any GCC internal prototype to avoid an error.
22563 Use char because int might match the return type of a GCC
22564 builtin and then its argument prototype would still apply. */
22568 char gss_krb5_export_lucid_sec_context ();
22572 return gss_krb5_export_lucid_sec_context ();
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>conftest.er1
22586 grep -v '^ *+' conftest.er1 >conftest.err
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } && {
22591 test -z "$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 } && test -s conftest$ac_exeext &&
22594 $as_test_x conftest$ac_exeext; then
22595 eval "$as_ac_Lib=yes"
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 eval "$as_ac_Lib=no"
22603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22604 conftest$ac_exeext conftest.$ac_ext
22605 LIBS=$ac_check_lib_save_LIBS
22607 ac_res=`eval echo '${'$as_ac_Lib'}'`
22608 { echo "$as_me:$LINENO: result: $ac_res" >&5
22609 echo "${ECHO_T}$ac_res" >&6; }
22610 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22612 cat >>confdefs.h <<\_ACEOF
22613 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22618 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22619 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22620 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22621 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 ac_check_lib_save_LIBS=$LIBS
22625 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22633 /* Override any GCC internal prototype to avoid an error.
22634 Use char because int might match the return type of a GCC
22635 builtin and then its argument prototype would still apply. */
22639 char gss_krb5_set_allowable_enctypes ();
22643 return gss_krb5_set_allowable_enctypes ();
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_link") 2>conftest.er1
22657 grep -v '^ *+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest$ac_exeext &&
22665 $as_test_x conftest$ac_exeext; then
22666 eval "$as_ac_Lib=yes"
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22671 eval "$as_ac_Lib=no"
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675 conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22678 ac_res=`eval echo '${'$as_ac_Lib'}'`
22679 { echo "$as_me:$LINENO: result: $ac_res" >&5
22680 echo "${ECHO_T}$ac_res" >&6; }
22681 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22683 cat >>confdefs.h <<\_ACEOF
22684 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22689 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22690 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22691 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22692 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22695 ac_check_lib_save_LIBS=$LIBS
22696 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22697 cat >conftest.$ac_ext <<_ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h. */
22704 /* Override any GCC internal prototype to avoid an error.
22705 Use char because int might match the return type of a GCC
22706 builtin and then its argument prototype would still apply. */
22710 char gss_krb5_ccache_name ();
22714 return gss_krb5_ccache_name ();
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726 (eval "$ac_link") 2>conftest.er1
22728 grep -v '^ *+' conftest.er1 >conftest.err
22730 cat conftest.err >&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } && {
22733 test -z "$ac_c_werror_flag" ||
22734 test ! -s conftest.err
22735 } && test -s conftest$ac_exeext &&
22736 $as_test_x conftest$ac_exeext; then
22737 eval "$as_ac_Lib=yes"
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 eval "$as_ac_Lib=no"
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746 conftest$ac_exeext conftest.$ac_ext
22747 LIBS=$ac_check_lib_save_LIBS
22749 ac_res=`eval echo '${'$as_ac_Lib'}'`
22750 { echo "$as_me:$LINENO: result: $ac_res" >&5
22751 echo "${ECHO_T}$ac_res" >&6; }
22752 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22754 cat >>confdefs.h <<\_ACEOF
22755 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
22761 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22762 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22763 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22774 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22775 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22776 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 ac_check_lib_save_LIBS=$LIBS
22780 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22788 /* Override any GCC internal prototype to avoid an error.
22789 Use char because int might match the return type of a GCC
22790 builtin and then its argument prototype would still apply. */
22794 char authgss_create_default ();
22798 return authgss_create_default ();
22803 rm -f conftest.$ac_objext conftest$ac_exeext
22804 if { (ac_try="$ac_link"
22805 case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_link") 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest$ac_exeext &&
22820 $as_test_x conftest$ac_exeext; then
22821 ac_cv_lib_rpcsecgss_authgss_create_default=yes
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_cv_lib_rpcsecgss_authgss_create_default=no
22829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22830 conftest$ac_exeext conftest.$ac_ext
22831 LIBS=$ac_check_lib_save_LIBS
22833 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22834 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22835 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22838 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22839 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22840 { (exit 1); exit 1; }; }
22843 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22844 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22845 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22846 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 ac_check_lib_save_LIBS=$LIBS
22849 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 /* Override any GCC internal prototype to avoid an error.
22858 Use char because int might match the return type of a GCC
22859 builtin and then its argument prototype would still apply. */
22863 char authgss_set_debug_level ();
22867 return authgss_set_debug_level ();
22872 rm -f conftest.$ac_objext conftest$ac_exeext
22873 if { (ac_try="$ac_link"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_link") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest$ac_exeext &&
22889 $as_test_x conftest$ac_exeext; then
22890 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899 conftest$ac_exeext conftest.$ac_ext
22900 LIBS=$ac_check_lib_save_LIBS
22902 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22903 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22904 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22906 cat >>confdefs.h <<\_ACEOF
22907 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22938 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22939 malloc.h memory.h netdb.h netinet/in.h paths.h \
22940 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22941 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22942 syslog.h unistd.h com_err.h et/com_err.h \
22945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 ac_res=`eval echo '${'$as_ac_Header'}'`
22953 { echo "$as_me:$LINENO: result: $ac_res" >&5
22954 echo "${ECHO_T}$ac_res" >&6; }
22956 # Is the header compilable?
22957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22965 $ac_includes_default
22966 @%:@include <$ac_header>
22968 rm -f conftest.$ac_objext
22969 if { (ac_try="$ac_compile"
22970 case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_compile") 2>conftest.er1
22977 grep -v '^ *+' conftest.er1 >conftest.err
22979 cat conftest.err >&5
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); } && {
22982 test -z "$ac_c_werror_flag" ||
22983 test ! -s conftest.err
22984 } && test -s conftest.$ac_objext; then
22985 ac_header_compiler=yes
22987 echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22990 ac_header_compiler=no
22993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22995 echo "${ECHO_T}$ac_header_compiler" >&6; }
22997 # Is the header present?
22998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23000 cat >conftest.$ac_ext <<_ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 @%:@include <$ac_header>
23008 if { (ac_try="$ac_cpp conftest.$ac_ext"
23009 case "(($ac_try" in
23010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011 *) ac_try_echo=$ac_try;;
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } >/dev/null && {
23021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23022 test ! -s conftest.err
23024 ac_header_preproc=yes
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23029 ac_header_preproc=no
23032 rm -f conftest.err conftest.$ac_ext
23033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23034 echo "${ECHO_T}$ac_header_preproc" >&6; }
23036 # So? What about this header?
23037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23043 ac_header_preproc=yes
23046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23059 @%:@@%:@ ------------------------------- @%:@@%:@
23060 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23061 @%:@@%:@ ------------------------------- @%:@@%:@
23063 ) | sed "s/^/$as_me: WARNING: /" >&2
23066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 eval "$as_ac_Header=\$ac_header_preproc"
23073 ac_res=`eval echo '${'$as_ac_Header'}'`
23074 { echo "$as_me:$LINENO: result: $ac_res" >&5
23075 echo "${ECHO_T}$ac_res" >&6; }
23078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23079 cat >>confdefs.h <<_ACEOF
23080 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23088 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23090 if test "${ac_cv_c_const+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23103 /* FIXME: Include the comments suggested by Paul. */
23104 #ifndef __cplusplus
23105 /* Ultrix mips cc rejects this. */
23106 typedef int charset[2];
23108 /* SunOS 4.1.1 cc rejects this. */
23109 char const *const *pcpcc;
23111 /* NEC SVR4.0.2 mips cc rejects this. */
23112 struct point {int x, y;};
23113 static struct point const zero = {0,0};
23114 /* AIX XL C 1.02.0.0 rejects this.
23115 It does not let you subtract one const X* pointer from another in
23116 an arm of an if-expression whose if-part is not a constant
23118 const char *g = "string";
23119 pcpcc = &g + (g ? g-g : 0);
23120 /* HPUX 7.0 cc rejects these. */
23122 ppc = (char**) pcpcc;
23123 pcpcc = (char const *const *) ppc;
23124 { /* SCO 3.2v4 cc rejects this. */
23126 char const *s = 0 ? (char *) 0 : (char const *) 0;
23131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23132 int x[] = {25, 17};
23133 const int *foo = &x[0];
23136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23137 typedef const int *iptr;
23141 { /* AIX XL C 1.02.0.0 rejects this saying
23142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23143 struct s { int j; const int *ap[3]; };
23144 struct s *b; b->j = 5;
23146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23147 const int foo = 10;
23148 if (!foo) return 0;
23150 return !cs[0] && !zero.x;
23157 rm -f conftest.$ac_objext
23158 if { (ac_try="$ac_compile"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_compile") 2>conftest.er1
23166 grep -v '^ *+' conftest.er1 >conftest.err
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } && {
23171 test -z "$ac_c_werror_flag" ||
23172 test ! -s conftest.err
23173 } && test -s conftest.$ac_objext; then
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23184 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23185 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23186 if test $ac_cv_c_const = no; then
23188 cat >>confdefs.h <<\_ACEOF
23194 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23195 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23196 if test "${ac_cv_type_uid_t+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 cat >conftest.$ac_ext <<_ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 #include <sys/types.h>
23208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23209 $EGREP "uid_t" >/dev/null 2>&1; then
23210 ac_cv_type_uid_t=yes
23212 ac_cv_type_uid_t=no
23217 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23218 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23219 if test $ac_cv_type_uid_t = no; then
23221 cat >>confdefs.h <<\_ACEOF
23222 @%:@define uid_t int
23226 cat >>confdefs.h <<\_ACEOF
23227 @%:@define gid_t int
23232 { echo "$as_me:$LINENO: checking for inline" >&5
23233 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23234 if test "${ac_cv_c_inline+set}" = set; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 for ac_kw in inline __inline__ __inline; do
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 #ifndef __cplusplus
23247 static $ac_kw foo_t static_foo () {return 0; }
23248 $ac_kw foo_t foo () {return 0; }
23252 rm -f conftest.$ac_objext
23253 if { (ac_try="$ac_compile"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23261 grep -v '^ *+' conftest.er1 >conftest.err
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23269 ac_cv_c_inline=$ac_kw
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23278 test "$ac_cv_c_inline" != no && break
23282 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23283 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23286 case $ac_cv_c_inline in
23289 case $ac_cv_c_inline in
23291 *) ac_val=$ac_cv_c_inline;;
23293 cat >>confdefs.h <<_ACEOF
23294 #ifndef __cplusplus
23295 #define inline $ac_val
23301 { echo "$as_me:$LINENO: checking for off_t" >&5
23302 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23303 if test "${ac_cv_type_off_t+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 $ac_includes_default
23313 typedef off_t ac__type_new_;
23317 if ((ac__type_new_ *) 0)
23319 if (sizeof (ac__type_new_))
23325 rm -f conftest.$ac_objext
23326 if { (ac_try="$ac_compile"
23327 case "(($ac_try" in
23328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329 *) ac_try_echo=$ac_try;;
23331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332 (eval "$ac_compile") 2>conftest.er1
23334 grep -v '^ *+' conftest.er1 >conftest.err
23336 cat conftest.err >&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } && {
23339 test -z "$ac_c_werror_flag" ||
23340 test ! -s conftest.err
23341 } && test -s conftest.$ac_objext; then
23342 ac_cv_type_off_t=yes
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 ac_cv_type_off_t=no
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23353 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23354 if test $ac_cv_type_off_t = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 @%:@define off_t long int
23364 { echo "$as_me:$LINENO: checking for pid_t" >&5
23365 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23366 if test "${ac_cv_type_pid_t+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 cat >conftest.$ac_ext <<_ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 $ac_includes_default
23376 typedef pid_t ac__type_new_;
23380 if ((ac__type_new_ *) 0)
23382 if (sizeof (ac__type_new_))
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23397 grep -v '^ *+' conftest.er1 >conftest.err
23399 cat conftest.err >&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest.$ac_objext; then
23405 ac_cv_type_pid_t=yes
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_cv_type_pid_t=no
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23415 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23416 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23417 if test $ac_cv_type_pid_t = yes; then
23421 cat >>confdefs.h <<_ACEOF
23422 @%:@define pid_t int
23427 { echo "$as_me:$LINENO: checking for size_t" >&5
23428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23429 if test "${ac_cv_type_size_t+set}" = set; then
23430 echo $ECHO_N "(cached) $ECHO_C" >&6
23432 cat >conftest.$ac_ext <<_ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h. */
23438 $ac_includes_default
23439 typedef size_t ac__type_new_;
23443 if ((ac__type_new_ *) 0)
23445 if (sizeof (ac__type_new_))
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_compile") 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest.$ac_objext; then
23468 ac_cv_type_size_t=yes
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23473 ac_cv_type_size_t=no
23476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23478 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23479 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23480 if test $ac_cv_type_size_t = yes; then
23484 cat >>confdefs.h <<_ACEOF
23485 @%:@define size_t unsigned int
23490 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23491 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23492 if test "${ac_cv_header_time+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23495 cat >conftest.$ac_ext <<_ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501 #include <sys/types.h>
23502 #include <sys/time.h>
23508 if ((struct tm *) 0)
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_compile") 2>conftest.er1
23523 grep -v '^ *+' conftest.er1 >conftest.err
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest.$ac_objext; then
23531 ac_cv_header_time=yes
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 ac_cv_header_time=no
23539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23542 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23543 if test $ac_cv_header_time = yes; then
23545 cat >>confdefs.h <<\_ACEOF
23546 @%:@define TIME_WITH_SYS_TIME 1
23551 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23552 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23553 if test "${ac_cv_struct_tm+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 cat >conftest.$ac_ext <<_ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23562 #include <sys/types.h>
23569 int *p = &tm.tm_sec;
23575 rm -f conftest.$ac_objext
23576 if { (ac_try="$ac_compile"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_compile") 2>conftest.er1
23584 grep -v '^ *+' conftest.er1 >conftest.err
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest.$ac_objext; then
23592 ac_cv_struct_tm=time.h
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 ac_cv_struct_tm=sys/time.h
23600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23603 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23604 if test $ac_cv_struct_tm = sys/time.h; then
23606 cat >>confdefs.h <<\_ACEOF
23607 @%:@define TM_IN_SYS_TIME 1
23613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23614 # for constant arguments. Useless!
23615 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23616 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23617 if test "${ac_cv_working_alloca_h+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 cat >conftest.$ac_ext <<_ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 @%:@include <alloca.h>
23630 char *p = (char *) alloca (2 * sizeof (int));
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (ac_try="$ac_link"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_link") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext &&
23653 $as_test_x conftest$ac_exeext; then
23654 ac_cv_working_alloca_h=yes
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 ac_cv_working_alloca_h=no
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663 conftest$ac_exeext conftest.$ac_ext
23665 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23666 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23667 if test $ac_cv_working_alloca_h = yes; then
23669 cat >>confdefs.h <<\_ACEOF
23670 @%:@define HAVE_ALLOCA_H 1
23675 { echo "$as_me:$LINENO: checking for alloca" >&5
23676 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23677 if test "${ac_cv_func_alloca_works+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23687 # define alloca __builtin_alloca
23690 # include <malloc.h>
23691 # define alloca _alloca
23693 # ifdef HAVE_ALLOCA_H
23694 # include <alloca.h>
23699 # ifndef alloca /* predefined by HP cc +Olibcalls */
23710 char *p = (char *) alloca (1);
23716 rm -f conftest.$ac_objext conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_link") 2>conftest.er1
23725 grep -v '^ *+' conftest.er1 >conftest.err
23727 cat conftest.err >&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest$ac_exeext &&
23733 $as_test_x conftest$ac_exeext; then
23734 ac_cv_func_alloca_works=yes
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ac_cv_func_alloca_works=no
23742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23743 conftest$ac_exeext conftest.$ac_ext
23745 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23746 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23748 if test $ac_cv_func_alloca_works = yes; then
23750 cat >>confdefs.h <<\_ACEOF
23751 @%:@define HAVE_ALLOCA 1
23755 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23756 # that cause trouble. Some versions do not even contain alloca or
23757 # contain a buggy version. If you still want to use their alloca,
23758 # use ar to extract alloca.o from them instead of compiling alloca.c.
23760 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23762 cat >>confdefs.h <<\_ACEOF
23763 @%:@define C_ALLOCA 1
23767 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23768 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23769 if test "${ac_cv_os_cray+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 cat >conftest.$ac_ext <<_ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23778 #if defined CRAY && ! defined CRAY2
23785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23786 $EGREP "webecray" >/dev/null 2>&1; then
23794 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23795 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23796 if test $ac_cv_os_cray = yes; then
23797 for ac_func in _getb67 GETB67 getb67; do
23798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23812 #define $ac_func innocuous_$ac_func
23814 /* System header to define __stub macros and hopefully few prototypes,
23815 which can conflict with char $ac_func (); below.
23816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23817 <limits.h> exists even on freestanding compilers. */
23820 # include <limits.h>
23822 # include <assert.h>
23827 /* Override any GCC internal prototype to avoid an error.
23828 Use char because int might match the return type of a GCC
23829 builtin and then its argument prototype would still apply. */
23834 /* The GNU C library defines this for functions which it implements
23835 to always fail with ENOSYS. Some functions are actually named
23836 something starting with __ and the normal name is an alias. */
23837 #if defined __stub_$ac_func || defined __stub___$ac_func
23844 return $ac_func ();
23849 rm -f conftest.$ac_objext conftest$ac_exeext
23850 if { (ac_try="$ac_link"
23851 case "(($ac_try" in
23852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853 *) ac_try_echo=$ac_try;;
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856 (eval "$ac_link") 2>conftest.er1
23858 grep -v '^ *+' conftest.er1 >conftest.err
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } && {
23863 test -z "$ac_c_werror_flag" ||
23864 test ! -s conftest.err
23865 } && test -s conftest$ac_exeext &&
23866 $as_test_x conftest$ac_exeext; then
23867 eval "$as_ac_var=yes"
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 eval "$as_ac_var=no"
23875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23876 conftest$ac_exeext conftest.$ac_ext
23878 ac_res=`eval echo '${'$as_ac_var'}'`
23879 { echo "$as_me:$LINENO: result: $ac_res" >&5
23880 echo "${ECHO_T}$ac_res" >&6; }
23881 if test `eval echo '${'$as_ac_var'}'` = yes; then
23883 cat >>confdefs.h <<_ACEOF
23884 @%:@define CRAY_STACKSEG_END $ac_func
23893 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23895 if test "${ac_cv_c_stack_direction+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23898 if test "$cross_compiling" = yes; then
23899 ac_cv_c_stack_direction=0
23901 cat >conftest.$ac_ext <<_ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 $ac_includes_default
23909 find_stack_direction ()
23911 static char *addr = 0;
23916 return find_stack_direction ();
23919 return (&dummy > addr) ? 1 : -1;
23925 return find_stack_direction () < 0;
23928 rm -f conftest$ac_exeext
23929 if { (ac_try="$ac_link"
23930 case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_link") 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23939 { (case "(($ac_try" in
23940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23941 *) ac_try_echo=$ac_try;;
23943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23944 (eval "$ac_try") 2>&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); }; }; then
23948 ac_cv_c_stack_direction=1
23950 echo "$as_me: program exited with status $ac_status" >&5
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23954 ( exit $ac_status )
23955 ac_cv_c_stack_direction=-1
23957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23962 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23965 cat >>confdefs.h <<_ACEOF
23966 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
23977 ac_header_dirent=no
23978 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23979 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23980 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23981 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23985 cat >conftest.$ac_ext <<_ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 #include <sys/types.h>
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_compile") 2>conftest.er1
24012 grep -v '^ *+' conftest.er1 >conftest.err
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && {
24017 test -z "$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24019 } && test -s conftest.$ac_objext; then
24020 eval "$as_ac_Header=yes"
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 eval "$as_ac_Header=no"
24028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030 ac_res=`eval echo '${'$as_ac_Header'}'`
24031 { echo "$as_me:$LINENO: result: $ac_res" >&5
24032 echo "${ECHO_T}$ac_res" >&6; }
24033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24034 cat >>confdefs.h <<_ACEOF
24035 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24038 ac_header_dirent=$ac_hdr; break
24042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24043 if test $ac_header_dirent = dirent.h; then
24044 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24046 if test "${ac_cv_search_opendir+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24049 ac_func_search_save_LIBS=$LIBS
24050 cat >conftest.$ac_ext <<_ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h. */
24057 /* Override any GCC internal prototype to avoid an error.
24058 Use char because int might match the return type of a GCC
24059 builtin and then its argument prototype would still apply. */
24072 for ac_lib in '' dir; do
24073 if test -z "$ac_lib"; then
24074 ac_res="none required"
24077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24079 rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (ac_try="$ac_link"
24081 case "(($ac_try" in
24082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086 (eval "$ac_link") 2>conftest.er1
24088 grep -v '^ *+' conftest.er1 >conftest.err
24090 cat conftest.err >&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } && {
24093 test -z "$ac_c_werror_flag" ||
24094 test ! -s conftest.err
24095 } && test -s conftest$ac_exeext &&
24096 $as_test_x conftest$ac_exeext; then
24097 ac_cv_search_opendir=$ac_res
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24107 if test "${ac_cv_search_opendir+set}" = set; then
24111 if test "${ac_cv_search_opendir+set}" = set; then
24114 ac_cv_search_opendir=no
24116 rm conftest.$ac_ext
24117 LIBS=$ac_func_search_save_LIBS
24119 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24120 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24121 ac_res=$ac_cv_search_opendir
24122 if test "$ac_res" != no; then
24123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24128 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24129 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24130 if test "${ac_cv_search_opendir+set}" = set; then
24131 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 ac_func_search_save_LIBS=$LIBS
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24141 /* Override any GCC internal prototype to avoid an error.
24142 Use char because int might match the return type of a GCC
24143 builtin and then its argument prototype would still apply. */
24156 for ac_lib in '' x; do
24157 if test -z "$ac_lib"; then
24158 ac_res="none required"
24161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24163 rm -f conftest.$ac_objext conftest$ac_exeext
24164 if { (ac_try="$ac_link"
24165 case "(($ac_try" in
24166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167 *) ac_try_echo=$ac_try;;
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170 (eval "$ac_link") 2>conftest.er1
24172 grep -v '^ *+' conftest.er1 >conftest.err
24174 cat conftest.err >&5
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); } && {
24177 test -z "$ac_c_werror_flag" ||
24178 test ! -s conftest.err
24179 } && test -s conftest$ac_exeext &&
24180 $as_test_x conftest$ac_exeext; then
24181 ac_cv_search_opendir=$ac_res
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24191 if test "${ac_cv_search_opendir+set}" = set; then
24195 if test "${ac_cv_search_opendir+set}" = set; then
24198 ac_cv_search_opendir=no
24200 rm conftest.$ac_ext
24201 LIBS=$ac_func_search_save_LIBS
24203 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24204 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24205 ac_res=$ac_cv_search_opendir
24206 if test "$ac_res" != no; then
24207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24213 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24214 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24215 if test "${ac_cv_func_closedir_void+set}" = set; then
24216 echo $ECHO_N "(cached) $ECHO_C" >&6
24218 if test "$cross_compiling" = yes; then
24219 ac_cv_func_closedir_void=yes
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24228 #include <$ac_header_dirent>
24229 #ifndef __cplusplus
24236 return closedir (opendir (".")) != 0;
24241 rm -f conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_link") 2>&5
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24252 { (case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_try") 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 ac_cv_func_closedir_void=no
24263 echo "$as_me: program exited with status $ac_status" >&5
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ( exit $ac_status )
24268 ac_cv_func_closedir_void=yes
24270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24275 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24276 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24277 if test $ac_cv_func_closedir_void = yes; then
24279 cat >>confdefs.h <<\_ACEOF
24280 @%:@define CLOSEDIR_VOID 1
24285 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24286 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24287 if test "${ac_cv_lib_error_at_line+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 cat >conftest.$ac_ext <<_ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h. */
24300 error_at_line (0, 0, "", 0, "an error occurred");
24305 rm -f conftest.$ac_objext conftest$ac_exeext
24306 if { (ac_try="$ac_link"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_link") 2>conftest.er1
24314 grep -v '^ *+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext &&
24322 $as_test_x conftest$ac_exeext; then
24323 ac_cv_lib_error_at_line=yes
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 ac_cv_lib_error_at_line=no
24331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332 conftest$ac_exeext conftest.$ac_ext
24334 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24335 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24336 if test $ac_cv_lib_error_at_line = no; then
24337 case " $LIB@&t@OBJS " in
24338 *" error.$ac_objext "* ) ;;
24339 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24346 for ac_header in vfork.h
24348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24355 ac_res=`eval echo '${'$as_ac_Header'}'`
24356 { echo "$as_me:$LINENO: result: $ac_res" >&5
24357 echo "${ECHO_T}$ac_res" >&6; }
24359 # Is the header compilable?
24360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24368 $ac_includes_default
24369 @%:@include <$ac_header>
24371 rm -f conftest.$ac_objext
24372 if { (ac_try="$ac_compile"
24373 case "(($ac_try" in
24374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375 *) ac_try_echo=$ac_try;;
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378 (eval "$ac_compile") 2>conftest.er1
24380 grep -v '^ *+' conftest.er1 >conftest.err
24382 cat conftest.err >&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } && {
24385 test -z "$ac_c_werror_flag" ||
24386 test ! -s conftest.err
24387 } && test -s conftest.$ac_objext; then
24388 ac_header_compiler=yes
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24393 ac_header_compiler=no
24396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24398 echo "${ECHO_T}$ac_header_compiler" >&6; }
24400 # Is the header present?
24401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24403 cat >conftest.$ac_ext <<_ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24409 @%:@include <$ac_header>
24411 if { (ac_try="$ac_cpp conftest.$ac_ext"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24419 grep -v '^ *+' conftest.er1 >conftest.err
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } >/dev/null && {
24424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24425 test ! -s conftest.err
24427 ac_header_preproc=yes
24429 echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24432 ac_header_preproc=no
24435 rm -f conftest.err conftest.$ac_ext
24436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24437 echo "${ECHO_T}$ac_header_preproc" >&6; }
24439 # So? What about this header?
24440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24446 ac_header_preproc=yes
24449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24462 @%:@@%:@ ------------------------------- @%:@@%:@
24463 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24464 @%:@@%:@ ------------------------------- @%:@@%:@
24466 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
24476 ac_res=`eval echo '${'$as_ac_Header'}'`
24477 { echo "$as_me:$LINENO: result: $ac_res" >&5
24478 echo "${ECHO_T}$ac_res" >&6; }
24481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24482 cat >>confdefs.h <<_ACEOF
24483 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24492 for ac_func in fork vfork
24494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24500 cat >conftest.$ac_ext <<_ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h. */
24506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24508 #define $ac_func innocuous_$ac_func
24510 /* System header to define __stub macros and hopefully few prototypes,
24511 which can conflict with char $ac_func (); below.
24512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24513 <limits.h> exists even on freestanding compilers. */
24516 # include <limits.h>
24518 # include <assert.h>
24523 /* Override any GCC internal prototype to avoid an error.
24524 Use char because int might match the return type of a GCC
24525 builtin and then its argument prototype would still apply. */
24530 /* The GNU C library defines this for functions which it implements
24531 to always fail with ENOSYS. Some functions are actually named
24532 something starting with __ and the normal name is an alias. */
24533 #if defined __stub_$ac_func || defined __stub___$ac_func
24540 return $ac_func ();
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (ac_try="$ac_link"
24547 case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552 (eval "$ac_link") 2>conftest.er1
24554 grep -v '^ *+' conftest.er1 >conftest.err
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest$ac_exeext &&
24562 $as_test_x conftest$ac_exeext; then
24563 eval "$as_ac_var=yes"
24565 echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24568 eval "$as_ac_var=no"
24571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24572 conftest$ac_exeext conftest.$ac_ext
24574 ac_res=`eval echo '${'$as_ac_var'}'`
24575 { echo "$as_me:$LINENO: result: $ac_res" >&5
24576 echo "${ECHO_T}$ac_res" >&6; }
24577 if test `eval echo '${'$as_ac_var'}'` = yes; then
24578 cat >>confdefs.h <<_ACEOF
24579 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24585 if test "x$ac_cv_func_fork" = xyes; then
24586 { echo "$as_me:$LINENO: checking for working fork" >&5
24587 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24588 if test "${ac_cv_func_fork_works+set}" = set; then
24589 echo $ECHO_N "(cached) $ECHO_C" >&6
24591 if test "$cross_compiling" = yes; then
24592 ac_cv_func_fork_works=cross
24594 cat >conftest.$ac_ext <<_ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h. */
24600 $ac_includes_default
24605 /* By Ruediger Kuhlmann. */
24606 return fork () < 0;
24612 rm -f conftest$ac_exeext
24613 if { (ac_try="$ac_link"
24614 case "(($ac_try" in
24615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616 *) ac_try_echo=$ac_try;;
24618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619 (eval "$ac_link") 2>&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24623 { (case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_try") 2>&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; }; then
24632 ac_cv_func_fork_works=yes
24634 echo "$as_me: program exited with status $ac_status" >&5
24635 echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24638 ( exit $ac_status )
24639 ac_cv_func_fork_works=no
24641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24646 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24647 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24650 ac_cv_func_fork_works=$ac_cv_func_fork
24652 if test "x$ac_cv_func_fork_works" = xcross; then
24654 *-*-amigaos* | *-*-msdosdjgpp*)
24655 # Override, as these systems have only a dummy fork() stub
24656 ac_cv_func_fork_works=no
24659 ac_cv_func_fork_works=yes
24662 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24663 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24665 ac_cv_func_vfork_works=$ac_cv_func_vfork
24666 if test "x$ac_cv_func_vfork" = xyes; then
24667 { echo "$as_me:$LINENO: checking for working vfork" >&5
24668 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24669 if test "${ac_cv_func_vfork_works+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 if test "$cross_compiling" = yes; then
24673 ac_cv_func_vfork_works=cross
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24681 /* Thanks to Paul Eggert for this test. */
24682 $ac_includes_default
24683 #include <sys/wait.h>
24684 #ifdef HAVE_VFORK_H
24685 # include <vfork.h>
24687 /* On some sparc systems, changes by the child to local and incoming
24688 argument registers are propagated back to the parent. The compiler
24689 is told about this with #include <vfork.h>, but some compilers
24690 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24691 static variable whose address is put into a register that is
24692 clobbered by the vfork. */
24695 sparc_address_test (int arg)
24697 sparc_address_test (arg) int arg;
24700 static pid_t child;
24718 pid_t parent = getpid ();
24721 sparc_address_test (0);
24726 /* Here is another test for sparc vfork register problems. This
24727 test uses lots of local variables, at least as many local
24728 variables as main has allocated so far including compiler
24729 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24730 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24731 reuse the register of parent for one of the local variables,
24732 since it will think that parent can't possibly be used any more
24733 in this routine. Assigning to the local variable will thus
24734 munge parent in the parent process. */
24736 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24737 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24738 /* Convince the compiler that p..p7 are live; otherwise, it might
24739 use the same hardware register for all 8 local variables. */
24740 if (p != p1 || p != p2 || p != p3 || p != p4
24741 || p != p5 || p != p6 || p != p7)
24744 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24745 from child file descriptors. If the child closes a descriptor
24746 before it execs or exits, this munges the parent's descriptor
24747 as well. Test for this by closing stdout in the child. */
24748 _exit(close(fileno(stdout)) != 0);
24753 while (wait(&status) != child)
24756 /* Was there some problem with vforking? */
24759 /* Did the child fail? (This shouldn't happen.) */
24762 /* Did the vfork/compiler bug occur? */
24763 || parent != getpid()
24765 /* Did the file descriptor bug occur? */
24766 || fstat(fileno(stdout), &st) != 0
24771 rm -f conftest$ac_exeext
24772 if { (ac_try="$ac_link"
24773 case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778 (eval "$ac_link") 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24782 { (case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787 (eval "$ac_try") 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 ac_cv_func_vfork_works=yes
24793 echo "$as_me: program exited with status $ac_status" >&5
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ( exit $ac_status )
24798 ac_cv_func_vfork_works=no
24800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24805 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24806 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24809 if test "x$ac_cv_func_fork_works" = xcross; then
24810 ac_cv_func_vfork_works=$ac_cv_func_vfork
24811 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24812 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24815 if test "x$ac_cv_func_vfork_works" = xyes; then
24817 cat >>confdefs.h <<\_ACEOF
24818 @%:@define HAVE_WORKING_VFORK 1
24823 cat >>confdefs.h <<\_ACEOF
24824 @%:@define vfork fork
24828 if test "x$ac_cv_func_fork_works" = xyes; then
24830 cat >>confdefs.h <<\_ACEOF
24831 @%:@define HAVE_WORKING_FORK 1
24836 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24837 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24838 if test "${ac_cv_type_getgroups+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 if test "$cross_compiling" = yes; then
24842 ac_cv_type_getgroups=cross
24844 cat >conftest.$ac_ext <<_ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24850 /* Thanks to Mike Rendell for this test. */
24851 $ac_includes_default
24854 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24859 gid_t gidset[NGID];
24861 union { gid_t gval; long int lval; } val;
24864 for (i = 0; i < NGID; i++)
24865 gidset[i] = val.gval;
24866 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24868 /* Exit non-zero if getgroups seems to require an array of ints. This
24869 happens when gid_t is short int but getgroups modifies an array
24871 return n > 0 && gidset[n] != val.gval;
24874 rm -f conftest$ac_exeext
24875 if { (ac_try="$ac_link"
24876 case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881 (eval "$ac_link") 2>&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24885 { (case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_try") 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; }; then
24894 ac_cv_type_getgroups=gid_t
24896 echo "$as_me: program exited with status $ac_status" >&5
24897 echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24900 ( exit $ac_status )
24901 ac_cv_type_getgroups=int
24903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24907 if test $ac_cv_type_getgroups = cross; then
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 #include <unistd.h>
24917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24918 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24919 ac_cv_type_getgroups=gid_t
24921 ac_cv_type_getgroups=int
24927 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24928 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24930 cat >>confdefs.h <<_ACEOF
24931 @%:@define GETGROUPS_T $ac_cv_type_getgroups
24935 { echo "$as_me:$LINENO: checking for getgroups" >&5
24936 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24937 if test "${ac_cv_func_getgroups+set}" = set; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 cat >conftest.$ac_ext <<_ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24948 #define getgroups innocuous_getgroups
24950 /* System header to define __stub macros and hopefully few prototypes,
24951 which can conflict with char getgroups (); below.
24952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24953 <limits.h> exists even on freestanding compilers. */
24956 # include <limits.h>
24958 # include <assert.h>
24963 /* Override any GCC internal prototype to avoid an error.
24964 Use char because int might match the return type of a GCC
24965 builtin and then its argument prototype would still apply. */
24970 /* The GNU C library defines this for functions which it implements
24971 to always fail with ENOSYS. Some functions are actually named
24972 something starting with __ and the normal name is an alias. */
24973 #if defined __stub_getgroups || defined __stub___getgroups
24980 return getgroups ();
24985 rm -f conftest.$ac_objext conftest$ac_exeext
24986 if { (ac_try="$ac_link"
24987 case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992 (eval "$ac_link") 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && {
24999 test -z "$ac_c_werror_flag" ||
25000 test ! -s conftest.err
25001 } && test -s conftest$ac_exeext &&
25002 $as_test_x conftest$ac_exeext; then
25003 ac_cv_func_getgroups=yes
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25008 ac_cv_func_getgroups=no
25011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25012 conftest$ac_exeext conftest.$ac_ext
25014 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25015 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25018 # If we don't yet have getgroups, see if it's in -lbsd.
25019 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25021 if test $ac_cv_func_getgroups = no; then
25022 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25023 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25024 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 ac_check_lib_save_LIBS=$LIBS
25029 cat >conftest.$ac_ext <<_ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25036 /* Override any GCC internal prototype to avoid an error.
25037 Use char because int might match the return type of a GCC
25038 builtin and then its argument prototype would still apply. */
25046 return getgroups ();
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055 *) ac_try_echo=$ac_try;;
25057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25058 (eval "$ac_link") 2>conftest.er1
25060 grep -v '^ *+' conftest.er1 >conftest.err
25062 cat conftest.err >&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } && {
25065 test -z "$ac_c_werror_flag" ||
25066 test ! -s conftest.err
25067 } && test -s conftest$ac_exeext &&
25068 $as_test_x conftest$ac_exeext; then
25069 ac_cv_lib_bsd_getgroups=yes
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 ac_cv_lib_bsd_getgroups=no
25077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25078 conftest$ac_exeext conftest.$ac_ext
25079 LIBS=$ac_check_lib_save_LIBS
25081 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25082 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25083 if test $ac_cv_lib_bsd_getgroups = yes; then
25084 GETGROUPS_LIB=-lbsd
25089 # Run the program to test the functionality of the system-supplied
25090 # getgroups function only if there is such a function.
25091 if test $ac_cv_func_getgroups = yes; then
25092 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25093 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25094 if test "${ac_cv_func_getgroups_works+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
25097 if test "$cross_compiling" = yes; then
25098 ac_cv_func_getgroups_works=no
25100 cat >conftest.$ac_ext <<_ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 $ac_includes_default
25110 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25111 return getgroups (0, 0) == -1;
25116 rm -f conftest$ac_exeext
25117 if { (ac_try="$ac_link"
25118 case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_link") 2>&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25127 { (case "(($ac_try" in
25128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25129 *) ac_try_echo=$ac_try;;
25131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25132 (eval "$ac_try") 2>&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; }; then
25136 ac_cv_func_getgroups_works=yes
25138 echo "$as_me: program exited with status $ac_status" >&5
25139 echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ( exit $ac_status )
25143 ac_cv_func_getgroups_works=no
25145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25151 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25152 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25153 if test $ac_cv_func_getgroups_works = yes; then
25155 cat >>confdefs.h <<\_ACEOF
25156 @%:@define HAVE_GETGROUPS 1
25163 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25164 # -lseq on Dynix/PTX, -lgen on Unixware.
25165 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25166 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25167 if test "${ac_cv_search_getmntent+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25170 ac_func_search_save_LIBS=$LIBS
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25178 /* Override any GCC internal prototype to avoid an error.
25179 Use char because int might match the return type of a GCC
25180 builtin and then its argument prototype would still apply. */
25188 return getmntent ();
25193 for ac_lib in '' sun seq gen; do
25194 if test -z "$ac_lib"; then
25195 ac_res="none required"
25198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (ac_try="$ac_link"
25202 case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207 (eval "$ac_link") 2>conftest.er1
25209 grep -v '^ *+' conftest.er1 >conftest.err
25211 cat conftest.err >&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } && {
25214 test -z "$ac_c_werror_flag" ||
25215 test ! -s conftest.err
25216 } && test -s conftest$ac_exeext &&
25217 $as_test_x conftest$ac_exeext; then
25218 ac_cv_search_getmntent=$ac_res
25220 echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25228 if test "${ac_cv_search_getmntent+set}" = set; then
25232 if test "${ac_cv_search_getmntent+set}" = set; then
25235 ac_cv_search_getmntent=no
25237 rm conftest.$ac_ext
25238 LIBS=$ac_func_search_save_LIBS
25240 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25241 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25242 ac_res=$ac_cv_search_getmntent
25243 if test "$ac_res" != no; then
25244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25245 ac_cv_func_getmntent=yes
25247 cat >>confdefs.h <<\_ACEOF
25248 @%:@define HAVE_GETMNTENT 1
25252 ac_cv_func_getmntent=no
25256 if test $ac_cv_c_compiler_gnu = yes; then
25257 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25258 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25259 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 ac_pattern="Autoconf.*'x'"
25263 cat >conftest.$ac_ext <<_ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25273 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25274 ac_cv_prog_gcc_traditional=yes
25276 ac_cv_prog_gcc_traditional=no
25281 if test $ac_cv_prog_gcc_traditional = no; then
25282 cat >conftest.$ac_ext <<_ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */
25288 #include <termio.h>
25291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25292 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25293 ac_cv_prog_gcc_traditional=yes
25299 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25300 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25301 if test $ac_cv_prog_gcc_traditional = yes; then
25302 CC="$CC -traditional"
25306 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25307 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25308 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25311 rm -f conftest.sym conftest.file
25312 echo >conftest.file
25313 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25314 if test "$cross_compiling" = yes; then
25315 ac_cv_func_lstat_dereferences_slashed_symlink=no
25317 cat >conftest.$ac_ext <<_ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323 $ac_includes_default
25328 /* Linux will dereference the symlink and fail.
25329 That is better in the sense that it means we will not
25330 have to compile and use the lstat wrapper. */
25331 return lstat ("conftest.sym/", &sbuf) == 0;
25336 rm -f conftest$ac_exeext
25337 if { (ac_try="$ac_link"
25338 case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_link") 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25347 { (case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352 (eval "$ac_try") 2>&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; }; then
25356 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25358 echo "$as_me: program exited with status $ac_status" >&5
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ( exit $ac_status )
25363 ac_cv_func_lstat_dereferences_slashed_symlink=no
25365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25370 # If the `ln -s' command failed, then we probably don't even
25371 # have an lstat function.
25372 ac_cv_func_lstat_dereferences_slashed_symlink=no
25374 rm -f conftest.sym conftest.file
25377 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25378 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25380 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25382 cat >>confdefs.h <<_ACEOF
25383 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25387 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25388 case " $LIB@&t@OBJS " in
25389 *" lstat.$ac_objext "* ) ;;
25390 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25396 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25397 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25398 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 if test "$cross_compiling" = yes; then
25402 ac_cv_func_lstat_empty_string_bug=yes
25404 cat >conftest.$ac_ext <<_ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 $ac_includes_default
25415 return lstat ("", &sbuf) == 0;
25420 rm -f conftest$ac_exeext
25421 if { (ac_try="$ac_link"
25422 case "(($ac_try" in
25423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424 *) ac_try_echo=$ac_try;;
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427 (eval "$ac_link") 2>&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25431 { (case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_try") 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 ac_cv_func_lstat_empty_string_bug=no
25442 echo "$as_me: program exited with status $ac_status" >&5
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 ( exit $ac_status )
25447 ac_cv_func_lstat_empty_string_bug=yes
25449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25454 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25455 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25456 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25457 case " $LIB@&t@OBJS " in
25458 *" lstat.$ac_objext "* ) ;;
25459 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25464 cat >>confdefs.h <<_ACEOF
25465 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25470 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25471 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25472 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 rm -f conftest.sym conftest.file
25476 echo >conftest.file
25477 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25478 if test "$cross_compiling" = yes; then
25479 ac_cv_func_lstat_dereferences_slashed_symlink=no
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 $ac_includes_default
25492 /* Linux will dereference the symlink and fail.
25493 That is better in the sense that it means we will not
25494 have to compile and use the lstat wrapper. */
25495 return lstat ("conftest.sym/", &sbuf) == 0;
25500 rm -f conftest$ac_exeext
25501 if { (ac_try="$ac_link"
25502 case "(($ac_try" in
25503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504 *) ac_try_echo=$ac_try;;
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507 (eval "$ac_link") 2>&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25511 { (case "(($ac_try" in
25512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513 *) ac_try_echo=$ac_try;;
25515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25516 (eval "$ac_try") 2>&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); }; }; then
25520 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25522 echo "$as_me: program exited with status $ac_status" >&5
25523 echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25526 ( exit $ac_status )
25527 ac_cv_func_lstat_dereferences_slashed_symlink=no
25529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25534 # If the `ln -s' command failed, then we probably don't even
25535 # have an lstat function.
25536 ac_cv_func_lstat_dereferences_slashed_symlink=no
25538 rm -f conftest.sym conftest.file
25541 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25542 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25544 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25546 cat >>confdefs.h <<_ACEOF
25547 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25551 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25552 case " $LIB@&t@OBJS " in
25553 *" lstat.$ac_objext "* ) ;;
25554 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25560 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25561 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25562 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 cat >conftest.$ac_ext <<_ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25571 @%:@include <sys/types.h>
25575 return makedev(0, 0);
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_link") 2>conftest.er1
25589 grep -v '^ *+' conftest.er1 >conftest.err
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } && {
25594 test -z "$ac_c_werror_flag" ||
25595 test ! -s conftest.err
25596 } && test -s conftest$ac_exeext &&
25597 $as_test_x conftest$ac_exeext; then
25598 ac_cv_header_sys_types_h_makedev=yes
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25603 ac_cv_header_sys_types_h_makedev=no
25606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25607 conftest$ac_exeext conftest.$ac_ext
25610 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25611 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25613 if test $ac_cv_header_sys_types_h_makedev = no; then
25614 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25615 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25616 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25617 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25618 echo $ECHO_N "(cached) $ECHO_C" >&6
25620 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25621 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25623 # Is the header compilable?
25624 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25625 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25626 cat >conftest.$ac_ext <<_ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 $ac_includes_default
25633 @%:@include <sys/mkdev.h>
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
25637 case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642 (eval "$ac_compile") 2>conftest.er1
25644 grep -v '^ *+' conftest.er1 >conftest.err
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } && {
25649 test -z "$ac_c_werror_flag" ||
25650 test ! -s conftest.err
25651 } && test -s conftest.$ac_objext; then
25652 ac_header_compiler=yes
25654 echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25657 ac_header_compiler=no
25660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25662 echo "${ECHO_T}$ac_header_compiler" >&6; }
25664 # Is the header present?
25665 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25666 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25673 @%:@include <sys/mkdev.h>
25675 if { (ac_try="$ac_cpp conftest.$ac_ext"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25683 grep -v '^ *+' conftest.er1 >conftest.err
25685 cat conftest.err >&5
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); } >/dev/null && {
25688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25689 test ! -s conftest.err
25691 ac_header_preproc=yes
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 ac_header_preproc=no
25699 rm -f conftest.err conftest.$ac_ext
25700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25701 echo "${ECHO_T}$ac_header_preproc" >&6; }
25703 # So? What about this header?
25704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25706 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25707 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25709 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25710 ac_header_preproc=yes
25713 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25714 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25715 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25716 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25718 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25719 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25720 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25721 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25722 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25723 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25724 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25726 @%:@@%:@ ------------------------------- @%:@@%:@
25727 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25728 @%:@@%:@ ------------------------------- @%:@@%:@
25730 ) | sed "s/^/$as_me: WARNING: /" >&2
25733 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25734 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25735 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25741 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25744 if test $ac_cv_header_sys_mkdev_h = yes; then
25746 cat >>confdefs.h <<\_ACEOF
25747 @%:@define MAJOR_IN_MKDEV 1
25754 if test $ac_cv_header_sys_mkdev_h = no; then
25755 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25756 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25757 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25758 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25759 echo $ECHO_N "(cached) $ECHO_C" >&6
25761 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25762 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25764 # Is the header compilable?
25765 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25766 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25767 cat >conftest.$ac_ext <<_ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 $ac_includes_default
25774 @%:@include <sys/sysmacros.h>
25776 rm -f conftest.$ac_objext
25777 if { (ac_try="$ac_compile"
25778 case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_compile") 2>conftest.er1
25785 grep -v '^ *+' conftest.er1 >conftest.err
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } && {
25790 test -z "$ac_c_werror_flag" ||
25791 test ! -s conftest.err
25792 } && test -s conftest.$ac_objext; then
25793 ac_header_compiler=yes
25795 echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25798 ac_header_compiler=no
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25803 echo "${ECHO_T}$ac_header_compiler" >&6; }
25805 # Is the header present?
25806 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25807 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25808 cat >conftest.$ac_ext <<_ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h. */
25814 @%:@include <sys/sysmacros.h>
25816 if { (ac_try="$ac_cpp conftest.$ac_ext"
25817 case "(($ac_try" in
25818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 *) ac_try_echo=$ac_try;;
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25824 grep -v '^ *+' conftest.er1 >conftest.err
25826 cat conftest.err >&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } >/dev/null && {
25829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25830 test ! -s conftest.err
25832 ac_header_preproc=yes
25834 echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25837 ac_header_preproc=no
25840 rm -f conftest.err conftest.$ac_ext
25841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25842 echo "${ECHO_T}$ac_header_preproc" >&6; }
25844 # So? What about this header?
25845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25847 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25848 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25849 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25850 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25851 ac_header_preproc=yes
25854 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25855 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25856 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25857 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25858 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25859 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25860 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25861 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25862 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25863 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25864 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25865 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25867 @%:@@%:@ ------------------------------- @%:@@%:@
25868 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25869 @%:@@%:@ ------------------------------- @%:@@%:@
25871 ) | sed "s/^/$as_me: WARNING: /" >&2
25874 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25875 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25876 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25879 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25882 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25885 if test $ac_cv_header_sys_sysmacros_h = yes; then
25887 cat >>confdefs.h <<\_ACEOF
25888 @%:@define MAJOR_IN_SYSMACROS 1
25898 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25899 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25900 if test "${ac_cv_func_memcmp_working+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25903 if test "$cross_compiling" = yes; then
25904 ac_cv_func_memcmp_working=no
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 $ac_includes_default
25917 /* Some versions of memcmp are not 8-bit clean. */
25918 char c0 = '\100', c1 = '\200', c2 = '\201';
25919 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25922 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25923 or more and with at least one buffer not starting on a 4-byte boundary.
25924 William Lewis provided this test program. */
25929 for (i = 0; i < 4; i++)
25933 strcpy (a, "--------01111111");
25934 strcpy (b, "--------10000000");
25935 if (memcmp (a, b, 16) >= 0)
25945 rm -f conftest$ac_exeext
25946 if { (ac_try="$ac_link"
25947 case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_link") 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25956 { (case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_try") 2>&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; }; then
25965 ac_cv_func_memcmp_working=yes
25967 echo "$as_me: program exited with status $ac_status" >&5
25968 echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.$ac_ext >&5
25971 ( exit $ac_status )
25972 ac_cv_func_memcmp_working=no
25974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25979 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25980 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25981 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
25982 *" memcmp.$ac_objext "* ) ;;
25983 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
25991 for ac_header in sys/select.h sys/socket.h
25993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
26000 ac_res=`eval echo '${'$as_ac_Header'}'`
26001 { echo "$as_me:$LINENO: result: $ac_res" >&5
26002 echo "${ECHO_T}$ac_res" >&6; }
26004 # Is the header compilable?
26005 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26007 cat >conftest.$ac_ext <<_ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26013 $ac_includes_default
26014 @%:@include <$ac_header>
26016 rm -f conftest.$ac_objext
26017 if { (ac_try="$ac_compile"
26018 case "(($ac_try" in
26019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020 *) ac_try_echo=$ac_try;;
26022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26023 (eval "$ac_compile") 2>conftest.er1
26025 grep -v '^ *+' conftest.er1 >conftest.err
26027 cat conftest.err >&5
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); } && {
26030 test -z "$ac_c_werror_flag" ||
26031 test ! -s conftest.err
26032 } && test -s conftest.$ac_objext; then
26033 ac_header_compiler=yes
26035 echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26038 ac_header_compiler=no
26041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26043 echo "${ECHO_T}$ac_header_compiler" >&6; }
26045 # Is the header present?
26046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26048 cat >conftest.$ac_ext <<_ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h. */
26054 @%:@include <$ac_header>
26056 if { (ac_try="$ac_cpp conftest.$ac_ext"
26057 case "(($ac_try" in
26058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059 *) ac_try_echo=$ac_try;;
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26064 grep -v '^ *+' conftest.er1 >conftest.err
26066 cat conftest.err >&5
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); } >/dev/null && {
26069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26070 test ! -s conftest.err
26072 ac_header_preproc=yes
26074 echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26077 ac_header_preproc=no
26080 rm -f conftest.err conftest.$ac_ext
26081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26082 echo "${ECHO_T}$ac_header_preproc" >&6; }
26084 # So? What about this header?
26085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26091 ac_header_preproc=yes
26094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26107 @%:@@%:@ ------------------------------- @%:@@%:@
26108 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26109 @%:@@%:@ ------------------------------- @%:@@%:@
26111 ) | sed "s/^/$as_me: WARNING: /" >&2
26114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26117 echo $ECHO_N "(cached) $ECHO_C" >&6
26119 eval "$as_ac_Header=\$ac_header_preproc"
26121 ac_res=`eval echo '${'$as_ac_Header'}'`
26122 { echo "$as_me:$LINENO: result: $ac_res" >&5
26123 echo "${ECHO_T}$ac_res" >&6; }
26126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26127 cat >>confdefs.h <<_ACEOF
26128 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26135 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26136 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26137 if test "${ac_cv_func_select_args+set}" = set; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26140 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26141 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26142 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26143 cat >conftest.$ac_ext <<_ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 $ac_includes_default
26150 #ifdef HAVE_SYS_SELECT_H
26151 # include <sys/select.h>
26153 #ifdef HAVE_SYS_SOCKET_H
26154 # include <sys/socket.h>
26160 extern int select ($ac_arg1,
26161 $ac_arg234, $ac_arg234, $ac_arg234,
26167 rm -f conftest.$ac_objext
26168 if { (ac_try="$ac_compile"
26169 case "(($ac_try" in
26170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26171 *) ac_try_echo=$ac_try;;
26173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26174 (eval "$ac_compile") 2>conftest.er1
26176 grep -v '^ *+' conftest.er1 >conftest.err
26178 cat conftest.err >&5
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } && {
26181 test -z "$ac_c_werror_flag" ||
26182 test ! -s conftest.err
26183 } && test -s conftest.$ac_objext; then
26184 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26186 echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196 # Provide a safe default value.
26197 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26200 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26201 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26202 ac_save_IFS=$IFS; IFS=','
26203 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26207 cat >>confdefs.h <<_ACEOF
26208 @%:@define SELECT_TYPE_ARG1 $1
26212 cat >>confdefs.h <<_ACEOF
26213 @%:@define SELECT_TYPE_ARG234 ($2)
26217 cat >>confdefs.h <<_ACEOF
26218 @%:@define SELECT_TYPE_ARG5 ($3)
26223 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26224 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26225 if test "${ac_cv_type_signal+set}" = set; then
26226 echo $ECHO_N "(cached) $ECHO_C" >&6
26228 cat >conftest.$ac_ext <<_ACEOF
26231 cat confdefs.h >>conftest.$ac_ext
26232 cat >>conftest.$ac_ext <<_ACEOF
26233 /* end confdefs.h. */
26234 #include <sys/types.h>
26235 #include <signal.h>
26240 return *(signal (0, 0)) (0) == 1;
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249 *) ac_try_echo=$ac_try;;
26251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26252 (eval "$ac_compile") 2>conftest.er1
26254 grep -v '^ *+' conftest.er1 >conftest.err
26256 cat conftest.err >&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); } && {
26259 test -z "$ac_c_werror_flag" ||
26260 test ! -s conftest.err
26261 } && test -s conftest.$ac_objext; then
26262 ac_cv_type_signal=int
26264 echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26267 ac_cv_type_signal=void
26270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26273 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26275 cat >>confdefs.h <<_ACEOF
26276 @%:@define RETSIGTYPE $ac_cv_type_signal
26280 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26281 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26282 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26285 if test "$cross_compiling" = yes; then
26286 ac_cv_func_stat_empty_string_bug=yes
26288 cat >conftest.$ac_ext <<_ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h. */
26294 $ac_includes_default
26299 return stat ("", &sbuf) == 0;
26304 rm -f conftest$ac_exeext
26305 if { (ac_try="$ac_link"
26306 case "(($ac_try" in
26307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308 *) ac_try_echo=$ac_try;;
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311 (eval "$ac_link") 2>&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 ac_cv_func_stat_empty_string_bug=no
26326 echo "$as_me: program exited with status $ac_status" >&5
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26330 ( exit $ac_status )
26331 ac_cv_func_stat_empty_string_bug=yes
26333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26338 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26339 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26340 if test $ac_cv_func_stat_empty_string_bug = yes; then
26341 case " $LIB@&t@OBJS " in
26342 *" stat.$ac_objext "* ) ;;
26343 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26348 cat >>confdefs.h <<_ACEOF
26349 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26355 for ac_func in vprintf
26357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26371 #define $ac_func innocuous_$ac_func
26373 /* System header to define __stub macros and hopefully few prototypes,
26374 which can conflict with char $ac_func (); below.
26375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376 <limits.h> exists even on freestanding compilers. */
26379 # include <limits.h>
26381 # include <assert.h>
26386 /* Override any GCC internal prototype to avoid an error.
26387 Use char because int might match the return type of a GCC
26388 builtin and then its argument prototype would still apply. */
26393 /* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396 #if defined __stub_$ac_func || defined __stub___$ac_func
26403 return $ac_func ();
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_link") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest$ac_exeext &&
26425 $as_test_x conftest$ac_exeext; then
26426 eval "$as_ac_var=yes"
26428 echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431 eval "$as_ac_var=no"
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435 conftest$ac_exeext conftest.$ac_ext
26437 ac_res=`eval echo '${'$as_ac_var'}'`
26438 { echo "$as_me:$LINENO: result: $ac_res" >&5
26439 echo "${ECHO_T}$ac_res" >&6; }
26440 if test `eval echo '${'$as_ac_var'}'` = yes; then
26441 cat >>confdefs.h <<_ACEOF
26442 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26445 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26446 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26447 if test "${ac_cv_func__doprnt+set}" = set; then
26448 echo $ECHO_N "(cached) $ECHO_C" >&6
26450 cat >conftest.$ac_ext <<_ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26458 #define _doprnt innocuous__doprnt
26460 /* System header to define __stub macros and hopefully few prototypes,
26461 which can conflict with char _doprnt (); below.
26462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26463 <limits.h> exists even on freestanding compilers. */
26466 # include <limits.h>
26468 # include <assert.h>
26473 /* Override any GCC internal prototype to avoid an error.
26474 Use char because int might match the return type of a GCC
26475 builtin and then its argument prototype would still apply. */
26480 /* The GNU C library defines this for functions which it implements
26481 to always fail with ENOSYS. Some functions are actually named
26482 something starting with __ and the normal name is an alias. */
26483 #if defined __stub__doprnt || defined __stub____doprnt
26495 rm -f conftest.$ac_objext conftest$ac_exeext
26496 if { (ac_try="$ac_link"
26497 case "(($ac_try" in
26498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26502 (eval "$ac_link") 2>conftest.er1
26504 grep -v '^ *+' conftest.er1 >conftest.err
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } && {
26509 test -z "$ac_c_werror_flag" ||
26510 test ! -s conftest.err
26511 } && test -s conftest$ac_exeext &&
26512 $as_test_x conftest$ac_exeext; then
26513 ac_cv_func__doprnt=yes
26515 echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26518 ac_cv_func__doprnt=no
26521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26522 conftest$ac_exeext conftest.$ac_ext
26524 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26525 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26526 if test $ac_cv_func__doprnt = yes; then
26528 cat >>confdefs.h <<\_ACEOF
26529 @%:@define HAVE_DOPRNT 1
26567 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26568 gethostbyaddr gethostbyname gethostname getmntent \
26569 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26570 realpath rmdir select socket strcasecmp strchr strdup \
26571 strerror strrchr strtol strtoul sigprocmask
26573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26579 cat >conftest.$ac_ext <<_ACEOF
26582 cat confdefs.h >>conftest.$ac_ext
26583 cat >>conftest.$ac_ext <<_ACEOF
26584 /* end confdefs.h. */
26585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26587 #define $ac_func innocuous_$ac_func
26589 /* System header to define __stub macros and hopefully few prototypes,
26590 which can conflict with char $ac_func (); below.
26591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26592 <limits.h> exists even on freestanding compilers. */
26595 # include <limits.h>
26597 # include <assert.h>
26602 /* Override any GCC internal prototype to avoid an error.
26603 Use char because int might match the return type of a GCC
26604 builtin and then its argument prototype would still apply. */
26609 /* The GNU C library defines this for functions which it implements
26610 to always fail with ENOSYS. Some functions are actually named
26611 something starting with __ and the normal name is an alias. */
26612 #if defined __stub_$ac_func || defined __stub___$ac_func
26619 return $ac_func ();
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_link") 2>conftest.er1
26633 grep -v '^ *+' conftest.er1 >conftest.err
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_c_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest$ac_exeext &&
26641 $as_test_x conftest$ac_exeext; then
26642 eval "$as_ac_var=yes"
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26647 eval "$as_ac_var=no"
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651 conftest$ac_exeext conftest.$ac_ext
26653 ac_res=`eval echo '${'$as_ac_var'}'`
26654 { echo "$as_me:$LINENO: result: $ac_res" >&5
26655 echo "${ECHO_T}$ac_res" >&6; }
26656 if test `eval echo '${'$as_ac_var'}'` = yes; then
26657 cat >>confdefs.h <<_ACEOF
26658 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26666 { echo "$as_me:$LINENO: checking for short" >&5
26667 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26668 if test "${ac_cv_type_short+set}" = set; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 cat >conftest.$ac_ext <<_ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h. */
26677 $ac_includes_default
26678 typedef short ac__type_new_;
26682 if ((ac__type_new_ *) 0)
26684 if (sizeof (ac__type_new_))
26690 rm -f conftest.$ac_objext
26691 if { (ac_try="$ac_compile"
26692 case "(($ac_try" in
26693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694 *) ac_try_echo=$ac_try;;
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697 (eval "$ac_compile") 2>conftest.er1
26699 grep -v '^ *+' conftest.er1 >conftest.err
26701 cat conftest.err >&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } && {
26704 test -z "$ac_c_werror_flag" ||
26705 test ! -s conftest.err
26706 } && test -s conftest.$ac_objext; then
26707 ac_cv_type_short=yes
26709 echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26712 ac_cv_type_short=no
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26718 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26720 # The cast to long int works around a bug in the HP C Compiler
26721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26723 # This bug is HP SR number 8606223364.
26724 { echo "$as_me:$LINENO: checking size of short" >&5
26725 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26726 if test "${ac_cv_sizeof_short+set}" = set; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 if test "$cross_compiling" = yes; then
26730 # Depending upon the size, compute the lo and hi bounds.
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 $ac_includes_default
26738 typedef short ac__type_sizeof_;
26742 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
26743 test_array @<:@0@:>@ = 0
26749 rm -f conftest.$ac_objext
26750 if { (ac_try="$ac_compile"
26751 case "(($ac_try" in
26752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753 *) ac_try_echo=$ac_try;;
26755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26756 (eval "$ac_compile") 2>conftest.er1
26758 grep -v '^ *+' conftest.er1 >conftest.err
26760 cat conftest.err >&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); } && {
26763 test -z "$ac_c_werror_flag" ||
26764 test ! -s conftest.err
26765 } && test -s conftest.$ac_objext; then
26768 cat >conftest.$ac_ext <<_ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h. */
26774 $ac_includes_default
26775 typedef short ac__type_sizeof_;
26779 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26780 test_array @<:@0@:>@ = 0
26786 rm -f conftest.$ac_objext
26787 if { (ac_try="$ac_compile"
26788 case "(($ac_try" in
26789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790 *) ac_try_echo=$ac_try;;
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793 (eval "$ac_compile") 2>conftest.er1
26795 grep -v '^ *+' conftest.er1 >conftest.err
26797 cat conftest.err >&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } && {
26800 test -z "$ac_c_werror_flag" ||
26801 test ! -s conftest.err
26802 } && test -s conftest.$ac_objext; then
26803 ac_hi=$ac_mid; break
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 ac_lo=`expr $ac_mid + 1`
26809 if test $ac_lo -le $ac_mid; then
26813 ac_mid=`expr 2 '*' $ac_mid + 1`
26816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26819 echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26822 cat >conftest.$ac_ext <<_ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 $ac_includes_default
26829 typedef short ac__type_sizeof_;
26833 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
26834 test_array @<:@0@:>@ = 0
26840 rm -f conftest.$ac_objext
26841 if { (ac_try="$ac_compile"
26842 case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_compile") 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } && {
26854 test -z "$ac_c_werror_flag" ||
26855 test ! -s conftest.err
26856 } && test -s conftest.$ac_objext; then
26859 cat >conftest.$ac_ext <<_ACEOF
26862 cat confdefs.h >>conftest.$ac_ext
26863 cat >>conftest.$ac_ext <<_ACEOF
26864 /* end confdefs.h. */
26865 $ac_includes_default
26866 typedef short ac__type_sizeof_;
26870 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
26871 test_array @<:@0@:>@ = 0
26877 rm -f conftest.$ac_objext
26878 if { (ac_try="$ac_compile"
26879 case "(($ac_try" in
26880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881 *) ac_try_echo=$ac_try;;
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884 (eval "$ac_compile") 2>conftest.er1
26886 grep -v '^ *+' conftest.er1 >conftest.err
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } && {
26891 test -z "$ac_c_werror_flag" ||
26892 test ! -s conftest.err
26893 } && test -s conftest.$ac_objext; then
26894 ac_lo=$ac_mid; break
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26899 ac_hi=`expr '(' $ac_mid ')' - 1`
26900 if test $ac_mid -le $ac_hi; then
26904 ac_mid=`expr 2 '*' $ac_mid`
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910 echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920 # Binary search between lo and hi bounds.
26921 while test "x$ac_lo" != "x$ac_hi"; do
26922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 $ac_includes_default
26930 typedef short ac__type_sizeof_;
26934 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26935 test_array @<:@0@:>@ = 0
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945 *) ac_try_echo=$ac_try;;
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948 (eval "$ac_compile") 2>conftest.er1
26950 grep -v '^ *+' conftest.er1 >conftest.err
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } && {
26955 test -z "$ac_c_werror_flag" ||
26956 test ! -s conftest.err
26957 } && test -s conftest.$ac_objext; then
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ac_lo=`expr '(' $ac_mid ')' + 1`
26966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26969 ?*) ac_cv_sizeof_short=$ac_lo;;
26970 '') if test "$ac_cv_type_short" = yes; then
26971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26972 See \`config.log' for more details." >&5
26973 echo "$as_me: error: cannot compute sizeof (short)
26974 See \`config.log' for more details." >&2;}
26975 { (exit 77); exit 77; }; }
26977 ac_cv_sizeof_short=0
26981 cat >conftest.$ac_ext <<_ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26987 $ac_includes_default
26988 typedef short ac__type_sizeof_;
26989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26991 @%:@include <stdio.h>
26992 @%:@include <stdlib.h>
26997 FILE *f = fopen ("conftest.val", "w");
27000 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27002 long int i = longval ();
27003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27005 fprintf (f, "%ld\n", i);
27009 unsigned long int i = ulongval ();
27010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27012 fprintf (f, "%lu\n", i);
27014 return ferror (f) || fclose (f) != 0;
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_link") 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27031 { (case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_try") 2>&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27040 ac_cv_sizeof_short=`cat conftest.val`
27042 echo "$as_me: program exited with status $ac_status" >&5
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 ( exit $ac_status )
27047 if test "$ac_cv_type_short" = yes; then
27048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27049 See \`config.log' for more details." >&5
27050 echo "$as_me: error: cannot compute sizeof (short)
27051 See \`config.log' for more details." >&2;}
27052 { (exit 77); exit 77; }; }
27054 ac_cv_sizeof_short=0
27057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27062 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27066 cat >>confdefs.h <<_ACEOF
27067 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27071 { echo "$as_me:$LINENO: checking for int" >&5
27072 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27073 if test "${ac_cv_type_int+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 cat >conftest.$ac_ext <<_ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h. */
27082 $ac_includes_default
27083 typedef int ac__type_new_;
27087 if ((ac__type_new_ *) 0)
27089 if (sizeof (ac__type_new_))
27095 rm -f conftest.$ac_objext
27096 if { (ac_try="$ac_compile"
27097 case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102 (eval "$ac_compile") 2>conftest.er1
27104 grep -v '^ *+' conftest.er1 >conftest.err
27106 cat conftest.err >&5
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); } && {
27109 test -z "$ac_c_werror_flag" ||
27110 test ! -s conftest.err
27111 } && test -s conftest.$ac_objext; then
27114 echo "$as_me: failed program was:" >&5
27115 sed 's/^/| /' conftest.$ac_ext >&5
27120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27122 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27123 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27125 # The cast to long int works around a bug in the HP C Compiler
27126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27128 # This bug is HP SR number 8606223364.
27129 { echo "$as_me:$LINENO: checking size of int" >&5
27130 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27131 if test "${ac_cv_sizeof_int+set}" = set; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 if test "$cross_compiling" = yes; then
27135 # Depending upon the size, compute the lo and hi bounds.
27136 cat >conftest.$ac_ext <<_ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27142 $ac_includes_default
27143 typedef int ac__type_sizeof_;
27147 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27148 test_array @<:@0@:>@ = 0
27154 rm -f conftest.$ac_objext
27155 if { (ac_try="$ac_compile"
27156 case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_compile") 2>conftest.er1
27163 grep -v '^ *+' conftest.er1 >conftest.err
27165 cat conftest.err >&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } && {
27168 test -z "$ac_c_werror_flag" ||
27169 test ! -s conftest.err
27170 } && test -s conftest.$ac_objext; then
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27179 $ac_includes_default
27180 typedef int ac__type_sizeof_;
27184 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27185 test_array @<:@0@:>@ = 0
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195 *) ac_try_echo=$ac_try;;
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198 (eval "$ac_compile") 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } && {
27205 test -z "$ac_c_werror_flag" ||
27206 test ! -s conftest.err
27207 } && test -s conftest.$ac_objext; then
27208 ac_hi=$ac_mid; break
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 ac_lo=`expr $ac_mid + 1`
27214 if test $ac_lo -le $ac_mid; then
27218 ac_mid=`expr 2 '*' $ac_mid + 1`
27221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27224 echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27227 cat >conftest.$ac_ext <<_ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h. */
27233 $ac_includes_default
27234 typedef int ac__type_sizeof_;
27238 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27239 test_array @<:@0@:>@ = 0
27245 rm -f conftest.$ac_objext
27246 if { (ac_try="$ac_compile"
27247 case "(($ac_try" in
27248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249 *) ac_try_echo=$ac_try;;
27251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27252 (eval "$ac_compile") 2>conftest.er1
27254 grep -v '^ *+' conftest.er1 >conftest.err
27256 cat conftest.err >&5
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } && {
27259 test -z "$ac_c_werror_flag" ||
27260 test ! -s conftest.err
27261 } && test -s conftest.$ac_objext; then
27264 cat >conftest.$ac_ext <<_ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h. */
27270 $ac_includes_default
27271 typedef int ac__type_sizeof_;
27275 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27276 test_array @<:@0@:>@ = 0
27282 rm -f conftest.$ac_objext
27283 if { (ac_try="$ac_compile"
27284 case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_compile") 2>conftest.er1
27291 grep -v '^ *+' conftest.er1 >conftest.err
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } && {
27296 test -z "$ac_c_werror_flag" ||
27297 test ! -s conftest.err
27298 } && test -s conftest.$ac_objext; then
27299 ac_lo=$ac_mid; break
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27304 ac_hi=`expr '(' $ac_mid ')' - 1`
27305 if test $ac_mid -le $ac_hi; then
27309 ac_mid=`expr 2 '*' $ac_mid`
27312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 # Binary search between lo and hi bounds.
27326 while test "x$ac_lo" != "x$ac_hi"; do
27327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27328 cat >conftest.$ac_ext <<_ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h. */
27334 $ac_includes_default
27335 typedef int ac__type_sizeof_;
27339 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27340 test_array @<:@0@:>@ = 0
27346 rm -f conftest.$ac_objext
27347 if { (ac_try="$ac_compile"
27348 case "(($ac_try" in
27349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350 *) ac_try_echo=$ac_try;;
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353 (eval "$ac_compile") 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } && {
27360 test -z "$ac_c_werror_flag" ||
27361 test ! -s conftest.err
27362 } && test -s conftest.$ac_objext; then
27365 echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27368 ac_lo=`expr '(' $ac_mid ')' + 1`
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27374 ?*) ac_cv_sizeof_int=$ac_lo;;
27375 '') if test "$ac_cv_type_int" = yes; then
27376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27377 See \`config.log' for more details." >&5
27378 echo "$as_me: error: cannot compute sizeof (int)
27379 See \`config.log' for more details." >&2;}
27380 { (exit 77); exit 77; }; }
27386 cat >conftest.$ac_ext <<_ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h. */
27392 $ac_includes_default
27393 typedef int ac__type_sizeof_;
27394 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27395 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27396 @%:@include <stdio.h>
27397 @%:@include <stdlib.h>
27402 FILE *f = fopen ("conftest.val", "w");
27405 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27407 long int i = longval ();
27408 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27410 fprintf (f, "%ld\n", i);
27414 unsigned long int i = ulongval ();
27415 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27417 fprintf (f, "%lu\n", i);
27419 return ferror (f) || fclose (f) != 0;
27425 rm -f conftest$ac_exeext
27426 if { (ac_try="$ac_link"
27427 case "(($ac_try" in
27428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429 *) ac_try_echo=$ac_try;;
27431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27432 (eval "$ac_link") 2>&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27436 { (case "(($ac_try" in
27437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_try") 2>&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; }; then
27445 ac_cv_sizeof_int=`cat conftest.val`
27447 echo "$as_me: program exited with status $ac_status" >&5
27448 echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27451 ( exit $ac_status )
27452 if test "$ac_cv_type_int" = yes; then
27453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27454 See \`config.log' for more details." >&5
27455 echo "$as_me: error: cannot compute sizeof (int)
27456 See \`config.log' for more details." >&2;}
27457 { (exit 77); exit 77; }; }
27462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27466 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27471 cat >>confdefs.h <<_ACEOF
27472 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27476 { echo "$as_me:$LINENO: checking for long" >&5
27477 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27478 if test "${ac_cv_type_long+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27481 cat >conftest.$ac_ext <<_ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27487 $ac_includes_default
27488 typedef long ac__type_new_;
27492 if ((ac__type_new_ *) 0)
27494 if (sizeof (ac__type_new_))
27500 rm -f conftest.$ac_objext
27501 if { (ac_try="$ac_compile"
27502 case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_compile") 2>conftest.er1
27509 grep -v '^ *+' conftest.er1 >conftest.err
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } && {
27514 test -z "$ac_c_werror_flag" ||
27515 test ! -s conftest.err
27516 } && test -s conftest.$ac_objext; then
27517 ac_cv_type_long=yes
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27530 # The cast to long int works around a bug in the HP C Compiler
27531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533 # This bug is HP SR number 8606223364.
27534 { echo "$as_me:$LINENO: checking size of long" >&5
27535 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27536 if test "${ac_cv_sizeof_long+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
27539 if test "$cross_compiling" = yes; then
27540 # Depending upon the size, compute the lo and hi bounds.
27541 cat >conftest.$ac_ext <<_ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h. */
27547 $ac_includes_default
27548 typedef long ac__type_sizeof_;
27552 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27553 test_array @<:@0@:>@ = 0
27559 rm -f conftest.$ac_objext
27560 if { (ac_try="$ac_compile"
27561 case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_compile") 2>conftest.er1
27568 grep -v '^ *+' conftest.er1 >conftest.err
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } && {
27573 test -z "$ac_c_werror_flag" ||
27574 test ! -s conftest.err
27575 } && test -s conftest.$ac_objext; then
27578 cat >conftest.$ac_ext <<_ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h. */
27584 $ac_includes_default
27585 typedef long ac__type_sizeof_;
27589 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27590 test_array @<:@0@:>@ = 0
27596 rm -f conftest.$ac_objext
27597 if { (ac_try="$ac_compile"
27598 case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_compile") 2>conftest.er1
27605 grep -v '^ *+' conftest.er1 >conftest.err
27607 cat conftest.err >&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } && {
27610 test -z "$ac_c_werror_flag" ||
27611 test ! -s conftest.err
27612 } && test -s conftest.$ac_objext; then
27613 ac_hi=$ac_mid; break
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 ac_lo=`expr $ac_mid + 1`
27619 if test $ac_lo -le $ac_mid; then
27623 ac_mid=`expr 2 '*' $ac_mid + 1`
27626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27629 echo "$as_me: failed program was:" >&5
27630 sed 's/^/| /' conftest.$ac_ext >&5
27632 cat >conftest.$ac_ext <<_ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h. */
27638 $ac_includes_default
27639 typedef long ac__type_sizeof_;
27643 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27644 test_array @<:@0@:>@ = 0
27650 rm -f conftest.$ac_objext
27651 if { (ac_try="$ac_compile"
27652 case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_compile") 2>conftest.er1
27659 grep -v '^ *+' conftest.er1 >conftest.err
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } && {
27664 test -z "$ac_c_werror_flag" ||
27665 test ! -s conftest.err
27666 } && test -s conftest.$ac_objext; then
27669 cat >conftest.$ac_ext <<_ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h. */
27675 $ac_includes_default
27676 typedef long ac__type_sizeof_;
27680 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27681 test_array @<:@0@:>@ = 0
27687 rm -f conftest.$ac_objext
27688 if { (ac_try="$ac_compile"
27689 case "(($ac_try" in
27690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27691 *) ac_try_echo=$ac_try;;
27693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27694 (eval "$ac_compile") 2>conftest.er1
27696 grep -v '^ *+' conftest.er1 >conftest.err
27698 cat conftest.err >&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); } && {
27701 test -z "$ac_c_werror_flag" ||
27702 test ! -s conftest.err
27703 } && test -s conftest.$ac_objext; then
27704 ac_lo=$ac_mid; break
27706 echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27709 ac_hi=`expr '(' $ac_mid ')' - 1`
27710 if test $ac_mid -le $ac_hi; then
27714 ac_mid=`expr 2 '*' $ac_mid`
27717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720 echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 # Binary search between lo and hi bounds.
27731 while test "x$ac_lo" != "x$ac_hi"; do
27732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27733 cat >conftest.$ac_ext <<_ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h. */
27739 $ac_includes_default
27740 typedef long ac__type_sizeof_;
27744 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27745 test_array @<:@0@:>@ = 0
27751 rm -f conftest.$ac_objext
27752 if { (ac_try="$ac_compile"
27753 case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_compile") 2>conftest.er1
27760 grep -v '^ *+' conftest.er1 >conftest.err
27762 cat conftest.err >&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } && {
27765 test -z "$ac_c_werror_flag" ||
27766 test ! -s conftest.err
27767 } && test -s conftest.$ac_objext; then
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27773 ac_lo=`expr '(' $ac_mid ')' + 1`
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779 ?*) ac_cv_sizeof_long=$ac_lo;;
27780 '') if test "$ac_cv_type_long" = yes; then
27781 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27782 See \`config.log' for more details." >&5
27783 echo "$as_me: error: cannot compute sizeof (long)
27784 See \`config.log' for more details." >&2;}
27785 { (exit 77); exit 77; }; }
27787 ac_cv_sizeof_long=0
27791 cat >conftest.$ac_ext <<_ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h. */
27797 $ac_includes_default
27798 typedef long ac__type_sizeof_;
27799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27801 @%:@include <stdio.h>
27802 @%:@include <stdlib.h>
27807 FILE *f = fopen ("conftest.val", "w");
27810 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27812 long int i = longval ();
27813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27815 fprintf (f, "%ld\n", i);
27819 unsigned long int i = ulongval ();
27820 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27822 fprintf (f, "%lu\n", i);
27824 return ferror (f) || fclose (f) != 0;
27830 rm -f conftest$ac_exeext
27831 if { (ac_try="$ac_link"
27832 case "(($ac_try" in
27833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834 *) ac_try_echo=$ac_try;;
27836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27837 (eval "$ac_link") 2>&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27841 { (case "(($ac_try" in
27842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843 *) ac_try_echo=$ac_try;;
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846 (eval "$ac_try") 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 ac_cv_sizeof_long=`cat conftest.val`
27852 echo "$as_me: program exited with status $ac_status" >&5
27853 echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27856 ( exit $ac_status )
27857 if test "$ac_cv_type_long" = yes; then
27858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27859 See \`config.log' for more details." >&5
27860 echo "$as_me: error: cannot compute sizeof (long)
27861 See \`config.log' for more details." >&2;}
27862 { (exit 77); exit 77; }; }
27864 ac_cv_sizeof_long=0
27867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27872 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27876 cat >>confdefs.h <<_ACEOF
27877 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
27881 { echo "$as_me:$LINENO: checking for size_t" >&5
27882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27883 if test "${ac_cv_type_size_t+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 cat >conftest.$ac_ext <<_ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h. */
27892 $ac_includes_default
27893 typedef size_t ac__type_new_;
27897 if ((ac__type_new_ *) 0)
27899 if (sizeof (ac__type_new_))
27905 rm -f conftest.$ac_objext
27906 if { (ac_try="$ac_compile"
27907 case "(($ac_try" in
27908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909 *) ac_try_echo=$ac_try;;
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912 (eval "$ac_compile") 2>conftest.er1
27914 grep -v '^ *+' conftest.er1 >conftest.err
27916 cat conftest.err >&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); } && {
27919 test -z "$ac_c_werror_flag" ||
27920 test ! -s conftest.err
27921 } && test -s conftest.$ac_objext; then
27922 ac_cv_type_size_t=yes
27924 echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27927 ac_cv_type_size_t=no
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27935 # The cast to long int works around a bug in the HP C Compiler
27936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27938 # This bug is HP SR number 8606223364.
27939 { echo "$as_me:$LINENO: checking size of size_t" >&5
27940 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27941 if test "${ac_cv_sizeof_size_t+set}" = set; then
27942 echo $ECHO_N "(cached) $ECHO_C" >&6
27944 if test "$cross_compiling" = yes; then
27945 # Depending upon the size, compute the lo and hi bounds.
27946 cat >conftest.$ac_ext <<_ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h. */
27952 $ac_includes_default
27953 typedef size_t ac__type_sizeof_;
27957 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27958 test_array @<:@0@:>@ = 0
27964 rm -f conftest.$ac_objext
27965 if { (ac_try="$ac_compile"
27966 case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_compile") 2>conftest.er1
27973 grep -v '^ *+' conftest.er1 >conftest.err
27975 cat conftest.err >&5
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); } && {
27978 test -z "$ac_c_werror_flag" ||
27979 test ! -s conftest.err
27980 } && test -s conftest.$ac_objext; then
27983 cat >conftest.$ac_ext <<_ACEOF
27986 cat confdefs.h >>conftest.$ac_ext
27987 cat >>conftest.$ac_ext <<_ACEOF
27988 /* end confdefs.h. */
27989 $ac_includes_default
27990 typedef size_t ac__type_sizeof_;
27994 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27995 test_array @<:@0@:>@ = 0
28001 rm -f conftest.$ac_objext
28002 if { (ac_try="$ac_compile"
28003 case "(($ac_try" in
28004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28005 *) ac_try_echo=$ac_try;;
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008 (eval "$ac_compile") 2>conftest.er1
28010 grep -v '^ *+' conftest.er1 >conftest.err
28012 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } && {
28015 test -z "$ac_c_werror_flag" ||
28016 test ! -s conftest.err
28017 } && test -s conftest.$ac_objext; then
28018 ac_hi=$ac_mid; break
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023 ac_lo=`expr $ac_mid + 1`
28024 if test $ac_lo -le $ac_mid; then
28028 ac_mid=`expr 2 '*' $ac_mid + 1`
28031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034 echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28037 cat >conftest.$ac_ext <<_ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h. */
28043 $ac_includes_default
28044 typedef size_t ac__type_sizeof_;
28048 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28049 test_array @<:@0@:>@ = 0
28055 rm -f conftest.$ac_objext
28056 if { (ac_try="$ac_compile"
28057 case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_compile") 2>conftest.er1
28064 grep -v '^ *+' conftest.er1 >conftest.err
28066 cat conftest.err >&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } && {
28069 test -z "$ac_c_werror_flag" ||
28070 test ! -s conftest.err
28071 } && test -s conftest.$ac_objext; then
28074 cat >conftest.$ac_ext <<_ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h. */
28080 $ac_includes_default
28081 typedef size_t ac__type_sizeof_;
28085 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28086 test_array @<:@0@:>@ = 0
28092 rm -f conftest.$ac_objext
28093 if { (ac_try="$ac_compile"
28094 case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099 (eval "$ac_compile") 2>conftest.er1
28101 grep -v '^ *+' conftest.er1 >conftest.err
28103 cat conftest.err >&5
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); } && {
28106 test -z "$ac_c_werror_flag" ||
28107 test ! -s conftest.err
28108 } && test -s conftest.$ac_objext; then
28109 ac_lo=$ac_mid; break
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28114 ac_hi=`expr '(' $ac_mid ')' - 1`
28115 if test $ac_mid -le $ac_hi; then
28119 ac_mid=`expr 2 '*' $ac_mid`
28122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28125 echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135 # Binary search between lo and hi bounds.
28136 while test "x$ac_lo" != "x$ac_hi"; do
28137 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28138 cat >conftest.$ac_ext <<_ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h. */
28144 $ac_includes_default
28145 typedef size_t ac__type_sizeof_;
28149 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28150 test_array @<:@0@:>@ = 0
28156 rm -f conftest.$ac_objext
28157 if { (ac_try="$ac_compile"
28158 case "(($ac_try" in
28159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160 *) ac_try_echo=$ac_try;;
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163 (eval "$ac_compile") 2>conftest.er1
28165 grep -v '^ *+' conftest.er1 >conftest.err
28167 cat conftest.err >&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } && {
28170 test -z "$ac_c_werror_flag" ||
28171 test ! -s conftest.err
28172 } && test -s conftest.$ac_objext; then
28175 echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28178 ac_lo=`expr '(' $ac_mid ')' + 1`
28181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28185 '') if test "$ac_cv_type_size_t" = yes; then
28186 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28187 See \`config.log' for more details." >&5
28188 echo "$as_me: error: cannot compute sizeof (size_t)
28189 See \`config.log' for more details." >&2;}
28190 { (exit 77); exit 77; }; }
28192 ac_cv_sizeof_size_t=0
28196 cat >conftest.$ac_ext <<_ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28202 $ac_includes_default
28203 typedef size_t ac__type_sizeof_;
28204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28206 @%:@include <stdio.h>
28207 @%:@include <stdlib.h>
28212 FILE *f = fopen ("conftest.val", "w");
28215 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28217 long int i = longval ();
28218 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28220 fprintf (f, "%ld\n", i);
28224 unsigned long int i = ulongval ();
28225 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28227 fprintf (f, "%lu\n", i);
28229 return ferror (f) || fclose (f) != 0;
28235 rm -f conftest$ac_exeext
28236 if { (ac_try="$ac_link"
28237 case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242 (eval "$ac_link") 2>&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28246 { (case "(($ac_try" in
28247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248 *) ac_try_echo=$ac_try;;
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251 (eval "$ac_try") 2>&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); }; }; then
28255 ac_cv_sizeof_size_t=`cat conftest.val`
28257 echo "$as_me: program exited with status $ac_status" >&5
28258 echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28261 ( exit $ac_status )
28262 if test "$ac_cv_type_size_t" = yes; then
28263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28264 See \`config.log' for more details." >&5
28265 echo "$as_me: error: cannot compute sizeof (size_t)
28266 See \`config.log' for more details." >&2;}
28267 { (exit 77); exit 77; }; }
28269 ac_cv_sizeof_size_t=0
28272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28277 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28281 cat >>confdefs.h <<_ACEOF
28282 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28286 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28287 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28288 if test "${ac_cv_type_socklen_t+set}" = set; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28297 $ac_includes_default
28298 typedef socklen_t ac__type_new_;
28302 if ((ac__type_new_ *) 0)
28304 if (sizeof (ac__type_new_))
28310 rm -f conftest.$ac_objext
28311 if { (ac_try="$ac_compile"
28312 case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317 (eval "$ac_compile") 2>conftest.er1
28319 grep -v '^ *+' conftest.er1 >conftest.err
28321 cat conftest.err >&5
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); } && {
28324 test -z "$ac_c_werror_flag" ||
28325 test ! -s conftest.err
28326 } && test -s conftest.$ac_objext; then
28327 ac_cv_type_socklen_t=yes
28329 echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28332 ac_cv_type_socklen_t=no
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28337 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28338 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28340 # The cast to long int works around a bug in the HP C Compiler
28341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28343 # This bug is HP SR number 8606223364.
28344 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28345 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28346 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28349 if test "$cross_compiling" = yes; then
28350 # Depending upon the size, compute the lo and hi bounds.
28351 cat >conftest.$ac_ext <<_ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28357 $ac_includes_default
28358 typedef socklen_t ac__type_sizeof_;
28362 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28363 test_array @<:@0@:>@ = 0
28369 rm -f conftest.$ac_objext
28370 if { (ac_try="$ac_compile"
28371 case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_compile") 2>conftest.er1
28378 grep -v '^ *+' conftest.er1 >conftest.err
28380 cat conftest.err >&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); } && {
28383 test -z "$ac_c_werror_flag" ||
28384 test ! -s conftest.err
28385 } && test -s conftest.$ac_objext; then
28388 cat >conftest.$ac_ext <<_ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28394 $ac_includes_default
28395 typedef socklen_t ac__type_sizeof_;
28399 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28400 test_array @<:@0@:>@ = 0
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_hi=$ac_mid; break
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 ac_lo=`expr $ac_mid + 1`
28429 if test $ac_lo -le $ac_mid; then
28433 ac_mid=`expr 2 '*' $ac_mid + 1`
28436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 cat >conftest.$ac_ext <<_ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h. */
28448 $ac_includes_default
28449 typedef socklen_t ac__type_sizeof_;
28453 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28454 test_array @<:@0@:>@ = 0
28460 rm -f conftest.$ac_objext
28461 if { (ac_try="$ac_compile"
28462 case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_compile") 2>conftest.er1
28469 grep -v '^ *+' conftest.er1 >conftest.err
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); } && {
28474 test -z "$ac_c_werror_flag" ||
28475 test ! -s conftest.err
28476 } && test -s conftest.$ac_objext; then
28479 cat >conftest.$ac_ext <<_ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h. */
28485 $ac_includes_default
28486 typedef socklen_t ac__type_sizeof_;
28490 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28491 test_array @<:@0@:>@ = 0
28497 rm -f conftest.$ac_objext
28498 if { (ac_try="$ac_compile"
28499 case "(($ac_try" in
28500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501 *) ac_try_echo=$ac_try;;
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504 (eval "$ac_compile") 2>conftest.er1
28506 grep -v '^ *+' conftest.er1 >conftest.err
28508 cat conftest.err >&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } && {
28511 test -z "$ac_c_werror_flag" ||
28512 test ! -s conftest.err
28513 } && test -s conftest.$ac_objext; then
28514 ac_lo=$ac_mid; break
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 ac_hi=`expr '(' $ac_mid ')' - 1`
28520 if test $ac_mid -le $ac_hi; then
28524 ac_mid=`expr 2 '*' $ac_mid`
28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 echo "$as_me: failed program was:" >&5
28531 sed 's/^/| /' conftest.$ac_ext >&5
28536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28540 # Binary search between lo and hi bounds.
28541 while test "x$ac_lo" != "x$ac_hi"; do
28542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28543 cat >conftest.$ac_ext <<_ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 $ac_includes_default
28550 typedef socklen_t ac__type_sizeof_;
28554 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28555 test_array @<:@0@:>@ = 0
28561 rm -f conftest.$ac_objext
28562 if { (ac_try="$ac_compile"
28563 case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568 (eval "$ac_compile") 2>conftest.er1
28570 grep -v '^ *+' conftest.er1 >conftest.err
28572 cat conftest.err >&5
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); } && {
28575 test -z "$ac_c_werror_flag" ||
28576 test ! -s conftest.err
28577 } && test -s conftest.$ac_objext; then
28580 echo "$as_me: failed program was:" >&5
28581 sed 's/^/| /' conftest.$ac_ext >&5
28583 ac_lo=`expr '(' $ac_mid ')' + 1`
28586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28589 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28590 '') if test "$ac_cv_type_socklen_t" = yes; then
28591 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28592 See \`config.log' for more details." >&5
28593 echo "$as_me: error: cannot compute sizeof (socklen_t)
28594 See \`config.log' for more details." >&2;}
28595 { (exit 77); exit 77; }; }
28597 ac_cv_sizeof_socklen_t=0
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28607 $ac_includes_default
28608 typedef socklen_t ac__type_sizeof_;
28609 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28610 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28611 @%:@include <stdio.h>
28612 @%:@include <stdlib.h>
28617 FILE *f = fopen ("conftest.val", "w");
28620 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28622 long int i = longval ();
28623 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28625 fprintf (f, "%ld\n", i);
28629 unsigned long int i = ulongval ();
28630 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28632 fprintf (f, "%lu\n", i);
28634 return ferror (f) || fclose (f) != 0;
28640 rm -f conftest$ac_exeext
28641 if { (ac_try="$ac_link"
28642 case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_link") 2>&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28651 { (case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_try") 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; }; then
28660 ac_cv_sizeof_socklen_t=`cat conftest.val`
28662 echo "$as_me: program exited with status $ac_status" >&5
28663 echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28666 ( exit $ac_status )
28667 if test "$ac_cv_type_socklen_t" = yes; then
28668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28669 See \`config.log' for more details." >&5
28670 echo "$as_me: error: cannot compute sizeof (socklen_t)
28671 See \`config.log' for more details." >&2;}
28672 { (exit 77); exit 77; }; }
28674 ac_cv_sizeof_socklen_t=0
28677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28681 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28682 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28686 cat >>confdefs.h <<_ACEOF
28687 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28694 cat >>confdefs.h <<_ACEOF
28695 @%:@define NFS_STATEDIR "$statedir"
28699 if test "x$cross_compiling" = "xno"; then
28700 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28701 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28702 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28703 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28705 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28706 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28707 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28708 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28723 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28728 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28730 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28732 AM_CFLAGS="$my_am_cflags"
28735 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28736 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28739 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28741 cat >confcache <<\_ACEOF
28742 # This file is a shell script that caches the results of configure
28743 # tests run on this system so they can be shared between configure
28744 # scripts and configure runs, see configure's option --config-cache.
28745 # It is not useful on other systems. If it contains results you don't
28746 # want to keep, you may remove or edit it.
28748 # config.status only pays attention to the cache file if you give it
28749 # the --recheck option to rerun configure.
28751 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28752 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28753 # following values.
28757 # The following way of writing the cache mishandles newlines in values,
28758 # but we know of no workaround that is simple, portable, and efficient.
28759 # So, we kill variables containing newlines.
28760 # Ultrix sh set writes to stderr and can't be redirected directly,
28761 # and sets the high bit in the cache file unless we assign to the vars.
28763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28764 eval ac_val=\$$ac_var
28768 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28769 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28772 _ | IFS | as_nl) ;; #(
28773 *) $as_unset $ac_var ;;
28779 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28780 *${as_nl}ac_space=\ *)
28781 # `set' does not quote correctly, so add quotes (double-quote
28782 # substitution turns \\\\ into \\, and sed turns \\ into \).
28785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28788 # `set' quotes correctly as required by POSIX, so do not add quotes.
28789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28800 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28802 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28803 if test -w "$cache_file"; then
28804 test "x$cache_file" != "x/dev/null" &&
28805 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28806 echo "$as_me: updating cache $cache_file" >&6;}
28807 cat confcache >$cache_file
28809 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28810 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28816 # Let make expand exec_prefix.
28817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28819 DEFS=-DHAVE_CONFIG_H
28823 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
28824 # 1. Remove the extension, and $U if already installed.
28825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28826 ac_i=`echo "$ac_i" | sed "$ac_script"`
28827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28828 # will be set to the directory where LIBOBJS objects are built.
28829 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28830 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28832 LIB@&t@OBJS=$ac_libobjs
28834 LTLIBOBJS=$ac_ltlibobjs
28837 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28838 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28839 Usually this means the macro was only invoked conditionally." >&5
28840 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28841 Usually this means the macro was only invoked conditionally." >&2;}
28842 { (exit 1); exit 1; }; }
28844 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28845 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28846 Usually this means the macro was only invoked conditionally." >&5
28847 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28848 Usually this means the macro was only invoked conditionally." >&2;}
28849 { (exit 1); exit 1; }; }
28851 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28852 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&5
28854 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28855 Usually this means the macro was only invoked conditionally." >&2;}
28856 { (exit 1); exit 1; }; }
28858 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28859 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&5
28861 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28862 Usually this means the macro was only invoked conditionally." >&2;}
28863 { (exit 1); exit 1; }; }
28865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28866 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&5
28868 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28869 Usually this means the macro was only invoked conditionally." >&2;}
28870 { (exit 1); exit 1; }; }
28872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28873 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&5
28875 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28876 Usually this means the macro was only invoked conditionally." >&2;}
28877 { (exit 1); exit 1; }; }
28879 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28880 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28881 Usually this means the macro was only invoked conditionally." >&5
28882 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28883 Usually this means the macro was only invoked conditionally." >&2;}
28884 { (exit 1); exit 1; }; }
28886 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28887 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28888 Usually this means the macro was only invoked conditionally." >&5
28889 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28890 Usually this means the macro was only invoked conditionally." >&2;}
28891 { (exit 1); exit 1; }; }
28894 : ${CONFIG_STATUS=./config.status}
28895 ac_clean_files_save=$ac_clean_files
28896 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28897 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28898 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28899 cat >$CONFIG_STATUS <<_ACEOF
28901 # Generated by $as_me.
28902 # Run this file to recreate the current configuration.
28903 # Compiler output produced by configure, useful for debugging
28904 # configure, is in config.log if it exists.
28907 ac_cs_recheck=false
28909 SHELL=\${CONFIG_SHELL-$SHELL}
28912 cat >>$CONFIG_STATUS <<\_ACEOF
28913 ## --------------------- ##
28914 ## M4sh Initialization. ##
28915 ## --------------------- ##
28917 # Be more Bourne compatible
28918 DUALCASE=1; export DUALCASE # for MKS sh
28919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28922 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28923 # is contrary to our usage. Disable this feature.
28924 alias -g '${1+"$@"}'='"$@"'
28925 setopt NO_GLOB_SUBST
28927 case `(set -o) 2>/dev/null` in
28928 *posix*) set -o posix ;;
28937 # Avoid depending upon Character Ranges.
28938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28941 as_cr_digits='0123456789'
28942 as_cr_alnum=$as_cr_Letters$as_cr_digits
28944 # The user is always right.
28945 if test "${PATH_SEPARATOR+set}" != set; then
28946 echo "#! /bin/sh" >conf$$.sh
28947 echo "exit 0" >>conf$$.sh
28949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28957 # Support unset when possible.
28958 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28966 # We need space, tab and new line, in precisely that order. Quoting is
28967 # there to prevent editors from complaining about space-tab.
28968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28969 # splitting by setting IFS to empty value.)
28974 # Find who we are. Look in the path if we contain no directory separator.
28976 *[\\/]* ) as_myself=$0 ;;
28977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28978 for as_dir in $PATH
28981 test -z "$as_dir" && as_dir=.
28982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28988 # We did not find ourselves, most probably we were run as `sh COMMAND'
28989 # in which case we are not to be found in the path.
28990 if test "x$as_myself" = x; then
28993 if test ! -f "$as_myself"; then
28994 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28995 { (exit 1); exit 1; }
28998 # Work around bugs in pre-3.0 UWIN ksh.
28999 for as_var in ENV MAIL MAILPATH
29000 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29008 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29009 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29010 LC_TELEPHONE LC_TIME
29012 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29013 eval $as_var=C; export $as_var
29015 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29019 # Required to use basename.
29020 if expr a : '\(a\)' >/dev/null 2>&1 &&
29021 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29028 as_basename=basename
29034 # Name of the executable.
29035 as_me=`$as_basename -- "$0" ||
29036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29037 X"$0" : 'X\(//\)$' \| \
29038 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29040 sed '/^.*\/\([^/][^/]*\)\/*$/{
29059 as_lineno_1=$LINENO
29060 as_lineno_2=$LINENO
29061 test "x$as_lineno_1" != "x$as_lineno_2" &&
29062 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29064 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29065 # uniformly replaced by the line number. The first 'sed' inserts a
29066 # line-number line after each line using $LINENO; the second 'sed'
29067 # does the real work. The second script uses 'N' to pair each
29068 # line-number line with the line containing $LINENO, and appends
29069 # trailing '-' during substitution so that $LINENO is not a special
29070 # case at line end.
29071 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29072 # scripts with optimization help from Paolo Bonzini. Blame Lee
29073 # E. McMahon (1931-1989) for sed's syntax. :-)
29085 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29088 ' >$as_me.lineno &&
29089 chmod +x "$as_me.lineno" ||
29090 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29091 { (exit 1); exit 1; }; }
29093 # Don't try to exec as it changes $[0], causing all sort of problems
29094 # (the dirname of $[0] is not the place where we might find the
29095 # original and so on. Autoconf is especially sensitive to this).
29096 . "./$as_me.lineno"
29097 # Exit status is that of the last command.
29102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29108 ECHO_C= ECHO_N= ECHO_T=
29109 case `echo -n x` in
29111 case `echo 'x\c'` in
29112 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29119 if expr a : '\(a\)' >/dev/null 2>&1 &&
29120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29126 rm -f conf$$ conf$$.exe conf$$.file
29127 if test -d conf$$.dir; then
29128 rm -f conf$$.dir/conf$$.file
29134 if ln -s conf$$.file conf$$ 2>/dev/null; then
29136 # ... but there are two gotchas:
29137 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29138 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29139 # In both cases, we have to default to `cp -p'.
29140 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29142 elif ln conf$$.file conf$$ 2>/dev/null; then
29147 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29148 rmdir conf$$.dir 2>/dev/null
29150 if mkdir -p . 2>/dev/null; then
29153 test -d ./-p && rmdir ./-p
29157 if test -x / >/dev/null 2>&1; then
29158 as_test_x='test -x'
29160 if ls -dL / >/dev/null 2>&1; then
29167 if test -d "$1"; then
29173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29174 ???[sx]*):;;*)false;;esac;fi
29178 as_executable_p=$as_test_x
29180 # Sed expression to map a string onto a valid CPP name.
29181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29183 # Sed expression to map a string onto a valid variable name.
29184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29189 # Save the log message, to keep $[0] and so on meaningful, and to
29190 # report actual input values of CONFIG_FILES etc. instead of their
29191 # values after options handling.
29193 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29194 generated by GNU Autoconf 2.61. Invocation command line was
29196 CONFIG_FILES = $CONFIG_FILES
29197 CONFIG_HEADERS = $CONFIG_HEADERS
29198 CONFIG_LINKS = $CONFIG_LINKS
29199 CONFIG_COMMANDS = $CONFIG_COMMANDS
29202 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29207 cat >>$CONFIG_STATUS <<_ACEOF
29208 # Files that config.status was made for.
29209 config_files="$ac_config_files"
29210 config_headers="$ac_config_headers"
29211 config_commands="$ac_config_commands"
29215 cat >>$CONFIG_STATUS <<\_ACEOF
29217 \`$as_me' instantiates files from templates according to the
29218 current configuration.
29220 Usage: $0 [OPTIONS] [FILE]...
29222 -h, --help print this help, then exit
29223 -V, --version print version number and configuration settings, then exit
29224 -q, --quiet do not print progress messages
29225 -d, --debug don't remove temporary files
29226 --recheck update $as_me by reconfiguring in the same conditions
29227 --file=FILE[:TEMPLATE]
29228 instantiate the configuration file FILE
29229 --header=FILE[:TEMPLATE]
29230 instantiate the configuration header FILE
29232 Configuration files:
29235 Configuration headers:
29238 Configuration commands:
29241 Report bugs to <bug-autoconf@gnu.org>."
29244 cat >>$CONFIG_STATUS <<_ACEOF
29246 linux nfs-utils config.status 1.0.10
29247 configured by $0, generated by GNU Autoconf 2.61,
29248 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29250 Copyright (C) 2006 Free Software Foundation, Inc.
29251 This config.status script is free software; the Free Software Foundation
29252 gives unlimited permission to copy, distribute and modify it."
29259 cat >>$CONFIG_STATUS <<\_ACEOF
29260 # If no file are specified by the user, then we need to provide default
29261 # value. By we need to know if files were specified by the user.
29267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29279 # Handling of the options.
29280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29283 echo "$ac_cs_version"; exit ;;
29284 --debug | --debu | --deb | --de | --d | -d )
29286 --file | --fil | --fi | --f )
29288 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29289 ac_need_defaults=false;;
29290 --header | --heade | --head | --hea )
29292 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29293 ac_need_defaults=false;;
29295 # Conflict between --help and --header
29296 { echo "$as_me: error: ambiguous option: $1
29297 Try \`$0 --help' for more information." >&2
29298 { (exit 1); exit 1; }; };;
29299 --help | --hel | -h )
29300 echo "$ac_cs_usage"; exit ;;
29301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29305 # This is an error.
29306 -*) { echo "$as_me: error: unrecognized option: $1
29307 Try \`$0 --help' for more information." >&2
29308 { (exit 1); exit 1; }; } ;;
29310 *) ac_config_targets="$ac_config_targets $1"
29311 ac_need_defaults=false ;;
29317 ac_configure_extra_args=
29319 if $ac_cs_silent; then
29321 ac_configure_extra_args="$ac_configure_extra_args --silent"
29325 cat >>$CONFIG_STATUS <<_ACEOF
29326 if \$ac_cs_recheck; then
29327 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29328 CONFIG_SHELL=$SHELL
29329 export CONFIG_SHELL
29330 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29334 cat >>$CONFIG_STATUS <<\_ACEOF
29338 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29339 @%:@@%:@ Running $as_me. @%:@@%:@
29345 cat >>$CONFIG_STATUS <<_ACEOF
29349 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29353 cat >>$CONFIG_STATUS <<\_ACEOF
29355 # Handling of arguments.
29356 for ac_config_target in $ac_config_targets
29358 case $ac_config_target in
29359 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29360 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29362 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29363 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29364 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29365 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29366 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29367 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29368 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29369 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29370 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29371 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29372 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29373 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29374 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29375 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29376 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29377 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29378 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29379 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29380 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29381 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29382 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29383 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29384 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29385 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29386 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29387 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29388 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29389 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29390 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29394 { (exit 1); exit 1; }; };;
29399 # If the user did not use the arguments to specify the items to instantiate,
29400 # then the envvar interface is used. Set only those that are not.
29401 # We use the long form for the default assignment because of an extremely
29402 # bizarre bug on SunOS 4.1.3.
29403 if $ac_need_defaults; then
29404 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29405 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29406 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29409 # Have a temporary directory for convenience. Make it in the build tree
29410 # simply because there is no reason against having it here, and in addition,
29411 # creating and moving files from /tmp can sometimes cause problems.
29412 # Hook for its removal unless debugging.
29413 # Note that there is a small window in which the directory will not be cleaned:
29414 # after its creation but before its name has been assigned to `$tmp'.
29418 trap 'exit_status=$?
29419 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29421 trap '{ (exit 1); exit 1; }' 1 2 13 15
29423 # Create a (secure) tmp directory for tmp files.
29426 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29427 test -n "$tmp" && test -d "$tmp"
29430 tmp=./conf$$-$RANDOM
29431 (umask 077 && mkdir "$tmp")
29434 echo "$me: cannot create a temporary directory in ." >&2
29435 { (exit 1); exit 1; }
29439 # Set up the sed scripts for CONFIG_FILES section.
29442 # No need to generate the scripts if there are no CONFIG_FILES.
29443 # This happens for instance when ./config.status config.h
29444 if test -n "$CONFIG_FILES"; then
29451 for ac_last_try in false false false false false :; do
29452 cat >conf$$subs.sed <<_ACEOF
29453 SHELL!$SHELL$ac_delim
29454 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29455 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29456 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29457 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29458 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29459 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29460 exec_prefix!$exec_prefix$ac_delim
29461 prefix!$prefix$ac_delim
29462 program_transform_name!$program_transform_name$ac_delim
29463 bindir!$bindir$ac_delim
29464 sbindir!$sbindir$ac_delim
29465 libexecdir!$libexecdir$ac_delim
29466 datarootdir!$datarootdir$ac_delim
29467 datadir!$datadir$ac_delim
29468 sysconfdir!$sysconfdir$ac_delim
29469 sharedstatedir!$sharedstatedir$ac_delim
29470 localstatedir!$localstatedir$ac_delim
29471 includedir!$includedir$ac_delim
29472 oldincludedir!$oldincludedir$ac_delim
29473 docdir!$docdir$ac_delim
29474 infodir!$infodir$ac_delim
29475 htmldir!$htmldir$ac_delim
29476 dvidir!$dvidir$ac_delim
29477 pdfdir!$pdfdir$ac_delim
29478 psdir!$psdir$ac_delim
29479 libdir!$libdir$ac_delim
29480 localedir!$localedir$ac_delim
29481 mandir!$mandir$ac_delim
29482 DEFS!$DEFS$ac_delim
29483 ECHO_C!$ECHO_C$ac_delim
29484 ECHO_N!$ECHO_N$ac_delim
29485 ECHO_T!$ECHO_T$ac_delim
29486 LIBS!$LIBS$ac_delim
29487 build_alias!$build_alias$ac_delim
29488 host_alias!$host_alias$ac_delim
29489 target_alias!$target_alias$ac_delim
29490 build!$build$ac_delim
29491 build_cpu!$build_cpu$ac_delim
29492 build_vendor!$build_vendor$ac_delim
29493 build_os!$build_os$ac_delim
29494 host!$host$ac_delim
29495 host_cpu!$host_cpu$ac_delim
29496 host_vendor!$host_vendor$ac_delim
29497 host_os!$host_os$ac_delim
29498 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29499 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29500 INSTALL_DATA!$INSTALL_DATA$ac_delim
29501 CYGPATH_W!$CYGPATH_W$ac_delim
29502 PACKAGE!$PACKAGE$ac_delim
29503 VERSION!$VERSION$ac_delim
29504 ACLOCAL!$ACLOCAL$ac_delim
29505 AUTOCONF!$AUTOCONF$ac_delim
29506 AUTOMAKE!$AUTOMAKE$ac_delim
29507 AUTOHEADER!$AUTOHEADER$ac_delim
29508 MAKEINFO!$MAKEINFO$ac_delim
29509 install_sh!$install_sh$ac_delim
29510 STRIP!$STRIP$ac_delim
29511 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29512 mkdir_p!$mkdir_p$ac_delim
29514 SET_MAKE!$SET_MAKE$ac_delim
29515 am__leading_dot!$am__leading_dot$ac_delim
29516 AMTAR!$AMTAR$ac_delim
29517 am__tar!$am__tar$ac_delim
29518 am__untar!$am__untar$ac_delim
29519 RELEASE!$RELEASE$ac_delim
29520 statedir!$statedir$ac_delim
29521 statduser!$statduser$ac_delim
29522 enable_nfsv3!$enable_nfsv3$ac_delim
29523 IDMAPD!$IDMAPD$ac_delim
29524 enable_nfsv4!$enable_nfsv4$ac_delim
29525 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29526 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29527 GSSD!$GSSD$ac_delim
29528 SVCGSSD!$SVCGSSD$ac_delim
29529 enable_gss!$enable_gss$ac_delim
29530 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29531 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29532 kprefix!$kprefix$ac_delim
29533 secure_statd!$secure_statd$ac_delim
29534 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29535 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29536 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29537 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29539 CFLAGS!$CFLAGS$ac_delim
29540 LDFLAGS!$LDFLAGS$ac_delim
29541 CPPFLAGS!$CPPFLAGS$ac_delim
29542 ac_ct_CC!$ac_ct_CC$ac_delim
29543 EXEEXT!$EXEEXT$ac_delim
29544 OBJEXT!$OBJEXT$ac_delim
29545 DEPDIR!$DEPDIR$ac_delim
29546 am__include!$am__include$ac_delim
29547 am__quote!$am__quote$ac_delim
29548 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29549 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29552 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29554 elif $ac_last_try; then
29555 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29556 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29557 { (exit 1); exit 1; }; }
29559 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29563 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29564 if test -n "$ac_eof"; then
29565 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29566 ac_eof=`expr $ac_eof + 1`
29569 cat >>$CONFIG_STATUS <<_ACEOF
29570 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29574 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29575 s/^/s,@/; s/!/@,|#_!!_#|/
29578 s/'"$ac_delim"'$/,g/; t
29580 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29581 ' >>$CONFIG_STATUS <conf$$subs.sed
29582 rm -f conf$$subs.sed
29583 cat >>$CONFIG_STATUS <<_ACEOF
29589 for ac_last_try in false false false false false :; do
29590 cat >conf$$subs.sed <<_ACEOF
29591 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29592 CCDEPMODE!$CCDEPMODE$ac_delim
29593 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29594 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29595 LIBWRAP!$LIBWRAP$ac_delim
29596 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29597 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29599 CXXFLAGS!$CXXFLAGS$ac_delim
29600 ac_ct_CXX!$ac_ct_CXX$ac_delim
29601 CXXDEPMODE!$CXXDEPMODE$ac_delim
29602 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29603 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29605 LN_S!$LN_S$ac_delim
29606 GREP!$GREP$ac_delim
29607 EGREP!$EGREP$ac_delim
29608 ECHO!$ECHO$ac_delim
29610 RANLIB!$RANLIB$ac_delim
29611 CXXCPP!$CXXCPP$ac_delim
29613 FFLAGS!$FFLAGS$ac_delim
29614 ac_ct_F77!$ac_ct_F77$ac_delim
29615 LIBTOOL!$LIBTOOL$ac_delim
29616 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29618 LIBNSL!$LIBNSL$ac_delim
29619 PKG_CONFIG!$PKG_CONFIG$ac_delim
29620 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29621 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29622 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29623 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29624 LIBSOCKET!$LIBSOCKET$ac_delim
29625 LIBCRYPT!$LIBCRYPT$ac_delim
29626 LIBBSD!$LIBBSD$ac_delim
29627 KRBDIR!$KRBDIR$ac_delim
29628 KRBLIBS!$KRBLIBS$ac_delim
29629 KRBCFLAGS!$KRBCFLAGS$ac_delim
29630 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29631 K5VERS!$K5VERS$ac_delim
29632 ALLOCA!$ALLOCA$ac_delim
29633 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29634 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29635 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29636 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29637 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29638 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29639 AM_CFLAGS!$AM_CFLAGS$ac_delim
29640 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29641 LTLIBOBJS!$LTLIBOBJS$ac_delim
29644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
29646 elif $ac_last_try; then
29647 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29649 { (exit 1); exit 1; }; }
29651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29656 if test -n "$ac_eof"; then
29657 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29658 ac_eof=`expr $ac_eof + 1`
29661 cat >>$CONFIG_STATUS <<_ACEOF
29662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29667 s/^/s,@/; s/!/@,|#_!!_#|/
29670 s/'"$ac_delim"'$/,g/; t
29672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29673 ' >>$CONFIG_STATUS <conf$$subs.sed
29674 rm -f conf$$subs.sed
29675 cat >>$CONFIG_STATUS <<_ACEOF
29682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29684 # trailing colons and then remove the whole line if VPATH becomes empty
29685 # (actually we leave an empty line to preserve line numbers).
29686 if test "x$srcdir" = x.; then
29687 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29688 s/:*\$(srcdir):*/:/
29689 s/:*\${srcdir}:*/:/
29691 s/^\([^=]*=[ ]*\):*/\1/
29697 cat >>$CONFIG_STATUS <<\_ACEOF
29698 fi # test -n "$CONFIG_FILES"
29701 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29704 :[FHLC]) ac_mode=$ac_tag; continue;;
29706 case $ac_mode$ac_tag in
29708 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29710 { (exit 1); exit 1; }; };;
29711 :[FH]-) ac_tag=-:-;;
29712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29729 -) ac_f="$tmp/stdin";;
29730 *) # Look for the file first in the build tree, then in the source tree
29731 # (if the path is not absolute). The absolute path cannot be DOS-style,
29732 # because $ac_f cannot contain `:'.
29736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29738 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29740 { (exit 1); exit 1; }; };;
29742 ac_file_inputs="$ac_file_inputs $ac_f"
29745 # Let's still pretend it is `configure' which instantiates (i.e., don't
29746 # use $as_me), people would be surprised to read:
29747 # /* config.h. Generated by config.status. */
29748 configure_input="Generated from "`IFS=:
29749 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29750 if test x"$ac_file" != x-; then
29751 configure_input="$ac_file. $configure_input"
29752 { echo "$as_me:$LINENO: creating $ac_file" >&5
29753 echo "$as_me: creating $ac_file" >&6;}
29757 *:-:* | *:-) cat >"$tmp/stdin";;
29762 ac_dir=`$as_dirname -- "$ac_file" ||
29763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29764 X"$ac_file" : 'X\(//\)[^/]' \| \
29765 X"$ac_file" : 'X\(//\)$' \| \
29766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29772 /^X\(\/\/\)[^/].*/{
29787 -*) as_dir=./$as_dir;;
29789 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29793 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29794 *) as_qdir=$as_dir;;
29796 as_dirs="'$as_qdir' $as_dirs"
29797 as_dir=`$as_dirname -- "$as_dir" ||
29798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29799 X"$as_dir" : 'X\(//\)[^/]' \| \
29800 X"$as_dir" : 'X\(//\)$' \| \
29801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29807 /^X\(\/\/\)[^/].*/{
29820 test -d "$as_dir" && break
29822 test -z "$as_dirs" || eval "mkdir $as_dirs"
29823 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29825 { (exit 1); exit 1; }; }; }
29829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29832 # A ".." for each directory in $ac_dir_suffix.
29833 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29834 case $ac_top_builddir_sub in
29835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29839 ac_abs_top_builddir=$ac_pwd
29840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29841 # for backward compatibility:
29842 ac_top_builddir=$ac_top_build_prefix
29845 .) # We are building in place.
29847 ac_top_srcdir=$ac_top_builddir_sub
29848 ac_abs_top_srcdir=$ac_pwd ;;
29849 [\\/]* | ?:[\\/]* ) # Absolute name.
29850 ac_srcdir=$srcdir$ac_dir_suffix;
29851 ac_top_srcdir=$srcdir
29852 ac_abs_top_srcdir=$srcdir ;;
29853 *) # Relative name.
29854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29855 ac_top_srcdir=$ac_top_build_prefix$srcdir
29856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29873 cat >>$CONFIG_STATUS <<\_ACEOF
29874 # If the template does not know about datarootdir, expand it.
29875 # FIXME: This hack should be removed a few years after 2.60.
29876 ac_datarootdir_hack=; ac_datarootdir_seen=
29878 case `sed -n '/datarootdir/ {
29887 ' $ac_file_inputs` in
29888 *datarootdir*) ac_datarootdir_seen=yes;;
29889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29893 cat >>$CONFIG_STATUS <<_ACEOF
29894 ac_datarootdir_hack='
29895 s&@datadir@&$datadir&g
29896 s&@docdir@&$docdir&g
29897 s&@infodir@&$infodir&g
29898 s&@localedir@&$localedir&g
29899 s&@mandir@&$mandir&g
29900 s&\\\${datarootdir}&$datarootdir&g' ;;
29904 # Neutralize VPATH when `$srcdir' = `.'.
29905 # Shell code in configure.ac might set extrasub.
29906 # FIXME: do we really want to maintain this feature?
29907 cat >>$CONFIG_STATUS <<_ACEOF
29911 cat >>$CONFIG_STATUS <<\_ACEOF
29913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29914 s&@configure_input@&$configure_input&;t t
29915 s&@top_builddir@&$ac_top_builddir_sub&;t t
29916 s&@srcdir@&$ac_srcdir&;t t
29917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29918 s&@top_srcdir@&$ac_top_srcdir&;t t
29919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29920 s&@builddir@&$ac_builddir&;t t
29921 s&@abs_builddir@&$ac_abs_builddir&;t t
29922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29923 s&@INSTALL@&$ac_INSTALL&;t t
29924 $ac_datarootdir_hack
29925 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29928 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29930 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29931 which seems to be undefined. Please make sure it is defined." >&5
29932 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29933 which seems to be undefined. Please make sure it is defined." >&2;}
29937 -) cat "$tmp/out"; rm -f "$tmp/out";;
29938 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29947 # Transform confdefs.h into a sed script `conftest.defines', that
29948 # substitutes the proper values into config.h.in to produce config.h.
29949 rm -f conftest.defines conftest.tail
29950 # First, append a space to every undef/define line, to ease matching.
29951 echo 's/$/ /' >conftest.defines
29952 # Then, protect against being on the right side of a sed subst, or in
29953 # an unquoted here document, in config.status. If some macros were
29954 # called several times there might be several #defines for the same
29955 # symbol, which is useless. But do not sort them, since the last
29956 # AC_DEFINE must be honored.
29957 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29958 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29959 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29960 # PARAMS is the parameter list in the macro definition--in most cases, it's
29961 # just an empty string.
29962 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29963 ac_dB='\\)[ (].*,\\1define\\2'
29971 s/^[ ]*#[ ]*define[ ][ ]*//
29976 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29977 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29978 ' >>conftest.defines
29980 # Remove the space that was appended to ease matching.
29981 # Then replace #undef with comments. This is necessary, for
29982 # example, in the case of _POSIX_SOURCE, which is predefined and required
29983 # on some systems where configure will not decide to define it.
29984 # (The regexp can be short, since the line contains either #define or #undef.)
29986 s,^[ #]*u.*,/* & */,' >>conftest.defines
29988 # Break up conftest.defines:
29989 ac_max_sed_lines=50
29991 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29992 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29993 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29995 ac_in='$ac_file_inputs'
29996 ac_out='"$tmp/out1"'
29997 ac_nxt='"$tmp/out2"'
30001 # Write a here document:
30002 cat >>$CONFIG_STATUS <<_ACEOF
30003 # First, check the format of the line:
30004 cat >"\$tmp/defines.sed" <<\\CEOF
30005 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30006 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30010 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30012 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30013 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30014 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30015 grep . conftest.tail >/dev/null || break
30016 rm -f conftest.defines
30017 mv conftest.tail conftest.defines
30019 rm -f conftest.defines conftest.tail
30021 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30022 cat >>$CONFIG_STATUS <<\_ACEOF
30023 if test x"$ac_file" != x-; then
30024 echo "/* $configure_input */" >"$tmp/config.h"
30025 cat "$ac_result" >>"$tmp/config.h"
30026 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30027 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30028 echo "$as_me: $ac_file is unchanged" >&6;}
30031 mv "$tmp/config.h" $ac_file
30034 echo "/* $configure_input */"
30038 # Compute $ac_file's index in $config_headers.
30040 for _am_header in $config_headers :; do
30041 case $_am_header in
30042 $ac_file | $ac_file:* )
30045 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30048 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30049 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30050 X$ac_file : 'X\(//\)[^/]' \| \
30051 X$ac_file : 'X\(//\)$' \| \
30052 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30058 /^X\(\/\/\)[^/].*/{
30070 s/.*/./; q'`/stamp-h$_am_stamp_count
30073 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30074 echo "$as_me: executing $ac_file commands" >&6;}
30079 case $ac_file$ac_mode in
30080 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30081 # Strip MF so we end up with the name of the file.
30082 mf=`echo "$mf" | sed -e 's/:.*$//'`
30083 # Check whether this is an Automake generated Makefile or not.
30084 # We used to match only the files named `Makefile.in', but
30085 # some people rename them; so instead we look at the file content.
30086 # Grep'ing the first line is not enough: some people post-process
30087 # each Makefile.in and add a new line on top of each file to say so.
30088 # So let's grep whole file.
30089 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30090 dirpart=`$as_dirname -- "$mf" ||
30091 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30092 X"$mf" : 'X\(//\)[^/]' \| \
30093 X"$mf" : 'X\(//\)$' \| \
30094 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30100 /^X\(\/\/\)[^/].*/{
30116 # Extract the definition of DEPDIR, am__include, and am__quote
30117 # from the Makefile without running `make'.
30118 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30119 test -z "$DEPDIR" && continue
30120 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30121 test -z "am__include" && continue
30122 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30123 # When using ansi2knr, U may be empty or an underscore; expand it
30124 U=`sed -n 's/^U = //p' < "$mf"`
30125 # Find all dependency output files, they are included files with
30126 # $(DEPDIR) in their names. We invoke sed twice because it is the
30127 # simplest approach to changing $(DEPDIR) to its actual value in the
30129 for file in `sed -n "
30130 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30131 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30132 # Make sure the directory exists.
30133 test -f "$dirpart/$file" && continue
30134 fdir=`$as_dirname -- "$file" ||
30135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30136 X"$file" : 'X\(//\)[^/]' \| \
30137 X"$file" : 'X\(//\)$' \| \
30138 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30144 /^X\(\/\/\)[^/].*/{
30157 { as_dir=$dirpart/$fdir
30159 -*) as_dir=./$as_dir;;
30161 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30165 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30166 *) as_qdir=$as_dir;;
30168 as_dirs="'$as_qdir' $as_dirs"
30169 as_dir=`$as_dirname -- "$as_dir" ||
30170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30171 X"$as_dir" : 'X\(//\)[^/]' \| \
30172 X"$as_dir" : 'X\(//\)$' \| \
30173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30179 /^X\(\/\/\)[^/].*/{
30192 test -d "$as_dir" && break
30194 test -z "$as_dirs" || eval "mkdir $as_dirs"
30195 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30196 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30197 { (exit 1); exit 1; }; }; }
30198 # echo "creating $dirpart/$file"
30199 echo '# dummy' > "$dirpart/$file"
30208 { (exit 0); exit 0; }
30210 chmod +x $CONFIG_STATUS
30211 ac_clean_files=$ac_clean_files_save
30214 # configure is writing to config.log, and then calls config.status.
30215 # config.status does its own redirection, appending to config.log.
30216 # Unfortunately, on DOS this fails, as config.log is still kept open
30217 # by configure, so config.status won't be able to write to it; its
30218 # output is simply discarded. So we exec the FD to /dev/null,
30219 # effectively closing config.log, so it can be properly (re)opened and
30220 # appended to by config.status. When coming back to configure, we
30221 # need to make the FD available again.
30222 if test "$no_create" != yes; then
30224 ac_config_status_args=
30225 test "$silent" = yes &&
30226 ac_config_status_args="$ac_config_status_args --quiet"
30228 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30230 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30231 # would make configure fail if this is the last instruction.
30232 $ac_cs_success || { (exit 1); exit 1; }