2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0.
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.1.0'
732 PACKAGE_STRING='linux nfs-utils 1.1.0'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
831 INSTALL_STRIP_PROGRAM
840 MAINTAINER_MODE_FALSE
929 ac_precious_vars='build_alias
951 # Initialize some variables set by options.
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name=s,x,x,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058 eval enable_$ac_feature=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077 eval enable_$ac_feature=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1241 -site=* | --site=* | --sit=*)
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1268 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid package name: $ac_package" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274 eval with_$ac_package=\$ac_optarg ;;
1276 -without-* | --without-*)
1277 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283 eval with_$ac_package=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305 { (exit 1); exit 1; }; }
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313 { (exit 1); exit 1; }; }
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 { echo "$as_me: error: missing argument to $ac_option" >&2
1331 { (exit 1); exit 1; }; }
1334 # Be sure to have absolute directory names.
1335 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1340 eval ac_val=\$$ac_var
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346 { (exit 1); exit 1; }; }
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used." >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370 test "$silent" = yes && exec 6>/dev/null
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 { echo "$as_me: error: Working directory cannot be determined" >&2
1377 { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 { echo "$as_me: error: pwd does not report name of working directory" >&2
1380 { (exit 1); exit 1; }; }
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$0" : 'X\(//\)[^/]' \| \
1390 X"$0" : 'X\(//\)$' \| \
1391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420 { (exit 1); exit 1; }; }
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425 { (exit 1); exit 1; }; }
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures linux nfs-utils 1.1.0 to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of linux nfs-utils 1.1.0:";;
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-maintainer-mode enable make rules and dependencies not useful
1529 (and sometimes confusing) to the casual installer
1530 --enable-nfsv3 enable support for NFSv3 @<:@default=yes@:>@
1531 --enable-nfsv4 enable support for NFSv4 @<:@default=yes@:>@
1532 --enable-gss enable support for rpcsec_gss @<:@default=yes@:>@
1533 --enable-kprefix install progs as rpc.knfsd etc
1534 --enable-secure-statd Only lockd can use statd (security)
1535 --without-uuid Exclude uuid support and so avoid possibly buggy
1537 --enable-mount Create mount.nfs and don't use the util-linux
1538 mount(8) functionality. @<:@default=yes@:>@
1539 --disable-dependency-tracking speeds up one-time build
1540 --enable-dependency-tracking do not reject slow dependency extractors
1541 --disable-largefile omit support for large files
1542 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1543 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1544 --enable-fast-install@<:@=PKGS@:>@
1545 optimize for fast installation @<:@default=yes@:>@
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-release=XXX set release to XXX [1]
1552 --with-statedir=/foo use state dir /foo /var/lib/nfs
1553 --with-statduser=rpcuser
1554 statd to run under @<:@rpcuser or nobody@:>@
1555 --with-start-statd=scriptname
1556 When an nfs filesystems is mounted with locking, run
1558 --with-rpcgen=internal use internal rpcgen instead of system one
1559 --with-tcp-wrappers[=PATH] Enable tcpwrappers support
1560 (optionally in PATH)
1561 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1562 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1564 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1565 --with-krb5=DIR use Kerberos v5 installation in DIR
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1578 CXXCPP C++ preprocessor
1579 F77 Fortran 77 compiler command
1580 FFLAGS Fortran 77 compiler flags
1581 PKG_CONFIG path to pkg-config utility
1583 C compiler flags for RPCSECGSS, overriding pkg-config
1585 linker flags for RPCSECGSS, overriding pkg-config
1587 C compiler flags for GSSAPI, overriding pkg-config
1588 GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1593 Report bugs to <nfs@lists.sf.net>.
1598 if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601 test -d "$ac_dir" || continue
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1621 .) # We are building in place.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1654 linux nfs-utils configure 1.1.0
1655 generated by GNU Autoconf 2.61
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1668 It was created by linux nfs-utils $as_me 1.1.0, which was
1669 generated by GNU Autoconf 2.61. Invocation command line was
1677 @%:@@%:@ --------- @%:@@%:@
1678 @%:@@%:@ Platform. @%:@@%:@
1679 @%:@@%:@ --------- @%:@@%:@
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 echo "PATH: $as_dir"
1714 @%:@@%:@ ----------- @%:@@%:@
1715 @%:@@%:@ Core tests. @%:@@%:@
1716 @%:@@%:@ ----------- @%:@@%:@
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_must_keep_next=false
1735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737 | -silent | --silent | --silen | --sile | --sil)
1740 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true; then
1747 ac_must_keep_next=false # Got value, back to normal.
1750 *=* | --config-cache | -C | -disable-* | --disable-* \
1751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753 | -with-* | --with-* | -without-* | --without-* | --x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 -* ) ac_must_keep_next=true ;;
1761 ac_configure_args="$ac_configure_args '$ac_arg'"
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1780 @%:@@%:@ ---------------- @%:@@%:@
1781 @%:@@%:@ Cache variables. @%:@@%:@
1782 @%:@@%:@ ---------------- @%:@@%:@
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1792 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796 _ | IFS | as_nl) ;; #(
1797 *) $as_unset $ac_var ;;
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 @%:@@%:@ ----------------- @%:@@%:@
1818 @%:@@%:@ Output variables. @%:@@%:@
1819 @%:@@%:@ ----------------- @%:@@%:@
1822 for ac_var in $ac_subst_vars
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 echo "$ac_var='\''$ac_val'\''"
1832 if test -n "$ac_subst_files"; then
1834 @%:@@%:@ ------------------- @%:@@%:@
1835 @%:@@%:@ File substitutions. @%:@@%:@
1836 @%:@@%:@ ------------------- @%:@@%:@
1839 for ac_var in $ac_subst_files
1841 eval ac_val=\$$ac_var
1843 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 echo "$ac_var='\''$ac_val'\''"
1850 if test -s confdefs.h; then
1852 @%:@@%:@ ----------- @%:@@%:@
1853 @%:@@%:@ confdefs.h. @%:@@%:@
1854 @%:@@%:@ ----------- @%:@@%:@
1860 test "$ac_signal" != 0 &&
1861 echo "$as_me: caught signal $ac_signal"
1862 echo "$as_me: exit $exit_status"
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 for ac_signal in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1876 # Predefined preprocessor variables.
1878 cat >>confdefs.h <<_ACEOF
1879 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h <<_ACEOF
1884 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 cat >>confdefs.h <<_ACEOF
1889 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 cat >>confdefs.h <<_ACEOF
1894 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1898 cat >>confdefs.h <<_ACEOF
1899 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906 set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910 set x "$ac_default_prefix/share/config.site" \
1911 "$ac_default_prefix/etc/config.site"
1916 if test -r "$ac_site_file"; then
1917 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919 sed 's/^/| /' "$ac_site_file" >&5
1924 if test -r "$cache_file"; then
1925 # Some versions of bash will fail to source /dev/null (special
1926 # files actually), so we avoid doing that.
1927 if test -f "$cache_file"; then
1928 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932 *) . "./$cache_file";;
1936 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1941 # Check that the precious variables saved in the cache have kept the same
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946 eval ac_new_set=\$ac_env_${ac_var}_set
1947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948 eval ac_new_val=\$ac_env_${ac_var}_value
1949 case $ac_old_set,$ac_new_set in
1951 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1955 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1960 if test "x$ac_old_val" != "x$ac_new_val"; then
1961 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1964 echo "$as_me: former value: $ac_old_val" >&2;}
1965 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1966 echo "$as_me: current value: $ac_new_val" >&2;}
1967 ac_cache_corrupted=:
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1973 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 *) ac_arg=$ac_var=$ac_new_val ;;
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982 if $ac_cache_corrupted; then
1983 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2023 if test -f "$ac_dir/install-sh"; then
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 elif test -f "$ac_dir/install.sh"; then
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 elif test -f "$ac_dir/shtool"; then
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2037 if test -z "$ac_aux_dir"; then
2038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2040 { (exit 1); exit 1; }; }
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: checking build system type" >&5
2059 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069 { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 echo "${ECHO_T}$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 echo "$as_me: error: invalid value of canonical build" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking host system type" >&5
2099 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$host_alias" = x; then
2104 ac_cv_host=$ac_cv_build
2106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6; }
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 echo "$as_me: error: invalid value of canonical host" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136 am__api_version="1.9"
2137 # Find a good install program. We prefer a C program (faster),
2138 # so one script is as good as another. But avoid the broken or
2139 # incompatible versions:
2140 # SysV /etc/install, /usr/sbin/install
2141 # SunOS /usr/etc/install
2142 # IRIX /sbin/install
2144 # AmigaOS /C/install, which installs bootblocks on floppy discs
2145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2148 # OS/2's system install, which has a completely different semantic
2149 # ./install, which can be erroneously created by make from ./install.sh.
2150 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2151 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2152 if test -z "$INSTALL"; then
2153 if test "${ac_cv_path_install+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 # Account for people who put trailing slashes in PATH elements.
2163 ./ | .// | /cC/* | \
2164 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2165 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2168 # OSF1 and SCO ODT 3.0 have their own names for install.
2169 # Don't use installbsd from OSF since it installs stuff as root
2171 for ac_prog in ginstall scoinst install; do
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2174 if test $ac_prog = install &&
2175 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176 # AIX install. It has an incompatible calling convention.
2178 elif test $ac_prog = install &&
2179 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180 # program-specific install script used by HP pwplus--don't use.
2183 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2196 if test "${ac_cv_path_install+set}" = set; then
2197 INSTALL=$ac_cv_path_install
2199 # As a last resort, use the slow shell script. Don't cache a
2200 # value for INSTALL within a source directory, because that will
2201 # break other packages using the cache if that directory is
2202 # removed, or if the value is a relative name.
2203 INSTALL=$ac_install_sh
2206 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2207 echo "${ECHO_T}$INSTALL" >&6; }
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2218 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2221 echo timestamp > conftest.file
2222 # Do `set' in a subshell so we don't clobber the current shell's
2223 # arguments. Must try -L first in case configure is actually a
2224 # symlink; some systems play weird games with the mod time of symlinks
2225 # (eg FreeBSD returns the mod time of the symlink's containing
2228 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2229 if test "$*" = "X"; then
2231 set X `ls -t $srcdir/configure conftest.file`
2234 if test "$*" != "X $srcdir/configure conftest.file" \
2235 && test "$*" != "X conftest.file $srcdir/configure"; then
2237 # If neither matched, then we have a broken ls. This can happen
2238 # if, for instance, CONFIG_SHELL is bash and it inherits a
2239 # broken ls alias from the environment. This has actually
2240 # happened. Such a system could not be considered "sane".
2241 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2242 alias in your environment" >&5
2243 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2244 alias in your environment" >&2;}
2245 { (exit 1); exit 1; }; }
2248 test "$2" = conftest.file
2254 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2255 Check your system clock" >&5
2256 echo "$as_me: error: newly created file is older than distributed files!
2257 Check your system clock" >&2;}
2258 { (exit 1); exit 1; }; }
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2262 test "$program_prefix" != NONE &&
2263 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264 # Use a double $ so make ignores it.
2265 test "$program_suffix" != NONE &&
2266 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267 # Double any \ or $. echo might interpret backslashes.
2268 # By default was `s,x,x', remove it if useless.
2269 cat <<\_ACEOF >conftest.sed
2270 s/[\\$]/&&/g;s/;s,x,x,$//
2272 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2275 # expand $ac_aux_dir to an absolute path
2276 am_aux_dir=`cd $ac_aux_dir && pwd`
2278 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2279 # Use eval to expand $SHELL
2280 if eval "$MISSING --run true"; then
2281 am_missing_run="$MISSING --run "
2284 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2285 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2288 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2289 # We used to keeping the `.' as first argument, in order to
2290 # allow $(mkdir_p) to be used without argument. As in
2291 # $(mkdir_p) $(somedir)
2292 # where $(somedir) is conditionally defined. However this is wrong
2294 # 1. if the package is installed by a user who cannot write `.'
2295 # make install will fail,
2296 # 2. the above comment should most certainly read
2297 # $(mkdir_p) $(DESTDIR)$(somedir)
2298 # so it does not work when $(somedir) is undefined and
2299 # $(DESTDIR) is not.
2300 # To support the latter case, we have to write
2301 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2302 # so the `.' trick is pointless.
2303 mkdir_p='mkdir -p --'
2305 # On NextStep and OpenStep, the `mkdir' command does not
2306 # recognize any option. It will interpret all options as
2307 # directories to create, and then abort because `.' already
2309 for d in ./-p ./--version;
2311 test -d $d && rmdir $d
2313 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2314 if test -f "$ac_aux_dir/mkinstalldirs"; then
2315 mkdir_p='$(mkinstalldirs)'
2317 mkdir_p='$(install_sh) -d'
2321 for ac_prog in gawk mawk nawk awk
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_AWK="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$AWK"; then
2352 { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2360 test -n "$AWK" && break
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.make <<\_ACEOF
2372 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 eval ac_cv_prog_make_${ac_make}_set=yes;;
2379 eval ac_cv_prog_make_${ac_make}_set=no;;
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 SET_MAKE="MAKE=${MAKE-make}"
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2400 rmdir .tst 2>/dev/null
2402 # test to see if srcdir already configured
2403 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2404 test -f $srcdir/config.status; then
2405 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2406 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2407 { (exit 1); exit 1; }; }
2410 # test whether we have cygpath
2411 if test -z "$CYGPATH_W"; then
2412 if (cygpath --version) >/dev/null 2>/dev/null; then
2413 CYGPATH_W='cygpath -w'
2420 # Define the identity of the package.
2425 cat >>confdefs.h <<_ACEOF
2426 @%:@define PACKAGE "$PACKAGE"
2430 cat >>confdefs.h <<_ACEOF
2431 @%:@define VERSION "$VERSION"
2434 # Some tools Automake needs.
2436 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2439 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2442 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2445 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2448 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2450 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2452 # Installed binaries are usually stripped using `strip' when the user
2453 # run `make install-strip'. However `strip' might not be the right
2454 # tool to use in cross-compilation environments, therefore Automake
2455 # will honor the `STRIP' environment variable to overrule this program.
2456 if test "$cross_compiling" != no; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}strip; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_STRIP+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$STRIP"; then
2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 STRIP=$ac_cv_prog_STRIP
2486 if test -n "$STRIP"; then
2487 { echo "$as_me:$LINENO: result: $STRIP" >&5
2488 echo "${ECHO_T}$STRIP" >&6; }
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2496 if test -z "$ac_cv_prog_STRIP"; then
2498 # Extract the first word of "strip", so it can be a program name with args.
2499 set dummy strip; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 if test -n "$ac_ct_STRIP"; then
2506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_ac_ct_STRIP="strip"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526 if test -n "$ac_ct_STRIP"; then
2527 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2528 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2534 if test "x$ac_ct_STRIP" = x; then
2537 case $cross_compiling:$ac_tool_warned in
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet. If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet. If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned=yes ;;
2550 STRIP="$ac_cv_prog_STRIP"
2554 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2556 # We need awk for the "check" target. The system "awk" is bad on
2558 # Always define AMTAR for backward compatibility.
2560 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2570 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2572 # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2576 USE_MAINTAINER_MODE=no
2579 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2583 if test $USE_MAINTAINER_MODE = yes; then
2584 MAINTAINER_MODE_TRUE=
2585 MAINTAINER_MODE_FALSE='#'
2587 MAINTAINER_MODE_TRUE='#'
2588 MAINTAINER_MODE_FALSE=
2591 MAINT=$MAINTAINER_MODE_TRUE
2596 # Check whether --with-release was given.
2597 if test "${with_release+set}" = set; then
2598 withval=$with_release; RELEASE=$withval
2605 # Check whether --with-statedir was given.
2606 if test "${with_statedir+set}" = set; then
2607 withval=$with_statedir; statedir=$withval
2609 statedir=/var/lib/nfs
2614 # Check whether --with-statduser was given.
2615 if test "${with_statduser+set}" = set; then
2616 withval=$with_statduser; statduser=$withval
2618 if test "x$cross_compiling" = "xno"; then
2619 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2631 # Check whether --with-start-statd was given.
2632 if test "${with_start_statd+set}" = set; then
2633 withval=$with_start_statd; startstatd=$withval
2635 startstatd=/usr/sbin/start-statd
2641 cat >>confdefs.h <<_ACEOF
2642 @%:@define START_STATD "$startstatd"
2645 # Check whether --enable-nfsv3 was given.
2646 if test "${enable_nfsv3+set}" = set; then
2647 enableval=$enable_nfsv3; enable_nfsv3=$enableval
2652 if test "$enable_nfsv3" = yes; then
2654 cat >>confdefs.h <<\_ACEOF
2655 @%:@define NFS3_SUPPORTED 1
2662 # Check whether --enable-nfsv4 was given.
2663 if test "${enable_nfsv4+set}" = set; then
2664 enableval=$enable_nfsv4; enable_nfsv4=$enableval
2669 if test "$enable_nfsv4" = yes; then
2671 cat >>confdefs.h <<\_ACEOF
2672 @%:@define NFS4_SUPPORTED 1
2684 if test "$enable_nfsv4" = "yes"; then
2686 CONFIG_NFSV4_FALSE='#'
2688 CONFIG_NFSV4_TRUE='#'
2692 # Check whether --enable-gss was given.
2693 if test "${enable_gss+set}" = set; then
2694 enableval=$enable_gss; enable_gss=$enableval
2699 if test "$enable_gss" = yes; then
2701 cat >>confdefs.h <<\_ACEOF
2702 @%:@define GSS_SUPPORTED 1
2717 if test "$enable_gss" = "yes"; then
2719 CONFIG_GSS_FALSE='#'
2725 # Check whether --enable-kprefix was given.
2726 if test "${enable_kprefix+set}" = set; then
2727 enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2733 # Check whether --enable-secure-statd was given.
2734 if test "${enable_secure_statd+set}" = set; then
2735 enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2740 if test "$secure_statd" = yes; then
2742 cat >>confdefs.h <<\_ACEOF
2743 @%:@define RESTRICTED_STATD 1
2749 # Check whether --with-rpcgen was given.
2750 if test "${with_rpcgen+set}" = set; then
2751 withval=$with_rpcgen; rpcgen_path=$withval
2757 if test "$rpcgen_path" == "yes"; then
2758 for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2759 do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2760 elif test "$rpcgen_path" != "internal"; then
2761 RPCGEN_PATH=$rpcgen_path
2766 if test "$RPCGEN_PATH" == ""; then
2768 CONFIG_RPCGEN_FALSE='#'
2770 CONFIG_RPCGEN_TRUE='#'
2771 CONFIG_RPCGEN_FALSE=
2774 # Check whether --enable-uuid was given.
2775 if test "${enable_uuid+set}" = set; then
2776 enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2778 choose_blkid=default
2781 # Check whether --enable-mount was given.
2782 if test "${enable_mount+set}" = set; then
2783 enableval=$enable_mount; enable_mount=$enableval
2790 if test "$enable_mount" = "yes"; then
2792 CONFIG_MOUNT_FALSE='#'
2794 CONFIG_MOUNT_TRUE='#'
2799 # Check whether user wants TCP wrappers support
2800 DEPDIR="${am__leading_dot}deps"
2802 ac_config_commands="$ac_config_commands depfiles"
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2811 # If we don't find an include directive, just comment out the code.
2812 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2813 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # We grep out `Entering directory' and `Leaving directory'
2820 # messages which can occur if `w' ends up in MAKEFLAGS.
2821 # In particular we don't look at `^make:' because GNU make might
2822 # be invoked under some other name (usually "gmake"), in which
2823 # case it prints its new name instead of `make'.
2824 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2829 # Now try BSD make style include.
2830 if test "$am__include" = "#"; then
2831 echo '.include "confinc"' > confmf
2832 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2833 am__include=.include
2840 { echo "$as_me:$LINENO: result: $_am_result" >&5
2841 echo "${ECHO_T}$_am_result" >&6; }
2842 rm -f confinc confmf
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then
2846 enableval=$enable_dependency_tracking;
2849 if test "x$enable_dependency_tracking" != xno; then
2850 am_depcomp="$ac_aux_dir/depcomp"
2855 if test "x$enable_dependency_tracking" != xno; then
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 if test -n "$CC"; then
2900 { echo "$as_me:$LINENO: result: $CC" >&5
2901 echo "${ECHO_T}$CC" >&6; }
2903 { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2909 if test -z "$ac_cv_prog_CC"; then
2911 # Extract the first word of "gcc", so it can be a program name with args.
2912 set dummy gcc; ac_word=$2
2913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 if test -n "$ac_ct_CC"; then
2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_ac_ct_CC="gcc"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941 echo "${ECHO_T}$ac_ct_CC" >&6; }
2943 { echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6; }
2947 if test "x$ac_ct_CC" = x; then
2950 case $cross_compiling:$ac_tool_warned in
2952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet. If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&5
2955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956 whose name does not start with the host triplet. If you think this
2957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2958 ac_tool_warned=yes ;;
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="${ac_tool_prefix}cc"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 if test -n "$CC"; then
2997 { echo "$as_me:$LINENO: result: $CC" >&5
2998 echo "${ECHO_T}$CC" >&6; }
3000 { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3007 if test -z "$CC"; then
3008 # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027 ac_prog_rejected=yes
3031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 if test $ac_prog_rejected = yes; then
3039 # We found a bogon in the path, so make sure we never use it.
3040 set dummy $ac_cv_prog_CC
3042 if test $@%:@ != 0; then
3043 # We chose a different compiler from the bogus one.
3044 # However, it has the same basename, so the bogon will be chosen
3045 # first if we set CC to just the basename; use the full file name.
3047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3053 if test -n "$CC"; then
3054 { echo "$as_me:$LINENO: result: $CC" >&5
3055 echo "${ECHO_T}$CC" >&6; }
3057 { echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6; }
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 for ac_prog in cl.exe
3067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test -n "$CC"; then
3096 { echo "$as_me:$LINENO: result: $CC" >&5
3097 echo "${ECHO_T}$CC" >&6; }
3099 { echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6; }
3104 test -n "$CC" && break
3107 if test -z "$CC"; then
3109 for ac_prog in cl.exe
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_ac_ct_CC="$ac_prog"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3141 echo "${ECHO_T}$ac_ct_CC" >&6; }
3143 { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3148 test -n "$ac_ct_CC" && break
3151 if test "x$ac_ct_CC" = x; then
3154 case $cross_compiling:$ac_tool_warned in
3156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3157 whose name does not start with the host triplet. If you think this
3158 configuration is useful to you, please write to autoconf@gnu.org." >&5
3159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3160 whose name does not start with the host triplet. If you think this
3161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3162 ac_tool_warned=yes ;;
3171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: no acceptable C compiler found in \$PATH
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3177 # Provide some information about the compiler.
3178 echo "$as_me:$LINENO: checking for C compiler version" >&5
3179 ac_compiler=`set X $ac_compile; echo $2`
3180 { (ac_try="$ac_compiler --version >&5"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compiler --version >&5") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190 { (ac_try="$ac_compiler -v >&5"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compiler -v >&5") 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3200 { (ac_try="$ac_compiler -V >&5"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compiler -V >&5") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235 # List of possible output files, starting from the most likely.
3236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3237 # only as a last resort. b.out is created by i960 compilers.
3238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3240 # The IRIX 6 linker writes into existing files which may not be
3241 # executable, retaining their permissions. Remove them first so a
3242 # subsequent execution test works.
3244 for ac_file in $ac_files
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 if { (ac_try="$ac_link_default"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_link_default") 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; then
3263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3268 for ac_file in $ac_files ''
3270 test -f "$ac_file" || continue
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3275 # We found the default executable, but exeext='' is most
3279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 # We set ac_cv_exeext here because the later test for it is not
3284 # safe: cross compilers may not add the suffix if given an `-o'
3285 # argument, so we may need to know it at that point already.
3286 # Even if this section looks crufty: it has the advantage of
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299 { echo "$as_me:$LINENO: result: $ac_file" >&5
3300 echo "${ECHO_T}$ac_file" >&6; }
3301 if test -z "$ac_file"; then
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3306 See \`config.log' for more details." >&5
3307 echo "$as_me: error: C compiler cannot create executables
3308 See \`config.log' for more details." >&2;}
3309 { (exit 77); exit 77; }; }
3312 ac_exeext=$ac_cv_exeext
3314 # Check that the compiler produces executables we can run. If not, either
3315 # the compiler is broken, or we cross compile.
3316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3319 # If not cross compiling, check that we can run a simple program.
3320 if test "$cross_compiling" != yes; then
3321 if { ac_try='./$ac_file'
3322 { (case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_try") 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3333 if test "$cross_compiling" = maybe; then
3336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3337 If you meant to cross compile, use \`--host'.
3338 See \`config.log' for more details." >&5
3339 echo "$as_me: error: cannot run C compiled programs.
3340 If you meant to cross compile, use \`--host'.
3341 See \`config.log' for more details." >&2;}
3342 { (exit 1); exit 1; }; }
3346 { echo "$as_me:$LINENO: result: yes" >&5
3347 echo "${ECHO_T}yes" >&6; }
3349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 # Check that the compiler produces executables we can run. If not, either
3352 # the compiler is broken, or we cross compile.
3353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3356 echo "${ECHO_T}$cross_compiling" >&6; }
3358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3360 if { (ac_try="$ac_link"
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_link") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; then
3370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3372 # work properly (i.e., refer to `conftest.exe'), while it won't with
3374 for ac_file in conftest.exe conftest conftest.*; do
3375 test -f "$ac_file" || continue
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest$ac_cv_exeext
3392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3400 if test "${ac_cv_objext+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3418 rm -f conftest.o conftest.obj
3419 if { (ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; then
3429 for ac_file in conftest.o conftest.obj conftest.*; do
3430 test -f "$ac_file" || continue;
3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3442 See \`config.log' for more details." >&5
3443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3444 See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3451 echo "${ECHO_T}$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3508 GCC=`test $ac_compiler_gnu = yes && echo yes`
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3513 if test "${ac_cv_prog_cc_g+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 ac_save_c_werror_flag=$ac_c_werror_flag
3517 ac_c_werror_flag=yes
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_c_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 ac_c_werror_flag=$ac_save_c_werror_flag
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && {
3626 test -z "$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 } && test -s conftest.$ac_objext; then
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 ac_c_werror_flag=$ac_save_c_werror_flag
3646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3648 if test "$ac_test_CFLAGS" = set; then
3649 CFLAGS=$ac_save_CFLAGS
3650 elif test $ac_cv_prog_cc_g = yes; then
3651 if test "$GCC" = yes; then
3657 if test "$GCC" = yes; then
3663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3665 if test "${ac_cv_prog_cc_c89+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_cv_prog_cc_c89=no
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3678 #include <sys/types.h>
3679 #include <sys/stat.h>
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3694 s = g (p, va_arg (v,int));
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3700 function prototypes and stuff, but not '\xHH' hex character constants.
3701 These don't provoke an error unfortunately, instead are silently treated
3702 as 'x'. The following induces an error, until -std is added to get
3703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3704 array size at least. It's necessary to write '\x00'==0 to get something
3705 that's true only with -std. */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709 inside strings and character constants. */
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730 CC="$ac_save_CC $ac_arg"
3731 rm -f conftest.$ac_objext
3732 if { (ac_try="$ac_compile"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_compile") 2>conftest.er1
3740 grep -v '^ *+' conftest.er1 >conftest.err
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } && {
3745 test -z "$ac_c_werror_flag" ||
3746 test ! -s conftest.err
3747 } && test -s conftest.$ac_objext; then
3748 ac_cv_prog_cc_c89=$ac_arg
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3756 rm -f core conftest.err conftest.$ac_objext
3757 test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 rm -f conftest.$ac_ext
3764 case "x$ac_cv_prog_cc_c89" in
3766 { echo "$as_me:$LINENO: result: none needed" >&5
3767 echo "${ECHO_T}none needed" >&6; } ;;
3769 { echo "$as_me:$LINENO: result: unsupported" >&5
3770 echo "${ECHO_T}unsupported" >&6; } ;;
3772 CC="$CC $ac_cv_prog_cc_c89"
3773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 depcc="$CC" am_compiler_list=
3786 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3787 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3788 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3792 # We make a subdir and do the tests there. Otherwise we can end up
3793 # making bogus files that we don't know about and never remove. For
3794 # instance it was reported that on HP-UX the gcc test will end up
3795 # making a dummy file named `D' -- because `-MD' means `put the output
3798 # Copy depcomp to subdir because otherwise we won't find it if we're
3799 # using a relative directory.
3800 cp "$am_depcomp" conftest.dir
3802 # We will build objects and dependencies in a subdirectory because
3803 # it helps to detect inapplicable dependency modes. For instance
3804 # both Tru64's cc and ICC support -MD to output dependencies as a
3805 # side effect of compilation, but ICC will put the dependencies in
3806 # the current directory while Tru64 will put them in the object
3810 am_cv_CC_dependencies_compiler_type=none
3811 if test "$am_compiler_list" = ""; then
3812 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814 for depmode in $am_compiler_list; do
3815 # Setup a source with many dependencies, because some compilers
3816 # like to wrap large dependency lists on column 80 (with \), and
3817 # we should not choose a depcomp mode which is confused by this.
3819 # We need to recreate these files for each test, as the compiler may
3820 # overwrite some of them when testing with obscure command lines.
3821 # This happens at least with the AIX C compiler.
3823 for i in 1 2 3 4 5 6; do
3824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826 # Solaris 8's {/usr,}/bin/sh.
3827 touch sub/conftst$i.h
3829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844 # mode. It turns out that the SunPro C++ compiler does not properly
3845 # handle `-M -o', and we need to detect this.
3846 if depmode=$depmode \
3847 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3849 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3850 >/dev/null 2>conftest.err &&
3851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3854 # icc doesn't choke on unknown options, it will just issue warnings
3855 # or remarks (even with -Werror). So we grep stderr for any message
3856 # that says an option was ignored or not supported.
3857 # When given -MP, icc 7.0 and 7.1 complain thusly:
3858 # icc: Command line warning: ignoring option '-M'; no argument required
3859 # The diagnosis changed in icc 8.0:
3860 # icc: Command line remark: option '-MP' not supported
3861 if (grep 'ignoring option' conftest.err ||
3862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3863 am_cv_CC_dependencies_compiler_type=$depmode
3872 am_cv_CC_dependencies_compiler_type=none
3876 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3877 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3878 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883 test "x$enable_dependency_tracking" != xno \
3884 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCC_FALSE='#'
3888 am__fastdepCC_TRUE='#'
3889 am__fastdepCC_FALSE=
3897 # Check whether --with-tcp-wrappers was given.
3898 if test "${with_tcp_wrappers+set}" = set; then
3899 withval=$with_tcp_wrappers; with_tcpw=$withval
3904 if test "x$with_tcpw" != "xno" ; then
3906 saved_LDFLAGS="$LDFLAGS"
3907 saved_CPPFLAGS="$CPPFLAGS"
3908 if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3909 if test -d "${with_tcpw}/lib"; then
3910 if test -n "${need_dash_r}"; then
3911 LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3913 LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3916 if test -n "${need_dash_r}"; then
3917 LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3919 LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3922 if test -d "${with_tcpw}/include"; then
3923 CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3925 CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3929 LIBS="$LIBWRAP $LIBS"
3930 { echo "$as_me:$LINENO: checking for libwrap" >&5
3931 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3940 int deny_severity = 0, allow_severity = 0;
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_link") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest$ac_exeext &&
3967 $as_test_x conftest$ac_exeext; then
3969 { echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6; }
3973 cat >>confdefs.h <<\_ACEOF
3974 @%:@define LIBWRAP 1
3978 cat >>confdefs.h <<\_ACEOF
3979 @%:@define HAVE_LIBWRAP 1
3983 cat >>confdefs.h <<\_ACEOF
3984 @%:@define HAVE_TCP_WRAPPER 1
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3995 echo "$as_me: error: *** libwrap missing" >&2;}
3996 { (exit 1); exit 1; }; }
4001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4002 conftest$ac_exeext conftest.$ac_ext
4010 # Arrange for large-file support
4011 # Check whether --enable-largefile was given.
4012 if test "${enable_largefile+set}" = set; then
4013 enableval=$enable_largefile;
4016 if test "$enable_largefile" != no; then
4018 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4019 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4020 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_cv_sys_largefile_CC=no
4024 if test "$GCC" != yes; then
4027 # IRIX 6.2 and later do not support large files by default,
4028 # so use the C compiler's -n32 option if that helps.
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 @%:@include <sys/types.h>
4036 /* Check that off_t can represent 2**63 - 1 correctly.
4037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4038 since some C++ compilers masquerading as C compilers
4039 incorrectly reject 9223372036854775807. */
4040 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4042 && LARGE_OFF_T % 2147483647 == 1)
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4077 rm -f core conftest.err conftest.$ac_objext
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_sys_largefile_CC=' -n32'; break
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f core conftest.err conftest.$ac_objext
4108 rm -f conftest.$ac_ext
4111 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4112 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4113 if test "$ac_cv_sys_largefile_CC" != no; then
4114 CC=$CC$ac_cv_sys_largefile_CC
4117 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4118 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4119 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 @%:@include <sys/types.h>
4130 /* Check that off_t can represent 2**63 - 1 correctly.
4131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4132 since some C++ compilers masquerading as C compilers
4133 incorrectly reject 9223372036854775807. */
4134 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4136 && LARGE_OFF_T % 2147483647 == 1)
4146 rm -f conftest.$ac_objext
4147 if { (ac_try="$ac_compile"
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_compile") 2>conftest.er1
4155 grep -v '^ *+' conftest.er1 >conftest.err
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } && {
4160 test -z "$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4162 } && test -s conftest.$ac_objext; then
4163 ac_cv_sys_file_offset_bits=no; break
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 @%:@define _FILE_OFFSET_BITS 64
4179 @%:@include <sys/types.h>
4180 /* Check that off_t can represent 2**63 - 1 correctly.
4181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4182 since some C++ compilers masquerading as C compilers
4183 incorrectly reject 9223372036854775807. */
4184 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4186 && LARGE_OFF_T % 2147483647 == 1)
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4205 grep -v '^ *+' conftest.er1 >conftest.err
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && {
4210 test -z "$ac_c_werror_flag" ||
4211 test ! -s conftest.err
4212 } && test -s conftest.$ac_objext; then
4213 ac_cv_sys_file_offset_bits=64; break
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_cv_sys_file_offset_bits=unknown
4226 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4227 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4228 case $ac_cv_sys_file_offset_bits in #(
4231 cat >>confdefs.h <<_ACEOF
4232 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4237 if test $ac_cv_sys_file_offset_bits = unknown; then
4238 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4239 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4240 if test "${ac_cv_sys_large_files+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 @%:@include <sys/types.h>
4251 /* Check that off_t can represent 2**63 - 1 correctly.
4252 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4253 since some C++ compilers masquerading as C compilers
4254 incorrectly reject 9223372036854775807. */
4255 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4256 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4257 && LARGE_OFF_T % 2147483647 == 1)
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compile") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && {
4281 test -z "$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 } && test -s conftest.$ac_objext; then
4284 ac_cv_sys_large_files=no; break
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 @%:@define _LARGE_FILES 1
4300 @%:@include <sys/types.h>
4301 /* Check that off_t can represent 2**63 - 1 correctly.
4302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4303 since some C++ compilers masquerading as C compilers
4304 incorrectly reject 9223372036854775807. */
4305 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4307 && LARGE_OFF_T % 2147483647 == 1)
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && {
4331 test -z "$ac_c_werror_flag" ||
4332 test ! -s conftest.err
4333 } && test -s conftest.$ac_objext; then
4334 ac_cv_sys_large_files=1; break
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_cv_sys_large_files=unknown
4347 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4348 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4349 case $ac_cv_sys_large_files in #(
4352 cat >>confdefs.h <<_ACEOF
4353 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4363 ac_config_headers="$ac_config_headers support/include/config.h"
4366 # Checks for programs.
4368 ac_cpp='$CXXCPP $CPPFLAGS'
4369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4372 if test -z "$CXX"; then
4373 if test -n "$CCC"; then
4376 if test -n "$ac_tool_prefix"; then
4377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_CXX+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$CXX"; then
4387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 if test -n "$CXX"; then
4408 { echo "$as_me:$LINENO: result: $CXX" >&5
4409 echo "${ECHO_T}$CXX" >&6; }
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4416 test -n "$CXX" && break
4419 if test -z "$CXX"; then
4421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$ac_ct_CXX"; then
4431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_CXX="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4451 if test -n "$ac_ct_CXX"; then
4452 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4453 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 test -n "$ac_ct_CXX" && break
4463 if test "x$ac_ct_CXX" = x; then
4466 case $cross_compiling:$ac_tool_warned in
4468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4469 whose name does not start with the host triplet. If you think this
4470 configuration is useful to you, please write to autoconf@gnu.org." >&5
4471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4472 whose name does not start with the host triplet. If you think this
4473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4474 ac_tool_warned=yes ;;
4482 # Provide some information about the compiler.
4483 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4484 ac_compiler=`set X $ac_compile; echo $2`
4485 { (ac_try="$ac_compiler --version >&5"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_compiler --version >&5") 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }
4495 { (ac_try="$ac_compiler -v >&5"
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_compiler -v >&5") 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }
4505 { (ac_try="$ac_compiler -V >&5"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_compiler -V >&5") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }
4516 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4517 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_compile") 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && {
4553 test -z "$ac_cxx_werror_flag" ||
4554 test ! -s conftest.err
4555 } && test -s conftest.$ac_objext; then
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4568 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4569 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4570 GXX=`test $ac_compiler_gnu = yes && echo yes`
4571 ac_test_CXXFLAGS=${CXXFLAGS+set}
4572 ac_save_CXXFLAGS=$CXXFLAGS
4573 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4574 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_cxx_g+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4579 ac_cxx_werror_flag=yes
4582 cat >conftest.$ac_ext <<_ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_cxx_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest.$ac_objext; then
4614 ac_cv_prog_cxx_g=yes
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4620 cat >conftest.$ac_ext <<_ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_cxx_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4674 rm -f conftest.$ac_objext
4675 if { (ac_try="$ac_compile"
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_compile") 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } && {
4688 test -z "$ac_cxx_werror_flag" ||
4689 test ! -s conftest.err
4690 } && test -s conftest.$ac_objext; then
4691 ac_cv_prog_cxx_g=yes
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4709 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4710 if test "$ac_test_CXXFLAGS" = set; then
4711 CXXFLAGS=$ac_save_CXXFLAGS
4712 elif test $ac_cv_prog_cxx_g = yes; then
4713 if test "$GXX" = yes; then
4719 if test "$GXX" = yes; then
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 depcc="$CXX" am_compiler_list=
4733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4735 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4739 # We make a subdir and do the tests there. Otherwise we can end up
4740 # making bogus files that we don't know about and never remove. For
4741 # instance it was reported that on HP-UX the gcc test will end up
4742 # making a dummy file named `D' -- because `-MD' means `put the output
4745 # Copy depcomp to subdir because otherwise we won't find it if we're
4746 # using a relative directory.
4747 cp "$am_depcomp" conftest.dir
4749 # We will build objects and dependencies in a subdirectory because
4750 # it helps to detect inapplicable dependency modes. For instance
4751 # both Tru64's cc and ICC support -MD to output dependencies as a
4752 # side effect of compilation, but ICC will put the dependencies in
4753 # the current directory while Tru64 will put them in the object
4757 am_cv_CXX_dependencies_compiler_type=none
4758 if test "$am_compiler_list" = ""; then
4759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4761 for depmode in $am_compiler_list; do
4762 # Setup a source with many dependencies, because some compilers
4763 # like to wrap large dependency lists on column 80 (with \), and
4764 # we should not choose a depcomp mode which is confused by this.
4766 # We need to recreate these files for each test, as the compiler may
4767 # overwrite some of them when testing with obscure command lines.
4768 # This happens at least with the AIX C compiler.
4770 for i in 1 2 3 4 5 6; do
4771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4773 # Solaris 8's {/usr,}/bin/sh.
4774 touch sub/conftst$i.h
4776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4780 # after this tag, mechanisms are not by side-effect, so they'll
4781 # only be used when explicitly requested
4782 if test "x$enable_dependency_tracking" = xyes; then
4790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4791 # mode. It turns out that the SunPro C++ compiler does not properly
4792 # handle `-M -o', and we need to detect this.
4793 if depmode=$depmode \
4794 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4796 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4797 >/dev/null 2>conftest.err &&
4798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4799 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4801 # icc doesn't choke on unknown options, it will just issue warnings
4802 # or remarks (even with -Werror). So we grep stderr for any message
4803 # that says an option was ignored or not supported.
4804 # When given -MP, icc 7.0 and 7.1 complain thusly:
4805 # icc: Command line warning: ignoring option '-M'; no argument required
4806 # The diagnosis changed in icc 8.0:
4807 # icc: Command line remark: option '-MP' not supported
4808 if (grep 'ignoring option' conftest.err ||
4809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4810 am_cv_CXX_dependencies_compiler_type=$depmode
4819 am_cv_CXX_dependencies_compiler_type=none
4823 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4824 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4825 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4830 test "x$enable_dependency_tracking" != xno \
4831 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4832 am__fastdepCXX_TRUE=
4833 am__fastdepCXX_FALSE='#'
4835 am__fastdepCXX_TRUE='#'
4836 am__fastdepCXX_FALSE=
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850 if test "${ac_cv_prog_CC+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 if test -n "$CC"; then
4854 ac_cv_prog_CC="$CC" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 if test -n "$CC"; then
4875 { echo "$as_me:$LINENO: result: $CC" >&5
4876 echo "${ECHO_T}$CC" >&6; }
4878 { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4884 if test -z "$ac_cv_prog_CC"; then
4886 # Extract the first word of "gcc", so it can be a program name with args.
4887 set dummy gcc; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test -n "$ac_ct_CC"; then
4894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_prog_ac_ct_CC="gcc"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4914 if test -n "$ac_ct_CC"; then
4915 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4916 echo "${ECHO_T}$ac_ct_CC" >&6; }
4918 { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4922 if test "x$ac_ct_CC" = x; then
4925 case $cross_compiling:$ac_tool_warned in
4927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4928 whose name does not start with the host triplet. If you think this
4929 configuration is useful to you, please write to autoconf@gnu.org." >&5
4930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4931 whose name does not start with the host triplet. If you think this
4932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4933 ac_tool_warned=yes ;;
4941 if test -z "$CC"; then
4942 if test -n "$ac_tool_prefix"; then
4943 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4944 set dummy ${ac_tool_prefix}cc; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_prog_CC+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test -n "$CC"; then
4951 ac_cv_prog_CC="$CC" # Let the user override the test.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_CC="${ac_tool_prefix}cc"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 if test -n "$CC"; then
4972 { echo "$as_me:$LINENO: result: $CC" >&5
4973 echo "${ECHO_T}$CC" >&6; }
4975 { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4982 if test -z "$CC"; then
4983 # Extract the first word of "cc", so it can be a program name with args.
4984 set dummy cc; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_CC+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 if test -n "$CC"; then
4991 ac_cv_prog_CC="$CC" # Let the user override the test.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5002 ac_prog_rejected=yes
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 if test $ac_prog_rejected = yes; then
5014 # We found a bogon in the path, so make sure we never use it.
5015 set dummy $ac_cv_prog_CC
5017 if test $@%:@ != 0; then
5018 # We chose a different compiler from the bogus one.
5019 # However, it has the same basename, so the bogon will be chosen
5020 # first if we set CC to just the basename; use the full file name.
5022 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5028 if test -n "$CC"; then
5029 { echo "$as_me:$LINENO: result: $CC" >&5
5030 echo "${ECHO_T}$CC" >&6; }
5032 { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5038 if test -z "$CC"; then
5039 if test -n "$ac_tool_prefix"; then
5040 for ac_prog in cl.exe
5042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_CC+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 if test -n "$CC"; then
5050 ac_cv_prog_CC="$CC" # Let the user override the test.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 if test -n "$CC"; then
5071 { echo "$as_me:$LINENO: result: $CC" >&5
5072 echo "${ECHO_T}$CC" >&6; }
5074 { echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6; }
5079 test -n "$CC" && break
5082 if test -z "$CC"; then
5084 for ac_prog in cl.exe
5086 # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 if test -n "$ac_ct_CC"; then
5094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_ac_ct_CC="$ac_prog"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5114 if test -n "$ac_ct_CC"; then
5115 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5116 echo "${ECHO_T}$ac_ct_CC" >&6; }
5118 { echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6; }
5123 test -n "$ac_ct_CC" && break
5126 if test "x$ac_ct_CC" = x; then
5129 case $cross_compiling:$ac_tool_warned in
5131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5132 whose name does not start with the host triplet. If you think this
5133 configuration is useful to you, please write to autoconf@gnu.org." >&5
5134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5135 whose name does not start with the host triplet. If you think this
5136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5137 ac_tool_warned=yes ;;
5146 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5147 See \`config.log' for more details." >&5
5148 echo "$as_me: error: no acceptable C compiler found in \$PATH
5149 See \`config.log' for more details." >&2;}
5150 { (exit 1); exit 1; }; }
5152 # Provide some information about the compiler.
5153 echo "$as_me:$LINENO: checking for C compiler version" >&5
5154 ac_compiler=`set X $ac_compile; echo $2`
5155 { (ac_try="$ac_compiler --version >&5"
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_compiler --version >&5") 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }
5165 { (ac_try="$ac_compiler -v >&5"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compiler -v >&5") 2>&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }
5175 { (ac_try="$ac_compiler -V >&5"
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_compiler -V >&5") 2>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }
5186 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 cat >conftest.$ac_ext <<_ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_compile") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && {
5223 test -z "$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 } && test -s conftest.$ac_objext; then
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5238 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5239 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5240 GCC=`test $ac_compiler_gnu = yes && echo yes`
5241 ac_test_CFLAGS=${CFLAGS+set}
5242 ac_save_CFLAGS=$CFLAGS
5243 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5244 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_cc_g+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_save_c_werror_flag=$ac_c_werror_flag
5249 ac_c_werror_flag=yes
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5267 rm -f conftest.$ac_objext
5268 if { (ac_try="$ac_compile"
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_compile") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1 >conftest.err
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest.$ac_objext; then
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compile") 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest.$ac_objext; then
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_c_werror_flag=$ac_save_c_werror_flag
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.$ac_objext; then
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 ac_c_werror_flag=$ac_save_c_werror_flag
5378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5380 if test "$ac_test_CFLAGS" = set; then
5381 CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383 if test "$GCC" = yes; then
5389 if test "$GCC" = yes; then
5395 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5396 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5397 if test "${ac_cv_prog_cc_c89+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 ac_cv_prog_cc_c89=no
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5410 #include <sys/types.h>
5411 #include <sys/stat.h>
5412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5413 struct buf { int x; };
5414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5415 static char *e (p, i)
5421 static char *f (char * (*g) (char **, int), char **p, ...)
5426 s = g (p, va_arg (v,int));
5431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5432 function prototypes and stuff, but not '\xHH' hex character constants.
5433 These don't provoke an error unfortunately, instead are silently treated
5434 as 'x'. The following induces an error, until -std is added to get
5435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5436 array size at least. It's necessary to write '\x00'==0 to get something
5437 that's true only with -std. */
5438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5441 inside strings and character constants. */
5443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5445 int test (int i, double x);
5446 struct s1 {int (*f) (int a);};
5447 struct s2 {int (*f) (double a);};
5448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5462 CC="$ac_save_CC $ac_arg"
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_cv_prog_cc_c89=$ac_arg
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5488 rm -f core conftest.err conftest.$ac_objext
5489 test "x$ac_cv_prog_cc_c89" != "xno" && break
5491 rm -f conftest.$ac_ext
5496 case "x$ac_cv_prog_cc_c89" in
5498 { echo "$as_me:$LINENO: result: none needed" >&5
5499 echo "${ECHO_T}none needed" >&6; } ;;
5501 { echo "$as_me:$LINENO: result: unsupported" >&5
5502 echo "${ECHO_T}unsupported" >&6; } ;;
5504 CC="$CC $ac_cv_prog_cc_c89"
5505 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5506 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516 depcc="$CC" am_compiler_list=
5518 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5524 # We make a subdir and do the tests there. Otherwise we can end up
5525 # making bogus files that we don't know about and never remove. For
5526 # instance it was reported that on HP-UX the gcc test will end up
5527 # making a dummy file named `D' -- because `-MD' means `put the output
5530 # Copy depcomp to subdir because otherwise we won't find it if we're
5531 # using a relative directory.
5532 cp "$am_depcomp" conftest.dir
5534 # We will build objects and dependencies in a subdirectory because
5535 # it helps to detect inapplicable dependency modes. For instance
5536 # both Tru64's cc and ICC support -MD to output dependencies as a
5537 # side effect of compilation, but ICC will put the dependencies in
5538 # the current directory while Tru64 will put them in the object
5542 am_cv_CC_dependencies_compiler_type=none
5543 if test "$am_compiler_list" = ""; then
5544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5546 for depmode in $am_compiler_list; do
5547 # Setup a source with many dependencies, because some compilers
5548 # like to wrap large dependency lists on column 80 (with \), and
5549 # we should not choose a depcomp mode which is confused by this.
5551 # We need to recreate these files for each test, as the compiler may
5552 # overwrite some of them when testing with obscure command lines.
5553 # This happens at least with the AIX C compiler.
5555 for i in 1 2 3 4 5 6; do
5556 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5557 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5558 # Solaris 8's {/usr,}/bin/sh.
5559 touch sub/conftst$i.h
5561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5565 # after this tag, mechanisms are not by side-effect, so they'll
5566 # only be used when explicitly requested
5567 if test "x$enable_dependency_tracking" = xyes; then
5575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576 # mode. It turns out that the SunPro C++ compiler does not properly
5577 # handle `-M -o', and we need to detect this.
5578 if depmode=$depmode \
5579 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5581 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5582 >/dev/null 2>conftest.err &&
5583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5584 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5586 # icc doesn't choke on unknown options, it will just issue warnings
5587 # or remarks (even with -Werror). So we grep stderr for any message
5588 # that says an option was ignored or not supported.
5589 # When given -MP, icc 7.0 and 7.1 complain thusly:
5590 # icc: Command line warning: ignoring option '-M'; no argument required
5591 # The diagnosis changed in icc 8.0:
5592 # icc: Command line remark: option '-MP' not supported
5593 if (grep 'ignoring option' conftest.err ||
5594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5595 am_cv_CC_dependencies_compiler_type=$depmode
5604 am_cv_CC_dependencies_compiler_type=none
5608 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5609 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5610 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5615 test "x$enable_dependency_tracking" != xno \
5616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5618 am__fastdepCC_FALSE='#'
5620 am__fastdepCC_TRUE='#'
5621 am__fastdepCC_FALSE=
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5632 # On Suns, sometimes $CPP names a directory.
5633 if test -n "$CPP" && test -d "$CPP"; then
5636 if test -z "$CPP"; then
5637 if test "${ac_cv_prog_CPP+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 # Double quotes because CPP needs to be expanded
5641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5644 for ac_c_preproc_warn_flag in '' yes
5646 # Use a header file that comes with gcc, so configuring glibc
5647 # with a fresh cross-compiler works.
5648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 # <limits.h> exists even on freestanding compilers.
5650 # On the NeXT, cc -E runs the code through the compiler's parser,
5651 # not just through cpp. "Syntax error" is here to catch this case.
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5659 @%:@ include <limits.h>
5661 @%:@ include <assert.h>
5665 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } >/dev/null && {
5678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5679 test ! -s conftest.err
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 # Broken: fails on valid input.
5690 rm -f conftest.err conftest.$ac_ext
5692 # OK, works on sane cases. Now check whether nonexistent headers
5693 # can be detected and how.
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 @%:@include <ac_nonexistent.h>
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5718 # Broken: success on invalid input.
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 # Passes both tests.
5729 rm -f conftest.err conftest.$ac_ext
5732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5733 rm -f conftest.err conftest.$ac_ext
5734 if $ac_preproc_ok; then
5746 { echo "$as_me:$LINENO: result: $CPP" >&5
5747 echo "${ECHO_T}$CPP" >&6; }
5749 for ac_c_preproc_warn_flag in '' yes
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 @%:@ include <limits.h>
5766 @%:@ include <assert.h>
5770 if { (ac_try="$ac_cpp conftest.$ac_ext"
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } >/dev/null && {
5783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 # Broken: fails on valid input.
5795 rm -f conftest.err conftest.$ac_ext
5797 # OK, works on sane cases. Now check whether nonexistent headers
5798 # can be detected and how.
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 @%:@include <ac_nonexistent.h>
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } >/dev/null && {
5820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5823 # Broken: success on invalid input.
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 # Passes both tests.
5834 rm -f conftest.err conftest.$ac_ext
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then
5842 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." >&5
5844 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details." >&2;}
5846 { (exit 1); exit 1; }; }
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855 # Find a good install program. We prefer a C program (faster),
5856 # so one script is as good as another. But avoid the broken or
5857 # incompatible versions:
5858 # SysV /etc/install, /usr/sbin/install
5859 # SunOS /usr/etc/install
5860 # IRIX /sbin/install
5862 # AmigaOS /C/install, which installs bootblocks on floppy discs
5863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5866 # OS/2's system install, which has a completely different semantic
5867 # ./install, which can be erroneously created by make from ./install.sh.
5868 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5870 if test -z "$INSTALL"; then
5871 if test "${ac_cv_path_install+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 # Account for people who put trailing slashes in PATH elements.
5881 ./ | .// | /cC/* | \
5882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5883 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5886 # OSF1 and SCO ODT 3.0 have their own names for install.
5887 # Don't use installbsd from OSF since it installs stuff as root
5889 for ac_prog in ginstall scoinst install; do
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5892 if test $ac_prog = install &&
5893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5894 # AIX install. It has an incompatible calling convention.
5896 elif test $ac_prog = install &&
5897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5898 # program-specific install script used by HP pwplus--don't use.
5901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5914 if test "${ac_cv_path_install+set}" = set; then
5915 INSTALL=$ac_cv_path_install
5917 # As a last resort, use the slow shell script. Don't cache a
5918 # value for INSTALL within a source directory, because that will
5919 # break other packages using the cache if that directory is
5920 # removed, or if the value is a relative name.
5921 INSTALL=$ac_install_sh
5924 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5925 echo "${ECHO_T}$INSTALL" >&6; }
5927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5928 # It thinks the first close brace ends the variable substitution.
5929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5935 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5938 if test "$LN_S" = "ln -s"; then
5939 { echo "$as_me:$LINENO: result: yes" >&5
5940 echo "${ECHO_T}yes" >&6; }
5942 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5943 echo "${ECHO_T}no, using $LN_S" >&6; }
5946 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5948 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5949 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 cat >conftest.make <<\_ACEOF
5955 @echo '@@@%%%=$(MAKE)=@@@%%%'
5957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5960 eval ac_cv_prog_make_${ac_make}_set=yes;;
5962 eval ac_cv_prog_make_${ac_make}_set=no;;
5966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5967 { echo "$as_me:$LINENO: result: yes" >&5
5968 echo "${ECHO_T}yes" >&6; }
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 SET_MAKE="MAKE=${MAKE-make}"
5976 # Check whether --enable-shared was given.
5977 if test "${enable_shared+set}" = set; then
5978 enableval=$enable_shared; p=${PACKAGE-default}
5980 yes) enable_shared=yes ;;
5981 no) enable_shared=no ;;
5984 # Look at the argument we got. We use all the common list separators.
5985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5986 for pkg in $enableval; do
5988 if test "X$pkg" = "X$p"; then
6000 # Check whether --enable-static was given.
6001 if test "${enable_static+set}" = set; then
6002 enableval=$enable_static; p=${PACKAGE-default}
6004 yes) enable_static=yes ;;
6005 no) enable_static=no ;;
6008 # Look at the argument we got. We use all the common list separators.
6009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6010 for pkg in $enableval; do
6012 if test "X$pkg" = "X$p"; then
6024 # Check whether --enable-fast-install was given.
6025 if test "${enable_fast_install+set}" = set; then
6026 enableval=$enable_fast_install; p=${PACKAGE-default}
6028 yes) enable_fast_install=yes ;;
6029 no) enable_fast_install=no ;;
6031 enable_fast_install=no
6032 # Look at the argument we got. We use all the common list separators.
6033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6034 for pkg in $enableval; do
6036 if test "X$pkg" = "X$p"; then
6037 enable_fast_install=yes
6044 enable_fast_install=yes
6048 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6049 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6050 if test "${lt_cv_path_SED+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 # Loop through the user's path and test for sed and gsed.
6054 # Then use that list of sed's as ones to test for truncation.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for lt_ac_prog in sed gsed; do
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6063 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6071 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6072 # along with /bin/sed that truncates output.
6073 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6074 test ! -f $lt_ac_sed && continue
6075 cat /dev/null > conftest.in
6077 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6078 # Check for GNU sed and select it if it is found.
6079 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6080 lt_cv_path_SED=$lt_ac_sed
6084 cat conftest.in conftest.in >conftest.tmp
6085 mv conftest.tmp conftest.in
6086 cp conftest.in conftest.nl
6088 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6089 cmp -s conftest.out conftest.nl || break
6090 # 10000 chars as input seems more than enough
6091 test $lt_ac_count -gt 10 && break
6092 lt_ac_count=`expr $lt_ac_count + 1`
6093 if test $lt_ac_count -gt $lt_ac_max; then
6094 lt_ac_max=$lt_ac_count
6095 lt_cv_path_SED=$lt_ac_sed
6104 { echo "$as_me:$LINENO: result: $SED" >&5
6105 echo "${ECHO_T}$SED" >&6; }
6107 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6108 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_GREP+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 # Extract the first word of "grep ggrep" to use in msg output
6113 if test -z "$GREP"; then
6114 set dummy grep ggrep; ac_prog_name=$2
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 ac_path_GREP_found=false
6119 # Loop through the user's path and test for each of PROGNAME-LIST
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6124 test -z "$as_dir" && as_dir=.
6125 for ac_prog in grep ggrep; do
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6129 # Check for GNU ac_path_GREP and select it if it is found.
6130 # Check for GNU $ac_path_GREP
6131 case `"$ac_path_GREP" --version 2>&1` in
6133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6136 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6139 cat "conftest.in" "conftest.in" >"conftest.tmp"
6140 mv "conftest.tmp" "conftest.in"
6141 cp "conftest.in" "conftest.nl"
6142 echo 'GREP' >> "conftest.nl"
6143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6145 ac_count=`expr $ac_count + 1`
6146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6147 # Best one so far, save it but keep looking for a better one
6148 ac_cv_path_GREP="$ac_path_GREP"
6149 ac_path_GREP_max=$ac_count
6151 # 10*(2^10) chars as input seems more than enough
6152 test $ac_count -gt 10 && break
6154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6158 $ac_path_GREP_found && break 3
6168 GREP="$ac_cv_path_GREP"
6169 if test -z "$GREP"; then
6170 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6171 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6172 { (exit 1); exit 1; }; }
6176 ac_cv_path_GREP=$GREP
6181 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6182 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6183 GREP="$ac_cv_path_GREP"
6186 { echo "$as_me:$LINENO: checking for egrep" >&5
6187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_EGREP+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6192 then ac_cv_path_EGREP="$GREP -E"
6194 # Extract the first word of "egrep" to use in msg output
6195 if test -z "$EGREP"; then
6196 set dummy egrep; ac_prog_name=$2
6197 if test "${ac_cv_path_EGREP+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 ac_path_EGREP_found=false
6201 # Loop through the user's path and test for each of PROGNAME-LIST
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6206 test -z "$as_dir" && as_dir=.
6207 for ac_prog in egrep; do
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6211 # Check for GNU ac_path_EGREP and select it if it is found.
6212 # Check for GNU $ac_path_EGREP
6213 case `"$ac_path_EGREP" --version 2>&1` in
6215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6221 cat "conftest.in" "conftest.in" >"conftest.tmp"
6222 mv "conftest.tmp" "conftest.in"
6223 cp "conftest.in" "conftest.nl"
6224 echo 'EGREP' >> "conftest.nl"
6225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227 ac_count=`expr $ac_count + 1`
6228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6229 # Best one so far, save it but keep looking for a better one
6230 ac_cv_path_EGREP="$ac_path_EGREP"
6231 ac_path_EGREP_max=$ac_count
6233 # 10*(2^10) chars as input seems more than enough
6234 test $ac_count -gt 10 && break
6236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6240 $ac_path_EGREP_found && break 3
6250 EGREP="$ac_cv_path_EGREP"
6251 if test -z "$EGREP"; then
6252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6254 { (exit 1); exit 1; }; }
6258 ac_cv_path_EGREP=$EGREP
6264 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6265 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6266 EGREP="$ac_cv_path_EGREP"
6270 # Check whether --with-gnu-ld was given.
6271 if test "${with_gnu_ld+set}" = set; then
6272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6278 if test "$GCC" = yes; then
6279 # Check if gcc -print-prog-name=ld gives a path.
6280 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6284 # gcc leaves a trailing carriage return which upsets mingw
6285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6290 # Accept absolute paths.
6292 re_direlt='/[^/][^/]*/\.\./'
6293 # Canonicalize the pathname of ld
6294 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6296 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6298 test -z "$LD" && LD="$ac_prog"
6301 # If it fails, then pretend we aren't using GCC.
6305 # If it is relative, then search for the first ld in PATH.
6309 elif test "$with_gnu_ld" = yes; then
6310 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6313 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6316 if test "${lt_cv_path_LD+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 if test -z "$LD"; then
6320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6321 for ac_dir in $PATH; do
6323 test -z "$ac_dir" && ac_dir=.
6324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6325 lt_cv_path_LD="$ac_dir/$ac_prog"
6326 # Check to see if the program is GNU ld. I'd rather use --version,
6327 # but apparently some variants of GNU ld only accept -v.
6328 # Break only if it was the GNU/non-GNU ld that we prefer.
6329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6330 *GNU* | *'with BFD'*)
6331 test "$with_gnu_ld" != no && break
6334 test "$with_gnu_ld" != yes && break
6341 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6346 if test -n "$LD"; then
6347 { echo "$as_me:$LINENO: result: $LD" >&5
6348 echo "${ECHO_T}$LD" >&6; }
6350 { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6355 { (exit 1); exit 1; }; }
6356 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6362 case `$LD -v 2>&1 </dev/null` in
6363 *GNU* | *'with BFD'*)
6364 lt_cv_prog_gnu_ld=yes
6367 lt_cv_prog_gnu_ld=no
6371 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6373 with_gnu_ld=$lt_cv_prog_gnu_ld
6376 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6377 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6378 if test "${lt_cv_ld_reload_flag+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 lt_cv_ld_reload_flag='-r'
6383 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6384 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6385 reload_flag=$lt_cv_ld_reload_flag
6386 case $reload_flag in
6388 *) reload_flag=" $reload_flag" ;;
6390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393 if test "$GCC" = yes; then
6394 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6401 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6403 if test "${lt_cv_path_NM+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 if test -n "$NM"; then
6407 # Let the user override the test.
6410 lt_nm_to_check="${ac_tool_prefix}nm"
6411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6412 lt_nm_to_check="$lt_nm_to_check nm"
6414 for lt_tmp_nm in $lt_nm_to_check; do
6415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6418 test -z "$ac_dir" && ac_dir=.
6419 tmp_nm="$ac_dir/$lt_tmp_nm"
6420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6421 # Check to see if the nm accepts a BSD-compat flag.
6422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6423 # nm: unknown option "B" ignored
6424 # Tru64's nm complains that /dev/null is an invalid object file
6425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6426 */dev/null* | *'Invalid file or object type'*)
6427 lt_cv_path_NM="$tmp_nm -B"
6431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6433 lt_cv_path_NM="$tmp_nm -p"
6437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6438 continue # so that we can try to find one that supports BSD flags
6447 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6450 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6451 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6454 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6455 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6456 if test "${lt_cv_deplibs_check_method+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 lt_cv_file_magic_cmd='$MAGIC_CMD'
6460 lt_cv_file_magic_test_file=
6461 lt_cv_deplibs_check_method='unknown'
6462 # Need to set the preceding variable on all platforms that support
6463 # interlibrary dependencies.
6464 # 'none' -- dependencies not supported.
6465 # `unknown' -- same as none, but documents that we really don't know.
6466 # 'pass_all' -- all dependencies passed with no checks.
6467 # 'test_compile' -- check by making test program.
6468 # 'file_magic [[regex]]' -- check by looking for files in library path
6469 # which responds to the $file_magic_cmd with a given extended regex.
6470 # If you have `file' or equivalent on your system and you're not sure
6471 # whether `pass_all' will *always* work, you probably want this one.
6475 lt_cv_deplibs_check_method=pass_all
6479 lt_cv_deplibs_check_method=pass_all
6483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6484 lt_cv_file_magic_cmd='/usr/bin/file -L'
6485 lt_cv_file_magic_test_file=/shlib/libc.so
6489 # func_win32_libid is a shell function defined in ltmain.sh
6490 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6491 lt_cv_file_magic_cmd='func_win32_libid'
6495 # Base MSYS/MinGW do not provide the 'file' command needed by
6496 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6497 # unless we find 'file', for example because we are cross-compiling.
6498 if ( file / ) >/dev/null 2>&1; then
6499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6500 lt_cv_file_magic_cmd='func_win32_libid'
6502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6503 lt_cv_file_magic_cmd='$OBJDUMP -f'
6507 darwin* | rhapsody*)
6508 lt_cv_deplibs_check_method=pass_all
6511 freebsd* | dragonfly*)
6512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6515 # Not sure whether the presence of OpenBSD here was a mistake.
6516 # Let's accept both of them until this is cleared up.
6517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6518 lt_cv_file_magic_cmd=/usr/bin/file
6519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6523 lt_cv_deplibs_check_method=pass_all
6528 lt_cv_deplibs_check_method=pass_all
6531 hpux10.20* | hpux11*)
6532 lt_cv_file_magic_cmd=/usr/bin/file
6535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6536 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6539 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]'
6540 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6550 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6554 irix5* | irix6* | nonstopux*)
6556 *-32|*"-32 ") libmagic=32-bit;;
6557 *-n32|*"-n32 ") libmagic=N32;;
6558 *-64|*"-64 ") libmagic=64-bit;;
6559 *) libmagic=never-match;;
6561 lt_cv_deplibs_check_method=pass_all
6564 # This must be Linux ELF.
6565 linux* | k*bsd*-gnu)
6566 lt_cv_deplibs_check_method=pass_all
6569 netbsd* | netbsdelf*-gnu)
6570 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6579 lt_cv_file_magic_cmd=/usr/bin/file
6580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6584 lt_cv_deplibs_check_method=unknown
6588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6595 osf3* | osf4* | osf5*)
6596 lt_cv_deplibs_check_method=pass_all
6600 lt_cv_deplibs_check_method=pass_all
6604 lt_cv_deplibs_check_method=pass_all
6608 case $host_vendor in
6610 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]'
6611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6614 lt_cv_deplibs_check_method=pass_all
6617 lt_cv_file_magic_cmd='/bin/file'
6618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6621 lt_cv_file_magic_cmd='/bin/file'
6622 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6623 lt_cv_file_magic_test_file=/lib/libc.so
6626 lt_cv_deplibs_check_method=pass_all
6629 lt_cv_deplibs_check_method=pass_all
6634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6635 lt_cv_deplibs_check_method=pass_all
6640 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6641 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6642 file_magic_cmd=$lt_cv_file_magic_cmd
6643 deplibs_check_method=$lt_cv_deplibs_check_method
6644 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6649 # If no C compiler was specified, use CC.
6652 # If no C compiler flags were specified, use CFLAGS.
6653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6655 # Allow CC to be a program name with arguments.
6658 # Check whether --enable-libtool-lock was given.
6659 if test "${enable_libtool_lock+set}" = set; then
6660 enableval=$enable_libtool_lock;
6663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6665 # Some flags need to be propagated to the compiler or linker for good
6669 # Find out which ABI we are using.
6670 echo 'int i;' > conftest.$ac_ext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; then
6676 case `/usr/bin/file conftest.$ac_objext` in
6688 # Find out which ABI we are using.
6689 echo '#line __oline__ "configure"' > conftest.$ac_ext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; then
6695 if test "$lt_cv_prog_gnu_ld" = yes; then
6696 case `/usr/bin/file conftest.$ac_objext` in
6698 LD="${LD-ld} -melf32bsmip"
6701 LD="${LD-ld} -melf32bmipn32"
6704 LD="${LD-ld} -melf64bmip"
6708 case `/usr/bin/file conftest.$ac_objext` in
6724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6725 s390*-*linux*|sparc*-*linux*)
6726 # Find out which ABI we are using.
6727 echo 'int i;' > conftest.$ac_ext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729 (eval $ac_compile) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; then
6733 case `/usr/bin/file conftest.o` in
6736 x86_64-*kfreebsd*-gnu)
6737 LD="${LD-ld} -m elf_i386_fbsd"
6740 LD="${LD-ld} -m elf_i386"
6742 ppc64-*linux*|powerpc64-*linux*)
6743 LD="${LD-ld} -m elf32ppclinux"
6746 LD="${LD-ld} -m elf_s390"
6749 LD="${LD-ld} -m elf32_sparc"
6755 x86_64-*kfreebsd*-gnu)
6756 LD="${LD-ld} -m elf_x86_64_fbsd"
6759 LD="${LD-ld} -m elf_x86_64"
6761 ppc*-*linux*|powerpc*-*linux*)
6762 LD="${LD-ld} -m elf64ppc"
6765 LD="${LD-ld} -m elf64_s390"
6768 LD="${LD-ld} -m elf64_sparc"
6778 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6779 SAVE_CFLAGS="$CFLAGS"
6780 CFLAGS="$CFLAGS -belf"
6781 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6782 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6783 if test "${lt_cv_cc_needs_belf+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (ac_try="$ac_link"
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_link") 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest$ac_exeext &&
6824 $as_test_x conftest$ac_exeext; then
6825 lt_cv_cc_needs_belf=yes
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 lt_cv_cc_needs_belf=no
6833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6834 conftest$ac_exeext conftest.$ac_ext
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6842 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6844 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6846 CFLAGS="$SAVE_CFLAGS"
6850 # Find out which ABI we are using.
6851 echo 'int i;' > conftest.$ac_ext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; then
6857 case `/usr/bin/file conftest.o` in
6859 case $lt_cv_prog_gnu_ld in
6860 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6861 *) LD="${LD-ld} -64" ;;
6872 need_locks="$enable_libtool_lock"
6876 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6878 if test "${ac_cv_header_stdc+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 ac_cv_header_stdc=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_header_stdc=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 if test $ac_cv_header_stdc = yes; then
6928 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6929 cat >conftest.$ac_ext <<_ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6939 $EGREP "memchr" >/dev/null 2>&1; then
6942 ac_cv_header_stdc=no
6948 if test $ac_cv_header_stdc = yes; then
6949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960 $EGREP "free" >/dev/null 2>&1; then
6963 ac_cv_header_stdc=no
6969 if test $ac_cv_header_stdc = yes; then
6970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6971 if test "$cross_compiling" = yes; then
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6982 #if ((' ' & 0x0FF) == 0x020)
6983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986 # define ISLOWER(c) \
6987 (('a' <= (c) && (c) <= 'i') \
6988 || ('j' <= (c) && (c) <= 'r') \
6989 || ('s' <= (c) && (c) <= 'z'))
6990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6998 for (i = 0; i < 256; i++)
6999 if (XOR (islower (i), ISLOWER (i))
7000 || toupper (i) != TOUPPER (i))
7005 rm -f conftest$ac_exeext
7006 if { (ac_try="$ac_link"
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_link") 2>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7016 { (case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_try") 2>&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7027 echo "$as_me: program exited with status $ac_status" >&5
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_header_stdc=no
7034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7040 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7041 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7042 if test $ac_cv_header_stdc = yes; then
7044 cat >>confdefs.h <<\_ACEOF
7045 @%:@define STDC_HEADERS 1
7050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7061 inttypes.h stdint.h unistd.h
7063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7077 @%:@include <$ac_header>
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
7088 grep -v '^ *+' conftest.er1 >conftest.err
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.$ac_objext; then
7096 eval "$as_ac_Header=yes"
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7101 eval "$as_ac_Header=no"
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 ac_res=`eval echo '${'$as_ac_Header'}'`
7107 { echo "$as_me:$LINENO: result: $ac_res" >&5
7108 echo "${ECHO_T}$ac_res" >&6; }
7109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110 cat >>confdefs.h <<_ACEOF
7111 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 for ac_header in dlfcn.h
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_res=`eval echo '${'$as_ac_Header'}'`
7130 { echo "$as_me:$LINENO: result: $ac_res" >&5
7131 echo "${ECHO_T}$ac_res" >&6; }
7133 # Is the header compilable?
7134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7136 cat >conftest.$ac_ext <<_ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 $ac_includes_default
7143 @%:@include <$ac_header>
7145 rm -f conftest.$ac_objext
7146 if { (ac_try="$ac_compile"
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7154 grep -v '^ *+' conftest.er1 >conftest.err
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
7162 ac_header_compiler=yes
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_header_compiler=no
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172 echo "${ECHO_T}$ac_header_compiler" >&6; }
7174 # Is the header present?
7175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 @%:@include <$ac_header>
7185 if { (ac_try="$ac_cpp conftest.$ac_ext"
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } >/dev/null && {
7198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7201 ac_header_preproc=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_header_preproc=no
7209 rm -f conftest.err conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211 echo "${ECHO_T}$ac_header_preproc" >&6; }
7213 # So? What about this header?
7214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220 ac_header_preproc=yes
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236 @%:@@%:@ ------------------------------- @%:@@%:@
7237 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7238 @%:@@%:@ ------------------------------- @%:@@%:@
7240 ) | sed "s/^/$as_me: WARNING: /" >&2
7243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 eval "$as_ac_Header=\$ac_header_preproc"
7250 ac_res=`eval echo '${'$as_ac_Header'}'`
7251 { echo "$as_me:$LINENO: result: $ac_res" >&5
7252 echo "${ECHO_T}$ac_res" >&6; }
7255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7256 cat >>confdefs.h <<_ACEOF
7257 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7267 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7268 (test "X$CXX" != "Xg++"))) ; then
7270 ac_cpp='$CXXCPP $CPPFLAGS'
7271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7274 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7275 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7276 if test -z "$CXXCPP"; then
7277 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 # Double quotes because CXXCPP needs to be expanded
7281 for CXXCPP in "$CXX -E" "/lib/cpp"
7284 for ac_cxx_preproc_warn_flag in '' yes
7286 # Use a header file that comes with gcc, so configuring glibc
7287 # with a fresh cross-compiler works.
7288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289 # <limits.h> exists even on freestanding compilers.
7290 # On the NeXT, cc -E runs the code through the compiler's parser,
7291 # not just through cpp. "Syntax error" is here to catch this case.
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7299 @%:@ include <limits.h>
7301 @%:@ include <assert.h>
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } >/dev/null && {
7318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7319 test ! -s conftest.err
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 # Broken: fails on valid input.
7330 rm -f conftest.err conftest.$ac_ext
7332 # OK, works on sane cases. Now check whether nonexistent headers
7333 # can be detected and how.
7334 cat >conftest.$ac_ext <<_ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 @%:@include <ac_nonexistent.h>
7342 if { (ac_try="$ac_cpp conftest.$ac_ext"
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7350 grep -v '^ *+' conftest.er1 >conftest.err
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } >/dev/null && {
7355 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7356 test ! -s conftest.err
7358 # Broken: success on invalid input.
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 # Passes both tests.
7369 rm -f conftest.err conftest.$ac_ext
7372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373 rm -f conftest.err conftest.$ac_ext
7374 if $ac_preproc_ok; then
7379 ac_cv_prog_CXXCPP=$CXXCPP
7382 CXXCPP=$ac_cv_prog_CXXCPP
7384 ac_cv_prog_CXXCPP=$CXXCPP
7386 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7387 echo "${ECHO_T}$CXXCPP" >&6; }
7389 for ac_cxx_preproc_warn_flag in '' yes
7391 # Use a header file that comes with gcc, so configuring glibc
7392 # with a fresh cross-compiler works.
7393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394 # <limits.h> exists even on freestanding compilers.
7395 # On the NeXT, cc -E runs the code through the compiler's parser,
7396 # not just through cpp. "Syntax error" is here to catch this case.
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7404 @%:@ include <limits.h>
7406 @%:@ include <assert.h>
7410 if { (ac_try="$ac_cpp conftest.$ac_ext"
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } >/dev/null && {
7423 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7424 test ! -s conftest.err
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 # Broken: fails on valid input.
7435 rm -f conftest.err conftest.$ac_ext
7437 # OK, works on sane cases. Now check whether nonexistent headers
7438 # can be detected and how.
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 @%:@include <ac_nonexistent.h>
7447 if { (ac_try="$ac_cpp conftest.$ac_ext"
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } >/dev/null && {
7460 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7461 test ! -s conftest.err
7463 # Broken: success on invalid input.
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 # Passes both tests.
7474 rm -f conftest.err conftest.$ac_ext
7477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7478 rm -f conftest.err conftest.$ac_ext
7479 if $ac_preproc_ok; then
7482 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7483 See \`config.log' for more details." >&5
7484 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7485 See \`config.log' for more details." >&2;}
7486 { (exit 1); exit 1; }; }
7490 ac_cpp='$CXXCPP $CPPFLAGS'
7491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7499 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7500 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7502 if test -n "$ac_tool_prefix"; then
7503 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
7505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_F77+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 if test -n "$F77"; then
7513 ac_cv_prog_F77="$F77" # Let the user override the test.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 if test -n "$F77"; then
7534 { echo "$as_me:$LINENO: result: $F77" >&5
7535 echo "${ECHO_T}$F77" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7542 test -n "$F77" && break
7545 if test -z "$F77"; then
7547 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
7549 # Extract the first word of "$ac_prog", so it can be a program name with args.
7550 set dummy $ac_prog; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 if test -n "$ac_ct_F77"; then
7557 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_F77="$ac_prog"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7577 if test -n "$ac_ct_F77"; then
7578 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7579 echo "${ECHO_T}$ac_ct_F77" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 test -n "$ac_ct_F77" && break
7589 if test "x$ac_ct_F77" = x; then
7592 case $cross_compiling:$ac_tool_warned in
7594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7595 whose name does not start with the host triplet. If you think this
7596 configuration is useful to you, please write to autoconf@gnu.org." >&5
7597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7598 whose name does not start with the host triplet. If you think this
7599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7600 ac_tool_warned=yes ;;
7607 # Provide some information about the compiler.
7608 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7609 ac_compiler=`set X $ac_compile; echo $2`
7610 { (ac_try="$ac_compiler --version >&5"
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_compiler --version >&5") 2>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }
7620 { (ac_try="$ac_compiler -v >&5"
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compiler -v >&5") 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }
7630 { (ac_try="$ac_compiler -V >&5"
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compiler -V >&5") 2>&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }
7642 # If we don't use `.F' as extension, the preprocessor is not run on the
7643 # input file. (Note that this only needs to work for GNU compilers.)
7646 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7647 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7648 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_compile") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_f77_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest.$ac_objext; then
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7688 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7689 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7691 ac_test_FFLAGS=${FFLAGS+set}
7692 ac_save_FFLAGS=$FFLAGS
7694 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7695 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7696 if test "${ac_cv_prog_f77_g+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 cat >conftest.$ac_ext <<_ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_f77_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 ac_cv_prog_f77_g=yes
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7734 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7735 if test "$ac_test_FFLAGS" = set; then
7736 FFLAGS=$ac_save_FFLAGS
7737 elif test $ac_cv_prog_f77_g = yes; then
7738 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7744 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7751 G77=`test $ac_compiler_gnu = yes && echo yes`
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7762 # find the maximum length of command line arguments
7763 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 # On DJGPP, this test can blow up pretty badly due to problems in libc
7774 # (any single argument exceeding 2000 bytes causes a buffer overrun
7775 # during glob expansion). Even if it were fixed, the result of this
7776 # check would be larger than it should be.
7777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7781 # Under GNU Hurd, this test is not required because there is
7782 # no limit to the length of command line arguments.
7783 # Libtool will interpret -1 as no limit whatsoever
7784 lt_cv_sys_max_cmd_len=-1;
7788 # On Win9x/ME, this test blows up -- it succeeds, but takes
7789 # about 5 minutes as the teststring grows exponentially.
7790 # Worse, since 9x/ME are not pre-emptively multitasking,
7791 # you end up with a "frozen" computer, even though with patience
7792 # the test eventually succeeds (with a max line length of 256k).
7793 # Instead, let's just punt: use the minimum linelength reported by
7794 # all of the supported platforms: 8192 (on NT/2K/XP).
7795 lt_cv_sys_max_cmd_len=8192;
7799 # On AmigaOS with pdksh, this test takes hours, literally.
7800 # So we just punt and use a minimum line length of 8192.
7801 lt_cv_sys_max_cmd_len=8192;
7804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7805 # This has been around since 386BSD, at least. Likely further.
7806 if test -x /sbin/sysctl; then
7807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7808 elif test -x /usr/sbin/sysctl; then
7809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7813 # And add a safety zone
7814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7820 lt_cv_sys_max_cmd_len=196608
7824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7826 # nice to cause kernel panics so lets avoid the loop below.
7827 # First set a reasonable default.
7828 lt_cv_sys_max_cmd_len=16384
7830 if test -x /sbin/sysconfig; then
7831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7837 lt_cv_sys_max_cmd_len=102400
7839 sysv5* | sco5v6* | sysv4.2uw2*)
7840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7841 if test -n "$kargmax"; then
7842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7844 lt_cv_sys_max_cmd_len=32768
7848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7849 if test -n "$lt_cv_sys_max_cmd_len"; then
7850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7853 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7854 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7855 = "XX$teststring") >/dev/null 2>&1 &&
7856 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7857 lt_cv_sys_max_cmd_len=$new_result &&
7858 test $i != 17 # 1/2 MB should be enough
7861 teststring=$teststring$teststring
7864 # Add a significant safety factor because C++ compilers can tack on massive
7865 # amounts of additional arguments before passing them to the linker.
7866 # It appears as though 1/2 is a usable value.
7867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7874 if test -n $lt_cv_sys_max_cmd_len ; then
7875 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7876 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7878 { echo "$as_me:$LINENO: result: none" >&5
7879 echo "${ECHO_T}none" >&6; }
7886 # Check for command to grab the raw symbol name followed by C symbol from nm.
7887 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7888 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7889 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 # These are sane defaults that work on at least a few old systems.
7894 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7896 # Character class describing NM global symbol codes.
7897 symcode='[BCDEGRST]'
7899 # Regexp to match symbols that can be accessed directly from C.
7900 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7902 # Transform an extracted symbol line into a proper C declaration
7903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7905 # Transform an extracted symbol line into symbol name and symbol address
7906 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'"
7908 # Define system-specific variables.
7913 cygwin* | mingw* | pw32*)
7914 symcode='[ABCDGISTW]'
7916 hpux*) # Its linker distinguishes data from code symbols
7917 if test "$host_cpu" = ia64; then
7918 symcode='[ABCDEGRST]'
7920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7921 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'"
7923 linux* | k*bsd*-gnu)
7924 if test "$host_cpu" = ia64; then
7925 symcode='[ABCDGIRSTW]'
7926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7927 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'"
7931 symcode='[BCDEGRST]'
7934 symcode='[BCDEGQRST]'
7945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7953 # Handle CRLF in mingw tool chain
7957 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7961 # If we're using GNU nm, then use its standard symbol codes.
7962 case `$NM -V 2>&1` in
7963 *GNU* | *'with BFD'*)
7964 symcode='[ABCDGIRSTW]' ;;
7967 # Try without a prefix undercore, then with it.
7968 for ac_symprfx in "" "_"; do
7970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7971 symxfrm="\\1 $ac_symprfx\\2 \\2"
7973 # Write the raw and C identifiers.
7974 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7976 # Check to see that the pipe works correctly.
7980 cat > conftest.$ac_ext <<EOF
7985 void nm_test_func(){}
7989 int main(){nm_test_var='a';nm_test_func();return(0);}
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 (eval $ac_compile) 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; then
7997 # Now try to grab the symbols.
7999 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8000 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && test -s "$nlist"; then
8004 # Try sorting and uniquifying the output.
8005 if sort "$nlist" | uniq > "$nlist"T; then
8006 mv -f "$nlist"T "$nlist"
8011 # Make sure that we snagged all the symbols we need.
8012 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8013 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8014 cat <<EOF > conftest.$ac_ext
8020 # Now generate the symbol file.
8021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8023 cat <<EOF >> conftest.$ac_ext
8024 #if defined (__STDC__) && __STDC__
8025 # define lt_ptr_t void *
8027 # define lt_ptr_t char *
8031 /* The mapping between symbol names and symbols. */
8036 lt_preloaded_symbols[] =
8039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8040 cat <<\EOF >> conftest.$ac_ext
8048 # Now try linking the two files.
8049 mv conftest.$ac_objext conftstm.$ac_objext
8050 lt_save_LIBS="$LIBS"
8051 lt_save_CFLAGS="$CFLAGS"
8052 LIBS="conftstm.$ac_objext"
8053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055 (eval $ac_link) 2>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8061 LIBS="$lt_save_LIBS"
8062 CFLAGS="$lt_save_CFLAGS"
8064 echo "cannot find nm_test_func in $nlist" >&5
8067 echo "cannot find nm_test_var in $nlist" >&5
8070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8073 echo "$progname: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 rm -f conftest* conftst*
8078 # Do not use the global_symbol_pipe unless it works.
8079 if test "$pipe_works" = yes; then
8082 lt_cv_sys_global_symbol_pipe=
8088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8089 lt_cv_sys_global_symbol_to_cdecl=
8091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8092 { echo "$as_me:$LINENO: result: failed" >&5
8093 echo "${ECHO_T}failed" >&6; }
8095 { echo "$as_me:$LINENO: result: ok" >&5
8096 echo "${ECHO_T}ok" >&6; }
8099 { echo "$as_me:$LINENO: checking for objdir" >&5
8100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8101 if test "${lt_cv_objdir+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 rm -f .libs 2>/dev/null
8105 mkdir .libs 2>/dev/null
8106 if test -d .libs; then
8109 # MS-DOS does not allow filenames that begin with a dot.
8112 rmdir .libs 2>/dev/null
8114 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8115 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8116 objdir=$lt_cv_objdir
8124 # AIX sometimes has problems with the GCC collect2 program. For some
8125 # reason, if we set the COLLECT_NAMES environment variable, the problems
8126 # vanish in a puff of smoke.
8127 if test "X${COLLECT_NAMES+set}" != Xset; then
8129 export COLLECT_NAMES
8134 # Sed substitution that helps us do robust quoting. It backslashifies
8135 # metacharacters that are still active within double-quoted strings.
8136 Xsed='sed -e 1s/^X//'
8137 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8139 # Same as above, but do not quote variable references.
8140 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8142 # Sed substitution to delay expansion of an escaped shell variable in a
8143 # double_quote_subst'ed string.
8144 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8146 # Sed substitution to avoid accidental globbing in evaled expressions
8147 no_glob_subst='s/\*/\\\*/g'
8153 default_ofile=libtool
8154 can_build_shared=yes
8156 # All known linkers require a `.a' archive for static linking (except MSVC,
8157 # which needs '.lib').
8159 ltmain="$ac_aux_dir/ltmain.sh"
8160 ofile="$default_ofile"
8161 with_gnu_ld="$lt_cv_prog_gnu_ld"
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}ar; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_prog_AR+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 if test -n "$AR"; then
8172 ac_cv_prog_AR="$AR" # Let the user override the test.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_AR="${ac_tool_prefix}ar"
8182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 if test -n "$AR"; then
8193 { echo "$as_me:$LINENO: result: $AR" >&5
8194 echo "${ECHO_T}$AR" >&6; }
8196 { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8202 if test -z "$ac_cv_prog_AR"; then
8204 # Extract the first word of "ar", so it can be a program name with args.
8205 set dummy ar; ac_word=$2
8206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 if test -n "$ac_ct_AR"; then
8212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_ac_ct_AR="ar"
8222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8232 if test -n "$ac_ct_AR"; then
8233 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8234 echo "${ECHO_T}$ac_ct_AR" >&6; }
8236 { echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6; }
8240 if test "x$ac_ct_AR" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8246 whose name does not start with the host triplet. If you think this
8247 configuration is useful to you, please write to autoconf@gnu.org." >&5
8248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8249 whose name does not start with the host triplet. If you think this
8250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8251 ac_tool_warned=yes ;;
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264 if test "${ac_cv_prog_RANLIB+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 if test -n "$RANLIB"; then
8268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 RANLIB=$ac_cv_prog_RANLIB
8288 if test -n "$RANLIB"; then
8289 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8290 echo "${ECHO_T}$RANLIB" >&6; }
8292 { echo "$as_me:$LINENO: result: no" >&5
8293 echo "${ECHO_T}no" >&6; }
8298 if test -z "$ac_cv_prog_RANLIB"; then
8299 ac_ct_RANLIB=$RANLIB
8300 # Extract the first word of "ranlib", so it can be a program name with args.
8301 set dummy ranlib; ac_word=$2
8302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 if test -n "$ac_ct_RANLIB"; then
8308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_prog_ac_ct_RANLIB="ranlib"
8318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8328 if test -n "$ac_ct_RANLIB"; then
8329 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8330 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8332 { echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6; }
8336 if test "x$ac_ct_RANLIB" = x; then
8339 case $cross_compiling:$ac_tool_warned in
8341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8342 whose name does not start with the host triplet. If you think this
8343 configuration is useful to you, please write to autoconf@gnu.org." >&5
8344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8345 whose name does not start with the host triplet. If you think this
8346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8347 ac_tool_warned=yes ;;
8349 RANLIB=$ac_ct_RANLIB
8352 RANLIB="$ac_cv_prog_RANLIB"
8355 if test -n "$ac_tool_prefix"; then
8356 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8357 set dummy ${ac_tool_prefix}strip; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_STRIP+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 if test -n "$STRIP"; then
8364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 STRIP=$ac_cv_prog_STRIP
8384 if test -n "$STRIP"; then
8385 { echo "$as_me:$LINENO: result: $STRIP" >&5
8386 echo "${ECHO_T}$STRIP" >&6; }
8388 { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8394 if test -z "$ac_cv_prog_STRIP"; then
8396 # Extract the first word of "strip", so it can be a program name with args.
8397 set dummy strip; ac_word=$2
8398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 if test -n "$ac_ct_STRIP"; then
8404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_prog_ac_ct_STRIP="strip"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8424 if test -n "$ac_ct_STRIP"; then
8425 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8426 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8428 { echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6; }
8432 if test "x$ac_ct_STRIP" = x; then
8435 case $cross_compiling:$ac_tool_warned in
8437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet. If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&5
8440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet. If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8443 ac_tool_warned=yes ;;
8448 STRIP="$ac_cv_prog_STRIP"
8453 old_CFLAGS="$CFLAGS"
8455 # Set sane defaults for various variables
8456 test -z "$AR" && AR=ar
8457 test -z "$AR_FLAGS" && AR_FLAGS=cru
8458 test -z "$AS" && AS=as
8459 test -z "$CC" && CC=cc
8460 test -z "$LTCC" && LTCC=$CC
8461 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8462 test -z "$DLLTOOL" && DLLTOOL=dlltool
8463 test -z "$LD" && LD=ld
8464 test -z "$LN_S" && LN_S="ln -s"
8465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8466 test -z "$NM" && NM=nm
8467 test -z "$SED" && SED=sed
8468 test -z "$OBJDUMP" && OBJDUMP=objdump
8469 test -z "$RANLIB" && RANLIB=:
8470 test -z "$STRIP" && STRIP=:
8471 test -z "$ac_objext" && ac_objext=o
8473 # Determine commands to create old-style static archives.
8474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8475 old_postinstall_cmds='chmod 644 $oldlib'
8476 old_postuninstall_cmds=
8478 if test -n "$RANLIB"; then
8481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8487 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8490 for cc_temp in $compiler""; do
8492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8501 # Only perform the check for file, if the check method requires it
8502 case $deplibs_check_method in
8504 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8505 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8506 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8515 lt_save_MAGIC_CMD="$MAGIC_CMD"
8516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8518 for ac_dir in $ac_dummy; do
8520 test -z "$ac_dir" && ac_dir=.
8521 if test -f $ac_dir/${ac_tool_prefix}file; then
8522 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8523 if test -n "$file_magic_test_file"; then
8524 case $deplibs_check_method in
8526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8529 $EGREP "$file_magic_regex" > /dev/null; then
8534 *** Warning: the command libtool uses to detect shared libraries,
8535 *** $file_magic_cmd, produces output that libtool cannot recognize.
8536 *** The result is that libtool may fail to recognize shared libraries
8537 *** as such. This will affect the creation of libtool libraries that
8538 *** depend on shared libraries, but programs linked with such libtool
8539 *** libraries will work regardless of this problem. Nevertheless, you
8540 *** may want to report the problem to your system manager and/or to
8541 *** bug-libtool@gnu.org
8551 MAGIC_CMD="$lt_save_MAGIC_CMD"
8556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8557 if test -n "$MAGIC_CMD"; then
8558 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8559 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8561 { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8565 if test -z "$lt_cv_path_MAGIC_CMD"; then
8566 if test -n "$ac_tool_prefix"; then
8567 { echo "$as_me:$LINENO: checking for file" >&5
8568 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8577 lt_save_MAGIC_CMD="$MAGIC_CMD"
8578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8580 for ac_dir in $ac_dummy; do
8582 test -z "$ac_dir" && ac_dir=.
8583 if test -f $ac_dir/file; then
8584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8585 if test -n "$file_magic_test_file"; then
8586 case $deplibs_check_method in
8588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8591 $EGREP "$file_magic_regex" > /dev/null; then
8596 *** Warning: the command libtool uses to detect shared libraries,
8597 *** $file_magic_cmd, produces output that libtool cannot recognize.
8598 *** The result is that libtool may fail to recognize shared libraries
8599 *** as such. This will affect the creation of libtool libraries that
8600 *** depend on shared libraries, but programs linked with such libtool
8601 *** libraries will work regardless of this problem. Nevertheless, you
8602 *** may want to report the problem to your system manager and/or to
8603 *** bug-libtool@gnu.org
8613 MAGIC_CMD="$lt_save_MAGIC_CMD"
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if test -n "$MAGIC_CMD"; then
8620 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8621 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8623 { echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6; }
8639 # Check whether --enable-libtool-lock was given.
8640 if test "${enable_libtool_lock+set}" = set; then
8641 enableval=$enable_libtool_lock;
8644 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8647 # Check whether --with-pic was given.
8648 if test "${with_pic+set}" = set; then
8649 withval=$with_pic; pic_mode="$withval"
8654 test -z "$pic_mode" && pic_mode=default
8656 # Use C for the default configuration in the libtool script
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8666 # Source file extension for C test sources.
8669 # Object file extension for compiled C test sources.
8673 # Code to be used in simple compile tests
8674 lt_simple_compile_test_code="int some_variable = 0;"
8676 # Code to be used in simple link tests
8677 lt_simple_link_test_code='int main(){return(0);}'
8680 # If no C compiler was specified, use CC.
8683 # If no C compiler flags were specified, use CFLAGS.
8684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8686 # Allow CC to be a program name with arguments.
8690 # save warnings/boilerplate of simple test code
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694 _lt_compiler_boilerplate=`cat conftest.err`
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_linker_boilerplate=`cat conftest.err`
8705 ## There is no encapsulation within the following macros, do not change
8706 ## the running order or otherwise move them around unless you know exactly
8707 ## what you are doing...
8709 lt_prog_compiler_no_builtin_flag=
8711 if test "$GCC" = yes; then
8712 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8715 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8716 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8717 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 lt_cv_prog_compiler_rtti_exceptions=no
8721 ac_outfile=conftest.$ac_objext
8722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8723 lt_compiler_flag="-fno-rtti -fno-exceptions"
8724 # Insert the option either (1) after the last *FLAGS variable, or
8725 # (2) before a word containing "conftest.", or (3) at the end.
8726 # Note that $ac_compile itself does not contain backslashes and begins
8727 # with a dollar sign (not a hyphen), so the echo should work correctly.
8728 # The option is referenced via a variable to avoid confusing sed.
8729 lt_compile=`echo "$ac_compile" | $SED \
8730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8732 -e 's:$: $lt_compiler_flag:'`
8733 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8734 (eval "$lt_compile" 2>conftest.err)
8736 cat conftest.err >&5
8737 echo "$as_me:__oline__: \$? = $ac_status" >&5
8738 if (exit $ac_status) && test -s "$ac_outfile"; then
8739 # The compiler can only warn and ignore the option if not recognized
8740 # So say no if there are warnings other than the usual output.
8741 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8744 lt_cv_prog_compiler_rtti_exceptions=yes
8750 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8751 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8753 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8754 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8761 lt_prog_compiler_wl=
8762 lt_prog_compiler_pic=
8763 lt_prog_compiler_static=
8765 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8768 if test "$GCC" = yes; then
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_static='-static'
8774 # All AIX code is PIC.
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8782 # FIXME: we need at least 68020 code to build shared libraries, but
8783 # adding the `-m68020' flag to GCC prevents building anything better,
8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8788 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8789 # PIC is the default for these OSes.
8792 mingw* | cygwin* | pw32* | os2*)
8793 # This hack is so that the source file can tell whether it is being
8794 # built for inclusion in a dll (and should export symbols for example).
8795 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8796 # (--disable-auto-import) libraries
8797 lt_prog_compiler_pic='-DDLL_EXPORT'
8800 darwin* | rhapsody*)
8801 # PIC is the default on this platform
8802 # Common symbols not allowed in MH_DYLIB files
8803 lt_prog_compiler_pic='-fno-common'
8807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8808 # Instead, we relocate shared libraries at runtime.
8812 # Just because we use GCC doesn't mean we suddenly get shared libraries
8813 # on systems that don't support them.
8814 lt_prog_compiler_can_build_shared=no
8819 if test -d /usr/nec; then
8820 lt_prog_compiler_pic=-Kconform_pic
8825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8832 lt_prog_compiler_pic='-fPIC'
8838 lt_prog_compiler_pic='-fPIC'
8842 # PORTME Check for flag to pass linker flags through the system compiler.
8845 lt_prog_compiler_wl='-Wl,'
8846 if test "$host_cpu" = ia64; then
8847 # AIX 5 now supports IA64 processor
8848 lt_prog_compiler_static='-Bstatic'
8850 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8854 # PIC is the default on this platform
8855 # Common symbols not allowed in MH_DYLIB files
8856 case $cc_basename in
8858 lt_prog_compiler_pic='-qnocommon'
8859 lt_prog_compiler_wl='-Wl,'
8864 mingw* | cygwin* | pw32* | os2*)
8865 # This hack is so that the source file can tell whether it is being
8866 # built for inclusion in a dll (and should export symbols for example).
8867 lt_prog_compiler_pic='-DDLL_EXPORT'
8870 hpux9* | hpux10* | hpux11*)
8871 lt_prog_compiler_wl='-Wl,'
8872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8879 lt_prog_compiler_pic='+Z'
8882 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8883 lt_prog_compiler_static='${wl}-a ${wl}archive'
8886 irix5* | irix6* | nonstopux*)
8887 lt_prog_compiler_wl='-Wl,'
8888 # PIC (with -KPIC) is the default.
8889 lt_prog_compiler_static='-non_shared'
8893 lt_prog_compiler_pic='-KPIC'
8894 lt_prog_compiler_static='-Bstatic'
8897 linux* | k*bsd*-gnu)
8898 case $cc_basename in
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-static'
8904 pgcc* | pgf77* | pgf90* | pgf95*)
8905 # Portland Group compilers (*not* the Pentium gcc compiler,
8906 # which looks to be a dead project)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-fpic'
8909 lt_prog_compiler_static='-Bstatic'
8912 lt_prog_compiler_wl='-Wl,'
8913 # All Alpha code is PIC.
8914 lt_prog_compiler_static='-non_shared'
8917 case `$CC -V 2>&1 | sed 5q` in
8920 lt_prog_compiler_pic='-KPIC'
8921 lt_prog_compiler_static='-Bstatic'
8922 lt_prog_compiler_wl='-Wl,'
8925 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 lt_prog_compiler_wl=''
8935 osf3* | osf4* | osf5*)
8936 lt_prog_compiler_wl='-Wl,'
8937 # All OSF/1 code is PIC.
8938 lt_prog_compiler_static='-non_shared'
8942 lt_prog_compiler_static='-non_shared'
8946 lt_prog_compiler_pic='-KPIC'
8947 lt_prog_compiler_static='-Bstatic'
8948 case $cc_basename in
8950 lt_prog_compiler_wl='-Qoption ld ';;
8952 lt_prog_compiler_wl='-Wl,';;
8957 lt_prog_compiler_wl='-Qoption ld '
8958 lt_prog_compiler_pic='-PIC'
8959 lt_prog_compiler_static='-Bstatic'
8962 sysv4 | sysv4.2uw2* | sysv4.3*)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8969 if test -d /usr/nec ;then
8970 lt_prog_compiler_pic='-Kconform_pic'
8971 lt_prog_compiler_static='-Bstatic'
8975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_pic='-KPIC'
8978 lt_prog_compiler_static='-Bstatic'
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_can_build_shared=no
8987 lt_prog_compiler_pic='-pic'
8988 lt_prog_compiler_static='-Bstatic'
8992 lt_prog_compiler_can_build_shared=no
8997 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8998 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9001 # Check to make sure the PIC flag actually works.
9003 if test -n "$lt_prog_compiler_pic"; then
9005 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9006 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9007 if test "${lt_prog_compiler_pic_works+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 lt_prog_compiler_pic_works=no
9011 ac_outfile=conftest.$ac_objext
9012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9014 # Insert the option either (1) after the last *FLAGS variable, or
9015 # (2) before a word containing "conftest.", or (3) at the end.
9016 # Note that $ac_compile itself does not contain backslashes and begins
9017 # with a dollar sign (not a hyphen), so the echo should work correctly.
9018 # The option is referenced via a variable to avoid confusing sed.
9019 lt_compile=`echo "$ac_compile" | $SED \
9020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9022 -e 's:$: $lt_compiler_flag:'`
9023 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9024 (eval "$lt_compile" 2>conftest.err)
9026 cat conftest.err >&5
9027 echo "$as_me:__oline__: \$? = $ac_status" >&5
9028 if (exit $ac_status) && test -s "$ac_outfile"; then
9029 # The compiler can only warn and ignore the option if not recognized
9030 # So say no if there are warnings other than the usual output.
9031 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9034 lt_prog_compiler_pic_works=yes
9040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9041 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9043 if test x"$lt_prog_compiler_pic_works" = xyes; then
9044 case $lt_prog_compiler_pic in
9046 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9049 lt_prog_compiler_pic=
9050 lt_prog_compiler_can_build_shared=no
9055 # For platforms which do not support PIC, -DPIC is meaningless:
9057 lt_prog_compiler_pic=
9060 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9065 # Check to make sure the static flag actually works.
9067 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9068 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9069 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9070 if test "${lt_prog_compiler_static_works+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 lt_prog_compiler_static_works=no
9074 save_LDFLAGS="$LDFLAGS"
9075 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9076 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078 # The linker can only warn and ignore the option if not recognized
9079 # So say no if there are warnings
9080 if test -s conftest.err; then
9081 # Append any errors to the config.log.
9082 cat conftest.err 1>&5
9083 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_prog_compiler_static_works=yes
9089 lt_prog_compiler_static_works=yes
9093 LDFLAGS="$save_LDFLAGS"
9096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9097 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9099 if test x"$lt_prog_compiler_static_works" = xyes; then
9102 lt_prog_compiler_static=
9106 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9107 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9108 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 lt_cv_prog_compiler_c_o=no
9112 $rm -r conftest 2>/dev/null
9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118 lt_compiler_flag="-o out/conftest2.$ac_objext"
9119 # Insert the option either (1) after the last *FLAGS variable, or
9120 # (2) before a word containing "conftest.", or (3) at the end.
9121 # Note that $ac_compile itself does not contain backslashes and begins
9122 # with a dollar sign (not a hyphen), so the echo should work correctly.
9123 lt_compile=`echo "$ac_compile" | $SED \
9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126 -e 's:$: $lt_compiler_flag:'`
9127 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9128 (eval "$lt_compile" 2>out/conftest.err)
9130 cat out/conftest.err >&5
9131 echo "$as_me:__oline__: \$? = $ac_status" >&5
9132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9134 # The compiler can only warn and ignore the option if not recognized
9135 # So say no if there are warnings
9136 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9139 lt_cv_prog_compiler_c_o=yes
9144 # SGI C++ compiler will create directory out/ii_files/ for
9145 # template instantiation
9146 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9147 $rm out/* && rmdir out
9153 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9154 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9157 hard_links="nottested"
9158 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9159 # do not overwrite the value of need_locks provided by the user
9160 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9161 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9166 ln conftest.a conftest.b 2>&5 || hard_links=no
9167 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9168 { echo "$as_me:$LINENO: result: $hard_links" >&5
9169 echo "${ECHO_T}$hard_links" >&6; }
9170 if test "$hard_links" = no; then
9171 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9172 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9179 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9180 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9183 allow_undefined_flag=
9184 enable_shared_with_static_runtimes=no
9186 archive_expsym_cmds=
9187 old_archive_From_new_cmds=
9188 old_archive_from_expsyms_cmds=
9189 export_dynamic_flag_spec=
9190 whole_archive_flag_spec=
9191 thread_safe_flag_spec=
9192 hardcode_libdir_flag_spec=
9193 hardcode_libdir_flag_spec_ld=
9194 hardcode_libdir_separator=
9197 hardcode_shlibpath_var=unsupported
9198 link_all_deplibs=unknown
9199 hardcode_automatic=no
9202 always_export_symbols=no
9203 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9204 # include_expsyms should be a list of space-separated symbols to be *always*
9205 # included in the symbol list
9207 # exclude_expsyms can be an extended regexp of symbols to exclude
9208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9210 # as well as any symbol that contains `d'.
9211 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9213 # platforms (ab)use it in PIC code, but their linkers get confused if
9214 # the symbol is explicitly referenced. Since portable code cannot
9215 # rely on this symbol name, it's probably fine to never include it in
9216 # preloaded symbol tables.
9217 extract_expsyms_cmds=
9218 # Just being paranoid about ensuring that cc_basename is set.
9219 for cc_temp in $compiler""; do
9221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9227 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9230 cygwin* | mingw* | pw32*)
9231 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9232 # When not using gcc, we currently assume that we are using
9233 # Microsoft Visual C++.
9234 if test "$GCC" != yes; then
9239 # we just hope/assume this is gcc and not c89 (= MSVC++)
9248 if test "$with_gnu_ld" = yes; then
9249 # If archive_cmds runs LD, not CC, wlarc should be empty
9252 # Set some defaults for GNU ld with shared library support. These
9253 # are reset later if shared libraries are not supported. Putting them
9254 # here allows them to be overridden if necessary.
9255 runpath_var=LD_RUN_PATH
9256 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9257 export_dynamic_flag_spec='${wl}--export-dynamic'
9258 # ancient GNU ld didn't support --whole-archive et. al.
9259 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9262 whole_archive_flag_spec=
9264 supports_anon_versioning=no
9265 case `$LD -v 2>/dev/null` in
9266 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9269 *\ 2.11.*) ;; # other 2.11 versions
9270 *) supports_anon_versioning=yes ;;
9273 # See if GNU ld supports shared libraries.
9275 aix3* | aix4* | aix5*)
9276 # On AIX/PPC, the GNU linker is very broken
9277 if test "$host_cpu" != ia64; then
9281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9282 *** to be unable to reliably create shared libraries on AIX.
9283 *** Therefore, libtool is disabling shared libraries support. If you
9284 *** really care for shared libraries, you may want to modify your PATH
9285 *** so that a non-GNU linker is found, and then restart.
9292 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)'
9293 hardcode_libdir_flag_spec='-L$libdir'
9294 hardcode_minus_L=yes
9296 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9297 # that the semantics of dynamic libraries on AmigaOS, at least up
9298 # to version 4, is to share data among multiple programs linked
9299 # with the same dynamic library. Since this doesn't match the
9300 # behavior of shared libraries on other platforms, we can't use
9306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9307 allow_undefined_flag=unsupported
9308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9309 # support --undefined. This deserves some investigation. FIXME
9310 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 cygwin* | mingw* | pw32*)
9317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9318 # as there is no search path for DLLs.
9319 hardcode_libdir_flag_spec='-L$libdir'
9320 allow_undefined_flag=unsupported
9321 always_export_symbols=no
9322 enable_shared_with_static_runtimes=yes
9323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327 # If the export-symbols file already is a .def file (1st line
9328 # is EXPORTS), use it as is; otherwise, prepend...
9329 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9330 cp $export_symbols $output_objdir/$soname.def;
9332 echo EXPORTS > $output_objdir/$soname.def;
9333 cat $export_symbols >> $output_objdir/$soname.def;
9335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9343 hardcode_shlibpath_var=no
9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec='${wl}-E'
9346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9347 # Instead, shared libraries are loaded at an image base (0x10000000 by
9348 # default) and relocated if they conflict, which is a slow very memory
9349 # consuming and fragmenting process. To avoid this, we pick a random,
9350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9353 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'
9356 gnu* | linux* | k*bsd*-gnu)
9357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9359 case $cc_basename,$host_cpu in
9360 pgcc*) # Portland Group C compiler
9361 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'
9362 tmp_addflag=' $pic_flag'
9364 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9365 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'
9366 tmp_addflag=' $pic_flag -Mnomain' ;;
9367 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9368 tmp_addflag=' -i_dynamic' ;;
9369 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9370 tmp_addflag=' -i_dynamic -nofor_main' ;;
9371 ifc* | ifort*) # Intel Fortran compiler
9372 tmp_addflag=' -nofor_main' ;;
9374 case `$CC -V 2>&1 | sed 5q` in
9375 *Sun\ C*) # Sun C 5.9
9376 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9377 tmp_sharedflag='-G' ;;
9378 *Sun\ F*) # Sun Fortran 8.3
9379 tmp_sharedflag='-G' ;;
9381 tmp_sharedflag='-shared' ;;
9383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385 if test $supports_anon_versioning = yes; then
9386 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9388 $echo "local: *; };" >> $output_objdir/$libname.ver~
9389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9397 netbsd* | netbsdelf*-gnu)
9398 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9399 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9408 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9412 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9413 *** create shared libraries on Solaris systems. Therefore, libtool
9414 *** is disabling shared libraries support. We urge you to upgrade GNU
9415 *** binutils to release 2.9.1 or newer. Another option is to modify
9416 *** your PATH or compiler configuration so that the native linker is
9417 *** used, and then restart.
9420 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9429 case `$LD -v 2>&1` in
9430 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9434 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9435 *** reliably create shared libraries on SCO systems. Therefore, libtool
9436 *** is disabling shared libraries support. We urge you to upgrade GNU
9437 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9438 *** your PATH or compiler configuration so that the native linker is
9439 *** used, and then restart.
9444 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9445 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9456 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_shlibpath_var=no
9463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472 if test "$ld_shlibs" = no; then
9474 hardcode_libdir_flag_spec=
9475 export_dynamic_flag_spec=
9476 whole_archive_flag_spec=
9479 # PORTME fill in a description of your system's linker (not GNU ld)
9482 allow_undefined_flag=unsupported
9483 always_export_symbols=yes
9484 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'
9485 # Note: this linker hardcodes the directories in LIBPATH if there
9486 # are no directories specified by -L.
9487 hardcode_minus_L=yes
9488 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9489 # Neither direct hardcoding nor static linking is supported with a
9491 hardcode_direct=unsupported
9496 if test "$host_cpu" = ia64; then
9497 # On IA64, the linker does run time linking by default, so we don't
9498 # have to do anything special.
9499 aix_use_runtimelinking=no
9500 exp_sym_flag='-Bexport'
9503 # If we're using GNU nm, then we don't want the "-C" option.
9504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9505 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9506 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'
9508 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'
9510 aix_use_runtimelinking=no
9512 # Test if we are trying to use run time linking or normal
9513 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9514 # need to do runtime linking.
9515 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9516 for ld_flag in $LDFLAGS; do
9517 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9518 aix_use_runtimelinking=yes
9525 exp_sym_flag='-bexport'
9526 no_entry_flag='-bnoentry'
9529 # When large executables or shared objects are built, AIX ld can
9530 # have problems creating the table of contents. If linking a library
9531 # or program results in "error TOC overflow" add -mminimal-toc to
9532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9537 hardcode_libdir_separator=':'
9538 link_all_deplibs=yes
9540 if test "$GCC" = yes; then
9541 case $host_os in aix4.[012]|aix4.[012].*)
9542 # We only want to do this on AIX 4.2 and lower, the check
9543 # below for broken collect2 doesn't work under 4.3+
9544 collect2name=`${CC} -print-prog-name=collect2`
9545 if test -f "$collect2name" && \
9546 strings "$collect2name" | grep resolve_lib_name >/dev/null
9548 # We have reworked collect2
9551 # We have old collect2
9552 hardcode_direct=unsupported
9553 # It fails to find uninstalled libraries when the uninstalled
9554 # path is not listed in the libpath. Setting hardcode_minus_L
9555 # to unsupported forces relinking
9556 hardcode_minus_L=yes
9557 hardcode_libdir_flag_spec='-L$libdir'
9558 hardcode_libdir_separator=
9562 shared_flag='-shared'
9563 if test "$aix_use_runtimelinking" = yes; then
9564 shared_flag="$shared_flag "'${wl}-G'
9568 if test "$host_cpu" = ia64; then
9569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9570 # chokes on -Wl,-G. The following line is correct:
9573 if test "$aix_use_runtimelinking" = yes; then
9574 shared_flag='${wl}-G'
9576 shared_flag='${wl}-bM:SRE'
9581 # It seems that -bexpall does not export symbols beginning with
9582 # underscore (_), so it is better to generate a list of symbols to export.
9583 always_export_symbols=yes
9584 if test "$aix_use_runtimelinking" = yes; then
9585 # Warning - without using the other runtime loading flags (-brtl),
9586 # -berok will link without error, but may produce a broken library.
9587 allow_undefined_flag='-berok'
9588 # Determine the default libpath from the value encoded in an empty executable.
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (ac_try="$ac_link"
9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608 *) ac_try_echo=$ac_try;;
9610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9611 (eval "$ac_link") 2>conftest.er1
9613 grep -v '^ *+' conftest.er1 >conftest.err
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && {
9618 test -z "$ac_c_werror_flag" ||
9619 test ! -s conftest.err
9620 } && test -s conftest$ac_exeext &&
9621 $as_test_x conftest$ac_exeext; then
9623 lt_aix_libpath_sed='
9624 /Import File Strings/,/^$/ {
9630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631 # Check for a 64-bit object if we didn't find anything.
9632 if test -z "$aix_libpath"; then
9633 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9643 conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9647 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"
9649 if test "$host_cpu" = ia64; then
9650 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9651 allow_undefined_flag="-z nodefs"
9652 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"
9654 # Determine the default libpath from the value encoded in an empty executable.
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest$ac_exeext &&
9687 $as_test_x conftest$ac_exeext; then
9689 lt_aix_libpath_sed='
9690 /Import File Strings/,/^$/ {
9696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 # Check for a 64-bit object if we didn't find anything.
9698 if test -z "$aix_libpath"; then
9699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9709 conftest$ac_exeext conftest.$ac_ext
9710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9713 # Warning - without using the other run time loading flags,
9714 # -berok will link without error, but may produce a broken library.
9715 no_undefined_flag=' ${wl}-bernotok'
9716 allow_undefined_flag=' ${wl}-berok'
9717 # Exported symbols can be pulled into shared objects from archives
9718 whole_archive_flag_spec='$convenience'
9719 archive_cmds_need_lc=yes
9720 # This is similar to how AIX traditionally builds its shared libraries.
9721 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'
9727 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)'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9730 # see comment about different semantics on the GNU ld section
9735 export_dynamic_flag_spec=-rdynamic
9738 cygwin* | mingw* | pw32*)
9739 # When not using gcc, we currently assume that we are using
9740 # Microsoft Visual C++.
9741 # hardcode_libdir_flag_spec is actually meaningless, as there is
9742 # no search path for DLLs.
9743 hardcode_libdir_flag_spec=' '
9744 allow_undefined_flag=unsupported
9745 # Tell ltmain to make .lib files, not .a files.
9747 # Tell ltmain to make .dll files, not .so files.
9749 # FIXME: Setting linknames here is a bad hack.
9750 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9751 # The linker will automatically build a .lib file if we build a DLL.
9752 old_archive_From_new_cmds='true'
9753 # FIXME: Should let the user specify the lib program.
9754 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9755 fix_srcfile_path='`cygpath -w "$srcfile"`'
9756 enable_shared_with_static_runtimes=yes
9759 darwin* | rhapsody*)
9761 rhapsody* | darwin1.[012])
9762 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9765 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9766 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9768 case ${MACOSX_DEPLOYMENT_TARGET} in
9770 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9773 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9779 archive_cmds_need_lc=no
9781 hardcode_automatic=yes
9782 hardcode_shlibpath_var=unsupported
9783 whole_archive_flag_spec=''
9784 link_all_deplibs=yes
9785 if test "$GCC" = yes ; then
9786 output_verbose_link_cmd='echo'
9787 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9788 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9790 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}'
9791 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}'
9793 case $cc_basename in
9795 output_verbose_link_cmd='echo'
9796 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9797 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9798 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9799 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9800 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}'
9810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_libdir_flag_spec='-L$libdir'
9812 hardcode_shlibpath_var=no
9819 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9820 # support. Future versions do this automatically, but an explicit c++rt0.o
9821 # does not break anything, and helps significantly (at the cost of a little
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9825 hardcode_libdir_flag_spec='-R$libdir'
9827 hardcode_shlibpath_var=no
9830 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9834 hardcode_minus_L=yes
9835 hardcode_shlibpath_var=no
9838 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9839 freebsd* | dragonfly*)
9840 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9841 hardcode_libdir_flag_spec='-R$libdir'
9843 hardcode_shlibpath_var=no
9847 if test "$GCC" = yes; then
9848 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'
9850 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'
9852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853 hardcode_libdir_separator=:
9856 # hardcode_minus_L: Not really in the search PATH,
9857 # but as the default location of the library.
9858 hardcode_minus_L=yes
9859 export_dynamic_flag_spec='${wl}-E'
9863 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9864 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9868 if test "$with_gnu_ld" = no; then
9869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9870 hardcode_libdir_separator=:
9873 export_dynamic_flag_spec='${wl}-E'
9875 # hardcode_minus_L: Not really in the search PATH,
9876 # but as the default location of the library.
9877 hardcode_minus_L=yes
9882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9885 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907 if test "$with_gnu_ld" = no; then
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator=:
9913 hardcode_libdir_flag_spec_ld='+b $libdir'
9915 hardcode_shlibpath_var=no
9919 export_dynamic_flag_spec='${wl}-E'
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9929 irix5* | irix6* | nonstopux*)
9930 if test "$GCC" = yes; then
9931 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'
9933 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'
9934 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9937 hardcode_libdir_separator=:
9938 link_all_deplibs=yes
9941 netbsd* | netbsdelf*-gnu)
9942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9945 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9947 hardcode_libdir_flag_spec='-R$libdir'
9949 hardcode_shlibpath_var=no
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956 hardcode_libdir_separator=:
9957 hardcode_shlibpath_var=no
9961 if test -f /usr/libexec/ld.so; then
9963 hardcode_shlibpath_var=no
9964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9968 export_dynamic_flag_spec='${wl}-E'
9971 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_libdir_flag_spec='-R$libdir'
9976 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 hardcode_minus_L=yes
9989 allow_undefined_flag=unsupported
9990 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'
9991 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9995 if test "$GCC" = yes; then
9996 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9997 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'
9999 allow_undefined_flag=' -expect_unresolved \*'
10000 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'
10002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003 hardcode_libdir_separator=:
10006 osf4* | osf5*) # as osf3* with the addition of -msym flag
10007 if test "$GCC" = yes; then
10008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10009 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'
10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012 allow_undefined_flag=' -expect_unresolved \*'
10013 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'
10014 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10015 $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'
10017 # Both c and cxx compiler support -rpath directly
10018 hardcode_libdir_flag_spec='-rpath $libdir'
10020 hardcode_libdir_separator=:
10024 no_undefined_flag=' -z text'
10025 if test "$GCC" = yes; then
10027 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10029 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10032 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10034 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10036 hardcode_libdir_flag_spec='-R$libdir'
10037 hardcode_shlibpath_var=no
10039 solaris2.[0-5] | solaris2.[0-5].*) ;;
10041 # The compiler driver will combine and reorder linker options,
10042 # but understands `-z linker_flag'. GCC discards it without `$wl',
10043 # but is careful enough not to reorder.
10044 # Supported since Solaris 2.6 (maybe 2.5.1?)
10045 if test "$GCC" = yes; then
10046 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10048 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10052 link_all_deplibs=yes
10056 if test "x$host_vendor" = xsequent; then
10057 # Use $CC to link under sequent, because it throws in some extra .o
10058 # files that make .init and .fini sections work.
10059 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_libdir_flag_spec='-L$libdir'
10064 hardcode_direct=yes
10065 hardcode_minus_L=yes
10066 hardcode_shlibpath_var=no
10070 case $host_vendor in
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_direct=yes # is this really true???
10076 ## LD is ld it makes a PLAMLIB
10077 ## CC just makes a GrossModule.
10078 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10079 reload_cmds='$CC -r -o $output$reload_objs'
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10087 runpath_var='LD_RUN_PATH'
10088 hardcode_shlibpath_var=no
10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_shlibpath_var=no
10094 export_dynamic_flag_spec='-Bexport'
10098 if test -d /usr/nec; then
10099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100 hardcode_shlibpath_var=no
10101 runpath_var=LD_RUN_PATH
10102 hardcode_runpath_var=yes
10107 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10108 no_undefined_flag='${wl}-z,text'
10109 archive_cmds_need_lc=no
10110 hardcode_shlibpath_var=no
10111 runpath_var='LD_RUN_PATH'
10113 if test "$GCC" = yes; then
10114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 sysv5* | sco3.2v5* | sco5v6*)
10123 # Note: We can NOT use -z defs as we might desire, because we do not
10124 # link with -lc, and that would cause any symbols used from libc to
10125 # always be unresolved, which means just about no library would
10126 # ever link correctly. If we're not using GNU ld we use -z text
10127 # though, which does catch some bad symbols but isn't as heavy-handed
10129 no_undefined_flag='${wl}-z,text'
10130 allow_undefined_flag='${wl}-z,nodefs'
10131 archive_cmds_need_lc=no
10132 hardcode_shlibpath_var=no
10133 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10134 hardcode_libdir_separator=':'
10135 link_all_deplibs=yes
10136 export_dynamic_flag_spec='${wl}-Bexport'
10137 runpath_var='LD_RUN_PATH'
10139 if test "$GCC" = yes; then
10140 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_libdir_flag_spec='-L$libdir'
10151 hardcode_shlibpath_var=no
10160 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10161 echo "${ECHO_T}$ld_shlibs" >&6; }
10162 test "$ld_shlibs" = no && can_build_shared=no
10165 # Do we need to explicitly link libc?
10167 case "x$archive_cmds_need_lc" in
10169 # Assume -lc should be added
10170 archive_cmds_need_lc=yes
10172 if test "$enable_shared" = yes && test "$GCC" = yes; then
10173 case $archive_cmds in
10175 # FIXME: we may have to deal with multi-command sequences.
10178 # Test whether the compiler implicitly links with -lc since on some
10179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10180 # to ld, don't add -lc before -lgcc.
10181 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 (eval $ac_compile) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } 2>conftest.err; then
10193 libobjs=conftest.$ac_objext
10195 wl=$lt_prog_compiler_wl
10196 pic_flag=$lt_prog_compiler_pic
10202 lt_save_allow_undefined_flag=$allow_undefined_flag
10203 allow_undefined_flag=
10204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10205 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }
10210 archive_cmds_need_lc=no
10212 archive_cmds_need_lc=yes
10214 allow_undefined_flag=$lt_save_allow_undefined_flag
10216 cat conftest.err 1>&5
10219 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10220 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10227 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10229 library_names_spec=
10230 libname_spec='lib$name'
10234 postuninstall_cmds=
10238 shlibpath_overrides_runpath=unknown
10240 dynamic_linker="$host_os ld.so"
10241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10243 if test "$GCC" = yes; then
10245 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10246 *) lt_awk_arg="/^libraries:/" ;;
10248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10249 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10250 # if the path contains ";" then we assume it to be the separator
10251 # otherwise default to the standard path separator (i.e. ":") - it is
10252 # assumed that no part of a normal pathname contains ";" but that should
10253 # okay in the real world where ";" in dirpaths is itself problematic.
10254 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10256 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10258 # Ok, now we have the path, separated by spaces, we can step through it
10259 # and add multilib dir if necessary.
10260 lt_tmp_lt_search_path_spec=
10261 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10262 for lt_sys_path in $lt_search_path_spec; do
10263 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10266 test -d "$lt_sys_path" && \
10267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10270 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10271 BEGIN {RS=" "; FS="/|\n";} {
10274 for (lt_i = NF; lt_i > 0; lt_i--) {
10275 if ($lt_i != "" && $lt_i != ".") {
10276 if ($lt_i == "..") {
10279 if (lt_count == 0) {
10280 lt_foo="/" $lt_i lt_foo;
10287 if (lt_foo != "") { lt_freq[lt_foo]++; }
10288 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10290 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10294 need_lib_prefix=unknown
10295 hardcode_into_libs=no
10297 # when you set need_version to no, make sure it does not cause -set_version
10298 # flags to be left without arguments
10299 need_version=unknown
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10305 shlibpath_var=LIBPATH
10307 # AIX 3 has no versioning support, so we append a major version to the name.
10308 soname_spec='${libname}${release}${shared_ext}$major'
10315 hardcode_into_libs=yes
10316 if test "$host_cpu" = ia64; then
10317 # AIX 5 supports IA64
10318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10319 shlibpath_var=LD_LIBRARY_PATH
10321 # With GCC up to 2.95.x, collect2 would create an import file
10322 # for dependence libraries. The import file would start with
10323 # the line `#! .'. This would cause the generated library to
10324 # depend on `.', always an invalid library. This was fixed in
10325 # development snapshots of GCC prior to 3.0.
10327 aix4 | aix4.[01] | aix4.[01].*)
10328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10330 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10333 can_build_shared=no
10337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10338 # soname into executable. Probably we can add versioning support to
10339 # collect2, so additional links can be useful in future.
10340 if test "$aix_use_runtimelinking" = yes; then
10341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10342 # instead of lib<name>.a to let people know that these are not
10343 # typical AIX shared libraries.
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 # We preserve .a as extension for shared libraries through AIX4.2
10347 # and later when we are not doing run time linking.
10348 library_names_spec='${libname}${release}.a $libname.a'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LIBPATH
10356 library_names_spec='$libname.ixlibrary $libname.a'
10357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10358 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'
10362 library_names_spec='${libname}${shared_ext}'
10363 dynamic_linker="$host_os ld.so"
10364 shlibpath_var=LIBRARY_PATH
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10376 # the default ld.so.conf also contains /usr/contrib/lib and
10377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10378 # libtool to hard-code these into programs
10381 cygwin* | mingw* | pw32*)
10382 version_type=windows
10387 case $GCC,$host_os in
10388 yes,cygwin* | yes,mingw* | yes,pw32*)
10389 library_names_spec='$libname.dll.a'
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname~
10396 chmod a+x \$dldir/$dlname'
10397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10398 dlpath=$dir/\$dldll~
10400 shlibpath_overrides_runpath=yes
10404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10406 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10409 # MinGW DLLs use traditional 'lib' prefix
10410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10412 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10413 # It is most probably a Windows format PATH printed by
10414 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10415 # path with ; separators, and with drive letters. We can handle the
10416 # drive letters (cygwin fileutils understands them), so leave them,
10417 # especially as we might pass files found there to a mingw objdump,
10418 # which wouldn't understand a cygwinified path. Ahh.
10419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10425 # pw32 DLLs use 'pw' prefix rather than 'lib'
10426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10435 dynamic_linker='Win32 ld.exe'
10436 # FIXME: first we should search . and the directory the executable is in
10440 darwin* | rhapsody*)
10441 dynamic_linker="$host_os dyld"
10442 version_type=darwin
10445 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10446 soname_spec='${libname}${release}${major}$shared_ext'
10447 shlibpath_overrides_runpath=yes
10448 shlibpath_var=DYLD_LIBRARY_PATH
10449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10451 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 shlibpath_var=LD_LIBRARY_PATH
10468 freebsd* | dragonfly*)
10469 # DragonFly does not have aout. When/if they implement a new
10470 # versioning mechanism, adjust this.
10471 if test -x /usr/bin/objformat; then
10472 objformat=`/usr/bin/objformat`
10475 freebsd[123]*) objformat=aout ;;
10476 *) objformat=elf ;;
10479 version_type=freebsd-$objformat
10480 case $version_type in
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10491 shlibpath_var=LD_LIBRARY_PATH
10494 shlibpath_overrides_runpath=yes
10496 freebsd3.[01]* | freebsdelf3.[01]*)
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10500 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10501 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10502 shlibpath_overrides_runpath=no
10503 hardcode_into_libs=yes
10505 *) # from 4.6 on, and DragonFly
10506 shlibpath_overrides_runpath=yes
10507 hardcode_into_libs=yes
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 hardcode_into_libs=yes
10522 hpux9* | hpux10* | hpux11*)
10523 # Give a soname corresponding to the major version so that dld.sl refuses to
10524 # link against other versions.
10531 hardcode_into_libs=yes
10532 dynamic_linker="$host_os dld.so"
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 if test "X$HPUX_IA64_MODE" = X32; then
10538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10546 hardcode_into_libs=yes
10547 dynamic_linker="$host_os dld.sl"
10548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10557 dynamic_linker="$host_os dld.sl"
10558 shlibpath_var=SHLIB_PATH
10559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10565 postinstall_cmds='chmod 555 $lib'
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=no
10577 hardcode_into_libs=yes
10580 irix5* | irix6* | nonstopux*)
10582 nonstopux*) version_type=nonstopux ;;
10584 if test "$lt_cv_prog_gnu_ld" = yes; then
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10595 irix5* | nonstopux*)
10596 libsuff= shlibsuff=
10599 case $LD in # libtool.m4 will add one of these switches to LD
10600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10601 libsuff= shlibsuff= libmagic=32-bit;;
10602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10603 libsuff=32 shlibsuff=N32 libmagic=N32;;
10604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10605 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10606 *) libsuff= shlibsuff= libmagic=never-match;;
10610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10614 hardcode_into_libs=yes
10617 # No shared lib support for Linux oldld, aout, or coff.
10618 linux*oldld* | linux*aout* | linux*coff*)
10622 # This must be Linux ELF.
10623 linux* | k*bsd*-gnu)
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=no
10632 # This implies no fast_install, which is unacceptable.
10633 # Some rework will be needed to allow for fast_install
10634 # before this can be enabled.
10635 hardcode_into_libs=yes
10637 # Append ld.so.conf contents to the search path
10638 if test -f /etc/ld.so.conf; then
10639 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10643 # We used to test for /lib/ld.so.1 and disable shared libraries on
10644 # powerpc, because MkLinux only supported shared libraries with the
10645 # GNU dynamic linker. Since this was broken with cross compilers,
10646 # most powerpc-linux boxes support dynamic linking these days and
10647 # people can always --disable-shared, the test was removed, and we
10648 # assume the GNU/Linux dynamic linker is in use.
10649 dynamic_linker='GNU/Linux ld.so'
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10661 dynamic_linker='NetBSD ld.elf_so'
10668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10671 dynamic_linker='NetBSD (a.out) ld.so'
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 dynamic_linker='NetBSD ld.elf_so'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=yes
10701 sys_lib_dlsearch_path_spec="/usr/lib"
10703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10705 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10706 *) need_version=no ;;
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10713 openbsd2.[89] | openbsd2.[89].*)
10714 shlibpath_overrides_runpath=no
10717 shlibpath_overrides_runpath=yes
10721 shlibpath_overrides_runpath=yes
10726 libname_spec='$name'
10729 library_names_spec='$libname${shared_ext} $libname.a'
10730 dynamic_linker='OS/2 ld.exe'
10731 shlibpath_var=LIBPATH
10734 osf3* | osf4* | osf5*)
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10742 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10757 hardcode_into_libs=yes
10758 # ldd complains unless libraries are executable
10759 postinstall_cmds='chmod +x $lib'
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 if test "$with_gnu_ld" = yes; then
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 case $host_vendor in
10781 shlibpath_overrides_runpath=no
10783 export_dynamic_flag_spec='${wl}-Blargedynsym'
10784 runpath_var=LD_RUN_PATH
10792 shlibpath_overrides_runpath=no
10793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10799 if test -d /usr/nec ;then
10801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10802 soname_spec='$libname${shared_ext}.$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808 version_type=freebsd-elf
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 shlibpath_var=LD_LIBRARY_PATH
10814 hardcode_into_libs=yes
10815 if test "$with_gnu_ld" = yes; then
10816 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10817 shlibpath_overrides_runpath=no
10819 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10820 shlibpath_overrides_runpath=yes
10823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10827 sys_lib_dlsearch_path_spec='/usr/lib'
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10841 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10842 echo "${ECHO_T}$dynamic_linker" >&6; }
10843 test "$dynamic_linker" = no && can_build_shared=no
10845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10846 if test "$GCC" = yes; then
10847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10850 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10853 if test -n "$hardcode_libdir_flag_spec" || \
10854 test -n "$runpath_var" || \
10855 test "X$hardcode_automatic" = "Xyes" ; then
10857 # We can hardcode non-existant directories.
10858 if test "$hardcode_direct" != no &&
10859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10860 # have to relink, otherwise we might link with an installed library
10861 # when we should be linking with a yet-to-be-installed one
10862 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10863 test "$hardcode_minus_L" != no; then
10864 # Linking always hardcodes the temporary library directory.
10865 hardcode_action=relink
10867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10868 hardcode_action=immediate
10871 # We cannot hardcode anything, or else we can only hardcode existing
10873 hardcode_action=unsupported
10875 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10876 echo "${ECHO_T}$hardcode_action" >&6; }
10878 if test "$hardcode_action" = relink; then
10879 # Fast installation is not supported
10880 enable_fast_install=no
10881 elif test "$shlibpath_overrides_runpath" = yes ||
10882 test "$enable_shared" = no; then
10883 # Fast installation is not necessary
10884 enable_fast_install=needless
10889 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10890 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10891 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10892 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10893 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10894 { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10897 # FIXME - insert some real tests, host_os isn't really good enough
10900 if test -n "$STRIP" ; then
10901 striplib="$STRIP -x"
10902 old_striplib="$STRIP -S"
10903 { echo "$as_me:$LINENO: result: yes" >&5
10904 echo "${ECHO_T}yes" >&6; }
10906 { echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6; }
10911 { echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6; }
10917 if test "x$enable_dlopen" != xyes; then
10918 enable_dlopen=unknown
10919 enable_dlopen_self=unknown
10920 enable_dlopen_self_static=unknown
10927 lt_cv_dlopen="load_add_on"
10929 lt_cv_dlopen_self=yes
10933 lt_cv_dlopen="LoadLibrary"
10938 lt_cv_dlopen="dlopen"
10943 # if libdl is installed we need to link against it
10944 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 ac_check_lib_save_LIBS=$LIBS
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10958 /* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (ac_try="$ac_link"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_link") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_c_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest$ac_exeext &&
10990 $as_test_x conftest$ac_exeext; then
10991 ac_cv_lib_dl_dlopen=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_cv_lib_dl_dlopen=no
10999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11005 if test $ac_cv_lib_dl_dlopen = yes; then
11006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11009 lt_cv_dlopen="dyld"
11011 lt_cv_dlopen_self=yes
11018 { echo "$as_me:$LINENO: checking for shl_load" >&5
11019 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11020 if test "${ac_cv_func_shl_load+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11031 #define shl_load innocuous_shl_load
11033 /* System header to define __stub macros and hopefully few prototypes,
11034 which can conflict with char shl_load (); below.
11035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036 <limits.h> exists even on freestanding compilers. */
11039 # include <limits.h>
11041 # include <assert.h>
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11053 /* The GNU C library defines this for functions which it implements
11054 to always fail with ENOSYS. Some functions are actually named
11055 something starting with __ and the normal name is an alias. */
11056 #if defined __stub_shl_load || defined __stub___shl_load
11063 return shl_load ();
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext &&
11085 $as_test_x conftest$ac_exeext; then
11086 ac_cv_func_shl_load=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_func_shl_load=no
11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095 conftest$ac_exeext conftest.$ac_ext
11097 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11098 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11099 if test $ac_cv_func_shl_load = yes; then
11100 lt_cv_dlopen="shl_load"
11102 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11103 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11104 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 ac_check_lib_save_LIBS=$LIBS
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11116 /* Override any GCC internal prototype to avoid an error.
11117 Use char because int might match the return type of a GCC
11118 builtin and then its argument prototype would still apply. */
11126 return shl_load ();
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (ac_try="$ac_link"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_link") 2>conftest.er1
11140 grep -v '^ *+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } && {
11145 test -z "$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 } && test -s conftest$ac_exeext &&
11148 $as_test_x conftest$ac_exeext; then
11149 ac_cv_lib_dld_shl_load=yes
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ac_cv_lib_dld_shl_load=no
11157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11162 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11163 if test $ac_cv_lib_dld_shl_load = yes; then
11164 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11166 { echo "$as_me:$LINENO: checking for dlopen" >&5
11167 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11168 if test "${ac_cv_func_dlopen+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11179 #define dlopen innocuous_dlopen
11181 /* System header to define __stub macros and hopefully few prototypes,
11182 which can conflict with char dlopen (); below.
11183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11184 <limits.h> exists even on freestanding compilers. */
11187 # include <limits.h>
11189 # include <assert.h>
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11201 /* The GNU C library defines this for functions which it implements
11202 to always fail with ENOSYS. Some functions are actually named
11203 something starting with __ and the normal name is an alias. */
11204 #if defined __stub_dlopen || defined __stub___dlopen
11216 rm -f conftest.$ac_objext conftest$ac_exeext
11217 if { (ac_try="$ac_link"
11218 case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_link") 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } && {
11230 test -z "$ac_c_werror_flag" ||
11231 test ! -s conftest.err
11232 } && test -s conftest$ac_exeext &&
11233 $as_test_x conftest$ac_exeext; then
11234 ac_cv_func_dlopen=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_cv_func_dlopen=no
11242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11243 conftest$ac_exeext conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11246 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11247 if test $ac_cv_func_dlopen = yes; then
11248 lt_cv_dlopen="dlopen"
11250 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11251 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_check_lib_save_LIBS=$LIBS
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_link") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest$ac_exeext &&
11296 $as_test_x conftest$ac_exeext; then
11297 ac_cv_lib_dl_dlopen=yes
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 ac_cv_lib_dl_dlopen=no
11305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11311 if test $ac_cv_lib_dl_dlopen = yes; then
11312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11314 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-lsvld $LIBS"
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11328 /* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_link") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && {
11357 test -z "$ac_c_werror_flag" ||
11358 test ! -s conftest.err
11359 } && test -s conftest$ac_exeext &&
11360 $as_test_x conftest$ac_exeext; then
11361 ac_cv_lib_svld_dlopen=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_cv_lib_svld_dlopen=no
11369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11373 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11375 if test $ac_cv_lib_svld_dlopen = yes; then
11376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11378 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11379 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 ac_check_lib_save_LIBS=$LIBS
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11402 return dld_link ();
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (ac_try="$ac_link"
11409 case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_link") 2>conftest.er1
11416 grep -v '^ *+' conftest.er1 >conftest.err
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } && {
11421 test -z "$ac_c_werror_flag" ||
11422 test ! -s conftest.err
11423 } && test -s conftest$ac_exeext &&
11424 $as_test_x conftest$ac_exeext; then
11425 ac_cv_lib_dld_dld_link=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_lib_dld_dld_link=no
11433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11437 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11438 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11439 if test $ac_cv_lib_dld_dld_link = yes; then
11440 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11461 if test "x$lt_cv_dlopen" != xno; then
11467 case $lt_cv_dlopen in
11469 save_CPPFLAGS="$CPPFLAGS"
11470 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11472 save_LDFLAGS="$LDFLAGS"
11473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11476 LIBS="$lt_cv_dlopen_libs $LIBS"
11478 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11479 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11480 if test "${lt_cv_dlopen_self+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 if test "$cross_compiling" = yes; then :
11484 lt_cv_dlopen_self=cross
11486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11487 lt_status=$lt_dlunknown
11488 cat > conftest.$ac_ext <<EOF
11489 #line __oline__ "configure"
11490 #include "confdefs.h"
11499 # define LT_DLGLOBAL RTLD_GLOBAL
11502 # define LT_DLGLOBAL DL_GLOBAL
11504 # define LT_DLGLOBAL 0
11508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11509 find out it does not work in some platform. */
11510 #ifndef LT_DLLAZY_OR_NOW
11512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11515 # define LT_DLLAZY_OR_NOW DL_LAZY
11518 # define LT_DLLAZY_OR_NOW RTLD_NOW
11521 # define LT_DLLAZY_OR_NOW DL_NOW
11523 # define LT_DLLAZY_OR_NOW 0
11531 extern "C" void exit (int);
11534 void fnord() { int i=42;}
11537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11538 int status = $lt_dlunknown;
11542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11544 /* dlclose (self); */
11552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11553 (eval $ac_link) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11557 (./conftest; exit; ) >&5 2>/dev/null
11559 case x$lt_status in
11560 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11561 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11562 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11565 # compilation failed
11566 lt_cv_dlopen_self=no
11573 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11574 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11576 if test "x$lt_cv_dlopen_self" = xyes; then
11577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11578 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11579 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11580 if test "${lt_cv_dlopen_self_static+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 if test "$cross_compiling" = yes; then :
11584 lt_cv_dlopen_self_static=cross
11586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11587 lt_status=$lt_dlunknown
11588 cat > conftest.$ac_ext <<EOF
11589 #line __oline__ "configure"
11590 #include "confdefs.h"
11599 # define LT_DLGLOBAL RTLD_GLOBAL
11602 # define LT_DLGLOBAL DL_GLOBAL
11604 # define LT_DLGLOBAL 0
11608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11609 find out it does not work in some platform. */
11610 #ifndef LT_DLLAZY_OR_NOW
11612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11615 # define LT_DLLAZY_OR_NOW DL_LAZY
11618 # define LT_DLLAZY_OR_NOW RTLD_NOW
11621 # define LT_DLLAZY_OR_NOW DL_NOW
11623 # define LT_DLLAZY_OR_NOW 0
11631 extern "C" void exit (int);
11634 void fnord() { int i=42;}
11637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11638 int status = $lt_dlunknown;
11642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11644 /* dlclose (self); */
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11657 (./conftest; exit; ) >&5 2>/dev/null
11659 case x$lt_status in
11660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11665 # compilation failed
11666 lt_cv_dlopen_self_static=no
11673 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11674 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11677 CPPFLAGS="$save_CPPFLAGS"
11678 LDFLAGS="$save_LDFLAGS"
11683 case $lt_cv_dlopen_self in
11684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11685 *) enable_dlopen_self=unknown ;;
11688 case $lt_cv_dlopen_self_static in
11689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11690 *) enable_dlopen_self_static=unknown ;;
11695 # Report which library types will actually be built
11696 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11697 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11698 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11699 echo "${ECHO_T}$can_build_shared" >&6; }
11701 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11702 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11703 test "$can_build_shared" = "no" && enable_shared=no
11705 # On AIX, shared libraries and static libraries use the same namespace, and
11706 # are all built from PIC.
11709 test "$enable_shared" = yes && enable_static=no
11710 if test -n "$RANLIB"; then
11711 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11712 postinstall_cmds='$RANLIB $lib'
11717 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11718 test "$enable_shared" = yes && enable_static=no
11722 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11723 echo "${ECHO_T}$enable_shared" >&6; }
11725 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11726 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11727 # Make sure either enable_shared or enable_static is yes.
11728 test "$enable_shared" = yes || enable_static=yes
11729 { echo "$as_me:$LINENO: result: $enable_static" >&5
11730 echo "${ECHO_T}$enable_static" >&6; }
11732 # The else clause should only fire when bootstrapping the
11733 # libtool distribution, otherwise you forgot to ship ltmain.sh
11734 # with your package, and you will get complaints that there are
11735 # no rules to generate ltmain.sh.
11736 if test -f "$ltmain"; then
11737 # See if we are running on zsh, and set the options which allow our commands through
11738 # without removal of \ escapes.
11739 if test -n "${ZSH_VERSION+set}" ; then
11740 setopt NO_GLOB_SUBST
11742 # Now quote all the things that may contain metacharacters while being
11743 # careful not to overquote the AC_SUBSTed values. We take copies of the
11744 # variables and quote the copies for generation of the libtool script.
11745 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11749 deplibs_check_method reload_flag reload_cmds need_locks \
11750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11751 lt_cv_sys_global_symbol_to_c_name_address \
11752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11753 old_postinstall_cmds old_postuninstall_cmds \
11757 lt_prog_compiler_wl \
11758 lt_prog_compiler_pic \
11759 lt_prog_compiler_static \
11760 lt_prog_compiler_no_builtin_flag \
11761 export_dynamic_flag_spec \
11762 thread_safe_flag_spec \
11763 whole_archive_flag_spec \
11764 enable_shared_with_static_runtimes \
11766 old_archive_from_new_cmds \
11771 compiler_lib_search_path \
11773 archive_expsym_cmds \
11775 postuninstall_cmds \
11776 old_archive_from_expsyms_cmds \
11777 allow_undefined_flag \
11778 no_undefined_flag \
11779 export_symbols_cmds \
11780 hardcode_libdir_flag_spec \
11781 hardcode_libdir_flag_spec_ld \
11782 hardcode_libdir_separator \
11783 hardcode_automatic \
11785 module_expsym_cmds \
11786 lt_cv_prog_compiler_c_o \
11789 include_expsyms; do
11792 old_archive_cmds | \
11793 old_archive_from_new_cmds | \
11795 archive_expsym_cmds | \
11797 module_expsym_cmds | \
11798 old_archive_from_expsyms_cmds | \
11799 export_symbols_cmds | \
11800 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11801 postinstall_cmds | postuninstall_cmds | \
11802 old_postinstall_cmds | old_postuninstall_cmds | \
11803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11804 # Double-quote double-evaled strings.
11805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11814 *'\$0 --fallback-echo"')
11815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11819 cfgfile="${ofile}T"
11820 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11822 { echo "$as_me:$LINENO: creating $ofile" >&5
11823 echo "$as_me: creating $ofile" >&6;}
11825 cat <<__EOF__ >> "$cfgfile"
11828 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11829 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11830 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11832 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11833 # Free Software Foundation, Inc.
11835 # This file is part of GNU Libtool:
11836 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11838 # This program is free software; you can redistribute it and/or modify
11839 # it under the terms of the GNU General Public License as published by
11840 # the Free Software Foundation; either version 2 of the License, or
11841 # (at your option) any later version.
11843 # This program is distributed in the hope that it will be useful, but
11844 # WITHOUT ANY WARRANTY; without even the implied warranty of
11845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11846 # General Public License for more details.
11848 # You should have received a copy of the GNU General Public License
11849 # along with this program; if not, write to the Free Software
11850 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11852 # As a special exception to the GNU General Public License, if you
11853 # distribute this file as part of a program that contains a
11854 # configuration script generated by Autoconf, you may include it under
11855 # the same distribution terms that you use for the rest of that program.
11857 # A sed program that does not truncate output.
11860 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11861 Xsed="$SED -e 1s/^X//"
11863 # The HP-UX ksh and POSIX shell print the target directory to stdout
11864 # if CDPATH is set.
11865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11867 # The names of the tagged configurations supported by this script.
11870 # ### BEGIN LIBTOOL CONFIG
11872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11874 # Shell to use when invoking shell scripts.
11877 # Whether or not to build shared libraries.
11878 build_libtool_libs=$enable_shared
11880 # Whether or not to build static libraries.
11881 build_old_libs=$enable_static
11883 # Whether or not to add -lc for building shared libraries.
11884 build_libtool_need_lc=$archive_cmds_need_lc
11886 # Whether or not to disallow shared libs when runtime libs are static
11887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11889 # Whether or not to optimize for fast installation.
11890 fast_install=$enable_fast_install
11893 host_alias=$host_alias
11897 # The build system.
11898 build_alias=$build_alias
11902 # An echo program that does not interpret backslashes.
11907 AR_FLAGS=$lt_AR_FLAGS
11912 # LTCC compiler flags.
11913 LTCFLAGS=$lt_LTCFLAGS
11915 # A language-specific compiler.
11918 # Is the compiler the GNU C compiler?
11924 # The linker used to build libraries.
11927 # Whether we need hard or soft links.
11930 # A BSD-compatible nm program.
11933 # A symbol stripping program
11936 # Used to examine libraries when file_magic_cmd begins "file"
11937 MAGIC_CMD=$MAGIC_CMD
11939 # Used on cygwin: DLL creation program.
11942 # Used on cygwin: object dumper.
11945 # Used on cygwin: assembler.
11948 # The name of the directory that contains temporary libtool files.
11951 # How to create reloadable object files.
11952 reload_flag=$lt_reload_flag
11953 reload_cmds=$lt_reload_cmds
11955 # How to pass a linker flag through the compiler.
11956 wl=$lt_lt_prog_compiler_wl
11958 # Object file suffix (normally "o").
11959 objext="$ac_objext"
11961 # Old archive suffix (normally "a").
11964 # Shared library suffix (normally ".so").
11965 shrext_cmds='$shrext_cmds'
11967 # Executable file suffix (normally "").
11970 # Additional compiler flags for building library objects.
11971 pic_flag=$lt_lt_prog_compiler_pic
11974 # What is the maximum length of a command?
11975 max_cmd_len=$lt_cv_sys_max_cmd_len
11977 # Does compiler simultaneously support -c and -o options?
11978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11980 # Must we lock files when doing compilation?
11981 need_locks=$lt_need_locks
11983 # Do we need the lib prefix for modules?
11984 need_lib_prefix=$need_lib_prefix
11986 # Do we need a version for libraries?
11987 need_version=$need_version
11989 # Whether dlopen is supported.
11990 dlopen_support=$enable_dlopen
11992 # Whether dlopen of programs is supported.
11993 dlopen_self=$enable_dlopen_self
11995 # Whether dlopen of statically linked programs is supported.
11996 dlopen_self_static=$enable_dlopen_self_static
11998 # Compiler flag to prevent dynamic linking.
11999 link_static_flag=$lt_lt_prog_compiler_static
12001 # Compiler flag to turn off builtin functions.
12002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12004 # Compiler flag to allow reflexive dlopens.
12005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12007 # Compiler flag to generate shared objects directly from archives.
12008 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12010 # Compiler flag to generate thread-safe objects.
12011 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12013 # Library versioning type.
12014 version_type=$version_type
12016 # Format of library name prefix.
12017 libname_spec=$lt_libname_spec
12019 # List of archive names. First name is the real one, the rest are links.
12020 # The last name is the one that the linker finds with -lNAME.
12021 library_names_spec=$lt_library_names_spec
12023 # The coded name of the library, if different from the real name.
12024 soname_spec=$lt_soname_spec
12026 # Commands used to build and install an old-style archive.
12028 old_archive_cmds=$lt_old_archive_cmds
12029 old_postinstall_cmds=$lt_old_postinstall_cmds
12030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12032 # Create an old-style archive from a shared archive.
12033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12035 # Create a temporary old-style archive to link instead of a shared archive.
12036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12038 # Commands used to build and install a shared archive.
12039 archive_cmds=$lt_archive_cmds
12040 archive_expsym_cmds=$lt_archive_expsym_cmds
12041 postinstall_cmds=$lt_postinstall_cmds
12042 postuninstall_cmds=$lt_postuninstall_cmds
12044 # Commands used to build a loadable module (assumed same as above if empty)
12045 module_cmds=$lt_module_cmds
12046 module_expsym_cmds=$lt_module_expsym_cmds
12048 # Commands to strip libraries.
12049 old_striplib=$lt_old_striplib
12050 striplib=$lt_striplib
12052 # Dependencies to place before the objects being linked to create a
12054 predep_objects=$lt_predep_objects
12056 # Dependencies to place after the objects being linked to create a
12058 postdep_objects=$lt_postdep_objects
12060 # Dependencies to place before the objects being linked to create a
12062 predeps=$lt_predeps
12064 # Dependencies to place after the objects being linked to create a
12066 postdeps=$lt_postdeps
12068 # The library search path used internally by the compiler when linking
12069 # a shared library.
12070 compiler_lib_search_path=$lt_compiler_lib_search_path
12072 # Method to check whether dependent libraries are shared objects.
12073 deplibs_check_method=$lt_deplibs_check_method
12075 # Command to use when deplibs_check_method == file_magic.
12076 file_magic_cmd=$lt_file_magic_cmd
12078 # Flag that allows shared libraries with undefined symbols to be built.
12079 allow_undefined_flag=$lt_allow_undefined_flag
12081 # Flag that forces no undefined symbols.
12082 no_undefined_flag=$lt_no_undefined_flag
12084 # Commands used to finish a libtool library installation in a directory.
12085 finish_cmds=$lt_finish_cmds
12087 # Same as above, but a single script fragment to be evaled but not shown.
12088 finish_eval=$lt_finish_eval
12090 # Take the output of nm and produce a listing of raw symbols and C names.
12091 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12093 # Transform the output of nm in a proper C declaration
12094 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12096 # Transform the output of nm in a C name address pair
12097 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12099 # This is the shared library runtime path variable.
12100 runpath_var=$runpath_var
12102 # This is the shared library path variable.
12103 shlibpath_var=$shlibpath_var
12105 # Is shlibpath searched before the hard-coded library search path?
12106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12108 # How to hardcode a shared library path into an executable.
12109 hardcode_action=$hardcode_action
12111 # Whether we should hardcode library paths into libraries.
12112 hardcode_into_libs=$hardcode_into_libs
12114 # Flag to hardcode \$libdir into a binary during linking.
12115 # This must work even if \$libdir does not exist.
12116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12118 # If ld is used when linking, flag to hardcode \$libdir into
12119 # a binary during linking. This must work even if \$libdir does
12121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12123 # Whether we need a single -rpath flag with a separated argument.
12124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12126 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12127 # resulting binary.
12128 hardcode_direct=$hardcode_direct
12130 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12131 # resulting binary.
12132 hardcode_minus_L=$hardcode_minus_L
12134 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12135 # the resulting binary.
12136 hardcode_shlibpath_var=$hardcode_shlibpath_var
12138 # Set to yes if building a shared library automatically hardcodes DIR into the library
12139 # and all subsequent libraries and executables linked against it.
12140 hardcode_automatic=$hardcode_automatic
12142 # Variables whose values should be saved in libtool wrapper scripts and
12143 # restored at relink time.
12144 variables_saved_for_relink="$variables_saved_for_relink"
12146 # Whether libtool must link a program against all its dependency libraries.
12147 link_all_deplibs=$link_all_deplibs
12149 # Compile-time system search path for libraries
12150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12152 # Run-time system search path for libraries
12153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12155 # Fix the shell variable \$srcfile for the compiler.
12156 fix_srcfile_path=$lt_fix_srcfile_path
12158 # Set to yes if exported symbols are required.
12159 always_export_symbols=$always_export_symbols
12161 # The commands to list exported symbols.
12162 export_symbols_cmds=$lt_export_symbols_cmds
12164 # The commands to extract the exported symbol list from a shared archive.
12165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12167 # Symbols that should not be listed in the preloaded symbols.
12168 exclude_expsyms=$lt_exclude_expsyms
12170 # Symbols that must always be exported.
12171 include_expsyms=$lt_include_expsyms
12173 # ### END LIBTOOL CONFIG
12180 cat <<\EOF >> "$cfgfile"
12182 # AIX sometimes has problems with the GCC collect2 program. For some
12183 # reason, if we set the COLLECT_NAMES environment variable, the problems
12184 # vanish in a puff of smoke.
12185 if test "X${COLLECT_NAMES+set}" != Xset; then
12187 export COLLECT_NAMES
12193 # We use sed instead of cat because bash on DJGPP gets confused if
12194 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12195 # text mode, it properly converts lines to CR/LF. This bash problem
12196 # is reportedly fixed, but why not run on old versions too?
12197 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12199 mv -f "$cfgfile" "$ofile" || \
12200 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12204 # If there is no Makefile yet, we rely on a make rule to execute
12205 # `config.status --recheck' to rerun these tests and create the
12206 # libtool script then.
12207 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12208 if test -f "$ltmain_in"; then
12209 test -f Makefile && make "$ltmain"
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12223 # Check whether --with-tags was given.
12224 if test "${with_tags+set}" = set; then
12225 withval=$with_tags; tagnames="$withval"
12229 if test -f "$ltmain" && test -n "$tagnames"; then
12230 if test ! -f "${ofile}"; then
12231 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12232 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12235 if test -z "$LTCC"; then
12236 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12237 if test -z "$LTCC"; then
12238 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12239 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12242 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12245 if test -z "$LTCFLAGS"; then
12246 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12249 # Extract list of available tagged configurations in $ofile.
12250 # Note that this assumes the entire list is on one line.
12251 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12254 for tagname in $tagnames; do
12256 # Check whether tagname contains only valid characters
12257 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12259 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12260 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12261 { (exit 1); exit 1; }; }
12265 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12267 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12268 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12269 { (exit 1); exit 1; }; }
12272 # Update the list of available tags.
12273 if test -n "$tagname"; then
12274 echo appending configuration tag \"$tagname\" to $ofile
12278 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12279 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12280 (test "X$CXX" != "Xg++"))) ; then
12282 ac_cpp='$CXXCPP $CPPFLAGS'
12283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12290 archive_cmds_need_lc_CXX=no
12291 allow_undefined_flag_CXX=
12292 always_export_symbols_CXX=no
12293 archive_expsym_cmds_CXX=
12294 export_dynamic_flag_spec_CXX=
12295 hardcode_direct_CXX=no
12296 hardcode_libdir_flag_spec_CXX=
12297 hardcode_libdir_flag_spec_ld_CXX=
12298 hardcode_libdir_separator_CXX=
12299 hardcode_minus_L_CXX=no
12300 hardcode_shlibpath_var_CXX=unsupported
12301 hardcode_automatic_CXX=no
12303 module_expsym_cmds_CXX=
12304 link_all_deplibs_CXX=unknown
12305 old_archive_cmds_CXX=$old_archive_cmds
12306 no_undefined_flag_CXX=
12307 whole_archive_flag_spec_CXX=
12308 enable_shared_with_static_runtimes_CXX=no
12310 # Dependencies to place before and after the object being linked:
12311 predep_objects_CXX=
12312 postdep_objects_CXX=
12315 compiler_lib_search_path_CXX=
12317 # Source file extension for C++ test sources.
12320 # Object file extension for compiled C++ test sources.
12324 # Code to be used in simple compile tests
12325 lt_simple_compile_test_code="int some_variable = 0;"
12327 # Code to be used in simple link tests
12328 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12330 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12332 # If no C compiler was specified, use CC.
12335 # If no C compiler flags were specified, use CFLAGS.
12336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12338 # Allow CC to be a program name with arguments.
12342 # save warnings/boilerplate of simple test code
12343 ac_outfile=conftest.$ac_objext
12344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12346 _lt_compiler_boilerplate=`cat conftest.err`
12349 ac_outfile=conftest.$ac_objext
12350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12352 _lt_linker_boilerplate=`cat conftest.err`
12356 # Allow CC to be a program name with arguments.
12361 lt_save_with_gnu_ld=$with_gnu_ld
12362 lt_save_path_LD=$lt_cv_path_LD
12363 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12364 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12366 $as_unset lt_cv_prog_gnu_ld
12368 if test -n "${lt_cv_path_LDCXX+set}"; then
12369 lt_cv_path_LD=$lt_cv_path_LDCXX
12371 $as_unset lt_cv_path_LD
12373 test -z "${LDCXX+set}" || LD=$LDCXX
12377 for cc_temp in $compiler""; do
12379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12385 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12388 # We don't want -fno-exception wen compiling C++ code, so set the
12389 # no_builtin_flag separately
12390 if test "$GXX" = yes; then
12391 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12393 lt_prog_compiler_no_builtin_flag_CXX=
12396 if test "$GXX" = yes; then
12397 # Set up default GNU C++ configuration
12400 # Check whether --with-gnu-ld was given.
12401 if test "${with_gnu_ld+set}" = set; then
12402 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12408 if test "$GCC" = yes; then
12409 # Check if gcc -print-prog-name=ld gives a path.
12410 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12411 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12414 # gcc leaves a trailing carriage return which upsets mingw
12415 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12417 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12420 # Accept absolute paths.
12422 re_direlt='/[^/][^/]*/\.\./'
12423 # Canonicalize the pathname of ld
12424 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12425 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12426 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12428 test -z "$LD" && LD="$ac_prog"
12431 # If it fails, then pretend we aren't using GCC.
12435 # If it is relative, then search for the first ld in PATH.
12436 with_gnu_ld=unknown
12439 elif test "$with_gnu_ld" = yes; then
12440 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12441 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12443 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12444 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12446 if test "${lt_cv_path_LD+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 if test -z "$LD"; then
12450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12451 for ac_dir in $PATH; do
12453 test -z "$ac_dir" && ac_dir=.
12454 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12455 lt_cv_path_LD="$ac_dir/$ac_prog"
12456 # Check to see if the program is GNU ld. I'd rather use --version,
12457 # but apparently some variants of GNU ld only accept -v.
12458 # Break only if it was the GNU/non-GNU ld that we prefer.
12459 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12460 *GNU* | *'with BFD'*)
12461 test "$with_gnu_ld" != no && break
12464 test "$with_gnu_ld" != yes && break
12471 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12475 LD="$lt_cv_path_LD"
12476 if test -n "$LD"; then
12477 { echo "$as_me:$LINENO: result: $LD" >&5
12478 echo "${ECHO_T}$LD" >&6; }
12480 { echo "$as_me:$LINENO: result: no" >&5
12481 echo "${ECHO_T}no" >&6; }
12483 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12484 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12485 { (exit 1); exit 1; }; }
12486 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12487 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12488 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12492 case `$LD -v 2>&1 </dev/null` in
12493 *GNU* | *'with BFD'*)
12494 lt_cv_prog_gnu_ld=yes
12497 lt_cv_prog_gnu_ld=no
12501 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12502 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12503 with_gnu_ld=$lt_cv_prog_gnu_ld
12507 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12508 # archiving commands below assume that GNU ld is being used.
12509 if test "$with_gnu_ld" = yes; then
12510 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12511 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'
12513 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12516 # If archive_cmds runs LD, not CC, wlarc should be empty
12517 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12518 # investigate it a little bit more. (MM)
12521 # ancient GNU ld didn't support --whole-archive et. al.
12522 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12523 grep 'no-whole-archive' > /dev/null; then
12524 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12526 whole_archive_flag_spec_CXX=
12532 # A generic and very simple default shared library creation
12533 # command for GNU C++ for the case where it uses the native
12534 # linker, instead of GNU ld. If possible, this setting should
12535 # overridden to take advantage of the native linker features on
12536 # the platform it is being used on.
12537 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12540 # Commands to make compiler produce verbose output that lists
12541 # what "hidden" libraries, object files and flags are used when
12542 # linking a shared library.
12543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12551 # PORTME: fill in a description of your system's C++ link characteristics
12552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12557 # FIXME: insert proper C++ library support
12561 if test "$host_cpu" = ia64; then
12562 # On IA64, the linker does run time linking by default, so we don't
12563 # have to do anything special.
12564 aix_use_runtimelinking=no
12565 exp_sym_flag='-Bexport'
12568 aix_use_runtimelinking=no
12570 # Test if we are trying to use run time linking or normal
12571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12572 # need to do runtime linking.
12573 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12574 for ld_flag in $LDFLAGS; do
12577 aix_use_runtimelinking=yes
12585 exp_sym_flag='-bexport'
12586 no_entry_flag='-bnoentry'
12589 # When large executables or shared objects are built, AIX ld can
12590 # have problems creating the table of contents. If linking a library
12591 # or program results in "error TOC overflow" add -mminimal-toc to
12592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12595 archive_cmds_CXX=''
12596 hardcode_direct_CXX=yes
12597 hardcode_libdir_separator_CXX=':'
12598 link_all_deplibs_CXX=yes
12600 if test "$GXX" = yes; then
12601 case $host_os in aix4.[012]|aix4.[012].*)
12602 # We only want to do this on AIX 4.2 and lower, the check
12603 # below for broken collect2 doesn't work under 4.3+
12604 collect2name=`${CC} -print-prog-name=collect2`
12605 if test -f "$collect2name" && \
12606 strings "$collect2name" | grep resolve_lib_name >/dev/null
12608 # We have reworked collect2
12611 # We have old collect2
12612 hardcode_direct_CXX=unsupported
12613 # It fails to find uninstalled libraries when the uninstalled
12614 # path is not listed in the libpath. Setting hardcode_minus_L
12615 # to unsupported forces relinking
12616 hardcode_minus_L_CXX=yes
12617 hardcode_libdir_flag_spec_CXX='-L$libdir'
12618 hardcode_libdir_separator_CXX=
12622 shared_flag='-shared'
12623 if test "$aix_use_runtimelinking" = yes; then
12624 shared_flag="$shared_flag "'${wl}-G'
12628 if test "$host_cpu" = ia64; then
12629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12630 # chokes on -Wl,-G. The following line is correct:
12633 if test "$aix_use_runtimelinking" = yes; then
12634 shared_flag='${wl}-G'
12636 shared_flag='${wl}-bM:SRE'
12641 # It seems that -bexpall does not export symbols beginning with
12642 # underscore (_), so it is better to generate a list of symbols to export.
12643 always_export_symbols_CXX=yes
12644 if test "$aix_use_runtimelinking" = yes; then
12645 # Warning - without using the other runtime loading flags (-brtl),
12646 # -berok will link without error, but may produce a broken library.
12647 allow_undefined_flag_CXX='-berok'
12648 # Determine the default libpath from the value encoded in an empty executable.
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_link") 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && {
12678 test -z "$ac_cxx_werror_flag" ||
12679 test ! -s conftest.err
12680 } && test -s conftest$ac_exeext &&
12681 $as_test_x conftest$ac_exeext; then
12683 lt_aix_libpath_sed='
12684 /Import File Strings/,/^$/ {
12690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12691 # Check for a 64-bit object if we didn't find anything.
12692 if test -z "$aix_libpath"; then
12693 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12706 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12708 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"
12710 if test "$host_cpu" = ia64; then
12711 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12712 allow_undefined_flag_CXX="-z nodefs"
12713 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"
12715 # Determine the default libpath from the value encoded in an empty executable.
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && {
12745 test -z "$ac_cxx_werror_flag" ||
12746 test ! -s conftest.err
12747 } && test -s conftest$ac_exeext &&
12748 $as_test_x conftest$ac_exeext; then
12750 lt_aix_libpath_sed='
12751 /Import File Strings/,/^$/ {
12757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12758 # Check for a 64-bit object if we didn't find anything.
12759 if test -z "$aix_libpath"; then
12760 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12770 conftest$ac_exeext conftest.$ac_ext
12771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12773 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12774 # Warning - without using the other run time loading flags,
12775 # -berok will link without error, but may produce a broken library.
12776 no_undefined_flag_CXX=' ${wl}-bernotok'
12777 allow_undefined_flag_CXX=' ${wl}-berok'
12778 # Exported symbols can be pulled into shared objects from archives
12779 whole_archive_flag_spec_CXX='$convenience'
12780 archive_cmds_need_lc_CXX=yes
12781 # This is similar to how AIX traditionally builds its shared libraries.
12782 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'
12788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12789 allow_undefined_flag_CXX=unsupported
12790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12791 # support --undefined. This deserves some investigation. FIXME
12792 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12799 case $cc_basename in
12801 # FIXME: insert proper C++ library support
12807 cygwin* | mingw* | pw32*)
12808 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12809 # as there is no search path for DLLs.
12810 hardcode_libdir_flag_spec_CXX='-L$libdir'
12811 allow_undefined_flag_CXX=unsupported
12812 always_export_symbols_CXX=no
12813 enable_shared_with_static_runtimes_CXX=yes
12815 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12816 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'
12817 # If the export-symbols file already is a .def file (1st line
12818 # is EXPORTS), use it as is; otherwise, prepend...
12819 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12820 cp $export_symbols $output_objdir/$soname.def;
12822 echo EXPORTS > $output_objdir/$soname.def;
12823 cat $export_symbols >> $output_objdir/$soname.def;
12825 $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'
12830 darwin* | rhapsody*)
12832 rhapsody* | darwin1.[012])
12833 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12836 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12837 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12839 case ${MACOSX_DEPLOYMENT_TARGET} in
12841 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12844 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12850 archive_cmds_need_lc_CXX=no
12851 hardcode_direct_CXX=no
12852 hardcode_automatic_CXX=yes
12853 hardcode_shlibpath_var_CXX=unsupported
12854 whole_archive_flag_spec_CXX=''
12855 link_all_deplibs_CXX=yes
12857 if test "$GXX" = yes ; then
12858 lt_int_apple_cc_single_mod=no
12859 output_verbose_link_cmd='echo'
12860 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12861 lt_int_apple_cc_single_mod=yes
12863 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12864 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12866 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'
12868 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12870 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12871 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}'
12873 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}'
12875 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}'
12877 case $cc_basename in
12879 output_verbose_link_cmd='echo'
12880 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12881 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12883 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12884 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}'
12894 case $cc_basename in
12896 # FIXME: insert proper C++ library support
12900 # Green Hills C++ Compiler
12901 # FIXME: insert proper C++ library support
12905 # FIXME: insert proper C++ library support
12911 # C++ shared libraries reported to be fairly broken before switch to ELF
12915 archive_cmds_need_lc_CXX=no
12917 freebsd* | dragonfly*)
12918 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12925 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12926 hardcode_libdir_separator_CXX=:
12927 export_dynamic_flag_spec_CXX='${wl}-E'
12928 hardcode_direct_CXX=yes
12929 hardcode_minus_L_CXX=yes # Not in the search PATH,
12930 # but as the default
12931 # location of the library.
12933 case $cc_basename in
12935 # FIXME: insert proper C++ library support
12939 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'
12940 # Commands to make compiler produce verbose output that lists
12941 # what "hidden" libraries, object files and flags are used when
12942 # linking a shared library.
12944 # There doesn't appear to be a way to prevent this compiler from
12945 # explicitly linking system object files so we need to strip them
12946 # from the output so that they don't get included in the library
12948 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'
12951 if test "$GXX" = yes; then
12952 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'
12954 # FIXME: insert proper C++ library support
12961 if test $with_gnu_ld = no; then
12962 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12963 hardcode_libdir_separator_CXX=:
12968 export_dynamic_flag_spec_CXX='${wl}-E'
12974 hardcode_direct_CXX=no
12975 hardcode_shlibpath_var_CXX=no
12978 hardcode_direct_CXX=yes
12979 hardcode_minus_L_CXX=yes # Not in the search PATH,
12980 # but as the default
12981 # location of the library.
12985 case $cc_basename in
12987 # FIXME: insert proper C++ library support
12993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12999 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13002 # Commands to make compiler produce verbose output that lists
13003 # what "hidden" libraries, object files and flags are used when
13004 # linking a shared library.
13006 # There doesn't appear to be a way to prevent this compiler from
13007 # explicitly linking system object files so we need to strip them
13008 # from the output so that they don't get included in the library
13010 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'
13013 if test "$GXX" = yes; then
13014 if test $with_gnu_ld = no; then
13017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13020 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13023 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'
13028 # FIXME: insert proper C++ library support
13035 hardcode_direct_CXX=no
13036 hardcode_shlibpath_var_CXX=no
13037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13038 export_dynamic_flag_spec_CXX='${wl}-E'
13039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13040 # Instead, shared libraries are loaded at an image base (0x10000000 by
13041 # default) and relocated if they conflict, which is a slow very memory
13042 # consuming and fragmenting process. To avoid this, we pick a random,
13043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13044 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13045 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'
13046 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'
13049 case $cc_basename in
13052 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'
13054 # Archives containing C++ object files must be created using
13055 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13056 # necessary to make sure instantiated templates are included
13058 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13061 if test "$GXX" = yes; then
13062 if test "$with_gnu_ld" = no; then
13063 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'
13065 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'
13068 link_all_deplibs_CXX=yes
13071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13072 hardcode_libdir_separator_CXX=:
13074 linux* | k*bsd*-gnu)
13075 case $cc_basename in
13077 # Kuck and Associates, Inc. (KAI) C++ Compiler
13079 # KCC will only create a shared library if the output file
13080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13081 # to its proper name (with version) after linking.
13082 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'
13083 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'
13084 # Commands to make compiler produce verbose output that lists
13085 # what "hidden" libraries, object files and flags are used when
13086 # linking a shared library.
13088 # There doesn't appear to be a way to prevent this compiler from
13089 # explicitly linking system object files so we need to strip them
13090 # from the output so that they don't get included in the library
13092 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'
13094 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13097 # Archives containing C++ object files must be created using
13098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13104 # version 8.0 and above of icpc choke on multiply defined symbols
13105 # if we add $predep_objects and $postdep_objects, however 7.1 and
13106 # earlier do not add the objects themselves.
13107 case `$CC -V 2>&1` in
13109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 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'
13112 *) # Version 8.0 or newer
13115 ia64*) tmp_idyn=' -i_dynamic';;
13117 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 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'
13121 archive_cmds_need_lc_CXX=no
13122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13124 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13127 # Portland Group C++ compiler
13128 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13129 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'
13131 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13133 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'
13137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138 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'
13140 runpath_var=LD_RUN_PATH
13141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13142 hardcode_libdir_separator_CXX=:
13144 # Commands to make compiler produce verbose output that lists
13145 # what "hidden" libraries, object files and flags are used when
13146 # linking a shared library.
13148 # There doesn't appear to be a way to prevent this compiler from
13149 # explicitly linking system object files so we need to strip them
13150 # from the output so that they don't get included in the library
13152 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'
13155 case `$CC -V 2>&1 | sed 5q` in
13158 no_undefined_flag_CXX=' -zdefs'
13159 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13161 hardcode_libdir_flag_spec_CXX='-R$libdir'
13162 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13164 # Not sure whether something based on
13165 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13167 output_verbose_link_cmd='echo'
13169 # Archives containing C++ object files must be created using
13170 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13171 # necessary to make sure instantiated templates are included
13173 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13180 # FIXME: insert proper C++ library support
13184 # FIXME: insert proper C++ library support
13188 case $cc_basename in
13190 # FIXME: insert proper C++ library support
13194 # FIXME: insert proper C++ library support
13199 netbsd* | netbsdelf*-gnu)
13200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13201 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13203 hardcode_libdir_flag_spec_CXX='-R$libdir'
13204 hardcode_direct_CXX=yes
13205 hardcode_shlibpath_var_CXX=no
13207 # Workaround some broken pre-1.5 toolchains
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13211 # C++ shared libraries are fairly broken
13215 if test -f /usr/libexec/ld.so; then
13216 hardcode_direct_CXX=yes
13217 hardcode_shlibpath_var_CXX=no
13218 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13219 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13221 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13222 export_dynamic_flag_spec_CXX='${wl}-E'
13223 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13225 output_verbose_link_cmd='echo'
13231 case $cc_basename in
13233 # Kuck and Associates, Inc. (KAI) C++ Compiler
13235 # KCC will only create a shared library if the output file
13236 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13237 # to its proper name (with version) after linking.
13238 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'
13240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241 hardcode_libdir_separator_CXX=:
13243 # Archives containing C++ object files must be created using
13244 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13245 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13249 # Rational C++ 2.4.1
13250 # FIXME: insert proper C++ library support
13254 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13255 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'
13257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258 hardcode_libdir_separator_CXX=:
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13264 # There doesn't appear to be a way to prevent this compiler from
13265 # explicitly linking system object files so we need to strip them
13266 # from the output so that they don't get included in the library
13268 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'
13271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13272 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13273 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'
13275 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13276 hardcode_libdir_separator_CXX=:
13278 # Commands to make compiler produce verbose output that lists
13279 # what "hidden" libraries, object files and flags are used when
13280 # linking a shared library.
13281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13284 # FIXME: insert proper C++ library support
13291 case $cc_basename in
13293 # Kuck and Associates, Inc. (KAI) C++ Compiler
13295 # KCC will only create a shared library if the output file
13296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13297 # to its proper name (with version) after linking.
13298 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'
13300 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13301 hardcode_libdir_separator_CXX=:
13303 # Archives containing C++ object files must be created using
13304 # the KAI C++ compiler.
13305 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13308 # Rational C++ 2.4.1
13309 # FIXME: insert proper C++ library support
13313 allow_undefined_flag_CXX=' -expect_unresolved \*'
13314 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'
13315 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13316 echo "-hidden">> $lib.exp~
13317 $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~
13320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13321 hardcode_libdir_separator_CXX=:
13323 # Commands to make compiler produce verbose output that lists
13324 # what "hidden" libraries, object files and flags are used when
13325 # linking a shared library.
13327 # There doesn't appear to be a way to prevent this compiler from
13328 # explicitly linking system object files so we need to strip them
13329 # from the output so that they don't get included in the library
13331 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'
13334 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13335 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13336 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'
13338 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13339 hardcode_libdir_separator_CXX=:
13341 # Commands to make compiler produce verbose output that lists
13342 # what "hidden" libraries, object files and flags are used when
13343 # linking a shared library.
13344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13347 # FIXME: insert proper C++ library support
13354 # FIXME: insert proper C++ library support
13358 case $cc_basename in
13361 # FIXME: insert proper C++ library support
13366 # FIXME: insert proper C++ library support
13370 # FIXME: insert proper C++ library support
13376 case $cc_basename in
13378 # Sun C++ 4.2, 5.x and Centerline C++
13379 archive_cmds_need_lc_CXX=yes
13380 no_undefined_flag_CXX=' -zdefs'
13381 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13383 $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'
13385 hardcode_libdir_flag_spec_CXX='-R$libdir'
13386 hardcode_shlibpath_var_CXX=no
13388 solaris2.[0-5] | solaris2.[0-5].*) ;;
13390 # The compiler driver will combine and reorder linker options,
13391 # but understands `-z linker_flag'.
13392 # Supported since Solaris 2.6 (maybe 2.5.1?)
13393 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13396 link_all_deplibs_CXX=yes
13398 output_verbose_link_cmd='echo'
13400 # Archives containing C++ object files must be created using
13401 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13402 # necessary to make sure instantiated templates are included
13404 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13407 # Green Hills C++ Compiler
13408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13410 # The C++ compiler must be used to create the archive.
13411 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13414 # GNU C++ compiler with Solaris linker
13415 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13416 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13417 if $CC --version | grep -v '^2\.7' > /dev/null; then
13418 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13419 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13420 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13422 # Commands to make compiler produce verbose output that lists
13423 # what "hidden" libraries, object files and flags are used when
13424 # linking a shared library.
13425 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13427 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13429 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13430 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13431 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13433 # Commands to make compiler produce verbose output that lists
13434 # what "hidden" libraries, object files and flags are used when
13435 # linking a shared library.
13436 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13439 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13441 solaris2.[0-5] | solaris2.[0-5].*) ;;
13443 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13450 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13451 no_undefined_flag_CXX='${wl}-z,text'
13452 archive_cmds_need_lc_CXX=no
13453 hardcode_shlibpath_var_CXX=no
13454 runpath_var='LD_RUN_PATH'
13456 case $cc_basename in
13458 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 sysv5* | sco3.2v5* | sco5v6*)
13468 # Note: We can NOT use -z defs as we might desire, because we do not
13469 # link with -lc, and that would cause any symbols used from libc to
13470 # always be unresolved, which means just about no library would
13471 # ever link correctly. If we're not using GNU ld we use -z text
13472 # though, which does catch some bad symbols but isn't as heavy-handed
13474 # For security reasons, it is highly recommended that you always
13475 # use absolute paths for naming shared libraries, and exclude the
13476 # DT_RUNPATH tag from executables and libraries. But doing so
13477 # requires that you compile everything twice, which is a pain.
13478 # So that behaviour is only enabled if SCOABSPATH is set to a
13479 # non-empty value in the environment. Most likely only useful for
13480 # creating official distributions of packages.
13481 # This is a hack until libtool officially supports absolute path
13482 # names for shared libraries.
13483 no_undefined_flag_CXX='${wl}-z,text'
13484 allow_undefined_flag_CXX='${wl}-z,nodefs'
13485 archive_cmds_need_lc_CXX=no
13486 hardcode_shlibpath_var_CXX=no
13487 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13488 hardcode_libdir_separator_CXX=':'
13489 link_all_deplibs_CXX=yes
13490 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13491 runpath_var='LD_RUN_PATH'
13493 case $cc_basename in
13495 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 case $cc_basename in
13507 # NonStop-UX NCC 3.20
13508 # FIXME: insert proper C++ library support
13512 # FIXME: insert proper C++ library support
13518 # FIXME: insert proper C++ library support
13522 # FIXME: insert proper C++ library support
13526 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13527 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13528 test "$ld_shlibs_CXX" = no && can_build_shared=no
13534 ## There is no encapsulation within the following macros, do not change
13535 ## the running order or otherwise move them around unless you know exactly
13536 ## what you are doing...
13538 cat > conftest.$ac_ext <<EOF
13542 Foo (void) { a = 0; }
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; then
13553 # Parse the compiler output and extract the necessary
13554 # objects, libraries and library flags.
13556 # Sentinel used to keep track of whether or not we are before
13557 # the conftest object file.
13558 pre_test_object_deps_done=no
13560 # The `*' in the case matches for architectures that use `case' in
13561 # $output_verbose_cmd can trigger glob expansion during the loop
13562 # eval without this substitution.
13563 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13565 for p in `eval $output_verbose_link_cmd`; do
13569 # Some compilers place space between "-{L,R}" and the path.
13570 # Remove the space.
13571 if test $p = "-L" \
13572 || test $p = "-R"; then
13579 if test "$pre_test_object_deps_done" = no; then
13582 # Internal compiler library paths should come after those
13583 # provided the user. The postdeps already come after the
13584 # user supplied libs so there is no need to process them.
13585 if test -z "$compiler_lib_search_path_CXX"; then
13586 compiler_lib_search_path_CXX="${prev}${p}"
13588 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13591 # The "-l" case would never come before the object being
13592 # linked, so don't bother handling this case.
13595 if test -z "$postdeps_CXX"; then
13596 postdeps_CXX="${prev}${p}"
13598 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13604 # This assumes that the test object file only shows up
13605 # once in the compiler output.
13606 if test "$p" = "conftest.$objext"; then
13607 pre_test_object_deps_done=yes
13611 if test "$pre_test_object_deps_done" = no; then
13612 if test -z "$predep_objects_CXX"; then
13613 predep_objects_CXX="$p"
13615 predep_objects_CXX="$predep_objects_CXX $p"
13618 if test -z "$postdep_objects_CXX"; then
13619 postdep_objects_CXX="$p"
13621 postdep_objects_CXX="$postdep_objects_CXX $p"
13626 *) ;; # Ignore the rest.
13634 echo "libtool.m4: error: problem compiling CXX test program"
13637 $rm -f confest.$objext
13639 # PORTME: override above test on systems where it is broken
13642 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13643 # hack all around it, let's just trust "g++" to DTRT.
13644 predep_objects_CXX=
13645 postdep_objects_CXX=
13650 case `$CC -V 2>&1 | sed 5q` in
13654 # The more standards-conforming stlport4 library is
13655 # incompatible with the Cstd library. Avoid specifying
13656 # it if it's in CXXFLAGS. Ignore libCrun as
13657 # -library=stlport4 depends on it.
13658 case " $CXX $CXXFLAGS " in
13659 *" -library=stlport4 "*)
13660 solaris_use_stlport4=yes
13663 if test "$solaris_use_stlport4" != yes; then
13664 postdeps_CXX='-library=Cstd -library=Crun'
13671 case $cc_basename in
13673 # The more standards-conforming stlport4 library is
13674 # incompatible with the Cstd library. Avoid specifying
13675 # it if it's in CXXFLAGS. Ignore libCrun as
13676 # -library=stlport4 depends on it.
13677 case " $CXX $CXXFLAGS " in
13678 *" -library=stlport4 "*)
13679 solaris_use_stlport4=yes
13683 # Adding this requires a known-good setup of shared libraries for
13684 # Sun compiler versions before 5.6, else PIC objects from an old
13685 # archive will be linked into the output, leading to subtle bugs.
13686 if test "$solaris_use_stlport4" != yes; then
13687 postdeps_CXX='-library=Cstd -library=Crun'
13695 case " $postdeps_CXX " in
13696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13699 lt_prog_compiler_wl_CXX=
13700 lt_prog_compiler_pic_CXX=
13701 lt_prog_compiler_static_CXX=
13703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13706 # C++ specific cases for pic, static, wl, etc.
13707 if test "$GXX" = yes; then
13708 lt_prog_compiler_wl_CXX='-Wl,'
13709 lt_prog_compiler_static_CXX='-static'
13713 # All AIX code is PIC.
13714 if test "$host_cpu" = ia64; then
13715 # AIX 5 now supports IA64 processor
13716 lt_prog_compiler_static_CXX='-Bstatic'
13720 # FIXME: we need at least 68020 code to build shared libraries, but
13721 # adding the `-m68020' flag to GCC prevents building anything better,
13723 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13725 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13726 # PIC is the default for these OSes.
13728 mingw* | cygwin* | os2* | pw32*)
13729 # This hack is so that the source file can tell whether it is being
13730 # built for inclusion in a dll (and should export symbols for example).
13731 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13732 # (--disable-auto-import) libraries
13733 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13735 darwin* | rhapsody*)
13736 # PIC is the default on this platform
13737 # Common symbols not allowed in MH_DYLIB files
13738 lt_prog_compiler_pic_CXX='-fno-common'
13741 # DJGPP does not support shared libraries at all
13742 lt_prog_compiler_pic_CXX=
13745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13746 # Instead, we relocate shared libraries at runtime.
13749 if test -d /usr/nec; then
13750 lt_prog_compiler_pic_CXX=-Kconform_pic
13754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13755 # not for PA HP-UX.
13760 lt_prog_compiler_pic_CXX='-fPIC'
13765 lt_prog_compiler_pic_CXX='-fPIC'
13771 # All AIX code is PIC.
13772 if test "$host_cpu" = ia64; then
13773 # AIX 5 now supports IA64 processor
13774 lt_prog_compiler_static_CXX='-Bstatic'
13776 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13780 case $cc_basename in
13782 # Green Hills C++ Compiler
13783 # _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"
13788 # PIC is the default on this platform
13789 # Common symbols not allowed in MH_DYLIB files
13790 case $cc_basename in
13792 lt_prog_compiler_pic_CXX='-qnocommon'
13793 lt_prog_compiler_wl_CXX='-Wl,'
13798 case $cc_basename in
13800 lt_prog_compiler_pic_CXX='-KPIC'
13803 # Green Hills C++ Compiler
13804 lt_prog_compiler_pic_CXX='-pic'
13810 freebsd* | dragonfly*)
13811 # FreeBSD uses GNU C++
13813 hpux9* | hpux10* | hpux11*)
13814 case $cc_basename in
13816 lt_prog_compiler_wl_CXX='-Wl,'
13817 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13818 if test "$host_cpu" != ia64; then
13819 lt_prog_compiler_pic_CXX='+Z'
13823 lt_prog_compiler_wl_CXX='-Wl,'
13824 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13830 lt_prog_compiler_pic_CXX='+Z'
13839 # This is c89, which is MS Visual C++ (no shared libs)
13840 # Anyone wants to do a port?
13842 irix5* | irix6* | nonstopux*)
13843 case $cc_basename in
13845 lt_prog_compiler_wl_CXX='-Wl,'
13846 lt_prog_compiler_static_CXX='-non_shared'
13847 # CC pic flag -KPIC is the default.
13853 linux* | k*bsd*-gnu)
13854 case $cc_basename in
13857 lt_prog_compiler_wl_CXX='--backend -Wl,'
13858 lt_prog_compiler_pic_CXX='-fPIC'
13862 lt_prog_compiler_wl_CXX='-Wl,'
13863 lt_prog_compiler_pic_CXX='-KPIC'
13864 lt_prog_compiler_static_CXX='-static'
13867 # Portland Group C++ compiler.
13868 lt_prog_compiler_wl_CXX='-Wl,'
13869 lt_prog_compiler_pic_CXX='-fpic'
13870 lt_prog_compiler_static_CXX='-Bstatic'
13874 # Make sure the PIC flag is empty. It appears that all Alpha
13875 # Linux and Compaq Tru64 Unix objects are PIC.
13876 lt_prog_compiler_pic_CXX=
13877 lt_prog_compiler_static_CXX='-non_shared'
13880 case `$CC -V 2>&1 | sed 5q` in
13883 lt_prog_compiler_pic_CXX='-KPIC'
13884 lt_prog_compiler_static_CXX='-Bstatic'
13885 lt_prog_compiler_wl_CXX='-Qoption ld '
13896 case $cc_basename in
13898 lt_prog_compiler_pic_CXX='-W c,exportall'
13904 netbsd* | netbsdelf*-gnu)
13906 osf3* | osf4* | osf5*)
13907 case $cc_basename in
13909 lt_prog_compiler_wl_CXX='--backend -Wl,'
13912 # Rational C++ 2.4.1
13913 lt_prog_compiler_pic_CXX='-pic'
13916 # Digital/Compaq C++
13917 lt_prog_compiler_wl_CXX='-Wl,'
13918 # Make sure the PIC flag is empty. It appears that all Alpha
13919 # Linux and Compaq Tru64 Unix objects are PIC.
13920 lt_prog_compiler_pic_CXX=
13921 lt_prog_compiler_static_CXX='-non_shared'
13930 case $cc_basename in
13932 # Sun C++ 4.2, 5.x and Centerline C++
13933 lt_prog_compiler_pic_CXX='-KPIC'
13934 lt_prog_compiler_static_CXX='-Bstatic'
13935 lt_prog_compiler_wl_CXX='-Qoption ld '
13938 # Green Hills C++ Compiler
13939 lt_prog_compiler_pic_CXX='-PIC'
13946 case $cc_basename in
13949 lt_prog_compiler_pic_CXX='-pic'
13950 lt_prog_compiler_static_CXX='-Bstatic'
13954 lt_prog_compiler_pic_CXX='-pic'
13961 case $cc_basename in
13963 # NonStop-UX NCC 3.20
13964 lt_prog_compiler_pic_CXX='-KPIC'
13970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13971 case $cc_basename in
13973 lt_prog_compiler_wl_CXX='-Wl,'
13974 lt_prog_compiler_pic_CXX='-KPIC'
13975 lt_prog_compiler_static_CXX='-Bstatic'
13982 lt_prog_compiler_can_build_shared_CXX=no
13987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13988 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13991 # Check to make sure the PIC flag actually works.
13993 if test -n "$lt_prog_compiler_pic_CXX"; then
13995 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13996 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13997 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 lt_prog_compiler_pic_works_CXX=no
14001 ac_outfile=conftest.$ac_objext
14002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14003 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14004 # Insert the option either (1) after the last *FLAGS variable, or
14005 # (2) before a word containing "conftest.", or (3) at the end.
14006 # Note that $ac_compile itself does not contain backslashes and begins
14007 # with a dollar sign (not a hyphen), so the echo should work correctly.
14008 # The option is referenced via a variable to avoid confusing sed.
14009 lt_compile=`echo "$ac_compile" | $SED \
14010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14012 -e 's:$: $lt_compiler_flag:'`
14013 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14014 (eval "$lt_compile" 2>conftest.err)
14016 cat conftest.err >&5
14017 echo "$as_me:__oline__: \$? = $ac_status" >&5
14018 if (exit $ac_status) && test -s "$ac_outfile"; then
14019 # The compiler can only warn and ignore the option if not recognized
14020 # So say no if there are warnings other than the usual output.
14021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14024 lt_prog_compiler_pic_works_CXX=yes
14030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14031 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14033 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14034 case $lt_prog_compiler_pic_CXX in
14036 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14039 lt_prog_compiler_pic_CXX=
14040 lt_prog_compiler_can_build_shared_CXX=no
14045 # For platforms which do not support PIC, -DPIC is meaningless:
14047 lt_prog_compiler_pic_CXX=
14050 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14055 # Check to make sure the static flag actually works.
14057 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14058 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14059 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14060 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 lt_prog_compiler_static_works_CXX=no
14064 save_LDFLAGS="$LDFLAGS"
14065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14068 # The linker can only warn and ignore the option if not recognized
14069 # So say no if there are warnings
14070 if test -s conftest.err; then
14071 # Append any errors to the config.log.
14072 cat conftest.err 1>&5
14073 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14075 if diff conftest.exp conftest.er2 >/dev/null; then
14076 lt_prog_compiler_static_works_CXX=yes
14079 lt_prog_compiler_static_works_CXX=yes
14083 LDFLAGS="$save_LDFLAGS"
14086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14087 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14089 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14092 lt_prog_compiler_static_CXX=
14096 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14098 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 lt_cv_prog_compiler_c_o_CXX=no
14102 $rm -r conftest 2>/dev/null
14106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14108 lt_compiler_flag="-o out/conftest2.$ac_objext"
14109 # Insert the option either (1) after the last *FLAGS variable, or
14110 # (2) before a word containing "conftest.", or (3) at the end.
14111 # Note that $ac_compile itself does not contain backslashes and begins
14112 # with a dollar sign (not a hyphen), so the echo should work correctly.
14113 lt_compile=`echo "$ac_compile" | $SED \
14114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14116 -e 's:$: $lt_compiler_flag:'`
14117 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14118 (eval "$lt_compile" 2>out/conftest.err)
14120 cat out/conftest.err >&5
14121 echo "$as_me:__oline__: \$? = $ac_status" >&5
14122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14124 # The compiler can only warn and ignore the option if not recognized
14125 # So say no if there are warnings
14126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14129 lt_cv_prog_compiler_c_o_CXX=yes
14134 # SGI C++ compiler will create directory out/ii_files/ for
14135 # template instantiation
14136 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14137 $rm out/* && rmdir out
14143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14147 hard_links="nottested"
14148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149 # do not overwrite the value of need_locks provided by the user
14150 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156 ln conftest.a conftest.b 2>&5 || hard_links=no
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 { echo "$as_me:$LINENO: result: $hard_links" >&5
14159 echo "${ECHO_T}$hard_links" >&6; }
14160 if test "$hard_links" = no; then
14161 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14169 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14172 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175 # If we're using GNU nm, then we don't want the "-C" option.
14176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14178 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'
14180 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'
14184 export_symbols_cmds_CXX="$ltdll_cmds"
14187 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'
14189 linux* | k*bsd*-gnu)
14190 link_all_deplibs_CXX=no
14193 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14198 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14199 test "$ld_shlibs_CXX" = no && can_build_shared=no
14202 # Do we need to explicitly link libc?
14204 case "x$archive_cmds_need_lc_CXX" in
14206 # Assume -lc should be added
14207 archive_cmds_need_lc_CXX=yes
14209 if test "$enable_shared" = yes && test "$GCC" = yes; then
14210 case $archive_cmds_CXX in
14212 # FIXME: we may have to deal with multi-command sequences.
14215 # Test whether the compiler implicitly links with -lc since on some
14216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14217 # to ld, don't add -lc before -lgcc.
14218 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224 (eval $ac_compile) 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } 2>conftest.err; then
14230 libobjs=conftest.$ac_objext
14232 wl=$lt_prog_compiler_wl_CXX
14233 pic_flag=$lt_prog_compiler_pic_CXX
14239 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14240 allow_undefined_flag_CXX=
14241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14242 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }
14247 archive_cmds_need_lc_CXX=no
14249 archive_cmds_need_lc_CXX=yes
14251 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14253 cat conftest.err 1>&5
14256 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14257 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14264 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14265 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14266 library_names_spec=
14267 libname_spec='lib$name'
14271 postuninstall_cmds=
14275 shlibpath_overrides_runpath=unknown
14277 dynamic_linker="$host_os ld.so"
14278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14280 need_lib_prefix=unknown
14281 hardcode_into_libs=no
14283 # when you set need_version to no, make sure it does not cause -set_version
14284 # flags to be left without arguments
14285 need_version=unknown
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14291 shlibpath_var=LIBPATH
14293 # AIX 3 has no versioning support, so we append a major version to the name.
14294 soname_spec='${libname}${release}${shared_ext}$major'
14301 hardcode_into_libs=yes
14302 if test "$host_cpu" = ia64; then
14303 # AIX 5 supports IA64
14304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14305 shlibpath_var=LD_LIBRARY_PATH
14307 # With GCC up to 2.95.x, collect2 would create an import file
14308 # for dependence libraries. The import file would start with
14309 # the line `#! .'. This would cause the generated library to
14310 # depend on `.', always an invalid library. This was fixed in
14311 # development snapshots of GCC prior to 3.0.
14313 aix4 | aix4.[01] | aix4.[01].*)
14314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14319 can_build_shared=no
14323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14324 # soname into executable. Probably we can add versioning support to
14325 # collect2, so additional links can be useful in future.
14326 if test "$aix_use_runtimelinking" = yes; then
14327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14328 # instead of lib<name>.a to let people know that these are not
14329 # typical AIX shared libraries.
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 # We preserve .a as extension for shared libraries through AIX4.2
14333 # and later when we are not doing run time linking.
14334 library_names_spec='${libname}${release}.a $libname.a'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14337 shlibpath_var=LIBPATH
14342 library_names_spec='$libname.ixlibrary $libname.a'
14343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14344 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'
14348 library_names_spec='${libname}${shared_ext}'
14349 dynamic_linker="$host_os ld.so"
14350 shlibpath_var=LIBRARY_PATH
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14359 shlibpath_var=LD_LIBRARY_PATH
14360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14362 # the default ld.so.conf also contains /usr/contrib/lib and
14363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14364 # libtool to hard-code these into programs
14367 cygwin* | mingw* | pw32*)
14368 version_type=windows
14373 case $GCC,$host_os in
14374 yes,cygwin* | yes,mingw* | yes,pw32*)
14375 library_names_spec='$libname.dll.a'
14376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14377 postinstall_cmds='base_file=`basename \${file}`~
14378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14379 dldir=$destdir/`dirname \$dlpath`~
14380 test -d \$dldir || mkdir -p \$dldir~
14381 $install_prog $dir/$dlname \$dldir/$dlname~
14382 chmod a+x \$dldir/$dlname'
14383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14384 dlpath=$dir/\$dldll~
14386 shlibpath_overrides_runpath=yes
14390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14395 # MinGW DLLs use traditional 'lib' prefix
14396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14399 # It is most probably a Windows format PATH printed by
14400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14401 # path with ; separators, and with drive letters. We can handle the
14402 # drive letters (cygwin fileutils understands them), so leave them,
14403 # especially as we might pass files found there to a mingw objdump,
14404 # which wouldn't understand a cygwinified path. Ahh.
14405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14411 # pw32 DLLs use 'pw' prefix rather than 'lib'
14412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14421 dynamic_linker='Win32 ld.exe'
14422 # FIXME: first we should search . and the directory the executable is in
14426 darwin* | rhapsody*)
14427 dynamic_linker="$host_os dyld"
14428 version_type=darwin
14431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14432 soname_spec='${libname}${release}${major}$shared_ext'
14433 shlibpath_overrides_runpath=yes
14434 shlibpath_var=DYLD_LIBRARY_PATH
14435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 shlibpath_var=LD_LIBRARY_PATH
14453 freebsd* | dragonfly*)
14454 # DragonFly does not have aout. When/if they implement a new
14455 # versioning mechanism, adjust this.
14456 if test -x /usr/bin/objformat; then
14457 objformat=`/usr/bin/objformat`
14460 freebsd[123]*) objformat=aout ;;
14461 *) objformat=elf ;;
14464 version_type=freebsd-$objformat
14465 case $version_type in
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14476 shlibpath_var=LD_LIBRARY_PATH
14479 shlibpath_overrides_runpath=yes
14481 freebsd3.[01]* | freebsdelf3.[01]*)
14482 shlibpath_overrides_runpath=yes
14483 hardcode_into_libs=yes
14485 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14486 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14487 shlibpath_overrides_runpath=no
14488 hardcode_into_libs=yes
14490 *) # from 4.6 on, and DragonFly
14491 shlibpath_overrides_runpath=yes
14492 hardcode_into_libs=yes
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 hardcode_into_libs=yes
14507 hpux9* | hpux10* | hpux11*)
14508 # Give a soname corresponding to the major version so that dld.sl refuses to
14509 # link against other versions.
14516 hardcode_into_libs=yes
14517 dynamic_linker="$host_os dld.so"
14518 shlibpath_var=LD_LIBRARY_PATH
14519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 if test "X$HPUX_IA64_MODE" = X32; then
14523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14531 hardcode_into_libs=yes
14532 dynamic_linker="$host_os dld.sl"
14533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14542 dynamic_linker="$host_os dld.sl"
14543 shlibpath_var=SHLIB_PATH
14544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14549 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14550 postinstall_cmds='chmod 555 $lib'
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=no
14562 hardcode_into_libs=yes
14565 irix5* | irix6* | nonstopux*)
14567 nonstopux*) version_type=nonstopux ;;
14569 if test "$lt_cv_prog_gnu_ld" = yes; then
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14580 irix5* | nonstopux*)
14581 libsuff= shlibsuff=
14584 case $LD in # libtool.m4 will add one of these switches to LD
14585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14586 libsuff= shlibsuff= libmagic=32-bit;;
14587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14588 libsuff=32 shlibsuff=N32 libmagic=N32;;
14589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14591 *) libsuff= shlibsuff= libmagic=never-match;;
14595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14596 shlibpath_overrides_runpath=no
14597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14599 hardcode_into_libs=yes
14602 # No shared lib support for Linux oldld, aout, or coff.
14603 linux*oldld* | linux*aout* | linux*coff*)
14607 # This must be Linux ELF.
14608 linux* | k*bsd*-gnu)
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 # This implies no fast_install, which is unacceptable.
14618 # Some rework will be needed to allow for fast_install
14619 # before this can be enabled.
14620 hardcode_into_libs=yes
14622 # Append ld.so.conf contents to the search path
14623 if test -f /etc/ld.so.conf; then
14624 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14625 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14628 # We used to test for /lib/ld.so.1 and disable shared libraries on
14629 # powerpc, because MkLinux only supported shared libraries with the
14630 # GNU dynamic linker. Since this was broken with cross compilers,
14631 # most powerpc-linux boxes support dynamic linking these days and
14632 # people can always --disable-shared, the test was removed, and we
14633 # assume the GNU/Linux dynamic linker is in use.
14634 dynamic_linker='GNU/Linux ld.so'
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14642 soname_spec='${libname}${release}${shared_ext}$major'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14646 dynamic_linker='NetBSD ld.elf_so'
14653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14656 dynamic_linker='NetBSD (a.out) ld.so'
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 dynamic_linker='NetBSD ld.elf_so'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14664 hardcode_into_libs=yes
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 shlibpath_overrides_runpath=yes
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679 soname_spec='${libname}${release}${shared_ext}$major'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=yes
14686 sys_lib_dlsearch_path_spec="/usr/lib"
14688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14691 *) need_version=no ;;
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14698 openbsd2.[89] | openbsd2.[89].*)
14699 shlibpath_overrides_runpath=no
14702 shlibpath_overrides_runpath=yes
14706 shlibpath_overrides_runpath=yes
14711 libname_spec='$name'
14714 library_names_spec='$libname${shared_ext} $libname.a'
14715 dynamic_linker='OS/2 ld.exe'
14716 shlibpath_var=LIBPATH
14719 osf3* | osf4* | osf5*)
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725 shlibpath_var=LD_LIBRARY_PATH
14726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes
14742 hardcode_into_libs=yes
14743 # ldd complains unless libraries are executable
14744 postinstall_cmds='chmod +x $lib'
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=yes
14753 if test "$with_gnu_ld" = yes; then
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 case $host_vendor in
14766 shlibpath_overrides_runpath=no
14768 export_dynamic_flag_spec='${wl}-Blargedynsym'
14769 runpath_var=LD_RUN_PATH
14777 shlibpath_overrides_runpath=no
14778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14784 if test -d /usr/nec ;then
14786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14787 soname_spec='$libname${shared_ext}.$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14793 version_type=freebsd-elf
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 hardcode_into_libs=yes
14800 if test "$with_gnu_ld" = yes; then
14801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14802 shlibpath_overrides_runpath=no
14804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14805 shlibpath_overrides_runpath=yes
14808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14812 sys_lib_dlsearch_path_spec='/usr/lib'
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14826 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14827 echo "${ECHO_T}$dynamic_linker" >&6; }
14828 test "$dynamic_linker" = no && can_build_shared=no
14830 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14831 if test "$GCC" = yes; then
14832 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14835 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14836 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14837 hardcode_action_CXX=
14838 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14839 test -n "$runpath_var_CXX" || \
14840 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14842 # We can hardcode non-existant directories.
14843 if test "$hardcode_direct_CXX" != no &&
14844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14845 # have to relink, otherwise we might link with an installed library
14846 # when we should be linking with a yet-to-be-installed one
14847 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14848 test "$hardcode_minus_L_CXX" != no; then
14849 # Linking always hardcodes the temporary library directory.
14850 hardcode_action_CXX=relink
14852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14853 hardcode_action_CXX=immediate
14856 # We cannot hardcode anything, or else we can only hardcode existing
14858 hardcode_action_CXX=unsupported
14860 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14861 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14863 if test "$hardcode_action_CXX" = relink; then
14864 # Fast installation is not supported
14865 enable_fast_install=no
14866 elif test "$shlibpath_overrides_runpath" = yes ||
14867 test "$enable_shared" = no; then
14868 # Fast installation is not necessary
14869 enable_fast_install=needless
14873 # The else clause should only fire when bootstrapping the
14874 # libtool distribution, otherwise you forgot to ship ltmain.sh
14875 # with your package, and you will get complaints that there are
14876 # no rules to generate ltmain.sh.
14877 if test -f "$ltmain"; then
14878 # See if we are running on zsh, and set the options which allow our commands through
14879 # without removal of \ escapes.
14880 if test -n "${ZSH_VERSION+set}" ; then
14881 setopt NO_GLOB_SUBST
14883 # Now quote all the things that may contain metacharacters while being
14884 # careful not to overquote the AC_SUBSTed values. We take copies of the
14885 # variables and quote the copies for generation of the libtool script.
14886 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14888 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14889 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14890 deplibs_check_method reload_flag reload_cmds need_locks \
14891 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14892 lt_cv_sys_global_symbol_to_c_name_address \
14893 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14894 old_postinstall_cmds old_postuninstall_cmds \
14898 lt_prog_compiler_wl_CXX \
14899 lt_prog_compiler_pic_CXX \
14900 lt_prog_compiler_static_CXX \
14901 lt_prog_compiler_no_builtin_flag_CXX \
14902 export_dynamic_flag_spec_CXX \
14903 thread_safe_flag_spec_CXX \
14904 whole_archive_flag_spec_CXX \
14905 enable_shared_with_static_runtimes_CXX \
14906 old_archive_cmds_CXX \
14907 old_archive_from_new_cmds_CXX \
14908 predep_objects_CXX \
14909 postdep_objects_CXX \
14912 compiler_lib_search_path_CXX \
14914 archive_expsym_cmds_CXX \
14915 postinstall_cmds_CXX \
14916 postuninstall_cmds_CXX \
14917 old_archive_from_expsyms_cmds_CXX \
14918 allow_undefined_flag_CXX \
14919 no_undefined_flag_CXX \
14920 export_symbols_cmds_CXX \
14921 hardcode_libdir_flag_spec_CXX \
14922 hardcode_libdir_flag_spec_ld_CXX \
14923 hardcode_libdir_separator_CXX \
14924 hardcode_automatic_CXX \
14926 module_expsym_cmds_CXX \
14927 lt_cv_prog_compiler_c_o_CXX \
14928 fix_srcfile_path_CXX \
14929 exclude_expsyms_CXX \
14930 include_expsyms_CXX; do
14933 old_archive_cmds_CXX | \
14934 old_archive_from_new_cmds_CXX | \
14935 archive_cmds_CXX | \
14936 archive_expsym_cmds_CXX | \
14937 module_cmds_CXX | \
14938 module_expsym_cmds_CXX | \
14939 old_archive_from_expsyms_cmds_CXX | \
14940 export_symbols_cmds_CXX | \
14941 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14942 postinstall_cmds | postuninstall_cmds | \
14943 old_postinstall_cmds | old_postuninstall_cmds | \
14944 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14945 # Double-quote double-evaled strings.
14946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14955 *'\$0 --fallback-echo"')
14956 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14962 cat <<__EOF__ >> "$cfgfile"
14963 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14967 # Shell to use when invoking shell scripts.
14970 # Whether or not to build shared libraries.
14971 build_libtool_libs=$enable_shared
14973 # Whether or not to build static libraries.
14974 build_old_libs=$enable_static
14976 # Whether or not to add -lc for building shared libraries.
14977 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14979 # Whether or not to disallow shared libs when runtime libs are static
14980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14982 # Whether or not to optimize for fast installation.
14983 fast_install=$enable_fast_install
14986 host_alias=$host_alias
14990 # The build system.
14991 build_alias=$build_alias
14995 # An echo program that does not interpret backslashes.
15000 AR_FLAGS=$lt_AR_FLAGS
15005 # LTCC compiler flags.
15006 LTCFLAGS=$lt_LTCFLAGS
15008 # A language-specific compiler.
15009 CC=$lt_compiler_CXX
15011 # Is the compiler the GNU C compiler?
15017 # The linker used to build libraries.
15020 # Whether we need hard or soft links.
15023 # A BSD-compatible nm program.
15026 # A symbol stripping program
15029 # Used to examine libraries when file_magic_cmd begins "file"
15030 MAGIC_CMD=$MAGIC_CMD
15032 # Used on cygwin: DLL creation program.
15035 # Used on cygwin: object dumper.
15038 # Used on cygwin: assembler.
15041 # The name of the directory that contains temporary libtool files.
15044 # How to create reloadable object files.
15045 reload_flag=$lt_reload_flag
15046 reload_cmds=$lt_reload_cmds
15048 # How to pass a linker flag through the compiler.
15049 wl=$lt_lt_prog_compiler_wl_CXX
15051 # Object file suffix (normally "o").
15052 objext="$ac_objext"
15054 # Old archive suffix (normally "a").
15057 # Shared library suffix (normally ".so").
15058 shrext_cmds='$shrext_cmds'
15060 # Executable file suffix (normally "").
15063 # Additional compiler flags for building library objects.
15064 pic_flag=$lt_lt_prog_compiler_pic_CXX
15067 # What is the maximum length of a command?
15068 max_cmd_len=$lt_cv_sys_max_cmd_len
15070 # Does compiler simultaneously support -c and -o options?
15071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15073 # Must we lock files when doing compilation?
15074 need_locks=$lt_need_locks
15076 # Do we need the lib prefix for modules?
15077 need_lib_prefix=$need_lib_prefix
15079 # Do we need a version for libraries?
15080 need_version=$need_version
15082 # Whether dlopen is supported.
15083 dlopen_support=$enable_dlopen
15085 # Whether dlopen of programs is supported.
15086 dlopen_self=$enable_dlopen_self
15088 # Whether dlopen of statically linked programs is supported.
15089 dlopen_self_static=$enable_dlopen_self_static
15091 # Compiler flag to prevent dynamic linking.
15092 link_static_flag=$lt_lt_prog_compiler_static_CXX
15094 # Compiler flag to turn off builtin functions.
15095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15097 # Compiler flag to allow reflexive dlopens.
15098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15100 # Compiler flag to generate shared objects directly from archives.
15101 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15103 # Compiler flag to generate thread-safe objects.
15104 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15106 # Library versioning type.
15107 version_type=$version_type
15109 # Format of library name prefix.
15110 libname_spec=$lt_libname_spec
15112 # List of archive names. First name is the real one, the rest are links.
15113 # The last name is the one that the linker finds with -lNAME.
15114 library_names_spec=$lt_library_names_spec
15116 # The coded name of the library, if different from the real name.
15117 soname_spec=$lt_soname_spec
15119 # Commands used to build and install an old-style archive.
15121 old_archive_cmds=$lt_old_archive_cmds_CXX
15122 old_postinstall_cmds=$lt_old_postinstall_cmds
15123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15125 # Create an old-style archive from a shared archive.
15126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15128 # Create a temporary old-style archive to link instead of a shared archive.
15129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15131 # Commands used to build and install a shared archive.
15132 archive_cmds=$lt_archive_cmds_CXX
15133 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15134 postinstall_cmds=$lt_postinstall_cmds
15135 postuninstall_cmds=$lt_postuninstall_cmds
15137 # Commands used to build a loadable module (assumed same as above if empty)
15138 module_cmds=$lt_module_cmds_CXX
15139 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15141 # Commands to strip libraries.
15142 old_striplib=$lt_old_striplib
15143 striplib=$lt_striplib
15145 # Dependencies to place before the objects being linked to create a
15147 predep_objects=$lt_predep_objects_CXX
15149 # Dependencies to place after the objects being linked to create a
15151 postdep_objects=$lt_postdep_objects_CXX
15153 # Dependencies to place before the objects being linked to create a
15155 predeps=$lt_predeps_CXX
15157 # Dependencies to place after the objects being linked to create a
15159 postdeps=$lt_postdeps_CXX
15161 # The library search path used internally by the compiler when linking
15162 # a shared library.
15163 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15165 # Method to check whether dependent libraries are shared objects.
15166 deplibs_check_method=$lt_deplibs_check_method
15168 # Command to use when deplibs_check_method == file_magic.
15169 file_magic_cmd=$lt_file_magic_cmd
15171 # Flag that allows shared libraries with undefined symbols to be built.
15172 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15174 # Flag that forces no undefined symbols.
15175 no_undefined_flag=$lt_no_undefined_flag_CXX
15177 # Commands used to finish a libtool library installation in a directory.
15178 finish_cmds=$lt_finish_cmds
15180 # Same as above, but a single script fragment to be evaled but not shown.
15181 finish_eval=$lt_finish_eval
15183 # Take the output of nm and produce a listing of raw symbols and C names.
15184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15186 # Transform the output of nm in a proper C declaration
15187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15189 # Transform the output of nm in a C name address pair
15190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15192 # This is the shared library runtime path variable.
15193 runpath_var=$runpath_var
15195 # This is the shared library path variable.
15196 shlibpath_var=$shlibpath_var
15198 # Is shlibpath searched before the hard-coded library search path?
15199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15201 # How to hardcode a shared library path into an executable.
15202 hardcode_action=$hardcode_action_CXX
15204 # Whether we should hardcode library paths into libraries.
15205 hardcode_into_libs=$hardcode_into_libs
15207 # Flag to hardcode \$libdir into a binary during linking.
15208 # This must work even if \$libdir does not exist.
15209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15211 # If ld is used when linking, flag to hardcode \$libdir into
15212 # a binary during linking. This must work even if \$libdir does
15214 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15216 # Whether we need a single -rpath flag with a separated argument.
15217 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15219 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15220 # resulting binary.
15221 hardcode_direct=$hardcode_direct_CXX
15223 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15224 # resulting binary.
15225 hardcode_minus_L=$hardcode_minus_L_CXX
15227 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15228 # the resulting binary.
15229 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15231 # Set to yes if building a shared library automatically hardcodes DIR into the library
15232 # and all subsequent libraries and executables linked against it.
15233 hardcode_automatic=$hardcode_automatic_CXX
15235 # Variables whose values should be saved in libtool wrapper scripts and
15236 # restored at relink time.
15237 variables_saved_for_relink="$variables_saved_for_relink"
15239 # Whether libtool must link a program against all its dependency libraries.
15240 link_all_deplibs=$link_all_deplibs_CXX
15242 # Compile-time system search path for libraries
15243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15245 # Run-time system search path for libraries
15246 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15248 # Fix the shell variable \$srcfile for the compiler.
15249 fix_srcfile_path=$lt_fix_srcfile_path
15251 # Set to yes if exported symbols are required.
15252 always_export_symbols=$always_export_symbols_CXX
15254 # The commands to list exported symbols.
15255 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15257 # The commands to extract the exported symbol list from a shared archive.
15258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15260 # Symbols that should not be listed in the preloaded symbols.
15261 exclude_expsyms=$lt_exclude_expsyms_CXX
15263 # Symbols that must always be exported.
15264 include_expsyms=$lt_include_expsyms_CXX
15266 # ### END LIBTOOL TAG CONFIG: $tagname
15272 # If there is no Makefile yet, we rely on a make rule to execute
15273 # `config.status --recheck' to rerun these tests and create the
15274 # libtool script then.
15275 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15276 if test -f "$ltmain_in"; then
15277 test -f Makefile && make "$ltmain"
15283 ac_cpp='$CPP $CPPFLAGS'
15284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15292 with_gnu_ldcxx=$with_gnu_ld
15293 with_gnu_ld=$lt_save_with_gnu_ld
15294 lt_cv_path_LDCXX=$lt_cv_path_LD
15295 lt_cv_path_LD=$lt_save_path_LD
15296 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15297 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15305 if test -n "$F77" && test "X$F77" != "Xno"; then
15308 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15309 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15313 archive_cmds_need_lc_F77=no
15314 allow_undefined_flag_F77=
15315 always_export_symbols_F77=no
15316 archive_expsym_cmds_F77=
15317 export_dynamic_flag_spec_F77=
15318 hardcode_direct_F77=no
15319 hardcode_libdir_flag_spec_F77=
15320 hardcode_libdir_flag_spec_ld_F77=
15321 hardcode_libdir_separator_F77=
15322 hardcode_minus_L_F77=no
15323 hardcode_automatic_F77=no
15325 module_expsym_cmds_F77=
15326 link_all_deplibs_F77=unknown
15327 old_archive_cmds_F77=$old_archive_cmds
15328 no_undefined_flag_F77=
15329 whole_archive_flag_spec_F77=
15330 enable_shared_with_static_runtimes_F77=no
15332 # Source file extension for f77 test sources.
15335 # Object file extension for compiled f77 test sources.
15339 # Code to be used in simple compile tests
15340 lt_simple_compile_test_code="\
15346 # Code to be used in simple link tests
15347 lt_simple_link_test_code="\
15352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15354 # If no C compiler was specified, use CC.
15357 # If no C compiler flags were specified, use CFLAGS.
15358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15360 # Allow CC to be a program name with arguments.
15364 # save warnings/boilerplate of simple test code
15365 ac_outfile=conftest.$ac_objext
15366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15368 _lt_compiler_boilerplate=`cat conftest.err`
15371 ac_outfile=conftest.$ac_objext
15372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15374 _lt_linker_boilerplate=`cat conftest.err`
15378 # Allow CC to be a program name with arguments.
15383 for cc_temp in $compiler""; do
15385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15394 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15395 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15396 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15397 echo "${ECHO_T}$can_build_shared" >&6; }
15399 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15400 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15401 test "$can_build_shared" = "no" && enable_shared=no
15403 # On AIX, shared libraries and static libraries use the same namespace, and
15404 # are all built from PIC.
15407 test "$enable_shared" = yes && enable_static=no
15408 if test -n "$RANLIB"; then
15409 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15410 postinstall_cmds='$RANLIB $lib'
15414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15415 test "$enable_shared" = yes && enable_static=no
15419 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15420 echo "${ECHO_T}$enable_shared" >&6; }
15422 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15423 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15424 # Make sure either enable_shared or enable_static is yes.
15425 test "$enable_shared" = yes || enable_static=yes
15426 { echo "$as_me:$LINENO: result: $enable_static" >&5
15427 echo "${ECHO_T}$enable_static" >&6; }
15432 lt_prog_compiler_wl_F77=
15433 lt_prog_compiler_pic_F77=
15434 lt_prog_compiler_static_F77=
15436 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15437 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15439 if test "$GCC" = yes; then
15440 lt_prog_compiler_wl_F77='-Wl,'
15441 lt_prog_compiler_static_F77='-static'
15445 # All AIX code is PIC.
15446 if test "$host_cpu" = ia64; then
15447 # AIX 5 now supports IA64 processor
15448 lt_prog_compiler_static_F77='-Bstatic'
15453 # FIXME: we need at least 68020 code to build shared libraries, but
15454 # adding the `-m68020' flag to GCC prevents building anything better,
15456 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15460 # PIC is the default for these OSes.
15463 mingw* | cygwin* | pw32* | os2*)
15464 # This hack is so that the source file can tell whether it is being
15465 # built for inclusion in a dll (and should export symbols for example).
15466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15467 # (--disable-auto-import) libraries
15468 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15471 darwin* | rhapsody*)
15472 # PIC is the default on this platform
15473 # Common symbols not allowed in MH_DYLIB files
15474 lt_prog_compiler_pic_F77='-fno-common'
15478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15479 # Instead, we relocate shared libraries at runtime.
15483 # Just because we use GCC doesn't mean we suddenly get shared libraries
15484 # on systems that don't support them.
15485 lt_prog_compiler_can_build_shared_F77=no
15490 if test -d /usr/nec; then
15491 lt_prog_compiler_pic_F77=-Kconform_pic
15496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15497 # not for PA HP-UX.
15503 lt_prog_compiler_pic_F77='-fPIC'
15509 lt_prog_compiler_pic_F77='-fPIC'
15513 # PORTME Check for flag to pass linker flags through the system compiler.
15516 lt_prog_compiler_wl_F77='-Wl,'
15517 if test "$host_cpu" = ia64; then
15518 # AIX 5 now supports IA64 processor
15519 lt_prog_compiler_static_F77='-Bstatic'
15521 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15525 # PIC is the default on this platform
15526 # Common symbols not allowed in MH_DYLIB files
15527 case $cc_basename in
15529 lt_prog_compiler_pic_F77='-qnocommon'
15530 lt_prog_compiler_wl_F77='-Wl,'
15535 mingw* | cygwin* | pw32* | os2*)
15536 # This hack is so that the source file can tell whether it is being
15537 # built for inclusion in a dll (and should export symbols for example).
15538 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15541 hpux9* | hpux10* | hpux11*)
15542 lt_prog_compiler_wl_F77='-Wl,'
15543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15544 # not for PA HP-UX.
15550 lt_prog_compiler_pic_F77='+Z'
15553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15554 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15557 irix5* | irix6* | nonstopux*)
15558 lt_prog_compiler_wl_F77='-Wl,'
15559 # PIC (with -KPIC) is the default.
15560 lt_prog_compiler_static_F77='-non_shared'
15564 lt_prog_compiler_pic_F77='-KPIC'
15565 lt_prog_compiler_static_F77='-Bstatic'
15568 linux* | k*bsd*-gnu)
15569 case $cc_basename in
15571 lt_prog_compiler_wl_F77='-Wl,'
15572 lt_prog_compiler_pic_F77='-KPIC'
15573 lt_prog_compiler_static_F77='-static'
15575 pgcc* | pgf77* | pgf90* | pgf95*)
15576 # Portland Group compilers (*not* the Pentium gcc compiler,
15577 # which looks to be a dead project)
15578 lt_prog_compiler_wl_F77='-Wl,'
15579 lt_prog_compiler_pic_F77='-fpic'
15580 lt_prog_compiler_static_F77='-Bstatic'
15583 lt_prog_compiler_wl_F77='-Wl,'
15584 # All Alpha code is PIC.
15585 lt_prog_compiler_static_F77='-non_shared'
15588 case `$CC -V 2>&1 | sed 5q` in
15591 lt_prog_compiler_pic_F77='-KPIC'
15592 lt_prog_compiler_static_F77='-Bstatic'
15593 lt_prog_compiler_wl_F77='-Wl,'
15596 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15597 lt_prog_compiler_pic_F77='-KPIC'
15598 lt_prog_compiler_static_F77='-Bstatic'
15599 lt_prog_compiler_wl_F77=''
15606 osf3* | osf4* | osf5*)
15607 lt_prog_compiler_wl_F77='-Wl,'
15608 # All OSF/1 code is PIC.
15609 lt_prog_compiler_static_F77='-non_shared'
15613 lt_prog_compiler_static_F77='-non_shared'
15617 lt_prog_compiler_pic_F77='-KPIC'
15618 lt_prog_compiler_static_F77='-Bstatic'
15619 case $cc_basename in
15620 f77* | f90* | f95*)
15621 lt_prog_compiler_wl_F77='-Qoption ld ';;
15623 lt_prog_compiler_wl_F77='-Wl,';;
15628 lt_prog_compiler_wl_F77='-Qoption ld '
15629 lt_prog_compiler_pic_F77='-PIC'
15630 lt_prog_compiler_static_F77='-Bstatic'
15633 sysv4 | sysv4.2uw2* | sysv4.3*)
15634 lt_prog_compiler_wl_F77='-Wl,'
15635 lt_prog_compiler_pic_F77='-KPIC'
15636 lt_prog_compiler_static_F77='-Bstatic'
15640 if test -d /usr/nec ;then
15641 lt_prog_compiler_pic_F77='-Kconform_pic'
15642 lt_prog_compiler_static_F77='-Bstatic'
15646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15647 lt_prog_compiler_wl_F77='-Wl,'
15648 lt_prog_compiler_pic_F77='-KPIC'
15649 lt_prog_compiler_static_F77='-Bstatic'
15653 lt_prog_compiler_wl_F77='-Wl,'
15654 lt_prog_compiler_can_build_shared_F77=no
15658 lt_prog_compiler_pic_F77='-pic'
15659 lt_prog_compiler_static_F77='-Bstatic'
15663 lt_prog_compiler_can_build_shared_F77=no
15668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15669 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15672 # Check to make sure the PIC flag actually works.
15674 if test -n "$lt_prog_compiler_pic_F77"; then
15676 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15677 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15678 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 lt_prog_compiler_pic_works_F77=no
15682 ac_outfile=conftest.$ac_objext
15683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15684 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15685 # Insert the option either (1) after the last *FLAGS variable, or
15686 # (2) before a word containing "conftest.", or (3) at the end.
15687 # Note that $ac_compile itself does not contain backslashes and begins
15688 # with a dollar sign (not a hyphen), so the echo should work correctly.
15689 # The option is referenced via a variable to avoid confusing sed.
15690 lt_compile=`echo "$ac_compile" | $SED \
15691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15693 -e 's:$: $lt_compiler_flag:'`
15694 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15695 (eval "$lt_compile" 2>conftest.err)
15697 cat conftest.err >&5
15698 echo "$as_me:__oline__: \$? = $ac_status" >&5
15699 if (exit $ac_status) && test -s "$ac_outfile"; then
15700 # The compiler can only warn and ignore the option if not recognized
15701 # So say no if there are warnings other than the usual output.
15702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15705 lt_prog_compiler_pic_works_F77=yes
15711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15712 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15714 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15715 case $lt_prog_compiler_pic_F77 in
15717 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15720 lt_prog_compiler_pic_F77=
15721 lt_prog_compiler_can_build_shared_F77=no
15726 # For platforms which do not support PIC, -DPIC is meaningless:
15728 lt_prog_compiler_pic_F77=
15731 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15736 # Check to make sure the static flag actually works.
15738 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15739 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15740 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15741 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 lt_prog_compiler_static_works_F77=no
15745 save_LDFLAGS="$LDFLAGS"
15746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15749 # The linker can only warn and ignore the option if not recognized
15750 # So say no if there are warnings
15751 if test -s conftest.err; then
15752 # Append any errors to the config.log.
15753 cat conftest.err 1>&5
15754 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15756 if diff conftest.exp conftest.er2 >/dev/null; then
15757 lt_prog_compiler_static_works_F77=yes
15760 lt_prog_compiler_static_works_F77=yes
15764 LDFLAGS="$save_LDFLAGS"
15767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15768 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15770 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15773 lt_prog_compiler_static_F77=
15777 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15779 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 lt_cv_prog_compiler_c_o_F77=no
15783 $rm -r conftest 2>/dev/null
15787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15789 lt_compiler_flag="-o out/conftest2.$ac_objext"
15790 # Insert the option either (1) after the last *FLAGS variable, or
15791 # (2) before a word containing "conftest.", or (3) at the end.
15792 # Note that $ac_compile itself does not contain backslashes and begins
15793 # with a dollar sign (not a hyphen), so the echo should work correctly.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>out/conftest.err)
15801 cat out/conftest.err >&5
15802 echo "$as_me:__oline__: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15805 # The compiler can only warn and ignore the option if not recognized
15806 # So say no if there are warnings
15807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15810 lt_cv_prog_compiler_c_o_F77=yes
15815 # SGI C++ compiler will create directory out/ii_files/ for
15816 # template instantiation
15817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15818 $rm out/* && rmdir out
15824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15828 hard_links="nottested"
15829 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15830 # do not overwrite the value of need_locks provided by the user
15831 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15837 ln conftest.a conftest.b 2>&5 || hard_links=no
15838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15839 { echo "$as_me:$LINENO: result: $hard_links" >&5
15840 echo "${ECHO_T}$hard_links" >&6; }
15841 if test "$hard_links" = no; then
15842 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15850 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15854 allow_undefined_flag_F77=
15855 enable_shared_with_static_runtimes_F77=no
15857 archive_expsym_cmds_F77=
15858 old_archive_From_new_cmds_F77=
15859 old_archive_from_expsyms_cmds_F77=
15860 export_dynamic_flag_spec_F77=
15861 whole_archive_flag_spec_F77=
15862 thread_safe_flag_spec_F77=
15863 hardcode_libdir_flag_spec_F77=
15864 hardcode_libdir_flag_spec_ld_F77=
15865 hardcode_libdir_separator_F77=
15866 hardcode_direct_F77=no
15867 hardcode_minus_L_F77=no
15868 hardcode_shlibpath_var_F77=unsupported
15869 link_all_deplibs_F77=unknown
15870 hardcode_automatic_F77=no
15872 module_expsym_cmds_F77=
15873 always_export_symbols_F77=no
15874 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15875 # include_expsyms should be a list of space-separated symbols to be *always*
15876 # included in the symbol list
15877 include_expsyms_F77=
15878 # exclude_expsyms can be an extended regexp of symbols to exclude
15879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15881 # as well as any symbol that contains `d'.
15882 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15884 # platforms (ab)use it in PIC code, but their linkers get confused if
15885 # the symbol is explicitly referenced. Since portable code cannot
15886 # rely on this symbol name, it's probably fine to never include it in
15887 # preloaded symbol tables.
15888 extract_expsyms_cmds=
15889 # Just being paranoid about ensuring that cc_basename is set.
15890 for cc_temp in $compiler""; do
15892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15901 cygwin* | mingw* | pw32*)
15902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15903 # When not using gcc, we currently assume that we are using
15904 # Microsoft Visual C++.
15905 if test "$GCC" != yes; then
15910 # we just hope/assume this is gcc and not c89 (= MSVC++)
15919 if test "$with_gnu_ld" = yes; then
15920 # If archive_cmds runs LD, not CC, wlarc should be empty
15923 # Set some defaults for GNU ld with shared library support. These
15924 # are reset later if shared libraries are not supported. Putting them
15925 # here allows them to be overridden if necessary.
15926 runpath_var=LD_RUN_PATH
15927 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15928 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15929 # ancient GNU ld didn't support --whole-archive et. al.
15930 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15931 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15933 whole_archive_flag_spec_F77=
15935 supports_anon_versioning=no
15936 case `$LD -v 2>/dev/null` in
15937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15940 *\ 2.11.*) ;; # other 2.11 versions
15941 *) supports_anon_versioning=yes ;;
15944 # See if GNU ld supports shared libraries.
15946 aix3* | aix4* | aix5*)
15947 # On AIX/PPC, the GNU linker is very broken
15948 if test "$host_cpu" != ia64; then
15952 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15953 *** to be unable to reliably create shared libraries on AIX.
15954 *** Therefore, libtool is disabling shared libraries support. If you
15955 *** really care for shared libraries, you may want to modify your PATH
15956 *** so that a non-GNU linker is found, and then restart.
15963 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)'
15964 hardcode_libdir_flag_spec_F77='-L$libdir'
15965 hardcode_minus_L_F77=yes
15967 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15968 # that the semantics of dynamic libraries on AmigaOS, at least up
15969 # to version 4, is to share data among multiple programs linked
15970 # with the same dynamic library. Since this doesn't match the
15971 # behavior of shared libraries on other platforms, we can't use
15977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15978 allow_undefined_flag_F77=unsupported
15979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15980 # support --undefined. This deserves some investigation. FIXME
15981 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15987 cygwin* | mingw* | pw32*)
15988 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15989 # as there is no search path for DLLs.
15990 hardcode_libdir_flag_spec_F77='-L$libdir'
15991 allow_undefined_flag_F77=unsupported
15992 always_export_symbols_F77=no
15993 enable_shared_with_static_runtimes_F77=yes
15994 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15996 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15997 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15998 # If the export-symbols file already is a .def file (1st line
15999 # is EXPORTS), use it as is; otherwise, prepend...
16000 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16001 cp $export_symbols $output_objdir/$soname.def;
16003 echo EXPORTS > $output_objdir/$soname.def;
16004 cat $export_symbols >> $output_objdir/$soname.def;
16006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16013 hardcode_direct_F77=no
16014 hardcode_shlibpath_var_F77=no
16015 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16016 export_dynamic_flag_spec_F77='${wl}-E'
16017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16018 # Instead, shared libraries are loaded at an image base (0x10000000 by
16019 # default) and relocated if they conflict, which is a slow very memory
16020 # consuming and fragmenting process. To avoid this, we pick a random,
16021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16023 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'
16024 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'
16027 gnu* | linux* | k*bsd*-gnu)
16028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030 case $cc_basename,$host_cpu in
16031 pgcc*) # Portland Group C compiler
16032 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'
16033 tmp_addflag=' $pic_flag'
16035 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16036 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16037 tmp_addflag=' $pic_flag -Mnomain' ;;
16038 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16039 tmp_addflag=' -i_dynamic' ;;
16040 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16041 tmp_addflag=' -i_dynamic -nofor_main' ;;
16042 ifc* | ifort*) # Intel Fortran compiler
16043 tmp_addflag=' -nofor_main' ;;
16045 case `$CC -V 2>&1 | sed 5q` in
16046 *Sun\ C*) # Sun C 5.9
16047 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16048 tmp_sharedflag='-G' ;;
16049 *Sun\ F*) # Sun Fortran 8.3
16050 tmp_sharedflag='-G' ;;
16052 tmp_sharedflag='-shared' ;;
16054 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056 if test $supports_anon_versioning = yes; then
16057 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16059 $echo "local: *; };" >> $output_objdir/$libname.ver~
16060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16062 link_all_deplibs_F77=no
16068 netbsd* | netbsdelf*-gnu)
16069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16070 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16073 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16074 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16079 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16084 *** create shared libraries on Solaris systems. Therefore, libtool
16085 *** is disabling shared libraries support. We urge you to upgrade GNU
16086 *** binutils to release 2.9.1 or newer. Another option is to modify
16087 *** your PATH or compiler configuration so that the native linker is
16088 *** used, and then restart.
16091 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16092 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16093 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16100 case `$LD -v 2>&1` in
16101 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16106 *** reliably create shared libraries on SCO systems. Therefore, libtool
16107 *** is disabling shared libraries support. We urge you to upgrade GNU
16108 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16109 *** your PATH or compiler configuration so that the native linker is
16110 *** used, and then restart.
16115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16116 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16117 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16118 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16127 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16129 hardcode_direct_F77=yes
16130 hardcode_shlibpath_var_F77=no
16134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16143 if test "$ld_shlibs_F77" = no; then
16145 hardcode_libdir_flag_spec_F77=
16146 export_dynamic_flag_spec_F77=
16147 whole_archive_flag_spec_F77=
16150 # PORTME fill in a description of your system's linker (not GNU ld)
16153 allow_undefined_flag_F77=unsupported
16154 always_export_symbols_F77=yes
16155 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'
16156 # Note: this linker hardcodes the directories in LIBPATH if there
16157 # are no directories specified by -L.
16158 hardcode_minus_L_F77=yes
16159 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16160 # Neither direct hardcoding nor static linking is supported with a
16162 hardcode_direct_F77=unsupported
16167 if test "$host_cpu" = ia64; then
16168 # On IA64, the linker does run time linking by default, so we don't
16169 # have to do anything special.
16170 aix_use_runtimelinking=no
16171 exp_sym_flag='-Bexport'
16174 # If we're using GNU nm, then we don't want the "-C" option.
16175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16176 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16177 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'
16179 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'
16181 aix_use_runtimelinking=no
16183 # Test if we are trying to use run time linking or normal
16184 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16185 # need to do runtime linking.
16186 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16187 for ld_flag in $LDFLAGS; do
16188 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16189 aix_use_runtimelinking=yes
16196 exp_sym_flag='-bexport'
16197 no_entry_flag='-bnoentry'
16200 # When large executables or shared objects are built, AIX ld can
16201 # have problems creating the table of contents. If linking a library
16202 # or program results in "error TOC overflow" add -mminimal-toc to
16203 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16204 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16206 archive_cmds_F77=''
16207 hardcode_direct_F77=yes
16208 hardcode_libdir_separator_F77=':'
16209 link_all_deplibs_F77=yes
16211 if test "$GCC" = yes; then
16212 case $host_os in aix4.[012]|aix4.[012].*)
16213 # We only want to do this on AIX 4.2 and lower, the check
16214 # below for broken collect2 doesn't work under 4.3+
16215 collect2name=`${CC} -print-prog-name=collect2`
16216 if test -f "$collect2name" && \
16217 strings "$collect2name" | grep resolve_lib_name >/dev/null
16219 # We have reworked collect2
16222 # We have old collect2
16223 hardcode_direct_F77=unsupported
16224 # It fails to find uninstalled libraries when the uninstalled
16225 # path is not listed in the libpath. Setting hardcode_minus_L
16226 # to unsupported forces relinking
16227 hardcode_minus_L_F77=yes
16228 hardcode_libdir_flag_spec_F77='-L$libdir'
16229 hardcode_libdir_separator_F77=
16233 shared_flag='-shared'
16234 if test "$aix_use_runtimelinking" = yes; then
16235 shared_flag="$shared_flag "'${wl}-G'
16239 if test "$host_cpu" = ia64; then
16240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16241 # chokes on -Wl,-G. The following line is correct:
16244 if test "$aix_use_runtimelinking" = yes; then
16245 shared_flag='${wl}-G'
16247 shared_flag='${wl}-bM:SRE'
16252 # It seems that -bexpall does not export symbols beginning with
16253 # underscore (_), so it is better to generate a list of symbols to export.
16254 always_export_symbols_F77=yes
16255 if test "$aix_use_runtimelinking" = yes; then
16256 # Warning - without using the other runtime loading flags (-brtl),
16257 # -berok will link without error, but may produce a broken library.
16258 allow_undefined_flag_F77='-berok'
16259 # Determine the default libpath from the value encoded in an empty executable.
16260 cat >conftest.$ac_ext <<_ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_link") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && {
16279 test -z "$ac_f77_werror_flag" ||
16280 test ! -s conftest.err
16281 } && test -s conftest$ac_exeext &&
16282 $as_test_x conftest$ac_exeext; then
16284 lt_aix_libpath_sed='
16285 /Import File Strings/,/^$/ {
16291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16292 # Check for a 64-bit object if we didn't find anything.
16293 if test -z "$aix_libpath"; then
16294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16304 conftest$ac_exeext conftest.$ac_ext
16305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16307 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16308 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"
16310 if test "$host_cpu" = ia64; then
16311 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16312 allow_undefined_flag_F77="-z nodefs"
16313 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"
16315 # Determine the default libpath from the value encoded in an empty executable.
16316 cat >conftest.$ac_ext <<_ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_link") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && {
16335 test -z "$ac_f77_werror_flag" ||
16336 test ! -s conftest.err
16337 } && test -s conftest$ac_exeext &&
16338 $as_test_x conftest$ac_exeext; then
16340 lt_aix_libpath_sed='
16341 /Import File Strings/,/^$/ {
16347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16348 # Check for a 64-bit object if we didn't find anything.
16349 if test -z "$aix_libpath"; then
16350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16360 conftest$ac_exeext conftest.$ac_ext
16361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16363 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16364 # Warning - without using the other run time loading flags,
16365 # -berok will link without error, but may produce a broken library.
16366 no_undefined_flag_F77=' ${wl}-bernotok'
16367 allow_undefined_flag_F77=' ${wl}-berok'
16368 # Exported symbols can be pulled into shared objects from archives
16369 whole_archive_flag_spec_F77='$convenience'
16370 archive_cmds_need_lc_F77=yes
16371 # This is similar to how AIX traditionally builds its shared libraries.
16372 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'
16378 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)'
16379 hardcode_libdir_flag_spec_F77='-L$libdir'
16380 hardcode_minus_L_F77=yes
16381 # see comment about different semantics on the GNU ld section
16386 export_dynamic_flag_spec_F77=-rdynamic
16389 cygwin* | mingw* | pw32*)
16390 # When not using gcc, we currently assume that we are using
16391 # Microsoft Visual C++.
16392 # hardcode_libdir_flag_spec is actually meaningless, as there is
16393 # no search path for DLLs.
16394 hardcode_libdir_flag_spec_F77=' '
16395 allow_undefined_flag_F77=unsupported
16396 # Tell ltmain to make .lib files, not .a files.
16398 # Tell ltmain to make .dll files, not .so files.
16400 # FIXME: Setting linknames here is a bad hack.
16401 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16402 # The linker will automatically build a .lib file if we build a DLL.
16403 old_archive_From_new_cmds_F77='true'
16404 # FIXME: Should let the user specify the lib program.
16405 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16406 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16407 enable_shared_with_static_runtimes_F77=yes
16410 darwin* | rhapsody*)
16412 rhapsody* | darwin1.[012])
16413 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16416 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16417 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16419 case ${MACOSX_DEPLOYMENT_TARGET} in
16421 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16424 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16430 archive_cmds_need_lc_F77=no
16431 hardcode_direct_F77=no
16432 hardcode_automatic_F77=yes
16433 hardcode_shlibpath_var_F77=unsupported
16434 whole_archive_flag_spec_F77=''
16435 link_all_deplibs_F77=yes
16436 if test "$GCC" = yes ; then
16437 output_verbose_link_cmd='echo'
16438 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16439 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16440 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16441 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}'
16442 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}'
16444 case $cc_basename in
16446 output_verbose_link_cmd='echo'
16447 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16448 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16449 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16450 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16451 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}'
16461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462 hardcode_libdir_flag_spec_F77='-L$libdir'
16463 hardcode_shlibpath_var_F77=no
16470 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16471 # support. Future versions do this automatically, but an explicit c++rt0.o
16472 # does not break anything, and helps significantly (at the cost of a little
16475 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16476 hardcode_libdir_flag_spec_F77='-R$libdir'
16477 hardcode_direct_F77=yes
16478 hardcode_shlibpath_var_F77=no
16481 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16483 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16484 hardcode_direct_F77=yes
16485 hardcode_minus_L_F77=yes
16486 hardcode_shlibpath_var_F77=no
16489 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16490 freebsd* | dragonfly*)
16491 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16492 hardcode_libdir_flag_spec_F77='-R$libdir'
16493 hardcode_direct_F77=yes
16494 hardcode_shlibpath_var_F77=no
16498 if test "$GCC" = yes; then
16499 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'
16501 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'
16503 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16504 hardcode_libdir_separator_F77=:
16505 hardcode_direct_F77=yes
16507 # hardcode_minus_L: Not really in the search PATH,
16508 # but as the default location of the library.
16509 hardcode_minus_L_F77=yes
16510 export_dynamic_flag_spec_F77='${wl}-E'
16514 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16515 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16519 if test "$with_gnu_ld" = no; then
16520 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16521 hardcode_libdir_separator_F77=:
16523 hardcode_direct_F77=yes
16524 export_dynamic_flag_spec_F77='${wl}-E'
16526 # hardcode_minus_L: Not really in the search PATH,
16527 # but as the default location of the library.
16528 hardcode_minus_L_F77=yes
16533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16536 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16548 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16558 if test "$with_gnu_ld" = no; then
16559 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16560 hardcode_libdir_separator_F77=:
16564 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16565 hardcode_direct_F77=no
16566 hardcode_shlibpath_var_F77=no
16569 hardcode_direct_F77=yes
16570 export_dynamic_flag_spec_F77='${wl}-E'
16572 # hardcode_minus_L: Not really in the search PATH,
16573 # but as the default location of the library.
16574 hardcode_minus_L_F77=yes
16580 irix5* | irix6* | nonstopux*)
16581 if test "$GCC" = yes; then
16582 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'
16584 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'
16585 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16588 hardcode_libdir_separator_F77=:
16589 link_all_deplibs_F77=yes
16592 netbsd* | netbsdelf*-gnu)
16593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16596 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16598 hardcode_libdir_flag_spec_F77='-R$libdir'
16599 hardcode_direct_F77=yes
16600 hardcode_shlibpath_var_F77=no
16604 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_direct_F77=yes
16606 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16607 hardcode_libdir_separator_F77=:
16608 hardcode_shlibpath_var_F77=no
16612 if test -f /usr/libexec/ld.so; then
16613 hardcode_direct_F77=yes
16614 hardcode_shlibpath_var_F77=no
16615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16616 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16617 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16618 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16619 export_dynamic_flag_spec_F77='${wl}-E'
16622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16623 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16624 hardcode_libdir_flag_spec_F77='-R$libdir'
16627 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16628 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16638 hardcode_libdir_flag_spec_F77='-L$libdir'
16639 hardcode_minus_L_F77=yes
16640 allow_undefined_flag_F77=unsupported
16641 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'
16642 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16646 if test "$GCC" = yes; then
16647 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16648 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'
16650 allow_undefined_flag_F77=' -expect_unresolved \*'
16651 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'
16653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16654 hardcode_libdir_separator_F77=:
16657 osf4* | osf5*) # as osf3* with the addition of -msym flag
16658 if test "$GCC" = yes; then
16659 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16660 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'
16661 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16663 allow_undefined_flag_F77=' -expect_unresolved \*'
16664 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'
16665 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~
16666 $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'
16668 # Both c and cxx compiler support -rpath directly
16669 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16671 hardcode_libdir_separator_F77=:
16675 no_undefined_flag_F77=' -z text'
16676 if test "$GCC" = yes; then
16678 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16680 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16683 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16685 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16687 hardcode_libdir_flag_spec_F77='-R$libdir'
16688 hardcode_shlibpath_var_F77=no
16690 solaris2.[0-5] | solaris2.[0-5].*) ;;
16692 # The compiler driver will combine and reorder linker options,
16693 # but understands `-z linker_flag'. GCC discards it without `$wl',
16694 # but is careful enough not to reorder.
16695 # Supported since Solaris 2.6 (maybe 2.5.1?)
16696 if test "$GCC" = yes; then
16697 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16699 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16703 link_all_deplibs_F77=yes
16707 if test "x$host_vendor" = xsequent; then
16708 # Use $CC to link under sequent, because it throws in some extra .o
16709 # files that make .init and .fini sections work.
16710 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16712 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16714 hardcode_libdir_flag_spec_F77='-L$libdir'
16715 hardcode_direct_F77=yes
16716 hardcode_minus_L_F77=yes
16717 hardcode_shlibpath_var_F77=no
16721 case $host_vendor in
16723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724 hardcode_direct_F77=yes # is this really true???
16727 ## LD is ld it makes a PLAMLIB
16728 ## CC just makes a GrossModule.
16729 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16730 reload_cmds_F77='$CC -r -o $output$reload_objs'
16731 hardcode_direct_F77=no
16734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16738 runpath_var='LD_RUN_PATH'
16739 hardcode_shlibpath_var_F77=no
16743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744 hardcode_shlibpath_var_F77=no
16745 export_dynamic_flag_spec_F77='-Bexport'
16749 if test -d /usr/nec; then
16750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751 hardcode_shlibpath_var_F77=no
16752 runpath_var=LD_RUN_PATH
16753 hardcode_runpath_var=yes
16758 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16759 no_undefined_flag_F77='${wl}-z,text'
16760 archive_cmds_need_lc_F77=no
16761 hardcode_shlibpath_var_F77=no
16762 runpath_var='LD_RUN_PATH'
16764 if test "$GCC" = yes; then
16765 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16766 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16773 sysv5* | sco3.2v5* | sco5v6*)
16774 # Note: We can NOT use -z defs as we might desire, because we do not
16775 # link with -lc, and that would cause any symbols used from libc to
16776 # always be unresolved, which means just about no library would
16777 # ever link correctly. If we're not using GNU ld we use -z text
16778 # though, which does catch some bad symbols but isn't as heavy-handed
16780 no_undefined_flag_F77='${wl}-z,text'
16781 allow_undefined_flag_F77='${wl}-z,nodefs'
16782 archive_cmds_need_lc_F77=no
16783 hardcode_shlibpath_var_F77=no
16784 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16785 hardcode_libdir_separator_F77=':'
16786 link_all_deplibs_F77=yes
16787 export_dynamic_flag_spec_F77='${wl}-Bexport'
16788 runpath_var='LD_RUN_PATH'
16790 if test "$GCC" = yes; then
16791 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16792 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16794 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801 hardcode_libdir_flag_spec_F77='-L$libdir'
16802 hardcode_shlibpath_var_F77=no
16811 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16812 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16813 test "$ld_shlibs_F77" = no && can_build_shared=no
16816 # Do we need to explicitly link libc?
16818 case "x$archive_cmds_need_lc_F77" in
16820 # Assume -lc should be added
16821 archive_cmds_need_lc_F77=yes
16823 if test "$enable_shared" = yes && test "$GCC" = yes; then
16824 case $archive_cmds_F77 in
16826 # FIXME: we may have to deal with multi-command sequences.
16829 # Test whether the compiler implicitly links with -lc since on some
16830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831 # to ld, don't add -lc before -lgcc.
16832 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838 (eval $ac_compile) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } 2>conftest.err; then
16844 libobjs=conftest.$ac_objext
16846 wl=$lt_prog_compiler_wl_F77
16847 pic_flag=$lt_prog_compiler_pic_F77
16853 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16854 allow_undefined_flag_F77=
16855 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16856 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }
16861 archive_cmds_need_lc_F77=no
16863 archive_cmds_need_lc_F77=yes
16865 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16867 cat conftest.err 1>&5
16870 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16871 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16878 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16879 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16880 library_names_spec=
16881 libname_spec='lib$name'
16885 postuninstall_cmds=
16889 shlibpath_overrides_runpath=unknown
16891 dynamic_linker="$host_os ld.so"
16892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16894 need_lib_prefix=unknown
16895 hardcode_into_libs=no
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version=unknown
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16905 shlibpath_var=LIBPATH
16907 # AIX 3 has no versioning support, so we append a major version to the name.
16908 soname_spec='${libname}${release}${shared_ext}$major'
16915 hardcode_into_libs=yes
16916 if test "$host_cpu" = ia64; then
16917 # AIX 5 supports IA64
16918 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919 shlibpath_var=LD_LIBRARY_PATH
16921 # With GCC up to 2.95.x, collect2 would create an import file
16922 # for dependence libraries. The import file would start with
16923 # the line `#! .'. This would cause the generated library to
16924 # depend on `.', always an invalid library. This was fixed in
16925 # development snapshots of GCC prior to 3.0.
16927 aix4 | aix4.[01] | aix4.[01].*)
16928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16930 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16933 can_build_shared=no
16937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938 # soname into executable. Probably we can add versioning support to
16939 # collect2, so additional links can be useful in future.
16940 if test "$aix_use_runtimelinking" = yes; then
16941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942 # instead of lib<name>.a to let people know that these are not
16943 # typical AIX shared libraries.
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946 # We preserve .a as extension for shared libraries through AIX4.2
16947 # and later when we are not doing run time linking.
16948 library_names_spec='${libname}${release}.a $libname.a'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LIBPATH
16956 library_names_spec='$libname.ixlibrary $libname.a'
16957 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16958 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'
16962 library_names_spec='${libname}${shared_ext}'
16963 dynamic_linker="$host_os ld.so"
16964 shlibpath_var=LIBRARY_PATH
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16973 shlibpath_var=LD_LIBRARY_PATH
16974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16976 # the default ld.so.conf also contains /usr/contrib/lib and
16977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16978 # libtool to hard-code these into programs
16981 cygwin* | mingw* | pw32*)
16982 version_type=windows
16987 case $GCC,$host_os in
16988 yes,cygwin* | yes,mingw* | yes,pw32*)
16989 library_names_spec='$libname.dll.a'
16990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16991 postinstall_cmds='base_file=`basename \${file}`~
16992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16993 dldir=$destdir/`dirname \$dlpath`~
16994 test -d \$dldir || mkdir -p \$dldir~
16995 $install_prog $dir/$dlname \$dldir/$dlname~
16996 chmod a+x \$dldir/$dlname'
16997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16998 dlpath=$dir/\$dldll~
17000 shlibpath_overrides_runpath=yes
17004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17005 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17006 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17009 # MinGW DLLs use traditional 'lib' prefix
17010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17012 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17013 # It is most probably a Windows format PATH printed by
17014 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17015 # path with ; separators, and with drive letters. We can handle the
17016 # drive letters (cygwin fileutils understands them), so leave them,
17017 # especially as we might pass files found there to a mingw objdump,
17018 # which wouldn't understand a cygwinified path. Ahh.
17019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17025 # pw32 DLLs use 'pw' prefix rather than 'lib'
17026 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17032 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17035 dynamic_linker='Win32 ld.exe'
17036 # FIXME: first we should search . and the directory the executable is in
17040 darwin* | rhapsody*)
17041 dynamic_linker="$host_os dyld"
17042 version_type=darwin
17045 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17046 soname_spec='${libname}${release}${major}$shared_ext'
17047 shlibpath_overrides_runpath=yes
17048 shlibpath_var=DYLD_LIBRARY_PATH
17049 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17051 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 shlibpath_var=LD_LIBRARY_PATH
17067 freebsd* | dragonfly*)
17068 # DragonFly does not have aout. When/if they implement a new
17069 # versioning mechanism, adjust this.
17070 if test -x /usr/bin/objformat; then
17071 objformat=`/usr/bin/objformat`
17074 freebsd[123]*) objformat=aout ;;
17075 *) objformat=elf ;;
17078 version_type=freebsd-$objformat
17079 case $version_type in
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17090 shlibpath_var=LD_LIBRARY_PATH
17093 shlibpath_overrides_runpath=yes
17095 freebsd3.[01]* | freebsdelf3.[01]*)
17096 shlibpath_overrides_runpath=yes
17097 hardcode_into_libs=yes
17099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17101 shlibpath_overrides_runpath=no
17102 hardcode_into_libs=yes
17104 *) # from 4.6 on, and DragonFly
17105 shlibpath_overrides_runpath=yes
17106 hardcode_into_libs=yes
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 hardcode_into_libs=yes
17121 hpux9* | hpux10* | hpux11*)
17122 # Give a soname corresponding to the major version so that dld.sl refuses to
17123 # link against other versions.
17130 hardcode_into_libs=yes
17131 dynamic_linker="$host_os dld.so"
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 if test "X$HPUX_IA64_MODE" = X32; then
17137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17145 hardcode_into_libs=yes
17146 dynamic_linker="$host_os dld.sl"
17147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156 dynamic_linker="$host_os dld.sl"
17157 shlibpath_var=SHLIB_PATH
17158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17160 soname_spec='${libname}${release}${shared_ext}$major'
17163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17164 postinstall_cmds='chmod 555 $lib'
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=no
17176 hardcode_into_libs=yes
17179 irix5* | irix6* | nonstopux*)
17181 nonstopux*) version_type=nonstopux ;;
17183 if test "$lt_cv_prog_gnu_ld" = yes; then
17191 soname_spec='${libname}${release}${shared_ext}$major'
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17194 irix5* | nonstopux*)
17195 libsuff= shlibsuff=
17198 case $LD in # libtool.m4 will add one of these switches to LD
17199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17200 libsuff= shlibsuff= libmagic=32-bit;;
17201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17202 libsuff=32 shlibsuff=N32 libmagic=N32;;
17203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17205 *) libsuff= shlibsuff= libmagic=never-match;;
17209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17210 shlibpath_overrides_runpath=no
17211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17213 hardcode_into_libs=yes
17216 # No shared lib support for Linux oldld, aout, or coff.
17217 linux*oldld* | linux*aout* | linux*coff*)
17221 # This must be Linux ELF.
17222 linux* | k*bsd*-gnu)
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=no
17231 # This implies no fast_install, which is unacceptable.
17232 # Some rework will be needed to allow for fast_install
17233 # before this can be enabled.
17234 hardcode_into_libs=yes
17236 # Append ld.so.conf contents to the search path
17237 if test -f /etc/ld.so.conf; then
17238 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17239 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17242 # We used to test for /lib/ld.so.1 and disable shared libraries on
17243 # powerpc, because MkLinux only supported shared libraries with the
17244 # GNU dynamic linker. Since this was broken with cross compilers,
17245 # most powerpc-linux boxes support dynamic linking these days and
17246 # people can always --disable-shared, the test was removed, and we
17247 # assume the GNU/Linux dynamic linker is in use.
17248 dynamic_linker='GNU/Linux ld.so'
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 shlibpath_overrides_runpath=no
17259 hardcode_into_libs=yes
17260 dynamic_linker='NetBSD ld.elf_so'
17267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270 dynamic_linker='NetBSD (a.out) ld.so'
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 dynamic_linker='NetBSD ld.elf_so'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17278 hardcode_into_libs=yes
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes
17300 sys_lib_dlsearch_path_spec="/usr/lib"
17302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17304 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17305 *) need_version=no ;;
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17312 openbsd2.[89] | openbsd2.[89].*)
17313 shlibpath_overrides_runpath=no
17316 shlibpath_overrides_runpath=yes
17320 shlibpath_overrides_runpath=yes
17325 libname_spec='$name'
17328 library_names_spec='$libname${shared_ext} $libname.a'
17329 dynamic_linker='OS/2 ld.exe'
17330 shlibpath_var=LIBPATH
17333 osf3* | osf4* | osf5*)
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath=yes
17356 hardcode_into_libs=yes
17357 # ldd complains unless libraries are executable
17358 postinstall_cmds='chmod +x $lib'
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath=yes
17367 if test "$with_gnu_ld" = yes; then
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 case $host_vendor in
17380 shlibpath_overrides_runpath=no
17382 export_dynamic_flag_spec='${wl}-Blargedynsym'
17383 runpath_var=LD_RUN_PATH
17391 shlibpath_overrides_runpath=no
17392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17398 if test -d /usr/nec ;then
17400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401 soname_spec='$libname${shared_ext}.$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17407 version_type=freebsd-elf
17410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17411 soname_spec='${libname}${release}${shared_ext}$major'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 hardcode_into_libs=yes
17414 if test "$with_gnu_ld" = yes; then
17415 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17416 shlibpath_overrides_runpath=no
17418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17419 shlibpath_overrides_runpath=yes
17422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17426 sys_lib_dlsearch_path_spec='/usr/lib'
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 shlibpath_var=LD_LIBRARY_PATH
17440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17441 echo "${ECHO_T}$dynamic_linker" >&6; }
17442 test "$dynamic_linker" = no && can_build_shared=no
17444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17445 if test "$GCC" = yes; then
17446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17449 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17451 hardcode_action_F77=
17452 if test -n "$hardcode_libdir_flag_spec_F77" || \
17453 test -n "$runpath_var_F77" || \
17454 test "X$hardcode_automatic_F77" = "Xyes" ; then
17456 # We can hardcode non-existant directories.
17457 if test "$hardcode_direct_F77" != no &&
17458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17459 # have to relink, otherwise we might link with an installed library
17460 # when we should be linking with a yet-to-be-installed one
17461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17462 test "$hardcode_minus_L_F77" != no; then
17463 # Linking always hardcodes the temporary library directory.
17464 hardcode_action_F77=relink
17466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17467 hardcode_action_F77=immediate
17470 # We cannot hardcode anything, or else we can only hardcode existing
17472 hardcode_action_F77=unsupported
17474 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17475 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17477 if test "$hardcode_action_F77" = relink; then
17478 # Fast installation is not supported
17479 enable_fast_install=no
17480 elif test "$shlibpath_overrides_runpath" = yes ||
17481 test "$enable_shared" = no; then
17482 # Fast installation is not necessary
17483 enable_fast_install=needless
17487 # The else clause should only fire when bootstrapping the
17488 # libtool distribution, otherwise you forgot to ship ltmain.sh
17489 # with your package, and you will get complaints that there are
17490 # no rules to generate ltmain.sh.
17491 if test -f "$ltmain"; then
17492 # See if we are running on zsh, and set the options which allow our commands through
17493 # without removal of \ escapes.
17494 if test -n "${ZSH_VERSION+set}" ; then
17495 setopt NO_GLOB_SUBST
17497 # Now quote all the things that may contain metacharacters while being
17498 # careful not to overquote the AC_SUBSTed values. We take copies of the
17499 # variables and quote the copies for generation of the libtool script.
17500 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17504 deplibs_check_method reload_flag reload_cmds need_locks \
17505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17506 lt_cv_sys_global_symbol_to_c_name_address \
17507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17508 old_postinstall_cmds old_postuninstall_cmds \
17512 lt_prog_compiler_wl_F77 \
17513 lt_prog_compiler_pic_F77 \
17514 lt_prog_compiler_static_F77 \
17515 lt_prog_compiler_no_builtin_flag_F77 \
17516 export_dynamic_flag_spec_F77 \
17517 thread_safe_flag_spec_F77 \
17518 whole_archive_flag_spec_F77 \
17519 enable_shared_with_static_runtimes_F77 \
17520 old_archive_cmds_F77 \
17521 old_archive_from_new_cmds_F77 \
17522 predep_objects_F77 \
17523 postdep_objects_F77 \
17526 compiler_lib_search_path_F77 \
17528 archive_expsym_cmds_F77 \
17529 postinstall_cmds_F77 \
17530 postuninstall_cmds_F77 \
17531 old_archive_from_expsyms_cmds_F77 \
17532 allow_undefined_flag_F77 \
17533 no_undefined_flag_F77 \
17534 export_symbols_cmds_F77 \
17535 hardcode_libdir_flag_spec_F77 \
17536 hardcode_libdir_flag_spec_ld_F77 \
17537 hardcode_libdir_separator_F77 \
17538 hardcode_automatic_F77 \
17540 module_expsym_cmds_F77 \
17541 lt_cv_prog_compiler_c_o_F77 \
17542 fix_srcfile_path_F77 \
17543 exclude_expsyms_F77 \
17544 include_expsyms_F77; do
17547 old_archive_cmds_F77 | \
17548 old_archive_from_new_cmds_F77 | \
17549 archive_cmds_F77 | \
17550 archive_expsym_cmds_F77 | \
17551 module_cmds_F77 | \
17552 module_expsym_cmds_F77 | \
17553 old_archive_from_expsyms_cmds_F77 | \
17554 export_symbols_cmds_F77 | \
17555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17556 postinstall_cmds | postuninstall_cmds | \
17557 old_postinstall_cmds | old_postuninstall_cmds | \
17558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17559 # Double-quote double-evaled strings.
17560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17569 *'\$0 --fallback-echo"')
17570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17576 cat <<__EOF__ >> "$cfgfile"
17577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17581 # Shell to use when invoking shell scripts.
17584 # Whether or not to build shared libraries.
17585 build_libtool_libs=$enable_shared
17587 # Whether or not to build static libraries.
17588 build_old_libs=$enable_static
17590 # Whether or not to add -lc for building shared libraries.
17591 build_libtool_need_lc=$archive_cmds_need_lc_F77
17593 # Whether or not to disallow shared libs when runtime libs are static
17594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17596 # Whether or not to optimize for fast installation.
17597 fast_install=$enable_fast_install
17600 host_alias=$host_alias
17604 # The build system.
17605 build_alias=$build_alias
17609 # An echo program that does not interpret backslashes.
17614 AR_FLAGS=$lt_AR_FLAGS
17619 # LTCC compiler flags.
17620 LTCFLAGS=$lt_LTCFLAGS
17622 # A language-specific compiler.
17623 CC=$lt_compiler_F77
17625 # Is the compiler the GNU C compiler?
17631 # The linker used to build libraries.
17634 # Whether we need hard or soft links.
17637 # A BSD-compatible nm program.
17640 # A symbol stripping program
17643 # Used to examine libraries when file_magic_cmd begins "file"
17644 MAGIC_CMD=$MAGIC_CMD
17646 # Used on cygwin: DLL creation program.
17649 # Used on cygwin: object dumper.
17652 # Used on cygwin: assembler.
17655 # The name of the directory that contains temporary libtool files.
17658 # How to create reloadable object files.
17659 reload_flag=$lt_reload_flag
17660 reload_cmds=$lt_reload_cmds
17662 # How to pass a linker flag through the compiler.
17663 wl=$lt_lt_prog_compiler_wl_F77
17665 # Object file suffix (normally "o").
17666 objext="$ac_objext"
17668 # Old archive suffix (normally "a").
17671 # Shared library suffix (normally ".so").
17672 shrext_cmds='$shrext_cmds'
17674 # Executable file suffix (normally "").
17677 # Additional compiler flags for building library objects.
17678 pic_flag=$lt_lt_prog_compiler_pic_F77
17681 # What is the maximum length of a command?
17682 max_cmd_len=$lt_cv_sys_max_cmd_len
17684 # Does compiler simultaneously support -c and -o options?
17685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17687 # Must we lock files when doing compilation?
17688 need_locks=$lt_need_locks
17690 # Do we need the lib prefix for modules?
17691 need_lib_prefix=$need_lib_prefix
17693 # Do we need a version for libraries?
17694 need_version=$need_version
17696 # Whether dlopen is supported.
17697 dlopen_support=$enable_dlopen
17699 # Whether dlopen of programs is supported.
17700 dlopen_self=$enable_dlopen_self
17702 # Whether dlopen of statically linked programs is supported.
17703 dlopen_self_static=$enable_dlopen_self_static
17705 # Compiler flag to prevent dynamic linking.
17706 link_static_flag=$lt_lt_prog_compiler_static_F77
17708 # Compiler flag to turn off builtin functions.
17709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17711 # Compiler flag to allow reflexive dlopens.
17712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17714 # Compiler flag to generate shared objects directly from archives.
17715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17717 # Compiler flag to generate thread-safe objects.
17718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17720 # Library versioning type.
17721 version_type=$version_type
17723 # Format of library name prefix.
17724 libname_spec=$lt_libname_spec
17726 # List of archive names. First name is the real one, the rest are links.
17727 # The last name is the one that the linker finds with -lNAME.
17728 library_names_spec=$lt_library_names_spec
17730 # The coded name of the library, if different from the real name.
17731 soname_spec=$lt_soname_spec
17733 # Commands used to build and install an old-style archive.
17735 old_archive_cmds=$lt_old_archive_cmds_F77
17736 old_postinstall_cmds=$lt_old_postinstall_cmds
17737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17739 # Create an old-style archive from a shared archive.
17740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17742 # Create a temporary old-style archive to link instead of a shared archive.
17743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17745 # Commands used to build and install a shared archive.
17746 archive_cmds=$lt_archive_cmds_F77
17747 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17748 postinstall_cmds=$lt_postinstall_cmds
17749 postuninstall_cmds=$lt_postuninstall_cmds
17751 # Commands used to build a loadable module (assumed same as above if empty)
17752 module_cmds=$lt_module_cmds_F77
17753 module_expsym_cmds=$lt_module_expsym_cmds_F77
17755 # Commands to strip libraries.
17756 old_striplib=$lt_old_striplib
17757 striplib=$lt_striplib
17759 # Dependencies to place before the objects being linked to create a
17761 predep_objects=$lt_predep_objects_F77
17763 # Dependencies to place after the objects being linked to create a
17765 postdep_objects=$lt_postdep_objects_F77
17767 # Dependencies to place before the objects being linked to create a
17769 predeps=$lt_predeps_F77
17771 # Dependencies to place after the objects being linked to create a
17773 postdeps=$lt_postdeps_F77
17775 # The library search path used internally by the compiler when linking
17776 # a shared library.
17777 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17779 # Method to check whether dependent libraries are shared objects.
17780 deplibs_check_method=$lt_deplibs_check_method
17782 # Command to use when deplibs_check_method == file_magic.
17783 file_magic_cmd=$lt_file_magic_cmd
17785 # Flag that allows shared libraries with undefined symbols to be built.
17786 allow_undefined_flag=$lt_allow_undefined_flag_F77
17788 # Flag that forces no undefined symbols.
17789 no_undefined_flag=$lt_no_undefined_flag_F77
17791 # Commands used to finish a libtool library installation in a directory.
17792 finish_cmds=$lt_finish_cmds
17794 # Same as above, but a single script fragment to be evaled but not shown.
17795 finish_eval=$lt_finish_eval
17797 # Take the output of nm and produce a listing of raw symbols and C names.
17798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17800 # Transform the output of nm in a proper C declaration
17801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17803 # Transform the output of nm in a C name address pair
17804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17806 # This is the shared library runtime path variable.
17807 runpath_var=$runpath_var
17809 # This is the shared library path variable.
17810 shlibpath_var=$shlibpath_var
17812 # Is shlibpath searched before the hard-coded library search path?
17813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17815 # How to hardcode a shared library path into an executable.
17816 hardcode_action=$hardcode_action_F77
17818 # Whether we should hardcode library paths into libraries.
17819 hardcode_into_libs=$hardcode_into_libs
17821 # Flag to hardcode \$libdir into a binary during linking.
17822 # This must work even if \$libdir does not exist.
17823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17825 # If ld is used when linking, flag to hardcode \$libdir into
17826 # a binary during linking. This must work even if \$libdir does
17828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17830 # Whether we need a single -rpath flag with a separated argument.
17831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17834 # resulting binary.
17835 hardcode_direct=$hardcode_direct_F77
17837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17838 # resulting binary.
17839 hardcode_minus_L=$hardcode_minus_L_F77
17841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17842 # the resulting binary.
17843 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17845 # Set to yes if building a shared library automatically hardcodes DIR into the library
17846 # and all subsequent libraries and executables linked against it.
17847 hardcode_automatic=$hardcode_automatic_F77
17849 # Variables whose values should be saved in libtool wrapper scripts and
17850 # restored at relink time.
17851 variables_saved_for_relink="$variables_saved_for_relink"
17853 # Whether libtool must link a program against all its dependency libraries.
17854 link_all_deplibs=$link_all_deplibs_F77
17856 # Compile-time system search path for libraries
17857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17859 # Run-time system search path for libraries
17860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17862 # Fix the shell variable \$srcfile for the compiler.
17863 fix_srcfile_path=$lt_fix_srcfile_path
17865 # Set to yes if exported symbols are required.
17866 always_export_symbols=$always_export_symbols_F77
17868 # The commands to list exported symbols.
17869 export_symbols_cmds=$lt_export_symbols_cmds_F77
17871 # The commands to extract the exported symbol list from a shared archive.
17872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17874 # Symbols that should not be listed in the preloaded symbols.
17875 exclude_expsyms=$lt_exclude_expsyms_F77
17877 # Symbols that must always be exported.
17878 include_expsyms=$lt_include_expsyms_F77
17880 # ### END LIBTOOL TAG CONFIG: $tagname
17886 # If there is no Makefile yet, we rely on a make rule to execute
17887 # `config.status --recheck' to rerun these tests and create the
17888 # libtool script then.
17889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17890 if test -f "$ltmain_in"; then
17891 test -f Makefile && make "$ltmain"
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17910 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17913 # Source file extension for Java test sources.
17916 # Object file extension for compiled Java test sources.
17920 # Code to be used in simple compile tests
17921 lt_simple_compile_test_code="class foo {}"
17923 # Code to be used in simple link tests
17924 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17926 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17928 # If no C compiler was specified, use CC.
17931 # If no C compiler flags were specified, use CFLAGS.
17932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17934 # Allow CC to be a program name with arguments.
17938 # save warnings/boilerplate of simple test code
17939 ac_outfile=conftest.$ac_objext
17940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17942 _lt_compiler_boilerplate=`cat conftest.err`
17945 ac_outfile=conftest.$ac_objext
17946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17948 _lt_linker_boilerplate=`cat conftest.err`
17952 # Allow CC to be a program name with arguments.
17957 for cc_temp in $compiler""; do
17959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17969 archive_cmds_need_lc_GCJ=no
17971 old_archive_cmds_GCJ=$old_archive_cmds
17974 ## There is no encapsulation within the following macros, do not change
17975 ## the running order or otherwise move them around unless you know exactly
17976 ## what you are doing...
17978 lt_prog_compiler_no_builtin_flag_GCJ=
17980 if test "$GCC" = yes; then
17981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17984 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17985 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 lt_cv_prog_compiler_rtti_exceptions=no
17990 ac_outfile=conftest.$ac_objext
17991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17992 lt_compiler_flag="-fno-rtti -fno-exceptions"
17993 # Insert the option either (1) after the last *FLAGS variable, or
17994 # (2) before a word containing "conftest.", or (3) at the end.
17995 # Note that $ac_compile itself does not contain backslashes and begins
17996 # with a dollar sign (not a hyphen), so the echo should work correctly.
17997 # The option is referenced via a variable to avoid confusing sed.
17998 lt_compile=`echo "$ac_compile" | $SED \
17999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18001 -e 's:$: $lt_compiler_flag:'`
18002 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18003 (eval "$lt_compile" 2>conftest.err)
18005 cat conftest.err >&5
18006 echo "$as_me:__oline__: \$? = $ac_status" >&5
18007 if (exit $ac_status) && test -s "$ac_outfile"; then
18008 # The compiler can only warn and ignore the option if not recognized
18009 # So say no if there are warnings other than the usual output.
18010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18013 lt_cv_prog_compiler_rtti_exceptions=yes
18019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18023 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18030 lt_prog_compiler_wl_GCJ=
18031 lt_prog_compiler_pic_GCJ=
18032 lt_prog_compiler_static_GCJ=
18034 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18037 if test "$GCC" = yes; then
18038 lt_prog_compiler_wl_GCJ='-Wl,'
18039 lt_prog_compiler_static_GCJ='-static'
18043 # All AIX code is PIC.
18044 if test "$host_cpu" = ia64; then
18045 # AIX 5 now supports IA64 processor
18046 lt_prog_compiler_static_GCJ='-Bstatic'
18051 # FIXME: we need at least 68020 code to build shared libraries, but
18052 # adding the `-m68020' flag to GCC prevents building anything better,
18054 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18058 # PIC is the default for these OSes.
18061 mingw* | cygwin* | pw32* | os2*)
18062 # This hack is so that the source file can tell whether it is being
18063 # built for inclusion in a dll (and should export symbols for example).
18064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18065 # (--disable-auto-import) libraries
18066 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18069 darwin* | rhapsody*)
18070 # PIC is the default on this platform
18071 # Common symbols not allowed in MH_DYLIB files
18072 lt_prog_compiler_pic_GCJ='-fno-common'
18076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18077 # Instead, we relocate shared libraries at runtime.
18081 # Just because we use GCC doesn't mean we suddenly get shared libraries
18082 # on systems that don't support them.
18083 lt_prog_compiler_can_build_shared_GCJ=no
18088 if test -d /usr/nec; then
18089 lt_prog_compiler_pic_GCJ=-Kconform_pic
18094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18095 # not for PA HP-UX.
18101 lt_prog_compiler_pic_GCJ='-fPIC'
18107 lt_prog_compiler_pic_GCJ='-fPIC'
18111 # PORTME Check for flag to pass linker flags through the system compiler.
18114 lt_prog_compiler_wl_GCJ='-Wl,'
18115 if test "$host_cpu" = ia64; then
18116 # AIX 5 now supports IA64 processor
18117 lt_prog_compiler_static_GCJ='-Bstatic'
18119 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18123 # PIC is the default on this platform
18124 # Common symbols not allowed in MH_DYLIB files
18125 case $cc_basename in
18127 lt_prog_compiler_pic_GCJ='-qnocommon'
18128 lt_prog_compiler_wl_GCJ='-Wl,'
18133 mingw* | cygwin* | pw32* | os2*)
18134 # This hack is so that the source file can tell whether it is being
18135 # built for inclusion in a dll (and should export symbols for example).
18136 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18139 hpux9* | hpux10* | hpux11*)
18140 lt_prog_compiler_wl_GCJ='-Wl,'
18141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18142 # not for PA HP-UX.
18148 lt_prog_compiler_pic_GCJ='+Z'
18151 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18152 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18155 irix5* | irix6* | nonstopux*)
18156 lt_prog_compiler_wl_GCJ='-Wl,'
18157 # PIC (with -KPIC) is the default.
18158 lt_prog_compiler_static_GCJ='-non_shared'
18162 lt_prog_compiler_pic_GCJ='-KPIC'
18163 lt_prog_compiler_static_GCJ='-Bstatic'
18166 linux* | k*bsd*-gnu)
18167 case $cc_basename in
18169 lt_prog_compiler_wl_GCJ='-Wl,'
18170 lt_prog_compiler_pic_GCJ='-KPIC'
18171 lt_prog_compiler_static_GCJ='-static'
18173 pgcc* | pgf77* | pgf90* | pgf95*)
18174 # Portland Group compilers (*not* the Pentium gcc compiler,
18175 # which looks to be a dead project)
18176 lt_prog_compiler_wl_GCJ='-Wl,'
18177 lt_prog_compiler_pic_GCJ='-fpic'
18178 lt_prog_compiler_static_GCJ='-Bstatic'
18181 lt_prog_compiler_wl_GCJ='-Wl,'
18182 # All Alpha code is PIC.
18183 lt_prog_compiler_static_GCJ='-non_shared'
18186 case `$CC -V 2>&1 | sed 5q` in
18189 lt_prog_compiler_pic_GCJ='-KPIC'
18190 lt_prog_compiler_static_GCJ='-Bstatic'
18191 lt_prog_compiler_wl_GCJ='-Wl,'
18194 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18195 lt_prog_compiler_pic_GCJ='-KPIC'
18196 lt_prog_compiler_static_GCJ='-Bstatic'
18197 lt_prog_compiler_wl_GCJ=''
18204 osf3* | osf4* | osf5*)
18205 lt_prog_compiler_wl_GCJ='-Wl,'
18206 # All OSF/1 code is PIC.
18207 lt_prog_compiler_static_GCJ='-non_shared'
18211 lt_prog_compiler_static_GCJ='-non_shared'
18215 lt_prog_compiler_pic_GCJ='-KPIC'
18216 lt_prog_compiler_static_GCJ='-Bstatic'
18217 case $cc_basename in
18218 f77* | f90* | f95*)
18219 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18221 lt_prog_compiler_wl_GCJ='-Wl,';;
18226 lt_prog_compiler_wl_GCJ='-Qoption ld '
18227 lt_prog_compiler_pic_GCJ='-PIC'
18228 lt_prog_compiler_static_GCJ='-Bstatic'
18231 sysv4 | sysv4.2uw2* | sysv4.3*)
18232 lt_prog_compiler_wl_GCJ='-Wl,'
18233 lt_prog_compiler_pic_GCJ='-KPIC'
18234 lt_prog_compiler_static_GCJ='-Bstatic'
18238 if test -d /usr/nec ;then
18239 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18240 lt_prog_compiler_static_GCJ='-Bstatic'
18244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18245 lt_prog_compiler_wl_GCJ='-Wl,'
18246 lt_prog_compiler_pic_GCJ='-KPIC'
18247 lt_prog_compiler_static_GCJ='-Bstatic'
18251 lt_prog_compiler_wl_GCJ='-Wl,'
18252 lt_prog_compiler_can_build_shared_GCJ=no
18256 lt_prog_compiler_pic_GCJ='-pic'
18257 lt_prog_compiler_static_GCJ='-Bstatic'
18261 lt_prog_compiler_can_build_shared_GCJ=no
18266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18267 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18270 # Check to make sure the PIC flag actually works.
18272 if test -n "$lt_prog_compiler_pic_GCJ"; then
18274 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18275 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18276 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 lt_prog_compiler_pic_works_GCJ=no
18280 ac_outfile=conftest.$ac_objext
18281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18282 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18283 # Insert the option either (1) after the last *FLAGS variable, or
18284 # (2) before a word containing "conftest.", or (3) at the end.
18285 # Note that $ac_compile itself does not contain backslashes and begins
18286 # with a dollar sign (not a hyphen), so the echo should work correctly.
18287 # The option is referenced via a variable to avoid confusing sed.
18288 lt_compile=`echo "$ac_compile" | $SED \
18289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18291 -e 's:$: $lt_compiler_flag:'`
18292 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18293 (eval "$lt_compile" 2>conftest.err)
18295 cat conftest.err >&5
18296 echo "$as_me:__oline__: \$? = $ac_status" >&5
18297 if (exit $ac_status) && test -s "$ac_outfile"; then
18298 # The compiler can only warn and ignore the option if not recognized
18299 # So say no if there are warnings other than the usual output.
18300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18303 lt_prog_compiler_pic_works_GCJ=yes
18309 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18313 case $lt_prog_compiler_pic_GCJ in
18315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18318 lt_prog_compiler_pic_GCJ=
18319 lt_prog_compiler_can_build_shared_GCJ=no
18324 # For platforms which do not support PIC, -DPIC is meaningless:
18326 lt_prog_compiler_pic_GCJ=
18329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18334 # Check to make sure the static flag actually works.
18336 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18337 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18338 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18339 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 lt_prog_compiler_static_works_GCJ=no
18343 save_LDFLAGS="$LDFLAGS"
18344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18347 # The linker can only warn and ignore the option if not recognized
18348 # So say no if there are warnings
18349 if test -s conftest.err; then
18350 # Append any errors to the config.log.
18351 cat conftest.err 1>&5
18352 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18354 if diff conftest.exp conftest.er2 >/dev/null; then
18355 lt_prog_compiler_static_works_GCJ=yes
18358 lt_prog_compiler_static_works_GCJ=yes
18362 LDFLAGS="$save_LDFLAGS"
18365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18366 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18368 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18371 lt_prog_compiler_static_GCJ=
18375 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18377 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 lt_cv_prog_compiler_c_o_GCJ=no
18381 $rm -r conftest 2>/dev/null
18385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18387 lt_compiler_flag="-o out/conftest2.$ac_objext"
18388 # Insert the option either (1) after the last *FLAGS variable, or
18389 # (2) before a word containing "conftest.", or (3) at the end.
18390 # Note that $ac_compile itself does not contain backslashes and begins
18391 # with a dollar sign (not a hyphen), so the echo should work correctly.
18392 lt_compile=`echo "$ac_compile" | $SED \
18393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18395 -e 's:$: $lt_compiler_flag:'`
18396 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18397 (eval "$lt_compile" 2>out/conftest.err)
18399 cat out/conftest.err >&5
18400 echo "$as_me:__oline__: \$? = $ac_status" >&5
18401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18403 # The compiler can only warn and ignore the option if not recognized
18404 # So say no if there are warnings
18405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18408 lt_cv_prog_compiler_c_o_GCJ=yes
18413 # SGI C++ compiler will create directory out/ii_files/ for
18414 # template instantiation
18415 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18416 $rm out/* && rmdir out
18422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18423 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18426 hard_links="nottested"
18427 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18428 # do not overwrite the value of need_locks provided by the user
18429 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18430 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18435 ln conftest.a conftest.b 2>&5 || hard_links=no
18436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18437 { echo "$as_me:$LINENO: result: $hard_links" >&5
18438 echo "${ECHO_T}$hard_links" >&6; }
18439 if test "$hard_links" = no; then
18440 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18441 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18448 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18452 allow_undefined_flag_GCJ=
18453 enable_shared_with_static_runtimes_GCJ=no
18455 archive_expsym_cmds_GCJ=
18456 old_archive_From_new_cmds_GCJ=
18457 old_archive_from_expsyms_cmds_GCJ=
18458 export_dynamic_flag_spec_GCJ=
18459 whole_archive_flag_spec_GCJ=
18460 thread_safe_flag_spec_GCJ=
18461 hardcode_libdir_flag_spec_GCJ=
18462 hardcode_libdir_flag_spec_ld_GCJ=
18463 hardcode_libdir_separator_GCJ=
18464 hardcode_direct_GCJ=no
18465 hardcode_minus_L_GCJ=no
18466 hardcode_shlibpath_var_GCJ=unsupported
18467 link_all_deplibs_GCJ=unknown
18468 hardcode_automatic_GCJ=no
18470 module_expsym_cmds_GCJ=
18471 always_export_symbols_GCJ=no
18472 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18473 # include_expsyms should be a list of space-separated symbols to be *always*
18474 # included in the symbol list
18475 include_expsyms_GCJ=
18476 # exclude_expsyms can be an extended regexp of symbols to exclude
18477 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18478 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18479 # as well as any symbol that contains `d'.
18480 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18481 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18482 # platforms (ab)use it in PIC code, but their linkers get confused if
18483 # the symbol is explicitly referenced. Since portable code cannot
18484 # rely on this symbol name, it's probably fine to never include it in
18485 # preloaded symbol tables.
18486 extract_expsyms_cmds=
18487 # Just being paranoid about ensuring that cc_basename is set.
18488 for cc_temp in $compiler""; do
18490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18499 cygwin* | mingw* | pw32*)
18500 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18501 # When not using gcc, we currently assume that we are using
18502 # Microsoft Visual C++.
18503 if test "$GCC" != yes; then
18508 # we just hope/assume this is gcc and not c89 (= MSVC++)
18517 if test "$with_gnu_ld" = yes; then
18518 # If archive_cmds runs LD, not CC, wlarc should be empty
18521 # Set some defaults for GNU ld with shared library support. These
18522 # are reset later if shared libraries are not supported. Putting them
18523 # here allows them to be overridden if necessary.
18524 runpath_var=LD_RUN_PATH
18525 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18526 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18527 # ancient GNU ld didn't support --whole-archive et. al.
18528 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18529 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18531 whole_archive_flag_spec_GCJ=
18533 supports_anon_versioning=no
18534 case `$LD -v 2>/dev/null` in
18535 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18536 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18537 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18538 *\ 2.11.*) ;; # other 2.11 versions
18539 *) supports_anon_versioning=yes ;;
18542 # See if GNU ld supports shared libraries.
18544 aix3* | aix4* | aix5*)
18545 # On AIX/PPC, the GNU linker is very broken
18546 if test "$host_cpu" != ia64; then
18550 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18551 *** to be unable to reliably create shared libraries on AIX.
18552 *** Therefore, libtool is disabling shared libraries support. If you
18553 *** really care for shared libraries, you may want to modify your PATH
18554 *** so that a non-GNU linker is found, and then restart.
18561 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)'
18562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18563 hardcode_minus_L_GCJ=yes
18565 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18566 # that the semantics of dynamic libraries on AmigaOS, at least up
18567 # to version 4, is to share data among multiple programs linked
18568 # with the same dynamic library. Since this doesn't match the
18569 # behavior of shared libraries on other platforms, we can't use
18575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18576 allow_undefined_flag_GCJ=unsupported
18577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18578 # support --undefined. This deserves some investigation. FIXME
18579 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18585 cygwin* | mingw* | pw32*)
18586 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18587 # as there is no search path for DLLs.
18588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18589 allow_undefined_flag_GCJ=unsupported
18590 always_export_symbols_GCJ=no
18591 enable_shared_with_static_runtimes_GCJ=yes
18592 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18594 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18595 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18596 # If the export-symbols file already is a .def file (1st line
18597 # is EXPORTS), use it as is; otherwise, prepend...
18598 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18599 cp $export_symbols $output_objdir/$soname.def;
18601 echo EXPORTS > $output_objdir/$soname.def;
18602 cat $export_symbols >> $output_objdir/$soname.def;
18604 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18611 hardcode_direct_GCJ=no
18612 hardcode_shlibpath_var_GCJ=no
18613 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18614 export_dynamic_flag_spec_GCJ='${wl}-E'
18615 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18616 # Instead, shared libraries are loaded at an image base (0x10000000 by
18617 # default) and relocated if they conflict, which is a slow very memory
18618 # consuming and fragmenting process. To avoid this, we pick a random,
18619 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18620 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18621 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'
18622 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'
18625 gnu* | linux* | k*bsd*-gnu)
18626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18628 case $cc_basename,$host_cpu in
18629 pgcc*) # Portland Group C compiler
18630 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'
18631 tmp_addflag=' $pic_flag'
18633 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18634 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'
18635 tmp_addflag=' $pic_flag -Mnomain' ;;
18636 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18637 tmp_addflag=' -i_dynamic' ;;
18638 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18639 tmp_addflag=' -i_dynamic -nofor_main' ;;
18640 ifc* | ifort*) # Intel Fortran compiler
18641 tmp_addflag=' -nofor_main' ;;
18643 case `$CC -V 2>&1 | sed 5q` in
18644 *Sun\ C*) # Sun C 5.9
18645 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18646 tmp_sharedflag='-G' ;;
18647 *Sun\ F*) # Sun Fortran 8.3
18648 tmp_sharedflag='-G' ;;
18650 tmp_sharedflag='-shared' ;;
18652 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18654 if test $supports_anon_versioning = yes; then
18655 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18657 $echo "local: *; };" >> $output_objdir/$libname.ver~
18658 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18660 link_all_deplibs_GCJ=no
18666 netbsd* | netbsdelf*-gnu)
18667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18668 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18672 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18682 *** create shared libraries on Solaris systems. Therefore, libtool
18683 *** is disabling shared libraries support. We urge you to upgrade GNU
18684 *** binutils to release 2.9.1 or newer. Another option is to modify
18685 *** your PATH or compiler configuration so that the native linker is
18686 *** used, and then restart.
18689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18691 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18698 case `$LD -v 2>&1` in
18699 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18703 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18704 *** reliably create shared libraries on SCO systems. Therefore, libtool
18705 *** is disabling shared libraries support. We urge you to upgrade GNU
18706 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18707 *** your PATH or compiler configuration so that the native linker is
18708 *** used, and then restart.
18713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18714 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18715 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18716 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18725 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18727 hardcode_direct_GCJ=yes
18728 hardcode_shlibpath_var_GCJ=no
18732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18733 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18741 if test "$ld_shlibs_GCJ" = no; then
18743 hardcode_libdir_flag_spec_GCJ=
18744 export_dynamic_flag_spec_GCJ=
18745 whole_archive_flag_spec_GCJ=
18748 # PORTME fill in a description of your system's linker (not GNU ld)
18751 allow_undefined_flag_GCJ=unsupported
18752 always_export_symbols_GCJ=yes
18753 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'
18754 # Note: this linker hardcodes the directories in LIBPATH if there
18755 # are no directories specified by -L.
18756 hardcode_minus_L_GCJ=yes
18757 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18758 # Neither direct hardcoding nor static linking is supported with a
18760 hardcode_direct_GCJ=unsupported
18765 if test "$host_cpu" = ia64; then
18766 # On IA64, the linker does run time linking by default, so we don't
18767 # have to do anything special.
18768 aix_use_runtimelinking=no
18769 exp_sym_flag='-Bexport'
18772 # If we're using GNU nm, then we don't want the "-C" option.
18773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18774 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18775 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'
18777 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'
18779 aix_use_runtimelinking=no
18781 # Test if we are trying to use run time linking or normal
18782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18783 # need to do runtime linking.
18784 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18785 for ld_flag in $LDFLAGS; do
18786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18787 aix_use_runtimelinking=yes
18794 exp_sym_flag='-bexport'
18795 no_entry_flag='-bnoentry'
18798 # When large executables or shared objects are built, AIX ld can
18799 # have problems creating the table of contents. If linking a library
18800 # or program results in "error TOC overflow" add -mminimal-toc to
18801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18804 archive_cmds_GCJ=''
18805 hardcode_direct_GCJ=yes
18806 hardcode_libdir_separator_GCJ=':'
18807 link_all_deplibs_GCJ=yes
18809 if test "$GCC" = yes; then
18810 case $host_os in aix4.[012]|aix4.[012].*)
18811 # We only want to do this on AIX 4.2 and lower, the check
18812 # below for broken collect2 doesn't work under 4.3+
18813 collect2name=`${CC} -print-prog-name=collect2`
18814 if test -f "$collect2name" && \
18815 strings "$collect2name" | grep resolve_lib_name >/dev/null
18817 # We have reworked collect2
18820 # We have old collect2
18821 hardcode_direct_GCJ=unsupported
18822 # It fails to find uninstalled libraries when the uninstalled
18823 # path is not listed in the libpath. Setting hardcode_minus_L
18824 # to unsupported forces relinking
18825 hardcode_minus_L_GCJ=yes
18826 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18827 hardcode_libdir_separator_GCJ=
18831 shared_flag='-shared'
18832 if test "$aix_use_runtimelinking" = yes; then
18833 shared_flag="$shared_flag "'${wl}-G'
18837 if test "$host_cpu" = ia64; then
18838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18839 # chokes on -Wl,-G. The following line is correct:
18842 if test "$aix_use_runtimelinking" = yes; then
18843 shared_flag='${wl}-G'
18845 shared_flag='${wl}-bM:SRE'
18850 # It seems that -bexpall does not export symbols beginning with
18851 # underscore (_), so it is better to generate a list of symbols to export.
18852 always_export_symbols_GCJ=yes
18853 if test "$aix_use_runtimelinking" = yes; then
18854 # Warning - without using the other runtime loading flags (-brtl),
18855 # -berok will link without error, but may produce a broken library.
18856 allow_undefined_flag_GCJ='-berok'
18857 # Determine the default libpath from the value encoded in an empty executable.
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest$ac_exeext &&
18890 $as_test_x conftest$ac_exeext; then
18892 lt_aix_libpath_sed='
18893 /Import File Strings/,/^$/ {
18899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18900 # Check for a 64-bit object if we didn't find anything.
18901 if test -z "$aix_libpath"; then
18902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912 conftest$ac_exeext conftest.$ac_ext
18913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18915 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18916 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"
18918 if test "$host_cpu" = ia64; then
18919 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18920 allow_undefined_flag_GCJ="-z nodefs"
18921 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"
18923 # Determine the default libpath from the value encoded in an empty executable.
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (ac_try="$ac_link"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_link") 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } && {
18953 test -z "$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18955 } && test -s conftest$ac_exeext &&
18956 $as_test_x conftest$ac_exeext; then
18958 lt_aix_libpath_sed='
18959 /Import File Strings/,/^$/ {
18965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18966 # Check for a 64-bit object if we didn't find anything.
18967 if test -z "$aix_libpath"; then
18968 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18978 conftest$ac_exeext conftest.$ac_ext
18979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18981 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18982 # Warning - without using the other run time loading flags,
18983 # -berok will link without error, but may produce a broken library.
18984 no_undefined_flag_GCJ=' ${wl}-bernotok'
18985 allow_undefined_flag_GCJ=' ${wl}-berok'
18986 # Exported symbols can be pulled into shared objects from archives
18987 whole_archive_flag_spec_GCJ='$convenience'
18988 archive_cmds_need_lc_GCJ=yes
18989 # This is similar to how AIX traditionally builds its shared libraries.
18990 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'
18996 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)'
18997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18998 hardcode_minus_L_GCJ=yes
18999 # see comment about different semantics on the GNU ld section
19004 export_dynamic_flag_spec_GCJ=-rdynamic
19007 cygwin* | mingw* | pw32*)
19008 # When not using gcc, we currently assume that we are using
19009 # Microsoft Visual C++.
19010 # hardcode_libdir_flag_spec is actually meaningless, as there is
19011 # no search path for DLLs.
19012 hardcode_libdir_flag_spec_GCJ=' '
19013 allow_undefined_flag_GCJ=unsupported
19014 # Tell ltmain to make .lib files, not .a files.
19016 # Tell ltmain to make .dll files, not .so files.
19018 # FIXME: Setting linknames here is a bad hack.
19019 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19020 # The linker will automatically build a .lib file if we build a DLL.
19021 old_archive_From_new_cmds_GCJ='true'
19022 # FIXME: Should let the user specify the lib program.
19023 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19024 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19025 enable_shared_with_static_runtimes_GCJ=yes
19028 darwin* | rhapsody*)
19030 rhapsody* | darwin1.[012])
19031 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19034 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19035 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19037 case ${MACOSX_DEPLOYMENT_TARGET} in
19039 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19042 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19048 archive_cmds_need_lc_GCJ=no
19049 hardcode_direct_GCJ=no
19050 hardcode_automatic_GCJ=yes
19051 hardcode_shlibpath_var_GCJ=unsupported
19052 whole_archive_flag_spec_GCJ=''
19053 link_all_deplibs_GCJ=yes
19054 if test "$GCC" = yes ; then
19055 output_verbose_link_cmd='echo'
19056 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19057 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19059 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}'
19060 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}'
19062 case $cc_basename in
19064 output_verbose_link_cmd='echo'
19065 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19066 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19068 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19069 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}'
19079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19081 hardcode_shlibpath_var_GCJ=no
19088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19089 # support. Future versions do this automatically, but an explicit c++rt0.o
19090 # does not break anything, and helps significantly (at the cost of a little
19093 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19094 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19095 hardcode_direct_GCJ=yes
19096 hardcode_shlibpath_var_GCJ=no
19099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19101 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19102 hardcode_direct_GCJ=yes
19103 hardcode_minus_L_GCJ=yes
19104 hardcode_shlibpath_var_GCJ=no
19107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19108 freebsd* | dragonfly*)
19109 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19111 hardcode_direct_GCJ=yes
19112 hardcode_shlibpath_var_GCJ=no
19116 if test "$GCC" = yes; then
19117 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'
19119 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'
19121 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19122 hardcode_libdir_separator_GCJ=:
19123 hardcode_direct_GCJ=yes
19125 # hardcode_minus_L: Not really in the search PATH,
19126 # but as the default location of the library.
19127 hardcode_minus_L_GCJ=yes
19128 export_dynamic_flag_spec_GCJ='${wl}-E'
19132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19133 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19135 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19137 if test "$with_gnu_ld" = no; then
19138 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19139 hardcode_libdir_separator_GCJ=:
19141 hardcode_direct_GCJ=yes
19142 export_dynamic_flag_spec_GCJ='${wl}-E'
19144 # hardcode_minus_L: Not really in the search PATH,
19145 # but as the default location of the library.
19146 hardcode_minus_L_GCJ=yes
19151 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19154 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19157 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19160 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19166 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19169 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19172 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19176 if test "$with_gnu_ld" = no; then
19177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19178 hardcode_libdir_separator_GCJ=:
19182 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19183 hardcode_direct_GCJ=no
19184 hardcode_shlibpath_var_GCJ=no
19187 hardcode_direct_GCJ=yes
19188 export_dynamic_flag_spec_GCJ='${wl}-E'
19190 # hardcode_minus_L: Not really in the search PATH,
19191 # but as the default location of the library.
19192 hardcode_minus_L_GCJ=yes
19198 irix5* | irix6* | nonstopux*)
19199 if test "$GCC" = yes; then
19200 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'
19202 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'
19203 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19206 hardcode_libdir_separator_GCJ=:
19207 link_all_deplibs_GCJ=yes
19210 netbsd* | netbsdelf*-gnu)
19211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19212 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19214 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19216 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19217 hardcode_direct_GCJ=yes
19218 hardcode_shlibpath_var_GCJ=no
19222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19223 hardcode_direct_GCJ=yes
19224 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19225 hardcode_libdir_separator_GCJ=:
19226 hardcode_shlibpath_var_GCJ=no
19230 if test -f /usr/libexec/ld.so; then
19231 hardcode_direct_GCJ=yes
19232 hardcode_shlibpath_var_GCJ=no
19233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19234 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19235 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19236 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19237 export_dynamic_flag_spec_GCJ='${wl}-E'
19240 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19245 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19246 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19257 hardcode_minus_L_GCJ=yes
19258 allow_undefined_flag_GCJ=unsupported
19259 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'
19260 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19264 if test "$GCC" = yes; then
19265 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19266 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19268 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19269 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'
19271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19272 hardcode_libdir_separator_GCJ=:
19275 osf4* | osf5*) # as osf3* with the addition of -msym flag
19276 if test "$GCC" = yes; then
19277 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19278 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'
19279 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19281 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19282 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'
19283 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~
19284 $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'
19286 # Both c and cxx compiler support -rpath directly
19287 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19289 hardcode_libdir_separator_GCJ=:
19293 no_undefined_flag_GCJ=' -z text'
19294 if test "$GCC" = yes; then
19296 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19298 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19301 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19302 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19305 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19306 hardcode_shlibpath_var_GCJ=no
19308 solaris2.[0-5] | solaris2.[0-5].*) ;;
19310 # The compiler driver will combine and reorder linker options,
19311 # but understands `-z linker_flag'. GCC discards it without `$wl',
19312 # but is careful enough not to reorder.
19313 # Supported since Solaris 2.6 (maybe 2.5.1?)
19314 if test "$GCC" = yes; then
19315 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19317 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19321 link_all_deplibs_GCJ=yes
19325 if test "x$host_vendor" = xsequent; then
19326 # Use $CC to link under sequent, because it throws in some extra .o
19327 # files that make .init and .fini sections work.
19328 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19330 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19332 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19333 hardcode_direct_GCJ=yes
19334 hardcode_minus_L_GCJ=yes
19335 hardcode_shlibpath_var_GCJ=no
19339 case $host_vendor in
19341 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19342 hardcode_direct_GCJ=yes # is this really true???
19345 ## LD is ld it makes a PLAMLIB
19346 ## CC just makes a GrossModule.
19347 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19348 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19349 hardcode_direct_GCJ=no
19352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19353 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19356 runpath_var='LD_RUN_PATH'
19357 hardcode_shlibpath_var_GCJ=no
19361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19362 hardcode_shlibpath_var_GCJ=no
19363 export_dynamic_flag_spec_GCJ='-Bexport'
19367 if test -d /usr/nec; then
19368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19369 hardcode_shlibpath_var_GCJ=no
19370 runpath_var=LD_RUN_PATH
19371 hardcode_runpath_var=yes
19376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19377 no_undefined_flag_GCJ='${wl}-z,text'
19378 archive_cmds_need_lc_GCJ=no
19379 hardcode_shlibpath_var_GCJ=no
19380 runpath_var='LD_RUN_PATH'
19382 if test "$GCC" = yes; then
19383 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19384 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19386 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19387 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19391 sysv5* | sco3.2v5* | sco5v6*)
19392 # Note: We can NOT use -z defs as we might desire, because we do not
19393 # link with -lc, and that would cause any symbols used from libc to
19394 # always be unresolved, which means just about no library would
19395 # ever link correctly. If we're not using GNU ld we use -z text
19396 # though, which does catch some bad symbols but isn't as heavy-handed
19398 no_undefined_flag_GCJ='${wl}-z,text'
19399 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19400 archive_cmds_need_lc_GCJ=no
19401 hardcode_shlibpath_var_GCJ=no
19402 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19403 hardcode_libdir_separator_GCJ=':'
19404 link_all_deplibs_GCJ=yes
19405 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19406 runpath_var='LD_RUN_PATH'
19408 if test "$GCC" = yes; then
19409 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19410 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19412 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19413 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19419 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19420 hardcode_shlibpath_var_GCJ=no
19429 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19430 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19431 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19434 # Do we need to explicitly link libc?
19436 case "x$archive_cmds_need_lc_GCJ" in
19438 # Assume -lc should be added
19439 archive_cmds_need_lc_GCJ=yes
19441 if test "$enable_shared" = yes && test "$GCC" = yes; then
19442 case $archive_cmds_GCJ in
19444 # FIXME: we may have to deal with multi-command sequences.
19447 # Test whether the compiler implicitly links with -lc since on some
19448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19449 # to ld, don't add -lc before -lgcc.
19450 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19451 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456 (eval $ac_compile) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } 2>conftest.err; then
19462 libobjs=conftest.$ac_objext
19464 wl=$lt_prog_compiler_wl_GCJ
19465 pic_flag=$lt_prog_compiler_pic_GCJ
19471 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19472 allow_undefined_flag_GCJ=
19473 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19474 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }
19479 archive_cmds_need_lc_GCJ=no
19481 archive_cmds_need_lc_GCJ=yes
19483 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19485 cat conftest.err 1>&5
19488 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19489 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19496 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19497 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19498 library_names_spec=
19499 libname_spec='lib$name'
19503 postuninstall_cmds=
19507 shlibpath_overrides_runpath=unknown
19509 dynamic_linker="$host_os ld.so"
19510 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19512 need_lib_prefix=unknown
19513 hardcode_into_libs=no
19515 # when you set need_version to no, make sure it does not cause -set_version
19516 # flags to be left without arguments
19517 need_version=unknown
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19523 shlibpath_var=LIBPATH
19525 # AIX 3 has no versioning support, so we append a major version to the name.
19526 soname_spec='${libname}${release}${shared_ext}$major'
19533 hardcode_into_libs=yes
19534 if test "$host_cpu" = ia64; then
19535 # AIX 5 supports IA64
19536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19537 shlibpath_var=LD_LIBRARY_PATH
19539 # With GCC up to 2.95.x, collect2 would create an import file
19540 # for dependence libraries. The import file would start with
19541 # the line `#! .'. This would cause the generated library to
19542 # depend on `.', always an invalid library. This was fixed in
19543 # development snapshots of GCC prior to 3.0.
19545 aix4 | aix4.[01] | aix4.[01].*)
19546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19548 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19551 can_build_shared=no
19555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19556 # soname into executable. Probably we can add versioning support to
19557 # collect2, so additional links can be useful in future.
19558 if test "$aix_use_runtimelinking" = yes; then
19559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19560 # instead of lib<name>.a to let people know that these are not
19561 # typical AIX shared libraries.
19562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19564 # We preserve .a as extension for shared libraries through AIX4.2
19565 # and later when we are not doing run time linking.
19566 library_names_spec='${libname}${release}.a $libname.a'
19567 soname_spec='${libname}${release}${shared_ext}$major'
19569 shlibpath_var=LIBPATH
19574 library_names_spec='$libname.ixlibrary $libname.a'
19575 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19576 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'
19580 library_names_spec='${libname}${shared_ext}'
19581 dynamic_linker="$host_os ld.so"
19582 shlibpath_var=LIBRARY_PATH
19588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589 soname_spec='${libname}${release}${shared_ext}$major'
19590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19591 shlibpath_var=LD_LIBRARY_PATH
19592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19594 # the default ld.so.conf also contains /usr/contrib/lib and
19595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19596 # libtool to hard-code these into programs
19599 cygwin* | mingw* | pw32*)
19600 version_type=windows
19605 case $GCC,$host_os in
19606 yes,cygwin* | yes,mingw* | yes,pw32*)
19607 library_names_spec='$libname.dll.a'
19608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19609 postinstall_cmds='base_file=`basename \${file}`~
19610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19611 dldir=$destdir/`dirname \$dlpath`~
19612 test -d \$dldir || mkdir -p \$dldir~
19613 $install_prog $dir/$dlname \$dldir/$dlname~
19614 chmod a+x \$dldir/$dlname'
19615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19616 dlpath=$dir/\$dldll~
19618 shlibpath_overrides_runpath=yes
19622 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19623 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19624 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19627 # MinGW DLLs use traditional 'lib' prefix
19628 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19629 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19630 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19631 # It is most probably a Windows format PATH printed by
19632 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19633 # path with ; separators, and with drive letters. We can handle the
19634 # drive letters (cygwin fileutils understands them), so leave them,
19635 # especially as we might pass files found there to a mingw objdump,
19636 # which wouldn't understand a cygwinified path. Ahh.
19637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19643 # pw32 DLLs use 'pw' prefix rather than 'lib'
19644 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19650 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19653 dynamic_linker='Win32 ld.exe'
19654 # FIXME: first we should search . and the directory the executable is in
19658 darwin* | rhapsody*)
19659 dynamic_linker="$host_os dyld"
19660 version_type=darwin
19663 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19664 soname_spec='${libname}${release}${major}$shared_ext'
19665 shlibpath_overrides_runpath=yes
19666 shlibpath_var=DYLD_LIBRARY_PATH
19667 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19677 soname_spec='${libname}${release}${shared_ext}$major'
19678 shlibpath_var=LD_LIBRARY_PATH
19685 freebsd* | dragonfly*)
19686 # DragonFly does not have aout. When/if they implement a new
19687 # versioning mechanism, adjust this.
19688 if test -x /usr/bin/objformat; then
19689 objformat=`/usr/bin/objformat`
19692 freebsd[123]*) objformat=aout ;;
19693 *) objformat=elf ;;
19696 version_type=freebsd-$objformat
19697 case $version_type in
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19708 shlibpath_var=LD_LIBRARY_PATH
19711 shlibpath_overrides_runpath=yes
19713 freebsd3.[01]* | freebsdelf3.[01]*)
19714 shlibpath_overrides_runpath=yes
19715 hardcode_into_libs=yes
19717 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19718 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19719 shlibpath_overrides_runpath=no
19720 hardcode_into_libs=yes
19722 *) # from 4.6 on, and DragonFly
19723 shlibpath_overrides_runpath=yes
19724 hardcode_into_libs=yes
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19734 soname_spec='${libname}${release}${shared_ext}$major'
19735 shlibpath_var=LD_LIBRARY_PATH
19736 hardcode_into_libs=yes
19739 hpux9* | hpux10* | hpux11*)
19740 # Give a soname corresponding to the major version so that dld.sl refuses to
19741 # link against other versions.
19748 hardcode_into_libs=yes
19749 dynamic_linker="$host_os dld.so"
19750 shlibpath_var=LD_LIBRARY_PATH
19751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19753 soname_spec='${libname}${release}${shared_ext}$major'
19754 if test "X$HPUX_IA64_MODE" = X32; then
19755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19763 hardcode_into_libs=yes
19764 dynamic_linker="$host_os dld.sl"
19765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19768 soname_spec='${libname}${release}${shared_ext}$major'
19769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19774 dynamic_linker="$host_os dld.sl"
19775 shlibpath_var=SHLIB_PATH
19776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19778 soname_spec='${libname}${release}${shared_ext}$major'
19781 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19782 postinstall_cmds='chmod 555 $lib'
19789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19790 soname_spec='${libname}${release}${shared_ext}$major'
19791 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19792 shlibpath_var=LD_LIBRARY_PATH
19793 shlibpath_overrides_runpath=no
19794 hardcode_into_libs=yes
19797 irix5* | irix6* | nonstopux*)
19799 nonstopux*) version_type=nonstopux ;;
19801 if test "$lt_cv_prog_gnu_ld" = yes; then
19809 soname_spec='${libname}${release}${shared_ext}$major'
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19812 irix5* | nonstopux*)
19813 libsuff= shlibsuff=
19816 case $LD in # libtool.m4 will add one of these switches to LD
19817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19818 libsuff= shlibsuff= libmagic=32-bit;;
19819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19820 libsuff=32 shlibsuff=N32 libmagic=N32;;
19821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19823 *) libsuff= shlibsuff= libmagic=never-match;;
19827 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19828 shlibpath_overrides_runpath=no
19829 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19830 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19831 hardcode_into_libs=yes
19834 # No shared lib support for Linux oldld, aout, or coff.
19835 linux*oldld* | linux*aout* | linux*coff*)
19839 # This must be Linux ELF.
19840 linux* | k*bsd*-gnu)
19844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19845 soname_spec='${libname}${release}${shared_ext}$major'
19846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19847 shlibpath_var=LD_LIBRARY_PATH
19848 shlibpath_overrides_runpath=no
19849 # This implies no fast_install, which is unacceptable.
19850 # Some rework will be needed to allow for fast_install
19851 # before this can be enabled.
19852 hardcode_into_libs=yes
19854 # Append ld.so.conf contents to the search path
19855 if test -f /etc/ld.so.conf; then
19856 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19857 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19860 # We used to test for /lib/ld.so.1 and disable shared libraries on
19861 # powerpc, because MkLinux only supported shared libraries with the
19862 # GNU dynamic linker. Since this was broken with cross compilers,
19863 # most powerpc-linux boxes support dynamic linking these days and
19864 # people can always --disable-shared, the test was removed, and we
19865 # assume the GNU/Linux dynamic linker is in use.
19866 dynamic_linker='GNU/Linux ld.so'
19873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19874 soname_spec='${libname}${release}${shared_ext}$major'
19875 shlibpath_var=LD_LIBRARY_PATH
19876 shlibpath_overrides_runpath=no
19877 hardcode_into_libs=yes
19878 dynamic_linker='NetBSD ld.elf_so'
19885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19888 dynamic_linker='NetBSD (a.out) ld.so'
19890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19891 soname_spec='${libname}${release}${shared_ext}$major'
19892 dynamic_linker='NetBSD ld.elf_so'
19894 shlibpath_var=LD_LIBRARY_PATH
19895 shlibpath_overrides_runpath=yes
19896 hardcode_into_libs=yes
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19902 shlibpath_var=LD_LIBRARY_PATH
19903 shlibpath_overrides_runpath=yes
19910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19911 soname_spec='${libname}${release}${shared_ext}$major'
19912 shlibpath_var=LD_LIBRARY_PATH
19913 shlibpath_overrides_runpath=yes
19918 sys_lib_dlsearch_path_spec="/usr/lib"
19920 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19922 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19923 *) need_version=no ;;
19925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19927 shlibpath_var=LD_LIBRARY_PATH
19928 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19930 openbsd2.[89] | openbsd2.[89].*)
19931 shlibpath_overrides_runpath=no
19934 shlibpath_overrides_runpath=yes
19938 shlibpath_overrides_runpath=yes
19943 libname_spec='$name'
19946 library_names_spec='$libname${shared_ext} $libname.a'
19947 dynamic_linker='OS/2 ld.exe'
19948 shlibpath_var=LIBPATH
19951 osf3* | osf4* | osf5*)
19955 soname_spec='${libname}${release}${shared_ext}$major'
19956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957 shlibpath_var=LD_LIBRARY_PATH
19958 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19959 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19971 soname_spec='${libname}${release}${shared_ext}$major'
19972 shlibpath_var=LD_LIBRARY_PATH
19973 shlibpath_overrides_runpath=yes
19974 hardcode_into_libs=yes
19975 # ldd complains unless libraries are executable
19976 postinstall_cmds='chmod +x $lib'
19981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19983 shlibpath_var=LD_LIBRARY_PATH
19984 shlibpath_overrides_runpath=yes
19985 if test "$with_gnu_ld" = yes; then
19993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19994 soname_spec='${libname}${release}${shared_ext}$major'
19995 shlibpath_var=LD_LIBRARY_PATH
19996 case $host_vendor in
19998 shlibpath_overrides_runpath=no
20000 export_dynamic_flag_spec='${wl}-Blargedynsym'
20001 runpath_var=LD_RUN_PATH
20009 shlibpath_overrides_runpath=no
20010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20016 if test -d /usr/nec ;then
20018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20019 soname_spec='$libname${shared_ext}.$major'
20020 shlibpath_var=LD_LIBRARY_PATH
20024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20025 version_type=freebsd-elf
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20029 soname_spec='${libname}${release}${shared_ext}$major'
20030 shlibpath_var=LD_LIBRARY_PATH
20031 hardcode_into_libs=yes
20032 if test "$with_gnu_ld" = yes; then
20033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20034 shlibpath_overrides_runpath=no
20036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20037 shlibpath_overrides_runpath=yes
20040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20044 sys_lib_dlsearch_path_spec='/usr/lib'
20049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050 soname_spec='${libname}${release}${shared_ext}$major'
20051 shlibpath_var=LD_LIBRARY_PATH
20058 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20059 echo "${ECHO_T}$dynamic_linker" >&6; }
20060 test "$dynamic_linker" = no && can_build_shared=no
20062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20063 if test "$GCC" = yes; then
20064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20067 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20069 hardcode_action_GCJ=
20070 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20071 test -n "$runpath_var_GCJ" || \
20072 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20074 # We can hardcode non-existant directories.
20075 if test "$hardcode_direct_GCJ" != no &&
20076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20077 # have to relink, otherwise we might link with an installed library
20078 # when we should be linking with a yet-to-be-installed one
20079 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20080 test "$hardcode_minus_L_GCJ" != no; then
20081 # Linking always hardcodes the temporary library directory.
20082 hardcode_action_GCJ=relink
20084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20085 hardcode_action_GCJ=immediate
20088 # We cannot hardcode anything, or else we can only hardcode existing
20090 hardcode_action_GCJ=unsupported
20092 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20093 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20095 if test "$hardcode_action_GCJ" = relink; then
20096 # Fast installation is not supported
20097 enable_fast_install=no
20098 elif test "$shlibpath_overrides_runpath" = yes ||
20099 test "$enable_shared" = no; then
20100 # Fast installation is not necessary
20101 enable_fast_install=needless
20105 # The else clause should only fire when bootstrapping the
20106 # libtool distribution, otherwise you forgot to ship ltmain.sh
20107 # with your package, and you will get complaints that there are
20108 # no rules to generate ltmain.sh.
20109 if test -f "$ltmain"; then
20110 # See if we are running on zsh, and set the options which allow our commands through
20111 # without removal of \ escapes.
20112 if test -n "${ZSH_VERSION+set}" ; then
20113 setopt NO_GLOB_SUBST
20115 # Now quote all the things that may contain metacharacters while being
20116 # careful not to overquote the AC_SUBSTed values. We take copies of the
20117 # variables and quote the copies for generation of the libtool script.
20118 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20122 deplibs_check_method reload_flag reload_cmds need_locks \
20123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20124 lt_cv_sys_global_symbol_to_c_name_address \
20125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20126 old_postinstall_cmds old_postuninstall_cmds \
20130 lt_prog_compiler_wl_GCJ \
20131 lt_prog_compiler_pic_GCJ \
20132 lt_prog_compiler_static_GCJ \
20133 lt_prog_compiler_no_builtin_flag_GCJ \
20134 export_dynamic_flag_spec_GCJ \
20135 thread_safe_flag_spec_GCJ \
20136 whole_archive_flag_spec_GCJ \
20137 enable_shared_with_static_runtimes_GCJ \
20138 old_archive_cmds_GCJ \
20139 old_archive_from_new_cmds_GCJ \
20140 predep_objects_GCJ \
20141 postdep_objects_GCJ \
20144 compiler_lib_search_path_GCJ \
20146 archive_expsym_cmds_GCJ \
20147 postinstall_cmds_GCJ \
20148 postuninstall_cmds_GCJ \
20149 old_archive_from_expsyms_cmds_GCJ \
20150 allow_undefined_flag_GCJ \
20151 no_undefined_flag_GCJ \
20152 export_symbols_cmds_GCJ \
20153 hardcode_libdir_flag_spec_GCJ \
20154 hardcode_libdir_flag_spec_ld_GCJ \
20155 hardcode_libdir_separator_GCJ \
20156 hardcode_automatic_GCJ \
20158 module_expsym_cmds_GCJ \
20159 lt_cv_prog_compiler_c_o_GCJ \
20160 fix_srcfile_path_GCJ \
20161 exclude_expsyms_GCJ \
20162 include_expsyms_GCJ; do
20165 old_archive_cmds_GCJ | \
20166 old_archive_from_new_cmds_GCJ | \
20167 archive_cmds_GCJ | \
20168 archive_expsym_cmds_GCJ | \
20169 module_cmds_GCJ | \
20170 module_expsym_cmds_GCJ | \
20171 old_archive_from_expsyms_cmds_GCJ | \
20172 export_symbols_cmds_GCJ | \
20173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20174 postinstall_cmds | postuninstall_cmds | \
20175 old_postinstall_cmds | old_postuninstall_cmds | \
20176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20177 # Double-quote double-evaled strings.
20178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20187 *'\$0 --fallback-echo"')
20188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20194 cat <<__EOF__ >> "$cfgfile"
20195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20199 # Shell to use when invoking shell scripts.
20202 # Whether or not to build shared libraries.
20203 build_libtool_libs=$enable_shared
20205 # Whether or not to build static libraries.
20206 build_old_libs=$enable_static
20208 # Whether or not to add -lc for building shared libraries.
20209 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20211 # Whether or not to disallow shared libs when runtime libs are static
20212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20214 # Whether or not to optimize for fast installation.
20215 fast_install=$enable_fast_install
20218 host_alias=$host_alias
20222 # The build system.
20223 build_alias=$build_alias
20227 # An echo program that does not interpret backslashes.
20232 AR_FLAGS=$lt_AR_FLAGS
20237 # LTCC compiler flags.
20238 LTCFLAGS=$lt_LTCFLAGS
20240 # A language-specific compiler.
20241 CC=$lt_compiler_GCJ
20243 # Is the compiler the GNU C compiler?
20249 # The linker used to build libraries.
20252 # Whether we need hard or soft links.
20255 # A BSD-compatible nm program.
20258 # A symbol stripping program
20261 # Used to examine libraries when file_magic_cmd begins "file"
20262 MAGIC_CMD=$MAGIC_CMD
20264 # Used on cygwin: DLL creation program.
20267 # Used on cygwin: object dumper.
20270 # Used on cygwin: assembler.
20273 # The name of the directory that contains temporary libtool files.
20276 # How to create reloadable object files.
20277 reload_flag=$lt_reload_flag
20278 reload_cmds=$lt_reload_cmds
20280 # How to pass a linker flag through the compiler.
20281 wl=$lt_lt_prog_compiler_wl_GCJ
20283 # Object file suffix (normally "o").
20284 objext="$ac_objext"
20286 # Old archive suffix (normally "a").
20289 # Shared library suffix (normally ".so").
20290 shrext_cmds='$shrext_cmds'
20292 # Executable file suffix (normally "").
20295 # Additional compiler flags for building library objects.
20296 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20299 # What is the maximum length of a command?
20300 max_cmd_len=$lt_cv_sys_max_cmd_len
20302 # Does compiler simultaneously support -c and -o options?
20303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20305 # Must we lock files when doing compilation?
20306 need_locks=$lt_need_locks
20308 # Do we need the lib prefix for modules?
20309 need_lib_prefix=$need_lib_prefix
20311 # Do we need a version for libraries?
20312 need_version=$need_version
20314 # Whether dlopen is supported.
20315 dlopen_support=$enable_dlopen
20317 # Whether dlopen of programs is supported.
20318 dlopen_self=$enable_dlopen_self
20320 # Whether dlopen of statically linked programs is supported.
20321 dlopen_self_static=$enable_dlopen_self_static
20323 # Compiler flag to prevent dynamic linking.
20324 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20326 # Compiler flag to turn off builtin functions.
20327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20329 # Compiler flag to allow reflexive dlopens.
20330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20332 # Compiler flag to generate shared objects directly from archives.
20333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20335 # Compiler flag to generate thread-safe objects.
20336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20338 # Library versioning type.
20339 version_type=$version_type
20341 # Format of library name prefix.
20342 libname_spec=$lt_libname_spec
20344 # List of archive names. First name is the real one, the rest are links.
20345 # The last name is the one that the linker finds with -lNAME.
20346 library_names_spec=$lt_library_names_spec
20348 # The coded name of the library, if different from the real name.
20349 soname_spec=$lt_soname_spec
20351 # Commands used to build and install an old-style archive.
20353 old_archive_cmds=$lt_old_archive_cmds_GCJ
20354 old_postinstall_cmds=$lt_old_postinstall_cmds
20355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20357 # Create an old-style archive from a shared archive.
20358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20360 # Create a temporary old-style archive to link instead of a shared archive.
20361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20363 # Commands used to build and install a shared archive.
20364 archive_cmds=$lt_archive_cmds_GCJ
20365 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20366 postinstall_cmds=$lt_postinstall_cmds
20367 postuninstall_cmds=$lt_postuninstall_cmds
20369 # Commands used to build a loadable module (assumed same as above if empty)
20370 module_cmds=$lt_module_cmds_GCJ
20371 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20373 # Commands to strip libraries.
20374 old_striplib=$lt_old_striplib
20375 striplib=$lt_striplib
20377 # Dependencies to place before the objects being linked to create a
20379 predep_objects=$lt_predep_objects_GCJ
20381 # Dependencies to place after the objects being linked to create a
20383 postdep_objects=$lt_postdep_objects_GCJ
20385 # Dependencies to place before the objects being linked to create a
20387 predeps=$lt_predeps_GCJ
20389 # Dependencies to place after the objects being linked to create a
20391 postdeps=$lt_postdeps_GCJ
20393 # The library search path used internally by the compiler when linking
20394 # a shared library.
20395 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20397 # Method to check whether dependent libraries are shared objects.
20398 deplibs_check_method=$lt_deplibs_check_method
20400 # Command to use when deplibs_check_method == file_magic.
20401 file_magic_cmd=$lt_file_magic_cmd
20403 # Flag that allows shared libraries with undefined symbols to be built.
20404 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20406 # Flag that forces no undefined symbols.
20407 no_undefined_flag=$lt_no_undefined_flag_GCJ
20409 # Commands used to finish a libtool library installation in a directory.
20410 finish_cmds=$lt_finish_cmds
20412 # Same as above, but a single script fragment to be evaled but not shown.
20413 finish_eval=$lt_finish_eval
20415 # Take the output of nm and produce a listing of raw symbols and C names.
20416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20418 # Transform the output of nm in a proper C declaration
20419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20421 # Transform the output of nm in a C name address pair
20422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20424 # This is the shared library runtime path variable.
20425 runpath_var=$runpath_var
20427 # This is the shared library path variable.
20428 shlibpath_var=$shlibpath_var
20430 # Is shlibpath searched before the hard-coded library search path?
20431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20433 # How to hardcode a shared library path into an executable.
20434 hardcode_action=$hardcode_action_GCJ
20436 # Whether we should hardcode library paths into libraries.
20437 hardcode_into_libs=$hardcode_into_libs
20439 # Flag to hardcode \$libdir into a binary during linking.
20440 # This must work even if \$libdir does not exist.
20441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20443 # If ld is used when linking, flag to hardcode \$libdir into
20444 # a binary during linking. This must work even if \$libdir does
20446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20448 # Whether we need a single -rpath flag with a separated argument.
20449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20452 # resulting binary.
20453 hardcode_direct=$hardcode_direct_GCJ
20455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20456 # resulting binary.
20457 hardcode_minus_L=$hardcode_minus_L_GCJ
20459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20460 # the resulting binary.
20461 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20463 # Set to yes if building a shared library automatically hardcodes DIR into the library
20464 # and all subsequent libraries and executables linked against it.
20465 hardcode_automatic=$hardcode_automatic_GCJ
20467 # Variables whose values should be saved in libtool wrapper scripts and
20468 # restored at relink time.
20469 variables_saved_for_relink="$variables_saved_for_relink"
20471 # Whether libtool must link a program against all its dependency libraries.
20472 link_all_deplibs=$link_all_deplibs_GCJ
20474 # Compile-time system search path for libraries
20475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20477 # Run-time system search path for libraries
20478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20480 # Fix the shell variable \$srcfile for the compiler.
20481 fix_srcfile_path=$lt_fix_srcfile_path
20483 # Set to yes if exported symbols are required.
20484 always_export_symbols=$always_export_symbols_GCJ
20486 # The commands to list exported symbols.
20487 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20489 # The commands to extract the exported symbol list from a shared archive.
20490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20492 # Symbols that should not be listed in the preloaded symbols.
20493 exclude_expsyms=$lt_exclude_expsyms_GCJ
20495 # Symbols that must always be exported.
20496 include_expsyms=$lt_include_expsyms_GCJ
20498 # ### END LIBTOOL TAG CONFIG: $tagname
20504 # If there is no Makefile yet, we rely on a make rule to execute
20505 # `config.status --recheck' to rerun these tests and create the
20506 # libtool script then.
20507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20508 if test -f "$ltmain_in"; then
20509 test -f Makefile && make "$ltmain"
20515 ac_cpp='$CPP $CPPFLAGS'
20516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20530 # Source file extension for RC test sources.
20533 # Object file extension for compiled RC test sources.
20537 # Code to be used in simple compile tests
20538 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20540 # Code to be used in simple link tests
20541 lt_simple_link_test_code="$lt_simple_compile_test_code"
20543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20545 # If no C compiler was specified, use CC.
20548 # If no C compiler flags were specified, use CFLAGS.
20549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20551 # Allow CC to be a program name with arguments.
20555 # save warnings/boilerplate of simple test code
20556 ac_outfile=conftest.$ac_objext
20557 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20559 _lt_compiler_boilerplate=`cat conftest.err`
20562 ac_outfile=conftest.$ac_objext
20563 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20565 _lt_linker_boilerplate=`cat conftest.err`
20569 # Allow CC to be a program name with arguments.
20574 for cc_temp in $compiler""; do
20576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20584 lt_cv_prog_compiler_c_o_RC=yes
20586 # The else clause should only fire when bootstrapping the
20587 # libtool distribution, otherwise you forgot to ship ltmain.sh
20588 # with your package, and you will get complaints that there are
20589 # no rules to generate ltmain.sh.
20590 if test -f "$ltmain"; then
20591 # See if we are running on zsh, and set the options which allow our commands through
20592 # without removal of \ escapes.
20593 if test -n "${ZSH_VERSION+set}" ; then
20594 setopt NO_GLOB_SUBST
20596 # Now quote all the things that may contain metacharacters while being
20597 # careful not to overquote the AC_SUBSTed values. We take copies of the
20598 # variables and quote the copies for generation of the libtool script.
20599 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20601 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20602 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20603 deplibs_check_method reload_flag reload_cmds need_locks \
20604 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20605 lt_cv_sys_global_symbol_to_c_name_address \
20606 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20607 old_postinstall_cmds old_postuninstall_cmds \
20611 lt_prog_compiler_wl_RC \
20612 lt_prog_compiler_pic_RC \
20613 lt_prog_compiler_static_RC \
20614 lt_prog_compiler_no_builtin_flag_RC \
20615 export_dynamic_flag_spec_RC \
20616 thread_safe_flag_spec_RC \
20617 whole_archive_flag_spec_RC \
20618 enable_shared_with_static_runtimes_RC \
20619 old_archive_cmds_RC \
20620 old_archive_from_new_cmds_RC \
20621 predep_objects_RC \
20622 postdep_objects_RC \
20625 compiler_lib_search_path_RC \
20627 archive_expsym_cmds_RC \
20628 postinstall_cmds_RC \
20629 postuninstall_cmds_RC \
20630 old_archive_from_expsyms_cmds_RC \
20631 allow_undefined_flag_RC \
20632 no_undefined_flag_RC \
20633 export_symbols_cmds_RC \
20634 hardcode_libdir_flag_spec_RC \
20635 hardcode_libdir_flag_spec_ld_RC \
20636 hardcode_libdir_separator_RC \
20637 hardcode_automatic_RC \
20639 module_expsym_cmds_RC \
20640 lt_cv_prog_compiler_c_o_RC \
20641 fix_srcfile_path_RC \
20642 exclude_expsyms_RC \
20643 include_expsyms_RC; do
20646 old_archive_cmds_RC | \
20647 old_archive_from_new_cmds_RC | \
20648 archive_cmds_RC | \
20649 archive_expsym_cmds_RC | \
20651 module_expsym_cmds_RC | \
20652 old_archive_from_expsyms_cmds_RC | \
20653 export_symbols_cmds_RC | \
20654 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20655 postinstall_cmds | postuninstall_cmds | \
20656 old_postinstall_cmds | old_postuninstall_cmds | \
20657 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20658 # Double-quote double-evaled strings.
20659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20668 *'\$0 --fallback-echo"')
20669 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20675 cat <<__EOF__ >> "$cfgfile"
20676 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20680 # Shell to use when invoking shell scripts.
20683 # Whether or not to build shared libraries.
20684 build_libtool_libs=$enable_shared
20686 # Whether or not to build static libraries.
20687 build_old_libs=$enable_static
20689 # Whether or not to add -lc for building shared libraries.
20690 build_libtool_need_lc=$archive_cmds_need_lc_RC
20692 # Whether or not to disallow shared libs when runtime libs are static
20693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20695 # Whether or not to optimize for fast installation.
20696 fast_install=$enable_fast_install
20699 host_alias=$host_alias
20703 # The build system.
20704 build_alias=$build_alias
20708 # An echo program that does not interpret backslashes.
20713 AR_FLAGS=$lt_AR_FLAGS
20718 # LTCC compiler flags.
20719 LTCFLAGS=$lt_LTCFLAGS
20721 # A language-specific compiler.
20724 # Is the compiler the GNU C compiler?
20730 # The linker used to build libraries.
20733 # Whether we need hard or soft links.
20736 # A BSD-compatible nm program.
20739 # A symbol stripping program
20742 # Used to examine libraries when file_magic_cmd begins "file"
20743 MAGIC_CMD=$MAGIC_CMD
20745 # Used on cygwin: DLL creation program.
20748 # Used on cygwin: object dumper.
20751 # Used on cygwin: assembler.
20754 # The name of the directory that contains temporary libtool files.
20757 # How to create reloadable object files.
20758 reload_flag=$lt_reload_flag
20759 reload_cmds=$lt_reload_cmds
20761 # How to pass a linker flag through the compiler.
20762 wl=$lt_lt_prog_compiler_wl_RC
20764 # Object file suffix (normally "o").
20765 objext="$ac_objext"
20767 # Old archive suffix (normally "a").
20770 # Shared library suffix (normally ".so").
20771 shrext_cmds='$shrext_cmds'
20773 # Executable file suffix (normally "").
20776 # Additional compiler flags for building library objects.
20777 pic_flag=$lt_lt_prog_compiler_pic_RC
20780 # What is the maximum length of a command?
20781 max_cmd_len=$lt_cv_sys_max_cmd_len
20783 # Does compiler simultaneously support -c and -o options?
20784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20786 # Must we lock files when doing compilation?
20787 need_locks=$lt_need_locks
20789 # Do we need the lib prefix for modules?
20790 need_lib_prefix=$need_lib_prefix
20792 # Do we need a version for libraries?
20793 need_version=$need_version
20795 # Whether dlopen is supported.
20796 dlopen_support=$enable_dlopen
20798 # Whether dlopen of programs is supported.
20799 dlopen_self=$enable_dlopen_self
20801 # Whether dlopen of statically linked programs is supported.
20802 dlopen_self_static=$enable_dlopen_self_static
20804 # Compiler flag to prevent dynamic linking.
20805 link_static_flag=$lt_lt_prog_compiler_static_RC
20807 # Compiler flag to turn off builtin functions.
20808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20810 # Compiler flag to allow reflexive dlopens.
20811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20813 # Compiler flag to generate shared objects directly from archives.
20814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20816 # Compiler flag to generate thread-safe objects.
20817 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20819 # Library versioning type.
20820 version_type=$version_type
20822 # Format of library name prefix.
20823 libname_spec=$lt_libname_spec
20825 # List of archive names. First name is the real one, the rest are links.
20826 # The last name is the one that the linker finds with -lNAME.
20827 library_names_spec=$lt_library_names_spec
20829 # The coded name of the library, if different from the real name.
20830 soname_spec=$lt_soname_spec
20832 # Commands used to build and install an old-style archive.
20834 old_archive_cmds=$lt_old_archive_cmds_RC
20835 old_postinstall_cmds=$lt_old_postinstall_cmds
20836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20838 # Create an old-style archive from a shared archive.
20839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20841 # Create a temporary old-style archive to link instead of a shared archive.
20842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20844 # Commands used to build and install a shared archive.
20845 archive_cmds=$lt_archive_cmds_RC
20846 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20847 postinstall_cmds=$lt_postinstall_cmds
20848 postuninstall_cmds=$lt_postuninstall_cmds
20850 # Commands used to build a loadable module (assumed same as above if empty)
20851 module_cmds=$lt_module_cmds_RC
20852 module_expsym_cmds=$lt_module_expsym_cmds_RC
20854 # Commands to strip libraries.
20855 old_striplib=$lt_old_striplib
20856 striplib=$lt_striplib
20858 # Dependencies to place before the objects being linked to create a
20860 predep_objects=$lt_predep_objects_RC
20862 # Dependencies to place after the objects being linked to create a
20864 postdep_objects=$lt_postdep_objects_RC
20866 # Dependencies to place before the objects being linked to create a
20868 predeps=$lt_predeps_RC
20870 # Dependencies to place after the objects being linked to create a
20872 postdeps=$lt_postdeps_RC
20874 # The library search path used internally by the compiler when linking
20875 # a shared library.
20876 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20878 # Method to check whether dependent libraries are shared objects.
20879 deplibs_check_method=$lt_deplibs_check_method
20881 # Command to use when deplibs_check_method == file_magic.
20882 file_magic_cmd=$lt_file_magic_cmd
20884 # Flag that allows shared libraries with undefined symbols to be built.
20885 allow_undefined_flag=$lt_allow_undefined_flag_RC
20887 # Flag that forces no undefined symbols.
20888 no_undefined_flag=$lt_no_undefined_flag_RC
20890 # Commands used to finish a libtool library installation in a directory.
20891 finish_cmds=$lt_finish_cmds
20893 # Same as above, but a single script fragment to be evaled but not shown.
20894 finish_eval=$lt_finish_eval
20896 # Take the output of nm and produce a listing of raw symbols and C names.
20897 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20899 # Transform the output of nm in a proper C declaration
20900 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20902 # Transform the output of nm in a C name address pair
20903 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20905 # This is the shared library runtime path variable.
20906 runpath_var=$runpath_var
20908 # This is the shared library path variable.
20909 shlibpath_var=$shlibpath_var
20911 # Is shlibpath searched before the hard-coded library search path?
20912 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20914 # How to hardcode a shared library path into an executable.
20915 hardcode_action=$hardcode_action_RC
20917 # Whether we should hardcode library paths into libraries.
20918 hardcode_into_libs=$hardcode_into_libs
20920 # Flag to hardcode \$libdir into a binary during linking.
20921 # This must work even if \$libdir does not exist.
20922 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20924 # If ld is used when linking, flag to hardcode \$libdir into
20925 # a binary during linking. This must work even if \$libdir does
20927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20929 # Whether we need a single -rpath flag with a separated argument.
20930 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20932 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20933 # resulting binary.
20934 hardcode_direct=$hardcode_direct_RC
20936 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20937 # resulting binary.
20938 hardcode_minus_L=$hardcode_minus_L_RC
20940 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20941 # the resulting binary.
20942 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20944 # Set to yes if building a shared library automatically hardcodes DIR into the library
20945 # and all subsequent libraries and executables linked against it.
20946 hardcode_automatic=$hardcode_automatic_RC
20948 # Variables whose values should be saved in libtool wrapper scripts and
20949 # restored at relink time.
20950 variables_saved_for_relink="$variables_saved_for_relink"
20952 # Whether libtool must link a program against all its dependency libraries.
20953 link_all_deplibs=$link_all_deplibs_RC
20955 # Compile-time system search path for libraries
20956 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20958 # Run-time system search path for libraries
20959 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20961 # Fix the shell variable \$srcfile for the compiler.
20962 fix_srcfile_path=$lt_fix_srcfile_path
20964 # Set to yes if exported symbols are required.
20965 always_export_symbols=$always_export_symbols_RC
20967 # The commands to list exported symbols.
20968 export_symbols_cmds=$lt_export_symbols_cmds_RC
20970 # The commands to extract the exported symbol list from a shared archive.
20971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20973 # Symbols that should not be listed in the preloaded symbols.
20974 exclude_expsyms=$lt_exclude_expsyms_RC
20976 # Symbols that must always be exported.
20977 include_expsyms=$lt_include_expsyms_RC
20979 # ### END LIBTOOL TAG CONFIG: $tagname
20985 # If there is no Makefile yet, we rely on a make rule to execute
20986 # `config.status --recheck' to rerun these tests and create the
20987 # libtool script then.
20988 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20989 if test -f "$ltmain_in"; then
20990 test -f Makefile && make "$ltmain"
20996 ac_cpp='$CPP $CPPFLAGS'
20997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21006 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21007 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21008 { (exit 1); exit 1; }; }
21012 # Append the new tag name to the list of available tags.
21013 if test -n "$tagname" ; then
21014 available_tags="$available_tags $tagname"
21020 # Now substitute the updated list of available tags.
21021 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21022 mv "${ofile}T" "$ofile"
21026 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21027 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21028 { (exit 1); exit 1; }; }
21034 # This can be used to rebuild libtool when needed
21035 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21037 # Always use our own libtool.
21038 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21040 # Prevent multiple expansion
21061 if test "x$CC" != xcc; then
21062 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21063 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21065 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21066 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21068 set dummy $CC; ac_cc=`echo $2 |
21069 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21070 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21088 # Make sure it works both with $CC and with simple cc.
21089 # We do the test twice because some compilers refuse to overwrite an
21090 # existing .o file with -o, though they will create one.
21091 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21093 if { (case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_try") 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_try") 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); };
21112 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21113 if test "x$CC" != xcc; then
21114 # Test first that cc exists at all.
21115 if { ac_try='cc -c conftest.$ac_ext >&5'
21116 { (case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_try") 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21127 if { (case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_try") 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } &&
21136 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_try") 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); };
21149 # cc exists but doesn't like -o.
21150 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21155 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21157 rm -f core conftest*
21160 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21161 { echo "$as_me:$LINENO: result: yes" >&5
21162 echo "${ECHO_T}yes" >&6; }
21164 { echo "$as_me:$LINENO: result: no" >&5
21165 echo "${ECHO_T}no" >&6; }
21167 cat >>confdefs.h <<\_ACEOF
21168 @%:@define NO_MINUS_C_MINUS_O 1
21173 # FIXME: we rely on the cache variable name because
21174 # there is no other way.
21176 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21177 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21178 # Losing compiler, so override with the script.
21179 # FIXME: It is wrong to rewrite CC.
21180 # But if we don't then we get into trouble of one sort or another.
21181 # A longer-term fix would be to have automake use am__CC in this case,
21182 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21183 CC="$am_aux_dir/compile $CC"
21187 if test "x$cross_compiling" = "xno"; then
21188 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21190 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21195 if test -n "$ac_tool_prefix"; then
21196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21197 set dummy ${ac_tool_prefix}ar; ac_word=$2
21198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21200 if test "${ac_cv_prog_AR+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 if test -n "$AR"; then
21204 ac_cv_prog_AR="$AR" # Let the user override the test.
21206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21207 for as_dir in $PATH
21210 test -z "$as_dir" && as_dir=.
21211 for ac_exec_ext in '' $ac_executable_extensions; do
21212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21213 ac_cv_prog_AR="${ac_tool_prefix}ar"
21214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21224 if test -n "$AR"; then
21225 { echo "$as_me:$LINENO: result: $AR" >&5
21226 echo "${ECHO_T}$AR" >&6; }
21228 { echo "$as_me:$LINENO: result: no" >&5
21229 echo "${ECHO_T}no" >&6; }
21234 if test -z "$ac_cv_prog_AR"; then
21236 # Extract the first word of "ar", so it can be a program name with args.
21237 set dummy ar; ac_word=$2
21238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 if test -n "$ac_ct_AR"; then
21244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21247 for as_dir in $PATH
21250 test -z "$as_dir" && as_dir=.
21251 for ac_exec_ext in '' $ac_executable_extensions; do
21252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21253 ac_cv_prog_ac_ct_AR="ar"
21254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21264 if test -n "$ac_ct_AR"; then
21265 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21266 echo "${ECHO_T}$ac_ct_AR" >&6; }
21268 { echo "$as_me:$LINENO: result: no" >&5
21269 echo "${ECHO_T}no" >&6; }
21272 if test "x$ac_ct_AR" = x; then
21275 case $cross_compiling:$ac_tool_warned in
21277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21278 whose name does not start with the host triplet. If you think this
21279 configuration is useful to you, please write to autoconf@gnu.org." >&5
21280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21281 whose name does not start with the host triplet. If you think this
21282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21283 ac_tool_warned=yes ;;
21288 AR="$ac_cv_prog_AR"
21291 if test -n "$ac_tool_prefix"; then
21292 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21293 set dummy ${ac_tool_prefix}ld; ac_word=$2
21294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21296 if test "${ac_cv_prog_LD+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 if test -n "$LD"; then
21300 ac_cv_prog_LD="$LD" # Let the user override the test.
21302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21303 for as_dir in $PATH
21306 test -z "$as_dir" && as_dir=.
21307 for ac_exec_ext in '' $ac_executable_extensions; do
21308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21309 ac_cv_prog_LD="${ac_tool_prefix}ld"
21310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21320 if test -n "$LD"; then
21321 { echo "$as_me:$LINENO: result: $LD" >&5
21322 echo "${ECHO_T}$LD" >&6; }
21324 { echo "$as_me:$LINENO: result: no" >&5
21325 echo "${ECHO_T}no" >&6; }
21330 if test -z "$ac_cv_prog_LD"; then
21332 # Extract the first word of "ld", so it can be a program name with args.
21333 set dummy ld; ac_word=$2
21334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21336 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 if test -n "$ac_ct_LD"; then
21340 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21343 for as_dir in $PATH
21346 test -z "$as_dir" && as_dir=.
21347 for ac_exec_ext in '' $ac_executable_extensions; do
21348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21349 ac_cv_prog_ac_ct_LD="ld"
21350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21359 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21360 if test -n "$ac_ct_LD"; then
21361 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21362 echo "${ECHO_T}$ac_ct_LD" >&6; }
21364 { echo "$as_me:$LINENO: result: no" >&5
21365 echo "${ECHO_T}no" >&6; }
21368 if test "x$ac_ct_LD" = x; then
21371 case $cross_compiling:$ac_tool_warned in
21373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21374 whose name does not start with the host triplet. If you think this
21375 configuration is useful to you, please write to autoconf@gnu.org." >&5
21376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21377 whose name does not start with the host triplet. If you think this
21378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21379 ac_tool_warned=yes ;;
21384 LD="$ac_cv_prog_LD"
21388 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21390 if test "${ac_cv_header_stdc+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <stdlib.h>
21400 #include <stdarg.h>
21401 #include <string.h>
21412 rm -f conftest.$ac_objext
21413 if { (ac_try="$ac_compile"
21414 case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_compile") 2>conftest.er1
21421 grep -v '^ *+' conftest.er1 >conftest.err
21423 cat conftest.err >&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); } && {
21426 test -z "$ac_c_werror_flag" ||
21427 test ! -s conftest.err
21428 } && test -s conftest.$ac_objext; then
21429 ac_cv_header_stdc=yes
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ac_cv_header_stdc=no
21437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439 if test $ac_cv_header_stdc = yes; then
21440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <string.h>
21450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21451 $EGREP "memchr" >/dev/null 2>&1; then
21454 ac_cv_header_stdc=no
21460 if test $ac_cv_header_stdc = yes; then
21461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <stdlib.h>
21471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21472 $EGREP "free" >/dev/null 2>&1; then
21475 ac_cv_header_stdc=no
21481 if test $ac_cv_header_stdc = yes; then
21482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21483 if test "$cross_compiling" = yes; then
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 #include <stdlib.h>
21494 #if ((' ' & 0x0FF) == 0x020)
21495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21498 # define ISLOWER(c) \
21499 (('a' <= (c) && (c) <= 'i') \
21500 || ('j' <= (c) && (c) <= 'r') \
21501 || ('s' <= (c) && (c) <= 'z'))
21502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21510 for (i = 0; i < 256; i++)
21511 if (XOR (islower (i), ISLOWER (i))
21512 || toupper (i) != TOUPPER (i))
21517 rm -f conftest$ac_exeext
21518 if { (ac_try="$ac_link"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_link") 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528 { (case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_try") 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21539 echo "$as_me: program exited with status $ac_status" >&5
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ( exit $ac_status )
21544 ac_cv_header_stdc=no
21546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21552 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21553 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21554 if test $ac_cv_header_stdc = yes; then
21556 cat >>confdefs.h <<\_ACEOF
21557 @%:@define STDC_HEADERS 1
21563 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21564 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21565 if test "${knfsd_cv_glibc2+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21575 #include <features.h>
21576 #if !defined(__GLIBC__)
21581 if { (ac_try="$ac_cpp conftest.$ac_ext"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21589 grep -v '^ *+' conftest.er1 >conftest.err
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } >/dev/null && {
21594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21597 knfsd_cv_glibc2=yes
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21605 rm -f conftest.err conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21609 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21610 if test $knfsd_cv_glibc2 = yes; then
21611 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21612 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21616 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21617 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21618 if test "${knfsd_cv_bsd_signals+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 if test "$cross_compiling" = yes; then
21624 *linux*) knfsd_cv_bsd_signals=no;;
21625 *bsd*) knfsd_cv_bsd_signals=yes;;
21626 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21627 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21628 { (exit 1); exit 1; }; };;
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 #include <signal.h>
21640 #include <unistd.h>
21641 #include <sys/wait.h>
21643 static int counter = 0;
21644 static RETSIGTYPE handler(int num) { counter++; }
21649 if ((s = fork()) < 0) return 1;
21651 if (wait(&s) < 0) return 1;
21652 return WIFSIGNALED(s)? 1 : 0;
21655 signal(SIGHUP, handler);
21656 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21657 return (counter == 2)? 0 : 1;
21661 rm -f conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21672 { (case "(($ac_try" in
21673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_try") 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 knfsd_cv_bsd_signals=yes
21683 echo "$as_me: program exited with status $ac_status" >&5
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ( exit $ac_status )
21688 knfsd_cv_bsd_signals=no
21690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21695 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21696 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21697 test $knfsd_cv_bsd_signals = yes &&
21698 cat >>confdefs.h <<\_ACEOF
21699 @%:@define HAVE_BSD_SIGNALS 1
21704 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21706 if test "${ac_cv_func_gethostbyname+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 cat >conftest.$ac_ext <<_ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21717 #define gethostbyname innocuous_gethostbyname
21719 /* System header to define __stub macros and hopefully few prototypes,
21720 which can conflict with char gethostbyname (); below.
21721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21722 <limits.h> exists even on freestanding compilers. */
21725 # include <limits.h>
21727 # include <assert.h>
21730 #undef gethostbyname
21732 /* Override any GCC internal prototype to avoid an error.
21733 Use char because int might match the return type of a GCC
21734 builtin and then its argument prototype would still apply. */
21738 char gethostbyname ();
21739 /* The GNU C library defines this for functions which it implements
21740 to always fail with ENOSYS. Some functions are actually named
21741 something starting with __ and the normal name is an alias. */
21742 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21749 return gethostbyname ();
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (ac_try="$ac_link"
21756 case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_link") 2>conftest.er1
21763 grep -v '^ *+' conftest.er1 >conftest.err
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } && {
21768 test -z "$ac_c_werror_flag" ||
21769 test ! -s conftest.err
21770 } && test -s conftest$ac_exeext &&
21771 $as_test_x conftest$ac_exeext; then
21772 ac_cv_func_gethostbyname=yes
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ac_cv_func_gethostbyname=no
21780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781 conftest$ac_exeext conftest.$ac_ext
21783 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21784 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21785 if test $ac_cv_func_gethostbyname = yes; then
21788 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21789 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21790 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 ac_check_lib_save_LIBS=$LIBS
21795 cat >conftest.$ac_ext <<_ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21808 char gethostbyname ();
21812 return gethostbyname ();
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_link") 2>conftest.er1
21826 grep -v '^ *+' conftest.er1 >conftest.err
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } && {
21831 test -z "$ac_c_werror_flag" ||
21832 test ! -s conftest.err
21833 } && test -s conftest$ac_exeext &&
21834 $as_test_x conftest$ac_exeext; then
21835 ac_cv_lib_nsl_gethostbyname=yes
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ac_cv_lib_nsl_gethostbyname=no
21843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844 conftest$ac_exeext conftest.$ac_ext
21845 LIBS=$ac_check_lib_save_LIBS
21847 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21848 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21849 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21857 { echo "$as_me:$LINENO: checking for connect" >&5
21858 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21859 if test "${ac_cv_func_connect+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21870 #define connect innocuous_connect
21872 /* System header to define __stub macros and hopefully few prototypes,
21873 which can conflict with char connect (); below.
21874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875 <limits.h> exists even on freestanding compilers. */
21878 # include <limits.h>
21880 # include <assert.h>
21885 /* Override any GCC internal prototype to avoid an error.
21886 Use char because int might match the return type of a GCC
21887 builtin and then its argument prototype would still apply. */
21892 /* The GNU C library defines this for functions which it implements
21893 to always fail with ENOSYS. Some functions are actually named
21894 something starting with __ and the normal name is an alias. */
21895 #if defined __stub_connect || defined __stub___connect
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest$ac_exeext &&
21924 $as_test_x conftest$ac_exeext; then
21925 ac_cv_func_connect=yes
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_cv_func_connect=no
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21936 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21937 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21938 if test $ac_cv_func_connect = yes; then
21941 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21942 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21943 if test "${ac_cv_lib_socket_connect+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 ac_check_lib_save_LIBS=$LIBS
21947 LIBS="-lsocket $LIBNSL $LIBS"
21948 cat >conftest.$ac_ext <<_ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21955 /* Override any GCC internal prototype to avoid an error.
21956 Use char because int might match the return type of a GCC
21957 builtin and then its argument prototype would still apply. */
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_link") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest$ac_exeext &&
21987 $as_test_x conftest$ac_exeext; then
21988 ac_cv_lib_socket_connect=yes
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 ac_cv_lib_socket_connect=no
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997 conftest$ac_exeext conftest.$ac_ext
21998 LIBS=$ac_check_lib_save_LIBS
22000 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22001 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22002 if test $ac_cv_lib_socket_connect = yes; then
22003 LIBSOCKET="-lsocket"
22005 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22006 echo "$as_me: error: Function 'socket' not found." >&2;}
22007 { (exit 1); exit 1; }; }
22013 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22014 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22015 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 ac_check_lib_save_LIBS=$LIBS
22019 LIBS="-lcrypt $LIBS"
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22027 /* Override any GCC internal prototype to avoid an error.
22028 Use char because int might match the return type of a GCC
22029 builtin and then its argument prototype would still apply. */
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (ac_try="$ac_link"
22044 case "(($ac_try" in
22045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046 *) ac_try_echo=$ac_try;;
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049 (eval "$ac_link") 2>conftest.er1
22051 grep -v '^ *+' conftest.er1 >conftest.err
22053 cat conftest.err >&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } && {
22056 test -z "$ac_c_werror_flag" ||
22057 test ! -s conftest.err
22058 } && test -s conftest$ac_exeext &&
22059 $as_test_x conftest$ac_exeext; then
22060 ac_cv_lib_crypt_crypt=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_lib_crypt_crypt=no
22068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22069 conftest$ac_exeext conftest.$ac_ext
22070 LIBS=$ac_check_lib_save_LIBS
22072 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22073 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22074 if test $ac_cv_lib_crypt_crypt = yes; then
22078 if test "$enable_nfsv4" = yes; then
22079 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22080 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22081 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22084 ac_check_lib_save_LIBS=$LIBS
22085 LIBS="-levent $LIBS"
22086 cat >conftest.$ac_ext <<_ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22093 /* Override any GCC internal prototype to avoid an error.
22094 Use char because int might match the return type of a GCC
22095 builtin and then its argument prototype would still apply. */
22099 char event_dispatch ();
22103 return event_dispatch ();
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_link") 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest$ac_exeext &&
22125 $as_test_x conftest$ac_exeext; then
22126 ac_cv_lib_event_event_dispatch=yes
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 ac_cv_lib_event_event_dispatch=no
22134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22135 conftest$ac_exeext conftest.$ac_ext
22136 LIBS=$ac_check_lib_save_LIBS
22138 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22139 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22140 if test $ac_cv_lib_event_event_dispatch = yes; then
22143 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22144 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22145 { (exit 1); exit 1; }; }
22148 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22149 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22150 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 ac_check_lib_save_LIBS=$LIBS
22154 LIBS="-lnfsidmap $LIBS"
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22168 char nfs4_init_name_mapping ();
22172 return nfs4_init_name_mapping ();
22177 rm -f conftest.$ac_objext conftest$ac_exeext
22178 if { (ac_try="$ac_link"
22179 case "(($ac_try" in
22180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181 *) ac_try_echo=$ac_try;;
22183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184 (eval "$ac_link") 2>conftest.er1
22186 grep -v '^ *+' conftest.er1 >conftest.err
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } && {
22191 test -z "$ac_c_werror_flag" ||
22192 test ! -s conftest.err
22193 } && test -s conftest$ac_exeext &&
22194 $as_test_x conftest$ac_exeext; then
22195 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204 conftest$ac_exeext conftest.$ac_ext
22205 LIBS=$ac_check_lib_save_LIBS
22207 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22208 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22209 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22212 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22213 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22214 { (exit 1); exit 1; }; }
22218 for ac_header in event.h
22220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 ac_res=`eval echo '${'$as_ac_Header'}'`
22228 { echo "$as_me:$LINENO: result: $ac_res" >&5
22229 echo "${ECHO_T}$ac_res" >&6; }
22231 # Is the header compilable?
22232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 @%:@include <$ac_header>
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_header_compiler=yes
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_header_compiler=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 echo "${ECHO_T}$ac_header_compiler" >&6; }
22272 # Is the header present?
22273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 @%:@include <$ac_header>
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22291 grep -v '^ *+' conftest.er1 >conftest.err
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } >/dev/null && {
22296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22297 test ! -s conftest.err
22299 ac_header_preproc=yes
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ac_header_preproc=no
22307 rm -f conftest.err conftest.$ac_ext
22308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22309 echo "${ECHO_T}$ac_header_preproc" >&6; }
22311 # So? What about this header?
22312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22318 ac_header_preproc=yes
22321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22334 @%:@@%:@ ------------------------------- @%:@@%:@
22335 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22336 @%:@@%:@ ------------------------------- @%:@@%:@
22338 ) | sed "s/^/$as_me: WARNING: /" >&2
22341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 eval "$as_ac_Header=\$ac_header_preproc"
22348 ac_res=`eval echo '${'$as_ac_Header'}'`
22349 { echo "$as_me:$LINENO: result: $ac_res" >&5
22350 echo "${ECHO_T}$ac_res" >&6; }
22353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22354 cat >>confdefs.h <<_ACEOF
22355 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22359 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22360 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22361 { (exit 1); exit 1; }; }
22367 for ac_header in nfsidmap.h
22369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 ac_res=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22380 # Is the header compilable?
22381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22389 $ac_includes_default
22390 @%:@include <$ac_header>
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_compile") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } && {
22406 test -z "$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 } && test -s conftest.$ac_objext; then
22409 ac_header_compiler=yes
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_header_compiler=no
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22419 echo "${ECHO_T}$ac_header_compiler" >&6; }
22421 # Is the header present?
22422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22430 @%:@include <$ac_header>
22432 if { (ac_try="$ac_cpp conftest.$ac_ext"
22433 case "(($ac_try" in
22434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435 *) ac_try_echo=$ac_try;;
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22440 grep -v '^ *+' conftest.er1 >conftest.err
22442 cat conftest.err >&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } >/dev/null && {
22445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22446 test ! -s conftest.err
22448 ac_header_preproc=yes
22450 echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22453 ac_header_preproc=no
22456 rm -f conftest.err conftest.$ac_ext
22457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22458 echo "${ECHO_T}$ac_header_preproc" >&6; }
22460 # So? What about this header?
22461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22467 ac_header_preproc=yes
22470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22483 @%:@@%:@ ------------------------------- @%:@@%:@
22484 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22485 @%:@@%:@ ------------------------------- @%:@@%:@
22487 ) | sed "s/^/$as_me: WARNING: /" >&2
22490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 eval "$as_ac_Header=\$ac_header_preproc"
22497 ac_res=`eval echo '${'$as_ac_Header'}'`
22498 { echo "$as_me:$LINENO: result: $ac_res" >&5
22499 echo "${ECHO_T}$ac_res" >&6; }
22502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22503 cat >>confdefs.h <<_ACEOF
22504 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22508 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22509 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22510 { (exit 1); exit 1; }; }
22515 if test "$enable_gss" = yes; then
22518 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22519 if test -n "$ac_tool_prefix"; then
22520 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22521 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 case $PKG_CONFIG in
22529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22533 for as_dir in $PATH
22536 test -z "$as_dir" && as_dir=.
22537 for ac_exec_ext in '' $ac_executable_extensions; do
22538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22551 if test -n "$PKG_CONFIG"; then
22552 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22553 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22555 { echo "$as_me:$LINENO: result: no" >&5
22556 echo "${ECHO_T}no" >&6; }
22561 if test -z "$ac_cv_path_PKG_CONFIG"; then
22562 ac_pt_PKG_CONFIG=$PKG_CONFIG
22563 # Extract the first word of "pkg-config", so it can be a program name with args.
22564 set dummy pkg-config; ac_word=$2
22565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22567 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 case $ac_pt_PKG_CONFIG in
22572 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22576 for as_dir in $PATH
22579 test -z "$as_dir" && as_dir=.
22580 for ac_exec_ext in '' $ac_executable_extensions; do
22581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22582 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22593 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22594 if test -n "$ac_pt_PKG_CONFIG"; then
22595 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22596 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22598 { echo "$as_me:$LINENO: result: no" >&5
22599 echo "${ECHO_T}no" >&6; }
22602 if test "x$ac_pt_PKG_CONFIG" = x; then
22605 case $cross_compiling:$ac_tool_warned in
22607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22608 whose name does not start with the host triplet. If you think this
22609 configuration is useful to you, please write to autoconf@gnu.org." >&5
22610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22611 whose name does not start with the host triplet. If you think this
22612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22613 ac_tool_warned=yes ;;
22615 PKG_CONFIG=$ac_pt_PKG_CONFIG
22618 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22622 if test -n "$PKG_CONFIG"; then
22623 _pkg_min_version=0.9.0
22624 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22625 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22626 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22627 { echo "$as_me:$LINENO: result: yes" >&5
22628 echo "${ECHO_T}yes" >&6; }
22630 { echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6; }
22638 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22639 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22641 if test -n "$PKG_CONFIG"; then
22642 if test -n "$RPCSECGSS_CFLAGS"; then
22643 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22645 if test -n "$PKG_CONFIG" && \
22646 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22647 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; then
22651 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22659 if test -n "$PKG_CONFIG"; then
22660 if test -n "$RPCSECGSS_LIBS"; then
22661 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22663 if test -n "$PKG_CONFIG" && \
22664 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22665 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; then
22669 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22680 if test $pkg_failed = yes; then
22682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22683 _pkg_short_errors_supported=yes
22685 _pkg_short_errors_supported=no
22687 if test $_pkg_short_errors_supported = yes; then
22688 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22690 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22692 # Put the nasty error message in config.log where it belongs
22693 echo "$RPCSECGSS_PKG_ERRORS" >&5
22695 { echo "$as_me:$LINENO: result: no" >&5
22696 echo "${ECHO_T}no" >&6; }
22697 { { 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
22698 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;}
22699 { (exit 1); exit 1; }; }
22702 elif test $pkg_failed = untried; then
22703 { { 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
22704 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;}
22705 { (exit 1); exit 1; }; }
22709 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22710 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22711 { echo "$as_me:$LINENO: result: yes" >&5
22712 echo "${ECHO_T}yes" >&6; }
22717 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22718 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22720 if test -n "$PKG_CONFIG"; then
22721 if test -n "$GSSAPI_CFLAGS"; then
22722 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22724 if test -n "$PKG_CONFIG" && \
22725 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22726 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; then
22730 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22738 if test -n "$PKG_CONFIG"; then
22739 if test -n "$GSSAPI_LIBS"; then
22740 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22742 if test -n "$PKG_CONFIG" && \
22743 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22744 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; then
22748 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22759 if test $pkg_failed = yes; then
22761 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22762 _pkg_short_errors_supported=yes
22764 _pkg_short_errors_supported=no
22766 if test $_pkg_short_errors_supported = yes; then
22767 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22769 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22771 # Put the nasty error message in config.log where it belongs
22772 echo "$GSSAPI_PKG_ERRORS" >&5
22774 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22778 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22779 installed software in a non-standard prefix.
22781 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22782 and GSSAPI_LIBS to avoid the need to call pkg-config.
22783 See the pkg-config man page for more details.
22785 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22789 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22790 installed software in a non-standard prefix.
22792 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22793 and GSSAPI_LIBS to avoid the need to call pkg-config.
22794 See the pkg-config man page for more details.
22796 { (exit 1); exit 1; }; }
22797 elif test $pkg_failed = untried; then
22798 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22799 is in your PATH or set the PKG_CONFIG environment variable to the full
22800 path to pkg-config.
22802 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22803 and GSSAPI_LIBS to avoid the need to call pkg-config.
22804 See the pkg-config man page for more details.
22806 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22807 See \`config.log' for more details." >&5
22808 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22809 is in your PATH or set the PKG_CONFIG environment variable to the full
22810 path to pkg-config.
22812 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22813 and GSSAPI_LIBS to avoid the need to call pkg-config.
22814 See the pkg-config man page for more details.
22816 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22817 See \`config.log' for more details." >&2;}
22818 { (exit 1); exit 1; }; }
22820 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22821 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22822 { echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6; }
22829 if test "$knfsd_cv_glibc2" = no; then
22830 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22831 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22832 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 ac_check_lib_save_LIBS=$LIBS
22837 cat >conftest.$ac_ext <<_ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22844 /* Override any GCC internal prototype to avoid an error.
22845 Use char because int might match the return type of a GCC
22846 builtin and then its argument prototype would still apply. */
22859 rm -f conftest.$ac_objext conftest$ac_exeext
22860 if { (ac_try="$ac_link"
22861 case "(($ac_try" in
22862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863 *) ac_try_echo=$ac_try;;
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866 (eval "$ac_link") 2>conftest.er1
22868 grep -v '^ *+' conftest.er1 >conftest.err
22870 cat conftest.err >&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } && {
22873 test -z "$ac_c_werror_flag" ||
22874 test ! -s conftest.err
22875 } && test -s conftest$ac_exeext &&
22876 $as_test_x conftest$ac_exeext; then
22877 ac_cv_lib_bsd_daemon=yes
22879 echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22882 ac_cv_lib_bsd_daemon=no
22885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22886 conftest$ac_exeext conftest.$ac_ext
22887 LIBS=$ac_check_lib_save_LIBS
22889 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22890 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22891 if test $ac_cv_lib_bsd_daemon = yes; then
22897 if test "$choose_blkid" != no; then
22898 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22899 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22900 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 ac_check_lib_save_LIBS=$LIBS
22904 LIBS="-lblkid $LIBS"
22905 cat >conftest.$ac_ext <<_ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22912 /* Override any GCC internal prototype to avoid an error.
22913 Use char because int might match the return type of a GCC
22914 builtin and then its argument prototype would still apply. */
22918 char blkid_get_library_version ();
22922 return blkid_get_library_version ();
22927 rm -f conftest.$ac_objext conftest$ac_exeext
22928 if { (ac_try="$ac_link"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_link") 2>conftest.er1
22936 grep -v '^ *+' conftest.er1 >conftest.err
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest$ac_exeext &&
22944 $as_test_x conftest$ac_exeext; then
22945 ac_cv_lib_blkid_blkid_get_library_version=yes
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ac_cv_lib_blkid_blkid_get_library_version=no
22953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22954 conftest$ac_exeext conftest.$ac_ext
22955 LIBS=$ac_check_lib_save_LIBS
22957 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22958 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22959 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22962 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22963 echo "$as_me: error: libblkid needed" >&2;}
22964 { (exit 1); exit 1; }; }
22967 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22968 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22969 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22970 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22971 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22974 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22976 # Is the header compilable?
22977 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22978 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 $ac_includes_default
22986 @%:@include <blkid/blkid.h>
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_compile") 2>conftest.er1
22997 grep -v '^ *+' conftest.er1 >conftest.err
22999 cat conftest.err >&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } && {
23002 test -z "$ac_c_werror_flag" ||
23003 test ! -s conftest.err
23004 } && test -s conftest.$ac_objext; then
23005 ac_header_compiler=yes
23007 echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ac_header_compiler=no
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23015 echo "${ECHO_T}$ac_header_compiler" >&6; }
23017 # Is the header present?
23018 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23019 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 @%:@include <blkid/blkid.h>
23028 if { (ac_try="$ac_cpp conftest.$ac_ext"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23036 grep -v '^ *+' conftest.er1 >conftest.err
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } >/dev/null && {
23041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23042 test ! -s conftest.err
23044 ac_header_preproc=yes
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ac_header_preproc=no
23052 rm -f conftest.err conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23054 echo "${ECHO_T}$ac_header_preproc" >&6; }
23056 # So? What about this header?
23057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23059 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23060 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23062 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23063 ac_header_preproc=yes
23066 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23067 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23069 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23071 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23073 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23075 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23076 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23077 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23079 @%:@@%:@ ------------------------------- @%:@@%:@
23080 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23081 @%:@@%:@ ------------------------------- @%:@@%:@
23083 ) | sed "s/^/$as_me: WARNING: /" >&2
23086 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23087 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23088 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23089 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23093 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23094 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23097 if test $ac_cv_header_blkid_blkid_h = yes; then
23100 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23101 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23102 { (exit 1); exit 1; }; }
23107 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23108 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23109 if test "${libblkid_is_recent+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 if test "$cross_compiling" = yes; then
23116 libblkid_is_recent=unknown
23118 cat >conftest.$ac_ext <<_ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23125 #include <blkid/blkid.h>
23128 int vers = blkid_get_library_version(0, 0);
23129 return vers >= 140 ? 0 : 1;
23133 rm -f conftest$ac_exeext
23134 if { (ac_try="$ac_link"
23135 case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_link") 2>&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23144 { (case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149 (eval "$ac_try") 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; }; then
23153 libblkid_is_recent=yes
23155 echo "$as_me: program exited with status $ac_status" >&5
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ( exit $ac_status )
23160 libblkid_is_recent=no
23162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23169 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23170 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23172 if test $choose_blkid = yes; then
23174 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23175 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23177 if test $libblkid_is_recent = yes
23180 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23181 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23185 cat >>confdefs.h <<_ACEOF
23186 @%:@define USE_BLKID $use_blkid
23195 if test "$enable_gss" = yes; then
23197 for ac_header in nfsidmap.h
23199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23206 ac_res=`eval echo '${'$as_ac_Header'}'`
23207 { echo "$as_me:$LINENO: result: $ac_res" >&5
23208 echo "${ECHO_T}$ac_res" >&6; }
23210 # Is the header compilable?
23211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23213 cat >conftest.$ac_ext <<_ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h. */
23219 $ac_includes_default
23220 @%:@include <$ac_header>
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_header_compiler=yes
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 ac_header_compiler=no
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23249 echo "${ECHO_T}$ac_header_compiler" >&6; }
23251 # Is the header present?
23252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23254 cat >conftest.$ac_ext <<_ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h. */
23260 @%:@include <$ac_header>
23262 if { (ac_try="$ac_cpp conftest.$ac_ext"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } >/dev/null && {
23275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23278 ac_header_preproc=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_header_preproc=no
23286 rm -f conftest.err conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23288 echo "${ECHO_T}$ac_header_preproc" >&6; }
23290 # So? What about this header?
23291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23297 ac_header_preproc=yes
23300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23313 @%:@@%:@ ------------------------------- @%:@@%:@
23314 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23315 @%:@@%:@ ------------------------------- @%:@@%:@
23317 ) | sed "s/^/$as_me: WARNING: /" >&2
23320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 eval "$as_ac_Header=\$ac_header_preproc"
23327 ac_res=`eval echo '${'$as_ac_Header'}'`
23328 { echo "$as_me:$LINENO: result: $ac_res" >&5
23329 echo "${ECHO_T}$ac_res" >&6; }
23332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23333 cat >>confdefs.h <<_ACEOF
23334 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23338 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23339 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23340 { (exit 1); exit 1; }; }
23346 for ac_header in spkm3.h
23348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 ac_res=`eval echo '${'$as_ac_Header'}'`
23356 { echo "$as_me:$LINENO: result: $ac_res" >&5
23357 echo "${ECHO_T}$ac_res" >&6; }
23359 # Is the header compilable?
23360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23369 @%:@include <$ac_header>
23371 rm -f conftest.$ac_objext
23372 if { (ac_try="$ac_compile"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_compile") 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
23388 ac_header_compiler=yes
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ac_header_compiler=no
23396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23398 echo "${ECHO_T}$ac_header_compiler" >&6; }
23400 # Is the header present?
23401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23403 cat >conftest.$ac_ext <<_ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 @%:@include <$ac_header>
23411 if { (ac_try="$ac_cpp conftest.$ac_ext"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } >/dev/null && {
23424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23427 ac_header_preproc=yes
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_header_preproc=no
23435 rm -f conftest.err conftest.$ac_ext
23436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23437 echo "${ECHO_T}$ac_header_preproc" >&6; }
23439 # So? What about this header?
23440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23446 ac_header_preproc=yes
23449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23462 @%:@@%:@ ------------------------------- @%:@@%:@
23463 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23464 @%:@@%:@ ------------------------------- @%:@@%:@
23466 ) | sed "s/^/$as_me: WARNING: /" >&2
23469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23474 eval "$as_ac_Header=\$ac_header_preproc"
23476 ac_res=`eval echo '${'$as_ac_Header'}'`
23477 { echo "$as_me:$LINENO: result: $ac_res" >&5
23478 echo "${ECHO_T}$ac_res" >&6; }
23481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23482 cat >>confdefs.h <<_ACEOF
23483 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23487 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23488 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23493 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23494 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23495 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 ac_check_lib_save_LIBS=$LIBS
23499 LIBS="-lnfsidmap $LIBS"
23500 cat >conftest.$ac_ext <<_ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23507 /* Override any GCC internal prototype to avoid an error.
23508 Use char because int might match the return type of a GCC
23509 builtin and then its argument prototype would still apply. */
23513 char nfs4_set_debug ();
23517 return nfs4_set_debug ();
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (ac_try="$ac_link"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_link") 2>conftest.er1
23531 grep -v '^ *+' conftest.er1 >conftest.err
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest$ac_exeext &&
23539 $as_test_x conftest$ac_exeext; then
23540 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23549 conftest$ac_exeext conftest.$ac_ext
23550 LIBS=$ac_check_lib_save_LIBS
23552 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23553 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23554 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23556 cat >>confdefs.h <<\_ACEOF
23557 @%:@define HAVE_NFS4_SET_DEBUG 1
23564 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23565 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23567 # Check whether --with-krb5 was given.
23568 if test "${with_krb5+set}" = set; then
23569 withval=$with_krb5; case "$withval" in
23574 krb5_with="$withval"
23581 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23582 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23584 if test -f $dir/bin/krb5-config; then
23585 K5CONFIG=$dir/bin/krb5-config
23586 elif test -f "/usr/kerberos/bin/krb5-config"; then
23587 K5CONFIG="/usr/kerberos/bin/krb5-config"
23588 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23589 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23591 if test "$K5CONFIG" != ""; then
23592 KRBCFLAGS=`$K5CONFIG --cflags`
23593 KRBLIBS=`$K5CONFIG --libs gssapi`
23594 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23596 cat >>confdefs.h <<_ACEOF
23597 @%:@define KRB5_VERSION $K5VERS
23600 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23601 \( -f $dir/lib/libgssapi_krb5.a -o \
23602 -f $dir/lib64/libgssapi_krb5.a -o \
23603 -f $dir/lib64/libgssapi_krb5.so -o \
23604 -f $dir/lib/libgssapi_krb5.so \) ; then
23606 cat >>confdefs.h <<\_ACEOF
23607 @%:@define HAVE_KRB5 1
23611 if test $K5VERS -le 131; then
23613 cat >>confdefs.h <<\_ACEOF
23614 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23618 gssapi_lib=gssapi_krb5
23620 elif test \( -f $dir/include/heim_err.h -o\
23621 -f $dir/include/heimdal/heim_err.h \) -a \
23622 -f $dir/lib/libroken.a; then
23624 cat >>confdefs.h <<\_ACEOF
23625 @%:@define HAVE_HEIMDAL 1
23634 if test "x$KRBDIR" = "x"; then
23635 if test "x$krb5_with" = "x"; then
23636 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23637 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23638 { (exit 1); exit 1; }; }
23640 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23641 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23642 { (exit 1); exit 1; }; }
23645 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23646 echo "${ECHO_T}$KRBDIR" >&6; }
23648 echo "The current KRBDIR is $KRBDIR"
23649 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23650 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23652 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23655 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23658 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23659 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23660 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23661 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 ac_check_lib_save_LIBS=$LIBS
23665 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23673 /* Override any GCC internal prototype to avoid an error.
23674 Use char because int might match the return type of a GCC
23675 builtin and then its argument prototype would still apply. */
23679 char gss_krb5_export_lucid_sec_context ();
23683 return gss_krb5_export_lucid_sec_context ();
23688 rm -f conftest.$ac_objext conftest$ac_exeext
23689 if { (ac_try="$ac_link"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_link") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest$ac_exeext &&
23705 $as_test_x conftest$ac_exeext; then
23706 eval "$as_ac_Lib=yes"
23708 echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23711 eval "$as_ac_Lib=no"
23714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23715 conftest$ac_exeext conftest.$ac_ext
23716 LIBS=$ac_check_lib_save_LIBS
23718 ac_res=`eval echo '${'$as_ac_Lib'}'`
23719 { echo "$as_me:$LINENO: result: $ac_res" >&5
23720 echo "${ECHO_T}$ac_res" >&6; }
23721 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23723 cat >>confdefs.h <<\_ACEOF
23724 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23729 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23730 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23731 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23732 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 ac_check_lib_save_LIBS=$LIBS
23736 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 /* Override any GCC internal prototype to avoid an error.
23745 Use char because int might match the return type of a GCC
23746 builtin and then its argument prototype would still apply. */
23750 char gss_krb5_set_allowable_enctypes ();
23754 return gss_krb5_set_allowable_enctypes ();
23759 rm -f conftest.$ac_objext conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_link") 2>conftest.er1
23768 grep -v '^ *+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest$ac_exeext &&
23776 $as_test_x conftest$ac_exeext; then
23777 eval "$as_ac_Lib=yes"
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 eval "$as_ac_Lib=no"
23785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23786 conftest$ac_exeext conftest.$ac_ext
23787 LIBS=$ac_check_lib_save_LIBS
23789 ac_res=`eval echo '${'$as_ac_Lib'}'`
23790 { echo "$as_me:$LINENO: result: $ac_res" >&5
23791 echo "${ECHO_T}$ac_res" >&6; }
23792 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23794 cat >>confdefs.h <<\_ACEOF
23795 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23800 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23801 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23802 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23803 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 /* Override any GCC internal prototype to avoid an error.
23816 Use char because int might match the return type of a GCC
23817 builtin and then its argument prototype would still apply. */
23821 char gss_krb5_ccache_name ();
23825 return gss_krb5_ccache_name ();
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_link") 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_c_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest$ac_exeext &&
23847 $as_test_x conftest$ac_exeext; then
23848 eval "$as_ac_Lib=yes"
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 eval "$as_ac_Lib=no"
23856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23857 conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23860 ac_res=`eval echo '${'$as_ac_Lib'}'`
23861 { echo "$as_me:$LINENO: result: $ac_res" >&5
23862 echo "${ECHO_T}$ac_res" >&6; }
23863 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23865 cat >>confdefs.h <<\_ACEOF
23866 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23872 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23873 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23874 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23875 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23878 ac_check_lib_save_LIBS=$LIBS
23879 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23880 cat >conftest.$ac_ext <<_ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23887 /* Override any GCC internal prototype to avoid an error.
23888 Use char because int might match the return type of a GCC
23889 builtin and then its argument prototype would still apply. */
23893 char krb5_get_error_message ();
23897 return krb5_get_error_message ();
23902 rm -f conftest.$ac_objext conftest$ac_exeext
23903 if { (ac_try="$ac_link"
23904 case "(($ac_try" in
23905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906 *) ac_try_echo=$ac_try;;
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909 (eval "$ac_link") 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } && {
23916 test -z "$ac_c_werror_flag" ||
23917 test ! -s conftest.err
23918 } && test -s conftest$ac_exeext &&
23919 $as_test_x conftest$ac_exeext; then
23920 eval "$as_ac_Lib=yes"
23922 echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23925 eval "$as_ac_Lib=no"
23928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23929 conftest$ac_exeext conftest.$ac_ext
23930 LIBS=$ac_check_lib_save_LIBS
23932 ac_res=`eval echo '${'$as_ac_Lib'}'`
23933 { echo "$as_me:$LINENO: result: $ac_res" >&5
23934 echo "${ECHO_T}$ac_res" >&6; }
23935 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23937 cat >>confdefs.h <<\_ACEOF
23938 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23944 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23945 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23946 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23947 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23948 echo $ECHO_N "(cached) $ECHO_C" >&6
23950 ac_check_lib_save_LIBS=$LIBS
23951 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23959 /* Override any GCC internal prototype to avoid an error.
23960 Use char because int might match the return type of a GCC
23961 builtin and then its argument prototype would still apply. */
23965 char krb5_get_init_creds_opt_set_addressless ();
23969 return krb5_get_init_creds_opt_set_addressless ();
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>conftest.er1
23983 grep -v '^ *+' conftest.er1 >conftest.err
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && {
23988 test -z "$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23990 } && test -s conftest$ac_exeext &&
23991 $as_test_x conftest$ac_exeext; then
23992 eval "$as_ac_Lib=yes"
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 eval "$as_ac_Lib=no"
24000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24001 conftest$ac_exeext conftest.$ac_ext
24002 LIBS=$ac_check_lib_save_LIBS
24004 ac_res=`eval echo '${'$as_ac_Lib'}'`
24005 { echo "$as_me:$LINENO: result: $ac_res" >&5
24006 echo "${ECHO_T}$ac_res" >&6; }
24007 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24009 cat >>confdefs.h <<\_ACEOF
24010 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24016 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24017 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24018 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24029 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24030 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24031 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 ac_check_lib_save_LIBS=$LIBS
24035 LIBS="-lrpcsecgss -lgssapi -ldl $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. */
24049 char authgss_create_default ();
24053 return authgss_create_default ();
24058 rm -f conftest.$ac_objext conftest$ac_exeext
24059 if { (ac_try="$ac_link"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_link") 2>conftest.er1
24067 grep -v '^ *+' conftest.er1 >conftest.err
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest$ac_exeext &&
24075 $as_test_x conftest$ac_exeext; then
24076 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24078 echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24081 ac_cv_lib_rpcsecgss_authgss_create_default=no
24084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24085 conftest$ac_exeext conftest.$ac_ext
24086 LIBS=$ac_check_lib_save_LIBS
24088 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24089 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24090 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24093 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24094 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24095 { (exit 1); exit 1; }; }
24098 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24099 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24100 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24103 ac_check_lib_save_LIBS=$LIBS
24104 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24105 cat >conftest.$ac_ext <<_ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h. */
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24118 char authgss_set_debug_level ();
24122 return authgss_set_debug_level ();
24127 rm -f conftest.$ac_objext conftest$ac_exeext
24128 if { (ac_try="$ac_link"
24129 case "(($ac_try" in
24130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134 (eval "$ac_link") 2>conftest.er1
24136 grep -v '^ *+' conftest.er1 >conftest.err
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } && {
24141 test -z "$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24143 } && test -s conftest$ac_exeext &&
24144 $as_test_x conftest$ac_exeext; then
24145 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24154 conftest$ac_exeext conftest.$ac_ext
24155 LIBS=$ac_check_lib_save_LIBS
24157 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24158 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24159 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24161 cat >>confdefs.h <<\_ACEOF
24162 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24193 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24194 malloc.h memory.h netdb.h netinet/in.h paths.h \
24195 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24196 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24197 syslog.h unistd.h com_err.h et/com_err.h \
24200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24207 ac_res=`eval echo '${'$as_ac_Header'}'`
24208 { echo "$as_me:$LINENO: result: $ac_res" >&5
24209 echo "${ECHO_T}$ac_res" >&6; }
24211 # Is the header compilable?
24212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24214 cat >conftest.$ac_ext <<_ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24220 $ac_includes_default
24221 @%:@include <$ac_header>
24223 rm -f conftest.$ac_objext
24224 if { (ac_try="$ac_compile"
24225 case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230 (eval "$ac_compile") 2>conftest.er1
24232 grep -v '^ *+' conftest.er1 >conftest.err
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } && {
24237 test -z "$ac_c_werror_flag" ||
24238 test ! -s conftest.err
24239 } && test -s conftest.$ac_objext; then
24240 ac_header_compiler=yes
24242 echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24245 ac_header_compiler=no
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24250 echo "${ECHO_T}$ac_header_compiler" >&6; }
24252 # Is the header present?
24253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24255 cat >conftest.$ac_ext <<_ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261 @%:@include <$ac_header>
24263 if { (ac_try="$ac_cpp conftest.$ac_ext"
24264 case "(($ac_try" in
24265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24266 *) ac_try_echo=$ac_try;;
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24271 grep -v '^ *+' conftest.er1 >conftest.err
24273 cat conftest.err >&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); } >/dev/null && {
24276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24277 test ! -s conftest.err
24279 ac_header_preproc=yes
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_header_preproc=no
24287 rm -f conftest.err conftest.$ac_ext
24288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24289 echo "${ECHO_T}$ac_header_preproc" >&6; }
24291 # So? What about this header?
24292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24298 ac_header_preproc=yes
24301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24314 @%:@@%:@ ------------------------------- @%:@@%:@
24315 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24316 @%:@@%:@ ------------------------------- @%:@@%:@
24318 ) | sed "s/^/$as_me: WARNING: /" >&2
24321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24326 eval "$as_ac_Header=\$ac_header_preproc"
24328 ac_res=`eval echo '${'$as_ac_Header'}'`
24329 { echo "$as_me:$LINENO: result: $ac_res" >&5
24330 echo "${ECHO_T}$ac_res" >&6; }
24333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24334 cat >>confdefs.h <<_ACEOF
24335 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24343 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24344 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24345 if test "${ac_cv_c_const+set}" = set; then
24346 echo $ECHO_N "(cached) $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. */
24358 /* FIXME: Include the comments suggested by Paul. */
24359 #ifndef __cplusplus
24360 /* Ultrix mips cc rejects this. */
24361 typedef int charset[2];
24363 /* SunOS 4.1.1 cc rejects this. */
24364 char const *const *pcpcc;
24366 /* NEC SVR4.0.2 mips cc rejects this. */
24367 struct point {int x, y;};
24368 static struct point const zero = {0,0};
24369 /* AIX XL C 1.02.0.0 rejects this.
24370 It does not let you subtract one const X* pointer from another in
24371 an arm of an if-expression whose if-part is not a constant
24373 const char *g = "string";
24374 pcpcc = &g + (g ? g-g : 0);
24375 /* HPUX 7.0 cc rejects these. */
24377 ppc = (char**) pcpcc;
24378 pcpcc = (char const *const *) ppc;
24379 { /* SCO 3.2v4 cc rejects this. */
24381 char const *s = 0 ? (char *) 0 : (char const *) 0;
24386 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24387 int x[] = {25, 17};
24388 const int *foo = &x[0];
24391 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24392 typedef const int *iptr;
24396 { /* AIX XL C 1.02.0.0 rejects this saying
24397 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24398 struct s { int j; const int *ap[3]; };
24399 struct s *b; b->j = 5;
24401 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24402 const int foo = 10;
24403 if (!foo) return 0;
24405 return !cs[0] && !zero.x;
24412 rm -f conftest.$ac_objext
24413 if { (ac_try="$ac_compile"
24414 case "(($ac_try" in
24415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416 *) ac_try_echo=$ac_try;;
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419 (eval "$ac_compile") 2>conftest.er1
24421 grep -v '^ *+' conftest.er1 >conftest.err
24423 cat conftest.err >&5
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); } && {
24426 test -z "$ac_c_werror_flag" ||
24427 test ! -s conftest.err
24428 } && test -s conftest.$ac_objext; then
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24439 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24440 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24441 if test $ac_cv_c_const = no; then
24443 cat >>confdefs.h <<\_ACEOF
24449 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24450 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24451 if test "${ac_cv_type_uid_t+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 cat >conftest.$ac_ext <<_ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h. */
24460 #include <sys/types.h>
24463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24464 $EGREP "uid_t" >/dev/null 2>&1; then
24465 ac_cv_type_uid_t=yes
24467 ac_cv_type_uid_t=no
24472 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24473 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24474 if test $ac_cv_type_uid_t = no; then
24476 cat >>confdefs.h <<\_ACEOF
24477 @%:@define uid_t int
24481 cat >>confdefs.h <<\_ACEOF
24482 @%:@define gid_t int
24487 { echo "$as_me:$LINENO: checking for inline" >&5
24488 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24489 if test "${ac_cv_c_inline+set}" = set; then
24490 echo $ECHO_N "(cached) $ECHO_C" >&6
24493 for ac_kw in inline __inline__ __inline; do
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 #ifndef __cplusplus
24502 static $ac_kw foo_t static_foo () {return 0; }
24503 $ac_kw foo_t foo () {return 0; }
24507 rm -f conftest.$ac_objext
24508 if { (ac_try="$ac_compile"
24509 case "(($ac_try" in
24510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24511 *) ac_try_echo=$ac_try;;
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514 (eval "$ac_compile") 2>conftest.er1
24516 grep -v '^ *+' conftest.er1 >conftest.err
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && {
24521 test -z "$ac_c_werror_flag" ||
24522 test ! -s conftest.err
24523 } && test -s conftest.$ac_objext; then
24524 ac_cv_c_inline=$ac_kw
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24533 test "$ac_cv_c_inline" != no && break
24537 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24538 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24541 case $ac_cv_c_inline in
24544 case $ac_cv_c_inline in
24546 *) ac_val=$ac_cv_c_inline;;
24548 cat >>confdefs.h <<_ACEOF
24549 #ifndef __cplusplus
24550 #define inline $ac_val
24556 { echo "$as_me:$LINENO: checking for off_t" >&5
24557 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24558 if test "${ac_cv_type_off_t+set}" = set; then
24559 echo $ECHO_N "(cached) $ECHO_C" >&6
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 $ac_includes_default
24568 typedef off_t ac__type_new_;
24572 if ((ac__type_new_ *) 0)
24574 if (sizeof (ac__type_new_))
24580 rm -f conftest.$ac_objext
24581 if { (ac_try="$ac_compile"
24582 case "(($ac_try" in
24583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584 *) ac_try_echo=$ac_try;;
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587 (eval "$ac_compile") 2>conftest.er1
24589 grep -v '^ *+' conftest.er1 >conftest.err
24591 cat conftest.err >&5
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); } && {
24594 test -z "$ac_c_werror_flag" ||
24595 test ! -s conftest.err
24596 } && test -s conftest.$ac_objext; then
24597 ac_cv_type_off_t=yes
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24602 ac_cv_type_off_t=no
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24608 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24609 if test $ac_cv_type_off_t = yes; then
24613 cat >>confdefs.h <<_ACEOF
24614 @%:@define off_t long int
24619 { echo "$as_me:$LINENO: checking for pid_t" >&5
24620 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24621 if test "${ac_cv_type_pid_t+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
24624 cat >conftest.$ac_ext <<_ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24630 $ac_includes_default
24631 typedef pid_t ac__type_new_;
24635 if ((ac__type_new_ *) 0)
24637 if (sizeof (ac__type_new_))
24643 rm -f conftest.$ac_objext
24644 if { (ac_try="$ac_compile"
24645 case "(($ac_try" in
24646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647 *) ac_try_echo=$ac_try;;
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650 (eval "$ac_compile") 2>conftest.er1
24652 grep -v '^ *+' conftest.er1 >conftest.err
24654 cat conftest.err >&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } && {
24657 test -z "$ac_c_werror_flag" ||
24658 test ! -s conftest.err
24659 } && test -s conftest.$ac_objext; then
24660 ac_cv_type_pid_t=yes
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 ac_cv_type_pid_t=no
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24670 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24672 if test $ac_cv_type_pid_t = yes; then
24676 cat >>confdefs.h <<_ACEOF
24677 @%:@define pid_t int
24682 { echo "$as_me:$LINENO: checking for size_t" >&5
24683 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24684 if test "${ac_cv_type_size_t+set}" = set; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24687 cat >conftest.$ac_ext <<_ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h. */
24693 $ac_includes_default
24694 typedef size_t ac__type_new_;
24698 if ((ac__type_new_ *) 0)
24700 if (sizeof (ac__type_new_))
24706 rm -f conftest.$ac_objext
24707 if { (ac_try="$ac_compile"
24708 case "(($ac_try" in
24709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710 *) ac_try_echo=$ac_try;;
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_compile") 2>conftest.er1
24715 grep -v '^ *+' conftest.er1 >conftest.err
24717 cat conftest.err >&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && {
24720 test -z "$ac_c_werror_flag" ||
24721 test ! -s conftest.err
24722 } && test -s conftest.$ac_objext; then
24723 ac_cv_type_size_t=yes
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24728 ac_cv_type_size_t=no
24731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24734 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24735 if test $ac_cv_type_size_t = yes; then
24739 cat >>confdefs.h <<_ACEOF
24740 @%:@define size_t unsigned int
24745 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24746 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24747 if test "${ac_cv_header_time+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 cat >conftest.$ac_ext <<_ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h. */
24756 #include <sys/types.h>
24757 #include <sys/time.h>
24763 if ((struct tm *) 0)
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
24771 case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24786 ac_cv_header_time=yes
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ac_cv_header_time=no
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24797 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24798 if test $ac_cv_header_time = yes; then
24800 cat >>confdefs.h <<\_ACEOF
24801 @%:@define TIME_WITH_SYS_TIME 1
24806 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24807 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24808 if test "${ac_cv_struct_tm+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 cat >conftest.$ac_ext <<_ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 #include <sys/types.h>
24824 int *p = &tm.tm_sec;
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_compile") 2>conftest.er1
24839 grep -v '^ *+' conftest.er1 >conftest.err
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest.$ac_objext; then
24847 ac_cv_struct_tm=time.h
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ac_cv_struct_tm=sys/time.h
24855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24859 if test $ac_cv_struct_tm = sys/time.h; then
24861 cat >>confdefs.h <<\_ACEOF
24862 @%:@define TM_IN_SYS_TIME 1
24868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24869 # for constant arguments. Useless!
24870 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24871 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24872 if test "${ac_cv_working_alloca_h+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24875 cat >conftest.$ac_ext <<_ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h. */
24881 @%:@include <alloca.h>
24885 char *p = (char *) alloca (2 * sizeof (int));
24891 rm -f conftest.$ac_objext conftest$ac_exeext
24892 if { (ac_try="$ac_link"
24893 case "(($ac_try" in
24894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895 *) ac_try_echo=$ac_try;;
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898 (eval "$ac_link") 2>conftest.er1
24900 grep -v '^ *+' conftest.er1 >conftest.err
24902 cat conftest.err >&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } && {
24905 test -z "$ac_c_werror_flag" ||
24906 test ! -s conftest.err
24907 } && test -s conftest$ac_exeext &&
24908 $as_test_x conftest$ac_exeext; then
24909 ac_cv_working_alloca_h=yes
24911 echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24914 ac_cv_working_alloca_h=no
24917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24918 conftest$ac_exeext conftest.$ac_ext
24920 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24921 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24922 if test $ac_cv_working_alloca_h = yes; then
24924 cat >>confdefs.h <<\_ACEOF
24925 @%:@define HAVE_ALLOCA_H 1
24930 { echo "$as_me:$LINENO: checking for alloca" >&5
24931 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24932 if test "${ac_cv_func_alloca_works+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 cat >conftest.$ac_ext <<_ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h. */
24942 # define alloca __builtin_alloca
24945 # include <malloc.h>
24946 # define alloca _alloca
24948 # ifdef HAVE_ALLOCA_H
24949 # include <alloca.h>
24954 # ifndef alloca /* predefined by HP cc +Olibcalls */
24965 char *p = (char *) alloca (1);
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_alloca_works=yes
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_cv_func_alloca_works=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_alloca_works" >&5
25001 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25003 if test $ac_cv_func_alloca_works = yes; then
25005 cat >>confdefs.h <<\_ACEOF
25006 @%:@define HAVE_ALLOCA 1
25010 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25011 # that cause trouble. Some versions do not even contain alloca or
25012 # contain a buggy version. If you still want to use their alloca,
25013 # use ar to extract alloca.o from them instead of compiling alloca.c.
25015 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25017 cat >>confdefs.h <<\_ACEOF
25018 @%:@define C_ALLOCA 1
25022 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25023 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25024 if test "${ac_cv_os_cray+set}" = set; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25033 #if defined CRAY && ! defined CRAY2
25040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25041 $EGREP "webecray" >/dev/null 2>&1; then
25049 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25050 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25051 if test $ac_cv_os_cray = yes; then
25052 for ac_func in _getb67 GETB67 getb67; do
25053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 cat >conftest.$ac_ext <<_ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h. */
25065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25067 #define $ac_func innocuous_$ac_func
25069 /* System header to define __stub macros and hopefully few prototypes,
25070 which can conflict with char $ac_func (); below.
25071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25072 <limits.h> exists even on freestanding compilers. */
25075 # include <limits.h>
25077 # include <assert.h>
25082 /* Override any GCC internal prototype to avoid an error.
25083 Use char because int might match the return type of a GCC
25084 builtin and then its argument prototype would still apply. */
25089 /* The GNU C library defines this for functions which it implements
25090 to always fail with ENOSYS. Some functions are actually named
25091 something starting with __ and the normal name is an alias. */
25092 #if defined __stub_$ac_func || defined __stub___$ac_func
25099 return $ac_func ();
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (ac_try="$ac_link"
25106 case "(($ac_try" in
25107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108 *) ac_try_echo=$ac_try;;
25110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111 (eval "$ac_link") 2>conftest.er1
25113 grep -v '^ *+' conftest.er1 >conftest.err
25115 cat conftest.err >&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } && {
25118 test -z "$ac_c_werror_flag" ||
25119 test ! -s conftest.err
25120 } && test -s conftest$ac_exeext &&
25121 $as_test_x conftest$ac_exeext; then
25122 eval "$as_ac_var=yes"
25124 echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25127 eval "$as_ac_var=no"
25130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25131 conftest$ac_exeext conftest.$ac_ext
25133 ac_res=`eval echo '${'$as_ac_var'}'`
25134 { echo "$as_me:$LINENO: result: $ac_res" >&5
25135 echo "${ECHO_T}$ac_res" >&6; }
25136 if test `eval echo '${'$as_ac_var'}'` = yes; then
25138 cat >>confdefs.h <<_ACEOF
25139 @%:@define CRAY_STACKSEG_END $ac_func
25148 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25149 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25150 if test "${ac_cv_c_stack_direction+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 if test "$cross_compiling" = yes; then
25154 ac_cv_c_stack_direction=0
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 $ac_includes_default
25164 find_stack_direction ()
25166 static char *addr = 0;
25171 return find_stack_direction ();
25174 return (&dummy > addr) ? 1 : -1;
25180 return find_stack_direction () < 0;
25183 rm -f conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187 *) ac_try_echo=$ac_try;;
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190 (eval "$ac_link") 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25194 { (case "(($ac_try" in
25195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196 *) ac_try_echo=$ac_try;;
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199 (eval "$ac_try") 2>&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_c_stack_direction=1
25205 echo "$as_me: program exited with status $ac_status" >&5
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25209 ( exit $ac_status )
25210 ac_cv_c_stack_direction=-1
25212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25217 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25218 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25220 cat >>confdefs.h <<_ACEOF
25221 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25232 ac_header_dirent=no
25233 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25234 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25235 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25236 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 #include <sys/types.h>
25258 rm -f conftest.$ac_objext
25259 if { (ac_try="$ac_compile"
25260 case "(($ac_try" in
25261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25262 *) ac_try_echo=$ac_try;;
25264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25265 (eval "$ac_compile") 2>conftest.er1
25267 grep -v '^ *+' conftest.er1 >conftest.err
25269 cat conftest.err >&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } && {
25272 test -z "$ac_c_werror_flag" ||
25273 test ! -s conftest.err
25274 } && test -s conftest.$ac_objext; then
25275 eval "$as_ac_Header=yes"
25277 echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25280 eval "$as_ac_Header=no"
25283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25285 ac_res=`eval echo '${'$as_ac_Header'}'`
25286 { echo "$as_me:$LINENO: result: $ac_res" >&5
25287 echo "${ECHO_T}$ac_res" >&6; }
25288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25293 ac_header_dirent=$ac_hdr; break
25297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25298 if test $ac_header_dirent = dirent.h; then
25299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25301 if test "${ac_cv_search_opendir+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25304 ac_func_search_save_LIBS=$LIBS
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25312 /* Override any GCC internal prototype to avoid an error.
25313 Use char because int might match the return type of a GCC
25314 builtin and then its argument prototype would still apply. */
25327 for ac_lib in '' dir; do
25328 if test -z "$ac_lib"; then
25329 ac_res="none required"
25332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25334 rm -f conftest.$ac_objext conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341 (eval "$ac_link") 2>conftest.er1
25343 grep -v '^ *+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } && {
25348 test -z "$ac_c_werror_flag" ||
25349 test ! -s conftest.err
25350 } && test -s conftest$ac_exeext &&
25351 $as_test_x conftest$ac_exeext; then
25352 ac_cv_search_opendir=$ac_res
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25362 if test "${ac_cv_search_opendir+set}" = set; then
25366 if test "${ac_cv_search_opendir+set}" = set; then
25369 ac_cv_search_opendir=no
25371 rm conftest.$ac_ext
25372 LIBS=$ac_func_search_save_LIBS
25374 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25375 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25376 ac_res=$ac_cv_search_opendir
25377 if test "$ac_res" != no; then
25378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25383 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25384 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25385 if test "${ac_cv_search_opendir+set}" = set; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25388 ac_func_search_save_LIBS=$LIBS
25389 cat >conftest.$ac_ext <<_ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25396 /* Override any GCC internal prototype to avoid an error.
25397 Use char because int might match the return type of a GCC
25398 builtin and then its argument prototype would still apply. */
25411 for ac_lib in '' x; do
25412 if test -z "$ac_lib"; then
25413 ac_res="none required"
25416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25418 rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425 (eval "$ac_link") 2>conftest.er1
25427 grep -v '^ *+' conftest.er1 >conftest.err
25429 cat conftest.err >&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } && {
25432 test -z "$ac_c_werror_flag" ||
25433 test ! -s conftest.err
25434 } && test -s conftest$ac_exeext &&
25435 $as_test_x conftest$ac_exeext; then
25436 ac_cv_search_opendir=$ac_res
25438 echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25446 if test "${ac_cv_search_opendir+set}" = set; then
25450 if test "${ac_cv_search_opendir+set}" = set; then
25453 ac_cv_search_opendir=no
25455 rm conftest.$ac_ext
25456 LIBS=$ac_func_search_save_LIBS
25458 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25459 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25460 ac_res=$ac_cv_search_opendir
25461 if test "$ac_res" != no; then
25462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25468 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25469 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25470 if test "${ac_cv_func_closedir_void+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25473 if test "$cross_compiling" = yes; then
25474 ac_cv_func_closedir_void=yes
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 $ac_includes_default
25483 #include <$ac_header_dirent>
25484 #ifndef __cplusplus
25491 return closedir (opendir (".")) != 0;
25496 rm -f conftest$ac_exeext
25497 if { (ac_try="$ac_link"
25498 case "(($ac_try" in
25499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500 *) ac_try_echo=$ac_try;;
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_link") 2>&5
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25507 { (case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_try") 2>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; }; then
25516 ac_cv_func_closedir_void=no
25518 echo "$as_me: program exited with status $ac_status" >&5
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25522 ( exit $ac_status )
25523 ac_cv_func_closedir_void=yes
25525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25530 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25531 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25532 if test $ac_cv_func_closedir_void = yes; then
25534 cat >>confdefs.h <<\_ACEOF
25535 @%:@define CLOSEDIR_VOID 1
25540 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25541 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25542 if test "${ac_cv_lib_error_at_line+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25555 error_at_line (0, 0, "", 0, "an error occurred");
25560 rm -f conftest.$ac_objext conftest$ac_exeext
25561 if { (ac_try="$ac_link"
25562 case "(($ac_try" in
25563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564 *) ac_try_echo=$ac_try;;
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567 (eval "$ac_link") 2>conftest.er1
25569 grep -v '^ *+' conftest.er1 >conftest.err
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } && {
25574 test -z "$ac_c_werror_flag" ||
25575 test ! -s conftest.err
25576 } && test -s conftest$ac_exeext &&
25577 $as_test_x conftest$ac_exeext; then
25578 ac_cv_lib_error_at_line=yes
25580 echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25583 ac_cv_lib_error_at_line=no
25586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25587 conftest$ac_exeext conftest.$ac_ext
25589 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25590 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25591 if test $ac_cv_lib_error_at_line = no; then
25592 case " $LIB@&t@OBJS " in
25593 *" error.$ac_objext "* ) ;;
25594 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25601 for ac_header in vfork.h
25603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25610 ac_res=`eval echo '${'$as_ac_Header'}'`
25611 { echo "$as_me:$LINENO: result: $ac_res" >&5
25612 echo "${ECHO_T}$ac_res" >&6; }
25614 # Is the header compilable?
25615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25617 cat >conftest.$ac_ext <<_ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h. */
25623 $ac_includes_default
25624 @%:@include <$ac_header>
25626 rm -f conftest.$ac_objext
25627 if { (ac_try="$ac_compile"
25628 case "(($ac_try" in
25629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25630 *) ac_try_echo=$ac_try;;
25632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25633 (eval "$ac_compile") 2>conftest.er1
25635 grep -v '^ *+' conftest.er1 >conftest.err
25637 cat conftest.err >&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest.$ac_objext; then
25643 ac_header_compiler=yes
25645 echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25648 ac_header_compiler=no
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25653 echo "${ECHO_T}$ac_header_compiler" >&6; }
25655 # Is the header present?
25656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 @%:@include <$ac_header>
25666 if { (ac_try="$ac_cpp conftest.$ac_ext"
25667 case "(($ac_try" in
25668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669 *) ac_try_echo=$ac_try;;
25671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25674 grep -v '^ *+' conftest.er1 >conftest.err
25676 cat conftest.err >&5
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); } >/dev/null && {
25679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25680 test ! -s conftest.err
25682 ac_header_preproc=yes
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25687 ac_header_preproc=no
25690 rm -f conftest.err conftest.$ac_ext
25691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25692 echo "${ECHO_T}$ac_header_preproc" >&6; }
25694 # So? What about this header?
25695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25701 ac_header_preproc=yes
25704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25717 @%:@@%:@ ------------------------------- @%:@@%:@
25718 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25719 @%:@@%:@ ------------------------------- @%:@@%:@
25721 ) | sed "s/^/$as_me: WARNING: /" >&2
25724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25729 eval "$as_ac_Header=\$ac_header_preproc"
25731 ac_res=`eval echo '${'$as_ac_Header'}'`
25732 { echo "$as_me:$LINENO: result: $ac_res" >&5
25733 echo "${ECHO_T}$ac_res" >&6; }
25736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25737 cat >>confdefs.h <<_ACEOF
25738 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25747 for ac_func in fork vfork
25749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25755 cat >conftest.$ac_ext <<_ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25763 #define $ac_func innocuous_$ac_func
25765 /* System header to define __stub macros and hopefully few prototypes,
25766 which can conflict with char $ac_func (); below.
25767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25768 <limits.h> exists even on freestanding compilers. */
25771 # include <limits.h>
25773 # include <assert.h>
25778 /* Override any GCC internal prototype to avoid an error.
25779 Use char because int might match the return type of a GCC
25780 builtin and then its argument prototype would still apply. */
25785 /* The GNU C library defines this for functions which it implements
25786 to always fail with ENOSYS. Some functions are actually named
25787 something starting with __ and the normal name is an alias. */
25788 #if defined __stub_$ac_func || defined __stub___$ac_func
25795 return $ac_func ();
25800 rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (ac_try="$ac_link"
25802 case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807 (eval "$ac_link") 2>conftest.er1
25809 grep -v '^ *+' conftest.er1 >conftest.err
25811 cat conftest.err >&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } && {
25814 test -z "$ac_c_werror_flag" ||
25815 test ! -s conftest.err
25816 } && test -s conftest$ac_exeext &&
25817 $as_test_x conftest$ac_exeext; then
25818 eval "$as_ac_var=yes"
25820 echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25823 eval "$as_ac_var=no"
25826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25827 conftest$ac_exeext conftest.$ac_ext
25829 ac_res=`eval echo '${'$as_ac_var'}'`
25830 { echo "$as_me:$LINENO: result: $ac_res" >&5
25831 echo "${ECHO_T}$ac_res" >&6; }
25832 if test `eval echo '${'$as_ac_var'}'` = yes; then
25833 cat >>confdefs.h <<_ACEOF
25834 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25840 if test "x$ac_cv_func_fork" = xyes; then
25841 { echo "$as_me:$LINENO: checking for working fork" >&5
25842 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25843 if test "${ac_cv_func_fork_works+set}" = set; then
25844 echo $ECHO_N "(cached) $ECHO_C" >&6
25846 if test "$cross_compiling" = yes; then
25847 ac_cv_func_fork_works=cross
25849 cat >conftest.$ac_ext <<_ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 $ac_includes_default
25860 /* By Ruediger Kuhlmann. */
25861 return fork () < 0;
25867 rm -f conftest$ac_exeext
25868 if { (ac_try="$ac_link"
25869 case "(($ac_try" in
25870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25871 *) ac_try_echo=$ac_try;;
25873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25874 (eval "$ac_link") 2>&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25878 { (case "(($ac_try" in
25879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880 *) ac_try_echo=$ac_try;;
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883 (eval "$ac_try") 2>&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); }; }; then
25887 ac_cv_func_fork_works=yes
25889 echo "$as_me: program exited with status $ac_status" >&5
25890 echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25893 ( exit $ac_status )
25894 ac_cv_func_fork_works=no
25896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25901 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25902 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25905 ac_cv_func_fork_works=$ac_cv_func_fork
25907 if test "x$ac_cv_func_fork_works" = xcross; then
25909 *-*-amigaos* | *-*-msdosdjgpp*)
25910 # Override, as these systems have only a dummy fork() stub
25911 ac_cv_func_fork_works=no
25914 ac_cv_func_fork_works=yes
25917 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25918 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25920 ac_cv_func_vfork_works=$ac_cv_func_vfork
25921 if test "x$ac_cv_func_vfork" = xyes; then
25922 { echo "$as_me:$LINENO: checking for working vfork" >&5
25923 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25924 if test "${ac_cv_func_vfork_works+set}" = set; then
25925 echo $ECHO_N "(cached) $ECHO_C" >&6
25927 if test "$cross_compiling" = yes; then
25928 ac_cv_func_vfork_works=cross
25930 cat >conftest.$ac_ext <<_ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25936 /* Thanks to Paul Eggert for this test. */
25937 $ac_includes_default
25938 #include <sys/wait.h>
25939 #ifdef HAVE_VFORK_H
25940 # include <vfork.h>
25942 /* On some sparc systems, changes by the child to local and incoming
25943 argument registers are propagated back to the parent. The compiler
25944 is told about this with #include <vfork.h>, but some compilers
25945 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25946 static variable whose address is put into a register that is
25947 clobbered by the vfork. */
25950 sparc_address_test (int arg)
25952 sparc_address_test (arg) int arg;
25955 static pid_t child;
25973 pid_t parent = getpid ();
25976 sparc_address_test (0);
25981 /* Here is another test for sparc vfork register problems. This
25982 test uses lots of local variables, at least as many local
25983 variables as main has allocated so far including compiler
25984 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25985 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25986 reuse the register of parent for one of the local variables,
25987 since it will think that parent can't possibly be used any more
25988 in this routine. Assigning to the local variable will thus
25989 munge parent in the parent process. */
25991 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25992 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25993 /* Convince the compiler that p..p7 are live; otherwise, it might
25994 use the same hardware register for all 8 local variables. */
25995 if (p != p1 || p != p2 || p != p3 || p != p4
25996 || p != p5 || p != p6 || p != p7)
25999 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26000 from child file descriptors. If the child closes a descriptor
26001 before it execs or exits, this munges the parent's descriptor
26002 as well. Test for this by closing stdout in the child. */
26003 _exit(close(fileno(stdout)) != 0);
26008 while (wait(&status) != child)
26011 /* Was there some problem with vforking? */
26014 /* Did the child fail? (This shouldn't happen.) */
26017 /* Did the vfork/compiler bug occur? */
26018 || parent != getpid()
26020 /* Did the file descriptor bug occur? */
26021 || fstat(fileno(stdout), &st) != 0
26026 rm -f conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033 (eval "$ac_link") 2>&5
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26037 { (case "(($ac_try" in
26038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26039 *) ac_try_echo=$ac_try;;
26041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26042 (eval "$ac_try") 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 ac_cv_func_vfork_works=yes
26048 echo "$as_me: program exited with status $ac_status" >&5
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ( exit $ac_status )
26053 ac_cv_func_vfork_works=no
26055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26060 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26061 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26064 if test "x$ac_cv_func_fork_works" = xcross; then
26065 ac_cv_func_vfork_works=$ac_cv_func_vfork
26066 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26067 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26070 if test "x$ac_cv_func_vfork_works" = xyes; then
26072 cat >>confdefs.h <<\_ACEOF
26073 @%:@define HAVE_WORKING_VFORK 1
26078 cat >>confdefs.h <<\_ACEOF
26079 @%:@define vfork fork
26083 if test "x$ac_cv_func_fork_works" = xyes; then
26085 cat >>confdefs.h <<\_ACEOF
26086 @%:@define HAVE_WORKING_FORK 1
26091 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26092 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26093 if test "${ac_cv_type_getgroups+set}" = set; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
26096 if test "$cross_compiling" = yes; then
26097 ac_cv_type_getgroups=cross
26099 cat >conftest.$ac_ext <<_ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 /* Thanks to Mike Rendell for this test. */
26106 $ac_includes_default
26109 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26114 gid_t gidset[NGID];
26116 union { gid_t gval; long int lval; } val;
26119 for (i = 0; i < NGID; i++)
26120 gidset[i] = val.gval;
26121 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26123 /* Exit non-zero if getgroups seems to require an array of ints. This
26124 happens when gid_t is short int but getgroups modifies an array
26126 return n > 0 && gidset[n] != val.gval;
26129 rm -f conftest$ac_exeext
26130 if { (ac_try="$ac_link"
26131 case "(($ac_try" in
26132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26133 *) ac_try_echo=$ac_try;;
26135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26136 (eval "$ac_link") 2>&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26140 { (case "(($ac_try" in
26141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142 *) ac_try_echo=$ac_try;;
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145 (eval "$ac_try") 2>&5
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; }; then
26149 ac_cv_type_getgroups=gid_t
26151 echo "$as_me: program exited with status $ac_status" >&5
26152 echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26155 ( exit $ac_status )
26156 ac_cv_type_getgroups=int
26158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26162 if test $ac_cv_type_getgroups = cross; then
26163 cat >conftest.$ac_ext <<_ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h. */
26169 #include <unistd.h>
26172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26173 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26174 ac_cv_type_getgroups=gid_t
26176 ac_cv_type_getgroups=int
26182 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26183 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26185 cat >>confdefs.h <<_ACEOF
26186 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26190 { echo "$as_me:$LINENO: checking for getgroups" >&5
26191 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26192 if test "${ac_cv_func_getgroups+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26203 #define getgroups innocuous_getgroups
26205 /* System header to define __stub macros and hopefully few prototypes,
26206 which can conflict with char getgroups (); below.
26207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26208 <limits.h> exists even on freestanding compilers. */
26211 # include <limits.h>
26213 # include <assert.h>
26218 /* Override any GCC internal prototype to avoid an error.
26219 Use char because int might match the return type of a GCC
26220 builtin and then its argument prototype would still apply. */
26225 /* The GNU C library defines this for functions which it implements
26226 to always fail with ENOSYS. Some functions are actually named
26227 something starting with __ and the normal name is an alias. */
26228 #if defined __stub_getgroups || defined __stub___getgroups
26235 return getgroups ();
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247 (eval "$ac_link") 2>conftest.er1
26249 grep -v '^ *+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } && {
26254 test -z "$ac_c_werror_flag" ||
26255 test ! -s conftest.err
26256 } && test -s conftest$ac_exeext &&
26257 $as_test_x conftest$ac_exeext; then
26258 ac_cv_func_getgroups=yes
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26263 ac_cv_func_getgroups=no
26266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26267 conftest$ac_exeext conftest.$ac_ext
26269 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26270 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26273 # If we don't yet have getgroups, see if it's in -lbsd.
26274 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26276 if test $ac_cv_func_getgroups = no; then
26277 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26278 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26279 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 ac_check_lib_save_LIBS=$LIBS
26284 cat >conftest.$ac_ext <<_ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h. */
26291 /* Override any GCC internal prototype to avoid an error.
26292 Use char because int might match the return type of a GCC
26293 builtin and then its argument prototype would still apply. */
26301 return getgroups ();
26306 rm -f conftest.$ac_objext conftest$ac_exeext
26307 if { (ac_try="$ac_link"
26308 case "(($ac_try" in
26309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310 *) ac_try_echo=$ac_try;;
26312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26313 (eval "$ac_link") 2>conftest.er1
26315 grep -v '^ *+' conftest.er1 >conftest.err
26317 cat conftest.err >&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } && {
26320 test -z "$ac_c_werror_flag" ||
26321 test ! -s conftest.err
26322 } && test -s conftest$ac_exeext &&
26323 $as_test_x conftest$ac_exeext; then
26324 ac_cv_lib_bsd_getgroups=yes
26326 echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26329 ac_cv_lib_bsd_getgroups=no
26332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26333 conftest$ac_exeext conftest.$ac_ext
26334 LIBS=$ac_check_lib_save_LIBS
26336 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26337 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26338 if test $ac_cv_lib_bsd_getgroups = yes; then
26339 GETGROUPS_LIB=-lbsd
26344 # Run the program to test the functionality of the system-supplied
26345 # getgroups function only if there is such a function.
26346 if test $ac_cv_func_getgroups = yes; then
26347 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26348 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26349 if test "${ac_cv_func_getgroups_works+set}" = set; then
26350 echo $ECHO_N "(cached) $ECHO_C" >&6
26352 if test "$cross_compiling" = yes; then
26353 ac_cv_func_getgroups_works=no
26355 cat >conftest.$ac_ext <<_ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 $ac_includes_default
26365 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26366 return getgroups (0, 0) == -1;
26371 rm -f conftest$ac_exeext
26372 if { (ac_try="$ac_link"
26373 case "(($ac_try" in
26374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375 *) ac_try_echo=$ac_try;;
26377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378 (eval "$ac_link") 2>&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26382 { (case "(($ac_try" in
26383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384 *) ac_try_echo=$ac_try;;
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387 (eval "$ac_try") 2>&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_cv_func_getgroups_works=yes
26393 echo "$as_me: program exited with status $ac_status" >&5
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26397 ( exit $ac_status )
26398 ac_cv_func_getgroups_works=no
26400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26406 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26407 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26408 if test $ac_cv_func_getgroups_works = yes; then
26410 cat >>confdefs.h <<\_ACEOF
26411 @%:@define HAVE_GETGROUPS 1
26418 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26419 # -lseq on Dynix/PTX, -lgen on Unixware.
26420 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26421 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26422 if test "${ac_cv_search_getmntent+set}" = set; then
26423 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 ac_func_search_save_LIBS=$LIBS
26426 cat >conftest.$ac_ext <<_ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h. */
26433 /* Override any GCC internal prototype to avoid an error.
26434 Use char because int might match the return type of a GCC
26435 builtin and then its argument prototype would still apply. */
26443 return getmntent ();
26448 for ac_lib in '' sun seq gen; do
26449 if test -z "$ac_lib"; then
26450 ac_res="none required"
26453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26455 rm -f conftest.$ac_objext conftest$ac_exeext
26456 if { (ac_try="$ac_link"
26457 case "(($ac_try" in
26458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459 *) ac_try_echo=$ac_try;;
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462 (eval "$ac_link") 2>conftest.er1
26464 grep -v '^ *+' conftest.er1 >conftest.err
26466 cat conftest.err >&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } && {
26469 test -z "$ac_c_werror_flag" ||
26470 test ! -s conftest.err
26471 } && test -s conftest$ac_exeext &&
26472 $as_test_x conftest$ac_exeext; then
26473 ac_cv_search_getmntent=$ac_res
26475 echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26483 if test "${ac_cv_search_getmntent+set}" = set; then
26487 if test "${ac_cv_search_getmntent+set}" = set; then
26490 ac_cv_search_getmntent=no
26492 rm conftest.$ac_ext
26493 LIBS=$ac_func_search_save_LIBS
26495 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26496 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26497 ac_res=$ac_cv_search_getmntent
26498 if test "$ac_res" != no; then
26499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26500 ac_cv_func_getmntent=yes
26502 cat >>confdefs.h <<\_ACEOF
26503 @%:@define HAVE_GETMNTENT 1
26507 ac_cv_func_getmntent=no
26511 if test $ac_cv_c_compiler_gnu = yes; then
26512 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26513 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26514 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26517 ac_pattern="Autoconf.*'x'"
26518 cat >conftest.$ac_ext <<_ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26528 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26529 ac_cv_prog_gcc_traditional=yes
26531 ac_cv_prog_gcc_traditional=no
26536 if test $ac_cv_prog_gcc_traditional = no; then
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 #include <termio.h>
26546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26547 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26548 ac_cv_prog_gcc_traditional=yes
26554 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26555 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26556 if test $ac_cv_prog_gcc_traditional = yes; then
26557 CC="$CC -traditional"
26561 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26562 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26563 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26564 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 rm -f conftest.sym conftest.file
26567 echo >conftest.file
26568 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26569 if test "$cross_compiling" = yes; then
26570 ac_cv_func_lstat_dereferences_slashed_symlink=no
26572 cat >conftest.$ac_ext <<_ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26578 $ac_includes_default
26583 /* Linux will dereference the symlink and fail.
26584 That is better in the sense that it means we will not
26585 have to compile and use the lstat wrapper. */
26586 return lstat ("conftest.sym/", &sbuf) == 0;
26591 rm -f conftest$ac_exeext
26592 if { (ac_try="$ac_link"
26593 case "(($ac_try" in
26594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595 *) ac_try_echo=$ac_try;;
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598 (eval "$ac_link") 2>&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26602 { (case "(($ac_try" in
26603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604 *) ac_try_echo=$ac_try;;
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607 (eval "$ac_try") 2>&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); }; }; then
26611 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26613 echo "$as_me: program exited with status $ac_status" >&5
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ( exit $ac_status )
26618 ac_cv_func_lstat_dereferences_slashed_symlink=no
26620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26625 # If the `ln -s' command failed, then we probably don't even
26626 # have an lstat function.
26627 ac_cv_func_lstat_dereferences_slashed_symlink=no
26629 rm -f conftest.sym conftest.file
26632 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26633 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26635 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26637 cat >>confdefs.h <<_ACEOF
26638 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26642 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26643 case " $LIB@&t@OBJS " in
26644 *" lstat.$ac_objext "* ) ;;
26645 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26651 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26652 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26653 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 if test "$cross_compiling" = yes; then
26657 ac_cv_func_lstat_empty_string_bug=yes
26659 cat >conftest.$ac_ext <<_ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26665 $ac_includes_default
26670 return lstat ("", &sbuf) == 0;
26675 rm -f conftest$ac_exeext
26676 if { (ac_try="$ac_link"
26677 case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_link") 2>&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26686 { (case "(($ac_try" in
26687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688 *) ac_try_echo=$ac_try;;
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691 (eval "$ac_try") 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }; then
26695 ac_cv_func_lstat_empty_string_bug=no
26697 echo "$as_me: program exited with status $ac_status" >&5
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ( exit $ac_status )
26702 ac_cv_func_lstat_empty_string_bug=yes
26704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26709 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26710 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26711 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26712 case " $LIB@&t@OBJS " in
26713 *" lstat.$ac_objext "* ) ;;
26714 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26719 cat >>confdefs.h <<_ACEOF
26720 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26725 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26726 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26727 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 rm -f conftest.sym conftest.file
26731 echo >conftest.file
26732 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26733 if test "$cross_compiling" = yes; then
26734 ac_cv_func_lstat_dereferences_slashed_symlink=no
26736 cat >conftest.$ac_ext <<_ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26742 $ac_includes_default
26747 /* Linux will dereference the symlink and fail.
26748 That is better in the sense that it means we will not
26749 have to compile and use the lstat wrapper. */
26750 return lstat ("conftest.sym/", &sbuf) == 0;
26755 rm -f conftest$ac_exeext
26756 if { (ac_try="$ac_link"
26757 case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762 (eval "$ac_link") 2>&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26766 { (case "(($ac_try" in
26767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26768 *) ac_try_echo=$ac_try;;
26770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26771 (eval "$ac_try") 2>&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); }; }; then
26775 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26777 echo "$as_me: program exited with status $ac_status" >&5
26778 echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26781 ( exit $ac_status )
26782 ac_cv_func_lstat_dereferences_slashed_symlink=no
26784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26789 # If the `ln -s' command failed, then we probably don't even
26790 # have an lstat function.
26791 ac_cv_func_lstat_dereferences_slashed_symlink=no
26793 rm -f conftest.sym conftest.file
26796 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26797 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26799 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26801 cat >>confdefs.h <<_ACEOF
26802 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26806 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26807 case " $LIB@&t@OBJS " in
26808 *" lstat.$ac_objext "* ) ;;
26809 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26815 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26816 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26817 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 cat >conftest.$ac_ext <<_ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26826 @%:@include <sys/types.h>
26830 return makedev(0, 0);
26835 rm -f conftest.$ac_objext conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839 *) ac_try_echo=$ac_try;;
26841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842 (eval "$ac_link") 2>conftest.er1
26844 grep -v '^ *+' conftest.er1 >conftest.err
26846 cat conftest.err >&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); } && {
26849 test -z "$ac_c_werror_flag" ||
26850 test ! -s conftest.err
26851 } && test -s conftest$ac_exeext &&
26852 $as_test_x conftest$ac_exeext; then
26853 ac_cv_header_sys_types_h_makedev=yes
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26858 ac_cv_header_sys_types_h_makedev=no
26861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26862 conftest$ac_exeext conftest.$ac_ext
26865 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26866 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26868 if test $ac_cv_header_sys_types_h_makedev = no; then
26869 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26870 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26871 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26872 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26873 echo $ECHO_N "(cached) $ECHO_C" >&6
26875 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26876 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26878 # Is the header compilable?
26879 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26880 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26881 cat >conftest.$ac_ext <<_ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26887 $ac_includes_default
26888 @%:@include <sys/mkdev.h>
26890 rm -f conftest.$ac_objext
26891 if { (ac_try="$ac_compile"
26892 case "(($ac_try" in
26893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26894 *) ac_try_echo=$ac_try;;
26896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26897 (eval "$ac_compile") 2>conftest.er1
26899 grep -v '^ *+' conftest.er1 >conftest.err
26901 cat conftest.err >&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } && {
26904 test -z "$ac_c_werror_flag" ||
26905 test ! -s conftest.err
26906 } && test -s conftest.$ac_objext; then
26907 ac_header_compiler=yes
26909 echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26912 ac_header_compiler=no
26915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26917 echo "${ECHO_T}$ac_header_compiler" >&6; }
26919 # Is the header present?
26920 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26921 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26922 cat >conftest.$ac_ext <<_ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h. */
26928 @%:@include <sys/mkdev.h>
26930 if { (ac_try="$ac_cpp conftest.$ac_ext"
26931 case "(($ac_try" in
26932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933 *) ac_try_echo=$ac_try;;
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26938 grep -v '^ *+' conftest.er1 >conftest.err
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } >/dev/null && {
26943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26944 test ! -s conftest.err
26946 ac_header_preproc=yes
26948 echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26951 ac_header_preproc=no
26954 rm -f conftest.err conftest.$ac_ext
26955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26956 echo "${ECHO_T}$ac_header_preproc" >&6; }
26958 # So? What about this header?
26959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26961 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26962 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26965 ac_header_preproc=yes
26968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26969 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26971 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26973 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26975 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26977 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26979 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26981 @%:@@%:@ ------------------------------- @%:@@%:@
26982 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26983 @%:@@%:@ ------------------------------- @%:@@%:@
26985 ) | sed "s/^/$as_me: WARNING: /" >&2
26988 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26989 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26990 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26991 echo $ECHO_N "(cached) $ECHO_C" >&6
26993 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26996 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26999 if test $ac_cv_header_sys_mkdev_h = yes; then
27001 cat >>confdefs.h <<\_ACEOF
27002 @%:@define MAJOR_IN_MKDEV 1
27009 if test $ac_cv_header_sys_mkdev_h = no; then
27010 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27011 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27012 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27013 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27014 echo $ECHO_N "(cached) $ECHO_C" >&6
27016 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27017 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27019 # Is the header compilable?
27020 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27021 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27022 cat >conftest.$ac_ext <<_ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27028 $ac_includes_default
27029 @%:@include <sys/sysmacros.h>
27031 rm -f conftest.$ac_objext
27032 if { (ac_try="$ac_compile"
27033 case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_compile") 2>conftest.er1
27040 grep -v '^ *+' conftest.er1 >conftest.err
27042 cat conftest.err >&5
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); } && {
27045 test -z "$ac_c_werror_flag" ||
27046 test ! -s conftest.err
27047 } && test -s conftest.$ac_objext; then
27048 ac_header_compiler=yes
27050 echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27053 ac_header_compiler=no
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27058 echo "${ECHO_T}$ac_header_compiler" >&6; }
27060 # Is the header present?
27061 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27062 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27063 cat >conftest.$ac_ext <<_ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h. */
27069 @%:@include <sys/sysmacros.h>
27071 if { (ac_try="$ac_cpp conftest.$ac_ext"
27072 case "(($ac_try" in
27073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074 *) ac_try_echo=$ac_try;;
27076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27079 grep -v '^ *+' conftest.er1 >conftest.err
27081 cat conftest.err >&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); } >/dev/null && {
27084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27085 test ! -s conftest.err
27087 ac_header_preproc=yes
27089 echo "$as_me: failed program was:" >&5
27090 sed 's/^/| /' conftest.$ac_ext >&5
27092 ac_header_preproc=no
27095 rm -f conftest.err conftest.$ac_ext
27096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27097 echo "${ECHO_T}$ac_header_preproc" >&6; }
27099 # So? What about this header?
27100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27102 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27103 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27105 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27106 ac_header_preproc=yes
27109 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27110 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27112 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27114 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27116 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27118 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27120 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27122 @%:@@%:@ ------------------------------- @%:@@%:@
27123 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27124 @%:@@%:@ ------------------------------- @%:@@%:@
27126 ) | sed "s/^/$as_me: WARNING: /" >&2
27129 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27130 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27131 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27136 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27137 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27140 if test $ac_cv_header_sys_sysmacros_h = yes; then
27142 cat >>confdefs.h <<\_ACEOF
27143 @%:@define MAJOR_IN_SYSMACROS 1
27153 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27154 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27155 if test "${ac_cv_func_memcmp_working+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27158 if test "$cross_compiling" = yes; then
27159 ac_cv_func_memcmp_working=no
27161 cat >conftest.$ac_ext <<_ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 $ac_includes_default
27172 /* Some versions of memcmp are not 8-bit clean. */
27173 char c0 = '\100', c1 = '\200', c2 = '\201';
27174 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27177 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27178 or more and with at least one buffer not starting on a 4-byte boundary.
27179 William Lewis provided this test program. */
27184 for (i = 0; i < 4; i++)
27188 strcpy (a, "--------01111111");
27189 strcpy (b, "--------10000000");
27190 if (memcmp (a, b, 16) >= 0)
27200 rm -f conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_link") 2>&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27211 { (case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_try") 2>&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; }; then
27220 ac_cv_func_memcmp_working=yes
27222 echo "$as_me: program exited with status $ac_status" >&5
27223 echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27226 ( exit $ac_status )
27227 ac_cv_func_memcmp_working=no
27229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27234 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27235 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27236 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27237 *" memcmp.$ac_objext "* ) ;;
27238 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27246 for ac_header in sys/select.h sys/socket.h
27248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27255 ac_res=`eval echo '${'$as_ac_Header'}'`
27256 { echo "$as_me:$LINENO: result: $ac_res" >&5
27257 echo "${ECHO_T}$ac_res" >&6; }
27259 # Is the header compilable?
27260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27262 cat >conftest.$ac_ext <<_ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 $ac_includes_default
27269 @%:@include <$ac_header>
27271 rm -f conftest.$ac_objext
27272 if { (ac_try="$ac_compile"
27273 case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278 (eval "$ac_compile") 2>conftest.er1
27280 grep -v '^ *+' conftest.er1 >conftest.err
27282 cat conftest.err >&5
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); } && {
27285 test -z "$ac_c_werror_flag" ||
27286 test ! -s conftest.err
27287 } && test -s conftest.$ac_objext; then
27288 ac_header_compiler=yes
27290 echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27293 ac_header_compiler=no
27296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27298 echo "${ECHO_T}$ac_header_compiler" >&6; }
27300 # Is the header present?
27301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27303 cat >conftest.$ac_ext <<_ACEOF
27306 cat confdefs.h >>conftest.$ac_ext
27307 cat >>conftest.$ac_ext <<_ACEOF
27308 /* end confdefs.h. */
27309 @%:@include <$ac_header>
27311 if { (ac_try="$ac_cpp conftest.$ac_ext"
27312 case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } >/dev/null && {
27324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27325 test ! -s conftest.err
27327 ac_header_preproc=yes
27329 echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27332 ac_header_preproc=no
27335 rm -f conftest.err conftest.$ac_ext
27336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27337 echo "${ECHO_T}$ac_header_preproc" >&6; }
27339 # So? What about this header?
27340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27346 ac_header_preproc=yes
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27362 @%:@@%:@ ------------------------------- @%:@@%:@
27363 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27364 @%:@@%:@ ------------------------------- @%:@@%:@
27366 ) | sed "s/^/$as_me: WARNING: /" >&2
27369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27374 eval "$as_ac_Header=\$ac_header_preproc"
27376 ac_res=`eval echo '${'$as_ac_Header'}'`
27377 { echo "$as_me:$LINENO: result: $ac_res" >&5
27378 echo "${ECHO_T}$ac_res" >&6; }
27381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27382 cat >>confdefs.h <<_ACEOF
27383 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27390 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27391 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27392 if test "${ac_cv_func_select_args+set}" = set; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27395 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27396 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27397 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27398 cat >conftest.$ac_ext <<_ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h. */
27404 $ac_includes_default
27405 #ifdef HAVE_SYS_SELECT_H
27406 # include <sys/select.h>
27408 #ifdef HAVE_SYS_SOCKET_H
27409 # include <sys/socket.h>
27415 extern int select ($ac_arg1,
27416 $ac_arg234, $ac_arg234, $ac_arg234,
27422 rm -f conftest.$ac_objext
27423 if { (ac_try="$ac_compile"
27424 case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_compile") 2>conftest.er1
27431 grep -v '^ *+' conftest.er1 >conftest.err
27433 cat conftest.err >&5
27434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435 (exit $ac_status); } && {
27436 test -z "$ac_c_werror_flag" ||
27437 test ! -s conftest.err
27438 } && test -s conftest.$ac_objext; then
27439 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27451 # Provide a safe default value.
27452 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27455 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27456 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27457 ac_save_IFS=$IFS; IFS=','
27458 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27462 cat >>confdefs.h <<_ACEOF
27463 @%:@define SELECT_TYPE_ARG1 $1
27467 cat >>confdefs.h <<_ACEOF
27468 @%:@define SELECT_TYPE_ARG234 ($2)
27472 cat >>confdefs.h <<_ACEOF
27473 @%:@define SELECT_TYPE_ARG5 ($3)
27478 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27479 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27480 if test "${ac_cv_type_signal+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 cat >conftest.$ac_ext <<_ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27489 #include <sys/types.h>
27490 #include <signal.h>
27495 return *(signal (0, 0)) (0) == 1;
27500 rm -f conftest.$ac_objext
27501 if { (ac_try="$ac_compile"
27502 case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_compile") 2>conftest.er1
27509 grep -v '^ *+' conftest.er1 >conftest.err
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } && {
27514 test -z "$ac_c_werror_flag" ||
27515 test ! -s conftest.err
27516 } && test -s conftest.$ac_objext; then
27517 ac_cv_type_signal=int
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ac_cv_type_signal=void
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27528 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27530 cat >>confdefs.h <<_ACEOF
27531 @%:@define RETSIGTYPE $ac_cv_type_signal
27535 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27536 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27537 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27540 if test "$cross_compiling" = yes; then
27541 ac_cv_func_stat_empty_string_bug=yes
27543 cat >conftest.$ac_ext <<_ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h. */
27549 $ac_includes_default
27554 return stat ("", &sbuf) == 0;
27559 rm -f conftest$ac_exeext
27560 if { (ac_try="$ac_link"
27561 case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_link") 2>&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27570 { (case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_try") 2>&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; }; then
27579 ac_cv_func_stat_empty_string_bug=no
27581 echo "$as_me: program exited with status $ac_status" >&5
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27585 ( exit $ac_status )
27586 ac_cv_func_stat_empty_string_bug=yes
27588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27593 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27594 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27595 if test $ac_cv_func_stat_empty_string_bug = yes; then
27596 case " $LIB@&t@OBJS " in
27597 *" stat.$ac_objext "* ) ;;
27598 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27603 cat >>confdefs.h <<_ACEOF
27604 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27610 for ac_func in vprintf
27612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27626 #define $ac_func innocuous_$ac_func
27628 /* System header to define __stub macros and hopefully few prototypes,
27629 which can conflict with char $ac_func (); below.
27630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631 <limits.h> exists even on freestanding compilers. */
27634 # include <limits.h>
27636 # include <assert.h>
27641 /* Override any GCC internal prototype to avoid an error.
27642 Use char because int might match the return type of a GCC
27643 builtin and then its argument prototype would still apply. */
27648 /* The GNU C library defines this for functions which it implements
27649 to always fail with ENOSYS. Some functions are actually named
27650 something starting with __ and the normal name is an alias. */
27651 #if defined __stub_$ac_func || defined __stub___$ac_func
27658 return $ac_func ();
27663 rm -f conftest.$ac_objext conftest$ac_exeext
27664 if { (ac_try="$ac_link"
27665 case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_link") 2>conftest.er1
27672 grep -v '^ *+' conftest.er1 >conftest.err
27674 cat conftest.err >&5
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } && {
27677 test -z "$ac_c_werror_flag" ||
27678 test ! -s conftest.err
27679 } && test -s conftest$ac_exeext &&
27680 $as_test_x conftest$ac_exeext; then
27681 eval "$as_ac_var=yes"
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27686 eval "$as_ac_var=no"
27689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27690 conftest$ac_exeext conftest.$ac_ext
27692 ac_res=`eval echo '${'$as_ac_var'}'`
27693 { echo "$as_me:$LINENO: result: $ac_res" >&5
27694 echo "${ECHO_T}$ac_res" >&6; }
27695 if test `eval echo '${'$as_ac_var'}'` = yes; then
27696 cat >>confdefs.h <<_ACEOF
27697 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27700 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27701 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27702 if test "${ac_cv_func__doprnt+set}" = set; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27711 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27713 #define _doprnt innocuous__doprnt
27715 /* System header to define __stub macros and hopefully few prototypes,
27716 which can conflict with char _doprnt (); below.
27717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27718 <limits.h> exists even on freestanding compilers. */
27721 # include <limits.h>
27723 # include <assert.h>
27728 /* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27735 /* The GNU C library defines this for functions which it implements
27736 to always fail with ENOSYS. Some functions are actually named
27737 something starting with __ and the normal name is an alias. */
27738 #if defined __stub__doprnt || defined __stub____doprnt
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (ac_try="$ac_link"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_link") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1 >conftest.err
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } && {
27764 test -z "$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27766 } && test -s conftest$ac_exeext &&
27767 $as_test_x conftest$ac_exeext; then
27768 ac_cv_func__doprnt=yes
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27773 ac_cv_func__doprnt=no
27776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27777 conftest$ac_exeext conftest.$ac_ext
27779 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27780 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27781 if test $ac_cv_func__doprnt = yes; then
27783 cat >>confdefs.h <<\_ACEOF
27784 @%:@define HAVE_DOPRNT 1
27822 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27823 gethostbyaddr gethostbyname gethostname getmntent \
27824 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27825 realpath rmdir select socket strcasecmp strchr strdup \
27826 strerror strrchr strtol strtoul sigprocmask
27828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27834 cat >conftest.$ac_ext <<_ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h. */
27840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27842 #define $ac_func innocuous_$ac_func
27844 /* System header to define __stub macros and hopefully few prototypes,
27845 which can conflict with char $ac_func (); below.
27846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27847 <limits.h> exists even on freestanding compilers. */
27850 # include <limits.h>
27852 # include <assert.h>
27857 /* Override any GCC internal prototype to avoid an error.
27858 Use char because int might match the return type of a GCC
27859 builtin and then its argument prototype would still apply. */
27864 /* The GNU C library defines this for functions which it implements
27865 to always fail with ENOSYS. Some functions are actually named
27866 something starting with __ and the normal name is an alias. */
27867 #if defined __stub_$ac_func || defined __stub___$ac_func
27874 return $ac_func ();
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (ac_try="$ac_link"
27881 case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_link") 2>conftest.er1
27888 grep -v '^ *+' conftest.er1 >conftest.err
27890 cat conftest.err >&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); } && {
27893 test -z "$ac_c_werror_flag" ||
27894 test ! -s conftest.err
27895 } && test -s conftest$ac_exeext &&
27896 $as_test_x conftest$ac_exeext; then
27897 eval "$as_ac_var=yes"
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 eval "$as_ac_var=no"
27905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27906 conftest$ac_exeext conftest.$ac_ext
27908 ac_res=`eval echo '${'$as_ac_var'}'`
27909 { echo "$as_me:$LINENO: result: $ac_res" >&5
27910 echo "${ECHO_T}$ac_res" >&6; }
27911 if test `eval echo '${'$as_ac_var'}'` = yes; then
27912 cat >>confdefs.h <<_ACEOF
27913 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27921 { echo "$as_me:$LINENO: checking for short" >&5
27922 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27923 if test "${ac_cv_type_short+set}" = set; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27926 cat >conftest.$ac_ext <<_ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27932 $ac_includes_default
27933 typedef short ac__type_new_;
27937 if ((ac__type_new_ *) 0)
27939 if (sizeof (ac__type_new_))
27945 rm -f conftest.$ac_objext
27946 if { (ac_try="$ac_compile"
27947 case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_compile") 2>conftest.er1
27954 grep -v '^ *+' conftest.er1 >conftest.err
27956 cat conftest.err >&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } && {
27959 test -z "$ac_c_werror_flag" ||
27960 test ! -s conftest.err
27961 } && test -s conftest.$ac_objext; then
27962 ac_cv_type_short=yes
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 ac_cv_type_short=no
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27972 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27973 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27975 # The cast to long int works around a bug in the HP C Compiler
27976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27978 # This bug is HP SR number 8606223364.
27979 { echo "$as_me:$LINENO: checking size of short" >&5
27980 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27981 if test "${ac_cv_sizeof_short+set}" = set; then
27982 echo $ECHO_N "(cached) $ECHO_C" >&6
27984 if test "$cross_compiling" = yes; then
27985 # Depending upon the size, compute the lo and hi bounds.
27986 cat >conftest.$ac_ext <<_ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h. */
27992 $ac_includes_default
27993 typedef short ac__type_sizeof_;
27997 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27998 test_array @<:@0@:>@ = 0
28004 rm -f conftest.$ac_objext
28005 if { (ac_try="$ac_compile"
28006 case "(($ac_try" in
28007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008 *) ac_try_echo=$ac_try;;
28010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011 (eval "$ac_compile") 2>conftest.er1
28013 grep -v '^ *+' conftest.er1 >conftest.err
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } && {
28018 test -z "$ac_c_werror_flag" ||
28019 test ! -s conftest.err
28020 } && test -s conftest.$ac_objext; then
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 short ac__type_sizeof_;
28034 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
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
28058 ac_hi=$ac_mid; break
28060 echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28063 ac_lo=`expr $ac_mid + 1`
28064 if test $ac_lo -le $ac_mid; then
28068 ac_mid=`expr 2 '*' $ac_mid + 1`
28071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28074 echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28077 cat >conftest.$ac_ext <<_ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h. */
28083 $ac_includes_default
28084 typedef short ac__type_sizeof_;
28088 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28089 test_array @<:@0@:>@ = 0
28095 rm -f conftest.$ac_objext
28096 if { (ac_try="$ac_compile"
28097 case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_compile") 2>conftest.er1
28104 grep -v '^ *+' conftest.er1 >conftest.err
28106 cat conftest.err >&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); } && {
28109 test -z "$ac_c_werror_flag" ||
28110 test ! -s conftest.err
28111 } && test -s conftest.$ac_objext; then
28114 cat >conftest.$ac_ext <<_ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h. */
28120 $ac_includes_default
28121 typedef short ac__type_sizeof_;
28125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28126 test_array @<:@0@:>@ = 0
28132 rm -f conftest.$ac_objext
28133 if { (ac_try="$ac_compile"
28134 case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139 (eval "$ac_compile") 2>conftest.er1
28141 grep -v '^ *+' conftest.er1 >conftest.err
28143 cat conftest.err >&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && {
28146 test -z "$ac_c_werror_flag" ||
28147 test ! -s conftest.err
28148 } && test -s conftest.$ac_objext; then
28149 ac_lo=$ac_mid; break
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 ac_hi=`expr '(' $ac_mid ')' - 1`
28155 if test $ac_mid -le $ac_hi; then
28159 ac_mid=`expr 2 '*' $ac_mid`
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28165 echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 # Binary search between lo and hi bounds.
28176 while test "x$ac_lo" != "x$ac_hi"; do
28177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28178 cat >conftest.$ac_ext <<_ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28184 $ac_includes_default
28185 typedef short ac__type_sizeof_;
28189 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28190 test_array @<:@0@:>@ = 0
28196 rm -f conftest.$ac_objext
28197 if { (ac_try="$ac_compile"
28198 case "(($ac_try" in
28199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200 *) ac_try_echo=$ac_try;;
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203 (eval "$ac_compile") 2>conftest.er1
28205 grep -v '^ *+' conftest.er1 >conftest.err
28207 cat conftest.err >&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); } && {
28210 test -z "$ac_c_werror_flag" ||
28211 test ! -s conftest.err
28212 } && test -s conftest.$ac_objext; then
28215 echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28218 ac_lo=`expr '(' $ac_mid ')' + 1`
28221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224 ?*) ac_cv_sizeof_short=$ac_lo;;
28225 '') if test "$ac_cv_type_short" = yes; then
28226 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28227 See \`config.log' for more details." >&5
28228 echo "$as_me: error: cannot compute sizeof (short)
28229 See \`config.log' for more details." >&2;}
28230 { (exit 77); exit 77; }; }
28232 ac_cv_sizeof_short=0
28236 cat >conftest.$ac_ext <<_ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28242 $ac_includes_default
28243 typedef short ac__type_sizeof_;
28244 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28245 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28246 @%:@include <stdio.h>
28247 @%:@include <stdlib.h>
28252 FILE *f = fopen ("conftest.val", "w");
28255 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28257 long int i = longval ();
28258 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28260 fprintf (f, "%ld\n", i);
28264 unsigned long int i = ulongval ();
28265 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28267 fprintf (f, "%lu\n", i);
28269 return ferror (f) || fclose (f) != 0;
28275 rm -f conftest$ac_exeext
28276 if { (ac_try="$ac_link"
28277 case "(($ac_try" in
28278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279 *) ac_try_echo=$ac_try;;
28281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28282 (eval "$ac_link") 2>&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28286 { (case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_try") 2>&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
28295 ac_cv_sizeof_short=`cat conftest.val`
28297 echo "$as_me: program exited with status $ac_status" >&5
28298 echo "$as_me: failed program was:" >&5
28299 sed 's/^/| /' conftest.$ac_ext >&5
28301 ( exit $ac_status )
28302 if test "$ac_cv_type_short" = yes; then
28303 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28304 See \`config.log' for more details." >&5
28305 echo "$as_me: error: cannot compute sizeof (short)
28306 See \`config.log' for more details." >&2;}
28307 { (exit 77); exit 77; }; }
28309 ac_cv_sizeof_short=0
28312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28316 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28321 cat >>confdefs.h <<_ACEOF
28322 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28326 { echo "$as_me:$LINENO: checking for int" >&5
28327 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28328 if test "${ac_cv_type_int+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28331 cat >conftest.$ac_ext <<_ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h. */
28337 $ac_includes_default
28338 typedef int ac__type_new_;
28342 if ((ac__type_new_ *) 0)
28344 if (sizeof (ac__type_new_))
28350 rm -f conftest.$ac_objext
28351 if { (ac_try="$ac_compile"
28352 case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357 (eval "$ac_compile") 2>conftest.er1
28359 grep -v '^ *+' conftest.er1 >conftest.err
28361 cat conftest.err >&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } && {
28364 test -z "$ac_c_werror_flag" ||
28365 test ! -s conftest.err
28366 } && test -s conftest.$ac_objext; then
28369 echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28378 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28380 # The cast to long int works around a bug in the HP C Compiler
28381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28383 # This bug is HP SR number 8606223364.
28384 { echo "$as_me:$LINENO: checking size of int" >&5
28385 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28386 if test "${ac_cv_sizeof_int+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28389 if test "$cross_compiling" = yes; then
28390 # Depending upon the size, compute the lo and hi bounds.
28391 cat >conftest.$ac_ext <<_ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28397 $ac_includes_default
28398 typedef int ac__type_sizeof_;
28402 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28403 test_array @<:@0@:>@ = 0
28409 rm -f conftest.$ac_objext
28410 if { (ac_try="$ac_compile"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_compile") 2>conftest.er1
28418 grep -v '^ *+' conftest.er1 >conftest.err
28420 cat conftest.err >&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } && {
28423 test -z "$ac_c_werror_flag" ||
28424 test ! -s conftest.err
28425 } && test -s conftest.$ac_objext; then
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 int ac__type_sizeof_;
28439 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
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
28463 ac_hi=$ac_mid; break
28465 echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28468 ac_lo=`expr $ac_mid + 1`
28469 if test $ac_lo -le $ac_mid; then
28473 ac_mid=`expr 2 '*' $ac_mid + 1`
28476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28479 echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28482 cat >conftest.$ac_ext <<_ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h. */
28488 $ac_includes_default
28489 typedef int ac__type_sizeof_;
28493 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28494 test_array @<:@0@:>@ = 0
28500 rm -f conftest.$ac_objext
28501 if { (ac_try="$ac_compile"
28502 case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_compile") 2>conftest.er1
28509 grep -v '^ *+' conftest.er1 >conftest.err
28511 cat conftest.err >&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } && {
28514 test -z "$ac_c_werror_flag" ||
28515 test ! -s conftest.err
28516 } && test -s conftest.$ac_objext; then
28519 cat >conftest.$ac_ext <<_ACEOF
28522 cat confdefs.h >>conftest.$ac_ext
28523 cat >>conftest.$ac_ext <<_ACEOF
28524 /* end confdefs.h. */
28525 $ac_includes_default
28526 typedef int ac__type_sizeof_;
28530 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28531 test_array @<:@0@:>@ = 0
28537 rm -f conftest.$ac_objext
28538 if { (ac_try="$ac_compile"
28539 case "(($ac_try" in
28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541 *) ac_try_echo=$ac_try;;
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544 (eval "$ac_compile") 2>conftest.er1
28546 grep -v '^ *+' conftest.er1 >conftest.err
28548 cat conftest.err >&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); } && {
28551 test -z "$ac_c_werror_flag" ||
28552 test ! -s conftest.err
28553 } && test -s conftest.$ac_objext; then
28554 ac_lo=$ac_mid; break
28556 echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28559 ac_hi=`expr '(' $ac_mid ')' - 1`
28560 if test $ac_mid -le $ac_hi; then
28564 ac_mid=`expr 2 '*' $ac_mid`
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 # Binary search between lo and hi bounds.
28581 while test "x$ac_lo" != "x$ac_hi"; do
28582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589 $ac_includes_default
28590 typedef int ac__type_sizeof_;
28594 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28595 test_array @<:@0@:>@ = 0
28601 rm -f conftest.$ac_objext
28602 if { (ac_try="$ac_compile"
28603 case "(($ac_try" in
28604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 *) ac_try_echo=$ac_try;;
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608 (eval "$ac_compile") 2>conftest.er1
28610 grep -v '^ *+' conftest.er1 >conftest.err
28612 cat conftest.err >&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } && {
28615 test -z "$ac_c_werror_flag" ||
28616 test ! -s conftest.err
28617 } && test -s conftest.$ac_objext; then
28620 echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_lo=`expr '(' $ac_mid ')' + 1`
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629 ?*) ac_cv_sizeof_int=$ac_lo;;
28630 '') if test "$ac_cv_type_int" = yes; then
28631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28632 See \`config.log' for more details." >&5
28633 echo "$as_me: error: cannot compute sizeof (int)
28634 See \`config.log' for more details." >&2;}
28635 { (exit 77); exit 77; }; }
28641 cat >conftest.$ac_ext <<_ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h. */
28647 $ac_includes_default
28648 typedef int ac__type_sizeof_;
28649 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28650 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28651 @%:@include <stdio.h>
28652 @%:@include <stdlib.h>
28657 FILE *f = fopen ("conftest.val", "w");
28660 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28662 long int i = longval ();
28663 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28665 fprintf (f, "%ld\n", i);
28669 unsigned long int i = ulongval ();
28670 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28672 fprintf (f, "%lu\n", i);
28674 return ferror (f) || fclose (f) != 0;
28680 rm -f conftest$ac_exeext
28681 if { (ac_try="$ac_link"
28682 case "(($ac_try" in
28683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684 *) ac_try_echo=$ac_try;;
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687 (eval "$ac_link") 2>&5
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 ac_cv_sizeof_int=`cat conftest.val`
28702 echo "$as_me: program exited with status $ac_status" >&5
28703 echo "$as_me: failed program was:" >&5
28704 sed 's/^/| /' conftest.$ac_ext >&5
28706 ( exit $ac_status )
28707 if test "$ac_cv_type_int" = yes; then
28708 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28709 See \`config.log' for more details." >&5
28710 echo "$as_me: error: cannot compute sizeof (int)
28711 See \`config.log' for more details." >&2;}
28712 { (exit 77); exit 77; }; }
28717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28721 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28722 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28726 cat >>confdefs.h <<_ACEOF
28727 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28731 { echo "$as_me:$LINENO: checking for long" >&5
28732 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28733 if test "${ac_cv_type_long+set}" = set; then
28734 echo $ECHO_N "(cached) $ECHO_C" >&6
28736 cat >conftest.$ac_ext <<_ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h. */
28742 $ac_includes_default
28743 typedef long ac__type_new_;
28747 if ((ac__type_new_ *) 0)
28749 if (sizeof (ac__type_new_))
28755 rm -f conftest.$ac_objext
28756 if { (ac_try="$ac_compile"
28757 case "(($ac_try" in
28758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28759 *) ac_try_echo=$ac_try;;
28761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28762 (eval "$ac_compile") 2>conftest.er1
28764 grep -v '^ *+' conftest.er1 >conftest.err
28766 cat conftest.err >&5
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); } && {
28769 test -z "$ac_c_werror_flag" ||
28770 test ! -s conftest.err
28771 } && test -s conftest.$ac_objext; then
28772 ac_cv_type_long=yes
28774 echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28782 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28783 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28785 # The cast to long int works around a bug in the HP C Compiler
28786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28788 # This bug is HP SR number 8606223364.
28789 { echo "$as_me:$LINENO: checking size of long" >&5
28790 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28791 if test "${ac_cv_sizeof_long+set}" = set; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28794 if test "$cross_compiling" = yes; then
28795 # Depending upon the size, compute the lo and hi bounds.
28796 cat >conftest.$ac_ext <<_ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h. */
28802 $ac_includes_default
28803 typedef long ac__type_sizeof_;
28807 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28808 test_array @<:@0@:>@ = 0
28814 rm -f conftest.$ac_objext
28815 if { (ac_try="$ac_compile"
28816 case "(($ac_try" in
28817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818 *) ac_try_echo=$ac_try;;
28820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821 (eval "$ac_compile") 2>conftest.er1
28823 grep -v '^ *+' conftest.er1 >conftest.err
28825 cat conftest.err >&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } && {
28828 test -z "$ac_c_werror_flag" ||
28829 test ! -s conftest.err
28830 } && test -s conftest.$ac_objext; then
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28839 $ac_includes_default
28840 typedef long ac__type_sizeof_;
28844 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28845 test_array @<:@0@:>@ = 0
28851 rm -f conftest.$ac_objext
28852 if { (ac_try="$ac_compile"
28853 case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858 (eval "$ac_compile") 2>conftest.er1
28860 grep -v '^ *+' conftest.er1 >conftest.err
28862 cat conftest.err >&5
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } && {
28865 test -z "$ac_c_werror_flag" ||
28866 test ! -s conftest.err
28867 } && test -s conftest.$ac_objext; then
28868 ac_hi=$ac_mid; break
28870 echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28873 ac_lo=`expr $ac_mid + 1`
28874 if test $ac_lo -le $ac_mid; then
28878 ac_mid=`expr 2 '*' $ac_mid + 1`
28881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884 echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28887 cat >conftest.$ac_ext <<_ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h. */
28893 $ac_includes_default
28894 typedef long ac__type_sizeof_;
28898 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28899 test_array @<:@0@:>@ = 0
28905 rm -f conftest.$ac_objext
28906 if { (ac_try="$ac_compile"
28907 case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_compile") 2>conftest.er1
28914 grep -v '^ *+' conftest.er1 >conftest.err
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } && {
28919 test -z "$ac_c_werror_flag" ||
28920 test ! -s conftest.err
28921 } && test -s conftest.$ac_objext; then
28924 cat >conftest.$ac_ext <<_ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h. */
28930 $ac_includes_default
28931 typedef long ac__type_sizeof_;
28935 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28936 test_array @<:@0@:>@ = 0
28942 rm -f conftest.$ac_objext
28943 if { (ac_try="$ac_compile"
28944 case "(($ac_try" in
28945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946 *) ac_try_echo=$ac_try;;
28948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28949 (eval "$ac_compile") 2>conftest.er1
28951 grep -v '^ *+' conftest.er1 >conftest.err
28953 cat conftest.err >&5
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); } && {
28956 test -z "$ac_c_werror_flag" ||
28957 test ! -s conftest.err
28958 } && test -s conftest.$ac_objext; then
28959 ac_lo=$ac_mid; break
28961 echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28964 ac_hi=`expr '(' $ac_mid ')' - 1`
28965 if test $ac_mid -le $ac_hi; then
28969 ac_mid=`expr 2 '*' $ac_mid`
28972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28975 echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28985 # Binary search between lo and hi bounds.
28986 while test "x$ac_lo" != "x$ac_hi"; do
28987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28988 cat >conftest.$ac_ext <<_ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h. */
28994 $ac_includes_default
28995 typedef long ac__type_sizeof_;
28999 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29000 test_array @<:@0@:>@ = 0
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_compile") 2>conftest.er1
29015 grep -v '^ *+' conftest.er1 >conftest.err
29017 cat conftest.err >&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } && {
29020 test -z "$ac_c_werror_flag" ||
29021 test ! -s conftest.err
29022 } && test -s conftest.$ac_objext; then
29025 echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29028 ac_lo=`expr '(' $ac_mid ')' + 1`
29031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 ?*) ac_cv_sizeof_long=$ac_lo;;
29035 '') if test "$ac_cv_type_long" = yes; then
29036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29037 See \`config.log' for more details." >&5
29038 echo "$as_me: error: cannot compute sizeof (long)
29039 See \`config.log' for more details." >&2;}
29040 { (exit 77); exit 77; }; }
29042 ac_cv_sizeof_long=0
29046 cat >conftest.$ac_ext <<_ACEOF
29049 cat confdefs.h >>conftest.$ac_ext
29050 cat >>conftest.$ac_ext <<_ACEOF
29051 /* end confdefs.h. */
29052 $ac_includes_default
29053 typedef long ac__type_sizeof_;
29054 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29055 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29056 @%:@include <stdio.h>
29057 @%:@include <stdlib.h>
29062 FILE *f = fopen ("conftest.val", "w");
29065 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29067 long int i = longval ();
29068 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29070 fprintf (f, "%ld\n", i);
29074 unsigned long int i = ulongval ();
29075 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29077 fprintf (f, "%lu\n", i);
29079 return ferror (f) || fclose (f) != 0;
29085 rm -f conftest$ac_exeext
29086 if { (ac_try="$ac_link"
29087 case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_link") 2>&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29096 { (case "(($ac_try" in
29097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098 *) ac_try_echo=$ac_try;;
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101 (eval "$ac_try") 2>&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; }; then
29105 ac_cv_sizeof_long=`cat conftest.val`
29107 echo "$as_me: program exited with status $ac_status" >&5
29108 echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29111 ( exit $ac_status )
29112 if test "$ac_cv_type_long" = yes; then
29113 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29114 See \`config.log' for more details." >&5
29115 echo "$as_me: error: cannot compute sizeof (long)
29116 See \`config.log' for more details." >&2;}
29117 { (exit 77); exit 77; }; }
29119 ac_cv_sizeof_long=0
29122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29126 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29127 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29131 cat >>confdefs.h <<_ACEOF
29132 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29136 { echo "$as_me:$LINENO: checking for size_t" >&5
29137 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29138 if test "${ac_cv_type_size_t+set}" = set; then
29139 echo $ECHO_N "(cached) $ECHO_C" >&6
29141 cat >conftest.$ac_ext <<_ACEOF
29144 cat confdefs.h >>conftest.$ac_ext
29145 cat >>conftest.$ac_ext <<_ACEOF
29146 /* end confdefs.h. */
29147 $ac_includes_default
29148 typedef size_t ac__type_new_;
29152 if ((ac__type_new_ *) 0)
29154 if (sizeof (ac__type_new_))
29160 rm -f conftest.$ac_objext
29161 if { (ac_try="$ac_compile"
29162 case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_compile") 2>conftest.er1
29169 grep -v '^ *+' conftest.er1 >conftest.err
29171 cat conftest.err >&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } && {
29174 test -z "$ac_c_werror_flag" ||
29175 test ! -s conftest.err
29176 } && test -s conftest.$ac_objext; then
29177 ac_cv_type_size_t=yes
29179 echo "$as_me: failed program was:" >&5
29180 sed 's/^/| /' conftest.$ac_ext >&5
29182 ac_cv_type_size_t=no
29185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29187 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29188 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29190 # The cast to long int works around a bug in the HP C Compiler
29191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29193 # This bug is HP SR number 8606223364.
29194 { echo "$as_me:$LINENO: checking size of size_t" >&5
29195 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29196 if test "${ac_cv_sizeof_size_t+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29199 if test "$cross_compiling" = yes; then
29200 # Depending upon the size, compute the lo and hi bounds.
29201 cat >conftest.$ac_ext <<_ACEOF
29204 cat confdefs.h >>conftest.$ac_ext
29205 cat >>conftest.$ac_ext <<_ACEOF
29206 /* end confdefs.h. */
29207 $ac_includes_default
29208 typedef size_t ac__type_sizeof_;
29212 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29213 test_array @<:@0@:>@ = 0
29219 rm -f conftest.$ac_objext
29220 if { (ac_try="$ac_compile"
29221 case "(($ac_try" in
29222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223 *) ac_try_echo=$ac_try;;
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226 (eval "$ac_compile") 2>conftest.er1
29228 grep -v '^ *+' conftest.er1 >conftest.err
29230 cat conftest.err >&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } && {
29233 test -z "$ac_c_werror_flag" ||
29234 test ! -s conftest.err
29235 } && test -s conftest.$ac_objext; then
29238 cat >conftest.$ac_ext <<_ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h. */
29244 $ac_includes_default
29245 typedef size_t ac__type_sizeof_;
29249 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29250 test_array @<:@0@:>@ = 0
29256 rm -f conftest.$ac_objext
29257 if { (ac_try="$ac_compile"
29258 case "(($ac_try" in
29259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260 *) ac_try_echo=$ac_try;;
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263 (eval "$ac_compile") 2>conftest.er1
29265 grep -v '^ *+' conftest.er1 >conftest.err
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } && {
29270 test -z "$ac_c_werror_flag" ||
29271 test ! -s conftest.err
29272 } && test -s conftest.$ac_objext; then
29273 ac_hi=$ac_mid; break
29275 echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29278 ac_lo=`expr $ac_mid + 1`
29279 if test $ac_lo -le $ac_mid; then
29283 ac_mid=`expr 2 '*' $ac_mid + 1`
29286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29289 echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29292 cat >conftest.$ac_ext <<_ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h. */
29298 $ac_includes_default
29299 typedef size_t ac__type_sizeof_;
29303 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29304 test_array @<:@0@:>@ = 0
29310 rm -f conftest.$ac_objext
29311 if { (ac_try="$ac_compile"
29312 case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317 (eval "$ac_compile") 2>conftest.er1
29319 grep -v '^ *+' conftest.er1 >conftest.err
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } && {
29324 test -z "$ac_c_werror_flag" ||
29325 test ! -s conftest.err
29326 } && test -s conftest.$ac_objext; then
29329 cat >conftest.$ac_ext <<_ACEOF
29332 cat confdefs.h >>conftest.$ac_ext
29333 cat >>conftest.$ac_ext <<_ACEOF
29334 /* end confdefs.h. */
29335 $ac_includes_default
29336 typedef size_t ac__type_sizeof_;
29340 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29341 test_array @<:@0@:>@ = 0
29347 rm -f conftest.$ac_objext
29348 if { (ac_try="$ac_compile"
29349 case "(($ac_try" in
29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351 *) ac_try_echo=$ac_try;;
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_compile") 2>conftest.er1
29356 grep -v '^ *+' conftest.er1 >conftest.err
29358 cat conftest.err >&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); } && {
29361 test -z "$ac_c_werror_flag" ||
29362 test ! -s conftest.err
29363 } && test -s conftest.$ac_objext; then
29364 ac_lo=$ac_mid; break
29366 echo "$as_me: failed program was:" >&5
29367 sed 's/^/| /' conftest.$ac_ext >&5
29369 ac_hi=`expr '(' $ac_mid ')' - 1`
29370 if test $ac_mid -le $ac_hi; then
29374 ac_mid=`expr 2 '*' $ac_mid`
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29380 echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29390 # Binary search between lo and hi bounds.
29391 while test "x$ac_lo" != "x$ac_hi"; do
29392 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29393 cat >conftest.$ac_ext <<_ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29399 $ac_includes_default
29400 typedef size_t ac__type_sizeof_;
29404 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29405 test_array @<:@0@:>@ = 0
29411 rm -f conftest.$ac_objext
29412 if { (ac_try="$ac_compile"
29413 case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_compile") 2>conftest.er1
29420 grep -v '^ *+' conftest.er1 >conftest.err
29422 cat conftest.err >&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } && {
29425 test -z "$ac_c_werror_flag" ||
29426 test ! -s conftest.err
29427 } && test -s conftest.$ac_objext; then
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 ac_lo=`expr '(' $ac_mid ')' + 1`
29436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29439 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29440 '') if test "$ac_cv_type_size_t" = yes; then
29441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29442 See \`config.log' for more details." >&5
29443 echo "$as_me: error: cannot compute sizeof (size_t)
29444 See \`config.log' for more details." >&2;}
29445 { (exit 77); exit 77; }; }
29447 ac_cv_sizeof_size_t=0
29451 cat >conftest.$ac_ext <<_ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29457 $ac_includes_default
29458 typedef size_t ac__type_sizeof_;
29459 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29460 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29461 @%:@include <stdio.h>
29462 @%:@include <stdlib.h>
29467 FILE *f = fopen ("conftest.val", "w");
29470 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29472 long int i = longval ();
29473 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29475 fprintf (f, "%ld\n", i);
29479 unsigned long int i = ulongval ();
29480 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29482 fprintf (f, "%lu\n", i);
29484 return ferror (f) || fclose (f) != 0;
29490 rm -f conftest$ac_exeext
29491 if { (ac_try="$ac_link"
29492 case "(($ac_try" in
29493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494 *) ac_try_echo=$ac_try;;
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497 (eval "$ac_link") 2>&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29501 { (case "(($ac_try" in
29502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503 *) ac_try_echo=$ac_try;;
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506 (eval "$ac_try") 2>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
29510 ac_cv_sizeof_size_t=`cat conftest.val`
29512 echo "$as_me: program exited with status $ac_status" >&5
29513 echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29516 ( exit $ac_status )
29517 if test "$ac_cv_type_size_t" = yes; then
29518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29519 See \`config.log' for more details." >&5
29520 echo "$as_me: error: cannot compute sizeof (size_t)
29521 See \`config.log' for more details." >&2;}
29522 { (exit 77); exit 77; }; }
29524 ac_cv_sizeof_size_t=0
29527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29531 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29532 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29536 cat >>confdefs.h <<_ACEOF
29537 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29541 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29542 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29543 if test "${ac_cv_type_socklen_t+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29546 cat >conftest.$ac_ext <<_ACEOF
29549 cat confdefs.h >>conftest.$ac_ext
29550 cat >>conftest.$ac_ext <<_ACEOF
29551 /* end confdefs.h. */
29552 $ac_includes_default
29553 typedef socklen_t ac__type_new_;
29557 if ((ac__type_new_ *) 0)
29559 if (sizeof (ac__type_new_))
29565 rm -f conftest.$ac_objext
29566 if { (ac_try="$ac_compile"
29567 case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_compile") 2>conftest.er1
29574 grep -v '^ *+' conftest.er1 >conftest.err
29576 cat conftest.err >&5
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } && {
29579 test -z "$ac_c_werror_flag" ||
29580 test ! -s conftest.err
29581 } && test -s conftest.$ac_objext; then
29582 ac_cv_type_socklen_t=yes
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29587 ac_cv_type_socklen_t=no
29590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29592 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29593 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29595 # The cast to long int works around a bug in the HP C Compiler
29596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29598 # This bug is HP SR number 8606223364.
29599 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29600 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29601 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
29604 if test "$cross_compiling" = yes; then
29605 # Depending upon the size, compute the lo and hi bounds.
29606 cat >conftest.$ac_ext <<_ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h. */
29612 $ac_includes_default
29613 typedef socklen_t ac__type_sizeof_;
29617 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29618 test_array @<:@0@:>@ = 0
29624 rm -f conftest.$ac_objext
29625 if { (ac_try="$ac_compile"
29626 case "(($ac_try" in
29627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628 *) ac_try_echo=$ac_try;;
29630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29631 (eval "$ac_compile") 2>conftest.er1
29633 grep -v '^ *+' conftest.er1 >conftest.err
29635 cat conftest.err >&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); } && {
29638 test -z "$ac_c_werror_flag" ||
29639 test ! -s conftest.err
29640 } && test -s conftest.$ac_objext; then
29643 cat >conftest.$ac_ext <<_ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h. */
29649 $ac_includes_default
29650 typedef socklen_t ac__type_sizeof_;
29654 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29655 test_array @<:@0@:>@ = 0
29661 rm -f conftest.$ac_objext
29662 if { (ac_try="$ac_compile"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_compile") 2>conftest.er1
29670 grep -v '^ *+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest.$ac_objext; then
29678 ac_hi=$ac_mid; break
29680 echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29683 ac_lo=`expr $ac_mid + 1`
29684 if test $ac_lo -le $ac_mid; then
29688 ac_mid=`expr 2 '*' $ac_mid + 1`
29691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29694 echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29703 $ac_includes_default
29704 typedef socklen_t ac__type_sizeof_;
29708 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29709 test_array @<:@0@:>@ = 0
29715 rm -f conftest.$ac_objext
29716 if { (ac_try="$ac_compile"
29717 case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722 (eval "$ac_compile") 2>conftest.er1
29724 grep -v '^ *+' conftest.er1 >conftest.err
29726 cat conftest.err >&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } && {
29729 test -z "$ac_c_werror_flag" ||
29730 test ! -s conftest.err
29731 } && test -s conftest.$ac_objext; then
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29740 $ac_includes_default
29741 typedef socklen_t ac__type_sizeof_;
29745 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29746 test_array @<:@0@:>@ = 0
29752 rm -f conftest.$ac_objext
29753 if { (ac_try="$ac_compile"
29754 case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_compile") 2>conftest.er1
29761 grep -v '^ *+' conftest.er1 >conftest.err
29763 cat conftest.err >&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } && {
29766 test -z "$ac_c_werror_flag" ||
29767 test ! -s conftest.err
29768 } && test -s conftest.$ac_objext; then
29769 ac_lo=$ac_mid; break
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29774 ac_hi=`expr '(' $ac_mid ')' - 1`
29775 if test $ac_mid -le $ac_hi; then
29779 ac_mid=`expr 2 '*' $ac_mid`
29782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29785 echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29795 # Binary search between lo and hi bounds.
29796 while test "x$ac_lo" != "x$ac_hi"; do
29797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29798 cat >conftest.$ac_ext <<_ACEOF
29801 cat confdefs.h >>conftest.$ac_ext
29802 cat >>conftest.$ac_ext <<_ACEOF
29803 /* end confdefs.h. */
29804 $ac_includes_default
29805 typedef socklen_t ac__type_sizeof_;
29809 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29810 test_array @<:@0@:>@ = 0
29816 rm -f conftest.$ac_objext
29817 if { (ac_try="$ac_compile"
29818 case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823 (eval "$ac_compile") 2>conftest.er1
29825 grep -v '^ *+' conftest.er1 >conftest.err
29827 cat conftest.err >&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } && {
29830 test -z "$ac_c_werror_flag" ||
29831 test ! -s conftest.err
29832 } && test -s conftest.$ac_objext; then
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_lo=`expr '(' $ac_mid ')' + 1`
29841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29844 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29845 '') if test "$ac_cv_type_socklen_t" = yes; then
29846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29847 See \`config.log' for more details." >&5
29848 echo "$as_me: error: cannot compute sizeof (socklen_t)
29849 See \`config.log' for more details." >&2;}
29850 { (exit 77); exit 77; }; }
29852 ac_cv_sizeof_socklen_t=0
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29862 $ac_includes_default
29863 typedef socklen_t ac__type_sizeof_;
29864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29866 @%:@include <stdio.h>
29867 @%:@include <stdlib.h>
29872 FILE *f = fopen ("conftest.val", "w");
29875 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29877 long int i = longval ();
29878 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29880 fprintf (f, "%ld\n", i);
29884 unsigned long int i = ulongval ();
29885 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29887 fprintf (f, "%lu\n", i);
29889 return ferror (f) || fclose (f) != 0;
29895 rm -f conftest$ac_exeext
29896 if { (ac_try="$ac_link"
29897 case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_link") 2>&5
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29906 { (case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_try") 2>&5
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 ac_cv_sizeof_socklen_t=`cat conftest.val`
29917 echo "$as_me: program exited with status $ac_status" >&5
29918 echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29921 ( exit $ac_status )
29922 if test "$ac_cv_type_socklen_t" = yes; then
29923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29924 See \`config.log' for more details." >&5
29925 echo "$as_me: error: cannot compute sizeof (socklen_t)
29926 See \`config.log' for more details." >&2;}
29927 { (exit 77); exit 77; }; }
29929 ac_cv_sizeof_socklen_t=0
29932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29937 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29941 cat >>confdefs.h <<_ACEOF
29942 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29949 cat >>confdefs.h <<_ACEOF
29950 @%:@define NFS_STATEDIR "$statedir"
29954 if test "x$cross_compiling" = "xno"; then
29955 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29956 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29957 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29958 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29960 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29961 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29962 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29963 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29981 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29983 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29985 AM_CFLAGS="$my_am_cflags"
29988 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29989 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29992 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29994 cat >confcache <<\_ACEOF
29995 # This file is a shell script that caches the results of configure
29996 # tests run on this system so they can be shared between configure
29997 # scripts and configure runs, see configure's option --config-cache.
29998 # It is not useful on other systems. If it contains results you don't
29999 # want to keep, you may remove or edit it.
30001 # config.status only pays attention to the cache file if you give it
30002 # the --recheck option to rerun configure.
30004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30006 # following values.
30010 # The following way of writing the cache mishandles newlines in values,
30011 # but we know of no workaround that is simple, portable, and efficient.
30012 # So, we kill variables containing newlines.
30013 # Ultrix sh set writes to stderr and can't be redirected directly,
30014 # and sets the high bit in the cache file unless we assign to the vars.
30016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30017 eval ac_val=\$$ac_var
30021 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30022 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30025 _ | IFS | as_nl) ;; #(
30026 *) $as_unset $ac_var ;;
30032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30033 *${as_nl}ac_space=\ *)
30034 # `set' does not quote correctly, so add quotes (double-quote
30035 # substitution turns \\\\ into \\, and sed turns \\ into \).
30038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30041 # `set' quotes correctly as required by POSIX, so do not add quotes.
30042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30056 if test -w "$cache_file"; then
30057 test "x$cache_file" != "x/dev/null" &&
30058 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30059 echo "$as_me: updating cache $cache_file" >&6;}
30060 cat confcache >$cache_file
30062 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30063 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30069 # Let make expand exec_prefix.
30070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30072 DEFS=-DHAVE_CONFIG_H
30076 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30077 # 1. Remove the extension, and $U if already installed.
30078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30079 ac_i=`echo "$ac_i" | sed "$ac_script"`
30080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30081 # will be set to the directory where LIBOBJS objects are built.
30082 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30083 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30085 LIB@&t@OBJS=$ac_libobjs
30087 LTLIBOBJS=$ac_ltlibobjs
30090 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30091 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30092 Usually this means the macro was only invoked conditionally." >&5
30093 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&2;}
30095 { (exit 1); exit 1; }; }
30097 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30098 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30099 Usually this means the macro was only invoked conditionally." >&5
30100 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&2;}
30102 { (exit 1); exit 1; }; }
30104 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30105 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30106 Usually this means the macro was only invoked conditionally." >&5
30107 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&2;}
30109 { (exit 1); exit 1; }; }
30111 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30112 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30113 Usually this means the macro was only invoked conditionally." >&5
30114 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&2;}
30116 { (exit 1); exit 1; }; }
30118 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30119 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30120 Usually this means the macro was only invoked conditionally." >&5
30121 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&2;}
30123 { (exit 1); exit 1; }; }
30125 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30126 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30127 Usually this means the macro was only invoked conditionally." >&5
30128 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&2;}
30130 { (exit 1); exit 1; }; }
30132 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30133 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30134 Usually this means the macro was only invoked conditionally." >&5
30135 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&2;}
30137 { (exit 1); exit 1; }; }
30139 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30140 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30141 Usually this means the macro was only invoked conditionally." >&5
30142 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30143 Usually this means the macro was only invoked conditionally." >&2;}
30144 { (exit 1); exit 1; }; }
30146 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30147 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30148 Usually this means the macro was only invoked conditionally." >&5
30149 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30150 Usually this means the macro was only invoked conditionally." >&2;}
30151 { (exit 1); exit 1; }; }
30154 : ${CONFIG_STATUS=./config.status}
30155 ac_clean_files_save=$ac_clean_files
30156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30157 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30158 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30159 cat >$CONFIG_STATUS <<_ACEOF
30161 # Generated by $as_me.
30162 # Run this file to recreate the current configuration.
30163 # Compiler output produced by configure, useful for debugging
30164 # configure, is in config.log if it exists.
30167 ac_cs_recheck=false
30169 SHELL=\${CONFIG_SHELL-$SHELL}
30172 cat >>$CONFIG_STATUS <<\_ACEOF
30173 ## --------------------- ##
30174 ## M4sh Initialization. ##
30175 ## --------------------- ##
30177 # Be more Bourne compatible
30178 DUALCASE=1; export DUALCASE # for MKS sh
30179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30182 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30183 # is contrary to our usage. Disable this feature.
30184 alias -g '${1+"$@"}'='"$@"'
30185 setopt NO_GLOB_SUBST
30187 case `(set -o) 2>/dev/null` in
30188 *posix*) set -o posix ;;
30197 # Avoid depending upon Character Ranges.
30198 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30201 as_cr_digits='0123456789'
30202 as_cr_alnum=$as_cr_Letters$as_cr_digits
30204 # The user is always right.
30205 if test "${PATH_SEPARATOR+set}" != set; then
30206 echo "#! /bin/sh" >conf$$.sh
30207 echo "exit 0" >>conf$$.sh
30209 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30217 # Support unset when possible.
30218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30226 # We need space, tab and new line, in precisely that order. Quoting is
30227 # there to prevent editors from complaining about space-tab.
30228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30229 # splitting by setting IFS to empty value.)
30234 # Find who we are. Look in the path if we contain no directory separator.
30236 *[\\/]* ) as_myself=$0 ;;
30237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238 for as_dir in $PATH
30241 test -z "$as_dir" && as_dir=.
30242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30248 # We did not find ourselves, most probably we were run as `sh COMMAND'
30249 # in which case we are not to be found in the path.
30250 if test "x$as_myself" = x; then
30253 if test ! -f "$as_myself"; then
30254 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30255 { (exit 1); exit 1; }
30258 # Work around bugs in pre-3.0 UWIN ksh.
30259 for as_var in ENV MAIL MAILPATH
30260 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30270 LC_TELEPHONE LC_TIME
30272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30273 eval $as_var=C; export $as_var
30275 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30279 # Required to use basename.
30280 if expr a : '\(a\)' >/dev/null 2>&1 &&
30281 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30288 as_basename=basename
30294 # Name of the executable.
30295 as_me=`$as_basename -- "$0" ||
30296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30297 X"$0" : 'X\(//\)$' \| \
30298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30300 sed '/^.*\/\([^/][^/]*\)\/*$/{
30319 as_lineno_1=$LINENO
30320 as_lineno_2=$LINENO
30321 test "x$as_lineno_1" != "x$as_lineno_2" &&
30322 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30325 # uniformly replaced by the line number. The first 'sed' inserts a
30326 # line-number line after each line using $LINENO; the second 'sed'
30327 # does the real work. The second script uses 'N' to pair each
30328 # line-number line with the line containing $LINENO, and appends
30329 # trailing '-' during substitution so that $LINENO is not a special
30330 # case at line end.
30331 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30332 # scripts with optimization help from Paolo Bonzini. Blame Lee
30333 # E. McMahon (1931-1989) for sed's syntax. :-)
30345 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30348 ' >$as_me.lineno &&
30349 chmod +x "$as_me.lineno" ||
30350 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30351 { (exit 1); exit 1; }; }
30353 # Don't try to exec as it changes $[0], causing all sort of problems
30354 # (the dirname of $[0] is not the place where we might find the
30355 # original and so on. Autoconf is especially sensitive to this).
30356 . "./$as_me.lineno"
30357 # Exit status is that of the last command.
30362 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30368 ECHO_C= ECHO_N= ECHO_T=
30369 case `echo -n x` in
30371 case `echo 'x\c'` in
30372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30379 if expr a : '\(a\)' >/dev/null 2>&1 &&
30380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30386 rm -f conf$$ conf$$.exe conf$$.file
30387 if test -d conf$$.dir; then
30388 rm -f conf$$.dir/conf$$.file
30394 if ln -s conf$$.file conf$$ 2>/dev/null; then
30396 # ... but there are two gotchas:
30397 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30398 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30399 # In both cases, we have to default to `cp -p'.
30400 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30402 elif ln conf$$.file conf$$ 2>/dev/null; then
30407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30408 rmdir conf$$.dir 2>/dev/null
30410 if mkdir -p . 2>/dev/null; then
30413 test -d ./-p && rmdir ./-p
30417 if test -x / >/dev/null 2>&1; then
30418 as_test_x='test -x'
30420 if ls -dL / >/dev/null 2>&1; then
30427 if test -d "$1"; then
30433 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30434 ???[sx]*):;;*)false;;esac;fi
30438 as_executable_p=$as_test_x
30440 # Sed expression to map a string onto a valid CPP name.
30441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30443 # Sed expression to map a string onto a valid variable name.
30444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30449 # Save the log message, to keep $[0] and so on meaningful, and to
30450 # report actual input values of CONFIG_FILES etc. instead of their
30451 # values after options handling.
30453 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30454 generated by GNU Autoconf 2.61. Invocation command line was
30456 CONFIG_FILES = $CONFIG_FILES
30457 CONFIG_HEADERS = $CONFIG_HEADERS
30458 CONFIG_LINKS = $CONFIG_LINKS
30459 CONFIG_COMMANDS = $CONFIG_COMMANDS
30462 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30467 cat >>$CONFIG_STATUS <<_ACEOF
30468 # Files that config.status was made for.
30469 config_files="$ac_config_files"
30470 config_headers="$ac_config_headers"
30471 config_commands="$ac_config_commands"
30475 cat >>$CONFIG_STATUS <<\_ACEOF
30477 \`$as_me' instantiates files from templates according to the
30478 current configuration.
30480 Usage: $0 [OPTIONS] [FILE]...
30482 -h, --help print this help, then exit
30483 -V, --version print version number and configuration settings, then exit
30484 -q, --quiet do not print progress messages
30485 -d, --debug don't remove temporary files
30486 --recheck update $as_me by reconfiguring in the same conditions
30487 --file=FILE[:TEMPLATE]
30488 instantiate the configuration file FILE
30489 --header=FILE[:TEMPLATE]
30490 instantiate the configuration header FILE
30492 Configuration files:
30495 Configuration headers:
30498 Configuration commands:
30501 Report bugs to <bug-autoconf@gnu.org>."
30504 cat >>$CONFIG_STATUS <<_ACEOF
30506 linux nfs-utils config.status 1.1.0
30507 configured by $0, generated by GNU Autoconf 2.61,
30508 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30510 Copyright (C) 2006 Free Software Foundation, Inc.
30511 This config.status script is free software; the Free Software Foundation
30512 gives unlimited permission to copy, distribute and modify it."
30519 cat >>$CONFIG_STATUS <<\_ACEOF
30520 # If no file are specified by the user, then we need to provide default
30521 # value. By we need to know if files were specified by the user.
30527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30528 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30539 # Handling of the options.
30540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30542 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30543 echo "$ac_cs_version"; exit ;;
30544 --debug | --debu | --deb | --de | --d | -d )
30546 --file | --fil | --fi | --f )
30548 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30549 ac_need_defaults=false;;
30550 --header | --heade | --head | --hea )
30552 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30553 ac_need_defaults=false;;
30555 # Conflict between --help and --header
30556 { echo "$as_me: error: ambiguous option: $1
30557 Try \`$0 --help' for more information." >&2
30558 { (exit 1); exit 1; }; };;
30559 --help | --hel | -h )
30560 echo "$ac_cs_usage"; exit ;;
30561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30565 # This is an error.
30566 -*) { echo "$as_me: error: unrecognized option: $1
30567 Try \`$0 --help' for more information." >&2
30568 { (exit 1); exit 1; }; } ;;
30570 *) ac_config_targets="$ac_config_targets $1"
30571 ac_need_defaults=false ;;
30577 ac_configure_extra_args=
30579 if $ac_cs_silent; then
30581 ac_configure_extra_args="$ac_configure_extra_args --silent"
30585 cat >>$CONFIG_STATUS <<_ACEOF
30586 if \$ac_cs_recheck; then
30587 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30588 CONFIG_SHELL=$SHELL
30589 export CONFIG_SHELL
30590 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30594 cat >>$CONFIG_STATUS <<\_ACEOF
30598 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30599 @%:@@%:@ Running $as_me. @%:@@%:@
30605 cat >>$CONFIG_STATUS <<_ACEOF
30609 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30613 cat >>$CONFIG_STATUS <<\_ACEOF
30615 # Handling of arguments.
30616 for ac_config_target in $ac_config_targets
30618 case $ac_config_target in
30619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30620 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30622 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30623 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30624 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30625 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30626 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30627 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30628 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30629 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30630 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30631 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30632 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30633 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30634 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30635 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30636 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30637 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30638 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30639 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30640 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30641 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30642 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30643 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30644 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30645 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30646 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30648 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30649 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30650 { (exit 1); exit 1; }; };;
30655 # If the user did not use the arguments to specify the items to instantiate,
30656 # then the envvar interface is used. Set only those that are not.
30657 # We use the long form for the default assignment because of an extremely
30658 # bizarre bug on SunOS 4.1.3.
30659 if $ac_need_defaults; then
30660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30661 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30662 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30665 # Have a temporary directory for convenience. Make it in the build tree
30666 # simply because there is no reason against having it here, and in addition,
30667 # creating and moving files from /tmp can sometimes cause problems.
30668 # Hook for its removal unless debugging.
30669 # Note that there is a small window in which the directory will not be cleaned:
30670 # after its creation but before its name has been assigned to `$tmp'.
30674 trap 'exit_status=$?
30675 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30677 trap '{ (exit 1); exit 1; }' 1 2 13 15
30679 # Create a (secure) tmp directory for tmp files.
30682 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30683 test -n "$tmp" && test -d "$tmp"
30686 tmp=./conf$$-$RANDOM
30687 (umask 077 && mkdir "$tmp")
30690 echo "$me: cannot create a temporary directory in ." >&2
30691 { (exit 1); exit 1; }
30695 # Set up the sed scripts for CONFIG_FILES section.
30698 # No need to generate the scripts if there are no CONFIG_FILES.
30699 # This happens for instance when ./config.status config.h
30700 if test -n "$CONFIG_FILES"; then
30707 for ac_last_try in false false false false false :; do
30708 cat >conf$$subs.sed <<_ACEOF
30709 SHELL!$SHELL$ac_delim
30710 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30711 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30712 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30713 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30714 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30715 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30716 exec_prefix!$exec_prefix$ac_delim
30717 prefix!$prefix$ac_delim
30718 program_transform_name!$program_transform_name$ac_delim
30719 bindir!$bindir$ac_delim
30720 sbindir!$sbindir$ac_delim
30721 libexecdir!$libexecdir$ac_delim
30722 datarootdir!$datarootdir$ac_delim
30723 datadir!$datadir$ac_delim
30724 sysconfdir!$sysconfdir$ac_delim
30725 sharedstatedir!$sharedstatedir$ac_delim
30726 localstatedir!$localstatedir$ac_delim
30727 includedir!$includedir$ac_delim
30728 oldincludedir!$oldincludedir$ac_delim
30729 docdir!$docdir$ac_delim
30730 infodir!$infodir$ac_delim
30731 htmldir!$htmldir$ac_delim
30732 dvidir!$dvidir$ac_delim
30733 pdfdir!$pdfdir$ac_delim
30734 psdir!$psdir$ac_delim
30735 libdir!$libdir$ac_delim
30736 localedir!$localedir$ac_delim
30737 mandir!$mandir$ac_delim
30738 DEFS!$DEFS$ac_delim
30739 ECHO_C!$ECHO_C$ac_delim
30740 ECHO_N!$ECHO_N$ac_delim
30741 ECHO_T!$ECHO_T$ac_delim
30742 LIBS!$LIBS$ac_delim
30743 build_alias!$build_alias$ac_delim
30744 host_alias!$host_alias$ac_delim
30745 target_alias!$target_alias$ac_delim
30746 build!$build$ac_delim
30747 build_cpu!$build_cpu$ac_delim
30748 build_vendor!$build_vendor$ac_delim
30749 build_os!$build_os$ac_delim
30750 host!$host$ac_delim
30751 host_cpu!$host_cpu$ac_delim
30752 host_vendor!$host_vendor$ac_delim
30753 host_os!$host_os$ac_delim
30754 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30755 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30756 INSTALL_DATA!$INSTALL_DATA$ac_delim
30757 CYGPATH_W!$CYGPATH_W$ac_delim
30758 PACKAGE!$PACKAGE$ac_delim
30759 VERSION!$VERSION$ac_delim
30760 ACLOCAL!$ACLOCAL$ac_delim
30761 AUTOCONF!$AUTOCONF$ac_delim
30762 AUTOMAKE!$AUTOMAKE$ac_delim
30763 AUTOHEADER!$AUTOHEADER$ac_delim
30764 MAKEINFO!$MAKEINFO$ac_delim
30765 install_sh!$install_sh$ac_delim
30766 STRIP!$STRIP$ac_delim
30767 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30768 mkdir_p!$mkdir_p$ac_delim
30770 SET_MAKE!$SET_MAKE$ac_delim
30771 am__leading_dot!$am__leading_dot$ac_delim
30772 AMTAR!$AMTAR$ac_delim
30773 am__tar!$am__tar$ac_delim
30774 am__untar!$am__untar$ac_delim
30775 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30776 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30777 MAINT!$MAINT$ac_delim
30778 RELEASE!$RELEASE$ac_delim
30779 statedir!$statedir$ac_delim
30780 statduser!$statduser$ac_delim
30781 startstatd!$startstatd$ac_delim
30782 enable_nfsv3!$enable_nfsv3$ac_delim
30783 IDMAPD!$IDMAPD$ac_delim
30784 enable_nfsv4!$enable_nfsv4$ac_delim
30785 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30786 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30787 GSSD!$GSSD$ac_delim
30788 SVCGSSD!$SVCGSSD$ac_delim
30789 enable_gss!$enable_gss$ac_delim
30790 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30791 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30792 kprefix!$kprefix$ac_delim
30793 secure_statd!$secure_statd$ac_delim
30794 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30795 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30796 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30797 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30798 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30800 CFLAGS!$CFLAGS$ac_delim
30801 LDFLAGS!$LDFLAGS$ac_delim
30802 CPPFLAGS!$CPPFLAGS$ac_delim
30803 ac_ct_CC!$ac_ct_CC$ac_delim
30804 EXEEXT!$EXEEXT$ac_delim
30805 OBJEXT!$OBJEXT$ac_delim
30808 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30810 elif $ac_last_try; then
30811 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30812 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30813 { (exit 1); exit 1; }; }
30815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30819 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30820 if test -n "$ac_eof"; then
30821 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30822 ac_eof=`expr $ac_eof + 1`
30825 cat >>$CONFIG_STATUS <<_ACEOF
30826 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30830 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30831 s/^/s,@/; s/!/@,|#_!!_#|/
30834 s/'"$ac_delim"'$/,g/; t
30836 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30837 ' >>$CONFIG_STATUS <conf$$subs.sed
30838 rm -f conf$$subs.sed
30839 cat >>$CONFIG_STATUS <<_ACEOF
30845 for ac_last_try in false false false false false :; do
30846 cat >conf$$subs.sed <<_ACEOF
30847 DEPDIR!$DEPDIR$ac_delim
30848 am__include!$am__include$ac_delim
30849 am__quote!$am__quote$ac_delim
30850 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30851 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30852 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30853 CCDEPMODE!$CCDEPMODE$ac_delim
30854 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30855 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30856 LIBWRAP!$LIBWRAP$ac_delim
30857 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30858 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30860 CXXFLAGS!$CXXFLAGS$ac_delim
30861 ac_ct_CXX!$ac_ct_CXX$ac_delim
30862 CXXDEPMODE!$CXXDEPMODE$ac_delim
30863 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30864 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30866 LN_S!$LN_S$ac_delim
30868 GREP!$GREP$ac_delim
30869 EGREP!$EGREP$ac_delim
30870 ECHO!$ECHO$ac_delim
30872 RANLIB!$RANLIB$ac_delim
30873 CXXCPP!$CXXCPP$ac_delim
30875 FFLAGS!$FFLAGS$ac_delim
30876 ac_ct_F77!$ac_ct_F77$ac_delim
30877 LIBTOOL!$LIBTOOL$ac_delim
30878 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30880 LIBNSL!$LIBNSL$ac_delim
30881 PKG_CONFIG!$PKG_CONFIG$ac_delim
30882 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30883 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30884 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30885 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30886 LIBSOCKET!$LIBSOCKET$ac_delim
30887 LIBCRYPT!$LIBCRYPT$ac_delim
30888 LIBBSD!$LIBBSD$ac_delim
30889 LIBBLKID!$LIBBLKID$ac_delim
30890 KRBDIR!$KRBDIR$ac_delim
30891 KRBLIBS!$KRBLIBS$ac_delim
30892 KRBCFLAGS!$KRBCFLAGS$ac_delim
30893 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30894 K5VERS!$K5VERS$ac_delim
30895 ALLOCA!$ALLOCA$ac_delim
30896 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30897 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30898 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30899 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30900 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30901 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30902 AM_CFLAGS!$AM_CFLAGS$ac_delim
30903 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30904 LTLIBOBJS!$LTLIBOBJS$ac_delim
30907 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30909 elif $ac_last_try; then
30910 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30911 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30912 { (exit 1); exit 1; }; }
30914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30918 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30919 if test -n "$ac_eof"; then
30920 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30921 ac_eof=`expr $ac_eof + 1`
30924 cat >>$CONFIG_STATUS <<_ACEOF
30925 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30929 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30930 s/^/s,@/; s/!/@,|#_!!_#|/
30933 s/'"$ac_delim"'$/,g/; t
30935 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30936 ' >>$CONFIG_STATUS <conf$$subs.sed
30937 rm -f conf$$subs.sed
30938 cat >>$CONFIG_STATUS <<_ACEOF
30945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30947 # trailing colons and then remove the whole line if VPATH becomes empty
30948 # (actually we leave an empty line to preserve line numbers).
30949 if test "x$srcdir" = x.; then
30950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30951 s/:*\$(srcdir):*/:/
30952 s/:*\${srcdir}:*/:/
30954 s/^\([^=]*=[ ]*\):*/\1/
30960 cat >>$CONFIG_STATUS <<\_ACEOF
30961 fi # test -n "$CONFIG_FILES"
30964 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30967 :[FHLC]) ac_mode=$ac_tag; continue;;
30969 case $ac_mode$ac_tag in
30971 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30972 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30973 { (exit 1); exit 1; }; };;
30974 :[FH]-) ac_tag=-:-;;
30975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30992 -) ac_f="$tmp/stdin";;
30993 *) # Look for the file first in the build tree, then in the source tree
30994 # (if the path is not absolute). The absolute path cannot be DOS-style,
30995 # because $ac_f cannot contain `:'.
30999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31001 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31002 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31003 { (exit 1); exit 1; }; };;
31005 ac_file_inputs="$ac_file_inputs $ac_f"
31008 # Let's still pretend it is `configure' which instantiates (i.e., don't
31009 # use $as_me), people would be surprised to read:
31010 # /* config.h. Generated by config.status. */
31011 configure_input="Generated from "`IFS=:
31012 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31013 if test x"$ac_file" != x-; then
31014 configure_input="$ac_file. $configure_input"
31015 { echo "$as_me:$LINENO: creating $ac_file" >&5
31016 echo "$as_me: creating $ac_file" >&6;}
31020 *:-:* | *:-) cat >"$tmp/stdin";;
31025 ac_dir=`$as_dirname -- "$ac_file" ||
31026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31027 X"$ac_file" : 'X\(//\)[^/]' \| \
31028 X"$ac_file" : 'X\(//\)$' \| \
31029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31035 /^X\(\/\/\)[^/].*/{
31050 -*) as_dir=./$as_dir;;
31052 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31056 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31057 *) as_qdir=$as_dir;;
31059 as_dirs="'$as_qdir' $as_dirs"
31060 as_dir=`$as_dirname -- "$as_dir" ||
31061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31062 X"$as_dir" : 'X\(//\)[^/]' \| \
31063 X"$as_dir" : 'X\(//\)$' \| \
31064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31070 /^X\(\/\/\)[^/].*/{
31083 test -d "$as_dir" && break
31085 test -z "$as_dirs" || eval "mkdir $as_dirs"
31086 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31087 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31088 { (exit 1); exit 1; }; }; }
31092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31095 # A ".." for each directory in $ac_dir_suffix.
31096 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31097 case $ac_top_builddir_sub in
31098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31102 ac_abs_top_builddir=$ac_pwd
31103 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31104 # for backward compatibility:
31105 ac_top_builddir=$ac_top_build_prefix
31108 .) # We are building in place.
31110 ac_top_srcdir=$ac_top_builddir_sub
31111 ac_abs_top_srcdir=$ac_pwd ;;
31112 [\\/]* | ?:[\\/]* ) # Absolute name.
31113 ac_srcdir=$srcdir$ac_dir_suffix;
31114 ac_top_srcdir=$srcdir
31115 ac_abs_top_srcdir=$srcdir ;;
31116 *) # Relative name.
31117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31118 ac_top_srcdir=$ac_top_build_prefix$srcdir
31119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31136 cat >>$CONFIG_STATUS <<\_ACEOF
31137 # If the template does not know about datarootdir, expand it.
31138 # FIXME: This hack should be removed a few years after 2.60.
31139 ac_datarootdir_hack=; ac_datarootdir_seen=
31141 case `sed -n '/datarootdir/ {
31150 ' $ac_file_inputs` in
31151 *datarootdir*) ac_datarootdir_seen=yes;;
31152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31153 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31154 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31156 cat >>$CONFIG_STATUS <<_ACEOF
31157 ac_datarootdir_hack='
31158 s&@datadir@&$datadir&g
31159 s&@docdir@&$docdir&g
31160 s&@infodir@&$infodir&g
31161 s&@localedir@&$localedir&g
31162 s&@mandir@&$mandir&g
31163 s&\\\${datarootdir}&$datarootdir&g' ;;
31167 # Neutralize VPATH when `$srcdir' = `.'.
31168 # Shell code in configure.ac might set extrasub.
31169 # FIXME: do we really want to maintain this feature?
31170 cat >>$CONFIG_STATUS <<_ACEOF
31174 cat >>$CONFIG_STATUS <<\_ACEOF
31176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31177 s&@configure_input@&$configure_input&;t t
31178 s&@top_builddir@&$ac_top_builddir_sub&;t t
31179 s&@srcdir@&$ac_srcdir&;t t
31180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31181 s&@top_srcdir@&$ac_top_srcdir&;t t
31182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31183 s&@builddir@&$ac_builddir&;t t
31184 s&@abs_builddir@&$ac_abs_builddir&;t t
31185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31186 s&@INSTALL@&$ac_INSTALL&;t t
31187 $ac_datarootdir_hack
31188 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31191 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31193 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31194 which seems to be undefined. Please make sure it is defined." >&5
31195 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31196 which seems to be undefined. Please make sure it is defined." >&2;}
31200 -) cat "$tmp/out"; rm -f "$tmp/out";;
31201 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31210 # Transform confdefs.h into a sed script `conftest.defines', that
31211 # substitutes the proper values into config.h.in to produce config.h.
31212 rm -f conftest.defines conftest.tail
31213 # First, append a space to every undef/define line, to ease matching.
31214 echo 's/$/ /' >conftest.defines
31215 # Then, protect against being on the right side of a sed subst, or in
31216 # an unquoted here document, in config.status. If some macros were
31217 # called several times there might be several #defines for the same
31218 # symbol, which is useless. But do not sort them, since the last
31219 # AC_DEFINE must be honored.
31220 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31221 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31222 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31223 # PARAMS is the parameter list in the macro definition--in most cases, it's
31224 # just an empty string.
31225 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31226 ac_dB='\\)[ (].*,\\1define\\2'
31234 s/^[ ]*#[ ]*define[ ][ ]*//
31239 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31240 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31241 ' >>conftest.defines
31243 # Remove the space that was appended to ease matching.
31244 # Then replace #undef with comments. This is necessary, for
31245 # example, in the case of _POSIX_SOURCE, which is predefined and required
31246 # on some systems where configure will not decide to define it.
31247 # (The regexp can be short, since the line contains either #define or #undef.)
31249 s,^[ #]*u.*,/* & */,' >>conftest.defines
31251 # Break up conftest.defines:
31252 ac_max_sed_lines=50
31254 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31255 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31256 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31258 ac_in='$ac_file_inputs'
31259 ac_out='"$tmp/out1"'
31260 ac_nxt='"$tmp/out2"'
31264 # Write a here document:
31265 cat >>$CONFIG_STATUS <<_ACEOF
31266 # First, check the format of the line:
31267 cat >"\$tmp/defines.sed" <<\\CEOF
31268 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31269 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31273 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31275 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31276 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31277 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31278 grep . conftest.tail >/dev/null || break
31279 rm -f conftest.defines
31280 mv conftest.tail conftest.defines
31282 rm -f conftest.defines conftest.tail
31284 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31285 cat >>$CONFIG_STATUS <<\_ACEOF
31286 if test x"$ac_file" != x-; then
31287 echo "/* $configure_input */" >"$tmp/config.h"
31288 cat "$ac_result" >>"$tmp/config.h"
31289 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31290 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31291 echo "$as_me: $ac_file is unchanged" >&6;}
31294 mv "$tmp/config.h" $ac_file
31297 echo "/* $configure_input */"
31301 # Compute $ac_file's index in $config_headers.
31303 for _am_header in $config_headers :; do
31304 case $_am_header in
31305 $ac_file | $ac_file:* )
31308 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31311 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31312 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31313 X$ac_file : 'X\(//\)[^/]' \| \
31314 X$ac_file : 'X\(//\)$' \| \
31315 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31321 /^X\(\/\/\)[^/].*/{
31333 s/.*/./; q'`/stamp-h$_am_stamp_count
31336 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31337 echo "$as_me: executing $ac_file commands" >&6;}
31342 case $ac_file$ac_mode in
31343 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31344 # Strip MF so we end up with the name of the file.
31345 mf=`echo "$mf" | sed -e 's/:.*$//'`
31346 # Check whether this is an Automake generated Makefile or not.
31347 # We used to match only the files named `Makefile.in', but
31348 # some people rename them; so instead we look at the file content.
31349 # Grep'ing the first line is not enough: some people post-process
31350 # each Makefile.in and add a new line on top of each file to say so.
31351 # So let's grep whole file.
31352 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31353 dirpart=`$as_dirname -- "$mf" ||
31354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31355 X"$mf" : 'X\(//\)[^/]' \| \
31356 X"$mf" : 'X\(//\)$' \| \
31357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31363 /^X\(\/\/\)[^/].*/{
31379 # Extract the definition of DEPDIR, am__include, and am__quote
31380 # from the Makefile without running `make'.
31381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31382 test -z "$DEPDIR" && continue
31383 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31384 test -z "am__include" && continue
31385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31386 # When using ansi2knr, U may be empty or an underscore; expand it
31387 U=`sed -n 's/^U = //p' < "$mf"`
31388 # Find all dependency output files, they are included files with
31389 # $(DEPDIR) in their names. We invoke sed twice because it is the
31390 # simplest approach to changing $(DEPDIR) to its actual value in the
31392 for file in `sed -n "
31393 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31394 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31395 # Make sure the directory exists.
31396 test -f "$dirpart/$file" && continue
31397 fdir=`$as_dirname -- "$file" ||
31398 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31399 X"$file" : 'X\(//\)[^/]' \| \
31400 X"$file" : 'X\(//\)$' \| \
31401 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31407 /^X\(\/\/\)[^/].*/{
31420 { as_dir=$dirpart/$fdir
31422 -*) as_dir=./$as_dir;;
31424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31429 *) as_qdir=$as_dir;;
31431 as_dirs="'$as_qdir' $as_dirs"
31432 as_dir=`$as_dirname -- "$as_dir" ||
31433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31434 X"$as_dir" : 'X\(//\)[^/]' \| \
31435 X"$as_dir" : 'X\(//\)$' \| \
31436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31442 /^X\(\/\/\)[^/].*/{
31455 test -d "$as_dir" && break
31457 test -z "$as_dirs" || eval "mkdir $as_dirs"
31458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31460 { (exit 1); exit 1; }; }; }
31461 # echo "creating $dirpart/$file"
31462 echo '# dummy' > "$dirpart/$file"
31471 { (exit 0); exit 0; }
31473 chmod +x $CONFIG_STATUS
31474 ac_clean_files=$ac_clean_files_save
31477 # configure is writing to config.log, and then calls config.status.
31478 # config.status does its own redirection, appending to config.log.
31479 # Unfortunately, on DOS this fails, as config.log is still kept open
31480 # by configure, so config.status won't be able to write to it; its
31481 # output is simply discarded. So we exec the FD to /dev/null,
31482 # effectively closing config.log, so it can be properly (re)opened and
31483 # appended to by config.status. When coming back to configure, we
31484 # need to make the FD available again.
31485 if test "$no_create" != yes; then
31487 ac_config_status_args=
31488 test "$silent" = yes &&
31489 ac_config_status_args="$ac_config_status_args --quiet"
31491 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31493 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31494 # would make configure fail if this is the last instruction.
31495 $ac_cs_success || { (exit 1); exit 1; }