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
833 INSTALL_STRIP_PROGRAM
921 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name=s,x,x,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069 eval enable_$ac_feature=\$ac_optarg ;;
1071 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073 | --exec | --exe | --ex)
1074 ac_prev=exec_prefix ;;
1075 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077 | --exec=* | --exe=* | --ex=*)
1078 exec_prefix=$ac_optarg ;;
1080 -gas | --gas | --ga | --g)
1081 # Obsolete; use --with-gas.
1084 -help | --help | --hel | --he | -h)
1085 ac_init_help=long ;;
1086 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087 ac_init_help=recursive ;;
1088 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089 ac_init_help=short ;;
1091 -host | --host | --hos | --ho)
1092 ac_prev=host_alias ;;
1093 -host=* | --host=* | --hos=* | --ho=*)
1094 host_alias=$ac_optarg ;;
1096 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100 htmldir=$ac_optarg ;;
1102 -includedir | --includedir | --includedi | --included | --include \
1103 | --includ | --inclu | --incl | --inc)
1104 ac_prev=includedir ;;
1105 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106 | --includ=* | --inclu=* | --incl=* | --inc=*)
1107 includedir=$ac_optarg ;;
1109 -infodir | --infodir | --infodi | --infod | --info | --inf)
1111 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112 infodir=$ac_optarg ;;
1114 -libdir | --libdir | --libdi | --libd)
1116 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117 libdir=$ac_optarg ;;
1119 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120 | --libexe | --libex | --libe)
1121 ac_prev=libexecdir ;;
1122 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123 | --libexe=* | --libex=* | --libe=*)
1124 libexecdir=$ac_optarg ;;
1126 -localedir | --localedir | --localedi | --localed | --locale)
1127 ac_prev=localedir ;;
1128 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129 localedir=$ac_optarg ;;
1131 -localstatedir | --localstatedir | --localstatedi | --localstated \
1132 | --localstate | --localstat | --localsta | --localst | --locals)
1133 ac_prev=localstatedir ;;
1134 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136 localstatedir=$ac_optarg ;;
1138 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141 mandir=$ac_optarg ;;
1143 -nfp | --nfp | --nf)
1144 # Obsolete; use --without-fp.
1147 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148 | --no-cr | --no-c | -n)
1151 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157 | --oldin | --oldi | --old | --ol | --o)
1158 ac_prev=oldincludedir ;;
1159 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162 oldincludedir=$ac_optarg ;;
1164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167 prefix=$ac_optarg ;;
1169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170 | --program-pre | --program-pr | --program-p)
1171 ac_prev=program_prefix ;;
1172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174 program_prefix=$ac_optarg ;;
1176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177 | --program-suf | --program-su | --program-s)
1178 ac_prev=program_suffix ;;
1179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181 program_suffix=$ac_optarg ;;
1183 -program-transform-name | --program-transform-name \
1184 | --program-transform-nam | --program-transform-na \
1185 | --program-transform-n | --program-transform- \
1186 | --program-transform | --program-transfor \
1187 | --program-transfo | --program-transf \
1188 | --program-trans | --program-tran \
1189 | --progr-tra | --program-tr | --program-t)
1190 ac_prev=program_transform_name ;;
1191 -program-transform-name=* | --program-transform-name=* \
1192 | --program-transform-nam=* | --program-transform-na=* \
1193 | --program-transform-n=* | --program-transform-=* \
1194 | --program-transform=* | --program-transfor=* \
1195 | --program-transfo=* | --program-transf=* \
1196 | --program-trans=* | --program-tran=* \
1197 | --progr-tra=* | --program-tr=* | --program-t=*)
1198 program_transform_name=$ac_optarg ;;
1200 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203 pdfdir=$ac_optarg ;;
1205 -psdir | --psdir | --psdi | --psd | --ps)
1207 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1214 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218 sbindir=$ac_optarg ;;
1220 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222 | --sharedst | --shareds | --shared | --share | --shar \
1224 ac_prev=sharedstatedir ;;
1225 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229 sharedstatedir=$ac_optarg ;;
1231 -site | --site | --sit)
1233 -site=* | --site=* | --sit=*)
1236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239 srcdir=$ac_optarg ;;
1241 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242 | --syscon | --sysco | --sysc | --sys | --sy)
1243 ac_prev=sysconfdir ;;
1244 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246 sysconfdir=$ac_optarg ;;
1248 -target | --target | --targe | --targ | --tar | --ta | --t)
1249 ac_prev=target_alias ;;
1250 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251 target_alias=$ac_optarg ;;
1253 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 -version | --version | --versio | --versi | --vers | -V)
1257 ac_init_version=: ;;
1260 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_$ac_package=\$ac_optarg ;;
1268 -without-* | --without-*)
1269 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275 eval with_$ac_package=no ;;
1278 # Obsolete; use --with-x.
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1295 -*) { echo "$as_me: error: unrecognized option: $ac_option
1296 Try \`$0 --help' for more information." >&2
1297 { (exit 1); exit 1; }; }
1301 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1304 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1305 { (exit 1); exit 1; }; }
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 { echo "$as_me: error: missing argument to $ac_option" >&2
1323 { (exit 1); exit 1; }; }
1326 # Be sure to have absolute directory names.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1332 eval ac_val=\$$ac_var
1334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1338 { (exit 1); exit 1; }; }
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1346 target=$target_alias
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used." >&2
1354 elif test "x$build_alias" != "x$host_alias"; then
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 { echo "$as_me: error: Working directory cannot be determined" >&2
1369 { (exit 1); exit 1; }; }
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 { echo "$as_me: error: pwd does not report name of working directory" >&2
1372 { (exit 1); exit 1; }; }
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$0" ||
1380 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$0" : 'X\(//\)[^/]' \| \
1382 X"$0" : 'X\(//\)$' \| \
1383 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1412 { (exit 1); exit 1; }; }
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1417 { (exit 1); exit 1; }; }
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 # Report the --help message.
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1443 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1450 Defaults for the options are specified in brackets.
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1474 For better control, use the options below.
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1501 --program-prefix=PREFIX prepend PREFIX to installed program names
1502 --program-suffix=SUFFIX append SUFFIX to installed program names
1503 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1521 --enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1522 --enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1523 --enable-kprefix install progs as rpc.knfsd etc
1524 --enable-secure-statd Only lockd can use statd (security)
1525 --enable-rquotad enable rquotad @<:@default=yes@:>@
1526 --enable-mount Create mount.nfs and don't use the util-linux
1527 mount(8) functionality. @<:@default=no@:>@
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1531 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1532 --enable-fast-install@<:@=PKGS@:>@
1533 optimize for fast installation @<:@default=yes@:>@
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-release=XXX set release to XXX [1]
1540 --with-statedir=/foo use state dir /foo /var/lib/nfs
1541 --with-statduser=rpcuser
1542 statd to run under @<:@rpcuser or nobody@:>@
1543 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1544 (optionally in PATH)
1545 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1546 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1548 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1549 --with-krb5=DIR use Kerberos v5 installation in DIR
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1562 CXXCPP C++ preprocessor
1563 F77 Fortran 77 compiler command
1564 FFLAGS Fortran 77 compiler flags
1565 PKG_CONFIG path to pkg-config utility
1567 C compiler flags for RPCSECGSS, overriding pkg-config
1569 linker flags for RPCSECGSS, overriding pkg-config
1571 C compiler flags for GSSAPI, overriding pkg-config
1572 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1577 Report bugs to <nfs@lists.sf.net>.
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" || continue
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1605 .) # We are building in place.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1629 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1638 linux nfs-utils configure 1.0.10
1639 generated by GNU Autoconf 2.61
1641 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1642 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1652 It was created by linux nfs-utils $as_me 1.0.10, which was
1653 generated by GNU Autoconf 2.61. Invocation command line was
1661 @%:@@%:@ --------- @%:@@%:@
1662 @%:@@%:@ Platform. @%:@@%:@
1663 @%:@@%:@ --------- @%:@@%:@
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 echo "PATH: $as_dir"
1698 @%:@@%:@ ----------- @%:@@%:@
1699 @%:@@%:@ Core tests. @%:@@%:@
1700 @%:@@%:@ ----------- @%:@@%:@
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_must_keep_next=false
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
1731 ac_must_keep_next=false # Got value, back to normal.
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 -* ) ac_must_keep_next=true ;;
1745 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log. We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1764 @%:@@%:@ ---------------- @%:@@%:@
1765 @%:@@%:@ Cache variables. @%:@@%:@
1766 @%:@@%:@ ---------------- @%:@@%:@
1769 # The following way of writing the cache mishandles newlines in values,
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1780 _ | IFS | as_nl) ;; #(
1781 *) $as_unset $ac_var ;;
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1801 @%:@@%:@ ----------------- @%:@@%:@
1802 @%:@@%:@ Output variables. @%:@@%:@
1803 @%:@@%:@ ----------------- @%:@@%:@
1806 for ac_var in $ac_subst_vars
1808 eval ac_val=\$$ac_var
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 echo "$ac_var='\''$ac_val'\''"
1816 if test -n "$ac_subst_files"; then
1818 @%:@@%:@ ------------------- @%:@@%:@
1819 @%:@@%:@ File substitutions. @%:@@%:@
1820 @%:@@%:@ ------------------- @%:@@%:@
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 echo "$ac_var='\''$ac_val'\''"
1834 if test -s confdefs.h; then
1836 @%:@@%:@ ----------- @%:@@%:@
1837 @%:@@%:@ confdefs.h. @%:@@%:@
1838 @%:@@%:@ ----------- @%:@@%:@
1844 test "$ac_signal" != 0 &&
1845 echo "$as_me: caught signal $ac_signal"
1846 echo "$as_me: exit $exit_status"
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852 for ac_signal in 1 2 13 15; do
1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1860 # Predefined preprocessor variables.
1862 cat >>confdefs.h <<_ACEOF
1863 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1867 cat >>confdefs.h <<_ACEOF
1868 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 cat >>confdefs.h <<_ACEOF
1873 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 cat >>confdefs.h <<_ACEOF
1878 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1882 cat >>confdefs.h <<_ACEOF
1883 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890 set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 set x "$ac_default_prefix/share/config.site" \
1895 "$ac_default_prefix/etc/config.site"
1900 if test -r "$ac_site_file"; then
1901 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1908 if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
1920 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1925 # Check that the precious variables saved in the cache have kept the same
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1948 echo "$as_me: former value: $ac_old_val" >&2;}
1949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1950 echo "$as_me: current value: $ac_new_val" >&2;}
1951 ac_cache_corrupted=:
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 *) ac_arg=$ac_var=$ac_new_val ;;
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966 if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2007 if test -f "$ac_dir/install-sh"; then
2009 ac_install_sh="$ac_aux_dir/install-sh -c"
2011 elif test -f "$ac_dir/install.sh"; then
2013 ac_install_sh="$ac_aux_dir/install.sh -c"
2015 elif test -f "$ac_dir/shtool"; then
2017 ac_install_sh="$ac_aux_dir/shtool install -c"
2021 if test -z "$ac_aux_dir"; then
2022 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2023 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2024 { (exit 1); exit 1; }; }
2027 # These three variables are undocumented and unsupported,
2028 # and are intended to be withdrawn in a future Autoconf release.
2029 # They can cause serious problems if a builder's source tree is in a directory
2030 # whose full name contains unusual characters.
2031 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2032 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2033 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2036 # Make sure we can run config.sub.
2037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2038 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2039 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2040 { (exit 1); exit 1; }; }
2042 { echo "$as_me:$LINENO: checking build system type" >&5
2043 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2044 if test "${ac_cv_build+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 ac_build_alias=$build_alias
2048 test "x$ac_build_alias" = x &&
2049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2050 test "x$ac_build_alias" = x &&
2051 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2052 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2053 { (exit 1); exit 1; }; }
2054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2055 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2056 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2057 { (exit 1); exit 1; }; }
2060 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2061 echo "${ECHO_T}$ac_cv_build" >&6; }
2062 case $ac_cv_build in
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2065 echo "$as_me: error: invalid value of canonical build" >&2;}
2066 { (exit 1); exit 1; }; };;
2069 ac_save_IFS=$IFS; IFS='-'
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2082 { echo "$as_me:$LINENO: checking host system type" >&5
2083 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2084 if test "${ac_cv_host+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test "x$host_alias" = x; then
2088 ac_cv_host=$ac_cv_build
2090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2091 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2092 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2093 { (exit 1); exit 1; }; }
2097 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2098 echo "${ECHO_T}$ac_cv_host" >&6; }
2101 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2102 echo "$as_me: error: invalid value of canonical host" >&2;}
2103 { (exit 1); exit 1; }; };;
2106 ac_save_IFS=$IFS; IFS='-'
2112 # Remember, the first character of IFS is used to create $*,
2113 # except with old shells:
2116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2121 am__api_version="1.8"
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 if test "${ac_cv_path_install+set}" = set; then
2182 INSTALL=$ac_cv_path_install
2184 # As a last resort, use the slow shell script. Don't cache a
2185 # value for INSTALL within a source directory, because that will
2186 # break other packages using the cache if that directory is
2187 # removed, or if the value is a relative name.
2188 INSTALL=$ac_install_sh
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments. Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214 if test "$*" = "X"; then
2216 set X `ls -t $srcdir/configure conftest.file`
2219 if test "$*" != "X $srcdir/configure conftest.file" \
2220 && test "$*" != "X conftest.file $srcdir/configure"; then
2222 # If neither matched, then we have a broken ls. This can happen
2223 # if, for instance, CONFIG_SHELL is bash and it inherits a
2224 # broken ls alias from the environment. This has actually
2225 # happened. Such a system could not be considered "sane".
2226 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&2;}
2230 { (exit 1); exit 1; }; }
2233 test "$2" = conftest.file
2239 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243 { (exit 1); exit 1; }; }
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $. echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2269 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2273 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2274 # Keeping the `.' argument allows $(mkdir_p) to be used without
2275 # argument. Indeed, we sometimes output rules like
2276 # $(mkdir_p) $(somedir)
2277 # where $(somedir) is conditionally defined.
2278 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2279 # expensive solution, as it forces Make to start a sub-shell.)
2280 mkdir_p='mkdir -p -- .'
2282 # On NextStep and OpenStep, the `mkdir' command does not
2283 # recognize any option. It will interpret all options as
2284 # directories to create, and then abort because `.' already
2286 for d in ./-p ./--version;
2288 test -d $d && rmdir $d
2290 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291 if test -f "$ac_aux_dir/mkinstalldirs"; then
2292 mkdir_p='$(mkinstalldirs)'
2294 mkdir_p='$(install_sh) -d'
2298 for ac_prog in gawk mawk nawk awk
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$AWK"; then
2308 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317 ac_cv_prog_AWK="$ac_prog"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 if test -n "$AWK"; then
2329 { echo "$as_me:$LINENO: result: $AWK" >&5
2330 echo "${ECHO_T}$AWK" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2337 test -n "$AWK" && break
2340 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.make <<\_ACEOF
2349 @echo '@@@%%%=$(MAKE)=@@@%%%'
2351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354 eval ac_cv_prog_make_${ac_make}_set=yes;;
2356 eval ac_cv_prog_make_${ac_make}_set=no;;
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361 { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 SET_MAKE="MAKE=${MAKE-make}"
2370 rm -rf .tst 2>/dev/null
2371 mkdir .tst 2>/dev/null
2372 if test -d .tst; then
2377 rmdir .tst 2>/dev/null
2379 # test to see if srcdir already configured
2380 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381 test -f $srcdir/config.status; then
2382 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384 { (exit 1); exit 1; }; }
2387 # test whether we have cygpath
2388 if test -z "$CYGPATH_W"; then
2389 if (cygpath --version) >/dev/null 2>/dev/null; then
2390 CYGPATH_W='cygpath -w'
2397 # Define the identity of the package.
2402 cat >>confdefs.h <<_ACEOF
2403 @%:@define PACKAGE "$PACKAGE"
2407 cat >>confdefs.h <<_ACEOF
2408 @%:@define VERSION "$VERSION"
2411 # Some tools Automake needs.
2413 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2416 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2419 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2422 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2425 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2428 AMTAR=${AMTAR-"${am_missing_run}tar"}
2430 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'. However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467 { echo "$as_me:$LINENO: result: $STRIP" >&5
2468 echo "${ECHO_T}$STRIP" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2476 if test -z "$ac_cv_prog_STRIP"; then
2478 # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2514 if test "x$ac_ct_STRIP" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2530 STRIP="$ac_cv_prog_STRIP"
2534 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2536 # We need awk for the "check" target. The system "awk" is bad on
2545 # Check whether --with-release was given.
2546 if test "${with_release+set}" = set; then
2547 withval=$with_release; RELEASE=$withval
2554 # Check whether --with-statedir was given.
2555 if test "${with_statedir+set}" = set; then
2556 withval=$with_statedir; statedir=$withval
2558 statedir=/var/lib/nfs
2563 # Check whether --with-statduser was given.
2564 if test "${with_statduser+set}" = set; then
2565 withval=$with_statduser; statduser=$withval
2567 if test "x$cross_compiling" = "xno"; then
2568 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2579 # Check whether --enable-nfsv3 was given.
2580 if test "${enable_nfsv3+set}" = set; then
2581 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2586 if test "$enable_nfsv3" = yes; then
2588 cat >>confdefs.h <<\_ACEOF
2589 @%:@define NFS3_SUPPORTED 1
2596 # Check whether --enable-nfsv4 was given.
2597 if test "${enable_nfsv4+set}" = set; then
2598 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2603 if test "$enable_nfsv4" = yes; then
2605 cat >>confdefs.h <<\_ACEOF
2606 @%:@define NFS4_SUPPORTED 1
2618 if test "$enable_nfsv4" = "yes"; then
2620 CONFIG_NFSV4_FALSE='#'
2622 CONFIG_NFSV4_TRUE='#'
2626 # Check whether --enable-gss was given.
2627 if test "${enable_gss+set}" = set; then
2628 enableval=$enable_gss; enable_gss=$enableval
2633 if test "$enable_gss" = yes; then
2635 cat >>confdefs.h <<\_ACEOF
2636 @%:@define GSS_SUPPORTED 1
2651 if test "$enable_gss" = "yes"; then
2653 CONFIG_GSS_FALSE='#'
2659 # Check whether --enable-kprefix was given.
2660 if test "${enable_kprefix+set}" = set; then
2661 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2667 # Check whether --enable-secure-statd was given.
2668 if test "${enable_secure_statd+set}" = set; then
2669 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2674 if test "$secure_statd" = yes; then
2676 cat >>confdefs.h <<\_ACEOF
2677 @%:@define RESTRICTED_STATD 1
2682 # Check whether --enable-rquotad was given.
2683 if test "${enable_rquotad+set}" = set; then
2684 enableval=$enable_rquotad; enable_rquotad=$enableval
2689 if test "$enable_rquotad" = yes; then
2696 if test "$enable_rquotad" = "yes"; then
2697 CONFIG_RQUOTAD_TRUE=
2698 CONFIG_RQUOTAD_FALSE='#'
2700 CONFIG_RQUOTAD_TRUE='#'
2701 CONFIG_RQUOTAD_FALSE=
2705 # Check whether --enable-mount was given.
2706 if test "${enable_mount+set}" = set; then
2707 enableval=$enable_mount; enable_mount=$enableval
2714 if test "$enable_mount" = "yes"; then
2716 CONFIG_MOUNT_FALSE='#'
2718 CONFIG_MOUNT_TRUE='#'
2723 # Check whether user wants TCP wrappers support
2724 DEPDIR="${am__leading_dot}deps"
2726 ac_config_commands="$ac_config_commands depfiles"
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2735 # If we don't find an include directive, just comment out the code.
2736 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2737 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # We grep out `Entering directory' and `Leaving directory'
2744 # messages which can occur if `w' ends up in MAKEFLAGS.
2745 # In particular we don't look at `^make:' because GNU make might
2746 # be invoked under some other name (usually "gmake"), in which
2747 # case it prints its new name instead of `make'.
2748 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2753 # Now try BSD make style include.
2754 if test "$am__include" = "#"; then
2755 echo '.include "confinc"' > confmf
2756 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2757 am__include=.include
2764 { echo "$as_me:$LINENO: result: $_am_result" >&5
2765 echo "${ECHO_T}$_am_result" >&6; }
2766 rm -f confinc confmf
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then
2770 enableval=$enable_dependency_tracking;
2773 if test "x$enable_dependency_tracking" != xno; then
2774 am_depcomp="$ac_aux_dir/depcomp"
2779 if test "x$enable_dependency_tracking" != xno; then
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CC"; then
2824 { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2827 { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2833 if test -z "$ac_cv_prog_CC"; then
2835 # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC="gcc"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2871 if test "x$ac_ct_CC" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet. If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CC"; then
2921 { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2931 if test -z "$CC"; then
2932 # Extract the first word of "cc", so it can be a program name with args.
2933 set dummy cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951 ac_prog_rejected=yes
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test $ac_prog_rejected = yes; then
2963 # We found a bogon in the path, so make sure we never use it.
2964 set dummy $ac_cv_prog_CC
2966 if test $@%:@ != 0; then
2967 # We chose a different compiler from the bogus one.
2968 # However, it has the same basename, so the bogon will be chosen
2969 # first if we set CC to just the basename; use the full file name.
2971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977 if test -n "$CC"; then
2978 { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 for ac_prog in cl.exe
2991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_CC+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3023 { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3028 test -n "$CC" && break
3031 if test -z "$CC"; then
3033 for ac_prog in cl.exe
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_ac_ct_CC="$ac_prog"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065 echo "${ECHO_T}$ac_ct_CC" >&6; }
3067 { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3072 test -n "$ac_ct_CC" && break
3075 if test "x$ac_ct_CC" = x; then
3078 case $cross_compiling:$ac_tool_warned in
3080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3081 whose name does not start with the host triplet. If you think this
3082 configuration is useful to you, please write to autoconf@gnu.org." >&5
3083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3084 whose name does not start with the host triplet. If you think this
3085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3086 ac_tool_warned=yes ;;
3095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3101 # Provide some information about the compiler.
3102 echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 ac_compiler=`set X $ac_compile; echo $2`
3104 { (ac_try="$ac_compiler --version >&5"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compiler --version >&5") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }
3114 { (ac_try="$ac_compiler -v >&5"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compiler -v >&5") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }
3124 { (ac_try="$ac_compiler -V >&5"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compiler -V >&5") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3155 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3159 # List of possible output files, starting from the most likely.
3160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3161 # only as a last resort. b.out is created by i960 compilers.
3162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3164 # The IRIX 6 linker writes into existing files which may not be
3165 # executable, retaining their permissions. Remove them first so a
3166 # subsequent execution test works.
3168 for ac_file in $ac_files
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3177 if { (ac_try="$ac_link_default"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_link_default") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; then
3187 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3192 for ac_file in $ac_files ''
3194 test -f "$ac_file" || continue
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3199 # We found the default executable, but exeext='' is most
3203 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 # We set ac_cv_exeext here because the later test for it is not
3208 # safe: cross compilers may not add the suffix if given an `-o'
3209 # argument, so we may need to know it at that point already.
3210 # Even if this section looks crufty: it has the advantage of
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3223 { echo "$as_me:$LINENO: result: $ac_file" >&5
3224 echo "${ECHO_T}$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&2;}
3233 { (exit 77); exit 77; }; }
3236 ac_exeext=$ac_cv_exeext
3238 # Check that the compiler produces executables we can run. If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245 if { ac_try='./$ac_file'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 if test "$cross_compiling" = maybe; then
3260 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266 { (exit 1); exit 1; }; }
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run. If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_link") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 for ac_file in conftest.exe conftest conftest.*; do
3299 test -f "$ac_file" || continue
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; then
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } && {
3415 test -z "$ac_c_werror_flag" ||
3416 test ! -s conftest.err
3417 } && test -s conftest.$ac_objext; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3432 GCC=`test $ac_compiler_gnu = yes && echo yes`
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 ac_save_c_werror_flag=$ac_c_werror_flag
3441 ac_c_werror_flag=yes
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3459 rm -f conftest.$ac_objext
3460 if { (ac_try="$ac_compile"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_c_werror_flag=$ac_save_c_werror_flag
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3581 if test "$GCC" = yes; then
3587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_cv_prog_cc_c89=no
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3618 s = g (p, va_arg (v,int));
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
3626 as 'x'. The following induces an error, until -std is added to get
3627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
3629 that's true only with -std. */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3654 CC="$ac_save_CC $ac_arg"
3655 rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest.$ac_objext; then
3672 ac_cv_prog_cc_c89=$ac_arg
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3683 rm -f conftest.$ac_ext
3688 case "x$ac_cv_prog_cc_c89" in
3690 { echo "$as_me:$LINENO: result: none needed" >&5
3691 echo "${ECHO_T}none needed" >&6; } ;;
3693 { echo "$as_me:$LINENO: result: unsupported" >&5
3694 echo "${ECHO_T}unsupported" >&6; } ;;
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 depcc="$CC" am_compiler_list=
3710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716 # We make a subdir and do the tests there. Otherwise we can end up
3717 # making bogus files that we don't know about and never remove. For
3718 # instance it was reported that on HP-UX the gcc test will end up
3719 # making a dummy file named `D' -- because `-MD' means `put the output
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3734 am_cv_CC_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this.
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3796 am_cv_CC_dependencies_compiler_type=none
3800 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_FALSE='#'
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
3821 # Check whether --with-tcp-wrappers was given.
3822 if test "${with_tcp_wrappers+set}" = set; then
3823 withval=$with_tcp_wrappers;
3824 if test "x$withval" != "xno" ; then
3826 saved_LDFLAGS="$LDFLAGS"
3827 saved_CPPFLAGS="$CPPFLAGS"
3828 if test -n "${withval}" -a "${withval}" != "yes"; then
3829 if test -d "${withval}/lib"; then
3830 if test -n "${need_dash_r}"; then
3831 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3833 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3836 if test -n "${need_dash_r}"; then
3837 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3839 LDFLAGS="-L${withval} ${LDFLAGS}"
3842 if test -d "${withval}/include"; then
3843 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3845 CPPFLAGS="-I${withval} ${CPPFLAGS}"
3849 LIBS="$LIBWRAP $LIBS"
3850 { echo "$as_me:$LINENO: checking for libwrap" >&5
3851 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3860 int deny_severity = 0, allow_severity = 0;
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (ac_try="$ac_link"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_link") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest$ac_exeext &&
3887 $as_test_x conftest$ac_exeext; then
3889 { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3893 cat >>confdefs.h <<\_ACEOF
3894 @%:@define LIBWRAP 1
3898 cat >>confdefs.h <<\_ACEOF
3899 @%:@define HAVE_LIBWRAP 1
3903 cat >>confdefs.h <<\_ACEOF
3904 @%:@define HAVE_TCP_WRAPPER 1
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3914 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3915 echo "$as_me: error: *** libwrap missing" >&2;}
3916 { (exit 1); exit 1; }; }
3921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3922 conftest$ac_exeext conftest.$ac_ext
3935 ac_config_headers="$ac_config_headers support/include/config.h"
3938 # Checks for programs.
3940 ac_cpp='$CXXCPP $CPPFLAGS'
3941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944 if test -z "$CXX"; then
3945 if test -n "$CCC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_CXX+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$CXX"; then
3959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 if test -n "$CXX"; then
3980 { echo "$as_me:$LINENO: result: $CXX" >&5
3981 echo "${ECHO_T}$CXX" >&6; }
3983 { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3988 test -n "$CXX" && break
3991 if test -z "$CXX"; then
3993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$ac_ct_CXX"; then
4003 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_ac_ct_CXX="$ac_prog"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4023 if test -n "$ac_ct_CXX"; then
4024 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4025 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4032 test -n "$ac_ct_CXX" && break
4035 if test "x$ac_ct_CXX" = x; then
4038 case $cross_compiling:$ac_tool_warned in
4040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4041 whose name does not start with the host triplet. If you think this
4042 configuration is useful to you, please write to autoconf@gnu.org." >&5
4043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4044 whose name does not start with the host triplet. If you think this
4045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4046 ac_tool_warned=yes ;;
4054 # Provide some information about the compiler.
4055 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (ac_try="$ac_compiler --version >&5"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_compiler --version >&5") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }
4067 { (ac_try="$ac_compiler -v >&5"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compiler -v >&5") 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }
4077 { (ac_try="$ac_compiler -V >&5"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compiler -V >&5") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }
4088 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4089 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4090 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 cat >conftest.$ac_ext <<_ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_cxx_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4140 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4141 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4142 GXX=`test $ac_compiler_gnu = yes && echo yes`
4143 ac_test_CXXFLAGS=${CXXFLAGS+set}
4144 ac_save_CXXFLAGS=$CXXFLAGS
4145 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_cxx_g+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4151 ac_cxx_werror_flag=yes
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && {
4183 test -z "$ac_cxx_werror_flag" ||
4184 test ! -s conftest.err
4185 } && test -s conftest.$ac_objext; then
4186 ac_cv_prog_cxx_g=yes
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_cxx_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest.$ac_objext; then
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_compile") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_cxx_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest.$ac_objext; then
4263 ac_cv_prog_cxx_g=yes
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4280 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4281 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4282 if test "$ac_test_CXXFLAGS" = set; then
4283 CXXFLAGS=$ac_save_CXXFLAGS
4284 elif test $ac_cv_prog_cxx_g = yes; then
4285 if test "$GXX" = yes; then
4291 if test "$GXX" = yes; then
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 depcc="$CXX" am_compiler_list=
4305 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4306 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4307 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4311 # We make a subdir and do the tests there. Otherwise we can end up
4312 # making bogus files that we don't know about and never remove. For
4313 # instance it was reported that on HP-UX the gcc test will end up
4314 # making a dummy file named `D' -- because `-MD' means `put the output
4317 # Copy depcomp to subdir because otherwise we won't find it if we're
4318 # using a relative directory.
4319 cp "$am_depcomp" conftest.dir
4321 # We will build objects and dependencies in a subdirectory because
4322 # it helps to detect inapplicable dependency modes. For instance
4323 # both Tru64's cc and ICC support -MD to output dependencies as a
4324 # side effect of compilation, but ICC will put the dependencies in
4325 # the current directory while Tru64 will put them in the object
4329 am_cv_CXX_dependencies_compiler_type=none
4330 if test "$am_compiler_list" = ""; then
4331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4333 for depmode in $am_compiler_list; do
4334 # Setup a source with many dependencies, because some compilers
4335 # like to wrap large dependency lists on column 80 (with \), and
4336 # we should not choose a depcomp mode which is confused by this.
4338 # We need to recreate these files for each test, as the compiler may
4339 # overwrite some of them when testing with obscure command lines.
4340 # This happens at least with the AIX C compiler.
4342 for i in 1 2 3 4 5 6; do
4343 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4344 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4345 # Solaris 8's {/usr,}/bin/sh.
4346 touch sub/conftst$i.h
4348 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4352 # after this tag, mechanisms are not by side-effect, so they'll
4353 # only be used when explicitly requested
4354 if test "x$enable_dependency_tracking" = xyes; then
4362 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4363 # mode. It turns out that the SunPro C++ compiler does not properly
4364 # handle `-M -o', and we need to detect this.
4365 if depmode=$depmode \
4366 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4368 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4369 >/dev/null 2>conftest.err &&
4370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373 # icc doesn't choke on unknown options, it will just issue warnings
4374 # or remarks (even with -Werror). So we grep stderr for any message
4375 # that says an option was ignored or not supported.
4376 # When given -MP, icc 7.0 and 7.1 complain thusly:
4377 # icc: Command line warning: ignoring option '-M'; no argument required
4378 # The diagnosis changed in icc 8.0:
4379 # icc: Command line remark: option '-MP' not supported
4380 if (grep 'ignoring option' conftest.err ||
4381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382 am_cv_CXX_dependencies_compiler_type=$depmode
4391 am_cv_CXX_dependencies_compiler_type=none
4395 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4396 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4402 test "x$enable_dependency_tracking" != xno \
4403 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4404 am__fastdepCXX_TRUE=
4405 am__fastdepCXX_FALSE='#'
4407 am__fastdepCXX_TRUE='#'
4408 am__fastdepCXX_FALSE=
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test -n "$CC"; then
4447 { echo "$as_me:$LINENO: result: $CC" >&5
4448 echo "${ECHO_T}$CC" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4456 if test -z "$ac_cv_prog_CC"; then
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="gcc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4488 echo "${ECHO_T}$ac_ct_CC" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4494 if test "x$ac_ct_CC" = x; then
4497 case $cross_compiling:$ac_tool_warned in
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4513 if test -z "$CC"; then
4514 if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}cc; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_CC+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 if test -n "$CC"; then
4523 ac_cv_prog_CC="$CC" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_CC="${ac_tool_prefix}cc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 if test -n "$CC"; then
4544 { echo "$as_me:$LINENO: result: $CC" >&5
4545 echo "${ECHO_T}$CC" >&6; }
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4554 if test -z "$CC"; then
4555 # Extract the first word of "cc", so it can be a program name with args.
4556 set dummy cc; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_CC+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC="$CC" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4574 ac_prog_rejected=yes
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 if test $ac_prog_rejected = yes; then
4586 # We found a bogon in the path, so make sure we never use it.
4587 set dummy $ac_cv_prog_CC
4589 if test $@%:@ != 0; then
4590 # We chose a different compiler from the bogus one.
4591 # However, it has the same basename, so the bogon will be chosen
4592 # first if we set CC to just the basename; use the full file name.
4594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4600 if test -n "$CC"; then
4601 { echo "$as_me:$LINENO: result: $CC" >&5
4602 echo "${ECHO_T}$CC" >&6; }
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4610 if test -z "$CC"; then
4611 if test -n "$ac_tool_prefix"; then
4612 for ac_prog in cl.exe
4614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_CC+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$CC"; then
4622 ac_cv_prog_CC="$CC" # Let the user override the test.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 if test -n "$CC"; then
4643 { echo "$as_me:$LINENO: result: $CC" >&5
4644 echo "${ECHO_T}$CC" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4651 test -n "$CC" && break
4654 if test -z "$CC"; then
4656 for ac_prog in cl.exe
4658 # Extract the first word of "$ac_prog", so it can be a program name with args.
4659 set dummy $ac_prog; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="$ac_prog"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4688 echo "${ECHO_T}$ac_ct_CC" >&6; }
4690 { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4695 test -n "$ac_ct_CC" && break
4698 if test "x$ac_ct_CC" = x; then
4701 case $cross_compiling:$ac_tool_warned in
4703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4704 whose name does not start with the host triplet. If you think this
4705 configuration is useful to you, please write to autoconf@gnu.org." >&5
4706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet. If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4709 ac_tool_warned=yes ;;
4718 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4719 See \`config.log' for more details." >&5
4720 echo "$as_me: error: no acceptable C compiler found in \$PATH
4721 See \`config.log' for more details." >&2;}
4722 { (exit 1); exit 1; }; }
4724 # Provide some information about the compiler.
4725 echo "$as_me:$LINENO: checking for C compiler version" >&5
4726 ac_compiler=`set X $ac_compile; echo $2`
4727 { (ac_try="$ac_compiler --version >&5"
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_compiler --version >&5") 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }
4737 { (ac_try="$ac_compiler -v >&5"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compiler -v >&5") 2>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }
4747 { (ac_try="$ac_compiler -V >&5"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compiler -V >&5") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4758 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_compile") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4810 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4811 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4812 GCC=`test $ac_compiler_gnu = yes && echo yes`
4813 ac_test_CFLAGS=${CFLAGS+set}
4814 ac_save_CFLAGS=$CFLAGS
4815 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4816 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_cc_g+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_save_c_werror_flag=$ac_c_werror_flag
4821 ac_c_werror_flag=yes
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest.$ac_objext; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4877 rm -f conftest.$ac_objext
4878 if { (ac_try="$ac_compile"
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_compile") 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } && {
4891 test -z "$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 } && test -s conftest.$ac_objext; then
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 ac_c_werror_flag=$ac_save_c_werror_flag
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4916 rm -f conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.$ac_objext; then
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_c_werror_flag=$ac_save_c_werror_flag
4950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4951 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4952 if test "$ac_test_CFLAGS" = set; then
4953 CFLAGS=$ac_save_CFLAGS
4954 elif test $ac_cv_prog_cc_g = yes; then
4955 if test "$GCC" = yes; then
4961 if test "$GCC" = yes; then
4967 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4968 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_cc_c89+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_cv_prog_cc_c89=no
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4982 #include <sys/types.h>
4983 #include <sys/stat.h>
4984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4985 struct buf { int x; };
4986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4987 static char *e (p, i)
4993 static char *f (char * (*g) (char **, int), char **p, ...)
4998 s = g (p, va_arg (v,int));
5003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5004 function prototypes and stuff, but not '\xHH' hex character constants.
5005 These don't provoke an error unfortunately, instead are silently treated
5006 as 'x'. The following induces an error, until -std is added to get
5007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5008 array size at least. It's necessary to write '\x00'==0 to get something
5009 that's true only with -std. */
5010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5013 inside strings and character constants. */
5015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5017 int test (int i, double x);
5018 struct s1 {int (*f) (int a);};
5019 struct s2 {int (*f) (double a);};
5020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5026 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5034 CC="$ac_save_CC $ac_arg"
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 ac_cv_prog_cc_c89=$ac_arg
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5060 rm -f core conftest.err conftest.$ac_objext
5061 test "x$ac_cv_prog_cc_c89" != "xno" && break
5063 rm -f conftest.$ac_ext
5068 case "x$ac_cv_prog_cc_c89" in
5070 { echo "$as_me:$LINENO: result: none needed" >&5
5071 echo "${ECHO_T}none needed" >&6; } ;;
5073 { echo "$as_me:$LINENO: result: unsupported" >&5
5074 echo "${ECHO_T}unsupported" >&6; } ;;
5076 CC="$CC $ac_cv_prog_cc_c89"
5077 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5078 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 depcc="$CC" am_compiler_list=
5090 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5091 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5092 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5096 # We make a subdir and do the tests there. Otherwise we can end up
5097 # making bogus files that we don't know about and never remove. For
5098 # instance it was reported that on HP-UX the gcc test will end up
5099 # making a dummy file named `D' -- because `-MD' means `put the output
5102 # Copy depcomp to subdir because otherwise we won't find it if we're
5103 # using a relative directory.
5104 cp "$am_depcomp" conftest.dir
5106 # We will build objects and dependencies in a subdirectory because
5107 # it helps to detect inapplicable dependency modes. For instance
5108 # both Tru64's cc and ICC support -MD to output dependencies as a
5109 # side effect of compilation, but ICC will put the dependencies in
5110 # the current directory while Tru64 will put them in the object
5114 am_cv_CC_dependencies_compiler_type=none
5115 if test "$am_compiler_list" = ""; then
5116 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5118 for depmode in $am_compiler_list; do
5119 # Setup a source with many dependencies, because some compilers
5120 # like to wrap large dependency lists on column 80 (with \), and
5121 # we should not choose a depcomp mode which is confused by this.
5123 # We need to recreate these files for each test, as the compiler may
5124 # overwrite some of them when testing with obscure command lines.
5125 # This happens at least with the AIX C compiler.
5127 for i in 1 2 3 4 5 6; do
5128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5129 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5130 # Solaris 8's {/usr,}/bin/sh.
5131 touch sub/conftst$i.h
5133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5137 # after this tag, mechanisms are not by side-effect, so they'll
5138 # only be used when explicitly requested
5139 if test "x$enable_dependency_tracking" = xyes; then
5147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148 # mode. It turns out that the SunPro C++ compiler does not properly
5149 # handle `-M -o', and we need to detect this.
5150 if depmode=$depmode \
5151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5154 >/dev/null 2>conftest.err &&
5155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5156 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5158 # icc doesn't choke on unknown options, it will just issue warnings
5159 # or remarks (even with -Werror). So we grep stderr for any message
5160 # that says an option was ignored or not supported.
5161 # When given -MP, icc 7.0 and 7.1 complain thusly:
5162 # icc: Command line warning: ignoring option '-M'; no argument required
5163 # The diagnosis changed in icc 8.0:
5164 # icc: Command line remark: option '-MP' not supported
5165 if (grep 'ignoring option' conftest.err ||
5166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5167 am_cv_CC_dependencies_compiler_type=$depmode
5176 am_cv_CC_dependencies_compiler_type=none
5180 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5181 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5182 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5187 test "x$enable_dependency_tracking" != xno \
5188 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5190 am__fastdepCC_FALSE='#'
5192 am__fastdepCC_TRUE='#'
5193 am__fastdepCC_FALSE=
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5204 # On Suns, sometimes $CPP names a directory.
5205 if test -n "$CPP" && test -d "$CPP"; then
5208 if test -z "$CPP"; then
5209 if test "${ac_cv_prog_CPP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 # Double quotes because CPP needs to be expanded
5213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5216 for ac_c_preproc_warn_flag in '' yes
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5231 @%:@ include <limits.h>
5233 @%:@ include <assert.h>
5237 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245 grep -v '^ *+' conftest.er1 >conftest.err
5247 cat conftest.err >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } >/dev/null && {
5250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5251 test ! -s conftest.err
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 # Broken: fails on valid input.
5262 rm -f conftest.err conftest.$ac_ext
5264 # OK, works on sane cases. Now check whether nonexistent headers
5265 # can be detected and how.
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 @%:@include <ac_nonexistent.h>
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } >/dev/null && {
5287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5290 # Broken: success on invalid input.
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5296 # Passes both tests.
5301 rm -f conftest.err conftest.$ac_ext
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305 rm -f conftest.err conftest.$ac_ext
5306 if $ac_preproc_ok; then
5318 { echo "$as_me:$LINENO: result: $CPP" >&5
5319 echo "${ECHO_T}$CPP" >&6; }
5321 for ac_c_preproc_warn_flag in '' yes
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5328 # not just through cpp. "Syntax error" is here to catch this case.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5336 @%:@ include <limits.h>
5338 @%:@ include <assert.h>
5342 if { (ac_try="$ac_cpp conftest.$ac_ext"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } >/dev/null && {
5355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 # Broken: fails on valid input.
5367 rm -f conftest.err conftest.$ac_ext
5369 # OK, works on sane cases. Now check whether nonexistent headers
5370 # can be detected and how.
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 @%:@include <ac_nonexistent.h>
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } >/dev/null && {
5392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5395 # Broken: success on invalid input.
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 # Passes both tests.
5406 rm -f conftest.err conftest.$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&2;}
5418 { (exit 1); exit 1; }; }
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 # Find a good install program. We prefer a C program (faster),
5428 # so one script is as good as another. But avoid the broken or
5429 # incompatible versions:
5430 # SysV /etc/install, /usr/sbin/install
5431 # SunOS /usr/etc/install
5432 # IRIX /sbin/install
5434 # AmigaOS /C/install, which installs bootblocks on floppy discs
5435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5438 # OS/2's system install, which has a completely different semantic
5439 # ./install, which can be erroneously created by make from ./install.sh.
5440 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5442 if test -z "$INSTALL"; then
5443 if test "${ac_cv_path_install+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir=.
5451 # Account for people who put trailing slashes in PATH elements.
5453 ./ | .// | /cC/* | \
5454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5458 # OSF1 and SCO ODT 3.0 have their own names for install.
5459 # Don't use installbsd from OSF since it installs stuff as root
5461 for ac_prog in ginstall scoinst install; do
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5464 if test $ac_prog = install &&
5465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5466 # AIX install. It has an incompatible calling convention.
5468 elif test $ac_prog = install &&
5469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5470 # program-specific install script used by HP pwplus--don't use.
5473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5486 if test "${ac_cv_path_install+set}" = set; then
5487 INSTALL=$ac_cv_path_install
5489 # As a last resort, use the slow shell script. Don't cache a
5490 # value for INSTALL within a source directory, because that will
5491 # break other packages using the cache if that directory is
5492 # removed, or if the value is a relative name.
5493 INSTALL=$ac_install_sh
5496 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5497 echo "${ECHO_T}$INSTALL" >&6; }
5499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5500 # It thinks the first close brace ends the variable substitution.
5501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5507 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5510 if test "$LN_S" = "ln -s"; then
5511 { echo "$as_me:$LINENO: result: yes" >&5
5512 echo "${ECHO_T}yes" >&6; }
5514 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5515 echo "${ECHO_T}no, using $LN_S" >&6; }
5518 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5520 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5521 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 cat >conftest.make <<\_ACEOF
5527 @echo '@@@%%%=$(MAKE)=@@@%%%'
5529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5530 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5532 eval ac_cv_prog_make_${ac_make}_set=yes;;
5534 eval ac_cv_prog_make_${ac_make}_set=no;;
5538 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5539 { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5543 { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5545 SET_MAKE="MAKE=${MAKE-make}"
5548 # Check whether --enable-shared was given.
5549 if test "${enable_shared+set}" = set; then
5550 enableval=$enable_shared; p=${PACKAGE-default}
5552 yes) enable_shared=yes ;;
5553 no) enable_shared=no ;;
5556 # Look at the argument we got. We use all the common list separators.
5557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5558 for pkg in $enableval; do
5560 if test "X$pkg" = "X$p"; then
5572 # Check whether --enable-static was given.
5573 if test "${enable_static+set}" = set; then
5574 enableval=$enable_static; p=${PACKAGE-default}
5576 yes) enable_static=yes ;;
5577 no) enable_static=no ;;
5580 # Look at the argument we got. We use all the common list separators.
5581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5582 for pkg in $enableval; do
5584 if test "X$pkg" = "X$p"; then
5596 # Check whether --enable-fast-install was given.
5597 if test "${enable_fast_install+set}" = set; then
5598 enableval=$enable_fast_install; p=${PACKAGE-default}
5600 yes) enable_fast_install=yes ;;
5601 no) enable_fast_install=no ;;
5603 enable_fast_install=no
5604 # Look at the argument we got. We use all the common list separators.
5605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5606 for pkg in $enableval; do
5608 if test "X$pkg" = "X$p"; then
5609 enable_fast_install=yes
5616 enable_fast_install=yes
5620 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5622 if test "${lt_cv_path_SED+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 # Loop through the user's path and test for sed and gsed.
5626 # Then use that list of sed's as ones to test for truncation.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for lt_ac_prog in sed gsed; do
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5635 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5643 # along with /bin/sed that truncates output.
5644 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5645 test ! -f $lt_ac_sed && continue
5646 cat /dev/null > conftest.in
5648 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5649 # Check for GNU sed and select it if it is found.
5650 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5651 lt_cv_path_SED=$lt_ac_sed
5655 cat conftest.in conftest.in >conftest.tmp
5656 mv conftest.tmp conftest.in
5657 cp conftest.in conftest.nl
5659 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5660 cmp -s conftest.out conftest.nl || break
5661 # 10000 chars as input seems more than enough
5662 test $lt_ac_count -gt 10 && break
5663 lt_ac_count=`expr $lt_ac_count + 1`
5664 if test $lt_ac_count -gt $lt_ac_max; then
5665 lt_ac_max=$lt_ac_count
5666 lt_cv_path_SED=$lt_ac_sed
5674 { echo "$as_me:$LINENO: result: $SED" >&5
5675 echo "${ECHO_T}$SED" >&6; }
5677 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5678 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5679 if test "${ac_cv_path_GREP+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 # Extract the first word of "grep ggrep" to use in msg output
5683 if test -z "$GREP"; then
5684 set dummy grep ggrep; ac_prog_name=$2
5685 if test "${ac_cv_path_GREP+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 ac_path_GREP_found=false
5689 # Loop through the user's path and test for each of PROGNAME-LIST
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5694 test -z "$as_dir" && as_dir=.
5695 for ac_prog in grep ggrep; do
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5698 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5699 # Check for GNU ac_path_GREP and select it if it is found.
5700 # Check for GNU $ac_path_GREP
5701 case `"$ac_path_GREP" --version 2>&1` in
5703 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5706 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5709 cat "conftest.in" "conftest.in" >"conftest.tmp"
5710 mv "conftest.tmp" "conftest.in"
5711 cp "conftest.in" "conftest.nl"
5712 echo 'GREP' >> "conftest.nl"
5713 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715 ac_count=`expr $ac_count + 1`
5716 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5717 # Best one so far, save it but keep looking for a better one
5718 ac_cv_path_GREP="$ac_path_GREP"
5719 ac_path_GREP_max=$ac_count
5721 # 10*(2^10) chars as input seems more than enough
5722 test $ac_count -gt 10 && break
5724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5728 $ac_path_GREP_found && break 3
5738 GREP="$ac_cv_path_GREP"
5739 if test -z "$GREP"; then
5740 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5741 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5742 { (exit 1); exit 1; }; }
5746 ac_cv_path_GREP=$GREP
5751 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5752 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5753 GREP="$ac_cv_path_GREP"
5756 { echo "$as_me:$LINENO: checking for egrep" >&5
5757 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_EGREP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5762 then ac_cv_path_EGREP="$GREP -E"
5764 # Extract the first word of "egrep" to use in msg output
5765 if test -z "$EGREP"; then
5766 set dummy egrep; ac_prog_name=$2
5767 if test "${ac_cv_path_EGREP+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_path_EGREP_found=false
5771 # Loop through the user's path and test for each of PROGNAME-LIST
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776 test -z "$as_dir" && as_dir=.
5777 for ac_prog in egrep; do
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5780 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5781 # Check for GNU ac_path_EGREP and select it if it is found.
5782 # Check for GNU $ac_path_EGREP
5783 case `"$ac_path_EGREP" --version 2>&1` in
5785 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5788 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5791 cat "conftest.in" "conftest.in" >"conftest.tmp"
5792 mv "conftest.tmp" "conftest.in"
5793 cp "conftest.in" "conftest.nl"
5794 echo 'EGREP' >> "conftest.nl"
5795 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5797 ac_count=`expr $ac_count + 1`
5798 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5799 # Best one so far, save it but keep looking for a better one
5800 ac_cv_path_EGREP="$ac_path_EGREP"
5801 ac_path_EGREP_max=$ac_count
5803 # 10*(2^10) chars as input seems more than enough
5804 test $ac_count -gt 10 && break
5806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 $ac_path_EGREP_found && break 3
5820 EGREP="$ac_cv_path_EGREP"
5821 if test -z "$EGREP"; then
5822 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824 { (exit 1); exit 1; }; }
5828 ac_cv_path_EGREP=$EGREP
5834 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5835 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5836 EGREP="$ac_cv_path_EGREP"
5840 # Check whether --with-gnu-ld was given.
5841 if test "${with_gnu_ld+set}" = set; then
5842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5848 if test "$GCC" = yes; then
5849 # Check if gcc -print-prog-name=ld gives a path.
5850 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5851 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5854 # gcc leaves a trailing carriage return which upsets mingw
5855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5860 # Accept absolute paths.
5862 re_direlt='/[^/][^/]*/\.\./'
5863 # Canonicalize the pathname of ld
5864 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5865 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5866 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5868 test -z "$LD" && LD="$ac_prog"
5871 # If it fails, then pretend we aren't using GCC.
5875 # If it is relative, then search for the first ld in PATH.
5879 elif test "$with_gnu_ld" = yes; then
5880 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5883 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5886 if test "${lt_cv_path_LD+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test -z "$LD"; then
5890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5891 for ac_dir in $PATH; do
5893 test -z "$ac_dir" && ac_dir=.
5894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5895 lt_cv_path_LD="$ac_dir/$ac_prog"
5896 # Check to see if the program is GNU ld. I'd rather use --version,
5897 # but apparently some variants of GNU ld only accept -v.
5898 # Break only if it was the GNU/non-GNU ld that we prefer.
5899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5900 *GNU* | *'with BFD'*)
5901 test "$with_gnu_ld" != no && break
5904 test "$with_gnu_ld" != yes && break
5911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5916 if test -n "$LD"; then
5917 { echo "$as_me:$LINENO: result: $LD" >&5
5918 echo "${ECHO_T}$LD" >&6; }
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5923 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5924 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5925 { (exit 1); exit 1; }; }
5926 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5927 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5928 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5932 case `$LD -v 2>&1 </dev/null` in
5933 *GNU* | *'with BFD'*)
5934 lt_cv_prog_gnu_ld=yes
5937 lt_cv_prog_gnu_ld=no
5941 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5942 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5943 with_gnu_ld=$lt_cv_prog_gnu_ld
5946 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5947 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5948 if test "${lt_cv_ld_reload_flag+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 lt_cv_ld_reload_flag='-r'
5953 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5954 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5955 reload_flag=$lt_cv_ld_reload_flag
5956 case $reload_flag in
5958 *) reload_flag=" $reload_flag" ;;
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963 if test "$GCC" = yes; then
5964 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5966 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5971 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5972 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5973 if test "${lt_cv_path_NM+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test -n "$NM"; then
5977 # Let the user override the test.
5980 lt_nm_to_check="${ac_tool_prefix}nm"
5981 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5982 lt_nm_to_check="$lt_nm_to_check nm"
5984 for lt_tmp_nm in $lt_nm_to_check; do
5985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5988 test -z "$ac_dir" && ac_dir=.
5989 tmp_nm="$ac_dir/$lt_tmp_nm"
5990 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5991 # Check to see if the nm accepts a BSD-compat flag.
5992 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5993 # nm: unknown option "B" ignored
5994 # Tru64's nm complains that /dev/null is an invalid object file
5995 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5996 */dev/null* | *'Invalid file or object type'*)
5997 lt_cv_path_NM="$tmp_nm -B"
6001 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6003 lt_cv_path_NM="$tmp_nm -p"
6007 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6008 continue # so that we can try to find one that supports BSD flags
6017 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6020 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6021 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6024 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6025 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6026 if test "${lt_cv_deplibs_check_method+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 lt_cv_file_magic_cmd='$MAGIC_CMD'
6030 lt_cv_file_magic_test_file=
6031 lt_cv_deplibs_check_method='unknown'
6032 # Need to set the preceding variable on all platforms that support
6033 # interlibrary dependencies.
6034 # 'none' -- dependencies not supported.
6035 # `unknown' -- same as none, but documents that we really don't know.
6036 # 'pass_all' -- all dependencies passed with no checks.
6037 # 'test_compile' -- check by making test program.
6038 # 'file_magic [[regex]]' -- check by looking for files in library path
6039 # which responds to the $file_magic_cmd with a given extended regex.
6040 # If you have `file' or equivalent on your system and you're not sure
6041 # whether `pass_all' will *always* work, you probably want this one.
6045 lt_cv_deplibs_check_method=pass_all
6049 lt_cv_deplibs_check_method=pass_all
6053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6054 lt_cv_file_magic_cmd='/usr/bin/file -L'
6055 lt_cv_file_magic_test_file=/shlib/libc.so
6059 # func_win32_libid is a shell function defined in ltmain.sh
6060 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6061 lt_cv_file_magic_cmd='func_win32_libid'
6065 # Base MSYS/MinGW do not provide the 'file' command needed by
6066 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6067 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6068 lt_cv_file_magic_cmd='$OBJDUMP -f'
6071 darwin* | rhapsody*)
6072 lt_cv_deplibs_check_method=pass_all
6075 freebsd* | dragonfly*)
6076 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6079 # Not sure whether the presence of OpenBSD here was a mistake.
6080 # Let's accept both of them until this is cleared up.
6081 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6082 lt_cv_file_magic_cmd=/usr/bin/file
6083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6087 lt_cv_deplibs_check_method=pass_all
6092 lt_cv_deplibs_check_method=pass_all
6095 hpux10.20* | hpux11*)
6096 lt_cv_file_magic_cmd=/usr/bin/file
6099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6100 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6103 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]'
6104 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6108 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6114 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6118 irix5* | irix6* | nonstopux*)
6120 *-32|*"-32 ") libmagic=32-bit;;
6121 *-n32|*"-n32 ") libmagic=N32;;
6122 *-64|*"-64 ") libmagic=64-bit;;
6123 *) libmagic=never-match;;
6125 lt_cv_deplibs_check_method=pass_all
6128 # This must be Linux ELF.
6129 linux* | k*bsd*-gnu)
6130 lt_cv_deplibs_check_method=pass_all
6133 netbsd* | netbsdelf*-gnu)
6134 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6143 lt_cv_file_magic_cmd=/usr/bin/file
6144 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6148 lt_cv_deplibs_check_method=unknown
6152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6159 osf3* | osf4* | osf5*)
6160 lt_cv_deplibs_check_method=pass_all
6164 lt_cv_deplibs_check_method=pass_all
6168 case $host_vendor in
6170 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]'
6171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6174 lt_cv_deplibs_check_method=pass_all
6177 lt_cv_file_magic_cmd='/bin/file'
6178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6181 lt_cv_file_magic_cmd='/bin/file'
6182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6183 lt_cv_file_magic_test_file=/lib/libc.so
6186 lt_cv_deplibs_check_method=pass_all
6189 lt_cv_deplibs_check_method=pass_all
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195 lt_cv_deplibs_check_method=pass_all
6200 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6201 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6202 file_magic_cmd=$lt_cv_file_magic_cmd
6203 deplibs_check_method=$lt_cv_deplibs_check_method
6204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6209 # If no C compiler was specified, use CC.
6212 # If no C compiler flags were specified, use CFLAGS.
6213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6215 # Allow CC to be a program name with arguments.
6218 # Check whether --enable-libtool-lock was given.
6219 if test "${enable_libtool_lock+set}" = set; then
6220 enableval=$enable_libtool_lock;
6223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6225 # Some flags need to be propagated to the compiler or linker for good
6229 # Find out which ABI we are using.
6230 echo 'int i;' > conftest.$ac_ext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; then
6236 case `/usr/bin/file conftest.$ac_objext` in
6248 # Find out which ABI we are using.
6249 echo '#line __oline__ "configure"' > conftest.$ac_ext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; then
6255 if test "$lt_cv_prog_gnu_ld" = yes; then
6256 case `/usr/bin/file conftest.$ac_objext` in
6258 LD="${LD-ld} -melf32bsmip"
6261 LD="${LD-ld} -melf32bmipn32"
6264 LD="${LD-ld} -melf64bmip"
6268 case `/usr/bin/file conftest.$ac_objext` in
6284 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6285 # Find out which ABI we are using.
6286 echo 'int i;' > conftest.$ac_ext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; then
6292 case `/usr/bin/file conftest.o` in
6296 LD="${LD-ld} -m elf_i386"
6298 ppc64-*linux*|powerpc64-*linux*)
6299 LD="${LD-ld} -m elf32ppclinux"
6302 LD="${LD-ld} -m elf_s390"
6305 LD="${LD-ld} -m elf32_sparc"
6312 LD="${LD-ld} -m elf_x86_64"
6314 ppc*-*linux*|powerpc*-*linux*)
6315 LD="${LD-ld} -m elf64ppc"
6318 LD="${LD-ld} -m elf64_s390"
6321 LD="${LD-ld} -m elf64_sparc"
6331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6332 SAVE_CFLAGS="$CFLAGS"
6333 CFLAGS="$CFLAGS -belf"
6334 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6335 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6336 if test "${lt_cv_cc_needs_belf+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 ac_cpp='$CPP $CPPFLAGS'
6341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (ac_try="$ac_link"
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_link") 2>conftest.er1
6369 grep -v '^ *+' conftest.er1 >conftest.err
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest$ac_exeext &&
6377 $as_test_x conftest$ac_exeext; then
6378 lt_cv_cc_needs_belf=yes
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 lt_cv_cc_needs_belf=no
6386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6387 conftest$ac_exeext conftest.$ac_ext
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6395 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6396 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6397 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6398 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6399 CFLAGS="$SAVE_CFLAGS"
6403 # Find out which ABI we are using.
6404 echo 'int i;' > conftest.$ac_ext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; then
6410 case `/usr/bin/file conftest.o` in
6412 case $lt_cv_prog_gnu_ld in
6413 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6414 *) LD="${LD-ld} -64" ;;
6425 need_locks="$enable_libtool_lock"
6429 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6430 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6431 if test "${ac_cv_header_stdc+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } && {
6467 test -z "$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6469 } && test -s conftest.$ac_objext; then
6470 ac_cv_header_stdc=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 ac_cv_header_stdc=no
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 if test $ac_cv_header_stdc = yes; then
6481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "memchr" >/dev/null 2>&1; then
6495 ac_cv_header_stdc=no
6501 if test $ac_cv_header_stdc = yes; then
6502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "free" >/dev/null 2>&1; then
6516 ac_cv_header_stdc=no
6522 if test $ac_cv_header_stdc = yes; then
6523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6524 if test "$cross_compiling" = yes; then
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6535 #if ((' ' & 0x0FF) == 0x020)
6536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6539 # define ISLOWER(c) \
6540 (('a' <= (c) && (c) <= 'i') \
6541 || ('j' <= (c) && (c) <= 'r') \
6542 || ('s' <= (c) && (c) <= 'z'))
6543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6551 for (i = 0; i < 256; i++)
6552 if (XOR (islower (i), ISLOWER (i))
6553 || toupper (i) != TOUPPER (i))
6558 rm -f conftest$ac_exeext
6559 if { (ac_try="$ac_link"
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_link") 2>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6569 { (case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_try") 2>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6580 echo "$as_me: program exited with status $ac_status" >&5
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_cv_header_stdc=no
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6593 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6594 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6595 if test $ac_cv_header_stdc = yes; then
6597 cat >>confdefs.h <<\_ACEOF
6598 @%:@define STDC_HEADERS 1
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6614 inttypes.h stdint.h unistd.h
6616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6630 @%:@include <$ac_header>
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 eval "$as_ac_Header=yes"
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 eval "$as_ac_Header=no"
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 ac_res=`eval echo '${'$as_ac_Header'}'`
6660 { echo "$as_me:$LINENO: result: $ac_res" >&5
6661 echo "${ECHO_T}$ac_res" >&6; }
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6673 for ac_header in dlfcn.h
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_res=`eval echo '${'$as_ac_Header'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6686 # Is the header compilable?
6687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 @%:@include <$ac_header>
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_header_compiler=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_header_compiler=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725 echo "${ECHO_T}$ac_header_compiler" >&6; }
6727 # Is the header present?
6728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 @%:@include <$ac_header>
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6754 ac_header_preproc=yes
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 ac_header_preproc=no
6762 rm -f conftest.err conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6764 echo "${ECHO_T}$ac_header_preproc" >&6; }
6766 # So? What about this header?
6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6773 ac_header_preproc=yes
6776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6789 @%:@@%:@ ------------------------------- @%:@@%:@
6790 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6791 @%:@@%:@ ------------------------------- @%:@@%:@
6793 ) | sed "s/^/$as_me: WARNING: /" >&2
6796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 eval "$as_ac_Header=\$ac_header_preproc"
6803 ac_res=`eval echo '${'$as_ac_Header'}'`
6804 { echo "$as_me:$LINENO: result: $ac_res" >&5
6805 echo "${ECHO_T}$ac_res" >&6; }
6808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6809 cat >>confdefs.h <<_ACEOF
6810 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6820 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6821 (test "X$CXX" != "Xg++"))) ; then
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6829 if test -z "$CXXCPP"; then
6830 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 # Double quotes because CXXCPP needs to be expanded
6834 for CXXCPP in "$CXX -E" "/lib/cpp"
6837 for ac_cxx_preproc_warn_flag in '' yes
6839 # Use a header file that comes with gcc, so configuring glibc
6840 # with a fresh cross-compiler works.
6841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842 # <limits.h> exists even on freestanding compilers.
6843 # On the NeXT, cc -E runs the code through the compiler's parser,
6844 # not just through cpp. "Syntax error" is here to catch this case.
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6852 @%:@ include <limits.h>
6854 @%:@ include <assert.h>
6858 if { (ac_try="$ac_cpp conftest.$ac_ext"
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } >/dev/null && {
6871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6872 test ! -s conftest.err
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 # Broken: fails on valid input.
6883 rm -f conftest.err conftest.$ac_ext
6885 # OK, works on sane cases. Now check whether nonexistent headers
6886 # can be detected and how.
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 @%:@include <ac_nonexistent.h>
6895 if { (ac_try="$ac_cpp conftest.$ac_ext"
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } >/dev/null && {
6908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6909 test ! -s conftest.err
6911 # Broken: success on invalid input.
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 # Passes both tests.
6922 rm -f conftest.err conftest.$ac_ext
6925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6926 rm -f conftest.err conftest.$ac_ext
6927 if $ac_preproc_ok; then
6932 ac_cv_prog_CXXCPP=$CXXCPP
6935 CXXCPP=$ac_cv_prog_CXXCPP
6937 ac_cv_prog_CXXCPP=$CXXCPP
6939 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6940 echo "${ECHO_T}$CXXCPP" >&6; }
6942 for ac_cxx_preproc_warn_flag in '' yes
6944 # Use a header file that comes with gcc, so configuring glibc
6945 # with a fresh cross-compiler works.
6946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947 # <limits.h> exists even on freestanding compilers.
6948 # On the NeXT, cc -E runs the code through the compiler's parser,
6949 # not just through cpp. "Syntax error" is here to catch this case.
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6957 @%:@ include <limits.h>
6959 @%:@ include <assert.h>
6963 if { (ac_try="$ac_cpp conftest.$ac_ext"
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6977 test ! -s conftest.err
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 # Broken: fails on valid input.
6988 rm -f conftest.err conftest.$ac_ext
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 @%:@include <ac_nonexistent.h>
7000 if { (ac_try="$ac_cpp conftest.$ac_ext"
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } >/dev/null && {
7013 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7014 test ! -s conftest.err
7016 # Broken: success on invalid input.
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 # Passes both tests.
7027 rm -f conftest.err conftest.$ac_ext
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then
7035 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7038 See \`config.log' for more details." >&2;}
7039 { (exit 1); exit 1; }; }
7043 ac_cpp='$CXXCPP $CPPFLAGS'
7044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7055 if test -n "$ac_tool_prefix"; then
7056 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
7058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_prog_F77+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 if test -n "$F77"; then
7066 ac_cv_prog_F77="$F77" # Let the user override the test.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 if test -n "$F77"; then
7087 { echo "$as_me:$LINENO: result: $F77" >&5
7088 echo "${ECHO_T}$F77" >&6; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7095 test -n "$F77" && break
7098 if test -z "$F77"; then
7100 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
7102 # Extract the first word of "$ac_prog", so it can be a program name with args.
7103 set dummy $ac_prog; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 if test -n "$ac_ct_F77"; then
7110 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_prog_ac_ct_F77="$ac_prog"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7130 if test -n "$ac_ct_F77"; then
7131 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7132 echo "${ECHO_T}$ac_ct_F77" >&6; }
7134 { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7139 test -n "$ac_ct_F77" && break
7142 if test "x$ac_ct_F77" = x; then
7145 case $cross_compiling:$ac_tool_warned in
7147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&5
7150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7151 whose name does not start with the host triplet. If you think this
7152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7153 ac_tool_warned=yes ;;
7160 # Provide some information about the compiler.
7161 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7162 ac_compiler=`set X $ac_compile; echo $2`
7163 { (ac_try="$ac_compiler --version >&5"
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_compiler --version >&5") 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }
7173 { (ac_try="$ac_compiler -v >&5"
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_compiler -v >&5") 2>&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }
7183 { (ac_try="$ac_compiler -V >&5"
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compiler -V >&5") 2>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }
7195 # If we don't use `.F' as extension, the preprocessor is not run on the
7196 # input file. (Note that this only needs to work for GNU compilers.)
7199 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7200 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7201 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 cat >conftest.$ac_ext <<_ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^ *+' conftest.er1 >conftest.err
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_f77_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7241 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7242 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7244 ac_test_FFLAGS=${FFLAGS+set}
7245 ac_save_FFLAGS=$FFLAGS
7247 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7248 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7249 if test "${ac_cv_prog_f77_g+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_f77_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_prog_f77_g=yes
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7287 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7288 if test "$ac_test_FFLAGS" = set; then
7289 FFLAGS=$ac_save_FFLAGS
7290 elif test $ac_cv_prog_f77_g = yes; then
7291 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7297 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7304 G77=`test $ac_compiler_gnu = yes && echo yes`
7306 ac_cpp='$CPP $CPPFLAGS'
7307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7315 # find the maximum length of command line arguments
7316 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7317 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7318 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 # On DJGPP, this test can blow up pretty badly due to problems in libc
7327 # (any single argument exceeding 2000 bytes causes a buffer overrun
7328 # during glob expansion). Even if it were fixed, the result of this
7329 # check would be larger than it should be.
7330 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7334 # Under GNU Hurd, this test is not required because there is
7335 # no limit to the length of command line arguments.
7336 # Libtool will interpret -1 as no limit whatsoever
7337 lt_cv_sys_max_cmd_len=-1;
7341 # On Win9x/ME, this test blows up -- it succeeds, but takes
7342 # about 5 minutes as the teststring grows exponentially.
7343 # Worse, since 9x/ME are not pre-emptively multitasking,
7344 # you end up with a "frozen" computer, even though with patience
7345 # the test eventually succeeds (with a max line length of 256k).
7346 # Instead, let's just punt: use the minimum linelength reported by
7347 # all of the supported platforms: 8192 (on NT/2K/XP).
7348 lt_cv_sys_max_cmd_len=8192;
7352 # On AmigaOS with pdksh, this test takes hours, literally.
7353 # So we just punt and use a minimum line length of 8192.
7354 lt_cv_sys_max_cmd_len=8192;
7357 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7358 # This has been around since 386BSD, at least. Likely further.
7359 if test -x /sbin/sysctl; then
7360 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7361 elif test -x /usr/sbin/sysctl; then
7362 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7364 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7366 # And add a safety zone
7367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7372 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7373 lt_cv_sys_max_cmd_len=196608
7377 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7378 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7379 # nice to cause kernel panics so lets avoid the loop below.
7380 # First set a reasonable default.
7381 lt_cv_sys_max_cmd_len=16384
7383 if test -x /sbin/sysconfig; then
7384 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7385 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7390 lt_cv_sys_max_cmd_len=102400
7392 sysv5* | sco5v6* | sysv4.2uw2*)
7393 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7394 if test -n "$kargmax"; then
7395 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7397 lt_cv_sys_max_cmd_len=32768
7401 # If test is not a shell built-in, we'll probably end up computing a
7402 # maximum length that is only half of the actual maximum length, but
7404 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7405 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7406 = "XX$teststring") >/dev/null 2>&1 &&
7407 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7408 lt_cv_sys_max_cmd_len=$new_result &&
7409 test $i != 17 # 1/2 MB should be enough
7412 teststring=$teststring$teststring
7415 # Add a significant safety factor because C++ compilers can tack on massive
7416 # amounts of additional arguments before passing them to the linker.
7417 # It appears as though 1/2 is a usable value.
7418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7424 if test -n $lt_cv_sys_max_cmd_len ; then
7425 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7426 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7428 { echo "$as_me:$LINENO: result: none" >&5
7429 echo "${ECHO_T}none" >&6; }
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451 # Transform an extracted symbol line into a proper C declaration
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7454 # Transform an extracted symbol line into symbol name and symbol address
7455 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'"
7457 # Define system-specific variables.
7462 cygwin* | mingw* | pw32*)
7463 symcode='[ABCDGISTW]'
7465 hpux*) # Its linker distinguishes data from code symbols
7466 if test "$host_cpu" = ia64; then
7467 symcode='[ABCDEGRST]'
7469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7470 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'"
7472 linux* | k*bsd*-gnu)
7473 if test "$host_cpu" = ia64; then
7474 symcode='[ABCDGIRSTW]'
7475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7476 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'"
7480 symcode='[BCDEGRST]'
7483 symcode='[BCDEGQRST]'
7494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7502 # Handle CRLF in mingw tool chain
7506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7510 # If we're using GNU nm, then use its standard symbol codes.
7511 case `$NM -V 2>&1` in
7512 *GNU* | *'with BFD'*)
7513 symcode='[ABCDGIRSTW]' ;;
7516 # Try without a prefix undercore, then with it.
7517 for ac_symprfx in "" "_"; do
7519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7520 symxfrm="\\1 $ac_symprfx\\2 \\2"
7522 # Write the raw and C identifiers.
7523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7525 # Check to see that the pipe works correctly.
7529 cat > conftest.$ac_ext <<EOF
7534 void nm_test_func(){}
7538 int main(){nm_test_var='a';nm_test_func();return(0);}
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; then
7546 # Now try to grab the symbols.
7548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && test -s "$nlist"; then
7553 # Try sorting and uniquifying the output.
7554 if sort "$nlist" | uniq > "$nlist"T; then
7555 mv -f "$nlist"T "$nlist"
7560 # Make sure that we snagged all the symbols we need.
7561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7563 cat <<EOF > conftest.$ac_ext
7569 # Now generate the symbol file.
7570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7572 cat <<EOF >> conftest.$ac_ext
7573 #if defined (__STDC__) && __STDC__
7574 # define lt_ptr_t void *
7576 # define lt_ptr_t char *
7580 /* The mapping between symbol names and symbols. */
7585 lt_preloaded_symbols[] =
7588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7589 cat <<\EOF >> conftest.$ac_ext
7597 # Now try linking the two files.
7598 mv conftest.$ac_objext conftstm.$ac_objext
7599 lt_save_LIBS="$LIBS"
7600 lt_save_CFLAGS="$CFLAGS"
7601 LIBS="conftstm.$ac_objext"
7602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7610 LIBS="$lt_save_LIBS"
7611 CFLAGS="$lt_save_CFLAGS"
7613 echo "cannot find nm_test_func in $nlist" >&5
7616 echo "cannot find nm_test_var in $nlist" >&5
7619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7622 echo "$progname: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7625 rm -f conftest* conftst*
7627 # Do not use the global_symbol_pipe unless it works.
7628 if test "$pipe_works" = yes; then
7631 lt_cv_sys_global_symbol_pipe=
7637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7638 lt_cv_sys_global_symbol_to_cdecl=
7640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7641 { echo "$as_me:$LINENO: result: failed" >&5
7642 echo "${ECHO_T}failed" >&6; }
7644 { echo "$as_me:$LINENO: result: ok" >&5
7645 echo "${ECHO_T}ok" >&6; }
7648 { echo "$as_me:$LINENO: checking for objdir" >&5
7649 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7650 if test "${lt_cv_objdir+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 rm -f .libs 2>/dev/null
7654 mkdir .libs 2>/dev/null
7655 if test -d .libs; then
7658 # MS-DOS does not allow filenames that begin with a dot.
7661 rmdir .libs 2>/dev/null
7663 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7664 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7665 objdir=$lt_cv_objdir
7673 # AIX sometimes has problems with the GCC collect2 program. For some
7674 # reason, if we set the COLLECT_NAMES environment variable, the problems
7675 # vanish in a puff of smoke.
7676 if test "X${COLLECT_NAMES+set}" != Xset; then
7678 export COLLECT_NAMES
7683 # Sed substitution that helps us do robust quoting. It backslashifies
7684 # metacharacters that are still active within double-quoted strings.
7685 Xsed='sed -e 1s/^X//'
7686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7688 # Same as above, but do not quote variable references.
7689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7691 # Sed substitution to delay expansion of an escaped shell variable in a
7692 # double_quote_subst'ed string.
7693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7695 # Sed substitution to avoid accidental globbing in evaled expressions
7696 no_glob_subst='s/\*/\\\*/g'
7702 default_ofile=libtool
7703 can_build_shared=yes
7705 # All known linkers require a `.a' archive for static linking (except MSVC,
7706 # which needs '.lib').
7708 ltmain="$ac_aux_dir/ltmain.sh"
7709 ofile="$default_ofile"
7710 with_gnu_ld="$lt_cv_prog_gnu_ld"
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}ar; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_prog_AR+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 if test -n "$AR"; then
7721 ac_cv_prog_AR="$AR" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_AR="${ac_tool_prefix}ar"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 if test -n "$AR"; then
7742 { echo "$as_me:$LINENO: result: $AR" >&5
7743 echo "${ECHO_T}$AR" >&6; }
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7751 if test -z "$ac_cv_prog_AR"; then
7753 # Extract the first word of "ar", so it can be a program name with args.
7754 set dummy ar; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 if test -n "$ac_ct_AR"; then
7761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_ac_ct_AR="ar"
7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7781 if test -n "$ac_ct_AR"; then
7782 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7783 echo "${ECHO_T}$ac_ct_AR" >&6; }
7785 { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7789 if test "x$ac_ct_AR" = x; then
7792 case $cross_compiling:$ac_tool_warned in
7794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7795 whose name does not start with the host triplet. If you think this
7796 configuration is useful to you, please write to autoconf@gnu.org." >&5
7797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7798 whose name does not start with the host triplet. If you think this
7799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7800 ac_tool_warned=yes ;;
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_prog_RANLIB+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 if test -n "$RANLIB"; then
7817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 RANLIB=$ac_cv_prog_RANLIB
7837 if test -n "$RANLIB"; then
7838 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7839 echo "${ECHO_T}$RANLIB" >&6; }
7841 { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7847 if test -z "$ac_cv_prog_RANLIB"; then
7848 ac_ct_RANLIB=$RANLIB
7849 # Extract the first word of "ranlib", so it can be a program name with args.
7850 set dummy ranlib; ac_word=$2
7851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 if test -n "$ac_ct_RANLIB"; then
7857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_ac_ct_RANLIB="ranlib"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7877 if test -n "$ac_ct_RANLIB"; then
7878 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7885 if test "x$ac_ct_RANLIB" = x; then
7888 case $cross_compiling:$ac_tool_warned in
7890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7891 whose name does not start with the host triplet. If you think this
7892 configuration is useful to you, please write to autoconf@gnu.org." >&5
7893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7894 whose name does not start with the host triplet. If you think this
7895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7896 ac_tool_warned=yes ;;
7898 RANLIB=$ac_ct_RANLIB
7901 RANLIB="$ac_cv_prog_RANLIB"
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}strip; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_prog_STRIP+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 if test -n "$STRIP"; then
7913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 STRIP=$ac_cv_prog_STRIP
7933 if test -n "$STRIP"; then
7934 { echo "$as_me:$LINENO: result: $STRIP" >&5
7935 echo "${ECHO_T}$STRIP" >&6; }
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7943 if test -z "$ac_cv_prog_STRIP"; then
7945 # Extract the first word of "strip", so it can be a program name with args.
7946 set dummy strip; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test -n "$ac_ct_STRIP"; then
7953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_ac_ct_STRIP="strip"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7973 if test -n "$ac_ct_STRIP"; then
7974 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7975 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7977 { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7981 if test "x$ac_ct_STRIP" = x; then
7984 case $cross_compiling:$ac_tool_warned in
7986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7987 whose name does not start with the host triplet. If you think this
7988 configuration is useful to you, please write to autoconf@gnu.org." >&5
7989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet. If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7992 ac_tool_warned=yes ;;
7997 STRIP="$ac_cv_prog_STRIP"
8002 old_CFLAGS="$CFLAGS"
8004 # Set sane defaults for various variables
8005 test -z "$AR" && AR=ar
8006 test -z "$AR_FLAGS" && AR_FLAGS=cru
8007 test -z "$AS" && AS=as
8008 test -z "$CC" && CC=cc
8009 test -z "$LTCC" && LTCC=$CC
8010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8011 test -z "$DLLTOOL" && DLLTOOL=dlltool
8012 test -z "$LD" && LD=ld
8013 test -z "$LN_S" && LN_S="ln -s"
8014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015 test -z "$NM" && NM=nm
8016 test -z "$SED" && SED=sed
8017 test -z "$OBJDUMP" && OBJDUMP=objdump
8018 test -z "$RANLIB" && RANLIB=:
8019 test -z "$STRIP" && STRIP=:
8020 test -z "$ac_objext" && ac_objext=o
8022 # Determine commands to create old-style static archives.
8023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8024 old_postinstall_cmds='chmod 644 $oldlib'
8025 old_postuninstall_cmds=
8027 if test -n "$RANLIB"; then
8030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8036 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8039 for cc_temp in $compiler""; do
8041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8050 # Only perform the check for file, if the check method requires it
8051 case $deplibs_check_method in
8053 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8054 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8055 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8056 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8064 lt_save_MAGIC_CMD="$MAGIC_CMD"
8065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067 for ac_dir in $ac_dummy; do
8069 test -z "$ac_dir" && ac_dir=.
8070 if test -f $ac_dir/${ac_tool_prefix}file; then
8071 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8072 if test -n "$file_magic_test_file"; then
8073 case $deplibs_check_method in
8075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078 $EGREP "$file_magic_regex" > /dev/null; then
8083 *** Warning: the command libtool uses to detect shared libraries,
8084 *** $file_magic_cmd, produces output that libtool cannot recognize.
8085 *** The result is that libtool may fail to recognize shared libraries
8086 *** as such. This will affect the creation of libtool libraries that
8087 *** depend on shared libraries, but programs linked with such libtool
8088 *** libraries will work regardless of this problem. Nevertheless, you
8089 *** may want to report the problem to your system manager and/or to
8090 *** bug-libtool@gnu.org
8100 MAGIC_CMD="$lt_save_MAGIC_CMD"
8105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8106 if test -n "$MAGIC_CMD"; then
8107 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8108 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8110 { echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6; }
8114 if test -z "$lt_cv_path_MAGIC_CMD"; then
8115 if test -n "$ac_tool_prefix"; then
8116 { echo "$as_me:$LINENO: checking for file" >&5
8117 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8118 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8126 lt_save_MAGIC_CMD="$MAGIC_CMD"
8127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129 for ac_dir in $ac_dummy; do
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/file; then
8133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8134 if test -n "$file_magic_test_file"; then
8135 case $deplibs_check_method in
8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140 $EGREP "$file_magic_regex" > /dev/null; then
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such. This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem. Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8162 MAGIC_CMD="$lt_save_MAGIC_CMD"
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8170 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8188 # Check whether --enable-libtool-lock was given.
8189 if test "${enable_libtool_lock+set}" = set; then
8190 enableval=$enable_libtool_lock;
8193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8196 # Check whether --with-pic was given.
8197 if test "${with_pic+set}" = set; then
8198 withval=$with_pic; pic_mode="$withval"
8203 test -z "$pic_mode" && pic_mode=default
8205 # Use C for the default configuration in the libtool script
8209 ac_cpp='$CPP $CPPFLAGS'
8210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8215 # Source file extension for C test sources.
8218 # Object file extension for compiled C test sources.
8222 # Code to be used in simple compile tests
8223 lt_simple_compile_test_code="int some_variable = 0;\n"
8225 # Code to be used in simple link tests
8226 lt_simple_link_test_code='int main(){return(0);}\n'
8229 # If no C compiler was specified, use CC.
8232 # If no C compiler flags were specified, use CFLAGS.
8233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8235 # Allow CC to be a program name with arguments.
8239 # save warnings/boilerplate of simple test code
8240 ac_outfile=conftest.$ac_objext
8241 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8243 _lt_compiler_boilerplate=`cat conftest.err`
8246 ac_outfile=conftest.$ac_objext
8247 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8249 _lt_linker_boilerplate=`cat conftest.err`
8254 lt_prog_compiler_no_builtin_flag=
8256 if test "$GCC" = yes; then
8257 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8260 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8261 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8262 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 lt_cv_prog_compiler_rtti_exceptions=no
8266 ac_outfile=conftest.$ac_objext
8267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8268 lt_compiler_flag="-fno-rtti -fno-exceptions"
8269 # Insert the option either (1) after the last *FLAGS variable, or
8270 # (2) before a word containing "conftest.", or (3) at the end.
8271 # Note that $ac_compile itself does not contain backslashes and begins
8272 # with a dollar sign (not a hyphen), so the echo should work correctly.
8273 # The option is referenced via a variable to avoid confusing sed.
8274 lt_compile=`echo "$ac_compile" | $SED \
8275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277 -e 's:$: $lt_compiler_flag:'`
8278 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8279 (eval "$lt_compile" 2>conftest.err)
8281 cat conftest.err >&5
8282 echo "$as_me:__oline__: \$? = $ac_status" >&5
8283 if (exit $ac_status) && test -s "$ac_outfile"; then
8284 # The compiler can only warn and ignore the option if not recognized
8285 # So say no if there are warnings other than the usual output.
8286 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8289 lt_cv_prog_compiler_rtti_exceptions=yes
8295 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8296 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8298 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8299 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8306 lt_prog_compiler_wl=
8307 lt_prog_compiler_pic=
8308 lt_prog_compiler_static=
8310 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8311 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8313 if test "$GCC" = yes; then
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_static='-static'
8319 # All AIX code is PIC.
8320 if test "$host_cpu" = ia64; then
8321 # AIX 5 now supports IA64 processor
8322 lt_prog_compiler_static='-Bstatic'
8327 # FIXME: we need at least 68020 code to build shared libraries, but
8328 # adding the `-m68020' flag to GCC prevents building anything better,
8330 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8333 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8334 # PIC is the default for these OSes.
8337 mingw* | pw32* | os2*)
8338 # This hack is so that the source file can tell whether it is being
8339 # built for inclusion in a dll (and should export symbols for example).
8340 lt_prog_compiler_pic='-DDLL_EXPORT'
8343 darwin* | rhapsody*)
8344 # PIC is the default on this platform
8345 # Common symbols not allowed in MH_DYLIB files
8346 lt_prog_compiler_pic='-fno-common'
8350 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8351 # Instead, we relocate shared libraries at runtime.
8355 # Just because we use GCC doesn't mean we suddenly get shared libraries
8356 # on systems that don't support them.
8357 lt_prog_compiler_can_build_shared=no
8362 if test -d /usr/nec; then
8363 lt_prog_compiler_pic=-Kconform_pic
8368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8375 lt_prog_compiler_pic='-fPIC'
8381 lt_prog_compiler_pic='-fPIC'
8385 # PORTME Check for flag to pass linker flags through the system compiler.
8388 lt_prog_compiler_wl='-Wl,'
8389 if test "$host_cpu" = ia64; then
8390 # AIX 5 now supports IA64 processor
8391 lt_prog_compiler_static='-Bstatic'
8393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8397 # PIC is the default on this platform
8398 # Common symbols not allowed in MH_DYLIB files
8399 case $cc_basename in
8401 lt_prog_compiler_pic='-qnocommon'
8402 lt_prog_compiler_wl='-Wl,'
8407 mingw* | pw32* | os2*)
8408 # This hack is so that the source file can tell whether it is being
8409 # built for inclusion in a dll (and should export symbols for example).
8410 lt_prog_compiler_pic='-DDLL_EXPORT'
8413 hpux9* | hpux10* | hpux11*)
8414 lt_prog_compiler_wl='-Wl,'
8415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8422 lt_prog_compiler_pic='+Z'
8425 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8426 lt_prog_compiler_static='${wl}-a ${wl}archive'
8429 irix5* | irix6* | nonstopux*)
8430 lt_prog_compiler_wl='-Wl,'
8431 # PIC (with -KPIC) is the default.
8432 lt_prog_compiler_static='-non_shared'
8436 lt_prog_compiler_pic='-KPIC'
8437 lt_prog_compiler_static='-Bstatic'
8440 linux* | k*bsd*-gnu)
8441 case $cc_basename in
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-static'
8447 pgcc* | pgf77* | pgf90* | pgf95*)
8448 # Portland Group compilers (*not* the Pentium gcc compiler,
8449 # which looks to be a dead project)
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_pic='-fpic'
8452 lt_prog_compiler_static='-Bstatic'
8455 lt_prog_compiler_wl='-Wl,'
8456 # All Alpha code is PIC.
8457 lt_prog_compiler_static='-non_shared'
8462 osf3* | osf4* | osf5*)
8463 lt_prog_compiler_wl='-Wl,'
8464 # All OSF/1 code is PIC.
8465 lt_prog_compiler_static='-non_shared'
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 case $cc_basename in
8473 lt_prog_compiler_wl='-Qoption ld ';;
8475 lt_prog_compiler_wl='-Wl,';;
8480 lt_prog_compiler_wl='-Qoption ld '
8481 lt_prog_compiler_pic='-PIC'
8482 lt_prog_compiler_static='-Bstatic'
8485 sysv4 | sysv4.2uw2* | sysv4.3*)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='-KPIC'
8488 lt_prog_compiler_static='-Bstatic'
8492 if test -d /usr/nec ;then
8493 lt_prog_compiler_pic='-Kconform_pic'
8494 lt_prog_compiler_static='-Bstatic'
8498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_can_build_shared=no
8510 lt_prog_compiler_pic='-pic'
8511 lt_prog_compiler_static='-Bstatic'
8515 lt_prog_compiler_can_build_shared=no
8520 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8521 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8524 # Check to make sure the PIC flag actually works.
8526 if test -n "$lt_prog_compiler_pic"; then
8528 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8529 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8530 if test "${lt_prog_compiler_pic_works+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 lt_prog_compiler_pic_works=no
8534 ac_outfile=conftest.$ac_objext
8535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8536 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8537 # Insert the option either (1) after the last *FLAGS variable, or
8538 # (2) before a word containing "conftest.", or (3) at the end.
8539 # Note that $ac_compile itself does not contain backslashes and begins
8540 # with a dollar sign (not a hyphen), so the echo should work correctly.
8541 # The option is referenced via a variable to avoid confusing sed.
8542 lt_compile=`echo "$ac_compile" | $SED \
8543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8545 -e 's:$: $lt_compiler_flag:'`
8546 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8547 (eval "$lt_compile" 2>conftest.err)
8549 cat conftest.err >&5
8550 echo "$as_me:__oline__: \$? = $ac_status" >&5
8551 if (exit $ac_status) && test -s "$ac_outfile"; then
8552 # The compiler can only warn and ignore the option if not recognized
8553 # So say no if there are warnings other than the usual output.
8554 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8557 lt_prog_compiler_pic_works=yes
8563 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8564 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8566 if test x"$lt_prog_compiler_pic_works" = xyes; then
8567 case $lt_prog_compiler_pic in
8569 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8572 lt_prog_compiler_pic=
8573 lt_prog_compiler_can_build_shared=no
8578 # For platforms which do not support PIC, -DPIC is meaningless:
8580 lt_prog_compiler_pic=
8583 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8588 # Check to make sure the static flag actually works.
8590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8591 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8592 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8593 if test "${lt_prog_compiler_static_works+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 lt_prog_compiler_static_works=no
8597 save_LDFLAGS="$LDFLAGS"
8598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8599 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8601 # The linker can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 if test -s conftest.err; then
8604 # Append any errors to the config.log.
8605 cat conftest.err 1>&5
8606 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608 if diff conftest.exp conftest.er2 >/dev/null; then
8609 lt_prog_compiler_static_works=yes
8612 lt_prog_compiler_static_works=yes
8616 LDFLAGS="$save_LDFLAGS"
8619 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8620 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8622 if test x"$lt_prog_compiler_static_works" = xyes; then
8625 lt_prog_compiler_static=
8629 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8630 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8631 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 lt_cv_prog_compiler_c_o=no
8635 $rm -r conftest 2>/dev/null
8639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8641 lt_compiler_flag="-o out/conftest2.$ac_objext"
8642 # Insert the option either (1) after the last *FLAGS variable, or
8643 # (2) before a word containing "conftest.", or (3) at the end.
8644 # Note that $ac_compile itself does not contain backslashes and begins
8645 # with a dollar sign (not a hyphen), so the echo should work correctly.
8646 lt_compile=`echo "$ac_compile" | $SED \
8647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649 -e 's:$: $lt_compiler_flag:'`
8650 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8651 (eval "$lt_compile" 2>out/conftest.err)
8653 cat out/conftest.err >&5
8654 echo "$as_me:__oline__: \$? = $ac_status" >&5
8655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8657 # The compiler can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8662 lt_cv_prog_compiler_c_o=yes
8667 # SGI C++ compiler will create directory out/ii_files/ for
8668 # template instantiation
8669 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8670 $rm out/* && rmdir out
8676 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8677 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8680 hard_links="nottested"
8681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8682 # do not overwrite the value of need_locks provided by the user
8683 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8684 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 ln conftest.a conftest.b 2>&5 || hard_links=no
8690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691 { echo "$as_me:$LINENO: result: $hard_links" >&5
8692 echo "${ECHO_T}$hard_links" >&6; }
8693 if test "$hard_links" = no; then
8694 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8695 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8702 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8703 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8706 allow_undefined_flag=
8707 enable_shared_with_static_runtimes=no
8709 archive_expsym_cmds=
8710 old_archive_From_new_cmds=
8711 old_archive_from_expsyms_cmds=
8712 export_dynamic_flag_spec=
8713 whole_archive_flag_spec=
8714 thread_safe_flag_spec=
8715 hardcode_libdir_flag_spec=
8716 hardcode_libdir_flag_spec_ld=
8717 hardcode_libdir_separator=
8720 hardcode_shlibpath_var=unsupported
8721 link_all_deplibs=unknown
8722 hardcode_automatic=no
8725 always_export_symbols=no
8726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8727 # include_expsyms should be a list of space-separated symbols to be *always*
8728 # included in the symbol list
8730 # exclude_expsyms can be an extended regexp of symbols to exclude
8731 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8732 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8733 # as well as any symbol that contains `d'.
8734 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8735 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8736 # platforms (ab)use it in PIC code, but their linkers get confused if
8737 # the symbol is explicitly referenced. Since portable code cannot
8738 # rely on this symbol name, it's probably fine to never include it in
8739 # preloaded symbol tables.
8740 extract_expsyms_cmds=
8741 # Just being paranoid about ensuring that cc_basename is set.
8742 for cc_temp in $compiler""; do
8744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8753 cygwin* | mingw* | pw32*)
8754 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8755 # When not using gcc, we currently assume that we are using
8756 # Microsoft Visual C++.
8757 if test "$GCC" != yes; then
8762 # we just hope/assume this is gcc and not c89 (= MSVC++)
8771 if test "$with_gnu_ld" = yes; then
8772 # If archive_cmds runs LD, not CC, wlarc should be empty
8775 # Set some defaults for GNU ld with shared library support. These
8776 # are reset later if shared libraries are not supported. Putting them
8777 # here allows them to be overridden if necessary.
8778 runpath_var=LD_RUN_PATH
8779 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8780 export_dynamic_flag_spec='${wl}--export-dynamic'
8781 # ancient GNU ld didn't support --whole-archive et. al.
8782 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8783 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8785 whole_archive_flag_spec=
8787 supports_anon_versioning=no
8788 case `$LD -v 2>/dev/null` in
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8792 *\ 2.11.*) ;; # other 2.11 versions
8793 *) supports_anon_versioning=yes ;;
8796 # See if GNU ld supports shared libraries.
8798 aix3* | aix4* | aix5*)
8799 # On AIX/PPC, the GNU linker is very broken
8800 if test "$host_cpu" != ia64; then
8804 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8805 *** to be unable to reliably create shared libraries on AIX.
8806 *** Therefore, libtool is disabling shared libraries support. If you
8807 *** really care for shared libraries, you may want to modify your PATH
8808 *** so that a non-GNU linker is found, and then restart.
8815 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)'
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 hardcode_minus_L=yes
8819 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8820 # that the semantics of dynamic libraries on AmigaOS, at least up
8821 # to version 4, is to share data among multiple programs linked
8822 # with the same dynamic library. Since this doesn't match the
8823 # behavior of shared libraries on other platforms, we can't use
8829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8830 allow_undefined_flag=unsupported
8831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8832 # support --undefined. This deserves some investigation. FIXME
8833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 cygwin* | mingw* | pw32*)
8840 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8841 # as there is no search path for DLLs.
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 allow_undefined_flag=unsupported
8844 always_export_symbols=no
8845 enable_shared_with_static_runtimes=yes
8846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8848 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850 # If the export-symbols file already is a .def file (1st line
8851 # is EXPORTS), use it as is; otherwise, prepend...
8852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853 cp $export_symbols $output_objdir/$soname.def;
8855 echo EXPORTS > $output_objdir/$soname.def;
8856 cat $export_symbols >> $output_objdir/$soname.def;
8858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8866 hardcode_shlibpath_var=no
8867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8868 export_dynamic_flag_spec='${wl}-E'
8869 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8870 # Instead, shared libraries are loaded at an image base (0x10000000 by
8871 # default) and relocated if they conflict, which is a slow very memory
8872 # consuming and fragmenting process. To avoid this, we pick a random,
8873 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8874 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8875 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8876 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'
8879 linux* | k*bsd*-gnu)
8880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8882 case $cc_basename,$host_cpu in
8883 pgcc*) # Portland Group C compiler
8884 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'
8885 tmp_addflag=' $pic_flag'
8887 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8888 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'
8889 tmp_addflag=' $pic_flag -Mnomain' ;;
8890 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8891 tmp_addflag=' -i_dynamic' ;;
8892 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8893 tmp_addflag=' -i_dynamic -nofor_main' ;;
8894 ifc* | ifort*) # Intel Fortran compiler
8895 tmp_addflag=' -nofor_main' ;;
8897 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 if test $supports_anon_versioning = yes; then
8900 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8902 $echo "local: *; };" >> $output_objdir/$libname.ver~
8903 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8911 netbsd* | netbsdelf*-gnu)
8912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8913 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8926 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8927 *** create shared libraries on Solaris systems. Therefore, libtool
8928 *** is disabling shared libraries support. We urge you to upgrade GNU
8929 *** binutils to release 2.9.1 or newer. Another option is to modify
8930 *** your PATH or compiler configuration so that the native linker is
8931 *** used, and then restart.
8934 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8943 case `$LD -v 2>&1` in
8944 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8948 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8949 *** reliably create shared libraries on SCO systems. Therefore, libtool
8950 *** is disabling shared libraries support. We urge you to upgrade GNU
8951 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8952 *** your PATH or compiler configuration so that the native linker is
8953 *** used, and then restart.
8958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8959 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8970 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8973 hardcode_shlibpath_var=no
8977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 if test "$ld_shlibs" = no; then
8988 hardcode_libdir_flag_spec=
8989 export_dynamic_flag_spec=
8990 whole_archive_flag_spec=
8993 # PORTME fill in a description of your system's linker (not GNU ld)
8996 allow_undefined_flag=unsupported
8997 always_export_symbols=yes
8998 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'
8999 # Note: this linker hardcodes the directories in LIBPATH if there
9000 # are no directories specified by -L.
9001 hardcode_minus_L=yes
9002 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9003 # Neither direct hardcoding nor static linking is supported with a
9005 hardcode_direct=unsupported
9010 if test "$host_cpu" = ia64; then
9011 # On IA64, the linker does run time linking by default, so we don't
9012 # have to do anything special.
9013 aix_use_runtimelinking=no
9014 exp_sym_flag='-Bexport'
9017 # If we're using GNU nm, then we don't want the "-C" option.
9018 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9019 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9020 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'
9022 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'
9024 aix_use_runtimelinking=no
9026 # Test if we are trying to use run time linking or normal
9027 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9028 # need to do runtime linking.
9029 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9030 for ld_flag in $LDFLAGS; do
9031 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9032 aix_use_runtimelinking=yes
9039 exp_sym_flag='-bexport'
9040 no_entry_flag='-bnoentry'
9043 # When large executables or shared objects are built, AIX ld can
9044 # have problems creating the table of contents. If linking a library
9045 # or program results in "error TOC overflow" add -mminimal-toc to
9046 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9047 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9051 hardcode_libdir_separator=':'
9052 link_all_deplibs=yes
9054 if test "$GCC" = yes; then
9055 case $host_os in aix4.[012]|aix4.[012].*)
9056 # We only want to do this on AIX 4.2 and lower, the check
9057 # below for broken collect2 doesn't work under 4.3+
9058 collect2name=`${CC} -print-prog-name=collect2`
9059 if test -f "$collect2name" && \
9060 strings "$collect2name" | grep resolve_lib_name >/dev/null
9062 # We have reworked collect2
9065 # We have old collect2
9066 hardcode_direct=unsupported
9067 # It fails to find uninstalled libraries when the uninstalled
9068 # path is not listed in the libpath. Setting hardcode_minus_L
9069 # to unsupported forces relinking
9070 hardcode_minus_L=yes
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 hardcode_libdir_separator=
9076 shared_flag='-shared'
9077 if test "$aix_use_runtimelinking" = yes; then
9078 shared_flag="$shared_flag "'${wl}-G'
9082 if test "$host_cpu" = ia64; then
9083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9084 # chokes on -Wl,-G. The following line is correct:
9087 if test "$aix_use_runtimelinking" = yes; then
9088 shared_flag='${wl}-G'
9090 shared_flag='${wl}-bM:SRE'
9095 # It seems that -bexpall does not export symbols beginning with
9096 # underscore (_), so it is better to generate a list of symbols to export.
9097 always_export_symbols=yes
9098 if test "$aix_use_runtimelinking" = yes; then
9099 # Warning - without using the other runtime loading flags (-brtl),
9100 # -berok will link without error, but may produce a broken library.
9101 allow_undefined_flag='-berok'
9102 # Determine the default libpath from the value encoded in an empty executable.
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (ac_try="$ac_link"
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_link") 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest$ac_exeext &&
9135 $as_test_x conftest$ac_exeext; then
9137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9139 # Check for a 64-bit object if we didn't find anything.
9140 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; }
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9150 conftest$ac_exeext conftest.$ac_ext
9151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9153 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9154 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"
9156 if test "$host_cpu" = ia64; then
9157 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9158 allow_undefined_flag="-z nodefs"
9159 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"
9161 # Determine the default libpath from the value encoded in an empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_link") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest$ac_exeext &&
9194 $as_test_x conftest$ac_exeext; then
9196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9198 # Check for a 64-bit object if we didn't find anything.
9199 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; }
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209 conftest$ac_exeext conftest.$ac_ext
9210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213 # Warning - without using the other run time loading flags,
9214 # -berok will link without error, but may produce a broken library.
9215 no_undefined_flag=' ${wl}-bernotok'
9216 allow_undefined_flag=' ${wl}-berok'
9217 # Exported symbols can be pulled into shared objects from archives
9218 whole_archive_flag_spec='$convenience'
9219 archive_cmds_need_lc=yes
9220 # This is similar to how AIX traditionally builds its shared libraries.
9221 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'
9227 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)'
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9230 # see comment about different semantics on the GNU ld section
9235 export_dynamic_flag_spec=-rdynamic
9238 cygwin* | mingw* | pw32*)
9239 # When not using gcc, we currently assume that we are using
9240 # Microsoft Visual C++.
9241 # hardcode_libdir_flag_spec is actually meaningless, as there is
9242 # no search path for DLLs.
9243 hardcode_libdir_flag_spec=' '
9244 allow_undefined_flag=unsupported
9245 # Tell ltmain to make .lib files, not .a files.
9247 # Tell ltmain to make .dll files, not .so files.
9249 # FIXME: Setting linknames here is a bad hack.
9250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9251 # The linker will automatically build a .lib file if we build a DLL.
9252 old_archive_From_new_cmds='true'
9253 # FIXME: Should let the user specify the lib program.
9254 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9255 fix_srcfile_path='`cygpath -w "$srcfile"`'
9256 enable_shared_with_static_runtimes=yes
9259 darwin* | rhapsody*)
9261 rhapsody* | darwin1.[012])
9262 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9265 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9266 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9268 case ${MACOSX_DEPLOYMENT_TARGET} in
9270 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9273 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9279 archive_cmds_need_lc=no
9281 hardcode_automatic=yes
9282 hardcode_shlibpath_var=unsupported
9283 whole_archive_flag_spec=''
9284 link_all_deplibs=yes
9285 if test "$GCC" = yes ; then
9286 output_verbose_link_cmd='echo'
9287 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9288 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9290 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}'
9291 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}'
9293 case $cc_basename in
9295 output_verbose_link_cmd='echo'
9296 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9297 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9298 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9299 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}'
9300 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}'
9310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311 hardcode_libdir_flag_spec='-L$libdir'
9312 hardcode_shlibpath_var=no
9319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9320 # support. Future versions do this automatically, but an explicit c++rt0.o
9321 # does not break anything, and helps significantly (at the cost of a little
9324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9325 hardcode_libdir_flag_spec='-R$libdir'
9327 hardcode_shlibpath_var=no
9330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9334 hardcode_minus_L=yes
9335 hardcode_shlibpath_var=no
9338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9339 freebsd* | dragonfly*)
9340 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9341 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_shlibpath_var=no
9347 if test "$GCC" = yes; then
9348 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'
9350 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'
9352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9353 hardcode_libdir_separator=:
9356 # hardcode_minus_L: Not really in the search PATH,
9357 # but as the default location of the library.
9358 hardcode_minus_L=yes
9359 export_dynamic_flag_spec='${wl}-E'
9363 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9368 if test "$with_gnu_ld" = no; then
9369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370 hardcode_libdir_separator=:
9373 export_dynamic_flag_spec='${wl}-E'
9375 # hardcode_minus_L: Not really in the search PATH,
9376 # but as the default location of the library.
9377 hardcode_minus_L=yes
9382 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9385 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407 if test "$with_gnu_ld" = no; then
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_separator=:
9413 hardcode_libdir_flag_spec_ld='+b $libdir'
9415 hardcode_shlibpath_var=no
9419 export_dynamic_flag_spec='${wl}-E'
9421 # hardcode_minus_L: Not really in the search PATH,
9422 # but as the default location of the library.
9423 hardcode_minus_L=yes
9429 irix5* | irix6* | nonstopux*)
9430 if test "$GCC" = yes; then
9431 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'
9433 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'
9434 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437 hardcode_libdir_separator=:
9438 link_all_deplibs=yes
9441 netbsd* | netbsdelf*-gnu)
9442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9445 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9447 hardcode_libdir_flag_spec='-R$libdir'
9449 hardcode_shlibpath_var=no
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457 hardcode_shlibpath_var=no
9462 hardcode_shlibpath_var=no
9463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9467 export_dynamic_flag_spec='${wl}-E'
9470 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_libdir_flag_spec='-R$libdir'
9475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_minus_L=yes
9485 allow_undefined_flag=unsupported
9486 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'
9487 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9491 if test "$GCC" = yes; then
9492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9493 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'
9495 allow_undefined_flag=' -expect_unresolved \*'
9496 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'
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator=:
9502 osf4* | osf5*) # as osf3* with the addition of -msym flag
9503 if test "$GCC" = yes; then
9504 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9505 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'
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 allow_undefined_flag=' -expect_unresolved \*'
9509 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'
9510 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9511 $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'
9513 # Both c and cxx compiler support -rpath directly
9514 hardcode_libdir_flag_spec='-rpath $libdir'
9516 hardcode_libdir_separator=:
9520 no_undefined_flag=' -z text'
9521 if test "$GCC" = yes; then
9523 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9525 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9528 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9532 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_shlibpath_var=no
9535 solaris2.[0-5] | solaris2.[0-5].*) ;;
9537 # The compiler driver will combine linker options so we
9538 # cannot just pass the convience library names through
9539 # without $wl, iff we do not link with $LD.
9540 # Luckily, gcc supports the same syntax we need for Sun Studio.
9541 # Supported since Solaris 2.6 (maybe 2.5.1?)
9544 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9546 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' ;;
9549 link_all_deplibs=yes
9553 if test "x$host_vendor" = xsequent; then
9554 # Use $CC to link under sequent, because it throws in some extra .o
9555 # files that make .init and .fini sections work.
9556 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9558 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 hardcode_shlibpath_var=no
9567 case $host_vendor in
9569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_direct=yes # is this really true???
9573 ## LD is ld it makes a PLAMLIB
9574 ## CC just makes a GrossModule.
9575 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9576 reload_cmds='$CC -r -o $output$reload_objs'
9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9584 runpath_var='LD_RUN_PATH'
9585 hardcode_shlibpath_var=no
9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590 hardcode_shlibpath_var=no
9591 export_dynamic_flag_spec='-Bexport'
9595 if test -d /usr/nec; then
9596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_shlibpath_var=no
9598 runpath_var=LD_RUN_PATH
9599 hardcode_runpath_var=yes
9604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9605 no_undefined_flag='${wl}-z,text'
9606 archive_cmds_need_lc=no
9607 hardcode_shlibpath_var=no
9608 runpath_var='LD_RUN_PATH'
9610 if test "$GCC" = yes; then
9611 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9614 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 sysv5* | sco3.2v5* | sco5v6*)
9620 # Note: We can NOT use -z defs as we might desire, because we do not
9621 # link with -lc, and that would cause any symbols used from libc to
9622 # always be unresolved, which means just about no library would
9623 # ever link correctly. If we're not using GNU ld we use -z text
9624 # though, which does catch some bad symbols but isn't as heavy-handed
9626 no_undefined_flag='${wl}-z,text'
9627 allow_undefined_flag='${wl}-z,nodefs'
9628 archive_cmds_need_lc=no
9629 hardcode_shlibpath_var=no
9630 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9631 hardcode_libdir_separator=':'
9632 link_all_deplibs=yes
9633 export_dynamic_flag_spec='${wl}-Bexport'
9634 runpath_var='LD_RUN_PATH'
9636 if test "$GCC" = yes; then
9637 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_shlibpath_var=no
9657 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9658 echo "${ECHO_T}$ld_shlibs" >&6; }
9659 test "$ld_shlibs" = no && can_build_shared=no
9662 # Do we need to explicitly link libc?
9664 case "x$archive_cmds_need_lc" in
9666 # Assume -lc should be added
9667 archive_cmds_need_lc=yes
9669 if test "$enable_shared" = yes && test "$GCC" = yes; then
9670 case $archive_cmds in
9672 # FIXME: we may have to deal with multi-command sequences.
9675 # Test whether the compiler implicitly links with -lc since on some
9676 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9677 # to ld, don't add -lc before -lgcc.
9678 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9679 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } 2>conftest.err; then
9690 libobjs=conftest.$ac_objext
9692 wl=$lt_prog_compiler_wl
9693 pic_flag=$lt_prog_compiler_pic
9699 lt_save_allow_undefined_flag=$allow_undefined_flag
9700 allow_undefined_flag=
9701 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9702 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }
9707 archive_cmds_need_lc=no
9709 archive_cmds_need_lc=yes
9711 allow_undefined_flag=$lt_save_allow_undefined_flag
9713 cat conftest.err 1>&5
9716 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9717 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9724 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9727 libname_spec='lib$name'
9735 shlibpath_overrides_runpath=unknown
9737 dynamic_linker="$host_os ld.so"
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739 if test "$GCC" = yes; then
9740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9741 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9742 # if the path contains ";" then we assume it to be the separator
9743 # otherwise default to the standard path separator (i.e. ":") - it is
9744 # assumed that no part of a normal pathname contains ";" but that should
9745 # okay in the real world where ";" in dirpaths is itself problematic.
9746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9753 need_lib_prefix=unknown
9754 hardcode_into_libs=no
9756 # when you set need_version to no, make sure it does not cause -set_version
9757 # flags to be left without arguments
9758 need_version=unknown
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9764 shlibpath_var=LIBPATH
9766 # AIX 3 has no versioning support, so we append a major version to the name.
9767 soname_spec='${libname}${release}${shared_ext}$major'
9774 hardcode_into_libs=yes
9775 if test "$host_cpu" = ia64; then
9776 # AIX 5 supports IA64
9777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9778 shlibpath_var=LD_LIBRARY_PATH
9780 # With GCC up to 2.95.x, collect2 would create an import file
9781 # for dependence libraries. The import file would start with
9782 # the line `#! .'. This would cause the generated library to
9783 # depend on `.', always an invalid library. This was fixed in
9784 # development snapshots of GCC prior to 3.0.
9786 aix4 | aix4.[01] | aix4.[01].*)
9787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9789 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9797 # soname into executable. Probably we can add versioning support to
9798 # collect2, so additional links can be useful in future.
9799 if test "$aix_use_runtimelinking" = yes; then
9800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9801 # instead of lib<name>.a to let people know that these are not
9802 # typical AIX shared libraries.
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 # We preserve .a as extension for shared libraries through AIX4.2
9806 # and later when we are not doing run time linking.
9807 library_names_spec='${libname}${release}.a $libname.a'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LIBPATH
9815 library_names_spec='$libname.ixlibrary $libname.a'
9816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9817 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'
9821 library_names_spec='${libname}${shared_ext}'
9822 dynamic_linker="$host_os ld.so"
9823 shlibpath_var=LIBRARY_PATH
9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9835 # the default ld.so.conf also contains /usr/contrib/lib and
9836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9837 # libtool to hard-code these into programs
9840 cygwin* | mingw* | pw32*)
9841 version_type=windows
9846 case $GCC,$host_os in
9847 yes,cygwin* | yes,mingw* | yes,pw32*)
9848 library_names_spec='$libname.dll.a'
9849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9850 postinstall_cmds='base_file=`basename \${file}`~
9851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9852 dldir=$destdir/`dirname \$dlpath`~
9853 test -d \$dldir || mkdir -p \$dldir~
9854 $install_prog $dir/$dlname \$dldir/$dlname~
9855 chmod a+x \$dldir/$dlname'
9856 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9857 dlpath=$dir/\$dldll~
9859 shlibpath_overrides_runpath=yes
9863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9864 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9868 # MinGW DLLs use traditional 'lib' prefix
9869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9871 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9872 # It is most probably a Windows format PATH printed by
9873 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9874 # path with ; separators, and with drive letters. We can handle the
9875 # drive letters (cygwin fileutils understands them), so leave them,
9876 # especially as we might pass files found there to a mingw objdump,
9877 # which wouldn't understand a cygwinified path. Ahh.
9878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9884 # pw32 DLLs use 'pw' prefix rather than 'lib'
9885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9894 dynamic_linker='Win32 ld.exe'
9895 # FIXME: first we should search . and the directory the executable is in
9899 darwin* | rhapsody*)
9900 dynamic_linker="$host_os dyld"
9904 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9905 soname_spec='${libname}${release}${major}$shared_ext'
9906 shlibpath_overrides_runpath=yes
9907 shlibpath_var=DYLD_LIBRARY_PATH
9908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9909 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9910 if test "$GCC" = yes; then
9911 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"`
9913 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 shlibpath_var=LD_LIBRARY_PATH
9931 freebsd* | dragonfly*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr/bin/objformat; then
9935 objformat=`/usr/bin/objformat`
9938 freebsd[123]*) objformat=aout ;;
9942 version_type=freebsd-$objformat
9943 case $version_type in
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9954 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9959 freebsd3.[01]* | freebsdelf3.[01]*)
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9968 freebsd*) # from 4.6 on
9969 shlibpath_overrides_runpath=yes
9970 hardcode_into_libs=yes
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 hardcode_into_libs=yes
9985 hpux9* | hpux10* | hpux11*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.so"
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32; then
10001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.sl"
10011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020 dynamic_linker="$host_os dld.sl"
10021 shlibpath_var=SHLIB_PATH
10022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10027 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028 postinstall_cmds='chmod 555 $lib'
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=no
10040 hardcode_into_libs=yes
10043 irix5* | irix6* | nonstopux*)
10045 nonstopux*) version_type=nonstopux ;;
10047 if test "$lt_cv_prog_gnu_ld" = yes; then
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10058 irix5* | nonstopux*)
10059 libsuff= shlibsuff=
10062 case $LD in # libtool.m4 will add one of these switches to LD
10063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064 libsuff= shlibsuff= libmagic=32-bit;;
10065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066 libsuff=32 shlibsuff=N32 libmagic=N32;;
10067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069 *) libsuff= shlibsuff= libmagic=never-match;;
10073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074 shlibpath_overrides_runpath=no
10075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077 hardcode_into_libs=yes
10080 # No shared lib support for Linux oldld, aout, or coff.
10081 linux*oldld* | linux*aout* | linux*coff*)
10085 # This must be Linux ELF.
10086 linux* | k*bsd*-gnu)
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=no
10095 # This implies no fast_install, which is unacceptable.
10096 # Some rework will be needed to allow for fast_install
10097 # before this can be enabled.
10098 hardcode_into_libs=yes
10100 # Append ld.so.conf contents to the search path
10101 if test -f /etc/ld.so.conf; then
10102 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' ' '`
10103 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10106 # We used to test for /lib/ld.so.1 and disable shared libraries on
10107 # powerpc, because MkLinux only supported shared libraries with the
10108 # GNU dynamic linker. Since this was broken with cross compilers,
10109 # most powerpc-linux boxes support dynamic linking these days and
10110 # people can always --disable-shared, the test was removed, and we
10111 # assume the GNU/Linux dynamic linker is in use.
10112 dynamic_linker='GNU/Linux ld.so'
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=no
10123 hardcode_into_libs=yes
10124 dynamic_linker='NetBSD ld.elf_so'
10131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134 dynamic_linker='NetBSD (a.out) ld.so'
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 dynamic_linker='NetBSD ld.elf_so'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=yes
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=yes
10164 sys_lib_dlsearch_path_spec="/usr/lib"
10166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10169 *) need_version=no ;;
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10176 openbsd2.[89] | openbsd2.[89].*)
10177 shlibpath_overrides_runpath=no
10180 shlibpath_overrides_runpath=yes
10184 shlibpath_overrides_runpath=yes
10189 libname_spec='$name'
10192 library_names_spec='$libname${shared_ext} $libname.a'
10193 dynamic_linker='OS/2 ld.exe'
10194 shlibpath_var=LIBPATH
10197 osf3* | osf4* | osf5*)
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213 soname_spec='${libname}${release}${shared_ext}$major'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=yes
10216 hardcode_into_libs=yes
10217 # ldd complains unless libraries are executable
10218 postinstall_cmds='chmod +x $lib'
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=yes
10227 if test "$with_gnu_ld" = yes; then
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 case $host_vendor in
10240 shlibpath_overrides_runpath=no
10242 export_dynamic_flag_spec='${wl}-Blargedynsym'
10243 runpath_var=LD_RUN_PATH
10251 shlibpath_overrides_runpath=no
10252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10258 if test -d /usr/nec ;then
10260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10261 soname_spec='$libname${shared_ext}.$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10267 version_type=freebsd-elf
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 hardcode_into_libs=yes
10274 if test "$with_gnu_ld" = yes; then
10275 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10276 shlibpath_overrides_runpath=no
10278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10279 shlibpath_overrides_runpath=yes
10282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10286 sys_lib_dlsearch_path_spec='/usr/lib'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10300 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10301 echo "${ECHO_T}$dynamic_linker" >&6; }
10302 test "$dynamic_linker" = no && can_build_shared=no
10304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10305 if test "$GCC" = yes; then
10306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10309 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10310 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10312 if test -n "$hardcode_libdir_flag_spec" || \
10313 test -n "$runpath_var" || \
10314 test "X$hardcode_automatic" = "Xyes" ; then
10316 # We can hardcode non-existant directories.
10317 if test "$hardcode_direct" != no &&
10318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10319 # have to relink, otherwise we might link with an installed library
10320 # when we should be linking with a yet-to-be-installed one
10321 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10322 test "$hardcode_minus_L" != no; then
10323 # Linking always hardcodes the temporary library directory.
10324 hardcode_action=relink
10326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10327 hardcode_action=immediate
10330 # We cannot hardcode anything, or else we can only hardcode existing
10332 hardcode_action=unsupported
10334 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10335 echo "${ECHO_T}$hardcode_action" >&6; }
10337 if test "$hardcode_action" = relink; then
10338 # Fast installation is not supported
10339 enable_fast_install=no
10340 elif test "$shlibpath_overrides_runpath" = yes ||
10341 test "$enable_shared" = no; then
10342 # Fast installation is not necessary
10343 enable_fast_install=needless
10348 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10349 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10350 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10351 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10352 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10353 { echo "$as_me:$LINENO: result: yes" >&5
10354 echo "${ECHO_T}yes" >&6; }
10356 # FIXME - insert some real tests, host_os isn't really good enough
10359 if test -n "$STRIP" ; then
10360 striplib="$STRIP -x"
10361 { echo "$as_me:$LINENO: result: yes" >&5
10362 echo "${ECHO_T}yes" >&6; }
10364 { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10369 { echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6; }
10375 if test "x$enable_dlopen" != xyes; then
10376 enable_dlopen=unknown
10377 enable_dlopen_self=unknown
10378 enable_dlopen_self_static=unknown
10385 lt_cv_dlopen="load_add_on"
10387 lt_cv_dlopen_self=yes
10391 lt_cv_dlopen="LoadLibrary"
10396 lt_cv_dlopen="dlopen"
10401 # if libdl is installed we need to link against it
10402 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10403 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 ac_check_lib_save_LIBS=$LIBS
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10416 /* Override any GCC internal prototype to avoid an error.
10417 Use char because int might match the return type of a GCC
10418 builtin and then its argument prototype would still apply. */
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest$ac_exeext &&
10448 $as_test_x conftest$ac_exeext; then
10449 ac_cv_lib_dl_dlopen=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_lib_dl_dlopen=no
10457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10461 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10463 if test $ac_cv_lib_dl_dlopen = yes; then
10464 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10467 lt_cv_dlopen="dyld"
10469 lt_cv_dlopen_self=yes
10476 { echo "$as_me:$LINENO: checking for shl_load" >&5
10477 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10478 if test "${ac_cv_func_shl_load+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.$ac_ext <<_ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define shl_load innocuous_shl_load
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char shl_load (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10497 # include <limits.h>
10499 # include <assert.h>
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10511 /* The GNU C library defines this for functions which it implements
10512 to always fail with ENOSYS. Some functions are actually named
10513 something starting with __ and the normal name is an alias. */
10514 #if defined __stub_shl_load || defined __stub___shl_load
10521 return shl_load ();
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_link") 2>conftest.er1
10535 grep -v '^ *+' conftest.er1 >conftest.err
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_c_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest$ac_exeext &&
10543 $as_test_x conftest$ac_exeext; then
10544 ac_cv_func_shl_load=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_func_shl_load=no
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553 conftest$ac_exeext conftest.$ac_ext
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10557 if test $ac_cv_func_shl_load = yes; then
10558 lt_cv_dlopen="shl_load"
10560 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10561 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10562 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 ac_check_lib_save_LIBS=$LIBS
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10584 return shl_load ();
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (ac_try="$ac_link"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_link") 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest$ac_exeext &&
10606 $as_test_x conftest$ac_exeext; then
10607 ac_cv_lib_dld_shl_load=yes
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ac_cv_lib_dld_shl_load=no
10615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10621 if test $ac_cv_lib_dld_shl_load = yes; then
10622 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10624 { echo "$as_me:$LINENO: checking for dlopen" >&5
10625 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10626 if test "${ac_cv_func_dlopen+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.$ac_ext <<_ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10637 #define dlopen innocuous_dlopen
10639 /* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char dlopen (); below.
10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 <limits.h> exists even on freestanding compilers. */
10645 # include <limits.h>
10647 # include <assert.h>
10652 /* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10659 /* The GNU C library defines this for functions which it implements
10660 to always fail with ENOSYS. Some functions are actually named
10661 something starting with __ and the normal name is an alias. */
10662 #if defined __stub_dlopen || defined __stub___dlopen
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_link") 2>conftest.er1
10683 grep -v '^ *+' conftest.er1 >conftest.err
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest$ac_exeext &&
10691 $as_test_x conftest$ac_exeext; then
10692 ac_cv_func_dlopen=yes
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_func_dlopen=no
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10704 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10705 if test $ac_cv_func_dlopen = yes; then
10706 lt_cv_dlopen="dlopen"
10708 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 ac_check_lib_save_LIBS=$LIBS
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_link") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext &&
10754 $as_test_x conftest$ac_exeext; then
10755 ac_cv_lib_dl_dlopen=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ac_cv_lib_dl_dlopen=no
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10769 if test $ac_cv_lib_dl_dlopen = yes; then
10770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10772 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10773 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 ac_check_lib_save_LIBS=$LIBS
10778 LIBS="-lsvld $LIBS"
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (ac_try="$ac_link"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_link") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest$ac_exeext &&
10818 $as_test_x conftest$ac_exeext; then
10819 ac_cv_lib_svld_dlopen=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_lib_svld_dlopen=no
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10832 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10833 if test $ac_cv_lib_svld_dlopen = yes; then
10834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10836 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10837 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10838 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 ac_check_lib_save_LIBS=$LIBS
10843 cat >conftest.$ac_ext <<_ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10860 return dld_link ();
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10874 grep -v '^ *+' conftest.er1 >conftest.err
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext &&
10882 $as_test_x conftest$ac_exeext; then
10883 ac_cv_lib_dld_dld_link=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_cv_lib_dld_dld_link=no
10891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10895 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10896 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10897 if test $ac_cv_lib_dld_dld_link = yes; then
10898 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10919 if test "x$lt_cv_dlopen" != xno; then
10925 case $lt_cv_dlopen in
10927 save_CPPFLAGS="$CPPFLAGS"
10928 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10930 save_LDFLAGS="$LDFLAGS"
10931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10934 LIBS="$lt_cv_dlopen_libs $LIBS"
10936 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10937 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10938 if test "${lt_cv_dlopen_self+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 if test "$cross_compiling" = yes; then :
10942 lt_cv_dlopen_self=cross
10944 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10945 lt_status=$lt_dlunknown
10946 cat > conftest.$ac_ext <<EOF
10947 #line __oline__ "configure"
10948 #include "confdefs.h"
10957 # define LT_DLGLOBAL RTLD_GLOBAL
10960 # define LT_DLGLOBAL DL_GLOBAL
10962 # define LT_DLGLOBAL 0
10966 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10967 find out it does not work in some platform. */
10968 #ifndef LT_DLLAZY_OR_NOW
10970 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10973 # define LT_DLLAZY_OR_NOW DL_LAZY
10976 # define LT_DLLAZY_OR_NOW RTLD_NOW
10979 # define LT_DLLAZY_OR_NOW DL_NOW
10981 # define LT_DLLAZY_OR_NOW 0
10989 extern "C" void exit (int);
10992 void fnord() { int i=42;}
10995 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10996 int status = $lt_dlunknown;
11000 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11001 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11002 /* dlclose (self); */
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11015 (./conftest; exit; ) >&5 2>/dev/null
11017 case x$lt_status in
11018 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11019 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11020 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11023 # compilation failed
11024 lt_cv_dlopen_self=no
11031 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11032 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11034 if test "x$lt_cv_dlopen_self" = xyes; then
11035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11036 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11037 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11038 if test "${lt_cv_dlopen_self_static+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 if test "$cross_compiling" = yes; then :
11042 lt_cv_dlopen_self_static=cross
11044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11045 lt_status=$lt_dlunknown
11046 cat > conftest.$ac_ext <<EOF
11047 #line __oline__ "configure"
11048 #include "confdefs.h"
11057 # define LT_DLGLOBAL RTLD_GLOBAL
11060 # define LT_DLGLOBAL DL_GLOBAL
11062 # define LT_DLGLOBAL 0
11066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11067 find out it does not work in some platform. */
11068 #ifndef LT_DLLAZY_OR_NOW
11070 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11073 # define LT_DLLAZY_OR_NOW DL_LAZY
11076 # define LT_DLLAZY_OR_NOW RTLD_NOW
11079 # define LT_DLLAZY_OR_NOW DL_NOW
11081 # define LT_DLLAZY_OR_NOW 0
11089 extern "C" void exit (int);
11092 void fnord() { int i=42;}
11095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11096 int status = $lt_dlunknown;
11100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11101 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11102 /* dlclose (self); */
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11115 (./conftest; exit; ) >&5 2>/dev/null
11117 case x$lt_status in
11118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11123 # compilation failed
11124 lt_cv_dlopen_self_static=no
11131 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11132 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11135 CPPFLAGS="$save_CPPFLAGS"
11136 LDFLAGS="$save_LDFLAGS"
11141 case $lt_cv_dlopen_self in
11142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11143 *) enable_dlopen_self=unknown ;;
11146 case $lt_cv_dlopen_self_static in
11147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11148 *) enable_dlopen_self_static=unknown ;;
11153 # Report which library types will actually be built
11154 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11155 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11156 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11157 echo "${ECHO_T}$can_build_shared" >&6; }
11159 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11160 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11161 test "$can_build_shared" = "no" && enable_shared=no
11163 # On AIX, shared libraries and static libraries use the same namespace, and
11164 # are all built from PIC.
11167 test "$enable_shared" = yes && enable_static=no
11168 if test -n "$RANLIB"; then
11169 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11170 postinstall_cmds='$RANLIB $lib'
11175 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11176 test "$enable_shared" = yes && enable_static=no
11180 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11181 echo "${ECHO_T}$enable_shared" >&6; }
11183 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11184 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11185 # Make sure either enable_shared or enable_static is yes.
11186 test "$enable_shared" = yes || enable_static=yes
11187 { echo "$as_me:$LINENO: result: $enable_static" >&5
11188 echo "${ECHO_T}$enable_static" >&6; }
11190 # The else clause should only fire when bootstrapping the
11191 # libtool distribution, otherwise you forgot to ship ltmain.sh
11192 # with your package, and you will get complaints that there are
11193 # no rules to generate ltmain.sh.
11194 if test -f "$ltmain"; then
11195 # See if we are running on zsh, and set the options which allow our commands through
11196 # without removal of \ escapes.
11197 if test -n "${ZSH_VERSION+set}" ; then
11198 setopt NO_GLOB_SUBST
11200 # Now quote all the things that may contain metacharacters while being
11201 # careful not to overquote the AC_SUBSTed values. We take copies of the
11202 # variables and quote the copies for generation of the libtool script.
11203 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11207 deplibs_check_method reload_flag reload_cmds need_locks \
11208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11209 lt_cv_sys_global_symbol_to_c_name_address \
11210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11211 old_postinstall_cmds old_postuninstall_cmds \
11215 lt_prog_compiler_wl \
11216 lt_prog_compiler_pic \
11217 lt_prog_compiler_static \
11218 lt_prog_compiler_no_builtin_flag \
11219 export_dynamic_flag_spec \
11220 thread_safe_flag_spec \
11221 whole_archive_flag_spec \
11222 enable_shared_with_static_runtimes \
11224 old_archive_from_new_cmds \
11229 compiler_lib_search_path \
11231 archive_expsym_cmds \
11233 postuninstall_cmds \
11234 old_archive_from_expsyms_cmds \
11235 allow_undefined_flag \
11236 no_undefined_flag \
11237 export_symbols_cmds \
11238 hardcode_libdir_flag_spec \
11239 hardcode_libdir_flag_spec_ld \
11240 hardcode_libdir_separator \
11241 hardcode_automatic \
11243 module_expsym_cmds \
11244 lt_cv_prog_compiler_c_o \
11246 include_expsyms; do
11249 old_archive_cmds | \
11250 old_archive_from_new_cmds | \
11252 archive_expsym_cmds | \
11254 module_expsym_cmds | \
11255 old_archive_from_expsyms_cmds | \
11256 export_symbols_cmds | \
11257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11258 postinstall_cmds | postuninstall_cmds | \
11259 old_postinstall_cmds | old_postuninstall_cmds | \
11260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11261 # Double-quote double-evaled strings.
11262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11271 *'\$0 --fallback-echo"')
11272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11276 cfgfile="${ofile}T"
11277 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11279 { echo "$as_me:$LINENO: creating $ofile" >&5
11280 echo "$as_me: creating $ofile" >&6;}
11282 cat <<__EOF__ >> "$cfgfile"
11285 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11286 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11289 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11290 # Free Software Foundation, Inc.
11292 # This file is part of GNU Libtool:
11293 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11295 # This program is free software; you can redistribute it and/or modify
11296 # it under the terms of the GNU General Public License as published by
11297 # the Free Software Foundation; either version 2 of the License, or
11298 # (at your option) any later version.
11300 # This program is distributed in the hope that it will be useful, but
11301 # WITHOUT ANY WARRANTY; without even the implied warranty of
11302 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11303 # General Public License for more details.
11305 # You should have received a copy of the GNU General Public License
11306 # along with this program; if not, write to the Free Software
11307 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11309 # As a special exception to the GNU General Public License, if you
11310 # distribute this file as part of a program that contains a
11311 # configuration script generated by Autoconf, you may include it under
11312 # the same distribution terms that you use for the rest of that program.
11314 # A sed program that does not truncate output.
11317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11318 Xsed="$SED -e 1s/^X//"
11320 # The HP-UX ksh and POSIX shell print the target directory to stdout
11321 # if CDPATH is set.
11322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11324 # The names of the tagged configurations supported by this script.
11327 # ### BEGIN LIBTOOL CONFIG
11329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11331 # Shell to use when invoking shell scripts.
11334 # Whether or not to build shared libraries.
11335 build_libtool_libs=$enable_shared
11337 # Whether or not to build static libraries.
11338 build_old_libs=$enable_static
11340 # Whether or not to add -lc for building shared libraries.
11341 build_libtool_need_lc=$archive_cmds_need_lc
11343 # Whether or not to disallow shared libs when runtime libs are static
11344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11346 # Whether or not to optimize for fast installation.
11347 fast_install=$enable_fast_install
11350 host_alias=$host_alias
11354 # The build system.
11355 build_alias=$build_alias
11359 # An echo program that does not interpret backslashes.
11364 AR_FLAGS=$lt_AR_FLAGS
11369 # LTCC compiler flags.
11370 LTCFLAGS=$lt_LTCFLAGS
11372 # A language-specific compiler.
11375 # Is the compiler the GNU C compiler?
11381 # The linker used to build libraries.
11384 # Whether we need hard or soft links.
11387 # A BSD-compatible nm program.
11390 # A symbol stripping program
11393 # Used to examine libraries when file_magic_cmd begins "file"
11394 MAGIC_CMD=$MAGIC_CMD
11396 # Used on cygwin: DLL creation program.
11399 # Used on cygwin: object dumper.
11402 # Used on cygwin: assembler.
11405 # The name of the directory that contains temporary libtool files.
11408 # How to create reloadable object files.
11409 reload_flag=$lt_reload_flag
11410 reload_cmds=$lt_reload_cmds
11412 # How to pass a linker flag through the compiler.
11413 wl=$lt_lt_prog_compiler_wl
11415 # Object file suffix (normally "o").
11416 objext="$ac_objext"
11418 # Old archive suffix (normally "a").
11421 # Shared library suffix (normally ".so").
11422 shrext_cmds='$shrext_cmds'
11424 # Executable file suffix (normally "").
11427 # Additional compiler flags for building library objects.
11428 pic_flag=$lt_lt_prog_compiler_pic
11431 # What is the maximum length of a command?
11432 max_cmd_len=$lt_cv_sys_max_cmd_len
11434 # Does compiler simultaneously support -c and -o options?
11435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11437 # Must we lock files when doing compilation?
11438 need_locks=$lt_need_locks
11440 # Do we need the lib prefix for modules?
11441 need_lib_prefix=$need_lib_prefix
11443 # Do we need a version for libraries?
11444 need_version=$need_version
11446 # Whether dlopen is supported.
11447 dlopen_support=$enable_dlopen
11449 # Whether dlopen of programs is supported.
11450 dlopen_self=$enable_dlopen_self
11452 # Whether dlopen of statically linked programs is supported.
11453 dlopen_self_static=$enable_dlopen_self_static
11455 # Compiler flag to prevent dynamic linking.
11456 link_static_flag=$lt_lt_prog_compiler_static
11458 # Compiler flag to turn off builtin functions.
11459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11461 # Compiler flag to allow reflexive dlopens.
11462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11464 # Compiler flag to generate shared objects directly from archives.
11465 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11467 # Compiler flag to generate thread-safe objects.
11468 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11470 # Library versioning type.
11471 version_type=$version_type
11473 # Format of library name prefix.
11474 libname_spec=$lt_libname_spec
11476 # List of archive names. First name is the real one, the rest are links.
11477 # The last name is the one that the linker finds with -lNAME.
11478 library_names_spec=$lt_library_names_spec
11480 # The coded name of the library, if different from the real name.
11481 soname_spec=$lt_soname_spec
11483 # Commands used to build and install an old-style archive.
11485 old_archive_cmds=$lt_old_archive_cmds
11486 old_postinstall_cmds=$lt_old_postinstall_cmds
11487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11489 # Create an old-style archive from a shared archive.
11490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11492 # Create a temporary old-style archive to link instead of a shared archive.
11493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11495 # Commands used to build and install a shared archive.
11496 archive_cmds=$lt_archive_cmds
11497 archive_expsym_cmds=$lt_archive_expsym_cmds
11498 postinstall_cmds=$lt_postinstall_cmds
11499 postuninstall_cmds=$lt_postuninstall_cmds
11501 # Commands used to build a loadable module (assumed same as above if empty)
11502 module_cmds=$lt_module_cmds
11503 module_expsym_cmds=$lt_module_expsym_cmds
11505 # Commands to strip libraries.
11506 old_striplib=$lt_old_striplib
11507 striplib=$lt_striplib
11509 # Dependencies to place before the objects being linked to create a
11511 predep_objects=$lt_predep_objects
11513 # Dependencies to place after the objects being linked to create a
11515 postdep_objects=$lt_postdep_objects
11517 # Dependencies to place before the objects being linked to create a
11519 predeps=$lt_predeps
11521 # Dependencies to place after the objects being linked to create a
11523 postdeps=$lt_postdeps
11525 # The library search path used internally by the compiler when linking
11526 # a shared library.
11527 compiler_lib_search_path=$lt_compiler_lib_search_path
11529 # Method to check whether dependent libraries are shared objects.
11530 deplibs_check_method=$lt_deplibs_check_method
11532 # Command to use when deplibs_check_method == file_magic.
11533 file_magic_cmd=$lt_file_magic_cmd
11535 # Flag that allows shared libraries with undefined symbols to be built.
11536 allow_undefined_flag=$lt_allow_undefined_flag
11538 # Flag that forces no undefined symbols.
11539 no_undefined_flag=$lt_no_undefined_flag
11541 # Commands used to finish a libtool library installation in a directory.
11542 finish_cmds=$lt_finish_cmds
11544 # Same as above, but a single script fragment to be evaled but not shown.
11545 finish_eval=$lt_finish_eval
11547 # Take the output of nm and produce a listing of raw symbols and C names.
11548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11550 # Transform the output of nm in a proper C declaration
11551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11553 # Transform the output of nm in a C name address pair
11554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11556 # This is the shared library runtime path variable.
11557 runpath_var=$runpath_var
11559 # This is the shared library path variable.
11560 shlibpath_var=$shlibpath_var
11562 # Is shlibpath searched before the hard-coded library search path?
11563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11565 # How to hardcode a shared library path into an executable.
11566 hardcode_action=$hardcode_action
11568 # Whether we should hardcode library paths into libraries.
11569 hardcode_into_libs=$hardcode_into_libs
11571 # Flag to hardcode \$libdir into a binary during linking.
11572 # This must work even if \$libdir does not exist.
11573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11575 # If ld is used when linking, flag to hardcode \$libdir into
11576 # a binary during linking. This must work even if \$libdir does
11578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11580 # Whether we need a single -rpath flag with a separated argument.
11581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11583 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11584 # resulting binary.
11585 hardcode_direct=$hardcode_direct
11587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11588 # resulting binary.
11589 hardcode_minus_L=$hardcode_minus_L
11591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11592 # the resulting binary.
11593 hardcode_shlibpath_var=$hardcode_shlibpath_var
11595 # Set to yes if building a shared library automatically hardcodes DIR into the library
11596 # and all subsequent libraries and executables linked against it.
11597 hardcode_automatic=$hardcode_automatic
11599 # Variables whose values should be saved in libtool wrapper scripts and
11600 # restored at relink time.
11601 variables_saved_for_relink="$variables_saved_for_relink"
11603 # Whether libtool must link a program against all its dependency libraries.
11604 link_all_deplibs=$link_all_deplibs
11606 # Compile-time system search path for libraries
11607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11609 # Run-time system search path for libraries
11610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11612 # Fix the shell variable \$srcfile for the compiler.
11613 fix_srcfile_path="$fix_srcfile_path"
11615 # Set to yes if exported symbols are required.
11616 always_export_symbols=$always_export_symbols
11618 # The commands to list exported symbols.
11619 export_symbols_cmds=$lt_export_symbols_cmds
11621 # The commands to extract the exported symbol list from a shared archive.
11622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11624 # Symbols that should not be listed in the preloaded symbols.
11625 exclude_expsyms=$lt_exclude_expsyms
11627 # Symbols that must always be exported.
11628 include_expsyms=$lt_include_expsyms
11630 # ### END LIBTOOL CONFIG
11637 cat <<\EOF >> "$cfgfile"
11639 # AIX sometimes has problems with the GCC collect2 program. For some
11640 # reason, if we set the COLLECT_NAMES environment variable, the problems
11641 # vanish in a puff of smoke.
11642 if test "X${COLLECT_NAMES+set}" != Xset; then
11644 export COLLECT_NAMES
11650 # We use sed instead of cat because bash on DJGPP gets confused if
11651 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11652 # text mode, it properly converts lines to CR/LF. This bash problem
11653 # is reportedly fixed, but why not run on old versions too?
11654 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11656 mv -f "$cfgfile" "$ofile" || \
11657 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11661 # If there is no Makefile yet, we rely on a make rule to execute
11662 # `config.status --recheck' to rerun these tests and create the
11663 # libtool script then.
11664 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11665 if test -f "$ltmain_in"; then
11666 test -f Makefile && make "$ltmain"
11672 ac_cpp='$CPP $CPPFLAGS'
11673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11680 # Check whether --with-tags was given.
11681 if test "${with_tags+set}" = set; then
11682 withval=$with_tags; tagnames="$withval"
11686 if test -f "$ltmain" && test -n "$tagnames"; then
11687 if test ! -f "${ofile}"; then
11688 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11689 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11692 if test -z "$LTCC"; then
11693 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11694 if test -z "$LTCC"; then
11695 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11696 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11699 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11702 if test -z "$LTCFLAGS"; then
11703 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11706 # Extract list of available tagged configurations in $ofile.
11707 # Note that this assumes the entire list is on one line.
11708 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11711 for tagname in $tagnames; do
11713 # Check whether tagname contains only valid characters
11714 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11716 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11717 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11718 { (exit 1); exit 1; }; }
11722 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11724 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11725 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11726 { (exit 1); exit 1; }; }
11729 # Update the list of available tags.
11730 if test -n "$tagname"; then
11731 echo appending configuration tag \"$tagname\" to $ofile
11735 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11736 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11737 (test "X$CXX" != "Xg++"))) ; then
11739 ac_cpp='$CXXCPP $CPPFLAGS'
11740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11747 archive_cmds_need_lc_CXX=no
11748 allow_undefined_flag_CXX=
11749 always_export_symbols_CXX=no
11750 archive_expsym_cmds_CXX=
11751 export_dynamic_flag_spec_CXX=
11752 hardcode_direct_CXX=no
11753 hardcode_libdir_flag_spec_CXX=
11754 hardcode_libdir_flag_spec_ld_CXX=
11755 hardcode_libdir_separator_CXX=
11756 hardcode_minus_L_CXX=no
11757 hardcode_shlibpath_var_CXX=unsupported
11758 hardcode_automatic_CXX=no
11760 module_expsym_cmds_CXX=
11761 link_all_deplibs_CXX=unknown
11762 old_archive_cmds_CXX=$old_archive_cmds
11763 no_undefined_flag_CXX=
11764 whole_archive_flag_spec_CXX=
11765 enable_shared_with_static_runtimes_CXX=no
11767 # Dependencies to place before and after the object being linked:
11768 predep_objects_CXX=
11769 postdep_objects_CXX=
11772 compiler_lib_search_path_CXX=
11774 # Source file extension for C++ test sources.
11777 # Object file extension for compiled C++ test sources.
11781 # Code to be used in simple compile tests
11782 lt_simple_compile_test_code="int some_variable = 0;\n"
11784 # Code to be used in simple link tests
11785 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11789 # If no C compiler was specified, use CC.
11792 # If no C compiler flags were specified, use CFLAGS.
11793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11795 # Allow CC to be a program name with arguments.
11799 # save warnings/boilerplate of simple test code
11800 ac_outfile=conftest.$ac_objext
11801 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11802 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11803 _lt_compiler_boilerplate=`cat conftest.err`
11806 ac_outfile=conftest.$ac_objext
11807 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11808 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11809 _lt_linker_boilerplate=`cat conftest.err`
11813 # Allow CC to be a program name with arguments.
11818 lt_save_with_gnu_ld=$with_gnu_ld
11819 lt_save_path_LD=$lt_cv_path_LD
11820 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11821 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11823 $as_unset lt_cv_prog_gnu_ld
11825 if test -n "${lt_cv_path_LDCXX+set}"; then
11826 lt_cv_path_LD=$lt_cv_path_LDCXX
11828 $as_unset lt_cv_path_LD
11830 test -z "${LDCXX+set}" || LD=$LDCXX
11834 for cc_temp in $compiler""; do
11836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11842 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11845 # We don't want -fno-exception wen compiling C++ code, so set the
11846 # no_builtin_flag separately
11847 if test "$GXX" = yes; then
11848 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11850 lt_prog_compiler_no_builtin_flag_CXX=
11853 if test "$GXX" = yes; then
11854 # Set up default GNU C++ configuration
11857 # Check whether --with-gnu-ld was given.
11858 if test "${with_gnu_ld+set}" = set; then
11859 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11865 if test "$GCC" = yes; then
11866 # Check if gcc -print-prog-name=ld gives a path.
11867 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11868 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11871 # gcc leaves a trailing carriage return which upsets mingw
11872 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11874 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11877 # Accept absolute paths.
11879 re_direlt='/[^/][^/]*/\.\./'
11880 # Canonicalize the pathname of ld
11881 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11882 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11883 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11885 test -z "$LD" && LD="$ac_prog"
11888 # If it fails, then pretend we aren't using GCC.
11892 # If it is relative, then search for the first ld in PATH.
11893 with_gnu_ld=unknown
11896 elif test "$with_gnu_ld" = yes; then
11897 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11898 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11900 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11901 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11903 if test "${lt_cv_path_LD+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 if test -z "$LD"; then
11907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11908 for ac_dir in $PATH; do
11910 test -z "$ac_dir" && ac_dir=.
11911 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11912 lt_cv_path_LD="$ac_dir/$ac_prog"
11913 # Check to see if the program is GNU ld. I'd rather use --version,
11914 # but apparently some variants of GNU ld only accept -v.
11915 # Break only if it was the GNU/non-GNU ld that we prefer.
11916 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11917 *GNU* | *'with BFD'*)
11918 test "$with_gnu_ld" != no && break
11921 test "$with_gnu_ld" != yes && break
11928 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11932 LD="$lt_cv_path_LD"
11933 if test -n "$LD"; then
11934 { echo "$as_me:$LINENO: result: $LD" >&5
11935 echo "${ECHO_T}$LD" >&6; }
11937 { echo "$as_me:$LINENO: result: no" >&5
11938 echo "${ECHO_T}no" >&6; }
11940 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11941 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11942 { (exit 1); exit 1; }; }
11943 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11944 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11945 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11949 case `$LD -v 2>&1 </dev/null` in
11950 *GNU* | *'with BFD'*)
11951 lt_cv_prog_gnu_ld=yes
11954 lt_cv_prog_gnu_ld=no
11958 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11959 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11960 with_gnu_ld=$lt_cv_prog_gnu_ld
11964 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11965 # archiving commands below assume that GNU ld is being used.
11966 if test "$with_gnu_ld" = yes; then
11967 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11968 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'
11970 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11973 # If archive_cmds runs LD, not CC, wlarc should be empty
11974 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11975 # investigate it a little bit more. (MM)
11978 # ancient GNU ld didn't support --whole-archive et. al.
11979 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11980 grep 'no-whole-archive' > /dev/null; then
11981 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11983 whole_archive_flag_spec_CXX=
11989 # A generic and very simple default shared library creation
11990 # command for GNU C++ for the case where it uses the native
11991 # linker, instead of GNU ld. If possible, this setting should
11992 # overridden to take advantage of the native linker features on
11993 # the platform it is being used on.
11994 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11997 # Commands to make compiler produce verbose output that lists
11998 # what "hidden" libraries, object files and flags are used when
11999 # linking a shared library.
12000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12008 # PORTME: fill in a description of your system's C++ link characteristics
12009 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12014 # FIXME: insert proper C++ library support
12018 if test "$host_cpu" = ia64; then
12019 # On IA64, the linker does run time linking by default, so we don't
12020 # have to do anything special.
12021 aix_use_runtimelinking=no
12022 exp_sym_flag='-Bexport'
12025 aix_use_runtimelinking=no
12027 # Test if we are trying to use run time linking or normal
12028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12029 # need to do runtime linking.
12030 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12031 for ld_flag in $LDFLAGS; do
12034 aix_use_runtimelinking=yes
12042 exp_sym_flag='-bexport'
12043 no_entry_flag='-bnoentry'
12046 # When large executables or shared objects are built, AIX ld can
12047 # have problems creating the table of contents. If linking a library
12048 # or program results in "error TOC overflow" add -mminimal-toc to
12049 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12050 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12052 archive_cmds_CXX=''
12053 hardcode_direct_CXX=yes
12054 hardcode_libdir_separator_CXX=':'
12055 link_all_deplibs_CXX=yes
12057 if test "$GXX" = yes; then
12058 case $host_os in aix4.[012]|aix4.[012].*)
12059 # We only want to do this on AIX 4.2 and lower, the check
12060 # below for broken collect2 doesn't work under 4.3+
12061 collect2name=`${CC} -print-prog-name=collect2`
12062 if test -f "$collect2name" && \
12063 strings "$collect2name" | grep resolve_lib_name >/dev/null
12065 # We have reworked collect2
12066 hardcode_direct_CXX=yes
12068 # We have old collect2
12069 hardcode_direct_CXX=unsupported
12070 # It fails to find uninstalled libraries when the uninstalled
12071 # path is not listed in the libpath. Setting hardcode_minus_L
12072 # to unsupported forces relinking
12073 hardcode_minus_L_CXX=yes
12074 hardcode_libdir_flag_spec_CXX='-L$libdir'
12075 hardcode_libdir_separator_CXX=
12079 shared_flag='-shared'
12080 if test "$aix_use_runtimelinking" = yes; then
12081 shared_flag="$shared_flag "'${wl}-G'
12085 if test "$host_cpu" = ia64; then
12086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12087 # chokes on -Wl,-G. The following line is correct:
12090 if test "$aix_use_runtimelinking" = yes; then
12091 shared_flag='${wl}-G'
12093 shared_flag='${wl}-bM:SRE'
12098 # It seems that -bexpall does not export symbols beginning with
12099 # underscore (_), so it is better to generate a list of symbols to export.
12100 always_export_symbols_CXX=yes
12101 if test "$aix_use_runtimelinking" = yes; then
12102 # Warning - without using the other runtime loading flags (-brtl),
12103 # -berok will link without error, but may produce a broken library.
12104 allow_undefined_flag_CXX='-berok'
12105 # Determine the default libpath from the value encoded in an empty executable.
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_cxx_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext &&
12138 $as_test_x conftest$ac_exeext; then
12140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12142 # Check for a 64-bit object if we didn't find anything.
12143 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; }
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12153 conftest$ac_exeext conftest.$ac_ext
12154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12156 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12158 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"
12160 if test "$host_cpu" = ia64; then
12161 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12162 allow_undefined_flag_CXX="-z nodefs"
12163 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"
12165 # Determine the default libpath from the value encoded in an empty executable.
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (ac_try="$ac_link"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_link") 2>conftest.er1
12190 grep -v '^ *+' conftest.er1 >conftest.err
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_cxx_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest$ac_exeext &&
12198 $as_test_x conftest$ac_exeext; then
12200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12202 # Check for a 64-bit object if we didn't find anything.
12203 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; }
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12217 # Warning - without using the other run time loading flags,
12218 # -berok will link without error, but may produce a broken library.
12219 no_undefined_flag_CXX=' ${wl}-bernotok'
12220 allow_undefined_flag_CXX=' ${wl}-berok'
12221 # Exported symbols can be pulled into shared objects from archives
12222 whole_archive_flag_spec_CXX='$convenience'
12223 archive_cmds_need_lc_CXX=yes
12224 # This is similar to how AIX traditionally builds its shared libraries.
12225 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'
12231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12232 allow_undefined_flag_CXX=unsupported
12233 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12234 # support --undefined. This deserves some investigation. FIXME
12235 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242 case $cc_basename in
12244 # FIXME: insert proper C++ library support
12250 cygwin* | mingw* | pw32*)
12251 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12252 # as there is no search path for DLLs.
12253 hardcode_libdir_flag_spec_CXX='-L$libdir'
12254 allow_undefined_flag_CXX=unsupported
12255 always_export_symbols_CXX=no
12256 enable_shared_with_static_runtimes_CXX=yes
12258 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12259 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'
12260 # If the export-symbols file already is a .def file (1st line
12261 # is EXPORTS), use it as is; otherwise, prepend...
12262 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12263 cp $export_symbols $output_objdir/$soname.def;
12265 echo EXPORTS > $output_objdir/$soname.def;
12266 cat $export_symbols >> $output_objdir/$soname.def;
12268 $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'
12273 darwin* | rhapsody*)
12275 rhapsody* | darwin1.[012])
12276 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12279 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12280 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12282 case ${MACOSX_DEPLOYMENT_TARGET} in
12284 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12287 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12293 archive_cmds_need_lc_CXX=no
12294 hardcode_direct_CXX=no
12295 hardcode_automatic_CXX=yes
12296 hardcode_shlibpath_var_CXX=unsupported
12297 whole_archive_flag_spec_CXX=''
12298 link_all_deplibs_CXX=yes
12300 if test "$GXX" = yes ; then
12301 lt_int_apple_cc_single_mod=no
12302 output_verbose_link_cmd='echo'
12303 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12304 lt_int_apple_cc_single_mod=yes
12306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12307 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12309 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'
12311 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12312 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12313 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12314 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}'
12316 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}'
12318 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}'
12320 case $cc_basename in
12322 output_verbose_link_cmd='echo'
12323 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'
12324 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12325 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12326 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}'
12327 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}'
12337 case $cc_basename in
12339 # FIXME: insert proper C++ library support
12343 # Green Hills C++ Compiler
12344 # FIXME: insert proper C++ library support
12348 # FIXME: insert proper C++ library support
12354 # C++ shared libraries reported to be fairly broken before switch to ELF
12358 archive_cmds_need_lc_CXX=no
12360 freebsd* | dragonfly*)
12361 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12368 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12369 hardcode_libdir_separator_CXX=:
12370 export_dynamic_flag_spec_CXX='${wl}-E'
12371 hardcode_direct_CXX=yes
12372 hardcode_minus_L_CXX=yes # Not in the search PATH,
12373 # but as the default
12374 # location of the library.
12376 case $cc_basename in
12378 # FIXME: insert proper C++ library support
12382 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'
12383 # Commands to make compiler produce verbose output that lists
12384 # what "hidden" libraries, object files and flags are used when
12385 # linking a shared library.
12387 # There doesn't appear to be a way to prevent this compiler from
12388 # explicitly linking system object files so we need to strip them
12389 # from the output so that they don't get included in the library
12391 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'
12394 if test "$GXX" = yes; then
12395 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'
12397 # FIXME: insert proper C++ library support
12404 if test $with_gnu_ld = no; then
12405 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12406 hardcode_libdir_separator_CXX=:
12410 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12413 export_dynamic_flag_spec_CXX='${wl}-E'
12419 hardcode_direct_CXX=no
12420 hardcode_shlibpath_var_CXX=no
12423 hardcode_direct_CXX=yes
12424 hardcode_minus_L_CXX=yes # Not in the search PATH,
12425 # but as the default
12426 # location of the library.
12430 case $cc_basename in
12432 # FIXME: insert proper C++ library support
12438 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12441 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12444 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12447 # Commands to make compiler produce verbose output that lists
12448 # what "hidden" libraries, object files and flags are used when
12449 # linking a shared library.
12451 # There doesn't appear to be a way to prevent this compiler from
12452 # explicitly linking system object files so we need to strip them
12453 # from the output so that they don't get included in the library
12455 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'
12458 if test "$GXX" = yes; then
12459 if test $with_gnu_ld = no; then
12462 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12465 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12468 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'
12473 # FIXME: insert proper C++ library support
12480 hardcode_direct_CXX=no
12481 hardcode_shlibpath_var_CXX=no
12482 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12483 export_dynamic_flag_spec_CXX='${wl}-E'
12484 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12485 # Instead, shared libraries are loaded at an image base (0x10000000 by
12486 # default) and relocated if they conflict, which is a slow very memory
12487 # consuming and fragmenting process. To avoid this, we pick a random,
12488 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12489 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12490 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'
12491 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'
12494 case $cc_basename in
12497 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'
12499 # Archives containing C++ object files must be created using
12500 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12501 # necessary to make sure instantiated templates are included
12503 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12506 if test "$GXX" = yes; then
12507 if test "$with_gnu_ld" = no; then
12508 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'
12510 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'
12513 link_all_deplibs_CXX=yes
12516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12517 hardcode_libdir_separator_CXX=:
12519 linux* | k*bsd*-gnu)
12520 case $cc_basename in
12522 # Kuck and Associates, Inc. (KAI) C++ Compiler
12524 # KCC will only create a shared library if the output file
12525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12526 # to its proper name (with version) after linking.
12527 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'
12528 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'
12529 # Commands to make compiler produce verbose output that lists
12530 # what "hidden" libraries, object files and flags are used when
12531 # linking a shared library.
12533 # There doesn't appear to be a way to prevent this compiler from
12534 # explicitly linking system object files so we need to strip them
12535 # from the output so that they don't get included in the library
12537 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'
12539 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12542 # Archives containing C++ object files must be created using
12543 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12544 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12549 # version 8.0 and above of icpc choke on multiply defined symbols
12550 # if we add $predep_objects and $postdep_objects, however 7.1 and
12551 # earlier do not add the objects themselves.
12552 case `$CC -V 2>&1` in
12554 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12555 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'
12557 *) # Version 8.0 or newer
12560 ia64*) tmp_idyn=' -i_dynamic';;
12562 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12563 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'
12566 archive_cmds_need_lc_CXX=no
12567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12569 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12572 # Portland Group C++ compiler
12573 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12574 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'
12576 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12578 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'
12582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12583 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'
12585 runpath_var=LD_RUN_PATH
12586 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12587 hardcode_libdir_separator_CXX=:
12589 # Commands to make compiler produce verbose output that lists
12590 # what "hidden" libraries, object files and flags are used when
12591 # linking a shared library.
12593 # There doesn't appear to be a way to prevent this compiler from
12594 # explicitly linking system object files so we need to strip them
12595 # from the output so that they don't get included in the library
12597 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'
12602 # FIXME: insert proper C++ library support
12606 # FIXME: insert proper C++ library support
12610 case $cc_basename in
12612 # FIXME: insert proper C++ library support
12616 # FIXME: insert proper C++ library support
12621 netbsd* | netbsdelf*-gnu)
12622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12623 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12625 hardcode_libdir_flag_spec_CXX='-R$libdir'
12626 hardcode_direct_CXX=yes
12627 hardcode_shlibpath_var_CXX=no
12629 # Workaround some broken pre-1.5 toolchains
12630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12633 # C++ shared libraries are fairly broken
12637 hardcode_direct_CXX=yes
12638 hardcode_shlibpath_var_CXX=no
12639 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12642 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12643 export_dynamic_flag_spec_CXX='${wl}-E'
12644 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12646 output_verbose_link_cmd='echo'
12649 case $cc_basename in
12651 # Kuck and Associates, Inc. (KAI) C++ Compiler
12653 # KCC will only create a shared library if the output file
12654 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12655 # to its proper name (with version) after linking.
12656 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'
12658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659 hardcode_libdir_separator_CXX=:
12661 # Archives containing C++ object files must be created using
12662 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12663 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12667 # Rational C++ 2.4.1
12668 # FIXME: insert proper C++ library support
12672 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12673 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'
12675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12676 hardcode_libdir_separator_CXX=:
12678 # Commands to make compiler produce verbose output that lists
12679 # what "hidden" libraries, object files and flags are used when
12680 # linking a shared library.
12682 # There doesn't appear to be a way to prevent this compiler from
12683 # explicitly linking system object files so we need to strip them
12684 # from the output so that they don't get included in the library
12686 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'
12689 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12690 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12691 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'
12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12694 hardcode_libdir_separator_CXX=:
12696 # Commands to make compiler produce verbose output that lists
12697 # what "hidden" libraries, object files and flags are used when
12698 # linking a shared library.
12699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12702 # FIXME: insert proper C++ library support
12709 case $cc_basename in
12711 # Kuck and Associates, Inc. (KAI) C++ Compiler
12713 # KCC will only create a shared library if the output file
12714 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12715 # to its proper name (with version) after linking.
12716 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'
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12719 hardcode_libdir_separator_CXX=:
12721 # Archives containing C++ object files must be created using
12722 # the KAI C++ compiler.
12723 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12726 # Rational C++ 2.4.1
12727 # FIXME: insert proper C++ library support
12731 allow_undefined_flag_CXX=' -expect_unresolved \*'
12732 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'
12733 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12734 echo "-hidden">> $lib.exp~
12735 $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~
12738 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12739 hardcode_libdir_separator_CXX=:
12741 # Commands to make compiler produce verbose output that lists
12742 # what "hidden" libraries, object files and flags are used when
12743 # linking a shared library.
12745 # There doesn't appear to be a way to prevent this compiler from
12746 # explicitly linking system object files so we need to strip them
12747 # from the output so that they don't get included in the library
12749 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'
12752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12753 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12754 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'
12756 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12757 hardcode_libdir_separator_CXX=:
12759 # Commands to make compiler produce verbose output that lists
12760 # what "hidden" libraries, object files and flags are used when
12761 # linking a shared library.
12762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12765 # FIXME: insert proper C++ library support
12772 # FIXME: insert proper C++ library support
12776 case $cc_basename in
12779 # FIXME: insert proper C++ library support
12784 # FIXME: insert proper C++ library support
12788 # FIXME: insert proper C++ library support
12794 case $cc_basename in
12796 # Sun C++ 4.2, 5.x and Centerline C++
12797 archive_cmds_need_lc_CXX=yes
12798 no_undefined_flag_CXX=' -zdefs'
12799 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12800 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12801 $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'
12803 hardcode_libdir_flag_spec_CXX='-R$libdir'
12804 hardcode_shlibpath_var_CXX=no
12806 solaris2.[0-5] | solaris2.[0-5].*) ;;
12808 # The C++ compiler is used as linker so we must use $wl
12809 # flag to pass the commands to the underlying system
12810 # linker. We must also pass each convience library through
12811 # to the system linker between allextract/defaultextract.
12812 # The C++ compiler will combine linker options so we
12813 # cannot just pass the convience library names through
12815 # Supported since Solaris 2.6 (maybe 2.5.1?)
12816 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'
12819 link_all_deplibs_CXX=yes
12821 output_verbose_link_cmd='echo'
12823 # Archives containing C++ object files must be created using
12824 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12825 # necessary to make sure instantiated templates are included
12827 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12830 # Green Hills C++ Compiler
12831 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12833 # The C++ compiler must be used to create the archive.
12834 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12837 # GNU C++ compiler with Solaris linker
12838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12839 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12840 if $CC --version | grep -v '^2\.7' > /dev/null; then
12841 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12842 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12845 # Commands to make compiler produce verbose output that lists
12846 # what "hidden" libraries, object files and flags are used when
12847 # linking a shared library.
12848 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12850 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12852 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12853 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12854 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12859 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12862 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12868 no_undefined_flag_CXX='${wl}-z,text'
12869 archive_cmds_need_lc_CXX=no
12870 hardcode_shlibpath_var_CXX=no
12871 runpath_var='LD_RUN_PATH'
12873 case $cc_basename in
12875 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12879 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884 sysv5* | sco3.2v5* | sco5v6*)
12885 # Note: We can NOT use -z defs as we might desire, because we do not
12886 # link with -lc, and that would cause any symbols used from libc to
12887 # always be unresolved, which means just about no library would
12888 # ever link correctly. If we're not using GNU ld we use -z text
12889 # though, which does catch some bad symbols but isn't as heavy-handed
12891 # For security reasons, it is highly recommended that you always
12892 # use absolute paths for naming shared libraries, and exclude the
12893 # DT_RUNPATH tag from executables and libraries. But doing so
12894 # requires that you compile everything twice, which is a pain.
12895 # So that behaviour is only enabled if SCOABSPATH is set to a
12896 # non-empty value in the environment. Most likely only useful for
12897 # creating official distributions of packages.
12898 # This is a hack until libtool officially supports absolute path
12899 # names for shared libraries.
12900 no_undefined_flag_CXX='${wl}-z,text'
12901 allow_undefined_flag_CXX='${wl}-z,nodefs'
12902 archive_cmds_need_lc_CXX=no
12903 hardcode_shlibpath_var_CXX=no
12904 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12905 hardcode_libdir_separator_CXX=':'
12906 link_all_deplibs_CXX=yes
12907 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12908 runpath_var='LD_RUN_PATH'
12910 case $cc_basename in
12912 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12913 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12916 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12922 case $cc_basename in
12924 # NonStop-UX NCC 3.20
12925 # FIXME: insert proper C++ library support
12929 # FIXME: insert proper C++ library support
12935 # FIXME: insert proper C++ library support
12939 # FIXME: insert proper C++ library support
12943 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12944 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12945 test "$ld_shlibs_CXX" = no && can_build_shared=no
12951 cat > conftest.$ac_ext <<EOF
12955 Foo (void) { a = 0; }
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; then
12966 # Parse the compiler output and extract the necessary
12967 # objects, libraries and library flags.
12969 # Sentinel used to keep track of whether or not we are before
12970 # the conftest object file.
12971 pre_test_object_deps_done=no
12973 # The `*' in the case matches for architectures that use `case' in
12974 # $output_verbose_cmd can trigger glob expansion during the loop
12975 # eval without this substitution.
12976 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12978 for p in `eval $output_verbose_link_cmd`; do
12982 # Some compilers place space between "-{L,R}" and the path.
12983 # Remove the space.
12984 if test $p = "-L" \
12985 || test $p = "-R"; then
12992 if test "$pre_test_object_deps_done" = no; then
12995 # Internal compiler library paths should come after those
12996 # provided the user. The postdeps already come after the
12997 # user supplied libs so there is no need to process them.
12998 if test -z "$compiler_lib_search_path_CXX"; then
12999 compiler_lib_search_path_CXX="${prev}${p}"
13001 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13004 # The "-l" case would never come before the object being
13005 # linked, so don't bother handling this case.
13008 if test -z "$postdeps_CXX"; then
13009 postdeps_CXX="${prev}${p}"
13011 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13017 # This assumes that the test object file only shows up
13018 # once in the compiler output.
13019 if test "$p" = "conftest.$objext"; then
13020 pre_test_object_deps_done=yes
13024 if test "$pre_test_object_deps_done" = no; then
13025 if test -z "$predep_objects_CXX"; then
13026 predep_objects_CXX="$p"
13028 predep_objects_CXX="$predep_objects_CXX $p"
13031 if test -z "$postdep_objects_CXX"; then
13032 postdep_objects_CXX="$p"
13034 postdep_objects_CXX="$postdep_objects_CXX $p"
13039 *) ;; # Ignore the rest.
13047 echo "libtool.m4: error: problem compiling CXX test program"
13050 $rm -f confest.$objext
13052 # PORTME: override above test on systems where it is broken
13055 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13056 # hack all around it, let's just trust "g++" to DTRT.
13057 predep_objects_CXX=
13058 postdep_objects_CXX=
13063 case $cc_basename in
13065 # Adding this requires a known-good setup of shared libraries for
13066 # Sun compiler versions before 5.6, else PIC objects from an old
13067 # archive will be linked into the output, leading to subtle bugs.
13068 postdeps_CXX='-lCstd -lCrun'
13075 case " $postdeps_CXX " in
13076 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13079 lt_prog_compiler_wl_CXX=
13080 lt_prog_compiler_pic_CXX=
13081 lt_prog_compiler_static_CXX=
13083 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13086 # C++ specific cases for pic, static, wl, etc.
13087 if test "$GXX" = yes; then
13088 lt_prog_compiler_wl_CXX='-Wl,'
13089 lt_prog_compiler_static_CXX='-static'
13093 # All AIX code is PIC.
13094 if test "$host_cpu" = ia64; then
13095 # AIX 5 now supports IA64 processor
13096 lt_prog_compiler_static_CXX='-Bstatic'
13100 # FIXME: we need at least 68020 code to build shared libraries, but
13101 # adding the `-m68020' flag to GCC prevents building anything better,
13103 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13105 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13106 # PIC is the default for these OSes.
13108 mingw* | os2* | pw32*)
13109 # This hack is so that the source file can tell whether it is being
13110 # built for inclusion in a dll (and should export symbols for example).
13111 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13113 darwin* | rhapsody*)
13114 # PIC is the default on this platform
13115 # Common symbols not allowed in MH_DYLIB files
13116 lt_prog_compiler_pic_CXX='-fno-common'
13119 # DJGPP does not support shared libraries at all
13120 lt_prog_compiler_pic_CXX=
13123 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13124 # Instead, we relocate shared libraries at runtime.
13127 if test -d /usr/nec; then
13128 lt_prog_compiler_pic_CXX=-Kconform_pic
13132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13133 # not for PA HP-UX.
13138 lt_prog_compiler_pic_CXX='-fPIC'
13143 lt_prog_compiler_pic_CXX='-fPIC'
13149 # All AIX code is PIC.
13150 if test "$host_cpu" = ia64; then
13151 # AIX 5 now supports IA64 processor
13152 lt_prog_compiler_static_CXX='-Bstatic'
13154 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13158 case $cc_basename in
13160 # Green Hills C++ Compiler
13161 # _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"
13166 # PIC is the default on this platform
13167 # Common symbols not allowed in MH_DYLIB files
13168 case $cc_basename in
13170 lt_prog_compiler_pic_CXX='-qnocommon'
13171 lt_prog_compiler_wl_CXX='-Wl,'
13176 case $cc_basename in
13178 lt_prog_compiler_pic_CXX='-KPIC'
13181 # Green Hills C++ Compiler
13182 lt_prog_compiler_pic_CXX='-pic'
13188 freebsd* | dragonfly*)
13189 # FreeBSD uses GNU C++
13191 hpux9* | hpux10* | hpux11*)
13192 case $cc_basename in
13194 lt_prog_compiler_wl_CXX='-Wl,'
13195 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13196 if test "$host_cpu" != ia64; then
13197 lt_prog_compiler_pic_CXX='+Z'
13201 lt_prog_compiler_wl_CXX='-Wl,'
13202 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13208 lt_prog_compiler_pic_CXX='+Z'
13217 # This is c89, which is MS Visual C++ (no shared libs)
13218 # Anyone wants to do a port?
13220 irix5* | irix6* | nonstopux*)
13221 case $cc_basename in
13223 lt_prog_compiler_wl_CXX='-Wl,'
13224 lt_prog_compiler_static_CXX='-non_shared'
13225 # CC pic flag -KPIC is the default.
13231 linux* | k*bsd*-gnu)
13232 case $cc_basename in
13235 lt_prog_compiler_wl_CXX='--backend -Wl,'
13236 lt_prog_compiler_pic_CXX='-fPIC'
13240 lt_prog_compiler_wl_CXX='-Wl,'
13241 lt_prog_compiler_pic_CXX='-KPIC'
13242 lt_prog_compiler_static_CXX='-static'
13245 # Portland Group C++ compiler.
13246 lt_prog_compiler_wl_CXX='-Wl,'
13247 lt_prog_compiler_pic_CXX='-fpic'
13248 lt_prog_compiler_static_CXX='-Bstatic'
13252 # Make sure the PIC flag is empty. It appears that all Alpha
13253 # Linux and Compaq Tru64 Unix objects are PIC.
13254 lt_prog_compiler_pic_CXX=
13255 lt_prog_compiler_static_CXX='-non_shared'
13266 case $cc_basename in
13268 lt_prog_compiler_pic_CXX='-W c,exportall'
13274 netbsd* | netbsdelf*-gnu)
13276 osf3* | osf4* | osf5*)
13277 case $cc_basename in
13279 lt_prog_compiler_wl_CXX='--backend -Wl,'
13282 # Rational C++ 2.4.1
13283 lt_prog_compiler_pic_CXX='-pic'
13286 # Digital/Compaq C++
13287 lt_prog_compiler_wl_CXX='-Wl,'
13288 # Make sure the PIC flag is empty. It appears that all Alpha
13289 # Linux and Compaq Tru64 Unix objects are PIC.
13290 lt_prog_compiler_pic_CXX=
13291 lt_prog_compiler_static_CXX='-non_shared'
13300 case $cc_basename in
13302 # Sun C++ 4.2, 5.x and Centerline C++
13303 lt_prog_compiler_pic_CXX='-KPIC'
13304 lt_prog_compiler_static_CXX='-Bstatic'
13305 lt_prog_compiler_wl_CXX='-Qoption ld '
13308 # Green Hills C++ Compiler
13309 lt_prog_compiler_pic_CXX='-PIC'
13316 case $cc_basename in
13319 lt_prog_compiler_pic_CXX='-pic'
13320 lt_prog_compiler_static_CXX='-Bstatic'
13324 lt_prog_compiler_pic_CXX='-pic'
13331 case $cc_basename in
13333 # NonStop-UX NCC 3.20
13334 lt_prog_compiler_pic_CXX='-KPIC'
13340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13341 case $cc_basename in
13343 lt_prog_compiler_wl_CXX='-Wl,'
13344 lt_prog_compiler_pic_CXX='-KPIC'
13345 lt_prog_compiler_static_CXX='-Bstatic'
13352 lt_prog_compiler_can_build_shared_CXX=no
13357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13358 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13361 # Check to make sure the PIC flag actually works.
13363 if test -n "$lt_prog_compiler_pic_CXX"; then
13365 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13366 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13367 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 lt_prog_compiler_pic_works_CXX=no
13371 ac_outfile=conftest.$ac_objext
13372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13373 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13374 # Insert the option either (1) after the last *FLAGS variable, or
13375 # (2) before a word containing "conftest.", or (3) at the end.
13376 # Note that $ac_compile itself does not contain backslashes and begins
13377 # with a dollar sign (not a hyphen), so the echo should work correctly.
13378 # The option is referenced via a variable to avoid confusing sed.
13379 lt_compile=`echo "$ac_compile" | $SED \
13380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13382 -e 's:$: $lt_compiler_flag:'`
13383 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13384 (eval "$lt_compile" 2>conftest.err)
13386 cat conftest.err >&5
13387 echo "$as_me:__oline__: \$? = $ac_status" >&5
13388 if (exit $ac_status) && test -s "$ac_outfile"; then
13389 # The compiler can only warn and ignore the option if not recognized
13390 # So say no if there are warnings other than the usual output.
13391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13394 lt_prog_compiler_pic_works_CXX=yes
13400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13401 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13403 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13404 case $lt_prog_compiler_pic_CXX in
13406 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13409 lt_prog_compiler_pic_CXX=
13410 lt_prog_compiler_can_build_shared_CXX=no
13415 # For platforms which do not support PIC, -DPIC is meaningless:
13417 lt_prog_compiler_pic_CXX=
13420 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13425 # Check to make sure the static flag actually works.
13427 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13428 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13429 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13430 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 lt_prog_compiler_static_works_CXX=no
13434 save_LDFLAGS="$LDFLAGS"
13435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13436 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13438 # The linker can only warn and ignore the option if not recognized
13439 # So say no if there are warnings
13440 if test -s conftest.err; then
13441 # Append any errors to the config.log.
13442 cat conftest.err 1>&5
13443 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13445 if diff conftest.exp conftest.er2 >/dev/null; then
13446 lt_prog_compiler_static_works_CXX=yes
13449 lt_prog_compiler_static_works_CXX=yes
13453 LDFLAGS="$save_LDFLAGS"
13456 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13457 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13459 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13462 lt_prog_compiler_static_CXX=
13466 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13467 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13468 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 lt_cv_prog_compiler_c_o_CXX=no
13472 $rm -r conftest 2>/dev/null
13476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13478 lt_compiler_flag="-o out/conftest2.$ac_objext"
13479 # Insert the option either (1) after the last *FLAGS variable, or
13480 # (2) before a word containing "conftest.", or (3) at the end.
13481 # Note that $ac_compile itself does not contain backslashes and begins
13482 # with a dollar sign (not a hyphen), so the echo should work correctly.
13483 lt_compile=`echo "$ac_compile" | $SED \
13484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13486 -e 's:$: $lt_compiler_flag:'`
13487 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13488 (eval "$lt_compile" 2>out/conftest.err)
13490 cat out/conftest.err >&5
13491 echo "$as_me:__oline__: \$? = $ac_status" >&5
13492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13494 # The compiler can only warn and ignore the option if not recognized
13495 # So say no if there are warnings
13496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13499 lt_cv_prog_compiler_c_o_CXX=yes
13504 # SGI C++ compiler will create directory out/ii_files/ for
13505 # template instantiation
13506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13507 $rm out/* && rmdir out
13513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13517 hard_links="nottested"
13518 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13519 # do not overwrite the value of need_locks provided by the user
13520 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13526 ln conftest.a conftest.b 2>&5 || hard_links=no
13527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13528 { echo "$as_me:$LINENO: result: $hard_links" >&5
13529 echo "${ECHO_T}$hard_links" >&6; }
13530 if test "$hard_links" = no; then
13531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13539 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13542 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13545 # If we're using GNU nm, then we don't want the "-C" option.
13546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13547 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13548 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'
13550 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'
13554 export_symbols_cmds_CXX="$ltdll_cmds"
13557 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'
13559 linux* | k*bsd*-gnu)
13560 link_all_deplibs_CXX=no
13563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13567 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13568 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13569 test "$ld_shlibs_CXX" = no && can_build_shared=no
13572 # Do we need to explicitly link libc?
13574 case "x$archive_cmds_need_lc_CXX" in
13576 # Assume -lc should be added
13577 archive_cmds_need_lc_CXX=yes
13579 if test "$enable_shared" = yes && test "$GCC" = yes; then
13580 case $archive_cmds_CXX in
13582 # FIXME: we may have to deal with multi-command sequences.
13585 # Test whether the compiler implicitly links with -lc since on some
13586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587 # to ld, don't add -lc before -lgcc.
13588 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } 2>conftest.err; then
13600 libobjs=conftest.$ac_objext
13602 wl=$lt_prog_compiler_wl_CXX
13603 pic_flag=$lt_prog_compiler_pic_CXX
13609 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13610 allow_undefined_flag_CXX=
13611 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13612 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }
13617 archive_cmds_need_lc_CXX=no
13619 archive_cmds_need_lc_CXX=yes
13621 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13623 cat conftest.err 1>&5
13626 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13627 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13636 library_names_spec=
13637 libname_spec='lib$name'
13641 postuninstall_cmds=
13645 shlibpath_overrides_runpath=unknown
13647 dynamic_linker="$host_os ld.so"
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649 if test "$GCC" = yes; then
13650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13652 # if the path contains ";" then we assume it to be the separator
13653 # otherwise default to the standard path separator (i.e. ":") - it is
13654 # assumed that no part of a normal pathname contains ";" but that should
13655 # okay in the real world where ";" in dirpaths is itself problematic.
13656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13663 need_lib_prefix=unknown
13664 hardcode_into_libs=no
13666 # when you set need_version to no, make sure it does not cause -set_version
13667 # flags to be left without arguments
13668 need_version=unknown
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13674 shlibpath_var=LIBPATH
13676 # AIX 3 has no versioning support, so we append a major version to the name.
13677 soname_spec='${libname}${release}${shared_ext}$major'
13684 hardcode_into_libs=yes
13685 if test "$host_cpu" = ia64; then
13686 # AIX 5 supports IA64
13687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13688 shlibpath_var=LD_LIBRARY_PATH
13690 # With GCC up to 2.95.x, collect2 would create an import file
13691 # for dependence libraries. The import file would start with
13692 # the line `#! .'. This would cause the generated library to
13693 # depend on `.', always an invalid library. This was fixed in
13694 # development snapshots of GCC prior to 3.0.
13696 aix4 | aix4.[01] | aix4.[01].*)
13697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13702 can_build_shared=no
13706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13707 # soname into executable. Probably we can add versioning support to
13708 # collect2, so additional links can be useful in future.
13709 if test "$aix_use_runtimelinking" = yes; then
13710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13711 # instead of lib<name>.a to let people know that these are not
13712 # typical AIX shared libraries.
13713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13715 # We preserve .a as extension for shared libraries through AIX4.2
13716 # and later when we are not doing run time linking.
13717 library_names_spec='${libname}${release}.a $libname.a'
13718 soname_spec='${libname}${release}${shared_ext}$major'
13720 shlibpath_var=LIBPATH
13725 library_names_spec='$libname.ixlibrary $libname.a'
13726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13727 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'
13731 library_names_spec='${libname}${shared_ext}'
13732 dynamic_linker="$host_os ld.so"
13733 shlibpath_var=LIBRARY_PATH
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13745 # the default ld.so.conf also contains /usr/contrib/lib and
13746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13747 # libtool to hard-code these into programs
13750 cygwin* | mingw* | pw32*)
13751 version_type=windows
13756 case $GCC,$host_os in
13757 yes,cygwin* | yes,mingw* | yes,pw32*)
13758 library_names_spec='$libname.dll.a'
13759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13760 postinstall_cmds='base_file=`basename \${file}`~
13761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13762 dldir=$destdir/`dirname \$dlpath`~
13763 test -d \$dldir || mkdir -p \$dldir~
13764 $install_prog $dir/$dlname \$dldir/$dlname~
13765 chmod a+x \$dldir/$dlname'
13766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13767 dlpath=$dir/\$dldll~
13769 shlibpath_overrides_runpath=yes
13773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13774 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13775 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13778 # MinGW DLLs use traditional 'lib' prefix
13779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13781 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13782 # It is most probably a Windows format PATH printed by
13783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13784 # path with ; separators, and with drive letters. We can handle the
13785 # drive letters (cygwin fileutils understands them), so leave them,
13786 # especially as we might pass files found there to a mingw objdump,
13787 # which wouldn't understand a cygwinified path. Ahh.
13788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13794 # pw32 DLLs use 'pw' prefix rather than 'lib'
13795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13804 dynamic_linker='Win32 ld.exe'
13805 # FIXME: first we should search . and the directory the executable is in
13809 darwin* | rhapsody*)
13810 dynamic_linker="$host_os dyld"
13811 version_type=darwin
13814 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13815 soname_spec='${libname}${release}${major}$shared_ext'
13816 shlibpath_overrides_runpath=yes
13817 shlibpath_var=DYLD_LIBRARY_PATH
13818 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13820 if test "$GCC" = yes; then
13821 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"`
13823 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13833 soname_spec='${libname}${release}${shared_ext}$major'
13834 shlibpath_var=LD_LIBRARY_PATH
13841 freebsd* | dragonfly*)
13842 # DragonFly does not have aout. When/if they implement a new
13843 # versioning mechanism, adjust this.
13844 if test -x /usr/bin/objformat; then
13845 objformat=`/usr/bin/objformat`
13848 freebsd[123]*) objformat=aout ;;
13849 *) objformat=elf ;;
13852 version_type=freebsd-$objformat
13853 case $version_type in
13855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13864 shlibpath_var=LD_LIBRARY_PATH
13867 shlibpath_overrides_runpath=yes
13869 freebsd3.[01]* | freebsdelf3.[01]*)
13870 shlibpath_overrides_runpath=yes
13871 hardcode_into_libs=yes
13873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13875 shlibpath_overrides_runpath=no
13876 hardcode_into_libs=yes
13878 freebsd*) # from 4.6 on
13879 shlibpath_overrides_runpath=yes
13880 hardcode_into_libs=yes
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 hardcode_into_libs=yes
13895 hpux9* | hpux10* | hpux11*)
13896 # Give a soname corresponding to the major version so that dld.sl refuses to
13897 # link against other versions.
13904 hardcode_into_libs=yes
13905 dynamic_linker="$host_os dld.so"
13906 shlibpath_var=LD_LIBRARY_PATH
13907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 if test "X$HPUX_IA64_MODE" = X32; then
13911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13919 hardcode_into_libs=yes
13920 dynamic_linker="$host_os dld.sl"
13921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13930 dynamic_linker="$host_os dld.sl"
13931 shlibpath_var=SHLIB_PATH
13932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13937 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13938 postinstall_cmds='chmod 555 $lib'
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13948 shlibpath_var=LD_LIBRARY_PATH
13949 shlibpath_overrides_runpath=no
13950 hardcode_into_libs=yes
13953 irix5* | irix6* | nonstopux*)
13955 nonstopux*) version_type=nonstopux ;;
13957 if test "$lt_cv_prog_gnu_ld" = yes; then
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13968 irix5* | nonstopux*)
13969 libsuff= shlibsuff=
13972 case $LD in # libtool.m4 will add one of these switches to LD
13973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13974 libsuff= shlibsuff= libmagic=32-bit;;
13975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13976 libsuff=32 shlibsuff=N32 libmagic=N32;;
13977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13979 *) libsuff= shlibsuff= libmagic=never-match;;
13983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13984 shlibpath_overrides_runpath=no
13985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13987 hardcode_into_libs=yes
13990 # No shared lib support for Linux oldld, aout, or coff.
13991 linux*oldld* | linux*aout* | linux*coff*)
13995 # This must be Linux ELF.
13996 linux* | k*bsd*-gnu)
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14003 shlibpath_var=LD_LIBRARY_PATH
14004 shlibpath_overrides_runpath=no
14005 # This implies no fast_install, which is unacceptable.
14006 # Some rework will be needed to allow for fast_install
14007 # before this can be enabled.
14008 hardcode_into_libs=yes
14010 # Append ld.so.conf contents to the search path
14011 if test -f /etc/ld.so.conf; then
14012 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' ' '`
14013 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14016 # We used to test for /lib/ld.so.1 and disable shared libraries on
14017 # powerpc, because MkLinux only supported shared libraries with the
14018 # GNU dynamic linker. Since this was broken with cross compilers,
14019 # most powerpc-linux boxes support dynamic linking these days and
14020 # people can always --disable-shared, the test was removed, and we
14021 # assume the GNU/Linux dynamic linker is in use.
14022 dynamic_linker='GNU/Linux ld.so'
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14030 soname_spec='${libname}${release}${shared_ext}$major'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=no
14033 hardcode_into_libs=yes
14034 dynamic_linker='NetBSD ld.elf_so'
14041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14044 dynamic_linker='NetBSD (a.out) ld.so'
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 dynamic_linker='NetBSD ld.elf_so'
14050 shlibpath_var=LD_LIBRARY_PATH
14051 shlibpath_overrides_runpath=yes
14052 hardcode_into_libs=yes
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 shlibpath_overrides_runpath=yes
14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 shlibpath_var=LD_LIBRARY_PATH
14069 shlibpath_overrides_runpath=yes
14074 sys_lib_dlsearch_path_spec="/usr/lib"
14076 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14078 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14079 *) need_version=no ;;
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14086 openbsd2.[89] | openbsd2.[89].*)
14087 shlibpath_overrides_runpath=no
14090 shlibpath_overrides_runpath=yes
14094 shlibpath_overrides_runpath=yes
14099 libname_spec='$name'
14102 library_names_spec='$libname${shared_ext} $libname.a'
14103 dynamic_linker='OS/2 ld.exe'
14104 shlibpath_var=LIBPATH
14107 osf3* | osf4* | osf5*)
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14115 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14126 hardcode_into_libs=yes
14127 # ldd complains unless libraries are executable
14128 postinstall_cmds='chmod +x $lib'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 shlibpath_overrides_runpath=yes
14137 if test "$with_gnu_ld" = yes; then
14145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 shlibpath_var=LD_LIBRARY_PATH
14148 case $host_vendor in
14150 shlibpath_overrides_runpath=no
14152 export_dynamic_flag_spec='${wl}-Blargedynsym'
14153 runpath_var=LD_RUN_PATH
14161 shlibpath_overrides_runpath=no
14162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14168 if test -d /usr/nec ;then
14170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14171 soname_spec='$libname${shared_ext}.$major'
14172 shlibpath_var=LD_LIBRARY_PATH
14176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14177 version_type=freebsd-elf
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 hardcode_into_libs=yes
14184 if test "$with_gnu_ld" = yes; then
14185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14186 shlibpath_overrides_runpath=no
14188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14189 shlibpath_overrides_runpath=yes
14192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14196 sys_lib_dlsearch_path_spec='/usr/lib'
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
14210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14211 echo "${ECHO_T}$dynamic_linker" >&6; }
14212 test "$dynamic_linker" = no && can_build_shared=no
14214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14215 if test "$GCC" = yes; then
14216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14221 hardcode_action_CXX=
14222 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14223 test -n "$runpath_var_CXX" || \
14224 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14226 # We can hardcode non-existant directories.
14227 if test "$hardcode_direct_CXX" != no &&
14228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229 # have to relink, otherwise we might link with an installed library
14230 # when we should be linking with a yet-to-be-installed one
14231 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14232 test "$hardcode_minus_L_CXX" != no; then
14233 # Linking always hardcodes the temporary library directory.
14234 hardcode_action_CXX=relink
14236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237 hardcode_action_CXX=immediate
14240 # We cannot hardcode anything, or else we can only hardcode existing
14242 hardcode_action_CXX=unsupported
14244 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14245 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14247 if test "$hardcode_action_CXX" = relink; then
14248 # Fast installation is not supported
14249 enable_fast_install=no
14250 elif test "$shlibpath_overrides_runpath" = yes ||
14251 test "$enable_shared" = no; then
14252 # Fast installation is not necessary
14253 enable_fast_install=needless
14257 # The else clause should only fire when bootstrapping the
14258 # libtool distribution, otherwise you forgot to ship ltmain.sh
14259 # with your package, and you will get complaints that there are
14260 # no rules to generate ltmain.sh.
14261 if test -f "$ltmain"; then
14262 # See if we are running on zsh, and set the options which allow our commands through
14263 # without removal of \ escapes.
14264 if test -n "${ZSH_VERSION+set}" ; then
14265 setopt NO_GLOB_SUBST
14267 # Now quote all the things that may contain metacharacters while being
14268 # careful not to overquote the AC_SUBSTed values. We take copies of the
14269 # variables and quote the copies for generation of the libtool script.
14270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14272 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14273 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14274 deplibs_check_method reload_flag reload_cmds need_locks \
14275 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14276 lt_cv_sys_global_symbol_to_c_name_address \
14277 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14278 old_postinstall_cmds old_postuninstall_cmds \
14282 lt_prog_compiler_wl_CXX \
14283 lt_prog_compiler_pic_CXX \
14284 lt_prog_compiler_static_CXX \
14285 lt_prog_compiler_no_builtin_flag_CXX \
14286 export_dynamic_flag_spec_CXX \
14287 thread_safe_flag_spec_CXX \
14288 whole_archive_flag_spec_CXX \
14289 enable_shared_with_static_runtimes_CXX \
14290 old_archive_cmds_CXX \
14291 old_archive_from_new_cmds_CXX \
14292 predep_objects_CXX \
14293 postdep_objects_CXX \
14296 compiler_lib_search_path_CXX \
14298 archive_expsym_cmds_CXX \
14299 postinstall_cmds_CXX \
14300 postuninstall_cmds_CXX \
14301 old_archive_from_expsyms_cmds_CXX \
14302 allow_undefined_flag_CXX \
14303 no_undefined_flag_CXX \
14304 export_symbols_cmds_CXX \
14305 hardcode_libdir_flag_spec_CXX \
14306 hardcode_libdir_flag_spec_ld_CXX \
14307 hardcode_libdir_separator_CXX \
14308 hardcode_automatic_CXX \
14310 module_expsym_cmds_CXX \
14311 lt_cv_prog_compiler_c_o_CXX \
14312 exclude_expsyms_CXX \
14313 include_expsyms_CXX; do
14316 old_archive_cmds_CXX | \
14317 old_archive_from_new_cmds_CXX | \
14318 archive_cmds_CXX | \
14319 archive_expsym_cmds_CXX | \
14320 module_cmds_CXX | \
14321 module_expsym_cmds_CXX | \
14322 old_archive_from_expsyms_cmds_CXX | \
14323 export_symbols_cmds_CXX | \
14324 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14325 postinstall_cmds | postuninstall_cmds | \
14326 old_postinstall_cmds | old_postuninstall_cmds | \
14327 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14328 # Double-quote double-evaled strings.
14329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14338 *'\$0 --fallback-echo"')
14339 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14345 cat <<__EOF__ >> "$cfgfile"
14346 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14350 # Shell to use when invoking shell scripts.
14353 # Whether or not to build shared libraries.
14354 build_libtool_libs=$enable_shared
14356 # Whether or not to build static libraries.
14357 build_old_libs=$enable_static
14359 # Whether or not to add -lc for building shared libraries.
14360 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14362 # Whether or not to disallow shared libs when runtime libs are static
14363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14365 # Whether or not to optimize for fast installation.
14366 fast_install=$enable_fast_install
14369 host_alias=$host_alias
14373 # The build system.
14374 build_alias=$build_alias
14378 # An echo program that does not interpret backslashes.
14383 AR_FLAGS=$lt_AR_FLAGS
14388 # LTCC compiler flags.
14389 LTCFLAGS=$lt_LTCFLAGS
14391 # A language-specific compiler.
14392 CC=$lt_compiler_CXX
14394 # Is the compiler the GNU C compiler?
14400 # The linker used to build libraries.
14403 # Whether we need hard or soft links.
14406 # A BSD-compatible nm program.
14409 # A symbol stripping program
14412 # Used to examine libraries when file_magic_cmd begins "file"
14413 MAGIC_CMD=$MAGIC_CMD
14415 # Used on cygwin: DLL creation program.
14418 # Used on cygwin: object dumper.
14421 # Used on cygwin: assembler.
14424 # The name of the directory that contains temporary libtool files.
14427 # How to create reloadable object files.
14428 reload_flag=$lt_reload_flag
14429 reload_cmds=$lt_reload_cmds
14431 # How to pass a linker flag through the compiler.
14432 wl=$lt_lt_prog_compiler_wl_CXX
14434 # Object file suffix (normally "o").
14435 objext="$ac_objext"
14437 # Old archive suffix (normally "a").
14440 # Shared library suffix (normally ".so").
14441 shrext_cmds='$shrext_cmds'
14443 # Executable file suffix (normally "").
14446 # Additional compiler flags for building library objects.
14447 pic_flag=$lt_lt_prog_compiler_pic_CXX
14450 # What is the maximum length of a command?
14451 max_cmd_len=$lt_cv_sys_max_cmd_len
14453 # Does compiler simultaneously support -c and -o options?
14454 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14456 # Must we lock files when doing compilation?
14457 need_locks=$lt_need_locks
14459 # Do we need the lib prefix for modules?
14460 need_lib_prefix=$need_lib_prefix
14462 # Do we need a version for libraries?
14463 need_version=$need_version
14465 # Whether dlopen is supported.
14466 dlopen_support=$enable_dlopen
14468 # Whether dlopen of programs is supported.
14469 dlopen_self=$enable_dlopen_self
14471 # Whether dlopen of statically linked programs is supported.
14472 dlopen_self_static=$enable_dlopen_self_static
14474 # Compiler flag to prevent dynamic linking.
14475 link_static_flag=$lt_lt_prog_compiler_static_CXX
14477 # Compiler flag to turn off builtin functions.
14478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14480 # Compiler flag to allow reflexive dlopens.
14481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14483 # Compiler flag to generate shared objects directly from archives.
14484 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14486 # Compiler flag to generate thread-safe objects.
14487 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14489 # Library versioning type.
14490 version_type=$version_type
14492 # Format of library name prefix.
14493 libname_spec=$lt_libname_spec
14495 # List of archive names. First name is the real one, the rest are links.
14496 # The last name is the one that the linker finds with -lNAME.
14497 library_names_spec=$lt_library_names_spec
14499 # The coded name of the library, if different from the real name.
14500 soname_spec=$lt_soname_spec
14502 # Commands used to build and install an old-style archive.
14504 old_archive_cmds=$lt_old_archive_cmds_CXX
14505 old_postinstall_cmds=$lt_old_postinstall_cmds
14506 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14508 # Create an old-style archive from a shared archive.
14509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14511 # Create a temporary old-style archive to link instead of a shared archive.
14512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14514 # Commands used to build and install a shared archive.
14515 archive_cmds=$lt_archive_cmds_CXX
14516 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14517 postinstall_cmds=$lt_postinstall_cmds
14518 postuninstall_cmds=$lt_postuninstall_cmds
14520 # Commands used to build a loadable module (assumed same as above if empty)
14521 module_cmds=$lt_module_cmds_CXX
14522 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14524 # Commands to strip libraries.
14525 old_striplib=$lt_old_striplib
14526 striplib=$lt_striplib
14528 # Dependencies to place before the objects being linked to create a
14530 predep_objects=$lt_predep_objects_CXX
14532 # Dependencies to place after the objects being linked to create a
14534 postdep_objects=$lt_postdep_objects_CXX
14536 # Dependencies to place before the objects being linked to create a
14538 predeps=$lt_predeps_CXX
14540 # Dependencies to place after the objects being linked to create a
14542 postdeps=$lt_postdeps_CXX
14544 # The library search path used internally by the compiler when linking
14545 # a shared library.
14546 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14548 # Method to check whether dependent libraries are shared objects.
14549 deplibs_check_method=$lt_deplibs_check_method
14551 # Command to use when deplibs_check_method == file_magic.
14552 file_magic_cmd=$lt_file_magic_cmd
14554 # Flag that allows shared libraries with undefined symbols to be built.
14555 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14557 # Flag that forces no undefined symbols.
14558 no_undefined_flag=$lt_no_undefined_flag_CXX
14560 # Commands used to finish a libtool library installation in a directory.
14561 finish_cmds=$lt_finish_cmds
14563 # Same as above, but a single script fragment to be evaled but not shown.
14564 finish_eval=$lt_finish_eval
14566 # Take the output of nm and produce a listing of raw symbols and C names.
14567 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14569 # Transform the output of nm in a proper C declaration
14570 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14572 # Transform the output of nm in a C name address pair
14573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14575 # This is the shared library runtime path variable.
14576 runpath_var=$runpath_var
14578 # This is the shared library path variable.
14579 shlibpath_var=$shlibpath_var
14581 # Is shlibpath searched before the hard-coded library search path?
14582 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14584 # How to hardcode a shared library path into an executable.
14585 hardcode_action=$hardcode_action_CXX
14587 # Whether we should hardcode library paths into libraries.
14588 hardcode_into_libs=$hardcode_into_libs
14590 # Flag to hardcode \$libdir into a binary during linking.
14591 # This must work even if \$libdir does not exist.
14592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14594 # If ld is used when linking, flag to hardcode \$libdir into
14595 # a binary during linking. This must work even if \$libdir does
14597 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14599 # Whether we need a single -rpath flag with a separated argument.
14600 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14602 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14603 # resulting binary.
14604 hardcode_direct=$hardcode_direct_CXX
14606 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14607 # resulting binary.
14608 hardcode_minus_L=$hardcode_minus_L_CXX
14610 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14611 # the resulting binary.
14612 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14614 # Set to yes if building a shared library automatically hardcodes DIR into the library
14615 # and all subsequent libraries and executables linked against it.
14616 hardcode_automatic=$hardcode_automatic_CXX
14618 # Variables whose values should be saved in libtool wrapper scripts and
14619 # restored at relink time.
14620 variables_saved_for_relink="$variables_saved_for_relink"
14622 # Whether libtool must link a program against all its dependency libraries.
14623 link_all_deplibs=$link_all_deplibs_CXX
14625 # Compile-time system search path for libraries
14626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14628 # Run-time system search path for libraries
14629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14631 # Fix the shell variable \$srcfile for the compiler.
14632 fix_srcfile_path="$fix_srcfile_path_CXX"
14634 # Set to yes if exported symbols are required.
14635 always_export_symbols=$always_export_symbols_CXX
14637 # The commands to list exported symbols.
14638 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14640 # The commands to extract the exported symbol list from a shared archive.
14641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14643 # Symbols that should not be listed in the preloaded symbols.
14644 exclude_expsyms=$lt_exclude_expsyms_CXX
14646 # Symbols that must always be exported.
14647 include_expsyms=$lt_include_expsyms_CXX
14649 # ### END LIBTOOL TAG CONFIG: $tagname
14655 # If there is no Makefile yet, we rely on a make rule to execute
14656 # `config.status --recheck' to rerun these tests and create the
14657 # libtool script then.
14658 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14659 if test -f "$ltmain_in"; then
14660 test -f Makefile && make "$ltmain"
14666 ac_cpp='$CPP $CPPFLAGS'
14667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14675 with_gnu_ldcxx=$with_gnu_ld
14676 with_gnu_ld=$lt_save_with_gnu_ld
14677 lt_cv_path_LDCXX=$lt_cv_path_LD
14678 lt_cv_path_LD=$lt_save_path_LD
14679 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14680 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14688 if test -n "$F77" && test "X$F77" != "Xno"; then
14691 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14692 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14696 archive_cmds_need_lc_F77=no
14697 allow_undefined_flag_F77=
14698 always_export_symbols_F77=no
14699 archive_expsym_cmds_F77=
14700 export_dynamic_flag_spec_F77=
14701 hardcode_direct_F77=no
14702 hardcode_libdir_flag_spec_F77=
14703 hardcode_libdir_flag_spec_ld_F77=
14704 hardcode_libdir_separator_F77=
14705 hardcode_minus_L_F77=no
14706 hardcode_automatic_F77=no
14708 module_expsym_cmds_F77=
14709 link_all_deplibs_F77=unknown
14710 old_archive_cmds_F77=$old_archive_cmds
14711 no_undefined_flag_F77=
14712 whole_archive_flag_spec_F77=
14713 enable_shared_with_static_runtimes_F77=no
14715 # Source file extension for f77 test sources.
14718 # Object file extension for compiled f77 test sources.
14722 # Code to be used in simple compile tests
14723 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14725 # Code to be used in simple link tests
14726 lt_simple_link_test_code=" program t\n end\n"
14728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14730 # If no C compiler was specified, use CC.
14733 # If no C compiler flags were specified, use CFLAGS.
14734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14736 # Allow CC to be a program name with arguments.
14740 # save warnings/boilerplate of simple test code
14741 ac_outfile=conftest.$ac_objext
14742 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14744 _lt_compiler_boilerplate=`cat conftest.err`
14747 ac_outfile=conftest.$ac_objext
14748 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14750 _lt_linker_boilerplate=`cat conftest.err`
14754 # Allow CC to be a program name with arguments.
14759 for cc_temp in $compiler""; do
14761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14770 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14771 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14772 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14773 echo "${ECHO_T}$can_build_shared" >&6; }
14775 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14776 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14777 test "$can_build_shared" = "no" && enable_shared=no
14779 # On AIX, shared libraries and static libraries use the same namespace, and
14780 # are all built from PIC.
14783 test "$enable_shared" = yes && enable_static=no
14784 if test -n "$RANLIB"; then
14785 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14786 postinstall_cmds='$RANLIB $lib'
14790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14791 test "$enable_shared" = yes && enable_static=no
14795 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14796 echo "${ECHO_T}$enable_shared" >&6; }
14798 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14799 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14800 # Make sure either enable_shared or enable_static is yes.
14801 test "$enable_shared" = yes || enable_static=yes
14802 { echo "$as_me:$LINENO: result: $enable_static" >&5
14803 echo "${ECHO_T}$enable_static" >&6; }
14808 lt_prog_compiler_wl_F77=
14809 lt_prog_compiler_pic_F77=
14810 lt_prog_compiler_static_F77=
14812 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14815 if test "$GCC" = yes; then
14816 lt_prog_compiler_wl_F77='-Wl,'
14817 lt_prog_compiler_static_F77='-static'
14821 # All AIX code is PIC.
14822 if test "$host_cpu" = ia64; then
14823 # AIX 5 now supports IA64 processor
14824 lt_prog_compiler_static_F77='-Bstatic'
14829 # FIXME: we need at least 68020 code to build shared libraries, but
14830 # adding the `-m68020' flag to GCC prevents building anything better,
14832 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14835 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836 # PIC is the default for these OSes.
14839 mingw* | pw32* | os2*)
14840 # This hack is so that the source file can tell whether it is being
14841 # built for inclusion in a dll (and should export symbols for example).
14842 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14845 darwin* | rhapsody*)
14846 # PIC is the default on this platform
14847 # Common symbols not allowed in MH_DYLIB files
14848 lt_prog_compiler_pic_F77='-fno-common'
14852 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14853 # Instead, we relocate shared libraries at runtime.
14857 # Just because we use GCC doesn't mean we suddenly get shared libraries
14858 # on systems that don't support them.
14859 lt_prog_compiler_can_build_shared_F77=no
14864 if test -d /usr/nec; then
14865 lt_prog_compiler_pic_F77=-Kconform_pic
14870 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14871 # not for PA HP-UX.
14877 lt_prog_compiler_pic_F77='-fPIC'
14883 lt_prog_compiler_pic_F77='-fPIC'
14887 # PORTME Check for flag to pass linker flags through the system compiler.
14890 lt_prog_compiler_wl_F77='-Wl,'
14891 if test "$host_cpu" = ia64; then
14892 # AIX 5 now supports IA64 processor
14893 lt_prog_compiler_static_F77='-Bstatic'
14895 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14899 # PIC is the default on this platform
14900 # Common symbols not allowed in MH_DYLIB files
14901 case $cc_basename in
14903 lt_prog_compiler_pic_F77='-qnocommon'
14904 lt_prog_compiler_wl_F77='-Wl,'
14909 mingw* | pw32* | os2*)
14910 # This hack is so that the source file can tell whether it is being
14911 # built for inclusion in a dll (and should export symbols for example).
14912 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14915 hpux9* | hpux10* | hpux11*)
14916 lt_prog_compiler_wl_F77='-Wl,'
14917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14918 # not for PA HP-UX.
14924 lt_prog_compiler_pic_F77='+Z'
14927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14928 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14931 irix5* | irix6* | nonstopux*)
14932 lt_prog_compiler_wl_F77='-Wl,'
14933 # PIC (with -KPIC) is the default.
14934 lt_prog_compiler_static_F77='-non_shared'
14938 lt_prog_compiler_pic_F77='-KPIC'
14939 lt_prog_compiler_static_F77='-Bstatic'
14942 linux* | k*bsd*-gnu)
14943 case $cc_basename in
14945 lt_prog_compiler_wl_F77='-Wl,'
14946 lt_prog_compiler_pic_F77='-KPIC'
14947 lt_prog_compiler_static_F77='-static'
14949 pgcc* | pgf77* | pgf90* | pgf95*)
14950 # Portland Group compilers (*not* the Pentium gcc compiler,
14951 # which looks to be a dead project)
14952 lt_prog_compiler_wl_F77='-Wl,'
14953 lt_prog_compiler_pic_F77='-fpic'
14954 lt_prog_compiler_static_F77='-Bstatic'
14957 lt_prog_compiler_wl_F77='-Wl,'
14958 # All Alpha code is PIC.
14959 lt_prog_compiler_static_F77='-non_shared'
14964 osf3* | osf4* | osf5*)
14965 lt_prog_compiler_wl_F77='-Wl,'
14966 # All OSF/1 code is PIC.
14967 lt_prog_compiler_static_F77='-non_shared'
14971 lt_prog_compiler_pic_F77='-KPIC'
14972 lt_prog_compiler_static_F77='-Bstatic'
14973 case $cc_basename in
14974 f77* | f90* | f95*)
14975 lt_prog_compiler_wl_F77='-Qoption ld ';;
14977 lt_prog_compiler_wl_F77='-Wl,';;
14982 lt_prog_compiler_wl_F77='-Qoption ld '
14983 lt_prog_compiler_pic_F77='-PIC'
14984 lt_prog_compiler_static_F77='-Bstatic'
14987 sysv4 | sysv4.2uw2* | sysv4.3*)
14988 lt_prog_compiler_wl_F77='-Wl,'
14989 lt_prog_compiler_pic_F77='-KPIC'
14990 lt_prog_compiler_static_F77='-Bstatic'
14994 if test -d /usr/nec ;then
14995 lt_prog_compiler_pic_F77='-Kconform_pic'
14996 lt_prog_compiler_static_F77='-Bstatic'
15000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15001 lt_prog_compiler_wl_F77='-Wl,'
15002 lt_prog_compiler_pic_F77='-KPIC'
15003 lt_prog_compiler_static_F77='-Bstatic'
15007 lt_prog_compiler_wl_F77='-Wl,'
15008 lt_prog_compiler_can_build_shared_F77=no
15012 lt_prog_compiler_pic_F77='-pic'
15013 lt_prog_compiler_static_F77='-Bstatic'
15017 lt_prog_compiler_can_build_shared_F77=no
15022 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15023 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15026 # Check to make sure the PIC flag actually works.
15028 if test -n "$lt_prog_compiler_pic_F77"; then
15030 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15031 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15032 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 lt_prog_compiler_pic_works_F77=no
15036 ac_outfile=conftest.$ac_objext
15037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15038 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15039 # Insert the option either (1) after the last *FLAGS variable, or
15040 # (2) before a word containing "conftest.", or (3) at the end.
15041 # Note that $ac_compile itself does not contain backslashes and begins
15042 # with a dollar sign (not a hyphen), so the echo should work correctly.
15043 # The option is referenced via a variable to avoid confusing sed.
15044 lt_compile=`echo "$ac_compile" | $SED \
15045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15047 -e 's:$: $lt_compiler_flag:'`
15048 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15049 (eval "$lt_compile" 2>conftest.err)
15051 cat conftest.err >&5
15052 echo "$as_me:__oline__: \$? = $ac_status" >&5
15053 if (exit $ac_status) && test -s "$ac_outfile"; then
15054 # The compiler can only warn and ignore the option if not recognized
15055 # So say no if there are warnings other than the usual output.
15056 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15059 lt_prog_compiler_pic_works_F77=yes
15065 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15066 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15068 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15069 case $lt_prog_compiler_pic_F77 in
15071 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15074 lt_prog_compiler_pic_F77=
15075 lt_prog_compiler_can_build_shared_F77=no
15080 # For platforms which do not support PIC, -DPIC is meaningless:
15082 lt_prog_compiler_pic_F77=
15085 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15090 # Check to make sure the static flag actually works.
15092 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15093 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15094 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15095 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 lt_prog_compiler_static_works_F77=no
15099 save_LDFLAGS="$LDFLAGS"
15100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15101 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15103 # The linker can only warn and ignore the option if not recognized
15104 # So say no if there are warnings
15105 if test -s conftest.err; then
15106 # Append any errors to the config.log.
15107 cat conftest.err 1>&5
15108 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15110 if diff conftest.exp conftest.er2 >/dev/null; then
15111 lt_prog_compiler_static_works_F77=yes
15114 lt_prog_compiler_static_works_F77=yes
15118 LDFLAGS="$save_LDFLAGS"
15121 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15122 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15124 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15127 lt_prog_compiler_static_F77=
15131 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15132 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15133 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 lt_cv_prog_compiler_c_o_F77=no
15137 $rm -r conftest 2>/dev/null
15141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15143 lt_compiler_flag="-o out/conftest2.$ac_objext"
15144 # Insert the option either (1) after the last *FLAGS variable, or
15145 # (2) before a word containing "conftest.", or (3) at the end.
15146 # Note that $ac_compile itself does not contain backslashes and begins
15147 # with a dollar sign (not a hyphen), so the echo should work correctly.
15148 lt_compile=`echo "$ac_compile" | $SED \
15149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15151 -e 's:$: $lt_compiler_flag:'`
15152 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15153 (eval "$lt_compile" 2>out/conftest.err)
15155 cat out/conftest.err >&5
15156 echo "$as_me:__oline__: \$? = $ac_status" >&5
15157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15159 # The compiler can only warn and ignore the option if not recognized
15160 # So say no if there are warnings
15161 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15164 lt_cv_prog_compiler_c_o_F77=yes
15169 # SGI C++ compiler will create directory out/ii_files/ for
15170 # template instantiation
15171 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15172 $rm out/* && rmdir out
15178 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15179 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15182 hard_links="nottested"
15183 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15184 # do not overwrite the value of need_locks provided by the user
15185 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15186 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15191 ln conftest.a conftest.b 2>&5 || hard_links=no
15192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15193 { echo "$as_me:$LINENO: result: $hard_links" >&5
15194 echo "${ECHO_T}$hard_links" >&6; }
15195 if test "$hard_links" = no; then
15196 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15197 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15204 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15205 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15208 allow_undefined_flag_F77=
15209 enable_shared_with_static_runtimes_F77=no
15211 archive_expsym_cmds_F77=
15212 old_archive_From_new_cmds_F77=
15213 old_archive_from_expsyms_cmds_F77=
15214 export_dynamic_flag_spec_F77=
15215 whole_archive_flag_spec_F77=
15216 thread_safe_flag_spec_F77=
15217 hardcode_libdir_flag_spec_F77=
15218 hardcode_libdir_flag_spec_ld_F77=
15219 hardcode_libdir_separator_F77=
15220 hardcode_direct_F77=no
15221 hardcode_minus_L_F77=no
15222 hardcode_shlibpath_var_F77=unsupported
15223 link_all_deplibs_F77=unknown
15224 hardcode_automatic_F77=no
15226 module_expsym_cmds_F77=
15227 always_export_symbols_F77=no
15228 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15229 # include_expsyms should be a list of space-separated symbols to be *always*
15230 # included in the symbol list
15231 include_expsyms_F77=
15232 # exclude_expsyms can be an extended regexp of symbols to exclude
15233 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15234 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15235 # as well as any symbol that contains `d'.
15236 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15237 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15238 # platforms (ab)use it in PIC code, but their linkers get confused if
15239 # the symbol is explicitly referenced. Since portable code cannot
15240 # rely on this symbol name, it's probably fine to never include it in
15241 # preloaded symbol tables.
15242 extract_expsyms_cmds=
15243 # Just being paranoid about ensuring that cc_basename is set.
15244 for cc_temp in $compiler""; do
15246 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15247 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15252 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15255 cygwin* | mingw* | pw32*)
15256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15257 # When not using gcc, we currently assume that we are using
15258 # Microsoft Visual C++.
15259 if test "$GCC" != yes; then
15264 # we just hope/assume this is gcc and not c89 (= MSVC++)
15273 if test "$with_gnu_ld" = yes; then
15274 # If archive_cmds runs LD, not CC, wlarc should be empty
15277 # Set some defaults for GNU ld with shared library support. These
15278 # are reset later if shared libraries are not supported. Putting them
15279 # here allows them to be overridden if necessary.
15280 runpath_var=LD_RUN_PATH
15281 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15282 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15283 # ancient GNU ld didn't support --whole-archive et. al.
15284 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15285 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15287 whole_archive_flag_spec_F77=
15289 supports_anon_versioning=no
15290 case `$LD -v 2>/dev/null` in
15291 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15292 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15293 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15294 *\ 2.11.*) ;; # other 2.11 versions
15295 *) supports_anon_versioning=yes ;;
15298 # See if GNU ld supports shared libraries.
15300 aix3* | aix4* | aix5*)
15301 # On AIX/PPC, the GNU linker is very broken
15302 if test "$host_cpu" != ia64; then
15306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15307 *** to be unable to reliably create shared libraries on AIX.
15308 *** Therefore, libtool is disabling shared libraries support. If you
15309 *** really care for shared libraries, you may want to modify your PATH
15310 *** so that a non-GNU linker is found, and then restart.
15317 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)'
15318 hardcode_libdir_flag_spec_F77='-L$libdir'
15319 hardcode_minus_L_F77=yes
15321 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15322 # that the semantics of dynamic libraries on AmigaOS, at least up
15323 # to version 4, is to share data among multiple programs linked
15324 # with the same dynamic library. Since this doesn't match the
15325 # behavior of shared libraries on other platforms, we can't use
15331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15332 allow_undefined_flag_F77=unsupported
15333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15334 # support --undefined. This deserves some investigation. FIXME
15335 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15341 cygwin* | mingw* | pw32*)
15342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15343 # as there is no search path for DLLs.
15344 hardcode_libdir_flag_spec_F77='-L$libdir'
15345 allow_undefined_flag_F77=unsupported
15346 always_export_symbols_F77=no
15347 enable_shared_with_static_runtimes_F77=yes
15348 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15350 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15351 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15352 # If the export-symbols file already is a .def file (1st line
15353 # is EXPORTS), use it as is; otherwise, prepend...
15354 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15355 cp $export_symbols $output_objdir/$soname.def;
15357 echo EXPORTS > $output_objdir/$soname.def;
15358 cat $export_symbols >> $output_objdir/$soname.def;
15360 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15367 hardcode_direct_F77=no
15368 hardcode_shlibpath_var_F77=no
15369 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15370 export_dynamic_flag_spec_F77='${wl}-E'
15371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15372 # Instead, shared libraries are loaded at an image base (0x10000000 by
15373 # default) and relocated if they conflict, which is a slow very memory
15374 # consuming and fragmenting process. To avoid this, we pick a random,
15375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15377 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'
15378 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'
15381 linux* | k*bsd*-gnu)
15382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15384 case $cc_basename,$host_cpu in
15385 pgcc*) # Portland Group C compiler
15386 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'
15387 tmp_addflag=' $pic_flag'
15389 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15390 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'
15391 tmp_addflag=' $pic_flag -Mnomain' ;;
15392 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15393 tmp_addflag=' -i_dynamic' ;;
15394 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15395 tmp_addflag=' -i_dynamic -nofor_main' ;;
15396 ifc* | ifort*) # Intel Fortran compiler
15397 tmp_addflag=' -nofor_main' ;;
15399 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15401 if test $supports_anon_versioning = yes; then
15402 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15404 $echo "local: *; };" >> $output_objdir/$libname.ver~
15405 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15407 link_all_deplibs_F77=no
15413 netbsd* | netbsdelf*-gnu)
15414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15415 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15418 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15419 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15424 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15429 *** create shared libraries on Solaris systems. Therefore, libtool
15430 *** is disabling shared libraries support. We urge you to upgrade GNU
15431 *** binutils to release 2.9.1 or newer. Another option is to modify
15432 *** your PATH or compiler configuration so that the native linker is
15433 *** used, and then restart.
15436 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15437 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15438 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15445 case `$LD -v 2>&1` in
15446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15451 *** reliably create shared libraries on SCO systems. Therefore, libtool
15452 *** is disabling shared libraries support. We urge you to upgrade GNU
15453 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15454 *** your PATH or compiler configuration so that the native linker is
15455 *** used, and then restart.
15460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15461 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15462 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15463 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15472 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15474 hardcode_direct_F77=yes
15475 hardcode_shlibpath_var_F77=no
15479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15488 if test "$ld_shlibs_F77" = no; then
15490 hardcode_libdir_flag_spec_F77=
15491 export_dynamic_flag_spec_F77=
15492 whole_archive_flag_spec_F77=
15495 # PORTME fill in a description of your system's linker (not GNU ld)
15498 allow_undefined_flag_F77=unsupported
15499 always_export_symbols_F77=yes
15500 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'
15501 # Note: this linker hardcodes the directories in LIBPATH if there
15502 # are no directories specified by -L.
15503 hardcode_minus_L_F77=yes
15504 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15505 # Neither direct hardcoding nor static linking is supported with a
15507 hardcode_direct_F77=unsupported
15512 if test "$host_cpu" = ia64; then
15513 # On IA64, the linker does run time linking by default, so we don't
15514 # have to do anything special.
15515 aix_use_runtimelinking=no
15516 exp_sym_flag='-Bexport'
15519 # If we're using GNU nm, then we don't want the "-C" option.
15520 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15521 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15522 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'
15524 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'
15526 aix_use_runtimelinking=no
15528 # Test if we are trying to use run time linking or normal
15529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15530 # need to do runtime linking.
15531 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15532 for ld_flag in $LDFLAGS; do
15533 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15534 aix_use_runtimelinking=yes
15541 exp_sym_flag='-bexport'
15542 no_entry_flag='-bnoentry'
15545 # When large executables or shared objects are built, AIX ld can
15546 # have problems creating the table of contents. If linking a library
15547 # or program results in "error TOC overflow" add -mminimal-toc to
15548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15551 archive_cmds_F77=''
15552 hardcode_direct_F77=yes
15553 hardcode_libdir_separator_F77=':'
15554 link_all_deplibs_F77=yes
15556 if test "$GCC" = yes; then
15557 case $host_os in aix4.[012]|aix4.[012].*)
15558 # We only want to do this on AIX 4.2 and lower, the check
15559 # below for broken collect2 doesn't work under 4.3+
15560 collect2name=`${CC} -print-prog-name=collect2`
15561 if test -f "$collect2name" && \
15562 strings "$collect2name" | grep resolve_lib_name >/dev/null
15564 # We have reworked collect2
15565 hardcode_direct_F77=yes
15567 # We have old collect2
15568 hardcode_direct_F77=unsupported
15569 # It fails to find uninstalled libraries when the uninstalled
15570 # path is not listed in the libpath. Setting hardcode_minus_L
15571 # to unsupported forces relinking
15572 hardcode_minus_L_F77=yes
15573 hardcode_libdir_flag_spec_F77='-L$libdir'
15574 hardcode_libdir_separator_F77=
15578 shared_flag='-shared'
15579 if test "$aix_use_runtimelinking" = yes; then
15580 shared_flag="$shared_flag "'${wl}-G'
15584 if test "$host_cpu" = ia64; then
15585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15586 # chokes on -Wl,-G. The following line is correct:
15589 if test "$aix_use_runtimelinking" = yes; then
15590 shared_flag='${wl}-G'
15592 shared_flag='${wl}-bM:SRE'
15597 # It seems that -bexpall does not export symbols beginning with
15598 # underscore (_), so it is better to generate a list of symbols to export.
15599 always_export_symbols_F77=yes
15600 if test "$aix_use_runtimelinking" = yes; then
15601 # Warning - without using the other runtime loading flags (-brtl),
15602 # -berok will link without error, but may produce a broken library.
15603 allow_undefined_flag_F77='-berok'
15604 # Determine the default libpath from the value encoded in an empty executable.
15605 cat >conftest.$ac_ext <<_ACEOF
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && {
15624 test -z "$ac_f77_werror_flag" ||
15625 test ! -s conftest.err
15626 } && test -s conftest$ac_exeext &&
15627 $as_test_x conftest$ac_exeext; then
15629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15631 # Check for a 64-bit object if we didn't find anything.
15632 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; }
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext conftest.$ac_ext
15643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15645 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15646 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"
15648 if test "$host_cpu" = ia64; then
15649 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15650 allow_undefined_flag_F77="-z nodefs"
15651 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"
15653 # Determine the default libpath from the value encoded in an empty executable.
15654 cat >conftest.$ac_ext <<_ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_f77_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest$ac_exeext &&
15676 $as_test_x conftest$ac_exeext; then
15678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15680 # Check for a 64-bit object if we didn't find anything.
15681 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; }
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15691 conftest$ac_exeext conftest.$ac_ext
15692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15694 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15695 # Warning - without using the other run time loading flags,
15696 # -berok will link without error, but may produce a broken library.
15697 no_undefined_flag_F77=' ${wl}-bernotok'
15698 allow_undefined_flag_F77=' ${wl}-berok'
15699 # Exported symbols can be pulled into shared objects from archives
15700 whole_archive_flag_spec_F77='$convenience'
15701 archive_cmds_need_lc_F77=yes
15702 # This is similar to how AIX traditionally builds its shared libraries.
15703 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'
15709 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)'
15710 hardcode_libdir_flag_spec_F77='-L$libdir'
15711 hardcode_minus_L_F77=yes
15712 # see comment about different semantics on the GNU ld section
15717 export_dynamic_flag_spec_F77=-rdynamic
15720 cygwin* | mingw* | pw32*)
15721 # When not using gcc, we currently assume that we are using
15722 # Microsoft Visual C++.
15723 # hardcode_libdir_flag_spec is actually meaningless, as there is
15724 # no search path for DLLs.
15725 hardcode_libdir_flag_spec_F77=' '
15726 allow_undefined_flag_F77=unsupported
15727 # Tell ltmain to make .lib files, not .a files.
15729 # Tell ltmain to make .dll files, not .so files.
15731 # FIXME: Setting linknames here is a bad hack.
15732 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15733 # The linker will automatically build a .lib file if we build a DLL.
15734 old_archive_From_new_cmds_F77='true'
15735 # FIXME: Should let the user specify the lib program.
15736 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15737 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15738 enable_shared_with_static_runtimes_F77=yes
15741 darwin* | rhapsody*)
15743 rhapsody* | darwin1.[012])
15744 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15747 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15748 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15750 case ${MACOSX_DEPLOYMENT_TARGET} in
15752 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15755 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15761 archive_cmds_need_lc_F77=no
15762 hardcode_direct_F77=no
15763 hardcode_automatic_F77=yes
15764 hardcode_shlibpath_var_F77=unsupported
15765 whole_archive_flag_spec_F77=''
15766 link_all_deplibs_F77=yes
15767 if test "$GCC" = yes ; then
15768 output_verbose_link_cmd='echo'
15769 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15770 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15771 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15772 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}'
15773 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}'
15775 case $cc_basename in
15777 output_verbose_link_cmd='echo'
15778 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15779 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15780 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15781 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}'
15782 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}'
15792 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_libdir_flag_spec_F77='-L$libdir'
15794 hardcode_shlibpath_var_F77=no
15801 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15802 # support. Future versions do this automatically, but an explicit c++rt0.o
15803 # does not break anything, and helps significantly (at the cost of a little
15806 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15807 hardcode_libdir_flag_spec_F77='-R$libdir'
15808 hardcode_direct_F77=yes
15809 hardcode_shlibpath_var_F77=no
15812 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15815 hardcode_direct_F77=yes
15816 hardcode_minus_L_F77=yes
15817 hardcode_shlibpath_var_F77=no
15820 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15821 freebsd* | dragonfly*)
15822 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15823 hardcode_libdir_flag_spec_F77='-R$libdir'
15824 hardcode_direct_F77=yes
15825 hardcode_shlibpath_var_F77=no
15829 if test "$GCC" = yes; then
15830 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'
15832 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'
15834 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15835 hardcode_libdir_separator_F77=:
15836 hardcode_direct_F77=yes
15838 # hardcode_minus_L: Not really in the search PATH,
15839 # but as the default location of the library.
15840 hardcode_minus_L_F77=yes
15841 export_dynamic_flag_spec_F77='${wl}-E'
15845 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15846 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15848 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15850 if test "$with_gnu_ld" = no; then
15851 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15852 hardcode_libdir_separator_F77=:
15854 hardcode_direct_F77=yes
15855 export_dynamic_flag_spec_F77='${wl}-E'
15857 # hardcode_minus_L: Not really in the search PATH,
15858 # but as the default location of the library.
15859 hardcode_minus_L_F77=yes
15864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15867 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15870 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15885 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15889 if test "$with_gnu_ld" = no; then
15890 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15891 hardcode_libdir_separator_F77=:
15895 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15896 hardcode_direct_F77=no
15897 hardcode_shlibpath_var_F77=no
15900 hardcode_direct_F77=yes
15901 export_dynamic_flag_spec_F77='${wl}-E'
15903 # hardcode_minus_L: Not really in the search PATH,
15904 # but as the default location of the library.
15905 hardcode_minus_L_F77=yes
15911 irix5* | irix6* | nonstopux*)
15912 if test "$GCC" = yes; then
15913 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'
15915 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'
15916 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15918 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15919 hardcode_libdir_separator_F77=:
15920 link_all_deplibs_F77=yes
15923 netbsd* | netbsdelf*-gnu)
15924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15925 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15927 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15929 hardcode_libdir_flag_spec_F77='-R$libdir'
15930 hardcode_direct_F77=yes
15931 hardcode_shlibpath_var_F77=no
15935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_direct_F77=yes
15937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15938 hardcode_libdir_separator_F77=:
15939 hardcode_shlibpath_var_F77=no
15943 hardcode_direct_F77=yes
15944 hardcode_shlibpath_var_F77=no
15945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15946 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15947 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15948 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15949 export_dynamic_flag_spec_F77='${wl}-E'
15952 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15953 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15954 hardcode_libdir_flag_spec_F77='-R$libdir'
15957 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15958 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15965 hardcode_libdir_flag_spec_F77='-L$libdir'
15966 hardcode_minus_L_F77=yes
15967 allow_undefined_flag_F77=unsupported
15968 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'
15969 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15973 if test "$GCC" = yes; then
15974 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15975 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'
15977 allow_undefined_flag_F77=' -expect_unresolved \*'
15978 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'
15980 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15981 hardcode_libdir_separator_F77=:
15984 osf4* | osf5*) # as osf3* with the addition of -msym flag
15985 if test "$GCC" = yes; then
15986 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15987 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'
15988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15990 allow_undefined_flag_F77=' -expect_unresolved \*'
15991 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'
15992 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~
15993 $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'
15995 # Both c and cxx compiler support -rpath directly
15996 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15998 hardcode_libdir_separator_F77=:
16002 no_undefined_flag_F77=' -z text'
16003 if test "$GCC" = yes; then
16005 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16006 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16007 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16010 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16012 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16014 hardcode_libdir_flag_spec_F77='-R$libdir'
16015 hardcode_shlibpath_var_F77=no
16017 solaris2.[0-5] | solaris2.[0-5].*) ;;
16019 # The compiler driver will combine linker options so we
16020 # cannot just pass the convience library names through
16021 # without $wl, iff we do not link with $LD.
16022 # Luckily, gcc supports the same syntax we need for Sun Studio.
16023 # Supported since Solaris 2.6 (maybe 2.5.1?)
16026 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16028 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' ;;
16031 link_all_deplibs_F77=yes
16035 if test "x$host_vendor" = xsequent; then
16036 # Use $CC to link under sequent, because it throws in some extra .o
16037 # files that make .init and .fini sections work.
16038 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_libdir_flag_spec_F77='-L$libdir'
16043 hardcode_direct_F77=yes
16044 hardcode_minus_L_F77=yes
16045 hardcode_shlibpath_var_F77=no
16049 case $host_vendor in
16051 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052 hardcode_direct_F77=yes # is this really true???
16055 ## LD is ld it makes a PLAMLIB
16056 ## CC just makes a GrossModule.
16057 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16058 reload_cmds_F77='$CC -r -o $output$reload_objs'
16059 hardcode_direct_F77=no
16062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16066 runpath_var='LD_RUN_PATH'
16067 hardcode_shlibpath_var_F77=no
16071 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16072 hardcode_shlibpath_var_F77=no
16073 export_dynamic_flag_spec_F77='-Bexport'
16077 if test -d /usr/nec; then
16078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16079 hardcode_shlibpath_var_F77=no
16080 runpath_var=LD_RUN_PATH
16081 hardcode_runpath_var=yes
16086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16087 no_undefined_flag_F77='${wl}-z,text'
16088 archive_cmds_need_lc_F77=no
16089 hardcode_shlibpath_var_F77=no
16090 runpath_var='LD_RUN_PATH'
16092 if test "$GCC" = yes; then
16093 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16096 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16097 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16101 sysv5* | sco3.2v5* | sco5v6*)
16102 # Note: We can NOT use -z defs as we might desire, because we do not
16103 # link with -lc, and that would cause any symbols used from libc to
16104 # always be unresolved, which means just about no library would
16105 # ever link correctly. If we're not using GNU ld we use -z text
16106 # though, which does catch some bad symbols but isn't as heavy-handed
16108 no_undefined_flag_F77='${wl}-z,text'
16109 allow_undefined_flag_F77='${wl}-z,nodefs'
16110 archive_cmds_need_lc_F77=no
16111 hardcode_shlibpath_var_F77=no
16112 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16113 hardcode_libdir_separator_F77=':'
16114 link_all_deplibs_F77=yes
16115 export_dynamic_flag_spec_F77='${wl}-Bexport'
16116 runpath_var='LD_RUN_PATH'
16118 if test "$GCC" = yes; then
16119 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16122 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129 hardcode_libdir_flag_spec_F77='-L$libdir'
16130 hardcode_shlibpath_var_F77=no
16139 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16140 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16141 test "$ld_shlibs_F77" = no && can_build_shared=no
16144 # Do we need to explicitly link libc?
16146 case "x$archive_cmds_need_lc_F77" in
16148 # Assume -lc should be added
16149 archive_cmds_need_lc_F77=yes
16151 if test "$enable_shared" = yes && test "$GCC" = yes; then
16152 case $archive_cmds_F77 in
16154 # FIXME: we may have to deal with multi-command sequences.
16157 # Test whether the compiler implicitly links with -lc since on some
16158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16159 # to ld, don't add -lc before -lgcc.
16160 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } 2>conftest.err; then
16172 libobjs=conftest.$ac_objext
16174 wl=$lt_prog_compiler_wl_F77
16175 pic_flag=$lt_prog_compiler_pic_F77
16181 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16182 allow_undefined_flag_F77=
16183 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16184 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }
16189 archive_cmds_need_lc_F77=no
16191 archive_cmds_need_lc_F77=yes
16193 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16195 cat conftest.err 1>&5
16198 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16199 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16206 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16207 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16208 library_names_spec=
16209 libname_spec='lib$name'
16213 postuninstall_cmds=
16217 shlibpath_overrides_runpath=unknown
16219 dynamic_linker="$host_os ld.so"
16220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16221 if test "$GCC" = yes; then
16222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16223 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16224 # if the path contains ";" then we assume it to be the separator
16225 # otherwise default to the standard path separator (i.e. ":") - it is
16226 # assumed that no part of a normal pathname contains ";" but that should
16227 # okay in the real world where ";" in dirpaths is itself problematic.
16228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16235 need_lib_prefix=unknown
16236 hardcode_into_libs=no
16238 # when you set need_version to no, make sure it does not cause -set_version
16239 # flags to be left without arguments
16240 need_version=unknown
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16246 shlibpath_var=LIBPATH
16248 # AIX 3 has no versioning support, so we append a major version to the name.
16249 soname_spec='${libname}${release}${shared_ext}$major'
16256 hardcode_into_libs=yes
16257 if test "$host_cpu" = ia64; then
16258 # AIX 5 supports IA64
16259 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16260 shlibpath_var=LD_LIBRARY_PATH
16262 # With GCC up to 2.95.x, collect2 would create an import file
16263 # for dependence libraries. The import file would start with
16264 # the line `#! .'. This would cause the generated library to
16265 # depend on `.', always an invalid library. This was fixed in
16266 # development snapshots of GCC prior to 3.0.
16268 aix4 | aix4.[01] | aix4.[01].*)
16269 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16271 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16274 can_build_shared=no
16278 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16279 # soname into executable. Probably we can add versioning support to
16280 # collect2, so additional links can be useful in future.
16281 if test "$aix_use_runtimelinking" = yes; then
16282 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16283 # instead of lib<name>.a to let people know that these are not
16284 # typical AIX shared libraries.
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 # We preserve .a as extension for shared libraries through AIX4.2
16288 # and later when we are not doing run time linking.
16289 library_names_spec='${libname}${release}.a $libname.a'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16292 shlibpath_var=LIBPATH
16297 library_names_spec='$libname.ixlibrary $libname.a'
16298 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16299 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'
16303 library_names_spec='${libname}${shared_ext}'
16304 dynamic_linker="$host_os ld.so"
16305 shlibpath_var=LIBRARY_PATH
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16316 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16317 # the default ld.so.conf also contains /usr/contrib/lib and
16318 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16319 # libtool to hard-code these into programs
16322 cygwin* | mingw* | pw32*)
16323 version_type=windows
16328 case $GCC,$host_os in
16329 yes,cygwin* | yes,mingw* | yes,pw32*)
16330 library_names_spec='$libname.dll.a'
16331 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16332 postinstall_cmds='base_file=`basename \${file}`~
16333 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16334 dldir=$destdir/`dirname \$dlpath`~
16335 test -d \$dldir || mkdir -p \$dldir~
16336 $install_prog $dir/$dlname \$dldir/$dlname~
16337 chmod a+x \$dldir/$dlname'
16338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16339 dlpath=$dir/\$dldll~
16341 shlibpath_overrides_runpath=yes
16345 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16346 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16347 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16350 # MinGW DLLs use traditional 'lib' prefix
16351 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16354 # It is most probably a Windows format PATH printed by
16355 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16356 # path with ; separators, and with drive letters. We can handle the
16357 # drive letters (cygwin fileutils understands them), so leave them,
16358 # especially as we might pass files found there to a mingw objdump,
16359 # which wouldn't understand a cygwinified path. Ahh.
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16366 # pw32 DLLs use 'pw' prefix rather than 'lib'
16367 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16373 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16376 dynamic_linker='Win32 ld.exe'
16377 # FIXME: first we should search . and the directory the executable is in
16381 darwin* | rhapsody*)
16382 dynamic_linker="$host_os dyld"
16383 version_type=darwin
16386 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16387 soname_spec='${libname}${release}${major}$shared_ext'
16388 shlibpath_overrides_runpath=yes
16389 shlibpath_var=DYLD_LIBRARY_PATH
16390 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16391 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16392 if test "$GCC" = yes; then
16393 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"`
16395 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 shlibpath_var=LD_LIBRARY_PATH
16413 freebsd* | dragonfly*)
16414 # DragonFly does not have aout. When/if they implement a new
16415 # versioning mechanism, adjust this.
16416 if test -x /usr/bin/objformat; then
16417 objformat=`/usr/bin/objformat`
16420 freebsd[123]*) objformat=aout ;;
16421 *) objformat=elf ;;
16424 version_type=freebsd-$objformat
16425 case $version_type in
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16436 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16441 freebsd3.[01]* | freebsdelf3.[01]*)
16442 shlibpath_overrides_runpath=yes
16443 hardcode_into_libs=yes
16445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16447 shlibpath_overrides_runpath=no
16448 hardcode_into_libs=yes
16450 freebsd*) # from 4.6 on
16451 shlibpath_overrides_runpath=yes
16452 hardcode_into_libs=yes
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 hardcode_into_libs=yes
16467 hpux9* | hpux10* | hpux11*)
16468 # Give a soname corresponding to the major version so that dld.sl refuses to
16469 # link against other versions.
16476 hardcode_into_libs=yes
16477 dynamic_linker="$host_os dld.so"
16478 shlibpath_var=LD_LIBRARY_PATH
16479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 if test "X$HPUX_IA64_MODE" = X32; then
16483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16491 hardcode_into_libs=yes
16492 dynamic_linker="$host_os dld.sl"
16493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16502 dynamic_linker="$host_os dld.sl"
16503 shlibpath_var=SHLIB_PATH
16504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16510 postinstall_cmds='chmod 555 $lib'
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 shlibpath_overrides_runpath=no
16522 hardcode_into_libs=yes
16525 irix5* | irix6* | nonstopux*)
16527 nonstopux*) version_type=nonstopux ;;
16529 if test "$lt_cv_prog_gnu_ld" = yes; then
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 irix5* | nonstopux*)
16541 libsuff= shlibsuff=
16544 case $LD in # libtool.m4 will add one of these switches to LD
16545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16546 libsuff= shlibsuff= libmagic=32-bit;;
16547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16548 libsuff=32 shlibsuff=N32 libmagic=N32;;
16549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16551 *) libsuff= shlibsuff= libmagic=never-match;;
16555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16556 shlibpath_overrides_runpath=no
16557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16559 hardcode_into_libs=yes
16562 # No shared lib support for Linux oldld, aout, or coff.
16563 linux*oldld* | linux*aout* | linux*coff*)
16567 # This must be Linux ELF.
16568 linux* | k*bsd*-gnu)
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 soname_spec='${libname}${release}${shared_ext}$major'
16574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=no
16577 # This implies no fast_install, which is unacceptable.
16578 # Some rework will be needed to allow for fast_install
16579 # before this can be enabled.
16580 hardcode_into_libs=yes
16582 # Append ld.so.conf contents to the search path
16583 if test -f /etc/ld.so.conf; then
16584 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' ' '`
16585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16588 # We used to test for /lib/ld.so.1 and disable shared libraries on
16589 # powerpc, because MkLinux only supported shared libraries with the
16590 # GNU dynamic linker. Since this was broken with cross compilers,
16591 # most powerpc-linux boxes support dynamic linking these days and
16592 # people can always --disable-shared, the test was removed, and we
16593 # assume the GNU/Linux dynamic linker is in use.
16594 dynamic_linker='GNU/Linux ld.so'
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 shlibpath_overrides_runpath=no
16605 hardcode_into_libs=yes
16606 dynamic_linker='NetBSD ld.elf_so'
16613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16616 dynamic_linker='NetBSD (a.out) ld.so'
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 dynamic_linker='NetBSD ld.elf_so'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=yes
16624 hardcode_into_libs=yes
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 shlibpath_overrides_runpath=yes
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639 soname_spec='${libname}${release}${shared_ext}$major'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=yes
16646 sys_lib_dlsearch_path_spec="/usr/lib"
16648 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16650 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16651 *) need_version=no ;;
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16655 shlibpath_var=LD_LIBRARY_PATH
16656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16658 openbsd2.[89] | openbsd2.[89].*)
16659 shlibpath_overrides_runpath=no
16662 shlibpath_overrides_runpath=yes
16666 shlibpath_overrides_runpath=yes
16671 libname_spec='$name'
16674 library_names_spec='$libname${shared_ext} $libname.a'
16675 dynamic_linker='OS/2 ld.exe'
16676 shlibpath_var=LIBPATH
16679 osf3* | osf4* | osf5*)
16683 soname_spec='${libname}${release}${shared_ext}$major'
16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16687 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16698 hardcode_into_libs=yes
16699 # ldd complains unless libraries are executable
16700 postinstall_cmds='chmod +x $lib'
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 if test "$with_gnu_ld" = yes; then
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 case $host_vendor in
16722 shlibpath_overrides_runpath=no
16724 export_dynamic_flag_spec='${wl}-Blargedynsym'
16725 runpath_var=LD_RUN_PATH
16733 shlibpath_overrides_runpath=no
16734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16740 if test -d /usr/nec ;then
16742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16743 soname_spec='$libname${shared_ext}.$major'
16744 shlibpath_var=LD_LIBRARY_PATH
16748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16749 version_type=freebsd-elf
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 hardcode_into_libs=yes
16756 if test "$with_gnu_ld" = yes; then
16757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16758 shlibpath_overrides_runpath=no
16760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16761 shlibpath_overrides_runpath=yes
16764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16768 sys_lib_dlsearch_path_spec='/usr/lib'
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 shlibpath_var=LD_LIBRARY_PATH
16782 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16783 echo "${ECHO_T}$dynamic_linker" >&6; }
16784 test "$dynamic_linker" = no && can_build_shared=no
16786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16787 if test "$GCC" = yes; then
16788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16791 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16793 hardcode_action_F77=
16794 if test -n "$hardcode_libdir_flag_spec_F77" || \
16795 test -n "$runpath_var_F77" || \
16796 test "X$hardcode_automatic_F77" = "Xyes" ; then
16798 # We can hardcode non-existant directories.
16799 if test "$hardcode_direct_F77" != no &&
16800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16801 # have to relink, otherwise we might link with an installed library
16802 # when we should be linking with a yet-to-be-installed one
16803 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16804 test "$hardcode_minus_L_F77" != no; then
16805 # Linking always hardcodes the temporary library directory.
16806 hardcode_action_F77=relink
16808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16809 hardcode_action_F77=immediate
16812 # We cannot hardcode anything, or else we can only hardcode existing
16814 hardcode_action_F77=unsupported
16816 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16817 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16819 if test "$hardcode_action_F77" = relink; then
16820 # Fast installation is not supported
16821 enable_fast_install=no
16822 elif test "$shlibpath_overrides_runpath" = yes ||
16823 test "$enable_shared" = no; then
16824 # Fast installation is not necessary
16825 enable_fast_install=needless
16829 # The else clause should only fire when bootstrapping the
16830 # libtool distribution, otherwise you forgot to ship ltmain.sh
16831 # with your package, and you will get complaints that there are
16832 # no rules to generate ltmain.sh.
16833 if test -f "$ltmain"; then
16834 # See if we are running on zsh, and set the options which allow our commands through
16835 # without removal of \ escapes.
16836 if test -n "${ZSH_VERSION+set}" ; then
16837 setopt NO_GLOB_SUBST
16839 # Now quote all the things that may contain metacharacters while being
16840 # careful not to overquote the AC_SUBSTed values. We take copies of the
16841 # variables and quote the copies for generation of the libtool script.
16842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16846 deplibs_check_method reload_flag reload_cmds need_locks \
16847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16848 lt_cv_sys_global_symbol_to_c_name_address \
16849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16850 old_postinstall_cmds old_postuninstall_cmds \
16854 lt_prog_compiler_wl_F77 \
16855 lt_prog_compiler_pic_F77 \
16856 lt_prog_compiler_static_F77 \
16857 lt_prog_compiler_no_builtin_flag_F77 \
16858 export_dynamic_flag_spec_F77 \
16859 thread_safe_flag_spec_F77 \
16860 whole_archive_flag_spec_F77 \
16861 enable_shared_with_static_runtimes_F77 \
16862 old_archive_cmds_F77 \
16863 old_archive_from_new_cmds_F77 \
16864 predep_objects_F77 \
16865 postdep_objects_F77 \
16868 compiler_lib_search_path_F77 \
16870 archive_expsym_cmds_F77 \
16871 postinstall_cmds_F77 \
16872 postuninstall_cmds_F77 \
16873 old_archive_from_expsyms_cmds_F77 \
16874 allow_undefined_flag_F77 \
16875 no_undefined_flag_F77 \
16876 export_symbols_cmds_F77 \
16877 hardcode_libdir_flag_spec_F77 \
16878 hardcode_libdir_flag_spec_ld_F77 \
16879 hardcode_libdir_separator_F77 \
16880 hardcode_automatic_F77 \
16882 module_expsym_cmds_F77 \
16883 lt_cv_prog_compiler_c_o_F77 \
16884 exclude_expsyms_F77 \
16885 include_expsyms_F77; do
16888 old_archive_cmds_F77 | \
16889 old_archive_from_new_cmds_F77 | \
16890 archive_cmds_F77 | \
16891 archive_expsym_cmds_F77 | \
16892 module_cmds_F77 | \
16893 module_expsym_cmds_F77 | \
16894 old_archive_from_expsyms_cmds_F77 | \
16895 export_symbols_cmds_F77 | \
16896 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16897 postinstall_cmds | postuninstall_cmds | \
16898 old_postinstall_cmds | old_postuninstall_cmds | \
16899 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16900 # Double-quote double-evaled strings.
16901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16910 *'\$0 --fallback-echo"')
16911 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16917 cat <<__EOF__ >> "$cfgfile"
16918 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16922 # Shell to use when invoking shell scripts.
16925 # Whether or not to build shared libraries.
16926 build_libtool_libs=$enable_shared
16928 # Whether or not to build static libraries.
16929 build_old_libs=$enable_static
16931 # Whether or not to add -lc for building shared libraries.
16932 build_libtool_need_lc=$archive_cmds_need_lc_F77
16934 # Whether or not to disallow shared libs when runtime libs are static
16935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16937 # Whether or not to optimize for fast installation.
16938 fast_install=$enable_fast_install
16941 host_alias=$host_alias
16945 # The build system.
16946 build_alias=$build_alias
16950 # An echo program that does not interpret backslashes.
16955 AR_FLAGS=$lt_AR_FLAGS
16960 # LTCC compiler flags.
16961 LTCFLAGS=$lt_LTCFLAGS
16963 # A language-specific compiler.
16964 CC=$lt_compiler_F77
16966 # Is the compiler the GNU C compiler?
16972 # The linker used to build libraries.
16975 # Whether we need hard or soft links.
16978 # A BSD-compatible nm program.
16981 # A symbol stripping program
16984 # Used to examine libraries when file_magic_cmd begins "file"
16985 MAGIC_CMD=$MAGIC_CMD
16987 # Used on cygwin: DLL creation program.
16990 # Used on cygwin: object dumper.
16993 # Used on cygwin: assembler.
16996 # The name of the directory that contains temporary libtool files.
16999 # How to create reloadable object files.
17000 reload_flag=$lt_reload_flag
17001 reload_cmds=$lt_reload_cmds
17003 # How to pass a linker flag through the compiler.
17004 wl=$lt_lt_prog_compiler_wl_F77
17006 # Object file suffix (normally "o").
17007 objext="$ac_objext"
17009 # Old archive suffix (normally "a").
17012 # Shared library suffix (normally ".so").
17013 shrext_cmds='$shrext_cmds'
17015 # Executable file suffix (normally "").
17018 # Additional compiler flags for building library objects.
17019 pic_flag=$lt_lt_prog_compiler_pic_F77
17022 # What is the maximum length of a command?
17023 max_cmd_len=$lt_cv_sys_max_cmd_len
17025 # Does compiler simultaneously support -c and -o options?
17026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17028 # Must we lock files when doing compilation?
17029 need_locks=$lt_need_locks
17031 # Do we need the lib prefix for modules?
17032 need_lib_prefix=$need_lib_prefix
17034 # Do we need a version for libraries?
17035 need_version=$need_version
17037 # Whether dlopen is supported.
17038 dlopen_support=$enable_dlopen
17040 # Whether dlopen of programs is supported.
17041 dlopen_self=$enable_dlopen_self
17043 # Whether dlopen of statically linked programs is supported.
17044 dlopen_self_static=$enable_dlopen_self_static
17046 # Compiler flag to prevent dynamic linking.
17047 link_static_flag=$lt_lt_prog_compiler_static_F77
17049 # Compiler flag to turn off builtin functions.
17050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17052 # Compiler flag to allow reflexive dlopens.
17053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17055 # Compiler flag to generate shared objects directly from archives.
17056 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17058 # Compiler flag to generate thread-safe objects.
17059 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17061 # Library versioning type.
17062 version_type=$version_type
17064 # Format of library name prefix.
17065 libname_spec=$lt_libname_spec
17067 # List of archive names. First name is the real one, the rest are links.
17068 # The last name is the one that the linker finds with -lNAME.
17069 library_names_spec=$lt_library_names_spec
17071 # The coded name of the library, if different from the real name.
17072 soname_spec=$lt_soname_spec
17074 # Commands used to build and install an old-style archive.
17076 old_archive_cmds=$lt_old_archive_cmds_F77
17077 old_postinstall_cmds=$lt_old_postinstall_cmds
17078 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17080 # Create an old-style archive from a shared archive.
17081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17083 # Create a temporary old-style archive to link instead of a shared archive.
17084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17086 # Commands used to build and install a shared archive.
17087 archive_cmds=$lt_archive_cmds_F77
17088 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17089 postinstall_cmds=$lt_postinstall_cmds
17090 postuninstall_cmds=$lt_postuninstall_cmds
17092 # Commands used to build a loadable module (assumed same as above if empty)
17093 module_cmds=$lt_module_cmds_F77
17094 module_expsym_cmds=$lt_module_expsym_cmds_F77
17096 # Commands to strip libraries.
17097 old_striplib=$lt_old_striplib
17098 striplib=$lt_striplib
17100 # Dependencies to place before the objects being linked to create a
17102 predep_objects=$lt_predep_objects_F77
17104 # Dependencies to place after the objects being linked to create a
17106 postdep_objects=$lt_postdep_objects_F77
17108 # Dependencies to place before the objects being linked to create a
17110 predeps=$lt_predeps_F77
17112 # Dependencies to place after the objects being linked to create a
17114 postdeps=$lt_postdeps_F77
17116 # The library search path used internally by the compiler when linking
17117 # a shared library.
17118 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17120 # Method to check whether dependent libraries are shared objects.
17121 deplibs_check_method=$lt_deplibs_check_method
17123 # Command to use when deplibs_check_method == file_magic.
17124 file_magic_cmd=$lt_file_magic_cmd
17126 # Flag that allows shared libraries with undefined symbols to be built.
17127 allow_undefined_flag=$lt_allow_undefined_flag_F77
17129 # Flag that forces no undefined symbols.
17130 no_undefined_flag=$lt_no_undefined_flag_F77
17132 # Commands used to finish a libtool library installation in a directory.
17133 finish_cmds=$lt_finish_cmds
17135 # Same as above, but a single script fragment to be evaled but not shown.
17136 finish_eval=$lt_finish_eval
17138 # Take the output of nm and produce a listing of raw symbols and C names.
17139 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17141 # Transform the output of nm in a proper C declaration
17142 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17144 # Transform the output of nm in a C name address pair
17145 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17147 # This is the shared library runtime path variable.
17148 runpath_var=$runpath_var
17150 # This is the shared library path variable.
17151 shlibpath_var=$shlibpath_var
17153 # Is shlibpath searched before the hard-coded library search path?
17154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17156 # How to hardcode a shared library path into an executable.
17157 hardcode_action=$hardcode_action_F77
17159 # Whether we should hardcode library paths into libraries.
17160 hardcode_into_libs=$hardcode_into_libs
17162 # Flag to hardcode \$libdir into a binary during linking.
17163 # This must work even if \$libdir does not exist.
17164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17166 # If ld is used when linking, flag to hardcode \$libdir into
17167 # a binary during linking. This must work even if \$libdir does
17169 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17171 # Whether we need a single -rpath flag with a separated argument.
17172 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17174 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17175 # resulting binary.
17176 hardcode_direct=$hardcode_direct_F77
17178 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17179 # resulting binary.
17180 hardcode_minus_L=$hardcode_minus_L_F77
17182 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17183 # the resulting binary.
17184 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17186 # Set to yes if building a shared library automatically hardcodes DIR into the library
17187 # and all subsequent libraries and executables linked against it.
17188 hardcode_automatic=$hardcode_automatic_F77
17190 # Variables whose values should be saved in libtool wrapper scripts and
17191 # restored at relink time.
17192 variables_saved_for_relink="$variables_saved_for_relink"
17194 # Whether libtool must link a program against all its dependency libraries.
17195 link_all_deplibs=$link_all_deplibs_F77
17197 # Compile-time system search path for libraries
17198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17200 # Run-time system search path for libraries
17201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17203 # Fix the shell variable \$srcfile for the compiler.
17204 fix_srcfile_path="$fix_srcfile_path_F77"
17206 # Set to yes if exported symbols are required.
17207 always_export_symbols=$always_export_symbols_F77
17209 # The commands to list exported symbols.
17210 export_symbols_cmds=$lt_export_symbols_cmds_F77
17212 # The commands to extract the exported symbol list from a shared archive.
17213 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17215 # Symbols that should not be listed in the preloaded symbols.
17216 exclude_expsyms=$lt_exclude_expsyms_F77
17218 # Symbols that must always be exported.
17219 include_expsyms=$lt_include_expsyms_F77
17221 # ### END LIBTOOL TAG CONFIG: $tagname
17227 # If there is no Makefile yet, we rely on a make rule to execute
17228 # `config.status --recheck' to rerun these tests and create the
17229 # libtool script then.
17230 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17231 if test -f "$ltmain_in"; then
17232 test -f Makefile && make "$ltmain"
17238 ac_cpp='$CPP $CPPFLAGS'
17239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17251 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17254 # Source file extension for Java test sources.
17257 # Object file extension for compiled Java test sources.
17261 # Code to be used in simple compile tests
17262 lt_simple_compile_test_code="class foo {}\n"
17264 # Code to be used in simple link tests
17265 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17269 # If no C compiler was specified, use CC.
17272 # If no C compiler flags were specified, use CFLAGS.
17273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17275 # Allow CC to be a program name with arguments.
17279 # save warnings/boilerplate of simple test code
17280 ac_outfile=conftest.$ac_objext
17281 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17283 _lt_compiler_boilerplate=`cat conftest.err`
17286 ac_outfile=conftest.$ac_objext
17287 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17289 _lt_linker_boilerplate=`cat conftest.err`
17293 # Allow CC to be a program name with arguments.
17298 for cc_temp in $compiler""; do
17300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17306 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17309 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17310 archive_cmds_need_lc_GCJ=no
17312 old_archive_cmds_GCJ=$old_archive_cmds
17315 lt_prog_compiler_no_builtin_flag_GCJ=
17317 if test "$GCC" = yes; then
17318 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17321 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17322 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17323 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 lt_cv_prog_compiler_rtti_exceptions=no
17327 ac_outfile=conftest.$ac_objext
17328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17329 lt_compiler_flag="-fno-rtti -fno-exceptions"
17330 # Insert the option either (1) after the last *FLAGS variable, or
17331 # (2) before a word containing "conftest.", or (3) at the end.
17332 # Note that $ac_compile itself does not contain backslashes and begins
17333 # with a dollar sign (not a hyphen), so the echo should work correctly.
17334 # The option is referenced via a variable to avoid confusing sed.
17335 lt_compile=`echo "$ac_compile" | $SED \
17336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17338 -e 's:$: $lt_compiler_flag:'`
17339 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17340 (eval "$lt_compile" 2>conftest.err)
17342 cat conftest.err >&5
17343 echo "$as_me:__oline__: \$? = $ac_status" >&5
17344 if (exit $ac_status) && test -s "$ac_outfile"; then
17345 # The compiler can only warn and ignore the option if not recognized
17346 # So say no if there are warnings other than the usual output.
17347 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17350 lt_cv_prog_compiler_rtti_exceptions=yes
17356 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17357 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17359 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17360 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17367 lt_prog_compiler_wl_GCJ=
17368 lt_prog_compiler_pic_GCJ=
17369 lt_prog_compiler_static_GCJ=
17371 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17374 if test "$GCC" = yes; then
17375 lt_prog_compiler_wl_GCJ='-Wl,'
17376 lt_prog_compiler_static_GCJ='-static'
17380 # All AIX code is PIC.
17381 if test "$host_cpu" = ia64; then
17382 # AIX 5 now supports IA64 processor
17383 lt_prog_compiler_static_GCJ='-Bstatic'
17388 # FIXME: we need at least 68020 code to build shared libraries, but
17389 # adding the `-m68020' flag to GCC prevents building anything better,
17391 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17395 # PIC is the default for these OSes.
17398 mingw* | pw32* | os2*)
17399 # This hack is so that the source file can tell whether it is being
17400 # built for inclusion in a dll (and should export symbols for example).
17401 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17404 darwin* | rhapsody*)
17405 # PIC is the default on this platform
17406 # Common symbols not allowed in MH_DYLIB files
17407 lt_prog_compiler_pic_GCJ='-fno-common'
17411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17412 # Instead, we relocate shared libraries at runtime.
17416 # Just because we use GCC doesn't mean we suddenly get shared libraries
17417 # on systems that don't support them.
17418 lt_prog_compiler_can_build_shared_GCJ=no
17423 if test -d /usr/nec; then
17424 lt_prog_compiler_pic_GCJ=-Kconform_pic
17429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17430 # not for PA HP-UX.
17436 lt_prog_compiler_pic_GCJ='-fPIC'
17442 lt_prog_compiler_pic_GCJ='-fPIC'
17446 # PORTME Check for flag to pass linker flags through the system compiler.
17449 lt_prog_compiler_wl_GCJ='-Wl,'
17450 if test "$host_cpu" = ia64; then
17451 # AIX 5 now supports IA64 processor
17452 lt_prog_compiler_static_GCJ='-Bstatic'
17454 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17458 # PIC is the default on this platform
17459 # Common symbols not allowed in MH_DYLIB files
17460 case $cc_basename in
17462 lt_prog_compiler_pic_GCJ='-qnocommon'
17463 lt_prog_compiler_wl_GCJ='-Wl,'
17468 mingw* | pw32* | os2*)
17469 # This hack is so that the source file can tell whether it is being
17470 # built for inclusion in a dll (and should export symbols for example).
17471 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17474 hpux9* | hpux10* | hpux11*)
17475 lt_prog_compiler_wl_GCJ='-Wl,'
17476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17477 # not for PA HP-UX.
17483 lt_prog_compiler_pic_GCJ='+Z'
17486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17487 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17490 irix5* | irix6* | nonstopux*)
17491 lt_prog_compiler_wl_GCJ='-Wl,'
17492 # PIC (with -KPIC) is the default.
17493 lt_prog_compiler_static_GCJ='-non_shared'
17497 lt_prog_compiler_pic_GCJ='-KPIC'
17498 lt_prog_compiler_static_GCJ='-Bstatic'
17501 linux* | k*bsd*-gnu)
17502 case $cc_basename in
17504 lt_prog_compiler_wl_GCJ='-Wl,'
17505 lt_prog_compiler_pic_GCJ='-KPIC'
17506 lt_prog_compiler_static_GCJ='-static'
17508 pgcc* | pgf77* | pgf90* | pgf95*)
17509 # Portland Group compilers (*not* the Pentium gcc compiler,
17510 # which looks to be a dead project)
17511 lt_prog_compiler_wl_GCJ='-Wl,'
17512 lt_prog_compiler_pic_GCJ='-fpic'
17513 lt_prog_compiler_static_GCJ='-Bstatic'
17516 lt_prog_compiler_wl_GCJ='-Wl,'
17517 # All Alpha code is PIC.
17518 lt_prog_compiler_static_GCJ='-non_shared'
17523 osf3* | osf4* | osf5*)
17524 lt_prog_compiler_wl_GCJ='-Wl,'
17525 # All OSF/1 code is PIC.
17526 lt_prog_compiler_static_GCJ='-non_shared'
17530 lt_prog_compiler_pic_GCJ='-KPIC'
17531 lt_prog_compiler_static_GCJ='-Bstatic'
17532 case $cc_basename in
17533 f77* | f90* | f95*)
17534 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17536 lt_prog_compiler_wl_GCJ='-Wl,';;
17541 lt_prog_compiler_wl_GCJ='-Qoption ld '
17542 lt_prog_compiler_pic_GCJ='-PIC'
17543 lt_prog_compiler_static_GCJ='-Bstatic'
17546 sysv4 | sysv4.2uw2* | sysv4.3*)
17547 lt_prog_compiler_wl_GCJ='-Wl,'
17548 lt_prog_compiler_pic_GCJ='-KPIC'
17549 lt_prog_compiler_static_GCJ='-Bstatic'
17553 if test -d /usr/nec ;then
17554 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17555 lt_prog_compiler_static_GCJ='-Bstatic'
17559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17560 lt_prog_compiler_wl_GCJ='-Wl,'
17561 lt_prog_compiler_pic_GCJ='-KPIC'
17562 lt_prog_compiler_static_GCJ='-Bstatic'
17566 lt_prog_compiler_wl_GCJ='-Wl,'
17567 lt_prog_compiler_can_build_shared_GCJ=no
17571 lt_prog_compiler_pic_GCJ='-pic'
17572 lt_prog_compiler_static_GCJ='-Bstatic'
17576 lt_prog_compiler_can_build_shared_GCJ=no
17581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17582 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17585 # Check to make sure the PIC flag actually works.
17587 if test -n "$lt_prog_compiler_pic_GCJ"; then
17589 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17591 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 lt_prog_compiler_pic_works_GCJ=no
17595 ac_outfile=conftest.$ac_objext
17596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17597 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17598 # Insert the option either (1) after the last *FLAGS variable, or
17599 # (2) before a word containing "conftest.", or (3) at the end.
17600 # Note that $ac_compile itself does not contain backslashes and begins
17601 # with a dollar sign (not a hyphen), so the echo should work correctly.
17602 # The option is referenced via a variable to avoid confusing sed.
17603 lt_compile=`echo "$ac_compile" | $SED \
17604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17606 -e 's:$: $lt_compiler_flag:'`
17607 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17608 (eval "$lt_compile" 2>conftest.err)
17610 cat conftest.err >&5
17611 echo "$as_me:__oline__: \$? = $ac_status" >&5
17612 if (exit $ac_status) && test -s "$ac_outfile"; then
17613 # The compiler can only warn and ignore the option if not recognized
17614 # So say no if there are warnings other than the usual output.
17615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17618 lt_prog_compiler_pic_works_GCJ=yes
17624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17625 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17627 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17628 case $lt_prog_compiler_pic_GCJ in
17630 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17633 lt_prog_compiler_pic_GCJ=
17634 lt_prog_compiler_can_build_shared_GCJ=no
17639 # For platforms which do not support PIC, -DPIC is meaningless:
17641 lt_prog_compiler_pic_GCJ=
17644 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17649 # Check to make sure the static flag actually works.
17651 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17652 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17654 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 lt_prog_compiler_static_works_GCJ=no
17658 save_LDFLAGS="$LDFLAGS"
17659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17662 # The linker can only warn and ignore the option if not recognized
17663 # So say no if there are warnings
17664 if test -s conftest.err; then
17665 # Append any errors to the config.log.
17666 cat conftest.err 1>&5
17667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17669 if diff conftest.exp conftest.er2 >/dev/null; then
17670 lt_prog_compiler_static_works_GCJ=yes
17673 lt_prog_compiler_static_works_GCJ=yes
17677 LDFLAGS="$save_LDFLAGS"
17680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17681 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17683 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17686 lt_prog_compiler_static_GCJ=
17690 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17692 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 lt_cv_prog_compiler_c_o_GCJ=no
17696 $rm -r conftest 2>/dev/null
17700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17702 lt_compiler_flag="-o out/conftest2.$ac_objext"
17703 # Insert the option either (1) after the last *FLAGS variable, or
17704 # (2) before a word containing "conftest.", or (3) at the end.
17705 # Note that $ac_compile itself does not contain backslashes and begins
17706 # with a dollar sign (not a hyphen), so the echo should work correctly.
17707 lt_compile=`echo "$ac_compile" | $SED \
17708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17710 -e 's:$: $lt_compiler_flag:'`
17711 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17712 (eval "$lt_compile" 2>out/conftest.err)
17714 cat out/conftest.err >&5
17715 echo "$as_me:__oline__: \$? = $ac_status" >&5
17716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17718 # The compiler can only warn and ignore the option if not recognized
17719 # So say no if there are warnings
17720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17723 lt_cv_prog_compiler_c_o_GCJ=yes
17728 # SGI C++ compiler will create directory out/ii_files/ for
17729 # template instantiation
17730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17731 $rm out/* && rmdir out
17737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17741 hard_links="nottested"
17742 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17743 # do not overwrite the value of need_locks provided by the user
17744 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17750 ln conftest.a conftest.b 2>&5 || hard_links=no
17751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17752 { echo "$as_me:$LINENO: result: $hard_links" >&5
17753 echo "${ECHO_T}$hard_links" >&6; }
17754 if test "$hard_links" = no; then
17755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17763 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17767 allow_undefined_flag_GCJ=
17768 enable_shared_with_static_runtimes_GCJ=no
17770 archive_expsym_cmds_GCJ=
17771 old_archive_From_new_cmds_GCJ=
17772 old_archive_from_expsyms_cmds_GCJ=
17773 export_dynamic_flag_spec_GCJ=
17774 whole_archive_flag_spec_GCJ=
17775 thread_safe_flag_spec_GCJ=
17776 hardcode_libdir_flag_spec_GCJ=
17777 hardcode_libdir_flag_spec_ld_GCJ=
17778 hardcode_libdir_separator_GCJ=
17779 hardcode_direct_GCJ=no
17780 hardcode_minus_L_GCJ=no
17781 hardcode_shlibpath_var_GCJ=unsupported
17782 link_all_deplibs_GCJ=unknown
17783 hardcode_automatic_GCJ=no
17785 module_expsym_cmds_GCJ=
17786 always_export_symbols_GCJ=no
17787 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17788 # include_expsyms should be a list of space-separated symbols to be *always*
17789 # included in the symbol list
17790 include_expsyms_GCJ=
17791 # exclude_expsyms can be an extended regexp of symbols to exclude
17792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17794 # as well as any symbol that contains `d'.
17795 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17797 # platforms (ab)use it in PIC code, but their linkers get confused if
17798 # the symbol is explicitly referenced. Since portable code cannot
17799 # rely on this symbol name, it's probably fine to never include it in
17800 # preloaded symbol tables.
17801 extract_expsyms_cmds=
17802 # Just being paranoid about ensuring that cc_basename is set.
17803 for cc_temp in $compiler""; do
17805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17814 cygwin* | mingw* | pw32*)
17815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17816 # When not using gcc, we currently assume that we are using
17817 # Microsoft Visual C++.
17818 if test "$GCC" != yes; then
17823 # we just hope/assume this is gcc and not c89 (= MSVC++)
17832 if test "$with_gnu_ld" = yes; then
17833 # If archive_cmds runs LD, not CC, wlarc should be empty
17836 # Set some defaults for GNU ld with shared library support. These
17837 # are reset later if shared libraries are not supported. Putting them
17838 # here allows them to be overridden if necessary.
17839 runpath_var=LD_RUN_PATH
17840 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17841 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17842 # ancient GNU ld didn't support --whole-archive et. al.
17843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17844 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17846 whole_archive_flag_spec_GCJ=
17848 supports_anon_versioning=no
17849 case `$LD -v 2>/dev/null` in
17850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17853 *\ 2.11.*) ;; # other 2.11 versions
17854 *) supports_anon_versioning=yes ;;
17857 # See if GNU ld supports shared libraries.
17859 aix3* | aix4* | aix5*)
17860 # On AIX/PPC, the GNU linker is very broken
17861 if test "$host_cpu" != ia64; then
17865 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17866 *** to be unable to reliably create shared libraries on AIX.
17867 *** Therefore, libtool is disabling shared libraries support. If you
17868 *** really care for shared libraries, you may want to modify your PATH
17869 *** so that a non-GNU linker is found, and then restart.
17876 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)'
17877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17878 hardcode_minus_L_GCJ=yes
17880 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17881 # that the semantics of dynamic libraries on AmigaOS, at least up
17882 # to version 4, is to share data among multiple programs linked
17883 # with the same dynamic library. Since this doesn't match the
17884 # behavior of shared libraries on other platforms, we can't use
17890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17891 allow_undefined_flag_GCJ=unsupported
17892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17893 # support --undefined. This deserves some investigation. FIXME
17894 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17900 cygwin* | mingw* | pw32*)
17901 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17902 # as there is no search path for DLLs.
17903 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17904 allow_undefined_flag_GCJ=unsupported
17905 always_export_symbols_GCJ=no
17906 enable_shared_with_static_runtimes_GCJ=yes
17907 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17909 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17910 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17911 # If the export-symbols file already is a .def file (1st line
17912 # is EXPORTS), use it as is; otherwise, prepend...
17913 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17914 cp $export_symbols $output_objdir/$soname.def;
17916 echo EXPORTS > $output_objdir/$soname.def;
17917 cat $export_symbols >> $output_objdir/$soname.def;
17919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17926 hardcode_direct_GCJ=no
17927 hardcode_shlibpath_var_GCJ=no
17928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17929 export_dynamic_flag_spec_GCJ='${wl}-E'
17930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17931 # Instead, shared libraries are loaded at an image base (0x10000000 by
17932 # default) and relocated if they conflict, which is a slow very memory
17933 # consuming and fragmenting process. To avoid this, we pick a random,
17934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17936 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'
17937 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'
17940 linux* | k*bsd*-gnu)
17941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17943 case $cc_basename,$host_cpu in
17944 pgcc*) # Portland Group C compiler
17945 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'
17946 tmp_addflag=' $pic_flag'
17948 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17949 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'
17950 tmp_addflag=' $pic_flag -Mnomain' ;;
17951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17952 tmp_addflag=' -i_dynamic' ;;
17953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17954 tmp_addflag=' -i_dynamic -nofor_main' ;;
17955 ifc* | ifort*) # Intel Fortran compiler
17956 tmp_addflag=' -nofor_main' ;;
17958 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17960 if test $supports_anon_versioning = yes; then
17961 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17963 $echo "local: *; };" >> $output_objdir/$libname.ver~
17964 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17966 link_all_deplibs_GCJ=no
17972 netbsd* | netbsdelf*-gnu)
17973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17974 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17977 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17978 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17988 *** create shared libraries on Solaris systems. Therefore, libtool
17989 *** is disabling shared libraries support. We urge you to upgrade GNU
17990 *** binutils to release 2.9.1 or newer. Another option is to modify
17991 *** your PATH or compiler configuration so that the native linker is
17992 *** used, and then restart.
17995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17997 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18004 case `$LD -v 2>&1` in
18005 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18010 *** reliably create shared libraries on SCO systems. Therefore, libtool
18011 *** is disabling shared libraries support. We urge you to upgrade GNU
18012 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18013 *** your PATH or compiler configuration so that the native linker is
18014 *** used, and then restart.
18019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18020 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18021 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18022 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18031 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18033 hardcode_direct_GCJ=yes
18034 hardcode_shlibpath_var_GCJ=no
18038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18039 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18040 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18047 if test "$ld_shlibs_GCJ" = no; then
18049 hardcode_libdir_flag_spec_GCJ=
18050 export_dynamic_flag_spec_GCJ=
18051 whole_archive_flag_spec_GCJ=
18054 # PORTME fill in a description of your system's linker (not GNU ld)
18057 allow_undefined_flag_GCJ=unsupported
18058 always_export_symbols_GCJ=yes
18059 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'
18060 # Note: this linker hardcodes the directories in LIBPATH if there
18061 # are no directories specified by -L.
18062 hardcode_minus_L_GCJ=yes
18063 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18064 # Neither direct hardcoding nor static linking is supported with a
18066 hardcode_direct_GCJ=unsupported
18071 if test "$host_cpu" = ia64; then
18072 # On IA64, the linker does run time linking by default, so we don't
18073 # have to do anything special.
18074 aix_use_runtimelinking=no
18075 exp_sym_flag='-Bexport'
18078 # If we're using GNU nm, then we don't want the "-C" option.
18079 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18080 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18081 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'
18083 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'
18085 aix_use_runtimelinking=no
18087 # Test if we are trying to use run time linking or normal
18088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18089 # need to do runtime linking.
18090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18091 for ld_flag in $LDFLAGS; do
18092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18093 aix_use_runtimelinking=yes
18100 exp_sym_flag='-bexport'
18101 no_entry_flag='-bnoentry'
18104 # When large executables or shared objects are built, AIX ld can
18105 # have problems creating the table of contents. If linking a library
18106 # or program results in "error TOC overflow" add -mminimal-toc to
18107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18110 archive_cmds_GCJ=''
18111 hardcode_direct_GCJ=yes
18112 hardcode_libdir_separator_GCJ=':'
18113 link_all_deplibs_GCJ=yes
18115 if test "$GCC" = yes; then
18116 case $host_os in aix4.[012]|aix4.[012].*)
18117 # We only want to do this on AIX 4.2 and lower, the check
18118 # below for broken collect2 doesn't work under 4.3+
18119 collect2name=`${CC} -print-prog-name=collect2`
18120 if test -f "$collect2name" && \
18121 strings "$collect2name" | grep resolve_lib_name >/dev/null
18123 # We have reworked collect2
18124 hardcode_direct_GCJ=yes
18126 # We have old collect2
18127 hardcode_direct_GCJ=unsupported
18128 # It fails to find uninstalled libraries when the uninstalled
18129 # path is not listed in the libpath. Setting hardcode_minus_L
18130 # to unsupported forces relinking
18131 hardcode_minus_L_GCJ=yes
18132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133 hardcode_libdir_separator_GCJ=
18137 shared_flag='-shared'
18138 if test "$aix_use_runtimelinking" = yes; then
18139 shared_flag="$shared_flag "'${wl}-G'
18143 if test "$host_cpu" = ia64; then
18144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18145 # chokes on -Wl,-G. The following line is correct:
18148 if test "$aix_use_runtimelinking" = yes; then
18149 shared_flag='${wl}-G'
18151 shared_flag='${wl}-bM:SRE'
18156 # It seems that -bexpall does not export symbols beginning with
18157 # underscore (_), so it is better to generate a list of symbols to export.
18158 always_export_symbols_GCJ=yes
18159 if test "$aix_use_runtimelinking" = yes; then
18160 # Warning - without using the other runtime loading flags (-brtl),
18161 # -berok will link without error, but may produce a broken library.
18162 allow_undefined_flag_GCJ='-berok'
18163 # Determine the default libpath from the value encoded in an empty executable.
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest$ac_exeext &&
18196 $as_test_x conftest$ac_exeext; then
18198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18200 # Check for a 64-bit object if we didn't find anything.
18201 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; }
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18211 conftest$ac_exeext conftest.$ac_ext
18212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18214 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18215 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"
18217 if test "$host_cpu" = ia64; then
18218 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18219 allow_undefined_flag_GCJ="-z nodefs"
18220 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"
18222 # Determine the default libpath from the value encoded in an empty executable.
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext &&
18255 $as_test_x conftest$ac_exeext; then
18257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18259 # Check for a 64-bit object if we didn't find anything.
18260 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; }
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270 conftest$ac_exeext conftest.$ac_ext
18271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18273 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18274 # Warning - without using the other run time loading flags,
18275 # -berok will link without error, but may produce a broken library.
18276 no_undefined_flag_GCJ=' ${wl}-bernotok'
18277 allow_undefined_flag_GCJ=' ${wl}-berok'
18278 # Exported symbols can be pulled into shared objects from archives
18279 whole_archive_flag_spec_GCJ='$convenience'
18280 archive_cmds_need_lc_GCJ=yes
18281 # This is similar to how AIX traditionally builds its shared libraries.
18282 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'
18288 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)'
18289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18290 hardcode_minus_L_GCJ=yes
18291 # see comment about different semantics on the GNU ld section
18296 export_dynamic_flag_spec_GCJ=-rdynamic
18299 cygwin* | mingw* | pw32*)
18300 # When not using gcc, we currently assume that we are using
18301 # Microsoft Visual C++.
18302 # hardcode_libdir_flag_spec is actually meaningless, as there is
18303 # no search path for DLLs.
18304 hardcode_libdir_flag_spec_GCJ=' '
18305 allow_undefined_flag_GCJ=unsupported
18306 # Tell ltmain to make .lib files, not .a files.
18308 # Tell ltmain to make .dll files, not .so files.
18310 # FIXME: Setting linknames here is a bad hack.
18311 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18312 # The linker will automatically build a .lib file if we build a DLL.
18313 old_archive_From_new_cmds_GCJ='true'
18314 # FIXME: Should let the user specify the lib program.
18315 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18316 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18317 enable_shared_with_static_runtimes_GCJ=yes
18320 darwin* | rhapsody*)
18322 rhapsody* | darwin1.[012])
18323 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18326 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18327 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18329 case ${MACOSX_DEPLOYMENT_TARGET} in
18331 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18334 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18340 archive_cmds_need_lc_GCJ=no
18341 hardcode_direct_GCJ=no
18342 hardcode_automatic_GCJ=yes
18343 hardcode_shlibpath_var_GCJ=unsupported
18344 whole_archive_flag_spec_GCJ=''
18345 link_all_deplibs_GCJ=yes
18346 if test "$GCC" = yes ; then
18347 output_verbose_link_cmd='echo'
18348 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18349 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18350 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18351 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}'
18352 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}'
18354 case $cc_basename in
18356 output_verbose_link_cmd='echo'
18357 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18358 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18360 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}'
18361 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}'
18371 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18372 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18373 hardcode_shlibpath_var_GCJ=no
18380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18381 # support. Future versions do this automatically, but an explicit c++rt0.o
18382 # does not break anything, and helps significantly (at the cost of a little
18385 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18386 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18387 hardcode_direct_GCJ=yes
18388 hardcode_shlibpath_var_GCJ=no
18391 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18393 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18394 hardcode_direct_GCJ=yes
18395 hardcode_minus_L_GCJ=yes
18396 hardcode_shlibpath_var_GCJ=no
18399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18400 freebsd* | dragonfly*)
18401 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18402 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18403 hardcode_direct_GCJ=yes
18404 hardcode_shlibpath_var_GCJ=no
18408 if test "$GCC" = yes; then
18409 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'
18411 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'
18413 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18414 hardcode_libdir_separator_GCJ=:
18415 hardcode_direct_GCJ=yes
18417 # hardcode_minus_L: Not really in the search PATH,
18418 # but as the default location of the library.
18419 hardcode_minus_L_GCJ=yes
18420 export_dynamic_flag_spec_GCJ='${wl}-E'
18424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18425 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18427 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18429 if test "$with_gnu_ld" = no; then
18430 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18431 hardcode_libdir_separator_GCJ=:
18433 hardcode_direct_GCJ=yes
18434 export_dynamic_flag_spec_GCJ='${wl}-E'
18436 # hardcode_minus_L: Not really in the search PATH,
18437 # but as the default location of the library.
18438 hardcode_minus_L_GCJ=yes
18443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18446 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18449 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18452 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18458 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18461 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18464 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18468 if test "$with_gnu_ld" = no; then
18469 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18470 hardcode_libdir_separator_GCJ=:
18474 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18475 hardcode_direct_GCJ=no
18476 hardcode_shlibpath_var_GCJ=no
18479 hardcode_direct_GCJ=yes
18480 export_dynamic_flag_spec_GCJ='${wl}-E'
18482 # hardcode_minus_L: Not really in the search PATH,
18483 # but as the default location of the library.
18484 hardcode_minus_L_GCJ=yes
18490 irix5* | irix6* | nonstopux*)
18491 if test "$GCC" = yes; then
18492 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'
18494 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'
18495 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18498 hardcode_libdir_separator_GCJ=:
18499 link_all_deplibs_GCJ=yes
18502 netbsd* | netbsdelf*-gnu)
18503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18506 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18509 hardcode_direct_GCJ=yes
18510 hardcode_shlibpath_var_GCJ=no
18514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18515 hardcode_direct_GCJ=yes
18516 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18517 hardcode_libdir_separator_GCJ=:
18518 hardcode_shlibpath_var_GCJ=no
18522 hardcode_direct_GCJ=yes
18523 hardcode_shlibpath_var_GCJ=no
18524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18525 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18526 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18528 export_dynamic_flag_spec_GCJ='${wl}-E'
18531 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18532 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18536 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18537 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18544 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18545 hardcode_minus_L_GCJ=yes
18546 allow_undefined_flag_GCJ=unsupported
18547 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'
18548 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18552 if test "$GCC" = yes; then
18553 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18554 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'
18556 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18557 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'
18559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18560 hardcode_libdir_separator_GCJ=:
18563 osf4* | osf5*) # as osf3* with the addition of -msym flag
18564 if test "$GCC" = yes; then
18565 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18566 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'
18567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18569 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18570 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'
18571 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~
18572 $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'
18574 # Both c and cxx compiler support -rpath directly
18575 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18577 hardcode_libdir_separator_GCJ=:
18581 no_undefined_flag_GCJ=' -z text'
18582 if test "$GCC" = yes; then
18584 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18586 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18589 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18590 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18591 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18594 hardcode_shlibpath_var_GCJ=no
18596 solaris2.[0-5] | solaris2.[0-5].*) ;;
18598 # The compiler driver will combine linker options so we
18599 # cannot just pass the convience library names through
18600 # without $wl, iff we do not link with $LD.
18601 # Luckily, gcc supports the same syntax we need for Sun Studio.
18602 # Supported since Solaris 2.6 (maybe 2.5.1?)
18605 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18607 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' ;;
18610 link_all_deplibs_GCJ=yes
18614 if test "x$host_vendor" = xsequent; then
18615 # Use $CC to link under sequent, because it throws in some extra .o
18616 # files that make .init and .fini sections work.
18617 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18619 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18622 hardcode_direct_GCJ=yes
18623 hardcode_minus_L_GCJ=yes
18624 hardcode_shlibpath_var_GCJ=no
18628 case $host_vendor in
18630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18631 hardcode_direct_GCJ=yes # is this really true???
18634 ## LD is ld it makes a PLAMLIB
18635 ## CC just makes a GrossModule.
18636 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18637 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18638 hardcode_direct_GCJ=no
18641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18645 runpath_var='LD_RUN_PATH'
18646 hardcode_shlibpath_var_GCJ=no
18650 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18651 hardcode_shlibpath_var_GCJ=no
18652 export_dynamic_flag_spec_GCJ='-Bexport'
18656 if test -d /usr/nec; then
18657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18658 hardcode_shlibpath_var_GCJ=no
18659 runpath_var=LD_RUN_PATH
18660 hardcode_runpath_var=yes
18665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18666 no_undefined_flag_GCJ='${wl}-z,text'
18667 archive_cmds_need_lc_GCJ=no
18668 hardcode_shlibpath_var_GCJ=no
18669 runpath_var='LD_RUN_PATH'
18671 if test "$GCC" = yes; then
18672 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18673 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18675 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18676 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680 sysv5* | sco3.2v5* | sco5v6*)
18681 # Note: We can NOT use -z defs as we might desire, because we do not
18682 # link with -lc, and that would cause any symbols used from libc to
18683 # always be unresolved, which means just about no library would
18684 # ever link correctly. If we're not using GNU ld we use -z text
18685 # though, which does catch some bad symbols but isn't as heavy-handed
18687 no_undefined_flag_GCJ='${wl}-z,text'
18688 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18689 archive_cmds_need_lc_GCJ=no
18690 hardcode_shlibpath_var_GCJ=no
18691 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18692 hardcode_libdir_separator_GCJ=':'
18693 link_all_deplibs_GCJ=yes
18694 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18695 runpath_var='LD_RUN_PATH'
18697 if test "$GCC" = yes; then
18698 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18699 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18702 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18707 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18709 hardcode_shlibpath_var_GCJ=no
18718 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18719 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18720 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18723 # Do we need to explicitly link libc?
18725 case "x$archive_cmds_need_lc_GCJ" in
18727 # Assume -lc should be added
18728 archive_cmds_need_lc_GCJ=yes
18730 if test "$enable_shared" = yes && test "$GCC" = yes; then
18731 case $archive_cmds_GCJ in
18733 # FIXME: we may have to deal with multi-command sequences.
18736 # Test whether the compiler implicitly links with -lc since on some
18737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18738 # to ld, don't add -lc before -lgcc.
18739 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745 (eval $ac_compile) 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } 2>conftest.err; then
18751 libobjs=conftest.$ac_objext
18753 wl=$lt_prog_compiler_wl_GCJ
18754 pic_flag=$lt_prog_compiler_pic_GCJ
18760 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18761 allow_undefined_flag_GCJ=
18762 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18763 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }
18768 archive_cmds_need_lc_GCJ=no
18770 archive_cmds_need_lc_GCJ=yes
18772 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18774 cat conftest.err 1>&5
18777 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18778 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18785 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18787 library_names_spec=
18788 libname_spec='lib$name'
18792 postuninstall_cmds=
18796 shlibpath_overrides_runpath=unknown
18798 dynamic_linker="$host_os ld.so"
18799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18800 if test "$GCC" = yes; then
18801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18802 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18803 # if the path contains ";" then we assume it to be the separator
18804 # otherwise default to the standard path separator (i.e. ":") - it is
18805 # assumed that no part of a normal pathname contains ";" but that should
18806 # okay in the real world where ";" in dirpaths is itself problematic.
18807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18814 need_lib_prefix=unknown
18815 hardcode_into_libs=no
18817 # when you set need_version to no, make sure it does not cause -set_version
18818 # flags to be left without arguments
18819 need_version=unknown
18824 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18825 shlibpath_var=LIBPATH
18827 # AIX 3 has no versioning support, so we append a major version to the name.
18828 soname_spec='${libname}${release}${shared_ext}$major'
18835 hardcode_into_libs=yes
18836 if test "$host_cpu" = ia64; then
18837 # AIX 5 supports IA64
18838 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18839 shlibpath_var=LD_LIBRARY_PATH
18841 # With GCC up to 2.95.x, collect2 would create an import file
18842 # for dependence libraries. The import file would start with
18843 # the line `#! .'. This would cause the generated library to
18844 # depend on `.', always an invalid library. This was fixed in
18845 # development snapshots of GCC prior to 3.0.
18847 aix4 | aix4.[01] | aix4.[01].*)
18848 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18850 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18853 can_build_shared=no
18857 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18858 # soname into executable. Probably we can add versioning support to
18859 # collect2, so additional links can be useful in future.
18860 if test "$aix_use_runtimelinking" = yes; then
18861 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18862 # instead of lib<name>.a to let people know that these are not
18863 # typical AIX shared libraries.
18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 # We preserve .a as extension for shared libraries through AIX4.2
18867 # and later when we are not doing run time linking.
18868 library_names_spec='${libname}${release}.a $libname.a'
18869 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LIBPATH
18876 library_names_spec='$libname.ixlibrary $libname.a'
18877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18878 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'
18882 library_names_spec='${libname}${shared_ext}'
18883 dynamic_linker="$host_os ld.so"
18884 shlibpath_var=LIBRARY_PATH
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891 soname_spec='${libname}${release}${shared_ext}$major'
18892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18893 shlibpath_var=LD_LIBRARY_PATH
18894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18896 # the default ld.so.conf also contains /usr/contrib/lib and
18897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18898 # libtool to hard-code these into programs
18901 cygwin* | mingw* | pw32*)
18902 version_type=windows
18907 case $GCC,$host_os in
18908 yes,cygwin* | yes,mingw* | yes,pw32*)
18909 library_names_spec='$libname.dll.a'
18910 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18911 postinstall_cmds='base_file=`basename \${file}`~
18912 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18913 dldir=$destdir/`dirname \$dlpath`~
18914 test -d \$dldir || mkdir -p \$dldir~
18915 $install_prog $dir/$dlname \$dldir/$dlname~
18916 chmod a+x \$dldir/$dlname'
18917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18918 dlpath=$dir/\$dldll~
18920 shlibpath_overrides_runpath=yes
18924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18925 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18926 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18929 # MinGW DLLs use traditional 'lib' prefix
18930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18932 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18933 # It is most probably a Windows format PATH printed by
18934 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18935 # path with ; separators, and with drive letters. We can handle the
18936 # drive letters (cygwin fileutils understands them), so leave them,
18937 # especially as we might pass files found there to a mingw objdump,
18938 # which wouldn't understand a cygwinified path. Ahh.
18939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18945 # pw32 DLLs use 'pw' prefix rather than 'lib'
18946 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18952 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18955 dynamic_linker='Win32 ld.exe'
18956 # FIXME: first we should search . and the directory the executable is in
18960 darwin* | rhapsody*)
18961 dynamic_linker="$host_os dyld"
18962 version_type=darwin
18965 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18966 soname_spec='${libname}${release}${major}$shared_ext'
18967 shlibpath_overrides_runpath=yes
18968 shlibpath_var=DYLD_LIBRARY_PATH
18969 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18970 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18971 if test "$GCC" = yes; then
18972 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"`
18974 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18976 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18984 soname_spec='${libname}${release}${shared_ext}$major'
18985 shlibpath_var=LD_LIBRARY_PATH
18992 freebsd* | dragonfly*)
18993 # DragonFly does not have aout. When/if they implement a new
18994 # versioning mechanism, adjust this.
18995 if test -x /usr/bin/objformat; then
18996 objformat=`/usr/bin/objformat`
18999 freebsd[123]*) objformat=aout ;;
19000 *) objformat=elf ;;
19003 version_type=freebsd-$objformat
19004 case $version_type in
19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19015 shlibpath_var=LD_LIBRARY_PATH
19018 shlibpath_overrides_runpath=yes
19020 freebsd3.[01]* | freebsdelf3.[01]*)
19021 shlibpath_overrides_runpath=yes
19022 hardcode_into_libs=yes
19024 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19025 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19026 shlibpath_overrides_runpath=no
19027 hardcode_into_libs=yes
19029 freebsd*) # from 4.6 on
19030 shlibpath_overrides_runpath=yes
19031 hardcode_into_libs=yes
19040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19041 soname_spec='${libname}${release}${shared_ext}$major'
19042 shlibpath_var=LD_LIBRARY_PATH
19043 hardcode_into_libs=yes
19046 hpux9* | hpux10* | hpux11*)
19047 # Give a soname corresponding to the major version so that dld.sl refuses to
19048 # link against other versions.
19055 hardcode_into_libs=yes
19056 dynamic_linker="$host_os dld.so"
19057 shlibpath_var=LD_LIBRARY_PATH
19058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060 soname_spec='${libname}${release}${shared_ext}$major'
19061 if test "X$HPUX_IA64_MODE" = X32; then
19062 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19064 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19070 hardcode_into_libs=yes
19071 dynamic_linker="$host_os dld.sl"
19072 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19075 soname_spec='${libname}${release}${shared_ext}$major'
19076 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19081 dynamic_linker="$host_os dld.sl"
19082 shlibpath_var=SHLIB_PATH
19083 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19085 soname_spec='${libname}${release}${shared_ext}$major'
19088 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19089 postinstall_cmds='chmod 555 $lib'
19096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19097 soname_spec='${libname}${release}${shared_ext}$major'
19098 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19099 shlibpath_var=LD_LIBRARY_PATH
19100 shlibpath_overrides_runpath=no
19101 hardcode_into_libs=yes
19104 irix5* | irix6* | nonstopux*)
19106 nonstopux*) version_type=nonstopux ;;
19108 if test "$lt_cv_prog_gnu_ld" = yes; then
19116 soname_spec='${libname}${release}${shared_ext}$major'
19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19119 irix5* | nonstopux*)
19120 libsuff= shlibsuff=
19123 case $LD in # libtool.m4 will add one of these switches to LD
19124 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19125 libsuff= shlibsuff= libmagic=32-bit;;
19126 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19127 libsuff=32 shlibsuff=N32 libmagic=N32;;
19128 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19129 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19130 *) libsuff= shlibsuff= libmagic=never-match;;
19134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19135 shlibpath_overrides_runpath=no
19136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19138 hardcode_into_libs=yes
19141 # No shared lib support for Linux oldld, aout, or coff.
19142 linux*oldld* | linux*aout* | linux*coff*)
19146 # This must be Linux ELF.
19147 linux* | k*bsd*-gnu)
19151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19152 soname_spec='${libname}${release}${shared_ext}$major'
19153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19154 shlibpath_var=LD_LIBRARY_PATH
19155 shlibpath_overrides_runpath=no
19156 # This implies no fast_install, which is unacceptable.
19157 # Some rework will be needed to allow for fast_install
19158 # before this can be enabled.
19159 hardcode_into_libs=yes
19161 # Append ld.so.conf contents to the search path
19162 if test -f /etc/ld.so.conf; then
19163 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' ' '`
19164 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19167 # We used to test for /lib/ld.so.1 and disable shared libraries on
19168 # powerpc, because MkLinux only supported shared libraries with the
19169 # GNU dynamic linker. Since this was broken with cross compilers,
19170 # most powerpc-linux boxes support dynamic linking these days and
19171 # people can always --disable-shared, the test was removed, and we
19172 # assume the GNU/Linux dynamic linker is in use.
19173 dynamic_linker='GNU/Linux ld.so'
19180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19181 soname_spec='${libname}${release}${shared_ext}$major'
19182 shlibpath_var=LD_LIBRARY_PATH
19183 shlibpath_overrides_runpath=no
19184 hardcode_into_libs=yes
19185 dynamic_linker='NetBSD ld.elf_so'
19192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19195 dynamic_linker='NetBSD (a.out) ld.so'
19197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19198 soname_spec='${libname}${release}${shared_ext}$major'
19199 dynamic_linker='NetBSD ld.elf_so'
19201 shlibpath_var=LD_LIBRARY_PATH
19202 shlibpath_overrides_runpath=yes
19203 hardcode_into_libs=yes
19208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19209 shlibpath_var=LD_LIBRARY_PATH
19210 shlibpath_overrides_runpath=yes
19217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218 soname_spec='${libname}${release}${shared_ext}$major'
19219 shlibpath_var=LD_LIBRARY_PATH
19220 shlibpath_overrides_runpath=yes
19225 sys_lib_dlsearch_path_spec="/usr/lib"
19227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19230 *) need_version=no ;;
19232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19234 shlibpath_var=LD_LIBRARY_PATH
19235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19237 openbsd2.[89] | openbsd2.[89].*)
19238 shlibpath_overrides_runpath=no
19241 shlibpath_overrides_runpath=yes
19245 shlibpath_overrides_runpath=yes
19250 libname_spec='$name'
19253 library_names_spec='$libname${shared_ext} $libname.a'
19254 dynamic_linker='OS/2 ld.exe'
19255 shlibpath_var=LIBPATH
19258 osf3* | osf4* | osf5*)
19262 soname_spec='${libname}${release}${shared_ext}$major'
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19264 shlibpath_var=LD_LIBRARY_PATH
19265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 shlibpath_var=LD_LIBRARY_PATH
19276 shlibpath_overrides_runpath=yes
19277 hardcode_into_libs=yes
19278 # ldd complains unless libraries are executable
19279 postinstall_cmds='chmod +x $lib'
19284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19286 shlibpath_var=LD_LIBRARY_PATH
19287 shlibpath_overrides_runpath=yes
19288 if test "$with_gnu_ld" = yes; then
19296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19297 soname_spec='${libname}${release}${shared_ext}$major'
19298 shlibpath_var=LD_LIBRARY_PATH
19299 case $host_vendor in
19301 shlibpath_overrides_runpath=no
19303 export_dynamic_flag_spec='${wl}-Blargedynsym'
19304 runpath_var=LD_RUN_PATH
19312 shlibpath_overrides_runpath=no
19313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19319 if test -d /usr/nec ;then
19321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19322 soname_spec='$libname${shared_ext}.$major'
19323 shlibpath_var=LD_LIBRARY_PATH
19327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19328 version_type=freebsd-elf
19331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19332 soname_spec='${libname}${release}${shared_ext}$major'
19333 shlibpath_var=LD_LIBRARY_PATH
19334 hardcode_into_libs=yes
19335 if test "$with_gnu_ld" = yes; then
19336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19337 shlibpath_overrides_runpath=no
19339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19340 shlibpath_overrides_runpath=yes
19343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19347 sys_lib_dlsearch_path_spec='/usr/lib'
19352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19353 soname_spec='${libname}${release}${shared_ext}$major'
19354 shlibpath_var=LD_LIBRARY_PATH
19361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19362 echo "${ECHO_T}$dynamic_linker" >&6; }
19363 test "$dynamic_linker" = no && can_build_shared=no
19365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19366 if test "$GCC" = yes; then
19367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19372 hardcode_action_GCJ=
19373 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19374 test -n "$runpath_var_GCJ" || \
19375 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19377 # We can hardcode non-existant directories.
19378 if test "$hardcode_direct_GCJ" != no &&
19379 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19380 # have to relink, otherwise we might link with an installed library
19381 # when we should be linking with a yet-to-be-installed one
19382 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19383 test "$hardcode_minus_L_GCJ" != no; then
19384 # Linking always hardcodes the temporary library directory.
19385 hardcode_action_GCJ=relink
19387 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19388 hardcode_action_GCJ=immediate
19391 # We cannot hardcode anything, or else we can only hardcode existing
19393 hardcode_action_GCJ=unsupported
19395 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19396 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19398 if test "$hardcode_action_GCJ" = relink; then
19399 # Fast installation is not supported
19400 enable_fast_install=no
19401 elif test "$shlibpath_overrides_runpath" = yes ||
19402 test "$enable_shared" = no; then
19403 # Fast installation is not necessary
19404 enable_fast_install=needless
19408 # The else clause should only fire when bootstrapping the
19409 # libtool distribution, otherwise you forgot to ship ltmain.sh
19410 # with your package, and you will get complaints that there are
19411 # no rules to generate ltmain.sh.
19412 if test -f "$ltmain"; then
19413 # See if we are running on zsh, and set the options which allow our commands through
19414 # without removal of \ escapes.
19415 if test -n "${ZSH_VERSION+set}" ; then
19416 setopt NO_GLOB_SUBST
19418 # Now quote all the things that may contain metacharacters while being
19419 # careful not to overquote the AC_SUBSTed values. We take copies of the
19420 # variables and quote the copies for generation of the libtool script.
19421 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19423 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19424 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19425 deplibs_check_method reload_flag reload_cmds need_locks \
19426 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19427 lt_cv_sys_global_symbol_to_c_name_address \
19428 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19429 old_postinstall_cmds old_postuninstall_cmds \
19433 lt_prog_compiler_wl_GCJ \
19434 lt_prog_compiler_pic_GCJ \
19435 lt_prog_compiler_static_GCJ \
19436 lt_prog_compiler_no_builtin_flag_GCJ \
19437 export_dynamic_flag_spec_GCJ \
19438 thread_safe_flag_spec_GCJ \
19439 whole_archive_flag_spec_GCJ \
19440 enable_shared_with_static_runtimes_GCJ \
19441 old_archive_cmds_GCJ \
19442 old_archive_from_new_cmds_GCJ \
19443 predep_objects_GCJ \
19444 postdep_objects_GCJ \
19447 compiler_lib_search_path_GCJ \
19449 archive_expsym_cmds_GCJ \
19450 postinstall_cmds_GCJ \
19451 postuninstall_cmds_GCJ \
19452 old_archive_from_expsyms_cmds_GCJ \
19453 allow_undefined_flag_GCJ \
19454 no_undefined_flag_GCJ \
19455 export_symbols_cmds_GCJ \
19456 hardcode_libdir_flag_spec_GCJ \
19457 hardcode_libdir_flag_spec_ld_GCJ \
19458 hardcode_libdir_separator_GCJ \
19459 hardcode_automatic_GCJ \
19461 module_expsym_cmds_GCJ \
19462 lt_cv_prog_compiler_c_o_GCJ \
19463 exclude_expsyms_GCJ \
19464 include_expsyms_GCJ; do
19467 old_archive_cmds_GCJ | \
19468 old_archive_from_new_cmds_GCJ | \
19469 archive_cmds_GCJ | \
19470 archive_expsym_cmds_GCJ | \
19471 module_cmds_GCJ | \
19472 module_expsym_cmds_GCJ | \
19473 old_archive_from_expsyms_cmds_GCJ | \
19474 export_symbols_cmds_GCJ | \
19475 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19476 postinstall_cmds | postuninstall_cmds | \
19477 old_postinstall_cmds | old_postuninstall_cmds | \
19478 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19479 # Double-quote double-evaled strings.
19480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19489 *'\$0 --fallback-echo"')
19490 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19496 cat <<__EOF__ >> "$cfgfile"
19497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19501 # Shell to use when invoking shell scripts.
19504 # Whether or not to build shared libraries.
19505 build_libtool_libs=$enable_shared
19507 # Whether or not to build static libraries.
19508 build_old_libs=$enable_static
19510 # Whether or not to add -lc for building shared libraries.
19511 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19513 # Whether or not to disallow shared libs when runtime libs are static
19514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19516 # Whether or not to optimize for fast installation.
19517 fast_install=$enable_fast_install
19520 host_alias=$host_alias
19524 # The build system.
19525 build_alias=$build_alias
19529 # An echo program that does not interpret backslashes.
19534 AR_FLAGS=$lt_AR_FLAGS
19539 # LTCC compiler flags.
19540 LTCFLAGS=$lt_LTCFLAGS
19542 # A language-specific compiler.
19543 CC=$lt_compiler_GCJ
19545 # Is the compiler the GNU C compiler?
19551 # The linker used to build libraries.
19554 # Whether we need hard or soft links.
19557 # A BSD-compatible nm program.
19560 # A symbol stripping program
19563 # Used to examine libraries when file_magic_cmd begins "file"
19564 MAGIC_CMD=$MAGIC_CMD
19566 # Used on cygwin: DLL creation program.
19569 # Used on cygwin: object dumper.
19572 # Used on cygwin: assembler.
19575 # The name of the directory that contains temporary libtool files.
19578 # How to create reloadable object files.
19579 reload_flag=$lt_reload_flag
19580 reload_cmds=$lt_reload_cmds
19582 # How to pass a linker flag through the compiler.
19583 wl=$lt_lt_prog_compiler_wl_GCJ
19585 # Object file suffix (normally "o").
19586 objext="$ac_objext"
19588 # Old archive suffix (normally "a").
19591 # Shared library suffix (normally ".so").
19592 shrext_cmds='$shrext_cmds'
19594 # Executable file suffix (normally "").
19597 # Additional compiler flags for building library objects.
19598 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19601 # What is the maximum length of a command?
19602 max_cmd_len=$lt_cv_sys_max_cmd_len
19604 # Does compiler simultaneously support -c and -o options?
19605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19607 # Must we lock files when doing compilation?
19608 need_locks=$lt_need_locks
19610 # Do we need the lib prefix for modules?
19611 need_lib_prefix=$need_lib_prefix
19613 # Do we need a version for libraries?
19614 need_version=$need_version
19616 # Whether dlopen is supported.
19617 dlopen_support=$enable_dlopen
19619 # Whether dlopen of programs is supported.
19620 dlopen_self=$enable_dlopen_self
19622 # Whether dlopen of statically linked programs is supported.
19623 dlopen_self_static=$enable_dlopen_self_static
19625 # Compiler flag to prevent dynamic linking.
19626 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19628 # Compiler flag to turn off builtin functions.
19629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19631 # Compiler flag to allow reflexive dlopens.
19632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19634 # Compiler flag to generate shared objects directly from archives.
19635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19637 # Compiler flag to generate thread-safe objects.
19638 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19640 # Library versioning type.
19641 version_type=$version_type
19643 # Format of library name prefix.
19644 libname_spec=$lt_libname_spec
19646 # List of archive names. First name is the real one, the rest are links.
19647 # The last name is the one that the linker finds with -lNAME.
19648 library_names_spec=$lt_library_names_spec
19650 # The coded name of the library, if different from the real name.
19651 soname_spec=$lt_soname_spec
19653 # Commands used to build and install an old-style archive.
19655 old_archive_cmds=$lt_old_archive_cmds_GCJ
19656 old_postinstall_cmds=$lt_old_postinstall_cmds
19657 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19659 # Create an old-style archive from a shared archive.
19660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19662 # Create a temporary old-style archive to link instead of a shared archive.
19663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19665 # Commands used to build and install a shared archive.
19666 archive_cmds=$lt_archive_cmds_GCJ
19667 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19668 postinstall_cmds=$lt_postinstall_cmds
19669 postuninstall_cmds=$lt_postuninstall_cmds
19671 # Commands used to build a loadable module (assumed same as above if empty)
19672 module_cmds=$lt_module_cmds_GCJ
19673 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19675 # Commands to strip libraries.
19676 old_striplib=$lt_old_striplib
19677 striplib=$lt_striplib
19679 # Dependencies to place before the objects being linked to create a
19681 predep_objects=$lt_predep_objects_GCJ
19683 # Dependencies to place after the objects being linked to create a
19685 postdep_objects=$lt_postdep_objects_GCJ
19687 # Dependencies to place before the objects being linked to create a
19689 predeps=$lt_predeps_GCJ
19691 # Dependencies to place after the objects being linked to create a
19693 postdeps=$lt_postdeps_GCJ
19695 # The library search path used internally by the compiler when linking
19696 # a shared library.
19697 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19699 # Method to check whether dependent libraries are shared objects.
19700 deplibs_check_method=$lt_deplibs_check_method
19702 # Command to use when deplibs_check_method == file_magic.
19703 file_magic_cmd=$lt_file_magic_cmd
19705 # Flag that allows shared libraries with undefined symbols to be built.
19706 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19708 # Flag that forces no undefined symbols.
19709 no_undefined_flag=$lt_no_undefined_flag_GCJ
19711 # Commands used to finish a libtool library installation in a directory.
19712 finish_cmds=$lt_finish_cmds
19714 # Same as above, but a single script fragment to be evaled but not shown.
19715 finish_eval=$lt_finish_eval
19717 # Take the output of nm and produce a listing of raw symbols and C names.
19718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19720 # Transform the output of nm in a proper C declaration
19721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19723 # Transform the output of nm in a C name address pair
19724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19726 # This is the shared library runtime path variable.
19727 runpath_var=$runpath_var
19729 # This is the shared library path variable.
19730 shlibpath_var=$shlibpath_var
19732 # Is shlibpath searched before the hard-coded library search path?
19733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19735 # How to hardcode a shared library path into an executable.
19736 hardcode_action=$hardcode_action_GCJ
19738 # Whether we should hardcode library paths into libraries.
19739 hardcode_into_libs=$hardcode_into_libs
19741 # Flag to hardcode \$libdir into a binary during linking.
19742 # This must work even if \$libdir does not exist.
19743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19745 # If ld is used when linking, flag to hardcode \$libdir into
19746 # a binary during linking. This must work even if \$libdir does
19748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19750 # Whether we need a single -rpath flag with a separated argument.
19751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19754 # resulting binary.
19755 hardcode_direct=$hardcode_direct_GCJ
19757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19758 # resulting binary.
19759 hardcode_minus_L=$hardcode_minus_L_GCJ
19761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19762 # the resulting binary.
19763 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19765 # Set to yes if building a shared library automatically hardcodes DIR into the library
19766 # and all subsequent libraries and executables linked against it.
19767 hardcode_automatic=$hardcode_automatic_GCJ
19769 # Variables whose values should be saved in libtool wrapper scripts and
19770 # restored at relink time.
19771 variables_saved_for_relink="$variables_saved_for_relink"
19773 # Whether libtool must link a program against all its dependency libraries.
19774 link_all_deplibs=$link_all_deplibs_GCJ
19776 # Compile-time system search path for libraries
19777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19779 # Run-time system search path for libraries
19780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19782 # Fix the shell variable \$srcfile for the compiler.
19783 fix_srcfile_path="$fix_srcfile_path_GCJ"
19785 # Set to yes if exported symbols are required.
19786 always_export_symbols=$always_export_symbols_GCJ
19788 # The commands to list exported symbols.
19789 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19791 # The commands to extract the exported symbol list from a shared archive.
19792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19794 # Symbols that should not be listed in the preloaded symbols.
19795 exclude_expsyms=$lt_exclude_expsyms_GCJ
19797 # Symbols that must always be exported.
19798 include_expsyms=$lt_include_expsyms_GCJ
19800 # ### END LIBTOOL TAG CONFIG: $tagname
19806 # If there is no Makefile yet, we rely on a make rule to execute
19807 # `config.status --recheck' to rerun these tests and create the
19808 # libtool script then.
19809 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19810 if test -f "$ltmain_in"; then
19811 test -f Makefile && make "$ltmain"
19817 ac_cpp='$CPP $CPPFLAGS'
19818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19832 # Source file extension for RC test sources.
19835 # Object file extension for compiled RC test sources.
19839 # Code to be used in simple compile tests
19840 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19842 # Code to be used in simple link tests
19843 lt_simple_link_test_code="$lt_simple_compile_test_code"
19845 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19847 # If no C compiler was specified, use CC.
19850 # If no C compiler flags were specified, use CFLAGS.
19851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19853 # Allow CC to be a program name with arguments.
19857 # save warnings/boilerplate of simple test code
19858 ac_outfile=conftest.$ac_objext
19859 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19861 _lt_compiler_boilerplate=`cat conftest.err`
19864 ac_outfile=conftest.$ac_objext
19865 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19867 _lt_linker_boilerplate=`cat conftest.err`
19871 # Allow CC to be a program name with arguments.
19876 for cc_temp in $compiler""; do
19878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19886 lt_cv_prog_compiler_c_o_RC=yes
19888 # The else clause should only fire when bootstrapping the
19889 # libtool distribution, otherwise you forgot to ship ltmain.sh
19890 # with your package, and you will get complaints that there are
19891 # no rules to generate ltmain.sh.
19892 if test -f "$ltmain"; then
19893 # See if we are running on zsh, and set the options which allow our commands through
19894 # without removal of \ escapes.
19895 if test -n "${ZSH_VERSION+set}" ; then
19896 setopt NO_GLOB_SUBST
19898 # Now quote all the things that may contain metacharacters while being
19899 # careful not to overquote the AC_SUBSTed values. We take copies of the
19900 # variables and quote the copies for generation of the libtool script.
19901 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19903 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19904 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19905 deplibs_check_method reload_flag reload_cmds need_locks \
19906 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19907 lt_cv_sys_global_symbol_to_c_name_address \
19908 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19909 old_postinstall_cmds old_postuninstall_cmds \
19913 lt_prog_compiler_wl_RC \
19914 lt_prog_compiler_pic_RC \
19915 lt_prog_compiler_static_RC \
19916 lt_prog_compiler_no_builtin_flag_RC \
19917 export_dynamic_flag_spec_RC \
19918 thread_safe_flag_spec_RC \
19919 whole_archive_flag_spec_RC \
19920 enable_shared_with_static_runtimes_RC \
19921 old_archive_cmds_RC \
19922 old_archive_from_new_cmds_RC \
19923 predep_objects_RC \
19924 postdep_objects_RC \
19927 compiler_lib_search_path_RC \
19929 archive_expsym_cmds_RC \
19930 postinstall_cmds_RC \
19931 postuninstall_cmds_RC \
19932 old_archive_from_expsyms_cmds_RC \
19933 allow_undefined_flag_RC \
19934 no_undefined_flag_RC \
19935 export_symbols_cmds_RC \
19936 hardcode_libdir_flag_spec_RC \
19937 hardcode_libdir_flag_spec_ld_RC \
19938 hardcode_libdir_separator_RC \
19939 hardcode_automatic_RC \
19941 module_expsym_cmds_RC \
19942 lt_cv_prog_compiler_c_o_RC \
19943 exclude_expsyms_RC \
19944 include_expsyms_RC; do
19947 old_archive_cmds_RC | \
19948 old_archive_from_new_cmds_RC | \
19949 archive_cmds_RC | \
19950 archive_expsym_cmds_RC | \
19952 module_expsym_cmds_RC | \
19953 old_archive_from_expsyms_cmds_RC | \
19954 export_symbols_cmds_RC | \
19955 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19956 postinstall_cmds | postuninstall_cmds | \
19957 old_postinstall_cmds | old_postuninstall_cmds | \
19958 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19959 # Double-quote double-evaled strings.
19960 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19969 *'\$0 --fallback-echo"')
19970 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19976 cat <<__EOF__ >> "$cfgfile"
19977 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19981 # Shell to use when invoking shell scripts.
19984 # Whether or not to build shared libraries.
19985 build_libtool_libs=$enable_shared
19987 # Whether or not to build static libraries.
19988 build_old_libs=$enable_static
19990 # Whether or not to add -lc for building shared libraries.
19991 build_libtool_need_lc=$archive_cmds_need_lc_RC
19993 # Whether or not to disallow shared libs when runtime libs are static
19994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19996 # Whether or not to optimize for fast installation.
19997 fast_install=$enable_fast_install
20000 host_alias=$host_alias
20004 # The build system.
20005 build_alias=$build_alias
20009 # An echo program that does not interpret backslashes.
20014 AR_FLAGS=$lt_AR_FLAGS
20019 # LTCC compiler flags.
20020 LTCFLAGS=$lt_LTCFLAGS
20022 # A language-specific compiler.
20025 # Is the compiler the GNU C compiler?
20031 # The linker used to build libraries.
20034 # Whether we need hard or soft links.
20037 # A BSD-compatible nm program.
20040 # A symbol stripping program
20043 # Used to examine libraries when file_magic_cmd begins "file"
20044 MAGIC_CMD=$MAGIC_CMD
20046 # Used on cygwin: DLL creation program.
20049 # Used on cygwin: object dumper.
20052 # Used on cygwin: assembler.
20055 # The name of the directory that contains temporary libtool files.
20058 # How to create reloadable object files.
20059 reload_flag=$lt_reload_flag
20060 reload_cmds=$lt_reload_cmds
20062 # How to pass a linker flag through the compiler.
20063 wl=$lt_lt_prog_compiler_wl_RC
20065 # Object file suffix (normally "o").
20066 objext="$ac_objext"
20068 # Old archive suffix (normally "a").
20071 # Shared library suffix (normally ".so").
20072 shrext_cmds='$shrext_cmds'
20074 # Executable file suffix (normally "").
20077 # Additional compiler flags for building library objects.
20078 pic_flag=$lt_lt_prog_compiler_pic_RC
20081 # What is the maximum length of a command?
20082 max_cmd_len=$lt_cv_sys_max_cmd_len
20084 # Does compiler simultaneously support -c and -o options?
20085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20087 # Must we lock files when doing compilation?
20088 need_locks=$lt_need_locks
20090 # Do we need the lib prefix for modules?
20091 need_lib_prefix=$need_lib_prefix
20093 # Do we need a version for libraries?
20094 need_version=$need_version
20096 # Whether dlopen is supported.
20097 dlopen_support=$enable_dlopen
20099 # Whether dlopen of programs is supported.
20100 dlopen_self=$enable_dlopen_self
20102 # Whether dlopen of statically linked programs is supported.
20103 dlopen_self_static=$enable_dlopen_self_static
20105 # Compiler flag to prevent dynamic linking.
20106 link_static_flag=$lt_lt_prog_compiler_static_RC
20108 # Compiler flag to turn off builtin functions.
20109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20111 # Compiler flag to allow reflexive dlopens.
20112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20114 # Compiler flag to generate shared objects directly from archives.
20115 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20117 # Compiler flag to generate thread-safe objects.
20118 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20120 # Library versioning type.
20121 version_type=$version_type
20123 # Format of library name prefix.
20124 libname_spec=$lt_libname_spec
20126 # List of archive names. First name is the real one, the rest are links.
20127 # The last name is the one that the linker finds with -lNAME.
20128 library_names_spec=$lt_library_names_spec
20130 # The coded name of the library, if different from the real name.
20131 soname_spec=$lt_soname_spec
20133 # Commands used to build and install an old-style archive.
20135 old_archive_cmds=$lt_old_archive_cmds_RC
20136 old_postinstall_cmds=$lt_old_postinstall_cmds
20137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20139 # Create an old-style archive from a shared archive.
20140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20142 # Create a temporary old-style archive to link instead of a shared archive.
20143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20145 # Commands used to build and install a shared archive.
20146 archive_cmds=$lt_archive_cmds_RC
20147 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20148 postinstall_cmds=$lt_postinstall_cmds
20149 postuninstall_cmds=$lt_postuninstall_cmds
20151 # Commands used to build a loadable module (assumed same as above if empty)
20152 module_cmds=$lt_module_cmds_RC
20153 module_expsym_cmds=$lt_module_expsym_cmds_RC
20155 # Commands to strip libraries.
20156 old_striplib=$lt_old_striplib
20157 striplib=$lt_striplib
20159 # Dependencies to place before the objects being linked to create a
20161 predep_objects=$lt_predep_objects_RC
20163 # Dependencies to place after the objects being linked to create a
20165 postdep_objects=$lt_postdep_objects_RC
20167 # Dependencies to place before the objects being linked to create a
20169 predeps=$lt_predeps_RC
20171 # Dependencies to place after the objects being linked to create a
20173 postdeps=$lt_postdeps_RC
20175 # The library search path used internally by the compiler when linking
20176 # a shared library.
20177 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20179 # Method to check whether dependent libraries are shared objects.
20180 deplibs_check_method=$lt_deplibs_check_method
20182 # Command to use when deplibs_check_method == file_magic.
20183 file_magic_cmd=$lt_file_magic_cmd
20185 # Flag that allows shared libraries with undefined symbols to be built.
20186 allow_undefined_flag=$lt_allow_undefined_flag_RC
20188 # Flag that forces no undefined symbols.
20189 no_undefined_flag=$lt_no_undefined_flag_RC
20191 # Commands used to finish a libtool library installation in a directory.
20192 finish_cmds=$lt_finish_cmds
20194 # Same as above, but a single script fragment to be evaled but not shown.
20195 finish_eval=$lt_finish_eval
20197 # Take the output of nm and produce a listing of raw symbols and C names.
20198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20200 # Transform the output of nm in a proper C declaration
20201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20203 # Transform the output of nm in a C name address pair
20204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20206 # This is the shared library runtime path variable.
20207 runpath_var=$runpath_var
20209 # This is the shared library path variable.
20210 shlibpath_var=$shlibpath_var
20212 # Is shlibpath searched before the hard-coded library search path?
20213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20215 # How to hardcode a shared library path into an executable.
20216 hardcode_action=$hardcode_action_RC
20218 # Whether we should hardcode library paths into libraries.
20219 hardcode_into_libs=$hardcode_into_libs
20221 # Flag to hardcode \$libdir into a binary during linking.
20222 # This must work even if \$libdir does not exist.
20223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20225 # If ld is used when linking, flag to hardcode \$libdir into
20226 # a binary during linking. This must work even if \$libdir does
20228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20230 # Whether we need a single -rpath flag with a separated argument.
20231 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20234 # resulting binary.
20235 hardcode_direct=$hardcode_direct_RC
20237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20238 # resulting binary.
20239 hardcode_minus_L=$hardcode_minus_L_RC
20241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20242 # the resulting binary.
20243 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20245 # Set to yes if building a shared library automatically hardcodes DIR into the library
20246 # and all subsequent libraries and executables linked against it.
20247 hardcode_automatic=$hardcode_automatic_RC
20249 # Variables whose values should be saved in libtool wrapper scripts and
20250 # restored at relink time.
20251 variables_saved_for_relink="$variables_saved_for_relink"
20253 # Whether libtool must link a program against all its dependency libraries.
20254 link_all_deplibs=$link_all_deplibs_RC
20256 # Compile-time system search path for libraries
20257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20259 # Run-time system search path for libraries
20260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20262 # Fix the shell variable \$srcfile for the compiler.
20263 fix_srcfile_path="$fix_srcfile_path_RC"
20265 # Set to yes if exported symbols are required.
20266 always_export_symbols=$always_export_symbols_RC
20268 # The commands to list exported symbols.
20269 export_symbols_cmds=$lt_export_symbols_cmds_RC
20271 # The commands to extract the exported symbol list from a shared archive.
20272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20274 # Symbols that should not be listed in the preloaded symbols.
20275 exclude_expsyms=$lt_exclude_expsyms_RC
20277 # Symbols that must always be exported.
20278 include_expsyms=$lt_include_expsyms_RC
20280 # ### END LIBTOOL TAG CONFIG: $tagname
20286 # If there is no Makefile yet, we rely on a make rule to execute
20287 # `config.status --recheck' to rerun these tests and create the
20288 # libtool script then.
20289 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20290 if test -f "$ltmain_in"; then
20291 test -f Makefile && make "$ltmain"
20297 ac_cpp='$CPP $CPPFLAGS'
20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20307 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20308 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20309 { (exit 1); exit 1; }; }
20313 # Append the new tag name to the list of available tags.
20314 if test -n "$tagname" ; then
20315 available_tags="$available_tags $tagname"
20321 # Now substitute the updated list of available tags.
20322 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20323 mv "${ofile}T" "$ofile"
20327 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20328 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20329 { (exit 1); exit 1; }; }
20335 # This can be used to rebuild libtool when needed
20336 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20338 # Always use our own libtool.
20339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20341 # Prevent multiple expansion
20363 if test "x$cross_compiling" = "xno"; then
20364 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20366 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20371 if test -n "$ac_tool_prefix"; then
20372 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20373 set dummy ${ac_tool_prefix}ar; ac_word=$2
20374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20376 if test "${ac_cv_prog_AR+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 if test -n "$AR"; then
20380 ac_cv_prog_AR="$AR" # Let the user override the test.
20382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20383 for as_dir in $PATH
20386 test -z "$as_dir" && as_dir=.
20387 for ac_exec_ext in '' $ac_executable_extensions; do
20388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20389 ac_cv_prog_AR="${ac_tool_prefix}ar"
20390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20400 if test -n "$AR"; then
20401 { echo "$as_me:$LINENO: result: $AR" >&5
20402 echo "${ECHO_T}$AR" >&6; }
20404 { echo "$as_me:$LINENO: result: no" >&5
20405 echo "${ECHO_T}no" >&6; }
20410 if test -z "$ac_cv_prog_AR"; then
20412 # Extract the first word of "ar", so it can be a program name with args.
20413 set dummy ar; ac_word=$2
20414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20416 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 if test -n "$ac_ct_AR"; then
20420 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20423 for as_dir in $PATH
20426 test -z "$as_dir" && as_dir=.
20427 for ac_exec_ext in '' $ac_executable_extensions; do
20428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20429 ac_cv_prog_ac_ct_AR="ar"
20430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20439 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20440 if test -n "$ac_ct_AR"; then
20441 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20442 echo "${ECHO_T}$ac_ct_AR" >&6; }
20444 { echo "$as_me:$LINENO: result: no" >&5
20445 echo "${ECHO_T}no" >&6; }
20448 if test "x$ac_ct_AR" = x; then
20451 case $cross_compiling:$ac_tool_warned in
20453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20454 whose name does not start with the host triplet. If you think this
20455 configuration is useful to you, please write to autoconf@gnu.org." >&5
20456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20457 whose name does not start with the host triplet. If you think this
20458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20459 ac_tool_warned=yes ;;
20464 AR="$ac_cv_prog_AR"
20467 if test -n "$ac_tool_prefix"; then
20468 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20469 set dummy ${ac_tool_prefix}ld; ac_word=$2
20470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20472 if test "${ac_cv_prog_LD+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 if test -n "$LD"; then
20476 ac_cv_prog_LD="$LD" # Let the user override the test.
20478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in $PATH
20482 test -z "$as_dir" && as_dir=.
20483 for ac_exec_ext in '' $ac_executable_extensions; do
20484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20485 ac_cv_prog_LD="${ac_tool_prefix}ld"
20486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20496 if test -n "$LD"; then
20497 { echo "$as_me:$LINENO: result: $LD" >&5
20498 echo "${ECHO_T}$LD" >&6; }
20500 { echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6; }
20506 if test -z "$ac_cv_prog_LD"; then
20508 # Extract the first word of "ld", so it can be a program name with args.
20509 set dummy ld; ac_word=$2
20510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20512 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 if test -n "$ac_ct_LD"; then
20516 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519 for as_dir in $PATH
20522 test -z "$as_dir" && as_dir=.
20523 for ac_exec_ext in '' $ac_executable_extensions; do
20524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20525 ac_cv_prog_ac_ct_LD="ld"
20526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20535 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20536 if test -n "$ac_ct_LD"; then
20537 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20538 echo "${ECHO_T}$ac_ct_LD" >&6; }
20540 { echo "$as_me:$LINENO: result: no" >&5
20541 echo "${ECHO_T}no" >&6; }
20544 if test "x$ac_ct_LD" = x; then
20547 case $cross_compiling:$ac_tool_warned in
20549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20550 whose name does not start with the host triplet. If you think this
20551 configuration is useful to you, please write to autoconf@gnu.org." >&5
20552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20553 whose name does not start with the host triplet. If you think this
20554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20555 ac_tool_warned=yes ;;
20560 LD="$ac_cv_prog_LD"
20564 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20566 if test "${ac_cv_header_stdc+set}" = set; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 #include <stdlib.h>
20576 #include <stdarg.h>
20577 #include <string.h>
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_compile") 2>conftest.er1
20597 grep -v '^ *+' conftest.er1 >conftest.err
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && {
20602 test -z "$ac_c_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest.$ac_objext; then
20605 ac_cv_header_stdc=yes
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20610 ac_cv_header_stdc=no
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615 if test $ac_cv_header_stdc = yes; then
20616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <string.h>
20626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20627 $EGREP "memchr" >/dev/null 2>&1; then
20630 ac_cv_header_stdc=no
20636 if test $ac_cv_header_stdc = yes; then
20637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20638 cat >conftest.$ac_ext <<_ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20644 #include <stdlib.h>
20647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20648 $EGREP "free" >/dev/null 2>&1; then
20651 ac_cv_header_stdc=no
20657 if test $ac_cv_header_stdc = yes; then
20658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20659 if test "$cross_compiling" = yes; then
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 #include <stdlib.h>
20670 #if ((' ' & 0x0FF) == 0x020)
20671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20674 # define ISLOWER(c) \
20675 (('a' <= (c) && (c) <= 'i') \
20676 || ('j' <= (c) && (c) <= 'r') \
20677 || ('s' <= (c) && (c) <= 'z'))
20678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20686 for (i = 0; i < 256; i++)
20687 if (XOR (islower (i), ISLOWER (i))
20688 || toupper (i) != TOUPPER (i))
20693 rm -f conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_link") 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20715 echo "$as_me: program exited with status $ac_status" >&5
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ( exit $ac_status )
20720 ac_cv_header_stdc=no
20722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20729 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20730 if test $ac_cv_header_stdc = yes; then
20732 cat >>confdefs.h <<\_ACEOF
20733 @%:@define STDC_HEADERS 1
20739 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20740 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20741 if test "${knfsd_cv_glibc2+set}" = set; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20751 #include <features.h>
20752 #if !defined(__GLIBC__)
20757 if { (ac_try="$ac_cpp conftest.$ac_ext"
20758 case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20765 grep -v '^ *+' conftest.er1 >conftest.err
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } >/dev/null && {
20770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20771 test ! -s conftest.err
20773 knfsd_cv_glibc2=yes
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20781 rm -f conftest.err conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20785 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20786 if test $knfsd_cv_glibc2 = yes; then
20787 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20788 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20792 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20793 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20794 if test "${knfsd_cv_bsd_signals+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 if test "$cross_compiling" = yes; then
20798 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20799 See \`config.log' for more details." >&5
20800 echo "$as_me: error: cannot run test program while cross compiling
20801 See \`config.log' for more details." >&2;}
20802 { (exit 1); exit 1; }; }
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20811 #include <signal.h>
20812 #include <unistd.h>
20813 #include <sys/wait.h>
20815 static int counter = 0;
20816 static RETSIGTYPE handler(int num) { counter++; }
20821 if ((s = fork()) < 0) return 1;
20823 if (wait(&s) < 0) return 1;
20824 return WIFSIGNALED(s)? 1 : 0;
20827 signal(SIGHUP, handler);
20828 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20829 return (counter == 2)? 0 : 1;
20833 rm -f conftest$ac_exeext
20834 if { (ac_try="$ac_link"
20835 case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_link") 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20844 { (case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_try") 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 knfsd_cv_bsd_signals=yes
20855 echo "$as_me: program exited with status $ac_status" >&5
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ( exit $ac_status )
20860 knfsd_cv_bsd_signals=no
20862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20867 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20868 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20869 test $knfsd_cv_bsd_signals = yes &&
20870 cat >>confdefs.h <<\_ACEOF
20871 @%:@define HAVE_BSD_SIGNALS 1
20876 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20877 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20878 if test "${ac_cv_func_gethostbyname+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20889 #define gethostbyname innocuous_gethostbyname
20891 /* System header to define __stub macros and hopefully few prototypes,
20892 which can conflict with char gethostbyname (); below.
20893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20894 <limits.h> exists even on freestanding compilers. */
20897 # include <limits.h>
20899 # include <assert.h>
20902 #undef gethostbyname
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20910 char gethostbyname ();
20911 /* The GNU C library defines this for functions which it implements
20912 to always fail with ENOSYS. Some functions are actually named
20913 something starting with __ and the normal name is an alias. */
20914 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20921 return gethostbyname ();
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (ac_try="$ac_link"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_link") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest$ac_exeext &&
20943 $as_test_x conftest$ac_exeext; then
20944 ac_cv_func_gethostbyname=yes
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ac_cv_func_gethostbyname=no
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953 conftest$ac_exeext conftest.$ac_ext
20955 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20956 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20957 if test $ac_cv_func_gethostbyname = yes; then
20960 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20961 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20962 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 ac_check_lib_save_LIBS=$LIBS
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20974 /* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20980 char gethostbyname ();
20984 return gethostbyname ();
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_link") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest$ac_exeext &&
21006 $as_test_x conftest$ac_exeext; then
21007 ac_cv_lib_nsl_gethostbyname=yes
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_cv_lib_nsl_gethostbyname=no
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016 conftest$ac_exeext conftest.$ac_ext
21017 LIBS=$ac_check_lib_save_LIBS
21019 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21020 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21021 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21029 { echo "$as_me:$LINENO: checking for connect" >&5
21030 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21031 if test "${ac_cv_func_connect+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21042 #define connect innocuous_connect
21044 /* System header to define __stub macros and hopefully few prototypes,
21045 which can conflict with char connect (); below.
21046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21047 <limits.h> exists even on freestanding compilers. */
21050 # include <limits.h>
21052 # include <assert.h>
21057 /* Override any GCC internal prototype to avoid an error.
21058 Use char because int might match the return type of a GCC
21059 builtin and then its argument prototype would still apply. */
21064 /* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067 #if defined __stub_connect || defined __stub___connect
21079 rm -f conftest.$ac_objext conftest$ac_exeext
21080 if { (ac_try="$ac_link"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_link") 2>conftest.er1
21088 grep -v '^ *+' conftest.er1 >conftest.err
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest$ac_exeext &&
21096 $as_test_x conftest$ac_exeext; then
21097 ac_cv_func_connect=yes
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_cv_func_connect=no
21105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21106 conftest$ac_exeext conftest.$ac_ext
21108 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21109 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21110 if test $ac_cv_func_connect = yes; then
21113 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21114 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21115 if test "${ac_cv_lib_socket_connect+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 ac_check_lib_save_LIBS=$LIBS
21119 LIBS="-lsocket $LIBNSL $LIBS"
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21127 /* Override any GCC internal prototype to avoid an error.
21128 Use char because int might match the return type of a GCC
21129 builtin and then its argument prototype would still apply. */
21142 rm -f conftest.$ac_objext conftest$ac_exeext
21143 if { (ac_try="$ac_link"
21144 case "(($ac_try" in
21145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21146 *) ac_try_echo=$ac_try;;
21148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149 (eval "$ac_link") 2>conftest.er1
21151 grep -v '^ *+' conftest.er1 >conftest.err
21153 cat conftest.err >&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } && {
21156 test -z "$ac_c_werror_flag" ||
21157 test ! -s conftest.err
21158 } && test -s conftest$ac_exeext &&
21159 $as_test_x conftest$ac_exeext; then
21160 ac_cv_lib_socket_connect=yes
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ac_cv_lib_socket_connect=no
21168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21169 conftest$ac_exeext conftest.$ac_ext
21170 LIBS=$ac_check_lib_save_LIBS
21172 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21173 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21174 if test $ac_cv_lib_socket_connect = yes; then
21175 LIBSOCKET="-lsocket"
21177 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21178 echo "$as_me: error: Function 'socket' not found." >&2;}
21179 { (exit 1); exit 1; }; }
21185 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21186 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21187 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 ac_check_lib_save_LIBS=$LIBS
21191 LIBS="-lcrypt $LIBS"
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (ac_try="$ac_link"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_link") 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest$ac_exeext &&
21231 $as_test_x conftest$ac_exeext; then
21232 ac_cv_lib_crypt_crypt=yes
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_cv_lib_crypt_crypt=no
21240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21241 conftest$ac_exeext conftest.$ac_ext
21242 LIBS=$ac_check_lib_save_LIBS
21244 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21245 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21246 if test $ac_cv_lib_crypt_crypt = yes; then
21250 if test "$enable_nfsv4" = yes; then
21251 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21252 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21253 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 ac_check_lib_save_LIBS=$LIBS
21257 LIBS="-levent $LIBS"
21258 cat >conftest.$ac_ext <<_ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21265 /* Override any GCC internal prototype to avoid an error.
21266 Use char because int might match the return type of a GCC
21267 builtin and then its argument prototype would still apply. */
21271 char event_dispatch ();
21275 return event_dispatch ();
21280 rm -f conftest.$ac_objext conftest$ac_exeext
21281 if { (ac_try="$ac_link"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_link") 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && {
21294 test -z "$ac_c_werror_flag" ||
21295 test ! -s conftest.err
21296 } && test -s conftest$ac_exeext &&
21297 $as_test_x conftest$ac_exeext; then
21298 ac_cv_lib_event_event_dispatch=yes
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_cv_lib_event_event_dispatch=no
21306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21307 conftest$ac_exeext conftest.$ac_ext
21308 LIBS=$ac_check_lib_save_LIBS
21310 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21311 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21312 if test $ac_cv_lib_event_event_dispatch = yes; then
21315 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21316 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21317 { (exit 1); exit 1; }; }
21320 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21321 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21322 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_check_lib_save_LIBS=$LIBS
21326 LIBS="-lnfsidmap $LIBS"
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21334 /* Override any GCC internal prototype to avoid an error.
21335 Use char because int might match the return type of a GCC
21336 builtin and then its argument prototype would still apply. */
21340 char nfs4_init_name_mapping ();
21344 return nfs4_init_name_mapping ();
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_link") 2>conftest.er1
21358 grep -v '^ *+' conftest.er1 >conftest.err
21360 cat conftest.err >&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && {
21363 test -z "$ac_c_werror_flag" ||
21364 test ! -s conftest.err
21365 } && test -s conftest$ac_exeext &&
21366 $as_test_x conftest$ac_exeext; then
21367 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21376 conftest$ac_exeext conftest.$ac_ext
21377 LIBS=$ac_check_lib_save_LIBS
21379 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21380 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21381 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21384 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21385 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21386 { (exit 1); exit 1; }; }
21390 for ac_header in event.h
21392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21403 # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 $ac_includes_default
21413 @%:@include <$ac_header>
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419 *) ac_try_echo=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.$ac_objext; then
21432 ac_header_compiler=yes
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_header_compiler=no
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21442 echo "${ECHO_T}$ac_header_compiler" >&6; }
21444 # Is the header present?
21445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21447 cat >conftest.$ac_ext <<_ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21453 @%:@include <$ac_header>
21455 if { (ac_try="$ac_cpp conftest.$ac_ext"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } >/dev/null && {
21468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21471 ac_header_preproc=yes
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483 # So? What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21506 @%:@@%:@ ------------------------------- @%:@@%:@
21507 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21508 @%:@@%:@ ------------------------------- @%:@@%:@
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 eval "$as_ac_Header=\$ac_header_preproc"
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521 { echo "$as_me:$LINENO: result: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526 cat >>confdefs.h <<_ACEOF
21527 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21531 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21532 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21533 { (exit 1); exit 1; }; }
21539 for ac_header in nfsidmap.h
21541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 ac_res=`eval echo '${'$as_ac_Header'}'`
21549 { echo "$as_me:$LINENO: result: $ac_res" >&5
21550 echo "${ECHO_T}$ac_res" >&6; }
21552 # Is the header compilable?
21553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 $ac_includes_default
21562 @%:@include <$ac_header>
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_compile") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest.$ac_objext; then
21581 ac_header_compiler=yes
21583 echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21586 ac_header_compiler=no
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21591 echo "${ECHO_T}$ac_header_compiler" >&6; }
21593 # Is the header present?
21594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 @%:@include <$ac_header>
21604 if { (ac_try="$ac_cpp conftest.$ac_ext"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } >/dev/null && {
21617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21620 ac_header_preproc=yes
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ac_header_preproc=no
21628 rm -f conftest.err conftest.$ac_ext
21629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21630 echo "${ECHO_T}$ac_header_preproc" >&6; }
21632 # So? What about this header?
21633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21639 ac_header_preproc=yes
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21655 @%:@@%:@ ------------------------------- @%:@@%:@
21656 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21657 @%:@@%:@ ------------------------------- @%:@@%:@
21659 ) | sed "s/^/$as_me: WARNING: /" >&2
21662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 eval "$as_ac_Header=\$ac_header_preproc"
21669 ac_res=`eval echo '${'$as_ac_Header'}'`
21670 { echo "$as_me:$LINENO: result: $ac_res" >&5
21671 echo "${ECHO_T}$ac_res" >&6; }
21674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21675 cat >>confdefs.h <<_ACEOF
21676 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21680 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21681 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21682 { (exit 1); exit 1; }; }
21687 if test "$enable_gss" = yes; then
21690 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21691 if test -n "$ac_tool_prefix"; then
21692 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21693 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21696 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
21699 case $PKG_CONFIG in
21701 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21705 for as_dir in $PATH
21708 test -z "$as_dir" && as_dir=.
21709 for ac_exec_ext in '' $ac_executable_extensions; do
21710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21711 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21722 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21723 if test -n "$PKG_CONFIG"; then
21724 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21725 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21727 { echo "$as_me:$LINENO: result: no" >&5
21728 echo "${ECHO_T}no" >&6; }
21733 if test -z "$ac_cv_path_PKG_CONFIG"; then
21734 ac_pt_PKG_CONFIG=$PKG_CONFIG
21735 # Extract the first word of "pkg-config", so it can be a program name with args.
21736 set dummy pkg-config; ac_word=$2
21737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21739 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 case $ac_pt_PKG_CONFIG in
21744 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21748 for as_dir in $PATH
21751 test -z "$as_dir" && as_dir=.
21752 for ac_exec_ext in '' $ac_executable_extensions; do
21753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21754 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21765 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21766 if test -n "$ac_pt_PKG_CONFIG"; then
21767 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21768 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21770 { echo "$as_me:$LINENO: result: no" >&5
21771 echo "${ECHO_T}no" >&6; }
21774 if test "x$ac_pt_PKG_CONFIG" = x; then
21777 case $cross_compiling:$ac_tool_warned in
21779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21780 whose name does not start with the host triplet. If you think this
21781 configuration is useful to you, please write to autoconf@gnu.org." >&5
21782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21783 whose name does not start with the host triplet. If you think this
21784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21785 ac_tool_warned=yes ;;
21787 PKG_CONFIG=$ac_pt_PKG_CONFIG
21790 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21794 if test -n "$PKG_CONFIG"; then
21795 _pkg_min_version=0.9.0
21796 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21797 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21798 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21799 { echo "$as_me:$LINENO: result: yes" >&5
21800 echo "${ECHO_T}yes" >&6; }
21802 { echo "$as_me:$LINENO: result: no" >&5
21803 echo "${ECHO_T}no" >&6; }
21810 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21811 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21813 if test -n "$PKG_CONFIG"; then
21814 if test -n "$RPCSECGSS_CFLAGS"; then
21815 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21817 if test -n "$PKG_CONFIG" && \
21818 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21819 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; then
21823 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21831 if test -n "$PKG_CONFIG"; then
21832 if test -n "$RPCSECGSS_LIBS"; then
21833 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21835 if test -n "$PKG_CONFIG" && \
21836 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21837 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; then
21841 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21852 if test $pkg_failed = yes; then
21854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21855 _pkg_short_errors_supported=yes
21857 _pkg_short_errors_supported=no
21859 if test $_pkg_short_errors_supported = yes; then
21860 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21862 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21864 # Put the nasty error message in config.log where it belongs
21865 echo "$RPCSECGSS_PKG_ERRORS" >&5
21867 { echo "$as_me:$LINENO: result: no" >&5
21868 echo "${ECHO_T}no" >&6; }
21869 { { 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
21870 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;}
21871 { (exit 1); exit 1; }; }
21874 elif test $pkg_failed = untried; then
21875 { { 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
21876 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;}
21877 { (exit 1); exit 1; }; }
21881 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21882 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21883 { echo "$as_me:$LINENO: result: yes" >&5
21884 echo "${ECHO_T}yes" >&6; }
21889 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21890 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21892 if test -n "$PKG_CONFIG"; then
21893 if test -n "$GSSAPI_CFLAGS"; then
21894 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21896 if test -n "$PKG_CONFIG" && \
21897 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21898 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; then
21902 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21910 if test -n "$PKG_CONFIG"; then
21911 if test -n "$GSSAPI_LIBS"; then
21912 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21914 if test -n "$PKG_CONFIG" && \
21915 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21916 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; then
21920 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21931 if test $pkg_failed = yes; then
21933 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21934 _pkg_short_errors_supported=yes
21936 _pkg_short_errors_supported=no
21938 if test $_pkg_short_errors_supported = yes; then
21939 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21941 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21943 # Put the nasty error message in config.log where it belongs
21944 echo "$GSSAPI_PKG_ERRORS" >&5
21946 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21950 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21951 installed software in a non-standard prefix.
21953 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21954 and GSSAPI_LIBS to avoid the need to call pkg-config.
21955 See the pkg-config man page for more details.
21957 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21961 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21962 installed software in a non-standard prefix.
21964 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21965 and GSSAPI_LIBS to avoid the need to call pkg-config.
21966 See the pkg-config man page for more details.
21968 { (exit 1); exit 1; }; }
21969 elif test $pkg_failed = untried; then
21970 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21971 is in your PATH or set the PKG_CONFIG environment variable to the full
21972 path to pkg-config.
21974 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21975 and GSSAPI_LIBS to avoid the need to call pkg-config.
21976 See the pkg-config man page for more details.
21978 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21979 See \`config.log' for more details." >&5
21980 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21981 is in your PATH or set the PKG_CONFIG environment variable to the full
21982 path to pkg-config.
21984 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21985 and GSSAPI_LIBS to avoid the need to call pkg-config.
21986 See the pkg-config man page for more details.
21988 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21989 See \`config.log' for more details." >&2;}
21990 { (exit 1); exit 1; }; }
21992 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
21993 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
21994 { echo "$as_me:$LINENO: result: yes" >&5
21995 echo "${ECHO_T}yes" >&6; }
22001 if test "$knfsd_cv_glibc2" = no; then
22002 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22003 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22004 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 ac_check_lib_save_LIBS=$LIBS
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 /* Override any GCC internal prototype to avoid an error.
22017 Use char because int might match the return type of a GCC
22018 builtin and then its argument prototype would still apply. */
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_link") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest$ac_exeext &&
22048 $as_test_x conftest$ac_exeext; then
22049 ac_cv_lib_bsd_daemon=yes
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ac_cv_lib_bsd_daemon=no
22057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22058 conftest$ac_exeext conftest.$ac_ext
22059 LIBS=$ac_check_lib_save_LIBS
22061 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22062 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22063 if test $ac_cv_lib_bsd_daemon = yes; then
22072 if test "$enable_gss" = yes; then
22074 for ac_header in nfsidmap.h
22076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 ac_res=`eval echo '${'$as_ac_Header'}'`
22084 { echo "$as_me:$LINENO: result: $ac_res" >&5
22085 echo "${ECHO_T}$ac_res" >&6; }
22087 # Is the header compilable?
22088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 $ac_includes_default
22097 @%:@include <$ac_header>
22099 rm -f conftest.$ac_objext
22100 if { (ac_try="$ac_compile"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_compile") 2>conftest.er1
22108 grep -v '^ *+' conftest.er1 >conftest.err
22110 cat conftest.err >&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && {
22113 test -z "$ac_c_werror_flag" ||
22114 test ! -s conftest.err
22115 } && test -s conftest.$ac_objext; then
22116 ac_header_compiler=yes
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 ac_header_compiler=no
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22126 echo "${ECHO_T}$ac_header_compiler" >&6; }
22128 # Is the header present?
22129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22137 @%:@include <$ac_header>
22139 if { (ac_try="$ac_cpp conftest.$ac_ext"
22140 case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22147 grep -v '^ *+' conftest.er1 >conftest.err
22149 cat conftest.err >&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } >/dev/null && {
22152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22153 test ! -s conftest.err
22155 ac_header_preproc=yes
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 ac_header_preproc=no
22163 rm -f conftest.err conftest.$ac_ext
22164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22165 echo "${ECHO_T}$ac_header_preproc" >&6; }
22167 # So? What about this header?
22168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22174 ac_header_preproc=yes
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22190 @%:@@%:@ ------------------------------- @%:@@%:@
22191 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22192 @%:@@%:@ ------------------------------- @%:@@%:@
22194 ) | sed "s/^/$as_me: WARNING: /" >&2
22197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 eval "$as_ac_Header=\$ac_header_preproc"
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22210 cat >>confdefs.h <<_ACEOF
22211 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22215 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22216 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22217 { (exit 1); exit 1; }; }
22223 for ac_header in spkm3.h
22225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 ac_res=`eval echo '${'$as_ac_Header'}'`
22233 { echo "$as_me:$LINENO: result: $ac_res" >&5
22234 echo "${ECHO_T}$ac_res" >&6; }
22236 # Is the header compilable?
22237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 $ac_includes_default
22246 @%:@include <$ac_header>
22248 rm -f conftest.$ac_objext
22249 if { (ac_try="$ac_compile"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_compile") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest.$ac_objext; then
22265 ac_header_compiler=yes
22267 echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22270 ac_header_compiler=no
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22275 echo "${ECHO_T}$ac_header_compiler" >&6; }
22277 # Is the header present?
22278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 @%:@include <$ac_header>
22288 if { (ac_try="$ac_cpp conftest.$ac_ext"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } >/dev/null && {
22301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22304 ac_header_preproc=yes
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 ac_header_preproc=no
22312 rm -f conftest.err conftest.$ac_ext
22313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22314 echo "${ECHO_T}$ac_header_preproc" >&6; }
22316 # So? What about this header?
22317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22323 ac_header_preproc=yes
22326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22339 @%:@@%:@ ------------------------------- @%:@@%:@
22340 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22341 @%:@@%:@ ------------------------------- @%:@@%:@
22343 ) | sed "s/^/$as_me: WARNING: /" >&2
22346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 eval "$as_ac_Header=\$ac_header_preproc"
22353 ac_res=`eval echo '${'$as_ac_Header'}'`
22354 { echo "$as_me:$LINENO: result: $ac_res" >&5
22355 echo "${ECHO_T}$ac_res" >&6; }
22358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22359 cat >>confdefs.h <<_ACEOF
22360 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22364 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22365 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22370 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22371 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22372 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 ac_check_lib_save_LIBS=$LIBS
22376 LIBS="-lnfsidmap $LIBS"
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22390 char nfs4_set_debug ();
22394 return nfs4_set_debug ();
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
22417 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_cv_lib_nfsidmap_nfs4_set_debug=no
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22429 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22430 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22431 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22433 cat >>confdefs.h <<\_ACEOF
22434 @%:@define HAVE_NFS4_SET_DEBUG 1
22441 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22442 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22444 # Check whether --with-krb5 was given.
22445 if test "${with_krb5+set}" = set; then
22446 withval=$with_krb5; case "$withval" in
22451 krb5_with="$withval"
22458 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22459 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22461 if test -f $dir/bin/krb5-config; then
22462 K5CONFIG=$dir/bin/krb5-config
22463 elif test -f "/usr/kerberos/bin/krb5-config"; then
22464 K5CONFIG="/usr/kerberos/bin/krb5-config"
22465 elif test -f "/usr/lib/mit/bin/krb5-config"; then
22466 K5CONFIG="/usr/lib/mit/bin/krb5-config"
22468 if test "$K5CONFIG" != ""; then
22469 KRBCFLAGS=`$K5CONFIG --cflags`
22470 KRBLIBS=`$K5CONFIG --libs gssapi`
22471 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22473 cat >>confdefs.h <<_ACEOF
22474 @%:@define KRB5_VERSION $K5VERS
22477 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22478 \( -f $dir/lib/libgssapi_krb5.a -o \
22479 -f $dir/lib/libgssapi_krb5.so \) ; then
22481 cat >>confdefs.h <<\_ACEOF
22482 @%:@define HAVE_KRB5 1
22486 if test $K5VERS -le 131; then
22488 cat >>confdefs.h <<\_ACEOF
22489 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22493 gssapi_lib=gssapi_krb5
22495 elif test \( -f $dir/include/heim_err.h -o\
22496 -f $dir/include/heimdal/heim_err.h \) -a \
22497 -f $dir/lib/libroken.a; then
22499 cat >>confdefs.h <<\_ACEOF
22500 @%:@define HAVE_HEIMDAL 1
22509 if test "x$KRBDIR" = "x"; then
22510 if test "x$krb5_with" = "x"; then
22511 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22512 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22513 { (exit 1); exit 1; }; }
22515 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22516 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22517 { (exit 1); exit 1; }; }
22520 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22521 echo "${ECHO_T}$KRBDIR" >&6; }
22523 echo "The current KRBDIR is $KRBDIR"
22524 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22525 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22527 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22530 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22533 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22534 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22535 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22536 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 ac_check_lib_save_LIBS=$LIBS
22540 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22541 cat >conftest.$ac_ext <<_ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22548 /* Override any GCC internal prototype to avoid an error.
22549 Use char because int might match the return type of a GCC
22550 builtin and then its argument prototype would still apply. */
22554 char gss_krb5_export_lucid_sec_context ();
22558 return gss_krb5_export_lucid_sec_context ();
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (ac_try="$ac_link"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_link") 2>conftest.er1
22572 grep -v '^ *+' conftest.er1 >conftest.err
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } && {
22577 test -z "$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22579 } && test -s conftest$ac_exeext &&
22580 $as_test_x conftest$ac_exeext; then
22581 eval "$as_ac_Lib=yes"
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 eval "$as_ac_Lib=no"
22589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22590 conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22593 ac_res=`eval echo '${'$as_ac_Lib'}'`
22594 { echo "$as_me:$LINENO: result: $ac_res" >&5
22595 echo "${ECHO_T}$ac_res" >&6; }
22596 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22598 cat >>confdefs.h <<\_ACEOF
22599 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22604 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22605 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22606 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22607 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 ac_check_lib_save_LIBS=$LIBS
22611 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22625 char gss_krb5_set_allowable_enctypes ();
22629 return gss_krb5_set_allowable_enctypes ();
22634 rm -f conftest.$ac_objext conftest$ac_exeext
22635 if { (ac_try="$ac_link"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22641 (eval "$ac_link") 2>conftest.er1
22643 grep -v '^ *+' conftest.er1 >conftest.err
22645 cat conftest.err >&5
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } && {
22648 test -z "$ac_c_werror_flag" ||
22649 test ! -s conftest.err
22650 } && test -s conftest$ac_exeext &&
22651 $as_test_x conftest$ac_exeext; then
22652 eval "$as_ac_Lib=yes"
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 eval "$as_ac_Lib=no"
22660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22661 conftest$ac_exeext conftest.$ac_ext
22662 LIBS=$ac_check_lib_save_LIBS
22664 ac_res=`eval echo '${'$as_ac_Lib'}'`
22665 { echo "$as_me:$LINENO: result: $ac_res" >&5
22666 echo "${ECHO_T}$ac_res" >&6; }
22667 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22669 cat >>confdefs.h <<\_ACEOF
22670 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22675 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22676 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22677 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22678 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22681 ac_check_lib_save_LIBS=$LIBS
22682 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22683 cat >conftest.$ac_ext <<_ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22690 /* Override any GCC internal prototype to avoid an error.
22691 Use char because int might match the return type of a GCC
22692 builtin and then its argument prototype would still apply. */
22696 char gss_krb5_ccache_name ();
22700 return gss_krb5_ccache_name ();
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (ac_try="$ac_link"
22707 case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712 (eval "$ac_link") 2>conftest.er1
22714 grep -v '^ *+' conftest.er1 >conftest.err
22716 cat conftest.err >&5
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); } && {
22719 test -z "$ac_c_werror_flag" ||
22720 test ! -s conftest.err
22721 } && test -s conftest$ac_exeext &&
22722 $as_test_x conftest$ac_exeext; then
22723 eval "$as_ac_Lib=yes"
22725 echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 eval "$as_ac_Lib=no"
22731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22732 conftest$ac_exeext conftest.$ac_ext
22733 LIBS=$ac_check_lib_save_LIBS
22735 ac_res=`eval echo '${'$as_ac_Lib'}'`
22736 { echo "$as_me:$LINENO: result: $ac_res" >&5
22737 echo "${ECHO_T}$ac_res" >&6; }
22738 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22740 cat >>confdefs.h <<\_ACEOF
22741 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
22747 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22748 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22749 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22760 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22761 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22762 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 ac_check_lib_save_LIBS=$LIBS
22766 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22774 /* Override any GCC internal prototype to avoid an error.
22775 Use char because int might match the return type of a GCC
22776 builtin and then its argument prototype would still apply. */
22780 char authgss_create_default ();
22784 return authgss_create_default ();
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_link") 2>conftest.er1
22798 grep -v '^ *+' conftest.er1 >conftest.err
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest$ac_exeext &&
22806 $as_test_x conftest$ac_exeext; then
22807 ac_cv_lib_rpcsecgss_authgss_create_default=yes
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 ac_cv_lib_rpcsecgss_authgss_create_default=no
22815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22816 conftest$ac_exeext conftest.$ac_ext
22817 LIBS=$ac_check_lib_save_LIBS
22819 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22820 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22821 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22824 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22825 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22826 { (exit 1); exit 1; }; }
22829 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22830 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22831 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22834 ac_check_lib_save_LIBS=$LIBS
22835 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22843 /* Override any GCC internal prototype to avoid an error.
22844 Use char because int might match the return type of a GCC
22845 builtin and then its argument prototype would still apply. */
22849 char authgss_set_debug_level ();
22853 return authgss_set_debug_level ();
22858 rm -f conftest.$ac_objext conftest$ac_exeext
22859 if { (ac_try="$ac_link"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_link") 2>conftest.er1
22867 grep -v '^ *+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } && {
22872 test -z "$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22874 } && test -s conftest$ac_exeext &&
22875 $as_test_x conftest$ac_exeext; then
22876 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22881 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22885 conftest$ac_exeext conftest.$ac_ext
22886 LIBS=$ac_check_lib_save_LIBS
22888 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22889 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22890 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22892 cat >>confdefs.h <<\_ACEOF
22893 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22924 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22925 malloc.h memory.h netdb.h netinet/in.h paths.h \
22926 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22927 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22928 syslog.h unistd.h com_err.h et/com_err.h \
22931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 ac_res=`eval echo '${'$as_ac_Header'}'`
22939 { echo "$as_me:$LINENO: result: $ac_res" >&5
22940 echo "${ECHO_T}$ac_res" >&6; }
22942 # Is the header compilable?
22943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22951 $ac_includes_default
22952 @%:@include <$ac_header>
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_compile") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1 >conftest.err
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && {
22968 test -z "$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 } && test -s conftest.$ac_objext; then
22971 ac_header_compiler=yes
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_compiler=no
22979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22981 echo "${ECHO_T}$ac_header_compiler" >&6; }
22983 # Is the header present?
22984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 @%:@include <$ac_header>
22994 if { (ac_try="$ac_cpp conftest.$ac_ext"
22995 case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } >/dev/null && {
23007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23010 ac_header_preproc=yes
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_header_preproc=no
23018 rm -f conftest.err conftest.$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23020 echo "${ECHO_T}$ac_header_preproc" >&6; }
23022 # So? What about this header?
23023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23029 ac_header_preproc=yes
23032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23045 @%:@@%:@ ------------------------------- @%:@@%:@
23046 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23047 @%:@@%:@ ------------------------------- @%:@@%:@
23049 ) | sed "s/^/$as_me: WARNING: /" >&2
23052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 eval "$as_ac_Header=\$ac_header_preproc"
23059 ac_res=`eval echo '${'$as_ac_Header'}'`
23060 { echo "$as_me:$LINENO: result: $ac_res" >&5
23061 echo "${ECHO_T}$ac_res" >&6; }
23064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23065 cat >>confdefs.h <<_ACEOF
23066 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23074 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23075 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23076 if test "${ac_cv_c_const+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23089 /* FIXME: Include the comments suggested by Paul. */
23090 #ifndef __cplusplus
23091 /* Ultrix mips cc rejects this. */
23092 typedef int charset[2];
23094 /* SunOS 4.1.1 cc rejects this. */
23095 char const *const *pcpcc;
23097 /* NEC SVR4.0.2 mips cc rejects this. */
23098 struct point {int x, y;};
23099 static struct point const zero = {0,0};
23100 /* AIX XL C 1.02.0.0 rejects this.
23101 It does not let you subtract one const X* pointer from another in
23102 an arm of an if-expression whose if-part is not a constant
23104 const char *g = "string";
23105 pcpcc = &g + (g ? g-g : 0);
23106 /* HPUX 7.0 cc rejects these. */
23108 ppc = (char**) pcpcc;
23109 pcpcc = (char const *const *) ppc;
23110 { /* SCO 3.2v4 cc rejects this. */
23112 char const *s = 0 ? (char *) 0 : (char const *) 0;
23117 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23118 int x[] = {25, 17};
23119 const int *foo = &x[0];
23122 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23123 typedef const int *iptr;
23127 { /* AIX XL C 1.02.0.0 rejects this saying
23128 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23129 struct s { int j; const int *ap[3]; };
23130 struct s *b; b->j = 5;
23132 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23133 const int foo = 10;
23134 if (!foo) return 0;
23136 return !cs[0] && !zero.x;
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23171 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23172 if test $ac_cv_c_const = no; then
23174 cat >>confdefs.h <<\_ACEOF
23180 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23181 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23182 if test "${ac_cv_type_uid_t+set}" = set; then
23183 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 #include <sys/types.h>
23194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23195 $EGREP "uid_t" >/dev/null 2>&1; then
23196 ac_cv_type_uid_t=yes
23198 ac_cv_type_uid_t=no
23203 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23204 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23205 if test $ac_cv_type_uid_t = no; then
23207 cat >>confdefs.h <<\_ACEOF
23208 @%:@define uid_t int
23212 cat >>confdefs.h <<\_ACEOF
23213 @%:@define gid_t int
23218 { echo "$as_me:$LINENO: checking for inline" >&5
23219 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23220 if test "${ac_cv_c_inline+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23224 for ac_kw in inline __inline__ __inline; do
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 #ifndef __cplusplus
23233 static $ac_kw foo_t static_foo () {return 0; }
23234 $ac_kw foo_t foo () {return 0; }
23238 rm -f conftest.$ac_objext
23239 if { (ac_try="$ac_compile"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_compile") 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } && {
23252 test -z "$ac_c_werror_flag" ||
23253 test ! -s conftest.err
23254 } && test -s conftest.$ac_objext; then
23255 ac_cv_c_inline=$ac_kw
23257 echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23264 test "$ac_cv_c_inline" != no && break
23268 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23269 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23272 case $ac_cv_c_inline in
23275 case $ac_cv_c_inline in
23277 *) ac_val=$ac_cv_c_inline;;
23279 cat >>confdefs.h <<_ACEOF
23280 #ifndef __cplusplus
23281 #define inline $ac_val
23287 { echo "$as_me:$LINENO: checking for off_t" >&5
23288 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23289 if test "${ac_cv_type_off_t+set}" = set; then
23290 echo $ECHO_N "(cached) $ECHO_C" >&6
23292 cat >conftest.$ac_ext <<_ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h. */
23298 $ac_includes_default
23299 typedef off_t ac__type_new_;
23303 if ((ac__type_new_ *) 0)
23305 if (sizeof (ac__type_new_))
23311 rm -f conftest.$ac_objext
23312 if { (ac_try="$ac_compile"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_compile") 2>conftest.er1
23320 grep -v '^ *+' conftest.er1 >conftest.err
23322 cat conftest.err >&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && {
23325 test -z "$ac_c_werror_flag" ||
23326 test ! -s conftest.err
23327 } && test -s conftest.$ac_objext; then
23328 ac_cv_type_off_t=yes
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ac_cv_type_off_t=no
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23339 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23340 if test $ac_cv_type_off_t = yes; then
23344 cat >>confdefs.h <<_ACEOF
23345 @%:@define off_t long int
23350 { echo "$as_me:$LINENO: checking for pid_t" >&5
23351 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23352 if test "${ac_cv_type_pid_t+set}" = set; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 $ac_includes_default
23362 typedef pid_t ac__type_new_;
23366 if ((ac__type_new_ *) 0)
23368 if (sizeof (ac__type_new_))
23374 rm -f conftest.$ac_objext
23375 if { (ac_try="$ac_compile"
23376 case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_compile") 2>conftest.er1
23383 grep -v '^ *+' conftest.er1 >conftest.err
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } && {
23388 test -z "$ac_c_werror_flag" ||
23389 test ! -s conftest.err
23390 } && test -s conftest.$ac_objext; then
23391 ac_cv_type_pid_t=yes
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ac_cv_type_pid_t=no
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23401 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23402 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23403 if test $ac_cv_type_pid_t = yes; then
23407 cat >>confdefs.h <<_ACEOF
23408 @%:@define pid_t int
23413 { echo "$as_me:$LINENO: checking for size_t" >&5
23414 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23415 if test "${ac_cv_type_size_t+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 $ac_includes_default
23425 typedef size_t ac__type_new_;
23429 if ((ac__type_new_ *) 0)
23431 if (sizeof (ac__type_new_))
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest.$ac_objext; then
23454 ac_cv_type_size_t=yes
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23459 ac_cv_type_size_t=no
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23465 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23466 if test $ac_cv_type_size_t = yes; then
23470 cat >>confdefs.h <<_ACEOF
23471 @%:@define size_t unsigned int
23476 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23478 if test "${ac_cv_header_time+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 #include <sys/types.h>
23488 #include <sys/time.h>
23494 if ((struct tm *) 0)
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_compile") 2>conftest.er1
23509 grep -v '^ *+' conftest.er1 >conftest.err
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } && {
23514 test -z "$ac_c_werror_flag" ||
23515 test ! -s conftest.err
23516 } && test -s conftest.$ac_objext; then
23517 ac_cv_header_time=yes
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522 ac_cv_header_time=no
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23527 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23528 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23529 if test $ac_cv_header_time = yes; then
23531 cat >>confdefs.h <<\_ACEOF
23532 @%:@define TIME_WITH_SYS_TIME 1
23537 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23538 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23539 if test "${ac_cv_struct_tm+set}" = set; then
23540 echo $ECHO_N "(cached) $ECHO_C" >&6
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23548 #include <sys/types.h>
23555 int *p = &tm.tm_sec;
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_compile") 2>conftest.er1
23570 grep -v '^ *+' conftest.er1 >conftest.err
23572 cat conftest.err >&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); } && {
23575 test -z "$ac_c_werror_flag" ||
23576 test ! -s conftest.err
23577 } && test -s conftest.$ac_objext; then
23578 ac_cv_struct_tm=time.h
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_cv_struct_tm=sys/time.h
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23589 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23590 if test $ac_cv_struct_tm = sys/time.h; then
23592 cat >>confdefs.h <<\_ACEOF
23593 @%:@define TM_IN_SYS_TIME 1
23599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23600 # for constant arguments. Useless!
23601 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23603 if test "${ac_cv_working_alloca_h+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 @%:@include <alloca.h>
23616 char *p = (char *) alloca (2 * sizeof (int));
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (ac_try="$ac_link"
23624 case "(($ac_try" in
23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 *) ac_try_echo=$ac_try;;
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 (eval "$ac_link") 2>conftest.er1
23631 grep -v '^ *+' conftest.er1 >conftest.err
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && {
23636 test -z "$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23638 } && test -s conftest$ac_exeext &&
23639 $as_test_x conftest$ac_exeext; then
23640 ac_cv_working_alloca_h=yes
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ac_cv_working_alloca_h=no
23648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23649 conftest$ac_exeext conftest.$ac_ext
23651 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23652 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23653 if test $ac_cv_working_alloca_h = yes; then
23655 cat >>confdefs.h <<\_ACEOF
23656 @%:@define HAVE_ALLOCA_H 1
23661 { echo "$as_me:$LINENO: checking for alloca" >&5
23662 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23663 if test "${ac_cv_func_alloca_works+set}" = set; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23673 # define alloca __builtin_alloca
23676 # include <malloc.h>
23677 # define alloca _alloca
23679 # ifdef HAVE_ALLOCA_H
23680 # include <alloca.h>
23685 # ifndef alloca /* predefined by HP cc +Olibcalls */
23696 char *p = (char *) alloca (1);
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (ac_try="$ac_link"
23704 case "(($ac_try" in
23705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706 *) ac_try_echo=$ac_try;;
23708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709 (eval "$ac_link") 2>conftest.er1
23711 grep -v '^ *+' conftest.er1 >conftest.err
23713 cat conftest.err >&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } && {
23716 test -z "$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 } && test -s conftest$ac_exeext &&
23719 $as_test_x conftest$ac_exeext; then
23720 ac_cv_func_alloca_works=yes
23722 echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23725 ac_cv_func_alloca_works=no
23728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23729 conftest$ac_exeext conftest.$ac_ext
23731 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23732 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23734 if test $ac_cv_func_alloca_works = yes; then
23736 cat >>confdefs.h <<\_ACEOF
23737 @%:@define HAVE_ALLOCA 1
23741 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23742 # that cause trouble. Some versions do not even contain alloca or
23743 # contain a buggy version. If you still want to use their alloca,
23744 # use ar to extract alloca.o from them instead of compiling alloca.c.
23746 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23748 cat >>confdefs.h <<\_ACEOF
23749 @%:@define C_ALLOCA 1
23753 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23754 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23755 if test "${ac_cv_os_cray+set}" = set; then
23756 echo $ECHO_N "(cached) $ECHO_C" >&6
23758 cat >conftest.$ac_ext <<_ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 #if defined CRAY && ! defined CRAY2
23771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23772 $EGREP "webecray" >/dev/null 2>&1; then
23780 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23781 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23782 if test $ac_cv_os_cray = yes; then
23783 for ac_func in _getb67 GETB67 getb67; do
23784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 cat >conftest.$ac_ext <<_ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23798 #define $ac_func innocuous_$ac_func
23800 /* System header to define __stub macros and hopefully few prototypes,
23801 which can conflict with char $ac_func (); below.
23802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23803 <limits.h> exists even on freestanding compilers. */
23806 # include <limits.h>
23808 # include <assert.h>
23813 /* Override any GCC internal prototype to avoid an error.
23814 Use char because int might match the return type of a GCC
23815 builtin and then its argument prototype would still apply. */
23820 /* The GNU C library defines this for functions which it implements
23821 to always fail with ENOSYS. Some functions are actually named
23822 something starting with __ and the normal name is an alias. */
23823 #if defined __stub_$ac_func || defined __stub___$ac_func
23830 return $ac_func ();
23835 rm -f conftest.$ac_objext conftest$ac_exeext
23836 if { (ac_try="$ac_link"
23837 case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_link") 2>conftest.er1
23844 grep -v '^ *+' conftest.er1 >conftest.err
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest$ac_exeext &&
23852 $as_test_x conftest$ac_exeext; then
23853 eval "$as_ac_var=yes"
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 eval "$as_ac_var=no"
23861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23862 conftest$ac_exeext conftest.$ac_ext
23864 ac_res=`eval echo '${'$as_ac_var'}'`
23865 { echo "$as_me:$LINENO: result: $ac_res" >&5
23866 echo "${ECHO_T}$ac_res" >&6; }
23867 if test `eval echo '${'$as_ac_var'}'` = yes; then
23869 cat >>confdefs.h <<_ACEOF
23870 @%:@define CRAY_STACKSEG_END $ac_func
23879 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23880 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23881 if test "${ac_cv_c_stack_direction+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 if test "$cross_compiling" = yes; then
23885 ac_cv_c_stack_direction=0
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 $ac_includes_default
23895 find_stack_direction ()
23897 static char *addr = 0;
23902 return find_stack_direction ();
23905 return (&dummy > addr) ? 1 : -1;
23911 return find_stack_direction () < 0;
23914 rm -f conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_link") 2>&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23925 { (case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_try") 2>&5
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); }; }; then
23934 ac_cv_c_stack_direction=1
23936 echo "$as_me: program exited with status $ac_status" >&5
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23940 ( exit $ac_status )
23941 ac_cv_c_stack_direction=-1
23943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23948 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23951 cat >>confdefs.h <<_ACEOF
23952 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
23963 ac_header_dirent=no
23964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23966 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23971 cat >conftest.$ac_ext <<_ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 #include <sys/types.h>
23989 rm -f conftest.$ac_objext
23990 if { (ac_try="$ac_compile"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_compile") 2>conftest.er1
23998 grep -v '^ *+' conftest.er1 >conftest.err
24000 cat conftest.err >&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && {
24003 test -z "$ac_c_werror_flag" ||
24004 test ! -s conftest.err
24005 } && test -s conftest.$ac_objext; then
24006 eval "$as_ac_Header=yes"
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24011 eval "$as_ac_Header=no"
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24016 ac_res=`eval echo '${'$as_ac_Header'}'`
24017 { echo "$as_me:$LINENO: result: $ac_res" >&5
24018 echo "${ECHO_T}$ac_res" >&6; }
24019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24020 cat >>confdefs.h <<_ACEOF
24021 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24024 ac_header_dirent=$ac_hdr; break
24028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24029 if test $ac_header_dirent = dirent.h; then
24030 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24032 if test "${ac_cv_search_opendir+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 ac_func_search_save_LIBS=$LIBS
24036 cat >conftest.$ac_ext <<_ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24043 /* Override any GCC internal prototype to avoid an error.
24044 Use char because int might match the return type of a GCC
24045 builtin and then its argument prototype would still apply. */
24058 for ac_lib in '' dir; do
24059 if test -z "$ac_lib"; then
24060 ac_res="none required"
24063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24065 rm -f conftest.$ac_objext conftest$ac_exeext
24066 if { (ac_try="$ac_link"
24067 case "(($ac_try" in
24068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072 (eval "$ac_link") 2>conftest.er1
24074 grep -v '^ *+' conftest.er1 >conftest.err
24076 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } && {
24079 test -z "$ac_c_werror_flag" ||
24080 test ! -s conftest.err
24081 } && test -s conftest$ac_exeext &&
24082 $as_test_x conftest$ac_exeext; then
24083 ac_cv_search_opendir=$ac_res
24085 echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24093 if test "${ac_cv_search_opendir+set}" = set; then
24097 if test "${ac_cv_search_opendir+set}" = set; then
24100 ac_cv_search_opendir=no
24102 rm conftest.$ac_ext
24103 LIBS=$ac_func_search_save_LIBS
24105 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24106 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24107 ac_res=$ac_cv_search_opendir
24108 if test "$ac_res" != no; then
24109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24114 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24115 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24116 if test "${ac_cv_search_opendir+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 ac_func_search_save_LIBS=$LIBS
24120 cat >conftest.$ac_ext <<_ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h. */
24127 /* Override any GCC internal prototype to avoid an error.
24128 Use char because int might match the return type of a GCC
24129 builtin and then its argument prototype would still apply. */
24142 for ac_lib in '' x; do
24143 if test -z "$ac_lib"; then
24144 ac_res="none required"
24147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24149 rm -f conftest.$ac_objext conftest$ac_exeext
24150 if { (ac_try="$ac_link"
24151 case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_link") 2>conftest.er1
24158 grep -v '^ *+' conftest.er1 >conftest.err
24160 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } && {
24163 test -z "$ac_c_werror_flag" ||
24164 test ! -s conftest.err
24165 } && test -s conftest$ac_exeext &&
24166 $as_test_x conftest$ac_exeext; then
24167 ac_cv_search_opendir=$ac_res
24169 echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24177 if test "${ac_cv_search_opendir+set}" = set; then
24181 if test "${ac_cv_search_opendir+set}" = set; then
24184 ac_cv_search_opendir=no
24186 rm conftest.$ac_ext
24187 LIBS=$ac_func_search_save_LIBS
24189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24191 ac_res=$ac_cv_search_opendir
24192 if test "$ac_res" != no; then
24193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24199 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24200 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24201 if test "${ac_cv_func_closedir_void+set}" = set; then
24202 echo $ECHO_N "(cached) $ECHO_C" >&6
24204 if test "$cross_compiling" = yes; then
24205 ac_cv_func_closedir_void=yes
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 $ac_includes_default
24214 #include <$ac_header_dirent>
24215 #ifndef __cplusplus
24222 return closedir (opendir (".")) != 0;
24227 rm -f conftest$ac_exeext
24228 if { (ac_try="$ac_link"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_link") 2>&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24238 { (case "(($ac_try" in
24239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240 *) ac_try_echo=$ac_try;;
24242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24243 (eval "$ac_try") 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; }; then
24247 ac_cv_func_closedir_void=no
24249 echo "$as_me: program exited with status $ac_status" >&5
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ( exit $ac_status )
24254 ac_cv_func_closedir_void=yes
24256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24261 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24262 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24263 if test $ac_cv_func_closedir_void = yes; then
24265 cat >>confdefs.h <<\_ACEOF
24266 @%:@define CLOSEDIR_VOID 1
24271 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24272 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24273 if test "${ac_cv_lib_error_at_line+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24286 error_at_line (0, 0, "", 0, "an error occurred");
24291 rm -f conftest.$ac_objext conftest$ac_exeext
24292 if { (ac_try="$ac_link"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298 (eval "$ac_link") 2>conftest.er1
24300 grep -v '^ *+' conftest.er1 >conftest.err
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest$ac_exeext &&
24308 $as_test_x conftest$ac_exeext; then
24309 ac_cv_lib_error_at_line=yes
24311 echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24314 ac_cv_lib_error_at_line=no
24317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24318 conftest$ac_exeext conftest.$ac_ext
24320 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24321 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24322 if test $ac_cv_lib_error_at_line = no; then
24323 case " $LIB@&t@OBJS " in
24324 *" error.$ac_objext "* ) ;;
24325 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24332 for ac_header in vfork.h
24334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 ac_res=`eval echo '${'$as_ac_Header'}'`
24342 { echo "$as_me:$LINENO: result: $ac_res" >&5
24343 echo "${ECHO_T}$ac_res" >&6; }
24345 # Is the header compilable?
24346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24348 cat >conftest.$ac_ext <<_ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 $ac_includes_default
24355 @%:@include <$ac_header>
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364 (eval "$ac_compile") 2>conftest.er1
24366 grep -v '^ *+' conftest.er1 >conftest.err
24368 cat conftest.err >&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } && {
24371 test -z "$ac_c_werror_flag" ||
24372 test ! -s conftest.err
24373 } && test -s conftest.$ac_objext; then
24374 ac_header_compiler=yes
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24379 ac_header_compiler=no
24382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384 echo "${ECHO_T}$ac_header_compiler" >&6; }
24386 # Is the header present?
24387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24389 cat >conftest.$ac_ext <<_ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 @%:@include <$ac_header>
24397 if { (ac_try="$ac_cpp conftest.$ac_ext"
24398 case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24405 grep -v '^ *+' conftest.er1 >conftest.err
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } >/dev/null && {
24410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24411 test ! -s conftest.err
24413 ac_header_preproc=yes
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ac_header_preproc=no
24421 rm -f conftest.err conftest.$ac_ext
24422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24423 echo "${ECHO_T}$ac_header_preproc" >&6; }
24425 # So? What about this header?
24426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24432 ac_header_preproc=yes
24435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24448 @%:@@%:@ ------------------------------- @%:@@%:@
24449 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24450 @%:@@%:@ ------------------------------- @%:@@%:@
24452 ) | sed "s/^/$as_me: WARNING: /" >&2
24455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 eval "$as_ac_Header=\$ac_header_preproc"
24462 ac_res=`eval echo '${'$as_ac_Header'}'`
24463 { echo "$as_me:$LINENO: result: $ac_res" >&5
24464 echo "${ECHO_T}$ac_res" >&6; }
24467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24468 cat >>confdefs.h <<_ACEOF
24469 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24478 for ac_func in fork vfork
24480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24484 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24494 #define $ac_func innocuous_$ac_func
24496 /* System header to define __stub macros and hopefully few prototypes,
24497 which can conflict with char $ac_func (); below.
24498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24499 <limits.h> exists even on freestanding compilers. */
24502 # include <limits.h>
24504 # include <assert.h>
24509 /* Override any GCC internal prototype to avoid an error.
24510 Use char because int might match the return type of a GCC
24511 builtin and then its argument prototype would still apply. */
24516 /* The GNU C library defines this for functions which it implements
24517 to always fail with ENOSYS. Some functions are actually named
24518 something starting with __ and the normal name is an alias. */
24519 #if defined __stub_$ac_func || defined __stub___$ac_func
24526 return $ac_func ();
24531 rm -f conftest.$ac_objext conftest$ac_exeext
24532 if { (ac_try="$ac_link"
24533 case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538 (eval "$ac_link") 2>conftest.er1
24540 grep -v '^ *+' conftest.er1 >conftest.err
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest$ac_exeext &&
24548 $as_test_x conftest$ac_exeext; then
24549 eval "$as_ac_var=yes"
24551 echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24554 eval "$as_ac_var=no"
24557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24558 conftest$ac_exeext conftest.$ac_ext
24560 ac_res=`eval echo '${'$as_ac_var'}'`
24561 { echo "$as_me:$LINENO: result: $ac_res" >&5
24562 echo "${ECHO_T}$ac_res" >&6; }
24563 if test `eval echo '${'$as_ac_var'}'` = yes; then
24564 cat >>confdefs.h <<_ACEOF
24565 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24571 if test "x$ac_cv_func_fork" = xyes; then
24572 { echo "$as_me:$LINENO: checking for working fork" >&5
24573 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24574 if test "${ac_cv_func_fork_works+set}" = set; then
24575 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 if test "$cross_compiling" = yes; then
24578 ac_cv_func_fork_works=cross
24580 cat >conftest.$ac_ext <<_ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 $ac_includes_default
24591 /* By Ruediger Kuhlmann. */
24592 return fork () < 0;
24598 rm -f conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602 *) ac_try_echo=$ac_try;;
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605 (eval "$ac_link") 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24609 { (case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_try") 2>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
24618 ac_cv_func_fork_works=yes
24620 echo "$as_me: program exited with status $ac_status" >&5
24621 echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24624 ( exit $ac_status )
24625 ac_cv_func_fork_works=no
24627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24632 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24633 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24636 ac_cv_func_fork_works=$ac_cv_func_fork
24638 if test "x$ac_cv_func_fork_works" = xcross; then
24640 *-*-amigaos* | *-*-msdosdjgpp*)
24641 # Override, as these systems have only a dummy fork() stub
24642 ac_cv_func_fork_works=no
24645 ac_cv_func_fork_works=yes
24648 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24649 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24651 ac_cv_func_vfork_works=$ac_cv_func_vfork
24652 if test "x$ac_cv_func_vfork" = xyes; then
24653 { echo "$as_me:$LINENO: checking for working vfork" >&5
24654 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24655 if test "${ac_cv_func_vfork_works+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24658 if test "$cross_compiling" = yes; then
24659 ac_cv_func_vfork_works=cross
24661 cat >conftest.$ac_ext <<_ACEOF
24664 cat confdefs.h >>conftest.$ac_ext
24665 cat >>conftest.$ac_ext <<_ACEOF
24666 /* end confdefs.h. */
24667 /* Thanks to Paul Eggert for this test. */
24668 $ac_includes_default
24669 #include <sys/wait.h>
24670 #ifdef HAVE_VFORK_H
24671 # include <vfork.h>
24673 /* On some sparc systems, changes by the child to local and incoming
24674 argument registers are propagated back to the parent. The compiler
24675 is told about this with #include <vfork.h>, but some compilers
24676 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24677 static variable whose address is put into a register that is
24678 clobbered by the vfork. */
24681 sparc_address_test (int arg)
24683 sparc_address_test (arg) int arg;
24686 static pid_t child;
24704 pid_t parent = getpid ();
24707 sparc_address_test (0);
24712 /* Here is another test for sparc vfork register problems. This
24713 test uses lots of local variables, at least as many local
24714 variables as main has allocated so far including compiler
24715 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24716 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24717 reuse the register of parent for one of the local variables,
24718 since it will think that parent can't possibly be used any more
24719 in this routine. Assigning to the local variable will thus
24720 munge parent in the parent process. */
24722 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24723 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24724 /* Convince the compiler that p..p7 are live; otherwise, it might
24725 use the same hardware register for all 8 local variables. */
24726 if (p != p1 || p != p2 || p != p3 || p != p4
24727 || p != p5 || p != p6 || p != p7)
24730 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24731 from child file descriptors. If the child closes a descriptor
24732 before it execs or exits, this munges the parent's descriptor
24733 as well. Test for this by closing stdout in the child. */
24734 _exit(close(fileno(stdout)) != 0);
24739 while (wait(&status) != child)
24742 /* Was there some problem with vforking? */
24745 /* Did the child fail? (This shouldn't happen.) */
24748 /* Did the vfork/compiler bug occur? */
24749 || parent != getpid()
24751 /* Did the file descriptor bug occur? */
24752 || fstat(fileno(stdout), &st) != 0
24757 rm -f conftest$ac_exeext
24758 if { (ac_try="$ac_link"
24759 case "(($ac_try" in
24760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761 *) ac_try_echo=$ac_try;;
24763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24764 (eval "$ac_link") 2>&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24768 { (case "(($ac_try" in
24769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770 *) ac_try_echo=$ac_try;;
24772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773 (eval "$ac_try") 2>&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; }; then
24777 ac_cv_func_vfork_works=yes
24779 echo "$as_me: program exited with status $ac_status" >&5
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24783 ( exit $ac_status )
24784 ac_cv_func_vfork_works=no
24786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24791 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24792 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24795 if test "x$ac_cv_func_fork_works" = xcross; then
24796 ac_cv_func_vfork_works=$ac_cv_func_vfork
24797 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24798 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24801 if test "x$ac_cv_func_vfork_works" = xyes; then
24803 cat >>confdefs.h <<\_ACEOF
24804 @%:@define HAVE_WORKING_VFORK 1
24809 cat >>confdefs.h <<\_ACEOF
24810 @%:@define vfork fork
24814 if test "x$ac_cv_func_fork_works" = xyes; then
24816 cat >>confdefs.h <<\_ACEOF
24817 @%:@define HAVE_WORKING_FORK 1
24822 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24823 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24824 if test "${ac_cv_type_getgroups+set}" = set; then
24825 echo $ECHO_N "(cached) $ECHO_C" >&6
24827 if test "$cross_compiling" = yes; then
24828 ac_cv_type_getgroups=cross
24830 cat >conftest.$ac_ext <<_ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h. */
24836 /* Thanks to Mike Rendell for this test. */
24837 $ac_includes_default
24840 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24845 gid_t gidset[NGID];
24847 union { gid_t gval; long int lval; } val;
24850 for (i = 0; i < NGID; i++)
24851 gidset[i] = val.gval;
24852 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24854 /* Exit non-zero if getgroups seems to require an array of ints. This
24855 happens when gid_t is short int but getgroups modifies an array
24857 return n > 0 && gidset[n] != val.gval;
24860 rm -f conftest$ac_exeext
24861 if { (ac_try="$ac_link"
24862 case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_link") 2>&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24871 { (case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876 (eval "$ac_try") 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
24880 ac_cv_type_getgroups=gid_t
24882 echo "$as_me: program exited with status $ac_status" >&5
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24886 ( exit $ac_status )
24887 ac_cv_type_getgroups=int
24889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24893 if test $ac_cv_type_getgroups = cross; then
24894 cat >conftest.$ac_ext <<_ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h. */
24900 #include <unistd.h>
24903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24904 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24905 ac_cv_type_getgroups=gid_t
24907 ac_cv_type_getgroups=int
24913 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24914 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24916 cat >>confdefs.h <<_ACEOF
24917 @%:@define GETGROUPS_T $ac_cv_type_getgroups
24921 { echo "$as_me:$LINENO: checking for getgroups" >&5
24922 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24923 if test "${ac_cv_func_getgroups+set}" = set; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24934 #define getgroups innocuous_getgroups
24936 /* System header to define __stub macros and hopefully few prototypes,
24937 which can conflict with char getgroups (); below.
24938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24939 <limits.h> exists even on freestanding compilers. */
24942 # include <limits.h>
24944 # include <assert.h>
24949 /* Override any GCC internal prototype to avoid an error.
24950 Use char because int might match the return type of a GCC
24951 builtin and then its argument prototype would still apply. */
24956 /* The GNU C library defines this for functions which it implements
24957 to always fail with ENOSYS. Some functions are actually named
24958 something starting with __ and the normal name is an alias. */
24959 #if defined __stub_getgroups || defined __stub___getgroups
24966 return getgroups ();
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (ac_try="$ac_link"
24973 case "(($ac_try" in
24974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_link") 2>conftest.er1
24980 grep -v '^ *+' conftest.er1 >conftest.err
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest$ac_exeext &&
24988 $as_test_x conftest$ac_exeext; then
24989 ac_cv_func_getgroups=yes
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_cv_func_getgroups=no
24997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24998 conftest$ac_exeext conftest.$ac_ext
25000 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25001 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25004 # If we don't yet have getgroups, see if it's in -lbsd.
25005 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25007 if test $ac_cv_func_getgroups = no; then
25008 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25009 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25010 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25011 echo $ECHO_N "(cached) $ECHO_C" >&6
25013 ac_check_lib_save_LIBS=$LIBS
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25022 /* Override any GCC internal prototype to avoid an error.
25023 Use char because int might match the return type of a GCC
25024 builtin and then its argument prototype would still apply. */
25032 return getgroups ();
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044 (eval "$ac_link") 2>conftest.er1
25046 grep -v '^ *+' conftest.er1 >conftest.err
25048 cat conftest.err >&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && {
25051 test -z "$ac_c_werror_flag" ||
25052 test ! -s conftest.err
25053 } && test -s conftest$ac_exeext &&
25054 $as_test_x conftest$ac_exeext; then
25055 ac_cv_lib_bsd_getgroups=yes
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 ac_cv_lib_bsd_getgroups=no
25063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25064 conftest$ac_exeext conftest.$ac_ext
25065 LIBS=$ac_check_lib_save_LIBS
25067 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25068 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25069 if test $ac_cv_lib_bsd_getgroups = yes; then
25070 GETGROUPS_LIB=-lbsd
25075 # Run the program to test the functionality of the system-supplied
25076 # getgroups function only if there is such a function.
25077 if test $ac_cv_func_getgroups = yes; then
25078 { echo "$as_me:$LINENO: checking for working getgroups" >&5
25079 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25080 if test "${ac_cv_func_getgroups_works+set}" = set; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25083 if test "$cross_compiling" = yes; then
25084 ac_cv_func_getgroups_works=no
25086 cat >conftest.$ac_ext <<_ACEOF
25089 cat confdefs.h >>conftest.$ac_ext
25090 cat >>conftest.$ac_ext <<_ACEOF
25091 /* end confdefs.h. */
25092 $ac_includes_default
25096 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25097 return getgroups (0, 0) == -1;
25102 rm -f conftest$ac_exeext
25103 if { (ac_try="$ac_link"
25104 case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_link") 2>&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25113 { (case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_try") 2>&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 ac_cv_func_getgroups_works=yes
25124 echo "$as_me: program exited with status $ac_status" >&5
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 ( exit $ac_status )
25129 ac_cv_func_getgroups_works=no
25131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25137 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25138 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25139 if test $ac_cv_func_getgroups_works = yes; then
25141 cat >>confdefs.h <<\_ACEOF
25142 @%:@define HAVE_GETGROUPS 1
25149 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25150 # -lseq on Dynix/PTX, -lgen on Unixware.
25151 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25152 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25153 if test "${ac_cv_search_getmntent+set}" = set; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25156 ac_func_search_save_LIBS=$LIBS
25157 cat >conftest.$ac_ext <<_ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25164 /* Override any GCC internal prototype to avoid an error.
25165 Use char because int might match the return type of a GCC
25166 builtin and then its argument prototype would still apply. */
25174 return getmntent ();
25179 for ac_lib in '' sun seq gen; do
25180 if test -z "$ac_lib"; then
25181 ac_res="none required"
25184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (ac_try="$ac_link"
25188 case "(($ac_try" in
25189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190 *) ac_try_echo=$ac_try;;
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193 (eval "$ac_link") 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } && {
25200 test -z "$ac_c_werror_flag" ||
25201 test ! -s conftest.err
25202 } && test -s conftest$ac_exeext &&
25203 $as_test_x conftest$ac_exeext; then
25204 ac_cv_search_getmntent=$ac_res
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25214 if test "${ac_cv_search_getmntent+set}" = set; then
25218 if test "${ac_cv_search_getmntent+set}" = set; then
25221 ac_cv_search_getmntent=no
25223 rm conftest.$ac_ext
25224 LIBS=$ac_func_search_save_LIBS
25226 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25227 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25228 ac_res=$ac_cv_search_getmntent
25229 if test "$ac_res" != no; then
25230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25231 ac_cv_func_getmntent=yes
25233 cat >>confdefs.h <<\_ACEOF
25234 @%:@define HAVE_GETMNTENT 1
25238 ac_cv_func_getmntent=no
25242 if test $ac_cv_c_compiler_gnu = yes; then
25243 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25244 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25245 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25248 ac_pattern="Autoconf.*'x'"
25249 cat >conftest.$ac_ext <<_ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h. */
25258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25259 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25260 ac_cv_prog_gcc_traditional=yes
25262 ac_cv_prog_gcc_traditional=no
25267 if test $ac_cv_prog_gcc_traditional = no; then
25268 cat >conftest.$ac_ext <<_ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25274 #include <termio.h>
25277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25278 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25279 ac_cv_prog_gcc_traditional=yes
25285 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25286 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25287 if test $ac_cv_prog_gcc_traditional = yes; then
25288 CC="$CC -traditional"
25292 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25293 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25294 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25295 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 rm -f conftest.sym conftest.file
25298 echo >conftest.file
25299 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25300 if test "$cross_compiling" = yes; then
25301 ac_cv_func_lstat_dereferences_slashed_symlink=no
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 $ac_includes_default
25314 /* Linux will dereference the symlink and fail.
25315 That is better in the sense that it means we will not
25316 have to compile and use the lstat wrapper. */
25317 return lstat ("conftest.sym/", &sbuf) == 0;
25322 rm -f conftest$ac_exeext
25323 if { (ac_try="$ac_link"
25324 case "(($ac_try" in
25325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329 (eval "$ac_link") 2>&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25333 { (case "(($ac_try" in
25334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335 *) ac_try_echo=$ac_try;;
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338 (eval "$ac_try") 2>&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25344 echo "$as_me: program exited with status $ac_status" >&5
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25348 ( exit $ac_status )
25349 ac_cv_func_lstat_dereferences_slashed_symlink=no
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25356 # If the `ln -s' command failed, then we probably don't even
25357 # have an lstat function.
25358 ac_cv_func_lstat_dereferences_slashed_symlink=no
25360 rm -f conftest.sym conftest.file
25363 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25364 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25366 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25368 cat >>confdefs.h <<_ACEOF
25369 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25373 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25374 case " $LIB@&t@OBJS " in
25375 *" lstat.$ac_objext "* ) ;;
25376 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25382 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25383 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25384 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25387 if test "$cross_compiling" = yes; then
25388 ac_cv_func_lstat_empty_string_bug=yes
25390 cat >conftest.$ac_ext <<_ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h. */
25396 $ac_includes_default
25401 return lstat ("", &sbuf) == 0;
25406 rm -f conftest$ac_exeext
25407 if { (ac_try="$ac_link"
25408 case "(($ac_try" in
25409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410 *) ac_try_echo=$ac_try;;
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413 (eval "$ac_link") 2>&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25417 { (case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422 (eval "$ac_try") 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; }; then
25426 ac_cv_func_lstat_empty_string_bug=no
25428 echo "$as_me: program exited with status $ac_status" >&5
25429 echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25432 ( exit $ac_status )
25433 ac_cv_func_lstat_empty_string_bug=yes
25435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25440 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25441 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25442 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25443 case " $LIB@&t@OBJS " in
25444 *" lstat.$ac_objext "* ) ;;
25445 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25450 cat >>confdefs.h <<_ACEOF
25451 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25456 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25457 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25458 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25461 rm -f conftest.sym conftest.file
25462 echo >conftest.file
25463 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25464 if test "$cross_compiling" = yes; then
25465 ac_cv_func_lstat_dereferences_slashed_symlink=no
25467 cat >conftest.$ac_ext <<_ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h. */
25473 $ac_includes_default
25478 /* Linux will dereference the symlink and fail.
25479 That is better in the sense that it means we will not
25480 have to compile and use the lstat wrapper. */
25481 return lstat ("conftest.sym/", &sbuf) == 0;
25486 rm -f conftest$ac_exeext
25487 if { (ac_try="$ac_link"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493 (eval "$ac_link") 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25497 { (case "(($ac_try" in
25498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25502 (eval "$ac_try") 2>&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; }; then
25506 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25508 echo "$as_me: program exited with status $ac_status" >&5
25509 echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25512 ( exit $ac_status )
25513 ac_cv_func_lstat_dereferences_slashed_symlink=no
25515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25520 # If the `ln -s' command failed, then we probably don't even
25521 # have an lstat function.
25522 ac_cv_func_lstat_dereferences_slashed_symlink=no
25524 rm -f conftest.sym conftest.file
25527 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25528 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25530 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25532 cat >>confdefs.h <<_ACEOF
25533 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25537 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25538 case " $LIB@&t@OBJS " in
25539 *" lstat.$ac_objext "* ) ;;
25540 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25546 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25547 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25548 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 cat >conftest.$ac_ext <<_ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h. */
25557 @%:@include <sys/types.h>
25561 return makedev(0, 0);
25566 rm -f conftest.$ac_objext conftest$ac_exeext
25567 if { (ac_try="$ac_link"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573 (eval "$ac_link") 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } && {
25580 test -z "$ac_c_werror_flag" ||
25581 test ! -s conftest.err
25582 } && test -s conftest$ac_exeext &&
25583 $as_test_x conftest$ac_exeext; then
25584 ac_cv_header_sys_types_h_makedev=yes
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_cv_header_sys_types_h_makedev=no
25592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25593 conftest$ac_exeext conftest.$ac_ext
25596 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25597 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25599 if test $ac_cv_header_sys_types_h_makedev = no; then
25600 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25601 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25602 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25603 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25607 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25609 # Is the header compilable?
25610 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25611 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25612 cat >conftest.$ac_ext <<_ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 $ac_includes_default
25619 @%:@include <sys/mkdev.h>
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_compile") 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } && {
25635 test -z "$ac_c_werror_flag" ||
25636 test ! -s conftest.err
25637 } && test -s conftest.$ac_objext; then
25638 ac_header_compiler=yes
25640 echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ac_header_compiler=no
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25648 echo "${ECHO_T}$ac_header_compiler" >&6; }
25650 # Is the header present?
25651 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25652 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25659 @%:@include <sys/mkdev.h>
25661 if { (ac_try="$ac_cpp conftest.$ac_ext"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25669 grep -v '^ *+' conftest.er1 >conftest.err
25671 cat conftest.err >&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); } >/dev/null && {
25674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25675 test ! -s conftest.err
25677 ac_header_preproc=yes
25679 echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25682 ac_header_preproc=no
25685 rm -f conftest.err conftest.$ac_ext
25686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25687 echo "${ECHO_T}$ac_header_preproc" >&6; }
25689 # So? What about this header?
25690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25692 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25693 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25695 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25696 ac_header_preproc=yes
25699 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25700 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
25702 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
25703 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25704 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25705 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
25706 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
25707 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25708 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25709 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25710 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25712 @%:@@%:@ ------------------------------- @%:@@%:@
25713 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25714 @%:@@%:@ ------------------------------- @%:@@%:@
25716 ) | sed "s/^/$as_me: WARNING: /" >&2
25719 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25720 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25721 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25722 echo $ECHO_N "(cached) $ECHO_C" >&6
25724 ac_cv_header_sys_mkdev_h=$ac_header_preproc
25726 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25727 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25730 if test $ac_cv_header_sys_mkdev_h = yes; then
25732 cat >>confdefs.h <<\_ACEOF
25733 @%:@define MAJOR_IN_MKDEV 1
25740 if test $ac_cv_header_sys_mkdev_h = no; then
25741 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25742 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25743 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25744 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25748 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25750 # Is the header compilable?
25751 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25752 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 $ac_includes_default
25760 @%:@include <sys/sysmacros.h>
25762 rm -f conftest.$ac_objext
25763 if { (ac_try="$ac_compile"
25764 case "(($ac_try" in
25765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766 *) ac_try_echo=$ac_try;;
25768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25769 (eval "$ac_compile") 2>conftest.er1
25771 grep -v '^ *+' conftest.er1 >conftest.err
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } && {
25776 test -z "$ac_c_werror_flag" ||
25777 test ! -s conftest.err
25778 } && test -s conftest.$ac_objext; then
25779 ac_header_compiler=yes
25781 echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25784 ac_header_compiler=no
25787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25789 echo "${ECHO_T}$ac_header_compiler" >&6; }
25791 # Is the header present?
25792 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25793 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25794 cat >conftest.$ac_ext <<_ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h. */
25800 @%:@include <sys/sysmacros.h>
25802 if { (ac_try="$ac_cpp conftest.$ac_ext"
25803 case "(($ac_try" in
25804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805 *) ac_try_echo=$ac_try;;
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25810 grep -v '^ *+' conftest.er1 >conftest.err
25812 cat conftest.err >&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } >/dev/null && {
25815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25818 ac_header_preproc=yes
25820 echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25823 ac_header_preproc=no
25826 rm -f conftest.err conftest.$ac_ext
25827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25828 echo "${ECHO_T}$ac_header_preproc" >&6; }
25830 # So? What about this header?
25831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25833 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25834 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25835 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25836 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25837 ac_header_preproc=yes
25840 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25841 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
25843 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
25844 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25845 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25846 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
25847 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
25848 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25849 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25850 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25851 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25853 @%:@@%:@ ------------------------------- @%:@@%:@
25854 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25855 @%:@@%:@ ------------------------------- @%:@@%:@
25857 ) | sed "s/^/$as_me: WARNING: /" >&2
25860 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25861 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25862 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25865 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25868 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25871 if test $ac_cv_header_sys_sysmacros_h = yes; then
25873 cat >>confdefs.h <<\_ACEOF
25874 @%:@define MAJOR_IN_SYSMACROS 1
25884 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25885 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25886 if test "${ac_cv_func_memcmp_working+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 if test "$cross_compiling" = yes; then
25890 ac_cv_func_memcmp_working=no
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25898 $ac_includes_default
25903 /* Some versions of memcmp are not 8-bit clean. */
25904 char c0 = '\100', c1 = '\200', c2 = '\201';
25905 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25908 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25909 or more and with at least one buffer not starting on a 4-byte boundary.
25910 William Lewis provided this test program. */
25915 for (i = 0; i < 4; i++)
25919 strcpy (a, "--------01111111");
25920 strcpy (b, "--------10000000");
25921 if (memcmp (a, b, 16) >= 0)
25931 rm -f conftest$ac_exeext
25932 if { (ac_try="$ac_link"
25933 case "(($ac_try" in
25934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935 *) ac_try_echo=$ac_try;;
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938 (eval "$ac_link") 2>&5
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25942 { (case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947 (eval "$ac_try") 2>&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_cv_func_memcmp_working=yes
25953 echo "$as_me: program exited with status $ac_status" >&5
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 ( exit $ac_status )
25958 ac_cv_func_memcmp_working=no
25960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25965 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25966 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25967 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
25968 *" memcmp.$ac_objext "* ) ;;
25969 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
25977 for ac_header in sys/select.h sys/socket.h
25979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 ac_res=`eval echo '${'$as_ac_Header'}'`
25987 { echo "$as_me:$LINENO: result: $ac_res" >&5
25988 echo "${ECHO_T}$ac_res" >&6; }
25990 # Is the header compilable?
25991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25993 cat >conftest.$ac_ext <<_ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h. */
25999 $ac_includes_default
26000 @%:@include <$ac_header>
26002 rm -f conftest.$ac_objext
26003 if { (ac_try="$ac_compile"
26004 case "(($ac_try" in
26005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006 *) ac_try_echo=$ac_try;;
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009 (eval "$ac_compile") 2>conftest.er1
26011 grep -v '^ *+' conftest.er1 >conftest.err
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } && {
26016 test -z "$ac_c_werror_flag" ||
26017 test ! -s conftest.err
26018 } && test -s conftest.$ac_objext; then
26019 ac_header_compiler=yes
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26024 ac_header_compiler=no
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26029 echo "${ECHO_T}$ac_header_compiler" >&6; }
26031 # Is the header present?
26032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26034 cat >conftest.$ac_ext <<_ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26040 @%:@include <$ac_header>
26042 if { (ac_try="$ac_cpp conftest.$ac_ext"
26043 case "(($ac_try" in
26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045 *) ac_try_echo=$ac_try;;
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26050 grep -v '^ *+' conftest.er1 >conftest.err
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } >/dev/null && {
26055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26056 test ! -s conftest.err
26058 ac_header_preproc=yes
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26063 ac_header_preproc=no
26066 rm -f conftest.err conftest.$ac_ext
26067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26068 echo "${ECHO_T}$ac_header_preproc" >&6; }
26070 # So? What about this header?
26071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26077 ac_header_preproc=yes
26080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26093 @%:@@%:@ ------------------------------- @%:@@%:@
26094 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26095 @%:@@%:@ ------------------------------- @%:@@%:@
26097 ) | sed "s/^/$as_me: WARNING: /" >&2
26100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103 echo $ECHO_N "(cached) $ECHO_C" >&6
26105 eval "$as_ac_Header=\$ac_header_preproc"
26107 ac_res=`eval echo '${'$as_ac_Header'}'`
26108 { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26113 cat >>confdefs.h <<_ACEOF
26114 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26121 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26122 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26123 if test "${ac_cv_func_select_args+set}" = set; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26126 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26127 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26128 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26129 cat >conftest.$ac_ext <<_ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26135 $ac_includes_default
26136 #ifdef HAVE_SYS_SELECT_H
26137 # include <sys/select.h>
26139 #ifdef HAVE_SYS_SOCKET_H
26140 # include <sys/socket.h>
26146 extern int select ($ac_arg1,
26147 $ac_arg234, $ac_arg234, $ac_arg234,
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26172 echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 # Provide a safe default value.
26183 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26186 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26187 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26188 ac_save_IFS=$IFS; IFS=','
26189 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26193 cat >>confdefs.h <<_ACEOF
26194 @%:@define SELECT_TYPE_ARG1 $1
26198 cat >>confdefs.h <<_ACEOF
26199 @%:@define SELECT_TYPE_ARG234 ($2)
26203 cat >>confdefs.h <<_ACEOF
26204 @%:@define SELECT_TYPE_ARG5 ($3)
26209 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26210 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26211 if test "${ac_cv_type_signal+set}" = set; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 cat >conftest.$ac_ext <<_ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 #include <sys/types.h>
26221 #include <signal.h>
26226 return *(signal (0, 0)) (0) == 1;
26231 rm -f conftest.$ac_objext
26232 if { (ac_try="$ac_compile"
26233 case "(($ac_try" in
26234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235 *) ac_try_echo=$ac_try;;
26237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238 (eval "$ac_compile") 2>conftest.er1
26240 grep -v '^ *+' conftest.er1 >conftest.err
26242 cat conftest.err >&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); } && {
26245 test -z "$ac_c_werror_flag" ||
26246 test ! -s conftest.err
26247 } && test -s conftest.$ac_objext; then
26248 ac_cv_type_signal=int
26250 echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26253 ac_cv_type_signal=void
26256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26259 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26261 cat >>confdefs.h <<_ACEOF
26262 @%:@define RETSIGTYPE $ac_cv_type_signal
26266 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26267 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26268 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26271 if test "$cross_compiling" = yes; then
26272 ac_cv_func_stat_empty_string_bug=yes
26274 cat >conftest.$ac_ext <<_ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280 $ac_includes_default
26285 return stat ("", &sbuf) == 0;
26290 rm -f conftest$ac_exeext
26291 if { (ac_try="$ac_link"
26292 case "(($ac_try" in
26293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294 *) ac_try_echo=$ac_try;;
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_link") 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26301 { (case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_try") 2>&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; }; then
26310 ac_cv_func_stat_empty_string_bug=no
26312 echo "$as_me: program exited with status $ac_status" >&5
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 ( exit $ac_status )
26317 ac_cv_func_stat_empty_string_bug=yes
26319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26324 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26325 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26326 if test $ac_cv_func_stat_empty_string_bug = yes; then
26327 case " $LIB@&t@OBJS " in
26328 *" stat.$ac_objext "* ) ;;
26329 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26334 cat >>confdefs.h <<_ACEOF
26335 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26341 for ac_func in vprintf
26343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26347 echo $ECHO_N "(cached) $ECHO_C" >&6
26349 cat >conftest.$ac_ext <<_ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h. */
26355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26357 #define $ac_func innocuous_$ac_func
26359 /* System header to define __stub macros and hopefully few prototypes,
26360 which can conflict with char $ac_func (); below.
26361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362 <limits.h> exists even on freestanding compilers. */
26365 # include <limits.h>
26367 # include <assert.h>
26372 /* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26379 /* The GNU C library defines this for functions which it implements
26380 to always fail with ENOSYS. Some functions are actually named
26381 something starting with __ and the normal name is an alias. */
26382 #if defined __stub_$ac_func || defined __stub___$ac_func
26389 return $ac_func ();
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (ac_try="$ac_link"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_link") 2>conftest.er1
26403 grep -v '^ *+' conftest.er1 >conftest.err
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } && {
26408 test -z "$ac_c_werror_flag" ||
26409 test ! -s conftest.err
26410 } && test -s conftest$ac_exeext &&
26411 $as_test_x conftest$ac_exeext; then
26412 eval "$as_ac_var=yes"
26414 echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26417 eval "$as_ac_var=no"
26420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26421 conftest$ac_exeext conftest.$ac_ext
26423 ac_res=`eval echo '${'$as_ac_var'}'`
26424 { echo "$as_me:$LINENO: result: $ac_res" >&5
26425 echo "${ECHO_T}$ac_res" >&6; }
26426 if test `eval echo '${'$as_ac_var'}'` = yes; then
26427 cat >>confdefs.h <<_ACEOF
26428 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26431 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26432 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26433 if test "${ac_cv_func__doprnt+set}" = set; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
26436 cat >conftest.$ac_ext <<_ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26444 #define _doprnt innocuous__doprnt
26446 /* System header to define __stub macros and hopefully few prototypes,
26447 which can conflict with char _doprnt (); below.
26448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26449 <limits.h> exists even on freestanding compilers. */
26452 # include <limits.h>
26454 # include <assert.h>
26459 /* Override any GCC internal prototype to avoid an error.
26460 Use char because int might match the return type of a GCC
26461 builtin and then its argument prototype would still apply. */
26466 /* The GNU C library defines this for functions which it implements
26467 to always fail with ENOSYS. Some functions are actually named
26468 something starting with __ and the normal name is an alias. */
26469 #if defined __stub__doprnt || defined __stub____doprnt
26481 rm -f conftest.$ac_objext conftest$ac_exeext
26482 if { (ac_try="$ac_link"
26483 case "(($ac_try" in
26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485 *) ac_try_echo=$ac_try;;
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_link") 2>conftest.er1
26490 grep -v '^ *+' conftest.er1 >conftest.err
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } && {
26495 test -z "$ac_c_werror_flag" ||
26496 test ! -s conftest.err
26497 } && test -s conftest$ac_exeext &&
26498 $as_test_x conftest$ac_exeext; then
26499 ac_cv_func__doprnt=yes
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 ac_cv_func__doprnt=no
26507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26508 conftest$ac_exeext conftest.$ac_ext
26510 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26511 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26512 if test $ac_cv_func__doprnt = yes; then
26514 cat >>confdefs.h <<\_ACEOF
26515 @%:@define HAVE_DOPRNT 1
26553 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26554 gethostbyaddr gethostbyname gethostname getmntent \
26555 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26556 realpath rmdir select socket strcasecmp strchr strdup \
26557 strerror strrchr strtol strtoul sigprocmask
26559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26563 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26573 #define $ac_func innocuous_$ac_func
26575 /* System header to define __stub macros and hopefully few prototypes,
26576 which can conflict with char $ac_func (); below.
26577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26578 <limits.h> exists even on freestanding compilers. */
26581 # include <limits.h>
26583 # include <assert.h>
26588 /* Override any GCC internal prototype to avoid an error.
26589 Use char because int might match the return type of a GCC
26590 builtin and then its argument prototype would still apply. */
26595 /* The GNU C library defines this for functions which it implements
26596 to always fail with ENOSYS. Some functions are actually named
26597 something starting with __ and the normal name is an alias. */
26598 #if defined __stub_$ac_func || defined __stub___$ac_func
26605 return $ac_func ();
26610 rm -f conftest.$ac_objext conftest$ac_exeext
26611 if { (ac_try="$ac_link"
26612 case "(($ac_try" in
26613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614 *) ac_try_echo=$ac_try;;
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617 (eval "$ac_link") 2>conftest.er1
26619 grep -v '^ *+' conftest.er1 >conftest.err
26621 cat conftest.err >&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } && {
26624 test -z "$ac_c_werror_flag" ||
26625 test ! -s conftest.err
26626 } && test -s conftest$ac_exeext &&
26627 $as_test_x conftest$ac_exeext; then
26628 eval "$as_ac_var=yes"
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 eval "$as_ac_var=no"
26636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26637 conftest$ac_exeext conftest.$ac_ext
26639 ac_res=`eval echo '${'$as_ac_var'}'`
26640 { echo "$as_me:$LINENO: result: $ac_res" >&5
26641 echo "${ECHO_T}$ac_res" >&6; }
26642 if test `eval echo '${'$as_ac_var'}'` = yes; then
26643 cat >>confdefs.h <<_ACEOF
26644 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26652 { echo "$as_me:$LINENO: checking for short" >&5
26653 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26654 if test "${ac_cv_type_short+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
26657 cat >conftest.$ac_ext <<_ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h. */
26663 $ac_includes_default
26664 typedef short ac__type_new_;
26668 if ((ac__type_new_ *) 0)
26670 if (sizeof (ac__type_new_))
26676 rm -f conftest.$ac_objext
26677 if { (ac_try="$ac_compile"
26678 case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683 (eval "$ac_compile") 2>conftest.er1
26685 grep -v '^ *+' conftest.er1 >conftest.err
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } && {
26690 test -z "$ac_c_werror_flag" ||
26691 test ! -s conftest.err
26692 } && test -s conftest.$ac_objext; then
26693 ac_cv_type_short=yes
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 ac_cv_type_short=no
26701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26703 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26704 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26706 # The cast to long int works around a bug in the HP C Compiler
26707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26709 # This bug is HP SR number 8606223364.
26710 { echo "$as_me:$LINENO: checking size of short" >&5
26711 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26712 if test "${ac_cv_sizeof_short+set}" = set; then
26713 echo $ECHO_N "(cached) $ECHO_C" >&6
26715 if test "$cross_compiling" = yes; then
26716 # Depending upon the size, compute the lo and hi bounds.
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 $ac_includes_default
26724 typedef short ac__type_sizeof_;
26728 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
26729 test_array @<:@0@:>@ = 0
26735 rm -f conftest.$ac_objext
26736 if { (ac_try="$ac_compile"
26737 case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_compile") 2>conftest.er1
26744 grep -v '^ *+' conftest.er1 >conftest.err
26746 cat conftest.err >&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); } && {
26749 test -z "$ac_c_werror_flag" ||
26750 test ! -s conftest.err
26751 } && test -s conftest.$ac_objext; then
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26760 $ac_includes_default
26761 typedef short ac__type_sizeof_;
26765 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26766 test_array @<:@0@:>@ = 0
26772 rm -f conftest.$ac_objext
26773 if { (ac_try="$ac_compile"
26774 case "(($ac_try" in
26775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776 *) ac_try_echo=$ac_try;;
26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779 (eval "$ac_compile") 2>conftest.er1
26781 grep -v '^ *+' conftest.er1 >conftest.err
26783 cat conftest.err >&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } && {
26786 test -z "$ac_c_werror_flag" ||
26787 test ! -s conftest.err
26788 } && test -s conftest.$ac_objext; then
26789 ac_hi=$ac_mid; break
26791 echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26794 ac_lo=`expr $ac_mid + 1`
26795 if test $ac_lo -le $ac_mid; then
26799 ac_mid=`expr 2 '*' $ac_mid + 1`
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 cat >conftest.$ac_ext <<_ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 $ac_includes_default
26815 typedef short ac__type_sizeof_;
26819 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
26820 test_array @<:@0@:>@ = 0
26826 rm -f conftest.$ac_objext
26827 if { (ac_try="$ac_compile"
26828 case "(($ac_try" in
26829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830 *) ac_try_echo=$ac_try;;
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833 (eval "$ac_compile") 2>conftest.er1
26835 grep -v '^ *+' conftest.er1 >conftest.err
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } && {
26840 test -z "$ac_c_werror_flag" ||
26841 test ! -s conftest.err
26842 } && test -s conftest.$ac_objext; then
26845 cat >conftest.$ac_ext <<_ACEOF
26848 cat confdefs.h >>conftest.$ac_ext
26849 cat >>conftest.$ac_ext <<_ACEOF
26850 /* end confdefs.h. */
26851 $ac_includes_default
26852 typedef short ac__type_sizeof_;
26856 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
26857 test_array @<:@0@:>@ = 0
26863 rm -f conftest.$ac_objext
26864 if { (ac_try="$ac_compile"
26865 case "(($ac_try" in
26866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867 *) ac_try_echo=$ac_try;;
26869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26870 (eval "$ac_compile") 2>conftest.er1
26872 grep -v '^ *+' conftest.er1 >conftest.err
26874 cat conftest.err >&5
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); } && {
26877 test -z "$ac_c_werror_flag" ||
26878 test ! -s conftest.err
26879 } && test -s conftest.$ac_objext; then
26880 ac_lo=$ac_mid; break
26882 echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26885 ac_hi=`expr '(' $ac_mid ')' - 1`
26886 if test $ac_mid -le $ac_hi; then
26890 ac_mid=`expr 2 '*' $ac_mid`
26893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26896 echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906 # Binary search between lo and hi bounds.
26907 while test "x$ac_lo" != "x$ac_hi"; do
26908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26909 cat >conftest.$ac_ext <<_ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 $ac_includes_default
26916 typedef short ac__type_sizeof_;
26920 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26921 test_array @<:@0@:>@ = 0
26927 rm -f conftest.$ac_objext
26928 if { (ac_try="$ac_compile"
26929 case "(($ac_try" in
26930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931 *) ac_try_echo=$ac_try;;
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934 (eval "$ac_compile") 2>conftest.er1
26936 grep -v '^ *+' conftest.er1 >conftest.err
26938 cat conftest.err >&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } && {
26941 test -z "$ac_c_werror_flag" ||
26942 test ! -s conftest.err
26943 } && test -s conftest.$ac_objext; then
26946 echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26949 ac_lo=`expr '(' $ac_mid ')' + 1`
26952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26955 ?*) ac_cv_sizeof_short=$ac_lo;;
26956 '') if test "$ac_cv_type_short" = yes; then
26957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26958 See \`config.log' for more details." >&5
26959 echo "$as_me: error: cannot compute sizeof (short)
26960 See \`config.log' for more details." >&2;}
26961 { (exit 77); exit 77; }; }
26963 ac_cv_sizeof_short=0
26967 cat >conftest.$ac_ext <<_ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h. */
26973 $ac_includes_default
26974 typedef short ac__type_sizeof_;
26975 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26976 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26977 @%:@include <stdio.h>
26978 @%:@include <stdlib.h>
26983 FILE *f = fopen ("conftest.val", "w");
26986 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26988 long int i = longval ();
26989 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26991 fprintf (f, "%ld\n", i);
26995 unsigned long int i = ulongval ();
26996 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26998 fprintf (f, "%lu\n", i);
27000 return ferror (f) || fclose (f) != 0;
27006 rm -f conftest$ac_exeext
27007 if { (ac_try="$ac_link"
27008 case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_link") 2>&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27017 { (case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_try") 2>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); }; }; then
27026 ac_cv_sizeof_short=`cat conftest.val`
27028 echo "$as_me: program exited with status $ac_status" >&5
27029 echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27032 ( exit $ac_status )
27033 if test "$ac_cv_type_short" = yes; then
27034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27035 See \`config.log' for more details." >&5
27036 echo "$as_me: error: cannot compute sizeof (short)
27037 See \`config.log' for more details." >&2;}
27038 { (exit 77); exit 77; }; }
27040 ac_cv_sizeof_short=0
27043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27047 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27048 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27052 cat >>confdefs.h <<_ACEOF
27053 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27057 { echo "$as_me:$LINENO: checking for int" >&5
27058 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27059 if test "${ac_cv_type_int+set}" = set; then
27060 echo $ECHO_N "(cached) $ECHO_C" >&6
27062 cat >conftest.$ac_ext <<_ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h. */
27068 $ac_includes_default
27069 typedef int ac__type_new_;
27073 if ((ac__type_new_ *) 0)
27075 if (sizeof (ac__type_new_))
27081 rm -f conftest.$ac_objext
27082 if { (ac_try="$ac_compile"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27090 grep -v '^ *+' conftest.er1 >conftest.err
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
27100 echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27108 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27109 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27111 # The cast to long int works around a bug in the HP C Compiler
27112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27114 # This bug is HP SR number 8606223364.
27115 { echo "$as_me:$LINENO: checking size of int" >&5
27116 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27117 if test "${ac_cv_sizeof_int+set}" = set; then
27118 echo $ECHO_N "(cached) $ECHO_C" >&6
27120 if test "$cross_compiling" = yes; then
27121 # Depending upon the size, compute the lo and hi bounds.
27122 cat >conftest.$ac_ext <<_ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h. */
27128 $ac_includes_default
27129 typedef int ac__type_sizeof_;
27133 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27134 test_array @<:@0@:>@ = 0
27140 rm -f conftest.$ac_objext
27141 if { (ac_try="$ac_compile"
27142 case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_compile") 2>conftest.er1
27149 grep -v '^ *+' conftest.er1 >conftest.err
27151 cat conftest.err >&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } && {
27154 test -z "$ac_c_werror_flag" ||
27155 test ! -s conftest.err
27156 } && test -s conftest.$ac_objext; then
27159 cat >conftest.$ac_ext <<_ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27165 $ac_includes_default
27166 typedef int ac__type_sizeof_;
27170 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27171 test_array @<:@0@:>@ = 0
27177 rm -f conftest.$ac_objext
27178 if { (ac_try="$ac_compile"
27179 case "(($ac_try" in
27180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27181 *) ac_try_echo=$ac_try;;
27183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27184 (eval "$ac_compile") 2>conftest.er1
27186 grep -v '^ *+' conftest.er1 >conftest.err
27188 cat conftest.err >&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); } && {
27191 test -z "$ac_c_werror_flag" ||
27192 test ! -s conftest.err
27193 } && test -s conftest.$ac_objext; then
27194 ac_hi=$ac_mid; break
27196 echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27199 ac_lo=`expr $ac_mid + 1`
27200 if test $ac_lo -le $ac_mid; then
27204 ac_mid=`expr 2 '*' $ac_mid + 1`
27207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 cat >conftest.$ac_ext <<_ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h. */
27219 $ac_includes_default
27220 typedef int ac__type_sizeof_;
27224 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27225 test_array @<:@0@:>@ = 0
27231 rm -f conftest.$ac_objext
27232 if { (ac_try="$ac_compile"
27233 case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_compile") 2>conftest.er1
27240 grep -v '^ *+' conftest.er1 >conftest.err
27242 cat conftest.err >&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } && {
27245 test -z "$ac_c_werror_flag" ||
27246 test ! -s conftest.err
27247 } && test -s conftest.$ac_objext; then
27250 cat >conftest.$ac_ext <<_ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h. */
27256 $ac_includes_default
27257 typedef int ac__type_sizeof_;
27261 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27262 test_array @<:@0@:>@ = 0
27268 rm -f conftest.$ac_objext
27269 if { (ac_try="$ac_compile"
27270 case "(($ac_try" in
27271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27272 *) ac_try_echo=$ac_try;;
27274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27275 (eval "$ac_compile") 2>conftest.er1
27277 grep -v '^ *+' conftest.er1 >conftest.err
27279 cat conftest.err >&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); } && {
27282 test -z "$ac_c_werror_flag" ||
27283 test ! -s conftest.err
27284 } && test -s conftest.$ac_objext; then
27285 ac_lo=$ac_mid; break
27287 echo "$as_me: failed program was:" >&5
27288 sed 's/^/| /' conftest.$ac_ext >&5
27290 ac_hi=`expr '(' $ac_mid ')' - 1`
27291 if test $ac_mid -le $ac_hi; then
27295 ac_mid=`expr 2 '*' $ac_mid`
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27311 # Binary search between lo and hi bounds.
27312 while test "x$ac_lo" != "x$ac_hi"; do
27313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27314 cat >conftest.$ac_ext <<_ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h. */
27320 $ac_includes_default
27321 typedef int ac__type_sizeof_;
27325 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27326 test_array @<:@0@:>@ = 0
27332 rm -f conftest.$ac_objext
27333 if { (ac_try="$ac_compile"
27334 case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_compile") 2>conftest.er1
27341 grep -v '^ *+' conftest.er1 >conftest.err
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } && {
27346 test -z "$ac_c_werror_flag" ||
27347 test ! -s conftest.err
27348 } && test -s conftest.$ac_objext; then
27351 echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27354 ac_lo=`expr '(' $ac_mid ')' + 1`
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 ?*) ac_cv_sizeof_int=$ac_lo;;
27361 '') if test "$ac_cv_type_int" = yes; then
27362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27363 See \`config.log' for more details." >&5
27364 echo "$as_me: error: cannot compute sizeof (int)
27365 See \`config.log' for more details." >&2;}
27366 { (exit 77); exit 77; }; }
27372 cat >conftest.$ac_ext <<_ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h. */
27378 $ac_includes_default
27379 typedef int ac__type_sizeof_;
27380 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27381 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27382 @%:@include <stdio.h>
27383 @%:@include <stdlib.h>
27388 FILE *f = fopen ("conftest.val", "w");
27391 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27393 long int i = longval ();
27394 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27396 fprintf (f, "%ld\n", i);
27400 unsigned long int i = ulongval ();
27401 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27403 fprintf (f, "%lu\n", i);
27405 return ferror (f) || fclose (f) != 0;
27411 rm -f conftest$ac_exeext
27412 if { (ac_try="$ac_link"
27413 case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_link") 2>&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27422 { (case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_try") 2>&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; }; then
27431 ac_cv_sizeof_int=`cat conftest.val`
27433 echo "$as_me: program exited with status $ac_status" >&5
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27437 ( exit $ac_status )
27438 if test "$ac_cv_type_int" = yes; then
27439 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27440 See \`config.log' for more details." >&5
27441 echo "$as_me: error: cannot compute sizeof (int)
27442 See \`config.log' for more details." >&2;}
27443 { (exit 77); exit 77; }; }
27448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27452 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27453 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27457 cat >>confdefs.h <<_ACEOF
27458 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27462 { echo "$as_me:$LINENO: checking for long" >&5
27463 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27464 if test "${ac_cv_type_long+set}" = set; then
27465 echo $ECHO_N "(cached) $ECHO_C" >&6
27467 cat >conftest.$ac_ext <<_ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27473 $ac_includes_default
27474 typedef long ac__type_new_;
27478 if ((ac__type_new_ *) 0)
27480 if (sizeof (ac__type_new_))
27486 rm -f conftest.$ac_objext
27487 if { (ac_try="$ac_compile"
27488 case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_compile") 2>conftest.er1
27495 grep -v '^ *+' conftest.er1 >conftest.err
27497 cat conftest.err >&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } && {
27500 test -z "$ac_c_werror_flag" ||
27501 test ! -s conftest.err
27502 } && test -s conftest.$ac_objext; then
27503 ac_cv_type_long=yes
27505 echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27514 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27516 # The cast to long int works around a bug in the HP C Compiler
27517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27519 # This bug is HP SR number 8606223364.
27520 { echo "$as_me:$LINENO: checking size of long" >&5
27521 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27522 if test "${ac_cv_sizeof_long+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 if test "$cross_compiling" = yes; then
27526 # Depending upon the size, compute the lo and hi bounds.
27527 cat >conftest.$ac_ext <<_ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h. */
27533 $ac_includes_default
27534 typedef long ac__type_sizeof_;
27538 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27539 test_array @<:@0@:>@ = 0
27545 rm -f conftest.$ac_objext
27546 if { (ac_try="$ac_compile"
27547 case "(($ac_try" in
27548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549 *) ac_try_echo=$ac_try;;
27551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27552 (eval "$ac_compile") 2>conftest.er1
27554 grep -v '^ *+' conftest.er1 >conftest.err
27556 cat conftest.err >&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } && {
27559 test -z "$ac_c_werror_flag" ||
27560 test ! -s conftest.err
27561 } && test -s conftest.$ac_objext; then
27564 cat >conftest.$ac_ext <<_ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h. */
27570 $ac_includes_default
27571 typedef long ac__type_sizeof_;
27575 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27576 test_array @<:@0@:>@ = 0
27582 rm -f conftest.$ac_objext
27583 if { (ac_try="$ac_compile"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_compile") 2>conftest.er1
27591 grep -v '^ *+' conftest.er1 >conftest.err
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } && {
27596 test -z "$ac_c_werror_flag" ||
27597 test ! -s conftest.err
27598 } && test -s conftest.$ac_objext; then
27599 ac_hi=$ac_mid; break
27601 echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27604 ac_lo=`expr $ac_mid + 1`
27605 if test $ac_lo -le $ac_mid; then
27609 ac_mid=`expr 2 '*' $ac_mid + 1`
27612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624 $ac_includes_default
27625 typedef long ac__type_sizeof_;
27629 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27630 test_array @<:@0@:>@ = 0
27636 rm -f conftest.$ac_objext
27637 if { (ac_try="$ac_compile"
27638 case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_compile") 2>conftest.er1
27645 grep -v '^ *+' conftest.er1 >conftest.err
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } && {
27650 test -z "$ac_c_werror_flag" ||
27651 test ! -s conftest.err
27652 } && test -s conftest.$ac_objext; then
27655 cat >conftest.$ac_ext <<_ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h. */
27661 $ac_includes_default
27662 typedef long ac__type_sizeof_;
27666 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27667 test_array @<:@0@:>@ = 0
27673 rm -f conftest.$ac_objext
27674 if { (ac_try="$ac_compile"
27675 case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_compile") 2>conftest.er1
27682 grep -v '^ *+' conftest.er1 >conftest.err
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } && {
27687 test -z "$ac_c_werror_flag" ||
27688 test ! -s conftest.err
27689 } && test -s conftest.$ac_objext; then
27690 ac_lo=$ac_mid; break
27692 echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27695 ac_hi=`expr '(' $ac_mid ')' - 1`
27696 if test $ac_mid -le $ac_hi; then
27700 ac_mid=`expr 2 '*' $ac_mid`
27703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27706 echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27716 # Binary search between lo and hi bounds.
27717 while test "x$ac_lo" != "x$ac_hi"; do
27718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27719 cat >conftest.$ac_ext <<_ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h. */
27725 $ac_includes_default
27726 typedef long ac__type_sizeof_;
27730 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27731 test_array @<:@0@:>@ = 0
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_compile") 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } && {
27751 test -z "$ac_c_werror_flag" ||
27752 test ! -s conftest.err
27753 } && test -s conftest.$ac_objext; then
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27759 ac_lo=`expr '(' $ac_mid ')' + 1`
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27765 ?*) ac_cv_sizeof_long=$ac_lo;;
27766 '') if test "$ac_cv_type_long" = yes; then
27767 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27768 See \`config.log' for more details." >&5
27769 echo "$as_me: error: cannot compute sizeof (long)
27770 See \`config.log' for more details." >&2;}
27771 { (exit 77); exit 77; }; }
27773 ac_cv_sizeof_long=0
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 $ac_includes_default
27784 typedef long ac__type_sizeof_;
27785 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27786 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27787 @%:@include <stdio.h>
27788 @%:@include <stdlib.h>
27793 FILE *f = fopen ("conftest.val", "w");
27796 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27798 long int i = longval ();
27799 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27801 fprintf (f, "%ld\n", i);
27805 unsigned long int i = ulongval ();
27806 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27808 fprintf (f, "%lu\n", i);
27810 return ferror (f) || fclose (f) != 0;
27816 rm -f conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_link") 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27827 { (case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_try") 2>&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; }; then
27836 ac_cv_sizeof_long=`cat conftest.val`
27838 echo "$as_me: program exited with status $ac_status" >&5
27839 echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27842 ( exit $ac_status )
27843 if test "$ac_cv_type_long" = yes; then
27844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27845 See \`config.log' for more details." >&5
27846 echo "$as_me: error: cannot compute sizeof (long)
27847 See \`config.log' for more details." >&2;}
27848 { (exit 77); exit 77; }; }
27850 ac_cv_sizeof_long=0
27853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27857 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27858 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27862 cat >>confdefs.h <<_ACEOF
27863 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
27867 { echo "$as_me:$LINENO: checking for size_t" >&5
27868 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27869 if test "${ac_cv_type_size_t+set}" = set; then
27870 echo $ECHO_N "(cached) $ECHO_C" >&6
27872 cat >conftest.$ac_ext <<_ACEOF
27875 cat confdefs.h >>conftest.$ac_ext
27876 cat >>conftest.$ac_ext <<_ACEOF
27877 /* end confdefs.h. */
27878 $ac_includes_default
27879 typedef size_t ac__type_new_;
27883 if ((ac__type_new_ *) 0)
27885 if (sizeof (ac__type_new_))
27891 rm -f conftest.$ac_objext
27892 if { (ac_try="$ac_compile"
27893 case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_compile") 2>conftest.er1
27900 grep -v '^ *+' conftest.er1 >conftest.err
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } && {
27905 test -z "$ac_c_werror_flag" ||
27906 test ! -s conftest.err
27907 } && test -s conftest.$ac_objext; then
27908 ac_cv_type_size_t=yes
27910 echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27913 ac_cv_type_size_t=no
27916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27918 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27919 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27921 # The cast to long int works around a bug in the HP C Compiler
27922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27924 # This bug is HP SR number 8606223364.
27925 { echo "$as_me:$LINENO: checking size of size_t" >&5
27926 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27927 if test "${ac_cv_sizeof_size_t+set}" = set; then
27928 echo $ECHO_N "(cached) $ECHO_C" >&6
27930 if test "$cross_compiling" = yes; then
27931 # Depending upon the size, compute the lo and hi bounds.
27932 cat >conftest.$ac_ext <<_ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h. */
27938 $ac_includes_default
27939 typedef size_t ac__type_sizeof_;
27943 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27944 test_array @<:@0@:>@ = 0
27950 rm -f conftest.$ac_objext
27951 if { (ac_try="$ac_compile"
27952 case "(($ac_try" in
27953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954 *) ac_try_echo=$ac_try;;
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957 (eval "$ac_compile") 2>conftest.er1
27959 grep -v '^ *+' conftest.er1 >conftest.err
27961 cat conftest.err >&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); } && {
27964 test -z "$ac_c_werror_flag" ||
27965 test ! -s conftest.err
27966 } && test -s conftest.$ac_objext; then
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27975 $ac_includes_default
27976 typedef size_t ac__type_sizeof_;
27980 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27981 test_array @<:@0@:>@ = 0
27987 rm -f conftest.$ac_objext
27988 if { (ac_try="$ac_compile"
27989 case "(($ac_try" in
27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991 *) ac_try_echo=$ac_try;;
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_compile") 2>conftest.er1
27996 grep -v '^ *+' conftest.er1 >conftest.err
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } && {
28001 test -z "$ac_c_werror_flag" ||
28002 test ! -s conftest.err
28003 } && test -s conftest.$ac_objext; then
28004 ac_hi=$ac_mid; break
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 ac_lo=`expr $ac_mid + 1`
28010 if test $ac_lo -le $ac_mid; then
28014 ac_mid=`expr 2 '*' $ac_mid + 1`
28017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023 cat >conftest.$ac_ext <<_ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h. */
28029 $ac_includes_default
28030 typedef size_t ac__type_sizeof_;
28034 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28035 test_array @<:@0@:>@ = 0
28041 rm -f conftest.$ac_objext
28042 if { (ac_try="$ac_compile"
28043 case "(($ac_try" in
28044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045 *) ac_try_echo=$ac_try;;
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048 (eval "$ac_compile") 2>conftest.er1
28050 grep -v '^ *+' conftest.er1 >conftest.err
28052 cat conftest.err >&5
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); } && {
28055 test -z "$ac_c_werror_flag" ||
28056 test ! -s conftest.err
28057 } && test -s conftest.$ac_objext; then
28060 cat >conftest.$ac_ext <<_ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h. */
28066 $ac_includes_default
28067 typedef size_t ac__type_sizeof_;
28071 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28072 test_array @<:@0@:>@ = 0
28078 rm -f conftest.$ac_objext
28079 if { (ac_try="$ac_compile"
28080 case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_compile") 2>conftest.er1
28087 grep -v '^ *+' conftest.er1 >conftest.err
28089 cat conftest.err >&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } && {
28092 test -z "$ac_c_werror_flag" ||
28093 test ! -s conftest.err
28094 } && test -s conftest.$ac_objext; then
28095 ac_lo=$ac_mid; break
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28100 ac_hi=`expr '(' $ac_mid ')' - 1`
28101 if test $ac_mid -le $ac_hi; then
28105 ac_mid=`expr 2 '*' $ac_mid`
28108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28121 # Binary search between lo and hi bounds.
28122 while test "x$ac_lo" != "x$ac_hi"; do
28123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28130 $ac_includes_default
28131 typedef size_t ac__type_sizeof_;
28135 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28136 test_array @<:@0@:>@ = 0
28142 rm -f conftest.$ac_objext
28143 if { (ac_try="$ac_compile"
28144 case "(($ac_try" in
28145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 (eval "$ac_compile") 2>conftest.er1
28151 grep -v '^ *+' conftest.er1 >conftest.err
28153 cat conftest.err >&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); } && {
28156 test -z "$ac_c_werror_flag" ||
28157 test ! -s conftest.err
28158 } && test -s conftest.$ac_objext; then
28161 echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28164 ac_lo=`expr '(' $ac_mid ')' + 1`
28167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28171 '') if test "$ac_cv_type_size_t" = yes; then
28172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28173 See \`config.log' for more details." >&5
28174 echo "$as_me: error: cannot compute sizeof (size_t)
28175 See \`config.log' for more details." >&2;}
28176 { (exit 77); exit 77; }; }
28178 ac_cv_sizeof_size_t=0
28182 cat >conftest.$ac_ext <<_ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28188 $ac_includes_default
28189 typedef size_t ac__type_sizeof_;
28190 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28191 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28192 @%:@include <stdio.h>
28193 @%:@include <stdlib.h>
28198 FILE *f = fopen ("conftest.val", "w");
28201 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28203 long int i = longval ();
28204 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28206 fprintf (f, "%ld\n", i);
28210 unsigned long int i = ulongval ();
28211 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28213 fprintf (f, "%lu\n", i);
28215 return ferror (f) || fclose (f) != 0;
28221 rm -f conftest$ac_exeext
28222 if { (ac_try="$ac_link"
28223 case "(($ac_try" in
28224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225 *) ac_try_echo=$ac_try;;
28227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28228 (eval "$ac_link") 2>&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28232 { (case "(($ac_try" in
28233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 *) ac_try_echo=$ac_try;;
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_try") 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; }; then
28241 ac_cv_sizeof_size_t=`cat conftest.val`
28243 echo "$as_me: program exited with status $ac_status" >&5
28244 echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28247 ( exit $ac_status )
28248 if test "$ac_cv_type_size_t" = yes; then
28249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28250 See \`config.log' for more details." >&5
28251 echo "$as_me: error: cannot compute sizeof (size_t)
28252 See \`config.log' for more details." >&2;}
28253 { (exit 77); exit 77; }; }
28255 ac_cv_sizeof_size_t=0
28258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28262 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28263 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28267 cat >>confdefs.h <<_ACEOF
28268 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28272 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28273 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28274 if test "${ac_cv_type_socklen_t+set}" = set; then
28275 echo $ECHO_N "(cached) $ECHO_C" >&6
28277 cat >conftest.$ac_ext <<_ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h. */
28283 $ac_includes_default
28284 typedef socklen_t ac__type_new_;
28288 if ((ac__type_new_ *) 0)
28290 if (sizeof (ac__type_new_))
28296 rm -f conftest.$ac_objext
28297 if { (ac_try="$ac_compile"
28298 case "(($ac_try" in
28299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_compile") 2>conftest.er1
28305 grep -v '^ *+' conftest.er1 >conftest.err
28307 cat conftest.err >&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } && {
28310 test -z "$ac_c_werror_flag" ||
28311 test ! -s conftest.err
28312 } && test -s conftest.$ac_objext; then
28313 ac_cv_type_socklen_t=yes
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28318 ac_cv_type_socklen_t=no
28321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28324 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28326 # The cast to long int works around a bug in the HP C Compiler
28327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28329 # This bug is HP SR number 8606223364.
28330 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28331 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28332 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28333 echo $ECHO_N "(cached) $ECHO_C" >&6
28335 if test "$cross_compiling" = yes; then
28336 # Depending upon the size, compute the lo and hi bounds.
28337 cat >conftest.$ac_ext <<_ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h. */
28343 $ac_includes_default
28344 typedef socklen_t ac__type_sizeof_;
28348 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28349 test_array @<:@0@:>@ = 0
28355 rm -f conftest.$ac_objext
28356 if { (ac_try="$ac_compile"
28357 case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_compile") 2>conftest.er1
28364 grep -v '^ *+' conftest.er1 >conftest.err
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } && {
28369 test -z "$ac_c_werror_flag" ||
28370 test ! -s conftest.err
28371 } && test -s conftest.$ac_objext; then
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 $ac_includes_default
28381 typedef socklen_t ac__type_sizeof_;
28385 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28386 test_array @<:@0@:>@ = 0
28392 rm -f conftest.$ac_objext
28393 if { (ac_try="$ac_compile"
28394 case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_compile") 2>conftest.er1
28401 grep -v '^ *+' conftest.er1 >conftest.err
28403 cat conftest.err >&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } && {
28406 test -z "$ac_c_werror_flag" ||
28407 test ! -s conftest.err
28408 } && test -s conftest.$ac_objext; then
28409 ac_hi=$ac_mid; break
28411 echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28414 ac_lo=`expr $ac_mid + 1`
28415 if test $ac_lo -le $ac_mid; then
28419 ac_mid=`expr 2 '*' $ac_mid + 1`
28422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28425 echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28428 cat >conftest.$ac_ext <<_ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h. */
28434 $ac_includes_default
28435 typedef socklen_t ac__type_sizeof_;
28439 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28440 test_array @<:@0@:>@ = 0
28446 rm -f conftest.$ac_objext
28447 if { (ac_try="$ac_compile"
28448 case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_compile") 2>conftest.er1
28455 grep -v '^ *+' conftest.er1 >conftest.err
28457 cat conftest.err >&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } && {
28460 test -z "$ac_c_werror_flag" ||
28461 test ! -s conftest.err
28462 } && test -s conftest.$ac_objext; then
28465 cat >conftest.$ac_ext <<_ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h. */
28471 $ac_includes_default
28472 typedef socklen_t ac__type_sizeof_;
28476 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28477 test_array @<:@0@:>@ = 0
28483 rm -f conftest.$ac_objext
28484 if { (ac_try="$ac_compile"
28485 case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_compile") 2>conftest.er1
28492 grep -v '^ *+' conftest.er1 >conftest.err
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } && {
28497 test -z "$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28499 } && test -s conftest.$ac_objext; then
28500 ac_lo=$ac_mid; break
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28505 ac_hi=`expr '(' $ac_mid ')' - 1`
28506 if test $ac_mid -le $ac_hi; then
28510 ac_mid=`expr 2 '*' $ac_mid`
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28526 # Binary search between lo and hi bounds.
28527 while test "x$ac_lo" != "x$ac_hi"; do
28528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28529 cat >conftest.$ac_ext <<_ACEOF
28532 cat confdefs.h >>conftest.$ac_ext
28533 cat >>conftest.$ac_ext <<_ACEOF
28534 /* end confdefs.h. */
28535 $ac_includes_default
28536 typedef socklen_t ac__type_sizeof_;
28540 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28541 test_array @<:@0@:>@ = 0
28547 rm -f conftest.$ac_objext
28548 if { (ac_try="$ac_compile"
28549 case "(($ac_try" in
28550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28551 *) ac_try_echo=$ac_try;;
28553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28554 (eval "$ac_compile") 2>conftest.er1
28556 grep -v '^ *+' conftest.er1 >conftest.err
28558 cat conftest.err >&5
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); } && {
28561 test -z "$ac_c_werror_flag" ||
28562 test ! -s conftest.err
28563 } && test -s conftest.$ac_objext; then
28566 echo "$as_me: failed program was:" >&5
28567 sed 's/^/| /' conftest.$ac_ext >&5
28569 ac_lo=`expr '(' $ac_mid ')' + 1`
28572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28575 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28576 '') if test "$ac_cv_type_socklen_t" = yes; then
28577 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28578 See \`config.log' for more details." >&5
28579 echo "$as_me: error: cannot compute sizeof (socklen_t)
28580 See \`config.log' for more details." >&2;}
28581 { (exit 77); exit 77; }; }
28583 ac_cv_sizeof_socklen_t=0
28587 cat >conftest.$ac_ext <<_ACEOF
28590 cat confdefs.h >>conftest.$ac_ext
28591 cat >>conftest.$ac_ext <<_ACEOF
28592 /* end confdefs.h. */
28593 $ac_includes_default
28594 typedef socklen_t ac__type_sizeof_;
28595 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28596 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28597 @%:@include <stdio.h>
28598 @%:@include <stdlib.h>
28603 FILE *f = fopen ("conftest.val", "w");
28606 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28608 long int i = longval ();
28609 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28611 fprintf (f, "%ld\n", i);
28615 unsigned long int i = ulongval ();
28616 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28618 fprintf (f, "%lu\n", i);
28620 return ferror (f) || fclose (f) != 0;
28626 rm -f conftest$ac_exeext
28627 if { (ac_try="$ac_link"
28628 case "(($ac_try" in
28629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28630 *) ac_try_echo=$ac_try;;
28632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28633 (eval "$ac_link") 2>&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28637 { (case "(($ac_try" in
28638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639 *) ac_try_echo=$ac_try;;
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642 (eval "$ac_try") 2>&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; }; then
28646 ac_cv_sizeof_socklen_t=`cat conftest.val`
28648 echo "$as_me: program exited with status $ac_status" >&5
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28652 ( exit $ac_status )
28653 if test "$ac_cv_type_socklen_t" = yes; then
28654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28655 See \`config.log' for more details." >&5
28656 echo "$as_me: error: cannot compute sizeof (socklen_t)
28657 See \`config.log' for more details." >&2;}
28658 { (exit 77); exit 77; }; }
28660 ac_cv_sizeof_socklen_t=0
28663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28667 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28668 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28672 cat >>confdefs.h <<_ACEOF
28673 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28680 cat >>confdefs.h <<_ACEOF
28681 @%:@define NFS_STATEDIR "$statedir"
28685 if test "x$cross_compiling" = "xno"; then
28686 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28687 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28688 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28689 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28691 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28692 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28693 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28694 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28709 ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28714 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28716 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28718 AM_CFLAGS="$my_am_cflags"
28721 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28722 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28725 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"
28727 cat >confcache <<\_ACEOF
28728 # This file is a shell script that caches the results of configure
28729 # tests run on this system so they can be shared between configure
28730 # scripts and configure runs, see configure's option --config-cache.
28731 # It is not useful on other systems. If it contains results you don't
28732 # want to keep, you may remove or edit it.
28734 # config.status only pays attention to the cache file if you give it
28735 # the --recheck option to rerun configure.
28737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28739 # following values.
28743 # The following way of writing the cache mishandles newlines in values,
28744 # but we know of no workaround that is simple, portable, and efficient.
28745 # So, we kill variables containing newlines.
28746 # Ultrix sh set writes to stderr and can't be redirected directly,
28747 # and sets the high bit in the cache file unless we assign to the vars.
28749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28750 eval ac_val=\$$ac_var
28754 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28758 _ | IFS | as_nl) ;; #(
28759 *) $as_unset $ac_var ;;
28765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28766 *${as_nl}ac_space=\ *)
28767 # `set' does not quote correctly, so add quotes (double-quote
28768 # substitution turns \\\\ into \\, and sed turns \\ into \).
28771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28774 # `set' quotes correctly as required by POSIX, so do not add quotes.
28775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28789 if test -w "$cache_file"; then
28790 test "x$cache_file" != "x/dev/null" &&
28791 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28792 echo "$as_me: updating cache $cache_file" >&6;}
28793 cat confcache >$cache_file
28795 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28796 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28802 # Let make expand exec_prefix.
28803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28805 DEFS=-DHAVE_CONFIG_H
28809 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
28810 # 1. Remove the extension, and $U if already installed.
28811 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28812 ac_i=`echo "$ac_i" | sed "$ac_script"`
28813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28814 # will be set to the directory where LIBOBJS objects are built.
28815 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28816 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28818 LIB@&t@OBJS=$ac_libobjs
28820 LTLIBOBJS=$ac_ltlibobjs
28823 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28824 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28825 Usually this means the macro was only invoked conditionally." >&5
28826 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28827 Usually this means the macro was only invoked conditionally." >&2;}
28828 { (exit 1); exit 1; }; }
28830 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28831 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28832 Usually this means the macro was only invoked conditionally." >&5
28833 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28834 Usually this means the macro was only invoked conditionally." >&2;}
28835 { (exit 1); exit 1; }; }
28837 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28838 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28839 Usually this means the macro was only invoked conditionally." >&5
28840 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28841 Usually this means the macro was only invoked conditionally." >&2;}
28842 { (exit 1); exit 1; }; }
28844 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28845 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28846 Usually this means the macro was only invoked conditionally." >&5
28847 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28848 Usually this means the macro was only invoked conditionally." >&2;}
28849 { (exit 1); exit 1; }; }
28851 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28852 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&5
28854 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28855 Usually this means the macro was only invoked conditionally." >&2;}
28856 { (exit 1); exit 1; }; }
28858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28859 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&5
28861 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28862 Usually this means the macro was only invoked conditionally." >&2;}
28863 { (exit 1); exit 1; }; }
28865 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28866 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&5
28868 echo "$as_me: error: conditional \"am__fastdepCXX\" 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; }; }
28880 : ${CONFIG_STATUS=./config.status}
28881 ac_clean_files_save=$ac_clean_files
28882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28885 cat >$CONFIG_STATUS <<_ACEOF
28887 # Generated by $as_me.
28888 # Run this file to recreate the current configuration.
28889 # Compiler output produced by configure, useful for debugging
28890 # configure, is in config.log if it exists.
28893 ac_cs_recheck=false
28895 SHELL=\${CONFIG_SHELL-$SHELL}
28898 cat >>$CONFIG_STATUS <<\_ACEOF
28899 ## --------------------- ##
28900 ## M4sh Initialization. ##
28901 ## --------------------- ##
28903 # Be more Bourne compatible
28904 DUALCASE=1; export DUALCASE # for MKS sh
28905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28908 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28909 # is contrary to our usage. Disable this feature.
28910 alias -g '${1+"$@"}'='"$@"'
28911 setopt NO_GLOB_SUBST
28913 case `(set -o) 2>/dev/null` in
28914 *posix*) set -o posix ;;
28923 # Avoid depending upon Character Ranges.
28924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28927 as_cr_digits='0123456789'
28928 as_cr_alnum=$as_cr_Letters$as_cr_digits
28930 # The user is always right.
28931 if test "${PATH_SEPARATOR+set}" != set; then
28932 echo "#! /bin/sh" >conf$$.sh
28933 echo "exit 0" >>conf$$.sh
28935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28943 # Support unset when possible.
28944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28952 # We need space, tab and new line, in precisely that order. Quoting is
28953 # there to prevent editors from complaining about space-tab.
28954 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28955 # splitting by setting IFS to empty value.)
28960 # Find who we are. Look in the path if we contain no directory separator.
28962 *[\\/]* ) as_myself=$0 ;;
28963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28964 for as_dir in $PATH
28967 test -z "$as_dir" && as_dir=.
28968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28974 # We did not find ourselves, most probably we were run as `sh COMMAND'
28975 # in which case we are not to be found in the path.
28976 if test "x$as_myself" = x; then
28979 if test ! -f "$as_myself"; then
28980 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28981 { (exit 1); exit 1; }
28984 # Work around bugs in pre-3.0 UWIN ksh.
28985 for as_var in ENV MAIL MAILPATH
28986 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28994 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28995 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28996 LC_TELEPHONE LC_TIME
28998 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28999 eval $as_var=C; export $as_var
29001 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29005 # Required to use basename.
29006 if expr a : '\(a\)' >/dev/null 2>&1 &&
29007 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29014 as_basename=basename
29020 # Name of the executable.
29021 as_me=`$as_basename -- "$0" ||
29022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29023 X"$0" : 'X\(//\)$' \| \
29024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29026 sed '/^.*\/\([^/][^/]*\)\/*$/{
29045 as_lineno_1=$LINENO
29046 as_lineno_2=$LINENO
29047 test "x$as_lineno_1" != "x$as_lineno_2" &&
29048 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29050 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29051 # uniformly replaced by the line number. The first 'sed' inserts a
29052 # line-number line after each line using $LINENO; the second 'sed'
29053 # does the real work. The second script uses 'N' to pair each
29054 # line-number line with the line containing $LINENO, and appends
29055 # trailing '-' during substitution so that $LINENO is not a special
29056 # case at line end.
29057 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29058 # scripts with optimization help from Paolo Bonzini. Blame Lee
29059 # E. McMahon (1931-1989) for sed's syntax. :-)
29071 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29074 ' >$as_me.lineno &&
29075 chmod +x "$as_me.lineno" ||
29076 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29077 { (exit 1); exit 1; }; }
29079 # Don't try to exec as it changes $[0], causing all sort of problems
29080 # (the dirname of $[0] is not the place where we might find the
29081 # original and so on. Autoconf is especially sensitive to this).
29082 . "./$as_me.lineno"
29083 # Exit status is that of the last command.
29088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29094 ECHO_C= ECHO_N= ECHO_T=
29095 case `echo -n x` in
29097 case `echo 'x\c'` in
29098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29105 if expr a : '\(a\)' >/dev/null 2>&1 &&
29106 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29112 rm -f conf$$ conf$$.exe conf$$.file
29113 if test -d conf$$.dir; then
29114 rm -f conf$$.dir/conf$$.file
29120 if ln -s conf$$.file conf$$ 2>/dev/null; then
29122 # ... but there are two gotchas:
29123 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29124 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29125 # In both cases, we have to default to `cp -p'.
29126 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29128 elif ln conf$$.file conf$$ 2>/dev/null; then
29133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29134 rmdir conf$$.dir 2>/dev/null
29136 if mkdir -p . 2>/dev/null; then
29139 test -d ./-p && rmdir ./-p
29143 if test -x / >/dev/null 2>&1; then
29144 as_test_x='test -x'
29146 if ls -dL / >/dev/null 2>&1; then
29153 if test -d "$1"; then
29159 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29160 ???[sx]*):;;*)false;;esac;fi
29164 as_executable_p=$as_test_x
29166 # Sed expression to map a string onto a valid CPP name.
29167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29169 # Sed expression to map a string onto a valid variable name.
29170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29175 # Save the log message, to keep $[0] and so on meaningful, and to
29176 # report actual input values of CONFIG_FILES etc. instead of their
29177 # values after options handling.
29179 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29180 generated by GNU Autoconf 2.61. Invocation command line was
29182 CONFIG_FILES = $CONFIG_FILES
29183 CONFIG_HEADERS = $CONFIG_HEADERS
29184 CONFIG_LINKS = $CONFIG_LINKS
29185 CONFIG_COMMANDS = $CONFIG_COMMANDS
29188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29193 cat >>$CONFIG_STATUS <<_ACEOF
29194 # Files that config.status was made for.
29195 config_files="$ac_config_files"
29196 config_headers="$ac_config_headers"
29197 config_commands="$ac_config_commands"
29201 cat >>$CONFIG_STATUS <<\_ACEOF
29203 \`$as_me' instantiates files from templates according to the
29204 current configuration.
29206 Usage: $0 [OPTIONS] [FILE]...
29208 -h, --help print this help, then exit
29209 -V, --version print version number and configuration settings, then exit
29210 -q, --quiet do not print progress messages
29211 -d, --debug don't remove temporary files
29212 --recheck update $as_me by reconfiguring in the same conditions
29213 --file=FILE[:TEMPLATE]
29214 instantiate the configuration file FILE
29215 --header=FILE[:TEMPLATE]
29216 instantiate the configuration header FILE
29218 Configuration files:
29221 Configuration headers:
29224 Configuration commands:
29227 Report bugs to <bug-autoconf@gnu.org>."
29230 cat >>$CONFIG_STATUS <<_ACEOF
29232 linux nfs-utils config.status 1.0.10
29233 configured by $0, generated by GNU Autoconf 2.61,
29234 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29236 Copyright (C) 2006 Free Software Foundation, Inc.
29237 This config.status script is free software; the Free Software Foundation
29238 gives unlimited permission to copy, distribute and modify it."
29245 cat >>$CONFIG_STATUS <<\_ACEOF
29246 # If no file are specified by the user, then we need to provide default
29247 # value. By we need to know if files were specified by the user.
29253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29254 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29265 # Handling of the options.
29266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29268 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29269 echo "$ac_cs_version"; exit ;;
29270 --debug | --debu | --deb | --de | --d | -d )
29272 --file | --fil | --fi | --f )
29274 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29275 ac_need_defaults=false;;
29276 --header | --heade | --head | --hea )
29278 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29279 ac_need_defaults=false;;
29281 # Conflict between --help and --header
29282 { echo "$as_me: error: ambiguous option: $1
29283 Try \`$0 --help' for more information." >&2
29284 { (exit 1); exit 1; }; };;
29285 --help | --hel | -h )
29286 echo "$ac_cs_usage"; exit ;;
29287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29291 # This is an error.
29292 -*) { echo "$as_me: error: unrecognized option: $1
29293 Try \`$0 --help' for more information." >&2
29294 { (exit 1); exit 1; }; } ;;
29296 *) ac_config_targets="$ac_config_targets $1"
29297 ac_need_defaults=false ;;
29303 ac_configure_extra_args=
29305 if $ac_cs_silent; then
29307 ac_configure_extra_args="$ac_configure_extra_args --silent"
29311 cat >>$CONFIG_STATUS <<_ACEOF
29312 if \$ac_cs_recheck; then
29313 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29314 CONFIG_SHELL=$SHELL
29315 export CONFIG_SHELL
29316 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29320 cat >>$CONFIG_STATUS <<\_ACEOF
29324 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29325 @%:@@%:@ Running $as_me. @%:@@%:@
29331 cat >>$CONFIG_STATUS <<_ACEOF
29335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29339 cat >>$CONFIG_STATUS <<\_ACEOF
29341 # Handling of arguments.
29342 for ac_config_target in $ac_config_targets
29344 case $ac_config_target in
29345 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29346 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29347 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29348 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29349 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29350 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29351 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29352 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29353 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29354 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29355 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29356 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29357 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29358 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29359 "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29360 "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29361 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29362 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29363 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29364 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29365 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29366 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29367 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29368 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29369 "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29370 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29371 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29372 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29373 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29374 "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29375 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29376 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29378 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29380 { (exit 1); exit 1; }; };;
29385 # If the user did not use the arguments to specify the items to instantiate,
29386 # then the envvar interface is used. Set only those that are not.
29387 # We use the long form for the default assignment because of an extremely
29388 # bizarre bug on SunOS 4.1.3.
29389 if $ac_need_defaults; then
29390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29395 # Have a temporary directory for convenience. Make it in the build tree
29396 # simply because there is no reason against having it here, and in addition,
29397 # creating and moving files from /tmp can sometimes cause problems.
29398 # Hook for its removal unless debugging.
29399 # Note that there is a small window in which the directory will not be cleaned:
29400 # after its creation but before its name has been assigned to `$tmp'.
29404 trap 'exit_status=$?
29405 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29407 trap '{ (exit 1); exit 1; }' 1 2 13 15
29409 # Create a (secure) tmp directory for tmp files.
29412 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29413 test -n "$tmp" && test -d "$tmp"
29416 tmp=./conf$$-$RANDOM
29417 (umask 077 && mkdir "$tmp")
29420 echo "$me: cannot create a temporary directory in ." >&2
29421 { (exit 1); exit 1; }
29425 # Set up the sed scripts for CONFIG_FILES section.
29428 # No need to generate the scripts if there are no CONFIG_FILES.
29429 # This happens for instance when ./config.status config.h
29430 if test -n "$CONFIG_FILES"; then
29437 for ac_last_try in false false false false false :; do
29438 cat >conf$$subs.sed <<_ACEOF
29439 SHELL!$SHELL$ac_delim
29440 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29441 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29442 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29443 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29444 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29445 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29446 exec_prefix!$exec_prefix$ac_delim
29447 prefix!$prefix$ac_delim
29448 program_transform_name!$program_transform_name$ac_delim
29449 bindir!$bindir$ac_delim
29450 sbindir!$sbindir$ac_delim
29451 libexecdir!$libexecdir$ac_delim
29452 datarootdir!$datarootdir$ac_delim
29453 datadir!$datadir$ac_delim
29454 sysconfdir!$sysconfdir$ac_delim
29455 sharedstatedir!$sharedstatedir$ac_delim
29456 localstatedir!$localstatedir$ac_delim
29457 includedir!$includedir$ac_delim
29458 oldincludedir!$oldincludedir$ac_delim
29459 docdir!$docdir$ac_delim
29460 infodir!$infodir$ac_delim
29461 htmldir!$htmldir$ac_delim
29462 dvidir!$dvidir$ac_delim
29463 pdfdir!$pdfdir$ac_delim
29464 psdir!$psdir$ac_delim
29465 libdir!$libdir$ac_delim
29466 localedir!$localedir$ac_delim
29467 mandir!$mandir$ac_delim
29468 DEFS!$DEFS$ac_delim
29469 ECHO_C!$ECHO_C$ac_delim
29470 ECHO_N!$ECHO_N$ac_delim
29471 ECHO_T!$ECHO_T$ac_delim
29472 LIBS!$LIBS$ac_delim
29473 build_alias!$build_alias$ac_delim
29474 host_alias!$host_alias$ac_delim
29475 target_alias!$target_alias$ac_delim
29476 build!$build$ac_delim
29477 build_cpu!$build_cpu$ac_delim
29478 build_vendor!$build_vendor$ac_delim
29479 build_os!$build_os$ac_delim
29480 host!$host$ac_delim
29481 host_cpu!$host_cpu$ac_delim
29482 host_vendor!$host_vendor$ac_delim
29483 host_os!$host_os$ac_delim
29484 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29485 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29486 INSTALL_DATA!$INSTALL_DATA$ac_delim
29487 CYGPATH_W!$CYGPATH_W$ac_delim
29488 PACKAGE!$PACKAGE$ac_delim
29489 VERSION!$VERSION$ac_delim
29490 ACLOCAL!$ACLOCAL$ac_delim
29491 AUTOCONF!$AUTOCONF$ac_delim
29492 AUTOMAKE!$AUTOMAKE$ac_delim
29493 AUTOHEADER!$AUTOHEADER$ac_delim
29494 MAKEINFO!$MAKEINFO$ac_delim
29495 AMTAR!$AMTAR$ac_delim
29496 install_sh!$install_sh$ac_delim
29497 STRIP!$STRIP$ac_delim
29498 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29499 mkdir_p!$mkdir_p$ac_delim
29501 SET_MAKE!$SET_MAKE$ac_delim
29502 am__leading_dot!$am__leading_dot$ac_delim
29503 RELEASE!$RELEASE$ac_delim
29504 statedir!$statedir$ac_delim
29505 statduser!$statduser$ac_delim
29506 enable_nfsv3!$enable_nfsv3$ac_delim
29507 IDMAPD!$IDMAPD$ac_delim
29508 enable_nfsv4!$enable_nfsv4$ac_delim
29509 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29510 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29511 GSSD!$GSSD$ac_delim
29512 SVCGSSD!$SVCGSSD$ac_delim
29513 enable_gss!$enable_gss$ac_delim
29514 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29515 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29516 kprefix!$kprefix$ac_delim
29517 secure_statd!$secure_statd$ac_delim
29518 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29519 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29520 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29521 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29523 CFLAGS!$CFLAGS$ac_delim
29524 LDFLAGS!$LDFLAGS$ac_delim
29525 CPPFLAGS!$CPPFLAGS$ac_delim
29526 ac_ct_CC!$ac_ct_CC$ac_delim
29527 EXEEXT!$EXEEXT$ac_delim
29528 OBJEXT!$OBJEXT$ac_delim
29529 DEPDIR!$DEPDIR$ac_delim
29530 am__include!$am__include$ac_delim
29531 am__quote!$am__quote$ac_delim
29532 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29533 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29534 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29535 CCDEPMODE!$CCDEPMODE$ac_delim
29538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29540 elif $ac_last_try; then
29541 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29542 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29543 { (exit 1); exit 1; }; }
29545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29549 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29550 if test -n "$ac_eof"; then
29551 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29552 ac_eof=`expr $ac_eof + 1`
29555 cat >>$CONFIG_STATUS <<_ACEOF
29556 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29560 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29561 s/^/s,@/; s/!/@,|#_!!_#|/
29564 s/'"$ac_delim"'$/,g/; t
29566 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29567 ' >>$CONFIG_STATUS <conf$$subs.sed
29568 rm -f conf$$subs.sed
29569 cat >>$CONFIG_STATUS <<_ACEOF
29575 for ac_last_try in false false false false false :; do
29576 cat >conf$$subs.sed <<_ACEOF
29577 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29578 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29579 LIBWRAP!$LIBWRAP$ac_delim
29580 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29581 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29583 CXXFLAGS!$CXXFLAGS$ac_delim
29584 ac_ct_CXX!$ac_ct_CXX$ac_delim
29585 CXXDEPMODE!$CXXDEPMODE$ac_delim
29586 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29587 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29589 LN_S!$LN_S$ac_delim
29590 GREP!$GREP$ac_delim
29591 EGREP!$EGREP$ac_delim
29592 ECHO!$ECHO$ac_delim
29594 RANLIB!$RANLIB$ac_delim
29595 CXXCPP!$CXXCPP$ac_delim
29597 FFLAGS!$FFLAGS$ac_delim
29598 ac_ct_F77!$ac_ct_F77$ac_delim
29599 LIBTOOL!$LIBTOOL$ac_delim
29600 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29602 LIBNSL!$LIBNSL$ac_delim
29603 PKG_CONFIG!$PKG_CONFIG$ac_delim
29604 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29605 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29606 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29607 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29608 LIBSOCKET!$LIBSOCKET$ac_delim
29609 LIBCRYPT!$LIBCRYPT$ac_delim
29610 LIBBSD!$LIBBSD$ac_delim
29611 KRBDIR!$KRBDIR$ac_delim
29612 KRBLIBS!$KRBLIBS$ac_delim
29613 KRBCFLAGS!$KRBCFLAGS$ac_delim
29614 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29615 K5VERS!$K5VERS$ac_delim
29616 ALLOCA!$ALLOCA$ac_delim
29617 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29618 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29619 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29620 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29621 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29622 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29623 AM_CFLAGS!$AM_CFLAGS$ac_delim
29624 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29625 LTLIBOBJS!$LTLIBOBJS$ac_delim
29628 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
29630 elif $ac_last_try; then
29631 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29632 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29633 { (exit 1); exit 1; }; }
29635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29639 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29640 if test -n "$ac_eof"; then
29641 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29642 ac_eof=`expr $ac_eof + 1`
29645 cat >>$CONFIG_STATUS <<_ACEOF
29646 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29650 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29651 s/^/s,@/; s/!/@,|#_!!_#|/
29654 s/'"$ac_delim"'$/,g/; t
29656 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29657 ' >>$CONFIG_STATUS <conf$$subs.sed
29658 rm -f conf$$subs.sed
29659 cat >>$CONFIG_STATUS <<_ACEOF
29666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29668 # trailing colons and then remove the whole line if VPATH becomes empty
29669 # (actually we leave an empty line to preserve line numbers).
29670 if test "x$srcdir" = x.; then
29671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29672 s/:*\$(srcdir):*/:/
29673 s/:*\${srcdir}:*/:/
29675 s/^\([^=]*=[ ]*\):*/\1/
29681 cat >>$CONFIG_STATUS <<\_ACEOF
29682 fi # test -n "$CONFIG_FILES"
29685 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
29688 :[FHLC]) ac_mode=$ac_tag; continue;;
29690 case $ac_mode$ac_tag in
29692 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29693 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29694 { (exit 1); exit 1; }; };;
29695 :[FH]-) ac_tag=-:-;;
29696 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29713 -) ac_f="$tmp/stdin";;
29714 *) # Look for the file first in the build tree, then in the source tree
29715 # (if the path is not absolute). The absolute path cannot be DOS-style,
29716 # because $ac_f cannot contain `:'.
29720 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29722 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29723 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29724 { (exit 1); exit 1; }; };;
29726 ac_file_inputs="$ac_file_inputs $ac_f"
29729 # Let's still pretend it is `configure' which instantiates (i.e., don't
29730 # use $as_me), people would be surprised to read:
29731 # /* config.h. Generated by config.status. */
29732 configure_input="Generated from "`IFS=:
29733 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29734 if test x"$ac_file" != x-; then
29735 configure_input="$ac_file. $configure_input"
29736 { echo "$as_me:$LINENO: creating $ac_file" >&5
29737 echo "$as_me: creating $ac_file" >&6;}
29741 *:-:* | *:-) cat >"$tmp/stdin";;
29746 ac_dir=`$as_dirname -- "$ac_file" ||
29747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29748 X"$ac_file" : 'X\(//\)[^/]' \| \
29749 X"$ac_file" : 'X\(//\)$' \| \
29750 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29756 /^X\(\/\/\)[^/].*/{
29771 -*) as_dir=./$as_dir;;
29773 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29777 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29778 *) as_qdir=$as_dir;;
29780 as_dirs="'$as_qdir' $as_dirs"
29781 as_dir=`$as_dirname -- "$as_dir" ||
29782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29783 X"$as_dir" : 'X\(//\)[^/]' \| \
29784 X"$as_dir" : 'X\(//\)$' \| \
29785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29791 /^X\(\/\/\)[^/].*/{
29804 test -d "$as_dir" && break
29806 test -z "$as_dirs" || eval "mkdir $as_dirs"
29807 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29808 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29809 { (exit 1); exit 1; }; }; }
29813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29816 # A ".." for each directory in $ac_dir_suffix.
29817 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29818 case $ac_top_builddir_sub in
29819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29823 ac_abs_top_builddir=$ac_pwd
29824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29825 # for backward compatibility:
29826 ac_top_builddir=$ac_top_build_prefix
29829 .) # We are building in place.
29831 ac_top_srcdir=$ac_top_builddir_sub
29832 ac_abs_top_srcdir=$ac_pwd ;;
29833 [\\/]* | ?:[\\/]* ) # Absolute name.
29834 ac_srcdir=$srcdir$ac_dir_suffix;
29835 ac_top_srcdir=$srcdir
29836 ac_abs_top_srcdir=$srcdir ;;
29837 *) # Relative name.
29838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29839 ac_top_srcdir=$ac_top_build_prefix$srcdir
29840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29853 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29857 cat >>$CONFIG_STATUS <<\_ACEOF
29858 # If the template does not know about datarootdir, expand it.
29859 # FIXME: This hack should be removed a few years after 2.60.
29860 ac_datarootdir_hack=; ac_datarootdir_seen=
29862 case `sed -n '/datarootdir/ {
29871 ' $ac_file_inputs` in
29872 *datarootdir*) ac_datarootdir_seen=yes;;
29873 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29874 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29875 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29877 cat >>$CONFIG_STATUS <<_ACEOF
29878 ac_datarootdir_hack='
29879 s&@datadir@&$datadir&g
29880 s&@docdir@&$docdir&g
29881 s&@infodir@&$infodir&g
29882 s&@localedir@&$localedir&g
29883 s&@mandir@&$mandir&g
29884 s&\\\${datarootdir}&$datarootdir&g' ;;
29888 # Neutralize VPATH when `$srcdir' = `.'.
29889 # Shell code in configure.ac might set extrasub.
29890 # FIXME: do we really want to maintain this feature?
29891 cat >>$CONFIG_STATUS <<_ACEOF
29895 cat >>$CONFIG_STATUS <<\_ACEOF
29897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29898 s&@configure_input@&$configure_input&;t t
29899 s&@top_builddir@&$ac_top_builddir_sub&;t t
29900 s&@srcdir@&$ac_srcdir&;t t
29901 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29902 s&@top_srcdir@&$ac_top_srcdir&;t t
29903 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29904 s&@builddir@&$ac_builddir&;t t
29905 s&@abs_builddir@&$ac_abs_builddir&;t t
29906 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29907 s&@INSTALL@&$ac_INSTALL&;t t
29908 $ac_datarootdir_hack
29909 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29912 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29914 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29915 which seems to be undefined. Please make sure it is defined." >&5
29916 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29917 which seems to be undefined. Please make sure it is defined." >&2;}
29921 -) cat "$tmp/out"; rm -f "$tmp/out";;
29922 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29931 # Transform confdefs.h into a sed script `conftest.defines', that
29932 # substitutes the proper values into config.h.in to produce config.h.
29933 rm -f conftest.defines conftest.tail
29934 # First, append a space to every undef/define line, to ease matching.
29935 echo 's/$/ /' >conftest.defines
29936 # Then, protect against being on the right side of a sed subst, or in
29937 # an unquoted here document, in config.status. If some macros were
29938 # called several times there might be several #defines for the same
29939 # symbol, which is useless. But do not sort them, since the last
29940 # AC_DEFINE must be honored.
29941 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29942 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29943 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29944 # PARAMS is the parameter list in the macro definition--in most cases, it's
29945 # just an empty string.
29946 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29947 ac_dB='\\)[ (].*,\\1define\\2'
29955 s/^[ ]*#[ ]*define[ ][ ]*//
29960 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29961 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29962 ' >>conftest.defines
29964 # Remove the space that was appended to ease matching.
29965 # Then replace #undef with comments. This is necessary, for
29966 # example, in the case of _POSIX_SOURCE, which is predefined and required
29967 # on some systems where configure will not decide to define it.
29968 # (The regexp can be short, since the line contains either #define or #undef.)
29970 s,^[ #]*u.*,/* & */,' >>conftest.defines
29972 # Break up conftest.defines:
29973 ac_max_sed_lines=50
29975 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29976 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29977 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29979 ac_in='$ac_file_inputs'
29980 ac_out='"$tmp/out1"'
29981 ac_nxt='"$tmp/out2"'
29985 # Write a here document:
29986 cat >>$CONFIG_STATUS <<_ACEOF
29987 # First, check the format of the line:
29988 cat >"\$tmp/defines.sed" <<\\CEOF
29989 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29990 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29994 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29996 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29997 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29998 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29999 grep . conftest.tail >/dev/null || break
30000 rm -f conftest.defines
30001 mv conftest.tail conftest.defines
30003 rm -f conftest.defines conftest.tail
30005 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30006 cat >>$CONFIG_STATUS <<\_ACEOF
30007 if test x"$ac_file" != x-; then
30008 echo "/* $configure_input */" >"$tmp/config.h"
30009 cat "$ac_result" >>"$tmp/config.h"
30010 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30011 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30012 echo "$as_me: $ac_file is unchanged" >&6;}
30015 mv "$tmp/config.h" $ac_file
30018 echo "/* $configure_input */"
30022 # Compute $ac_file's index in $config_headers.
30024 for _am_header in $config_headers :; do
30025 case $_am_header in
30026 $ac_file | $ac_file:* )
30029 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30032 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30033 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30034 X$ac_file : 'X\(//\)[^/]' \| \
30035 X$ac_file : 'X\(//\)$' \| \
30036 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30042 /^X\(\/\/\)[^/].*/{
30054 s/.*/./; q'`/stamp-h$_am_stamp_count
30057 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30058 echo "$as_me: executing $ac_file commands" >&6;}
30063 case $ac_file$ac_mode in
30064 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30065 # Strip MF so we end up with the name of the file.
30066 mf=`echo "$mf" | sed -e 's/:.*$//'`
30067 # Check whether this is an Automake generated Makefile or not.
30068 # We used to match only the files named `Makefile.in', but
30069 # some people rename them; so instead we look at the file content.
30070 # Grep'ing the first line is not enough: some people post-process
30071 # each Makefile.in and add a new line on top of each file to say so.
30072 # So let's grep whole file.
30073 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30074 dirpart=`$as_dirname -- "$mf" ||
30075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30076 X"$mf" : 'X\(//\)[^/]' \| \
30077 X"$mf" : 'X\(//\)$' \| \
30078 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30084 /^X\(\/\/\)[^/].*/{
30100 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
30101 # Extract the definition of DEP_FILES from the Makefile without
30103 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30104 test -z "$DEPDIR" && continue
30105 # When using ansi2knr, U may be empty or an underscore; expand it
30106 U=`sed -n 's/^U = //p' < "$mf"`
30107 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30108 # We invoke sed twice because it is the simplest approach to
30109 # changing $(DEPDIR) to its actual value in the expansion.
30110 for file in `sed -n '
30111 /^DEP_FILES = .*\\\\$/ {
30120 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30121 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30122 # Make sure the directory exists.
30123 test -f "$dirpart/$file" && continue
30124 fdir=`$as_dirname -- "$file" ||
30125 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30126 X"$file" : 'X\(//\)[^/]' \| \
30127 X"$file" : 'X\(//\)$' \| \
30128 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30134 /^X\(\/\/\)[^/].*/{
30147 { as_dir=$dirpart/$fdir
30149 -*) as_dir=./$as_dir;;
30151 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30155 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30156 *) as_qdir=$as_dir;;
30158 as_dirs="'$as_qdir' $as_dirs"
30159 as_dir=`$as_dirname -- "$as_dir" ||
30160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30161 X"$as_dir" : 'X\(//\)[^/]' \| \
30162 X"$as_dir" : 'X\(//\)$' \| \
30163 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30169 /^X\(\/\/\)[^/].*/{
30182 test -d "$as_dir" && break
30184 test -z "$as_dirs" || eval "mkdir $as_dirs"
30185 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30186 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30187 { (exit 1); exit 1; }; }; }
30188 # echo "creating $dirpart/$file"
30189 echo '# dummy' > "$dirpart/$file"
30198 { (exit 0); exit 0; }
30200 chmod +x $CONFIG_STATUS
30201 ac_clean_files=$ac_clean_files_save
30204 # configure is writing to config.log, and then calls config.status.
30205 # config.status does its own redirection, appending to config.log.
30206 # Unfortunately, on DOS this fails, as config.log is still kept open
30207 # by configure, so config.status won't be able to write to it; its
30208 # output is simply discarded. So we exec the FD to /dev/null,
30209 # effectively closing config.log, so it can be properly (re)opened and
30210 # appended to by config.status. When coming back to configure, we
30211 # need to make the FD available again.
30212 if test "$no_create" != yes; then
30214 ac_config_status_args=
30215 test "$silent" = yes &&
30216 ac_config_status_args="$ac_config_status_args --quiet"
30218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30221 # would make configure fail if this is the last instruction.
30222 $ac_cs_success || { (exit 1); exit 1; }