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 lt_prog_compiler_no_builtin_flag=
8707 if test "$GCC" = yes; then
8708 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8711 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8712 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8713 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 lt_cv_prog_compiler_rtti_exceptions=no
8717 ac_outfile=conftest.$ac_objext
8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8719 lt_compiler_flag="-fno-rtti -fno-exceptions"
8720 # Insert the option either (1) after the last *FLAGS variable, or
8721 # (2) before a word containing "conftest.", or (3) at the end.
8722 # Note that $ac_compile itself does not contain backslashes and begins
8723 # with a dollar sign (not a hyphen), so the echo should work correctly.
8724 # The option is referenced via a variable to avoid confusing sed.
8725 lt_compile=`echo "$ac_compile" | $SED \
8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8728 -e 's:$: $lt_compiler_flag:'`
8729 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8730 (eval "$lt_compile" 2>conftest.err)
8732 cat conftest.err >&5
8733 echo "$as_me:__oline__: \$? = $ac_status" >&5
8734 if (exit $ac_status) && test -s "$ac_outfile"; then
8735 # The compiler can only warn and ignore the option if not recognized
8736 # So say no if there are warnings other than the usual output.
8737 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8740 lt_cv_prog_compiler_rtti_exceptions=yes
8746 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8747 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8749 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8750 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8757 lt_prog_compiler_wl=
8758 lt_prog_compiler_pic=
8759 lt_prog_compiler_static=
8761 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8764 if test "$GCC" = yes; then
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_static='-static'
8770 # All AIX code is PIC.
8771 if test "$host_cpu" = ia64; then
8772 # AIX 5 now supports IA64 processor
8773 lt_prog_compiler_static='-Bstatic'
8778 # FIXME: we need at least 68020 code to build shared libraries, but
8779 # adding the `-m68020' flag to GCC prevents building anything better,
8781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8785 # PIC is the default for these OSes.
8788 mingw* | cygwin* | pw32* | os2*)
8789 # This hack is so that the source file can tell whether it is being
8790 # built for inclusion in a dll (and should export symbols for example).
8791 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8792 # (--disable-auto-import) libraries
8793 lt_prog_compiler_pic='-DDLL_EXPORT'
8796 darwin* | rhapsody*)
8797 # PIC is the default on this platform
8798 # Common symbols not allowed in MH_DYLIB files
8799 lt_prog_compiler_pic='-fno-common'
8803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8804 # Instead, we relocate shared libraries at runtime.
8808 # Just because we use GCC doesn't mean we suddenly get shared libraries
8809 # on systems that don't support them.
8810 lt_prog_compiler_can_build_shared=no
8815 if test -d /usr/nec; then
8816 lt_prog_compiler_pic=-Kconform_pic
8821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8828 lt_prog_compiler_pic='-fPIC'
8834 lt_prog_compiler_pic='-fPIC'
8838 # PORTME Check for flag to pass linker flags through the system compiler.
8841 lt_prog_compiler_wl='-Wl,'
8842 if test "$host_cpu" = ia64; then
8843 # AIX 5 now supports IA64 processor
8844 lt_prog_compiler_static='-Bstatic'
8846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8850 # PIC is the default on this platform
8851 # Common symbols not allowed in MH_DYLIB files
8852 case $cc_basename in
8854 lt_prog_compiler_pic='-qnocommon'
8855 lt_prog_compiler_wl='-Wl,'
8860 mingw* | cygwin* | pw32* | os2*)
8861 # This hack is so that the source file can tell whether it is being
8862 # built for inclusion in a dll (and should export symbols for example).
8863 lt_prog_compiler_pic='-DDLL_EXPORT'
8866 hpux9* | hpux10* | hpux11*)
8867 lt_prog_compiler_wl='-Wl,'
8868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8875 lt_prog_compiler_pic='+Z'
8878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8879 lt_prog_compiler_static='${wl}-a ${wl}archive'
8882 irix5* | irix6* | nonstopux*)
8883 lt_prog_compiler_wl='-Wl,'
8884 # PIC (with -KPIC) is the default.
8885 lt_prog_compiler_static='-non_shared'
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-Bstatic'
8893 linux* | k*bsd*-gnu)
8894 case $cc_basename in
8896 lt_prog_compiler_wl='-Wl,'
8897 lt_prog_compiler_pic='-KPIC'
8898 lt_prog_compiler_static='-static'
8900 pgcc* | pgf77* | pgf90* | pgf95*)
8901 # Portland Group compilers (*not* the Pentium gcc compiler,
8902 # which looks to be a dead project)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-fpic'
8905 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl='-Wl,'
8909 # All Alpha code is PIC.
8910 lt_prog_compiler_static='-non_shared'
8913 case `$CC -V 2>&1 | sed 5q` in
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 lt_prog_compiler_wl='-Wl,'
8921 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_wl=''
8931 osf3* | osf4* | osf5*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # All OSF/1 code is PIC.
8934 lt_prog_compiler_static='-non_shared'
8938 lt_prog_compiler_static='-non_shared'
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8944 case $cc_basename in
8946 lt_prog_compiler_wl='-Qoption ld ';;
8948 lt_prog_compiler_wl='-Wl,';;
8953 lt_prog_compiler_wl='-Qoption ld '
8954 lt_prog_compiler_pic='-PIC'
8955 lt_prog_compiler_static='-Bstatic'
8958 sysv4 | sysv4.2uw2* | sysv4.3*)
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
8965 if test -d /usr/nec ;then
8966 lt_prog_compiler_pic='-Kconform_pic'
8967 lt_prog_compiler_static='-Bstatic'
8971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8972 lt_prog_compiler_wl='-Wl,'
8973 lt_prog_compiler_pic='-KPIC'
8974 lt_prog_compiler_static='-Bstatic'
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_can_build_shared=no
8983 lt_prog_compiler_pic='-pic'
8984 lt_prog_compiler_static='-Bstatic'
8988 lt_prog_compiler_can_build_shared=no
8993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8994 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8997 # Check to make sure the PIC flag actually works.
8999 if test -n "$lt_prog_compiler_pic"; then
9001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9003 if test "${lt_prog_compiler_pic_works+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 lt_prog_compiler_pic_works=no
9007 ac_outfile=conftest.$ac_objext
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 # The option is referenced via a variable to avoid confusing sed.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>conftest.err)
9022 cat conftest.err >&5
9023 echo "$as_me:__oline__: \$? = $ac_status" >&5
9024 if (exit $ac_status) && test -s "$ac_outfile"; then
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings other than the usual output.
9027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9030 lt_prog_compiler_pic_works=yes
9036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9037 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9039 if test x"$lt_prog_compiler_pic_works" = xyes; then
9040 case $lt_prog_compiler_pic in
9042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9045 lt_prog_compiler_pic=
9046 lt_prog_compiler_can_build_shared=no
9051 # For platforms which do not support PIC, -DPIC is meaningless:
9053 lt_prog_compiler_pic=
9056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9061 # Check to make sure the static flag actually works.
9063 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9066 if test "${lt_prog_compiler_static_works+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 lt_prog_compiler_static_works=no
9070 save_LDFLAGS="$LDFLAGS"
9071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9074 # The linker can only warn and ignore the option if not recognized
9075 # So say no if there are warnings
9076 if test -s conftest.err; then
9077 # Append any errors to the config.log.
9078 cat conftest.err 1>&5
9079 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081 if diff conftest.exp conftest.er2 >/dev/null; then
9082 lt_prog_compiler_static_works=yes
9085 lt_prog_compiler_static_works=yes
9089 LDFLAGS="$save_LDFLAGS"
9092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9093 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9095 if test x"$lt_prog_compiler_static_works" = xyes; then
9098 lt_prog_compiler_static=
9102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9104 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 lt_cv_prog_compiler_c_o=no
9108 $rm -r conftest 2>/dev/null
9112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114 lt_compiler_flag="-o out/conftest2.$ac_objext"
9115 # Insert the option either (1) after the last *FLAGS variable, or
9116 # (2) before a word containing "conftest.", or (3) at the end.
9117 # Note that $ac_compile itself does not contain backslashes and begins
9118 # with a dollar sign (not a hyphen), so the echo should work correctly.
9119 lt_compile=`echo "$ac_compile" | $SED \
9120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9122 -e 's:$: $lt_compiler_flag:'`
9123 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9124 (eval "$lt_compile" 2>out/conftest.err)
9126 cat out/conftest.err >&5
9127 echo "$as_me:__oline__: \$? = $ac_status" >&5
9128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9130 # The compiler can only warn and ignore the option if not recognized
9131 # So say no if there are warnings
9132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9135 lt_cv_prog_compiler_c_o=yes
9140 # SGI C++ compiler will create directory out/ii_files/ for
9141 # template instantiation
9142 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9143 $rm out/* && rmdir out
9149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9153 hard_links="nottested"
9154 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9155 # do not overwrite the value of need_locks provided by the user
9156 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9162 ln conftest.a conftest.b 2>&5 || hard_links=no
9163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9164 { echo "$as_me:$LINENO: result: $hard_links" >&5
9165 echo "${ECHO_T}$hard_links" >&6; }
9166 if test "$hard_links" = no; then
9167 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9179 allow_undefined_flag=
9180 enable_shared_with_static_runtimes=no
9182 archive_expsym_cmds=
9183 old_archive_From_new_cmds=
9184 old_archive_from_expsyms_cmds=
9185 export_dynamic_flag_spec=
9186 whole_archive_flag_spec=
9187 thread_safe_flag_spec=
9188 hardcode_libdir_flag_spec=
9189 hardcode_libdir_flag_spec_ld=
9190 hardcode_libdir_separator=
9193 hardcode_shlibpath_var=unsupported
9194 link_all_deplibs=unknown
9195 hardcode_automatic=no
9198 always_export_symbols=no
9199 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200 # include_expsyms should be a list of space-separated symbols to be *always*
9201 # included in the symbol list
9203 # exclude_expsyms can be an extended regexp of symbols to exclude
9204 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9205 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9206 # as well as any symbol that contains `d'.
9207 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9209 # platforms (ab)use it in PIC code, but their linkers get confused if
9210 # the symbol is explicitly referenced. Since portable code cannot
9211 # rely on this symbol name, it's probably fine to never include it in
9212 # preloaded symbol tables.
9213 extract_expsyms_cmds=
9214 # Just being paranoid about ensuring that cc_basename is set.
9215 for cc_temp in $compiler""; do
9217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9226 cygwin* | mingw* | pw32*)
9227 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9228 # When not using gcc, we currently assume that we are using
9229 # Microsoft Visual C++.
9230 if test "$GCC" != yes; then
9235 # we just hope/assume this is gcc and not c89 (= MSVC++)
9244 if test "$with_gnu_ld" = yes; then
9245 # If archive_cmds runs LD, not CC, wlarc should be empty
9248 # Set some defaults for GNU ld with shared library support. These
9249 # are reset later if shared libraries are not supported. Putting them
9250 # here allows them to be overridden if necessary.
9251 runpath_var=LD_RUN_PATH
9252 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9253 export_dynamic_flag_spec='${wl}--export-dynamic'
9254 # ancient GNU ld didn't support --whole-archive et. al.
9255 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9256 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9258 whole_archive_flag_spec=
9260 supports_anon_versioning=no
9261 case `$LD -v 2>/dev/null` in
9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9265 *\ 2.11.*) ;; # other 2.11 versions
9266 *) supports_anon_versioning=yes ;;
9269 # See if GNU ld supports shared libraries.
9271 aix3* | aix4* | aix5*)
9272 # On AIX/PPC, the GNU linker is very broken
9273 if test "$host_cpu" != ia64; then
9277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9278 *** to be unable to reliably create shared libraries on AIX.
9279 *** Therefore, libtool is disabling shared libraries support. If you
9280 *** really care for shared libraries, you may want to modify your PATH
9281 *** so that a non-GNU linker is found, and then restart.
9288 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)'
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_minus_L=yes
9292 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9293 # that the semantics of dynamic libraries on AmigaOS, at least up
9294 # to version 4, is to share data among multiple programs linked
9295 # with the same dynamic library. Since this doesn't match the
9296 # behavior of shared libraries on other platforms, we can't use
9302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9303 allow_undefined_flag=unsupported
9304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9305 # support --undefined. This deserves some investigation. FIXME
9306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 cygwin* | mingw* | pw32*)
9313 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9314 # as there is no search path for DLLs.
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 allow_undefined_flag=unsupported
9317 always_export_symbols=no
9318 enable_shared_with_static_runtimes=yes
9319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9321 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9323 # If the export-symbols file already is a .def file (1st line
9324 # is EXPORTS), use it as is; otherwise, prepend...
9325 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9326 cp $export_symbols $output_objdir/$soname.def;
9328 echo EXPORTS > $output_objdir/$soname.def;
9329 cat $export_symbols >> $output_objdir/$soname.def;
9331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9339 hardcode_shlibpath_var=no
9340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341 export_dynamic_flag_spec='${wl}-E'
9342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9343 # Instead, shared libraries are loaded at an image base (0x10000000 by
9344 # default) and relocated if they conflict, which is a slow very memory
9345 # consuming and fragmenting process. To avoid this, we pick a random,
9346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9349 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'
9352 gnu* | linux* | k*bsd*-gnu)
9353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9355 case $cc_basename,$host_cpu in
9356 pgcc*) # Portland Group C compiler
9357 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'
9358 tmp_addflag=' $pic_flag'
9360 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9363 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9364 tmp_addflag=' -i_dynamic' ;;
9365 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9366 tmp_addflag=' -i_dynamic -nofor_main' ;;
9367 ifc* | ifort*) # Intel Fortran compiler
9368 tmp_addflag=' -nofor_main' ;;
9370 case `$CC -V 2>&1 | sed 5q` in
9371 *Sun\ C*) # Sun C 5.9
9372 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'
9373 tmp_sharedflag='-G' ;;
9374 *Sun\ F*) # Sun Fortran 8.3
9375 tmp_sharedflag='-G' ;;
9377 tmp_sharedflag='-shared' ;;
9379 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 if test $supports_anon_versioning = yes; then
9382 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9384 $echo "local: *; };" >> $output_objdir/$libname.ver~
9385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9393 netbsd* | netbsdelf*-gnu)
9394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9404 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9409 *** create shared libraries on Solaris systems. Therefore, libtool
9410 *** is disabling shared libraries support. We urge you to upgrade GNU
9411 *** binutils to release 2.9.1 or newer. Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9416 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9425 case `$LD -v 2>&1` in
9426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9431 *** reliably create shared libraries on SCO systems. Therefore, libtool
9432 *** is disabling shared libraries support. We urge you to upgrade GNU
9433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9441 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9443 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9452 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_shlibpath_var=no
9459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468 if test "$ld_shlibs" = no; then
9470 hardcode_libdir_flag_spec=
9471 export_dynamic_flag_spec=
9472 whole_archive_flag_spec=
9475 # PORTME fill in a description of your system's linker (not GNU ld)
9478 allow_undefined_flag=unsupported
9479 always_export_symbols=yes
9480 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'
9481 # Note: this linker hardcodes the directories in LIBPATH if there
9482 # are no directories specified by -L.
9483 hardcode_minus_L=yes
9484 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9485 # Neither direct hardcoding nor static linking is supported with a
9487 hardcode_direct=unsupported
9492 if test "$host_cpu" = ia64; then
9493 # On IA64, the linker does run time linking by default, so we don't
9494 # have to do anything special.
9495 aix_use_runtimelinking=no
9496 exp_sym_flag='-Bexport'
9499 # If we're using GNU nm, then we don't want the "-C" option.
9500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9501 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9502 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'
9504 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'
9506 aix_use_runtimelinking=no
9508 # Test if we are trying to use run time linking or normal
9509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9510 # need to do runtime linking.
9511 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9512 for ld_flag in $LDFLAGS; do
9513 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9514 aix_use_runtimelinking=yes
9521 exp_sym_flag='-bexport'
9522 no_entry_flag='-bnoentry'
9525 # When large executables or shared objects are built, AIX ld can
9526 # have problems creating the table of contents. If linking a library
9527 # or program results in "error TOC overflow" add -mminimal-toc to
9528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9533 hardcode_libdir_separator=':'
9534 link_all_deplibs=yes
9536 if test "$GCC" = yes; then
9537 case $host_os in aix4.[012]|aix4.[012].*)
9538 # We only want to do this on AIX 4.2 and lower, the check
9539 # below for broken collect2 doesn't work under 4.3+
9540 collect2name=`${CC} -print-prog-name=collect2`
9541 if test -f "$collect2name" && \
9542 strings "$collect2name" | grep resolve_lib_name >/dev/null
9544 # We have reworked collect2
9547 # We have old collect2
9548 hardcode_direct=unsupported
9549 # It fails to find uninstalled libraries when the uninstalled
9550 # path is not listed in the libpath. Setting hardcode_minus_L
9551 # to unsupported forces relinking
9552 hardcode_minus_L=yes
9553 hardcode_libdir_flag_spec='-L$libdir'
9554 hardcode_libdir_separator=
9558 shared_flag='-shared'
9559 if test "$aix_use_runtimelinking" = yes; then
9560 shared_flag="$shared_flag "'${wl}-G'
9564 if test "$host_cpu" = ia64; then
9565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566 # chokes on -Wl,-G. The following line is correct:
9569 if test "$aix_use_runtimelinking" = yes; then
9570 shared_flag='${wl}-G'
9572 shared_flag='${wl}-bM:SRE'
9577 # It seems that -bexpall does not export symbols beginning with
9578 # underscore (_), so it is better to generate a list of symbols to export.
9579 always_export_symbols=yes
9580 if test "$aix_use_runtimelinking" = yes; then
9581 # Warning - without using the other runtime loading flags (-brtl),
9582 # -berok will link without error, but may produce a broken library.
9583 allow_undefined_flag='-berok'
9584 # Determine the default libpath from the value encoded in an empty executable.
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest$ac_exeext &&
9617 $as_test_x conftest$ac_exeext; then
9619 lt_aix_libpath_sed='
9620 /Import File Strings/,/^$/ {
9626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627 # Check for a 64-bit object if we didn't find anything.
9628 if test -z "$aix_libpath"; then
9629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9639 conftest$ac_exeext conftest.$ac_ext
9640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643 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"
9645 if test "$host_cpu" = ia64; then
9646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9647 allow_undefined_flag="-z nodefs"
9648 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"
9650 # Determine the default libpath from the value encoded in an empty executable.
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9685 lt_aix_libpath_sed='
9686 /Import File Strings/,/^$/ {
9692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9693 # Check for a 64-bit object if we didn't find anything.
9694 if test -z "$aix_libpath"; then
9695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705 conftest$ac_exeext conftest.$ac_ext
9706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9708 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9709 # Warning - without using the other run time loading flags,
9710 # -berok will link without error, but may produce a broken library.
9711 no_undefined_flag=' ${wl}-bernotok'
9712 allow_undefined_flag=' ${wl}-berok'
9713 # Exported symbols can be pulled into shared objects from archives
9714 whole_archive_flag_spec='$convenience'
9715 archive_cmds_need_lc=yes
9716 # This is similar to how AIX traditionally builds its shared libraries.
9717 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'
9723 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)'
9724 hardcode_libdir_flag_spec='-L$libdir'
9725 hardcode_minus_L=yes
9726 # see comment about different semantics on the GNU ld section
9731 export_dynamic_flag_spec=-rdynamic
9734 cygwin* | mingw* | pw32*)
9735 # When not using gcc, we currently assume that we are using
9736 # Microsoft Visual C++.
9737 # hardcode_libdir_flag_spec is actually meaningless, as there is
9738 # no search path for DLLs.
9739 hardcode_libdir_flag_spec=' '
9740 allow_undefined_flag=unsupported
9741 # Tell ltmain to make .lib files, not .a files.
9743 # Tell ltmain to make .dll files, not .so files.
9745 # FIXME: Setting linknames here is a bad hack.
9746 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9747 # The linker will automatically build a .lib file if we build a DLL.
9748 old_archive_From_new_cmds='true'
9749 # FIXME: Should let the user specify the lib program.
9750 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9751 fix_srcfile_path='`cygpath -w "$srcfile"`'
9752 enable_shared_with_static_runtimes=yes
9755 darwin* | rhapsody*)
9757 rhapsody* | darwin1.[012])
9758 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9761 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9764 case ${MACOSX_DEPLOYMENT_TARGET} in
9766 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9769 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9775 archive_cmds_need_lc=no
9777 hardcode_automatic=yes
9778 hardcode_shlibpath_var=unsupported
9779 whole_archive_flag_spec=''
9780 link_all_deplibs=yes
9781 if test "$GCC" = yes ; then
9782 output_verbose_link_cmd='echo'
9783 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9784 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9785 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9786 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}'
9787 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}'
9789 case $cc_basename in
9791 output_verbose_link_cmd='echo'
9792 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9793 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9795 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}'
9796 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}'
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_shlibpath_var=no
9815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9816 # support. Future versions do this automatically, but an explicit c++rt0.o
9817 # does not break anything, and helps significantly (at the cost of a little
9820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9821 hardcode_libdir_flag_spec='-R$libdir'
9823 hardcode_shlibpath_var=no
9826 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9830 hardcode_minus_L=yes
9831 hardcode_shlibpath_var=no
9834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9835 freebsd* | dragonfly*)
9836 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9837 hardcode_libdir_flag_spec='-R$libdir'
9839 hardcode_shlibpath_var=no
9843 if test "$GCC" = yes; then
9844 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'
9846 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'
9848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9849 hardcode_libdir_separator=:
9852 # hardcode_minus_L: Not really in the search PATH,
9853 # but as the default location of the library.
9854 hardcode_minus_L=yes
9855 export_dynamic_flag_spec='${wl}-E'
9859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9860 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9864 if test "$with_gnu_ld" = no; then
9865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9866 hardcode_libdir_separator=:
9869 export_dynamic_flag_spec='${wl}-E'
9871 # hardcode_minus_L: Not really in the search PATH,
9872 # but as the default location of the library.
9873 hardcode_minus_L=yes
9878 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9881 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 if test "$with_gnu_ld" = no; then
9904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9905 hardcode_libdir_separator=:
9909 hardcode_libdir_flag_spec_ld='+b $libdir'
9911 hardcode_shlibpath_var=no
9915 export_dynamic_flag_spec='${wl}-E'
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9925 irix5* | irix6* | nonstopux*)
9926 if test "$GCC" = yes; then
9927 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'
9929 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'
9930 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9933 hardcode_libdir_separator=:
9934 link_all_deplibs=yes
9937 netbsd* | netbsdelf*-gnu)
9938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9941 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9943 hardcode_libdir_flag_spec='-R$libdir'
9945 hardcode_shlibpath_var=no
9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952 hardcode_libdir_separator=:
9953 hardcode_shlibpath_var=no
9957 if test -f /usr/libexec/ld.so; then
9959 hardcode_shlibpath_var=no
9960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964 export_dynamic_flag_spec='${wl}-E'
9967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_libdir_flag_spec='-R$libdir'
9972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9983 hardcode_libdir_flag_spec='-L$libdir'
9984 hardcode_minus_L=yes
9985 allow_undefined_flag=unsupported
9986 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'
9987 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9991 if test "$GCC" = yes; then
9992 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9993 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'
9995 allow_undefined_flag=' -expect_unresolved \*'
9996 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'
9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999 hardcode_libdir_separator=:
10002 osf4* | osf5*) # as osf3* with the addition of -msym flag
10003 if test "$GCC" = yes; then
10004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10005 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'
10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10008 allow_undefined_flag=' -expect_unresolved \*'
10009 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'
10010 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10011 $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'
10013 # Both c and cxx compiler support -rpath directly
10014 hardcode_libdir_flag_spec='-rpath $libdir'
10016 hardcode_libdir_separator=:
10020 no_undefined_flag=' -z text'
10021 if test "$GCC" = yes; then
10023 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10025 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10028 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10030 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10032 hardcode_libdir_flag_spec='-R$libdir'
10033 hardcode_shlibpath_var=no
10035 solaris2.[0-5] | solaris2.[0-5].*) ;;
10037 # The compiler driver will combine and reorder linker options,
10038 # but understands `-z linker_flag'. GCC discards it without `$wl',
10039 # but is careful enough not to reorder.
10040 # Supported since Solaris 2.6 (maybe 2.5.1?)
10041 if test "$GCC" = yes; then
10042 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10044 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10048 link_all_deplibs=yes
10052 if test "x$host_vendor" = xsequent; then
10053 # Use $CC to link under sequent, because it throws in some extra .o
10054 # files that make .init and .fini sections work.
10055 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_direct=yes
10061 hardcode_minus_L=yes
10062 hardcode_shlibpath_var=no
10066 case $host_vendor in
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_direct=yes # is this really true???
10072 ## LD is ld it makes a PLAMLIB
10073 ## CC just makes a GrossModule.
10074 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10075 reload_cmds='$CC -r -o $output$reload_objs'
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10083 runpath_var='LD_RUN_PATH'
10084 hardcode_shlibpath_var=no
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_shlibpath_var=no
10090 export_dynamic_flag_spec='-Bexport'
10094 if test -d /usr/nec; then
10095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096 hardcode_shlibpath_var=no
10097 runpath_var=LD_RUN_PATH
10098 hardcode_runpath_var=yes
10103 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10104 no_undefined_flag='${wl}-z,text'
10105 archive_cmds_need_lc=no
10106 hardcode_shlibpath_var=no
10107 runpath_var='LD_RUN_PATH'
10109 if test "$GCC" = yes; then
10110 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 sysv5* | sco3.2v5* | sco5v6*)
10119 # Note: We can NOT use -z defs as we might desire, because we do not
10120 # link with -lc, and that would cause any symbols used from libc to
10121 # always be unresolved, which means just about no library would
10122 # ever link correctly. If we're not using GNU ld we use -z text
10123 # though, which does catch some bad symbols but isn't as heavy-handed
10125 no_undefined_flag='${wl}-z,text'
10126 allow_undefined_flag='${wl}-z,nodefs'
10127 archive_cmds_need_lc=no
10128 hardcode_shlibpath_var=no
10129 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10130 hardcode_libdir_separator=':'
10131 link_all_deplibs=yes
10132 export_dynamic_flag_spec='${wl}-Bexport'
10133 runpath_var='LD_RUN_PATH'
10135 if test "$GCC" = yes; then
10136 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 hardcode_shlibpath_var=no
10156 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10157 echo "${ECHO_T}$ld_shlibs" >&6; }
10158 test "$ld_shlibs" = no && can_build_shared=no
10161 # Do we need to explicitly link libc?
10163 case "x$archive_cmds_need_lc" in
10165 # Assume -lc should be added
10166 archive_cmds_need_lc=yes
10168 if test "$enable_shared" = yes && test "$GCC" = yes; then
10169 case $archive_cmds in
10171 # FIXME: we may have to deal with multi-command sequences.
10174 # Test whether the compiler implicitly links with -lc since on some
10175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10176 # to ld, don't add -lc before -lgcc.
10177 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10178 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } 2>conftest.err; then
10189 libobjs=conftest.$ac_objext
10191 wl=$lt_prog_compiler_wl
10192 pic_flag=$lt_prog_compiler_pic
10198 lt_save_allow_undefined_flag=$allow_undefined_flag
10199 allow_undefined_flag=
10200 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10201 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }
10206 archive_cmds_need_lc=no
10208 archive_cmds_need_lc=yes
10210 allow_undefined_flag=$lt_save_allow_undefined_flag
10212 cat conftest.err 1>&5
10215 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10216 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10223 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10224 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10225 library_names_spec=
10226 libname_spec='lib$name'
10230 postuninstall_cmds=
10234 shlibpath_overrides_runpath=unknown
10236 dynamic_linker="$host_os ld.so"
10237 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10239 if test "$GCC" = yes; then
10241 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10242 *) lt_awk_arg="/^libraries:/" ;;
10244 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10245 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10246 # if the path contains ";" then we assume it to be the separator
10247 # otherwise default to the standard path separator (i.e. ":") - it is
10248 # assumed that no part of a normal pathname contains ";" but that should
10249 # okay in the real world where ";" in dirpaths is itself problematic.
10250 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10252 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10254 # Ok, now we have the path, separated by spaces, we can step through it
10255 # and add multilib dir if necessary.
10256 lt_tmp_lt_search_path_spec=
10257 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10258 for lt_sys_path in $lt_search_path_spec; do
10259 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10260 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10262 test -d "$lt_sys_path" && \
10263 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10266 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10267 BEGIN {RS=" "; FS="/|\n";} {
10270 for (lt_i = NF; lt_i > 0; lt_i--) {
10271 if ($lt_i != "" && $lt_i != ".") {
10272 if ($lt_i == "..") {
10275 if (lt_count == 0) {
10276 lt_foo="/" $lt_i lt_foo;
10283 if (lt_foo != "") { lt_freq[lt_foo]++; }
10284 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10286 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10290 need_lib_prefix=unknown
10291 hardcode_into_libs=no
10293 # when you set need_version to no, make sure it does not cause -set_version
10294 # flags to be left without arguments
10295 need_version=unknown
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10301 shlibpath_var=LIBPATH
10303 # AIX 3 has no versioning support, so we append a major version to the name.
10304 soname_spec='${libname}${release}${shared_ext}$major'
10311 hardcode_into_libs=yes
10312 if test "$host_cpu" = ia64; then
10313 # AIX 5 supports IA64
10314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10317 # With GCC up to 2.95.x, collect2 would create an import file
10318 # for dependence libraries. The import file would start with
10319 # the line `#! .'. This would cause the generated library to
10320 # depend on `.', always an invalid library. This was fixed in
10321 # development snapshots of GCC prior to 3.0.
10323 aix4 | aix4.[01] | aix4.[01].*)
10324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10326 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10329 can_build_shared=no
10333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10334 # soname into executable. Probably we can add versioning support to
10335 # collect2, so additional links can be useful in future.
10336 if test "$aix_use_runtimelinking" = yes; then
10337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10338 # instead of lib<name>.a to let people know that these are not
10339 # typical AIX shared libraries.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 # We preserve .a as extension for shared libraries through AIX4.2
10343 # and later when we are not doing run time linking.
10344 library_names_spec='${libname}${release}.a $libname.a'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LIBPATH
10352 library_names_spec='$libname.ixlibrary $libname.a'
10353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10354 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'
10358 library_names_spec='${libname}${shared_ext}'
10359 dynamic_linker="$host_os ld.so"
10360 shlibpath_var=LIBRARY_PATH
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10372 # the default ld.so.conf also contains /usr/contrib/lib and
10373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10374 # libtool to hard-code these into programs
10377 cygwin* | mingw* | pw32*)
10378 version_type=windows
10383 case $GCC,$host_os in
10384 yes,cygwin* | yes,mingw* | yes,pw32*)
10385 library_names_spec='$libname.dll.a'
10386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10387 postinstall_cmds='base_file=`basename \${file}`~
10388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10389 dldir=$destdir/`dirname \$dlpath`~
10390 test -d \$dldir || mkdir -p \$dldir~
10391 $install_prog $dir/$dlname \$dldir/$dlname~
10392 chmod a+x \$dldir/$dlname'
10393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10394 dlpath=$dir/\$dldll~
10396 shlibpath_overrides_runpath=yes
10400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10405 # MinGW DLLs use traditional 'lib' prefix
10406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10409 # It is most probably a Windows format PATH printed by
10410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10411 # path with ; separators, and with drive letters. We can handle the
10412 # drive letters (cygwin fileutils understands them), so leave them,
10413 # especially as we might pass files found there to a mingw objdump,
10414 # which wouldn't understand a cygwinified path. Ahh.
10415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10421 # pw32 DLLs use 'pw' prefix rather than 'lib'
10422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10431 dynamic_linker='Win32 ld.exe'
10432 # FIXME: first we should search . and the directory the executable is in
10436 darwin* | rhapsody*)
10437 dynamic_linker="$host_os dyld"
10438 version_type=darwin
10441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10442 soname_spec='${libname}${release}${major}$shared_ext'
10443 shlibpath_overrides_runpath=yes
10444 shlibpath_var=DYLD_LIBRARY_PATH
10445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10464 freebsd* | dragonfly*)
10465 # DragonFly does not have aout. When/if they implement a new
10466 # versioning mechanism, adjust this.
10467 if test -x /usr/bin/objformat; then
10468 objformat=`/usr/bin/objformat`
10471 freebsd[123]*) objformat=aout ;;
10472 *) objformat=elf ;;
10475 version_type=freebsd-$objformat
10476 case $version_type in
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10487 shlibpath_var=LD_LIBRARY_PATH
10490 shlibpath_overrides_runpath=yes
10492 freebsd3.[01]* | freebsdelf3.[01]*)
10493 shlibpath_overrides_runpath=yes
10494 hardcode_into_libs=yes
10496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10498 shlibpath_overrides_runpath=no
10499 hardcode_into_libs=yes
10501 *) # from 4.6 on, and DragonFly
10502 shlibpath_overrides_runpath=yes
10503 hardcode_into_libs=yes
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 hardcode_into_libs=yes
10518 hpux9* | hpux10* | hpux11*)
10519 # Give a soname corresponding to the major version so that dld.sl refuses to
10520 # link against other versions.
10527 hardcode_into_libs=yes
10528 dynamic_linker="$host_os dld.so"
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 if test "X$HPUX_IA64_MODE" = X32; then
10534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10542 hardcode_into_libs=yes
10543 dynamic_linker="$host_os dld.sl"
10544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10553 dynamic_linker="$host_os dld.sl"
10554 shlibpath_var=SHLIB_PATH
10555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10561 postinstall_cmds='chmod 555 $lib'
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=no
10573 hardcode_into_libs=yes
10576 irix5* | irix6* | nonstopux*)
10578 nonstopux*) version_type=nonstopux ;;
10580 if test "$lt_cv_prog_gnu_ld" = yes; then
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10591 irix5* | nonstopux*)
10592 libsuff= shlibsuff=
10595 case $LD in # libtool.m4 will add one of these switches to LD
10596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10597 libsuff= shlibsuff= libmagic=32-bit;;
10598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10599 libsuff=32 shlibsuff=N32 libmagic=N32;;
10600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10602 *) libsuff= shlibsuff= libmagic=never-match;;
10606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10607 shlibpath_overrides_runpath=no
10608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10610 hardcode_into_libs=yes
10613 # No shared lib support for Linux oldld, aout, or coff.
10614 linux*oldld* | linux*aout* | linux*coff*)
10618 # This must be Linux ELF.
10619 linux* | k*bsd*-gnu)
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=no
10628 # This implies no fast_install, which is unacceptable.
10629 # Some rework will be needed to allow for fast_install
10630 # before this can be enabled.
10631 hardcode_into_libs=yes
10633 # Append ld.so.conf contents to the search path
10634 if test -f /etc/ld.so.conf; then
10635 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' ' '`
10636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10639 # We used to test for /lib/ld.so.1 and disable shared libraries on
10640 # powerpc, because MkLinux only supported shared libraries with the
10641 # GNU dynamic linker. Since this was broken with cross compilers,
10642 # most powerpc-linux boxes support dynamic linking these days and
10643 # people can always --disable-shared, the test was removed, and we
10644 # assume the GNU/Linux dynamic linker is in use.
10645 dynamic_linker='GNU/Linux ld.so'
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 dynamic_linker='NetBSD ld.elf_so'
10664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10667 dynamic_linker='NetBSD (a.out) ld.so'
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 dynamic_linker='NetBSD ld.elf_so'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes
10697 sys_lib_dlsearch_path_spec="/usr/lib"
10699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10702 *) need_version=no ;;
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10709 openbsd2.[89] | openbsd2.[89].*)
10710 shlibpath_overrides_runpath=no
10713 shlibpath_overrides_runpath=yes
10717 shlibpath_overrides_runpath=yes
10722 libname_spec='$name'
10725 library_names_spec='$libname${shared_ext} $libname.a'
10726 dynamic_linker='OS/2 ld.exe'
10727 shlibpath_var=LIBPATH
10730 osf3* | osf4* | osf5*)
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=yes
10753 hardcode_into_libs=yes
10754 # ldd complains unless libraries are executable
10755 postinstall_cmds='chmod +x $lib'
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes
10764 if test "$with_gnu_ld" = yes; then
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 case $host_vendor in
10777 shlibpath_overrides_runpath=no
10779 export_dynamic_flag_spec='${wl}-Blargedynsym'
10780 runpath_var=LD_RUN_PATH
10788 shlibpath_overrides_runpath=no
10789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10795 if test -d /usr/nec ;then
10797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10798 soname_spec='$libname${shared_ext}.$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10804 version_type=freebsd-elf
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 shlibpath_var=LD_LIBRARY_PATH
10810 hardcode_into_libs=yes
10811 if test "$with_gnu_ld" = yes; then
10812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10813 shlibpath_overrides_runpath=no
10815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10816 shlibpath_overrides_runpath=yes
10819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10823 sys_lib_dlsearch_path_spec='/usr/lib'
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 shlibpath_var=LD_LIBRARY_PATH
10837 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10838 echo "${ECHO_T}$dynamic_linker" >&6; }
10839 test "$dynamic_linker" = no && can_build_shared=no
10841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10842 if test "$GCC" = yes; then
10843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10846 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10847 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10849 if test -n "$hardcode_libdir_flag_spec" || \
10850 test -n "$runpath_var" || \
10851 test "X$hardcode_automatic" = "Xyes" ; then
10853 # We can hardcode non-existant directories.
10854 if test "$hardcode_direct" != no &&
10855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10856 # have to relink, otherwise we might link with an installed library
10857 # when we should be linking with a yet-to-be-installed one
10858 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10859 test "$hardcode_minus_L" != no; then
10860 # Linking always hardcodes the temporary library directory.
10861 hardcode_action=relink
10863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10864 hardcode_action=immediate
10867 # We cannot hardcode anything, or else we can only hardcode existing
10869 hardcode_action=unsupported
10871 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10872 echo "${ECHO_T}$hardcode_action" >&6; }
10874 if test "$hardcode_action" = relink; then
10875 # Fast installation is not supported
10876 enable_fast_install=no
10877 elif test "$shlibpath_overrides_runpath" = yes ||
10878 test "$enable_shared" = no; then
10879 # Fast installation is not necessary
10880 enable_fast_install=needless
10885 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10886 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10887 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10888 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10889 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10890 { echo "$as_me:$LINENO: result: yes" >&5
10891 echo "${ECHO_T}yes" >&6; }
10893 # FIXME - insert some real tests, host_os isn't really good enough
10896 if test -n "$STRIP" ; then
10897 striplib="$STRIP -x"
10898 old_striplib="$STRIP -S"
10899 { echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6; }
10902 { echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6; }
10907 { echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6; }
10913 if test "x$enable_dlopen" != xyes; then
10914 enable_dlopen=unknown
10915 enable_dlopen_self=unknown
10916 enable_dlopen_self_static=unknown
10923 lt_cv_dlopen="load_add_on"
10925 lt_cv_dlopen_self=yes
10929 lt_cv_dlopen="LoadLibrary"
10934 lt_cv_dlopen="dlopen"
10939 # if libdl is installed we need to link against it
10940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 ac_check_lib_save_LIBS=$LIBS
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_link") 2>conftest.er1
10978 grep -v '^ *+' conftest.er1 >conftest.err
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext &&
10986 $as_test_x conftest$ac_exeext; then
10987 ac_cv_lib_dl_dlopen=yes
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 ac_cv_lib_dl_dlopen=no
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11000 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11001 if test $ac_cv_lib_dl_dlopen = yes; then
11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11005 lt_cv_dlopen="dyld"
11007 lt_cv_dlopen_self=yes
11014 { echo "$as_me:$LINENO: checking for shl_load" >&5
11015 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11016 if test "${ac_cv_func_shl_load+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11027 #define shl_load innocuous_shl_load
11029 /* System header to define __stub macros and hopefully few prototypes,
11030 which can conflict with char shl_load (); below.
11031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032 <limits.h> exists even on freestanding compilers. */
11035 # include <limits.h>
11037 # include <assert.h>
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11049 /* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052 #if defined __stub_shl_load || defined __stub___shl_load
11059 return shl_load ();
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (ac_try="$ac_link"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_link") 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest$ac_exeext &&
11081 $as_test_x conftest$ac_exeext; then
11082 ac_cv_func_shl_load=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_func_shl_load=no
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11093 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11094 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11095 if test $ac_cv_func_shl_load = yes; then
11096 lt_cv_dlopen="shl_load"
11098 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11099 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11100 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 ac_check_lib_save_LIBS=$LIBS
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11122 return shl_load ();
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (ac_try="$ac_link"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_link") 2>conftest.er1
11136 grep -v '^ *+' conftest.er1 >conftest.err
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } && {
11141 test -z "$ac_c_werror_flag" ||
11142 test ! -s conftest.err
11143 } && test -s conftest$ac_exeext &&
11144 $as_test_x conftest$ac_exeext; then
11145 ac_cv_lib_dld_shl_load=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_lib_dld_shl_load=no
11153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11158 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11159 if test $ac_cv_lib_dld_shl_load = yes; then
11160 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11162 { echo "$as_me:$LINENO: checking for dlopen" >&5
11163 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11164 if test "${ac_cv_func_dlopen+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11175 #define dlopen innocuous_dlopen
11177 /* System header to define __stub macros and hopefully few prototypes,
11178 which can conflict with char dlopen (); below.
11179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11180 <limits.h> exists even on freestanding compilers. */
11183 # include <limits.h>
11185 # include <assert.h>
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11197 /* The GNU C library defines this for functions which it implements
11198 to always fail with ENOSYS. Some functions are actually named
11199 something starting with __ and the normal name is an alias. */
11200 #if defined __stub_dlopen || defined __stub___dlopen
11212 rm -f conftest.$ac_objext conftest$ac_exeext
11213 if { (ac_try="$ac_link"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_link") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest$ac_exeext &&
11229 $as_test_x conftest$ac_exeext; then
11230 ac_cv_func_dlopen=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_cv_func_dlopen=no
11238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11239 conftest$ac_exeext conftest.$ac_ext
11241 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11242 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11243 if test $ac_cv_func_dlopen = yes; then
11244 lt_cv_dlopen="dlopen"
11246 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11247 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 ac_check_lib_save_LIBS=$LIBS
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (ac_try="$ac_link"
11277 case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_link") 2>conftest.er1
11284 grep -v '^ *+' conftest.er1 >conftest.err
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && {
11289 test -z "$ac_c_werror_flag" ||
11290 test ! -s conftest.err
11291 } && test -s conftest$ac_exeext &&
11292 $as_test_x conftest$ac_exeext; then
11293 ac_cv_lib_dl_dlopen=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_cv_lib_dl_dlopen=no
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11306 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11307 if test $ac_cv_lib_dl_dlopen = yes; then
11308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11310 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11311 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11312 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-lsvld $LIBS"
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_link") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest$ac_exeext &&
11356 $as_test_x conftest$ac_exeext; then
11357 ac_cv_lib_svld_dlopen=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_cv_lib_svld_dlopen=no
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11369 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11370 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11371 if test $ac_cv_lib_svld_dlopen = yes; then
11372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11374 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11375 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11376 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 ac_check_lib_save_LIBS=$LIBS
11381 cat >conftest.$ac_ext <<_ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11398 return dld_link ();
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (ac_try="$ac_link"
11405 case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_link") 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } && {
11417 test -z "$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11419 } && test -s conftest$ac_exeext &&
11420 $as_test_x conftest$ac_exeext; then
11421 ac_cv_lib_dld_dld_link=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_lib_dld_dld_link=no
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430 conftest$ac_exeext conftest.$ac_ext
11431 LIBS=$ac_check_lib_save_LIBS
11433 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11434 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11435 if test $ac_cv_lib_dld_dld_link = yes; then
11436 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11457 if test "x$lt_cv_dlopen" != xno; then
11463 case $lt_cv_dlopen in
11465 save_CPPFLAGS="$CPPFLAGS"
11466 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11468 save_LDFLAGS="$LDFLAGS"
11469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11472 LIBS="$lt_cv_dlopen_libs $LIBS"
11474 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11475 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11476 if test "${lt_cv_dlopen_self+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 if test "$cross_compiling" = yes; then :
11480 lt_cv_dlopen_self=cross
11482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11483 lt_status=$lt_dlunknown
11484 cat > conftest.$ac_ext <<EOF
11485 #line __oline__ "configure"
11486 #include "confdefs.h"
11495 # define LT_DLGLOBAL RTLD_GLOBAL
11498 # define LT_DLGLOBAL DL_GLOBAL
11500 # define LT_DLGLOBAL 0
11504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11505 find out it does not work in some platform. */
11506 #ifndef LT_DLLAZY_OR_NOW
11508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11511 # define LT_DLLAZY_OR_NOW DL_LAZY
11514 # define LT_DLLAZY_OR_NOW RTLD_NOW
11517 # define LT_DLLAZY_OR_NOW DL_NOW
11519 # define LT_DLLAZY_OR_NOW 0
11527 extern "C" void exit (int);
11530 void fnord() { int i=42;}
11533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11534 int status = $lt_dlunknown;
11538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11539 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11540 /* dlclose (self); */
11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549 (eval $ac_link) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11553 (./conftest; exit; ) >&5 2>/dev/null
11555 case x$lt_status in
11556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11558 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11561 # compilation failed
11562 lt_cv_dlopen_self=no
11569 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11572 if test "x$lt_cv_dlopen_self" = xyes; then
11573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11574 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11576 if test "${lt_cv_dlopen_self_static+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 if test "$cross_compiling" = yes; then :
11580 lt_cv_dlopen_self_static=cross
11582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11583 lt_status=$lt_dlunknown
11584 cat > conftest.$ac_ext <<EOF
11585 #line __oline__ "configure"
11586 #include "confdefs.h"
11595 # define LT_DLGLOBAL RTLD_GLOBAL
11598 # define LT_DLGLOBAL DL_GLOBAL
11600 # define LT_DLGLOBAL 0
11604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11605 find out it does not work in some platform. */
11606 #ifndef LT_DLLAZY_OR_NOW
11608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11611 # define LT_DLLAZY_OR_NOW DL_LAZY
11614 # define LT_DLLAZY_OR_NOW RTLD_NOW
11617 # define LT_DLLAZY_OR_NOW DL_NOW
11619 # define LT_DLLAZY_OR_NOW 0
11627 extern "C" void exit (int);
11630 void fnord() { int i=42;}
11633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11634 int status = $lt_dlunknown;
11638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11640 /* dlclose (self); */
11648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649 (eval $ac_link) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11653 (./conftest; exit; ) >&5 2>/dev/null
11655 case x$lt_status in
11656 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11657 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11658 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11661 # compilation failed
11662 lt_cv_dlopen_self_static=no
11669 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11670 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11673 CPPFLAGS="$save_CPPFLAGS"
11674 LDFLAGS="$save_LDFLAGS"
11679 case $lt_cv_dlopen_self in
11680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11681 *) enable_dlopen_self=unknown ;;
11684 case $lt_cv_dlopen_self_static in
11685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11686 *) enable_dlopen_self_static=unknown ;;
11691 # Report which library types will actually be built
11692 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11694 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11695 echo "${ECHO_T}$can_build_shared" >&6; }
11697 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11699 test "$can_build_shared" = "no" && enable_shared=no
11701 # On AIX, shared libraries and static libraries use the same namespace, and
11702 # are all built from PIC.
11705 test "$enable_shared" = yes && enable_static=no
11706 if test -n "$RANLIB"; then
11707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11708 postinstall_cmds='$RANLIB $lib'
11713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11714 test "$enable_shared" = yes && enable_static=no
11718 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11719 echo "${ECHO_T}$enable_shared" >&6; }
11721 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11722 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11723 # Make sure either enable_shared or enable_static is yes.
11724 test "$enable_shared" = yes || enable_static=yes
11725 { echo "$as_me:$LINENO: result: $enable_static" >&5
11726 echo "${ECHO_T}$enable_static" >&6; }
11728 # The else clause should only fire when bootstrapping the
11729 # libtool distribution, otherwise you forgot to ship ltmain.sh
11730 # with your package, and you will get complaints that there are
11731 # no rules to generate ltmain.sh.
11732 if test -f "$ltmain"; then
11733 # See if we are running on zsh, and set the options which allow our commands through
11734 # without removal of \ escapes.
11735 if test -n "${ZSH_VERSION+set}" ; then
11736 setopt NO_GLOB_SUBST
11738 # Now quote all the things that may contain metacharacters while being
11739 # careful not to overquote the AC_SUBSTed values. We take copies of the
11740 # variables and quote the copies for generation of the libtool script.
11741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11745 deplibs_check_method reload_flag reload_cmds need_locks \
11746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11747 lt_cv_sys_global_symbol_to_c_name_address \
11748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11749 old_postinstall_cmds old_postuninstall_cmds \
11753 lt_prog_compiler_wl \
11754 lt_prog_compiler_pic \
11755 lt_prog_compiler_static \
11756 lt_prog_compiler_no_builtin_flag \
11757 export_dynamic_flag_spec \
11758 thread_safe_flag_spec \
11759 whole_archive_flag_spec \
11760 enable_shared_with_static_runtimes \
11762 old_archive_from_new_cmds \
11767 compiler_lib_search_path \
11769 archive_expsym_cmds \
11771 postuninstall_cmds \
11772 old_archive_from_expsyms_cmds \
11773 allow_undefined_flag \
11774 no_undefined_flag \
11775 export_symbols_cmds \
11776 hardcode_libdir_flag_spec \
11777 hardcode_libdir_flag_spec_ld \
11778 hardcode_libdir_separator \
11779 hardcode_automatic \
11781 module_expsym_cmds \
11782 lt_cv_prog_compiler_c_o \
11785 include_expsyms; do
11788 old_archive_cmds | \
11789 old_archive_from_new_cmds | \
11791 archive_expsym_cmds | \
11793 module_expsym_cmds | \
11794 old_archive_from_expsyms_cmds | \
11795 export_symbols_cmds | \
11796 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11797 postinstall_cmds | postuninstall_cmds | \
11798 old_postinstall_cmds | old_postuninstall_cmds | \
11799 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11800 # Double-quote double-evaled strings.
11801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11810 *'\$0 --fallback-echo"')
11811 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11815 cfgfile="${ofile}T"
11816 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11818 { echo "$as_me:$LINENO: creating $ofile" >&5
11819 echo "$as_me: creating $ofile" >&6;}
11821 cat <<__EOF__ >> "$cfgfile"
11824 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11825 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11829 # Free Software Foundation, Inc.
11831 # This file is part of GNU Libtool:
11832 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11834 # This program is free software; you can redistribute it and/or modify
11835 # it under the terms of the GNU General Public License as published by
11836 # the Free Software Foundation; either version 2 of the License, or
11837 # (at your option) any later version.
11839 # This program is distributed in the hope that it will be useful, but
11840 # WITHOUT ANY WARRANTY; without even the implied warranty of
11841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11842 # General Public License for more details.
11844 # You should have received a copy of the GNU General Public License
11845 # along with this program; if not, write to the Free Software
11846 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11848 # As a special exception to the GNU General Public License, if you
11849 # distribute this file as part of a program that contains a
11850 # configuration script generated by Autoconf, you may include it under
11851 # the same distribution terms that you use for the rest of that program.
11853 # A sed program that does not truncate output.
11856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11857 Xsed="$SED -e 1s/^X//"
11859 # The HP-UX ksh and POSIX shell print the target directory to stdout
11860 # if CDPATH is set.
11861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11863 # The names of the tagged configurations supported by this script.
11866 # ### BEGIN LIBTOOL CONFIG
11868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11870 # Shell to use when invoking shell scripts.
11873 # Whether or not to build shared libraries.
11874 build_libtool_libs=$enable_shared
11876 # Whether or not to build static libraries.
11877 build_old_libs=$enable_static
11879 # Whether or not to add -lc for building shared libraries.
11880 build_libtool_need_lc=$archive_cmds_need_lc
11882 # Whether or not to disallow shared libs when runtime libs are static
11883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11885 # Whether or not to optimize for fast installation.
11886 fast_install=$enable_fast_install
11889 host_alias=$host_alias
11893 # The build system.
11894 build_alias=$build_alias
11898 # An echo program that does not interpret backslashes.
11903 AR_FLAGS=$lt_AR_FLAGS
11908 # LTCC compiler flags.
11909 LTCFLAGS=$lt_LTCFLAGS
11911 # A language-specific compiler.
11914 # Is the compiler the GNU C compiler?
11920 # The linker used to build libraries.
11923 # Whether we need hard or soft links.
11926 # A BSD-compatible nm program.
11929 # A symbol stripping program
11932 # Used to examine libraries when file_magic_cmd begins "file"
11933 MAGIC_CMD=$MAGIC_CMD
11935 # Used on cygwin: DLL creation program.
11938 # Used on cygwin: object dumper.
11941 # Used on cygwin: assembler.
11944 # The name of the directory that contains temporary libtool files.
11947 # How to create reloadable object files.
11948 reload_flag=$lt_reload_flag
11949 reload_cmds=$lt_reload_cmds
11951 # How to pass a linker flag through the compiler.
11952 wl=$lt_lt_prog_compiler_wl
11954 # Object file suffix (normally "o").
11955 objext="$ac_objext"
11957 # Old archive suffix (normally "a").
11960 # Shared library suffix (normally ".so").
11961 shrext_cmds='$shrext_cmds'
11963 # Executable file suffix (normally "").
11966 # Additional compiler flags for building library objects.
11967 pic_flag=$lt_lt_prog_compiler_pic
11970 # What is the maximum length of a command?
11971 max_cmd_len=$lt_cv_sys_max_cmd_len
11973 # Does compiler simultaneously support -c and -o options?
11974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11976 # Must we lock files when doing compilation?
11977 need_locks=$lt_need_locks
11979 # Do we need the lib prefix for modules?
11980 need_lib_prefix=$need_lib_prefix
11982 # Do we need a version for libraries?
11983 need_version=$need_version
11985 # Whether dlopen is supported.
11986 dlopen_support=$enable_dlopen
11988 # Whether dlopen of programs is supported.
11989 dlopen_self=$enable_dlopen_self
11991 # Whether dlopen of statically linked programs is supported.
11992 dlopen_self_static=$enable_dlopen_self_static
11994 # Compiler flag to prevent dynamic linking.
11995 link_static_flag=$lt_lt_prog_compiler_static
11997 # Compiler flag to turn off builtin functions.
11998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12000 # Compiler flag to allow reflexive dlopens.
12001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12003 # Compiler flag to generate shared objects directly from archives.
12004 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12006 # Compiler flag to generate thread-safe objects.
12007 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12009 # Library versioning type.
12010 version_type=$version_type
12012 # Format of library name prefix.
12013 libname_spec=$lt_libname_spec
12015 # List of archive names. First name is the real one, the rest are links.
12016 # The last name is the one that the linker finds with -lNAME.
12017 library_names_spec=$lt_library_names_spec
12019 # The coded name of the library, if different from the real name.
12020 soname_spec=$lt_soname_spec
12022 # Commands used to build and install an old-style archive.
12024 old_archive_cmds=$lt_old_archive_cmds
12025 old_postinstall_cmds=$lt_old_postinstall_cmds
12026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12028 # Create an old-style archive from a shared archive.
12029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12031 # Create a temporary old-style archive to link instead of a shared archive.
12032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12034 # Commands used to build and install a shared archive.
12035 archive_cmds=$lt_archive_cmds
12036 archive_expsym_cmds=$lt_archive_expsym_cmds
12037 postinstall_cmds=$lt_postinstall_cmds
12038 postuninstall_cmds=$lt_postuninstall_cmds
12040 # Commands used to build a loadable module (assumed same as above if empty)
12041 module_cmds=$lt_module_cmds
12042 module_expsym_cmds=$lt_module_expsym_cmds
12044 # Commands to strip libraries.
12045 old_striplib=$lt_old_striplib
12046 striplib=$lt_striplib
12048 # Dependencies to place before the objects being linked to create a
12050 predep_objects=$lt_predep_objects
12052 # Dependencies to place after the objects being linked to create a
12054 postdep_objects=$lt_postdep_objects
12056 # Dependencies to place before the objects being linked to create a
12058 predeps=$lt_predeps
12060 # Dependencies to place after the objects being linked to create a
12062 postdeps=$lt_postdeps
12064 # The library search path used internally by the compiler when linking
12065 # a shared library.
12066 compiler_lib_search_path=$lt_compiler_lib_search_path
12068 # Method to check whether dependent libraries are shared objects.
12069 deplibs_check_method=$lt_deplibs_check_method
12071 # Command to use when deplibs_check_method == file_magic.
12072 file_magic_cmd=$lt_file_magic_cmd
12074 # Flag that allows shared libraries with undefined symbols to be built.
12075 allow_undefined_flag=$lt_allow_undefined_flag
12077 # Flag that forces no undefined symbols.
12078 no_undefined_flag=$lt_no_undefined_flag
12080 # Commands used to finish a libtool library installation in a directory.
12081 finish_cmds=$lt_finish_cmds
12083 # Same as above, but a single script fragment to be evaled but not shown.
12084 finish_eval=$lt_finish_eval
12086 # Take the output of nm and produce a listing of raw symbols and C names.
12087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12089 # Transform the output of nm in a proper C declaration
12090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12092 # Transform the output of nm in a C name address pair
12093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12095 # This is the shared library runtime path variable.
12096 runpath_var=$runpath_var
12098 # This is the shared library path variable.
12099 shlibpath_var=$shlibpath_var
12101 # Is shlibpath searched before the hard-coded library search path?
12102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12104 # How to hardcode a shared library path into an executable.
12105 hardcode_action=$hardcode_action
12107 # Whether we should hardcode library paths into libraries.
12108 hardcode_into_libs=$hardcode_into_libs
12110 # Flag to hardcode \$libdir into a binary during linking.
12111 # This must work even if \$libdir does not exist.
12112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12114 # If ld is used when linking, flag to hardcode \$libdir into
12115 # a binary during linking. This must work even if \$libdir does
12117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12119 # Whether we need a single -rpath flag with a separated argument.
12120 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12123 # resulting binary.
12124 hardcode_direct=$hardcode_direct
12126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12127 # resulting binary.
12128 hardcode_minus_L=$hardcode_minus_L
12130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12131 # the resulting binary.
12132 hardcode_shlibpath_var=$hardcode_shlibpath_var
12134 # Set to yes if building a shared library automatically hardcodes DIR into the library
12135 # and all subsequent libraries and executables linked against it.
12136 hardcode_automatic=$hardcode_automatic
12138 # Variables whose values should be saved in libtool wrapper scripts and
12139 # restored at relink time.
12140 variables_saved_for_relink="$variables_saved_for_relink"
12142 # Whether libtool must link a program against all its dependency libraries.
12143 link_all_deplibs=$link_all_deplibs
12145 # Compile-time system search path for libraries
12146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12148 # Run-time system search path for libraries
12149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12151 # Fix the shell variable \$srcfile for the compiler.
12152 fix_srcfile_path=$lt_fix_srcfile_path
12154 # Set to yes if exported symbols are required.
12155 always_export_symbols=$always_export_symbols
12157 # The commands to list exported symbols.
12158 export_symbols_cmds=$lt_export_symbols_cmds
12160 # The commands to extract the exported symbol list from a shared archive.
12161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12163 # Symbols that should not be listed in the preloaded symbols.
12164 exclude_expsyms=$lt_exclude_expsyms
12166 # Symbols that must always be exported.
12167 include_expsyms=$lt_include_expsyms
12169 # ### END LIBTOOL CONFIG
12176 cat <<\EOF >> "$cfgfile"
12178 # AIX sometimes has problems with the GCC collect2 program. For some
12179 # reason, if we set the COLLECT_NAMES environment variable, the problems
12180 # vanish in a puff of smoke.
12181 if test "X${COLLECT_NAMES+set}" != Xset; then
12183 export COLLECT_NAMES
12189 # We use sed instead of cat because bash on DJGPP gets confused if
12190 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12191 # text mode, it properly converts lines to CR/LF. This bash problem
12192 # is reportedly fixed, but why not run on old versions too?
12193 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12195 mv -f "$cfgfile" "$ofile" || \
12196 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12200 # If there is no Makefile yet, we rely on a make rule to execute
12201 # `config.status --recheck' to rerun these tests and create the
12202 # libtool script then.
12203 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12204 if test -f "$ltmain_in"; then
12205 test -f Makefile && make "$ltmain"
12211 ac_cpp='$CPP $CPPFLAGS'
12212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219 # Check whether --with-tags was given.
12220 if test "${with_tags+set}" = set; then
12221 withval=$with_tags; tagnames="$withval"
12225 if test -f "$ltmain" && test -n "$tagnames"; then
12226 if test ! -f "${ofile}"; then
12227 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12228 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12231 if test -z "$LTCC"; then
12232 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12233 if test -z "$LTCC"; then
12234 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12235 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12238 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12241 if test -z "$LTCFLAGS"; then
12242 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12245 # Extract list of available tagged configurations in $ofile.
12246 # Note that this assumes the entire list is on one line.
12247 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12250 for tagname in $tagnames; do
12252 # Check whether tagname contains only valid characters
12253 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12255 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12256 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12257 { (exit 1); exit 1; }; }
12261 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12263 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12264 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12265 { (exit 1); exit 1; }; }
12268 # Update the list of available tags.
12269 if test -n "$tagname"; then
12270 echo appending configuration tag \"$tagname\" to $ofile
12274 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12275 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12276 (test "X$CXX" != "Xg++"))) ; then
12278 ac_cpp='$CXXCPP $CPPFLAGS'
12279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12286 archive_cmds_need_lc_CXX=no
12287 allow_undefined_flag_CXX=
12288 always_export_symbols_CXX=no
12289 archive_expsym_cmds_CXX=
12290 export_dynamic_flag_spec_CXX=
12291 hardcode_direct_CXX=no
12292 hardcode_libdir_flag_spec_CXX=
12293 hardcode_libdir_flag_spec_ld_CXX=
12294 hardcode_libdir_separator_CXX=
12295 hardcode_minus_L_CXX=no
12296 hardcode_shlibpath_var_CXX=unsupported
12297 hardcode_automatic_CXX=no
12299 module_expsym_cmds_CXX=
12300 link_all_deplibs_CXX=unknown
12301 old_archive_cmds_CXX=$old_archive_cmds
12302 no_undefined_flag_CXX=
12303 whole_archive_flag_spec_CXX=
12304 enable_shared_with_static_runtimes_CXX=no
12306 # Dependencies to place before and after the object being linked:
12307 predep_objects_CXX=
12308 postdep_objects_CXX=
12311 compiler_lib_search_path_CXX=
12313 # Source file extension for C++ test sources.
12316 # Object file extension for compiled C++ test sources.
12320 # Code to be used in simple compile tests
12321 lt_simple_compile_test_code="int some_variable = 0;"
12323 # Code to be used in simple link tests
12324 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12328 # If no C compiler was specified, use CC.
12331 # If no C compiler flags were specified, use CFLAGS.
12332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12334 # Allow CC to be a program name with arguments.
12338 # save warnings/boilerplate of simple test code
12339 ac_outfile=conftest.$ac_objext
12340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12342 _lt_compiler_boilerplate=`cat conftest.err`
12345 ac_outfile=conftest.$ac_objext
12346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12348 _lt_linker_boilerplate=`cat conftest.err`
12352 # Allow CC to be a program name with arguments.
12357 lt_save_with_gnu_ld=$with_gnu_ld
12358 lt_save_path_LD=$lt_cv_path_LD
12359 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12360 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12362 $as_unset lt_cv_prog_gnu_ld
12364 if test -n "${lt_cv_path_LDCXX+set}"; then
12365 lt_cv_path_LD=$lt_cv_path_LDCXX
12367 $as_unset lt_cv_path_LD
12369 test -z "${LDCXX+set}" || LD=$LDCXX
12373 for cc_temp in $compiler""; do
12375 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12376 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12381 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12384 # We don't want -fno-exception wen compiling C++ code, so set the
12385 # no_builtin_flag separately
12386 if test "$GXX" = yes; then
12387 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12389 lt_prog_compiler_no_builtin_flag_CXX=
12392 if test "$GXX" = yes; then
12393 # Set up default GNU C++ configuration
12396 # Check whether --with-gnu-ld was given.
12397 if test "${with_gnu_ld+set}" = set; then
12398 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12404 if test "$GCC" = yes; then
12405 # Check if gcc -print-prog-name=ld gives a path.
12406 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12407 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12410 # gcc leaves a trailing carriage return which upsets mingw
12411 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12413 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12416 # Accept absolute paths.
12418 re_direlt='/[^/][^/]*/\.\./'
12419 # Canonicalize the pathname of ld
12420 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12421 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12422 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12424 test -z "$LD" && LD="$ac_prog"
12427 # If it fails, then pretend we aren't using GCC.
12431 # If it is relative, then search for the first ld in PATH.
12432 with_gnu_ld=unknown
12435 elif test "$with_gnu_ld" = yes; then
12436 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12437 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12439 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12440 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12442 if test "${lt_cv_path_LD+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 if test -z "$LD"; then
12446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12447 for ac_dir in $PATH; do
12449 test -z "$ac_dir" && ac_dir=.
12450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12451 lt_cv_path_LD="$ac_dir/$ac_prog"
12452 # Check to see if the program is GNU ld. I'd rather use --version,
12453 # but apparently some variants of GNU ld only accept -v.
12454 # Break only if it was the GNU/non-GNU ld that we prefer.
12455 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12456 *GNU* | *'with BFD'*)
12457 test "$with_gnu_ld" != no && break
12460 test "$with_gnu_ld" != yes && break
12467 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12471 LD="$lt_cv_path_LD"
12472 if test -n "$LD"; then
12473 { echo "$as_me:$LINENO: result: $LD" >&5
12474 echo "${ECHO_T}$LD" >&6; }
12476 { echo "$as_me:$LINENO: result: no" >&5
12477 echo "${ECHO_T}no" >&6; }
12479 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12480 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12481 { (exit 1); exit 1; }; }
12482 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12483 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12484 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12488 case `$LD -v 2>&1 </dev/null` in
12489 *GNU* | *'with BFD'*)
12490 lt_cv_prog_gnu_ld=yes
12493 lt_cv_prog_gnu_ld=no
12497 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12498 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12499 with_gnu_ld=$lt_cv_prog_gnu_ld
12503 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12504 # archiving commands below assume that GNU ld is being used.
12505 if test "$with_gnu_ld" = yes; then
12506 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507 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'
12509 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12512 # If archive_cmds runs LD, not CC, wlarc should be empty
12513 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12514 # investigate it a little bit more. (MM)
12517 # ancient GNU ld didn't support --whole-archive et. al.
12518 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12519 grep 'no-whole-archive' > /dev/null; then
12520 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12522 whole_archive_flag_spec_CXX=
12528 # A generic and very simple default shared library creation
12529 # command for GNU C++ for the case where it uses the native
12530 # linker, instead of GNU ld. If possible, this setting should
12531 # overridden to take advantage of the native linker features on
12532 # the platform it is being used on.
12533 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12536 # Commands to make compiler produce verbose output that lists
12537 # what "hidden" libraries, object files and flags are used when
12538 # linking a shared library.
12539 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12547 # PORTME: fill in a description of your system's C++ link characteristics
12548 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12553 # FIXME: insert proper C++ library support
12557 if test "$host_cpu" = ia64; then
12558 # On IA64, the linker does run time linking by default, so we don't
12559 # have to do anything special.
12560 aix_use_runtimelinking=no
12561 exp_sym_flag='-Bexport'
12564 aix_use_runtimelinking=no
12566 # Test if we are trying to use run time linking or normal
12567 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12568 # need to do runtime linking.
12569 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12570 for ld_flag in $LDFLAGS; do
12573 aix_use_runtimelinking=yes
12581 exp_sym_flag='-bexport'
12582 no_entry_flag='-bnoentry'
12585 # When large executables or shared objects are built, AIX ld can
12586 # have problems creating the table of contents. If linking a library
12587 # or program results in "error TOC overflow" add -mminimal-toc to
12588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12591 archive_cmds_CXX=''
12592 hardcode_direct_CXX=yes
12593 hardcode_libdir_separator_CXX=':'
12594 link_all_deplibs_CXX=yes
12596 if test "$GXX" = yes; then
12597 case $host_os in aix4.[012]|aix4.[012].*)
12598 # We only want to do this on AIX 4.2 and lower, the check
12599 # below for broken collect2 doesn't work under 4.3+
12600 collect2name=`${CC} -print-prog-name=collect2`
12601 if test -f "$collect2name" && \
12602 strings "$collect2name" | grep resolve_lib_name >/dev/null
12604 # We have reworked collect2
12607 # We have old collect2
12608 hardcode_direct_CXX=unsupported
12609 # It fails to find uninstalled libraries when the uninstalled
12610 # path is not listed in the libpath. Setting hardcode_minus_L
12611 # to unsupported forces relinking
12612 hardcode_minus_L_CXX=yes
12613 hardcode_libdir_flag_spec_CXX='-L$libdir'
12614 hardcode_libdir_separator_CXX=
12618 shared_flag='-shared'
12619 if test "$aix_use_runtimelinking" = yes; then
12620 shared_flag="$shared_flag "'${wl}-G'
12624 if test "$host_cpu" = ia64; then
12625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12626 # chokes on -Wl,-G. The following line is correct:
12629 if test "$aix_use_runtimelinking" = yes; then
12630 shared_flag='${wl}-G'
12632 shared_flag='${wl}-bM:SRE'
12637 # It seems that -bexpall does not export symbols beginning with
12638 # underscore (_), so it is better to generate a list of symbols to export.
12639 always_export_symbols_CXX=yes
12640 if test "$aix_use_runtimelinking" = yes; then
12641 # Warning - without using the other runtime loading flags (-brtl),
12642 # -berok will link without error, but may produce a broken library.
12643 allow_undefined_flag_CXX='-berok'
12644 # Determine the default libpath from the value encoded in an empty executable.
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (ac_try="$ac_link"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_link") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && {
12674 test -z "$ac_cxx_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest$ac_exeext &&
12677 $as_test_x conftest$ac_exeext; then
12679 lt_aix_libpath_sed='
12680 /Import File Strings/,/^$/ {
12686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12687 # Check for a 64-bit object if we didn't find anything.
12688 if test -z "$aix_libpath"; then
12689 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12699 conftest$ac_exeext conftest.$ac_ext
12700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12702 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12704 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"
12706 if test "$host_cpu" = ia64; then
12707 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12708 allow_undefined_flag_CXX="-z nodefs"
12709 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"
12711 # Determine the default libpath from the value encoded in an empty executable.
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12736 grep -v '^ *+' conftest.er1 >conftest.err
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_cxx_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest$ac_exeext &&
12744 $as_test_x conftest$ac_exeext; then
12746 lt_aix_libpath_sed='
12747 /Import File Strings/,/^$/ {
12753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12754 # Check for a 64-bit object if we didn't find anything.
12755 if test -z "$aix_libpath"; then
12756 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766 conftest$ac_exeext conftest.$ac_ext
12767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12769 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12770 # Warning - without using the other run time loading flags,
12771 # -berok will link without error, but may produce a broken library.
12772 no_undefined_flag_CXX=' ${wl}-bernotok'
12773 allow_undefined_flag_CXX=' ${wl}-berok'
12774 # Exported symbols can be pulled into shared objects from archives
12775 whole_archive_flag_spec_CXX='$convenience'
12776 archive_cmds_need_lc_CXX=yes
12777 # This is similar to how AIX traditionally builds its shared libraries.
12778 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'
12784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12785 allow_undefined_flag_CXX=unsupported
12786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12787 # support --undefined. This deserves some investigation. FIXME
12788 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 case $cc_basename in
12797 # FIXME: insert proper C++ library support
12803 cygwin* | mingw* | pw32*)
12804 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12805 # as there is no search path for DLLs.
12806 hardcode_libdir_flag_spec_CXX='-L$libdir'
12807 allow_undefined_flag_CXX=unsupported
12808 always_export_symbols_CXX=no
12809 enable_shared_with_static_runtimes_CXX=yes
12811 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12812 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'
12813 # If the export-symbols file already is a .def file (1st line
12814 # is EXPORTS), use it as is; otherwise, prepend...
12815 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12816 cp $export_symbols $output_objdir/$soname.def;
12818 echo EXPORTS > $output_objdir/$soname.def;
12819 cat $export_symbols >> $output_objdir/$soname.def;
12821 $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'
12826 darwin* | rhapsody*)
12828 rhapsody* | darwin1.[012])
12829 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12832 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12833 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12835 case ${MACOSX_DEPLOYMENT_TARGET} in
12837 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12840 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12846 archive_cmds_need_lc_CXX=no
12847 hardcode_direct_CXX=no
12848 hardcode_automatic_CXX=yes
12849 hardcode_shlibpath_var_CXX=unsupported
12850 whole_archive_flag_spec_CXX=''
12851 link_all_deplibs_CXX=yes
12853 if test "$GXX" = yes ; then
12854 lt_int_apple_cc_single_mod=no
12855 output_verbose_link_cmd='echo'
12856 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12857 lt_int_apple_cc_single_mod=yes
12859 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12860 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12862 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'
12864 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12867 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}'
12869 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}'
12871 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}'
12873 case $cc_basename in
12875 output_verbose_link_cmd='echo'
12876 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'
12877 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12879 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}'
12880 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}'
12890 case $cc_basename in
12892 # FIXME: insert proper C++ library support
12896 # Green Hills C++ Compiler
12897 # FIXME: insert proper C++ library support
12901 # FIXME: insert proper C++ library support
12907 # C++ shared libraries reported to be fairly broken before switch to ELF
12911 archive_cmds_need_lc_CXX=no
12913 freebsd* | dragonfly*)
12914 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12921 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12922 hardcode_libdir_separator_CXX=:
12923 export_dynamic_flag_spec_CXX='${wl}-E'
12924 hardcode_direct_CXX=yes
12925 hardcode_minus_L_CXX=yes # Not in the search PATH,
12926 # but as the default
12927 # location of the library.
12929 case $cc_basename in
12931 # FIXME: insert proper C++ library support
12935 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'
12936 # Commands to make compiler produce verbose output that lists
12937 # what "hidden" libraries, object files and flags are used when
12938 # linking a shared library.
12940 # There doesn't appear to be a way to prevent this compiler from
12941 # explicitly linking system object files so we need to strip them
12942 # from the output so that they don't get included in the library
12944 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'
12947 if test "$GXX" = yes; then
12948 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'
12950 # FIXME: insert proper C++ library support
12957 if test $with_gnu_ld = no; then
12958 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12959 hardcode_libdir_separator_CXX=:
12964 export_dynamic_flag_spec_CXX='${wl}-E'
12970 hardcode_direct_CXX=no
12971 hardcode_shlibpath_var_CXX=no
12974 hardcode_direct_CXX=yes
12975 hardcode_minus_L_CXX=yes # Not in the search PATH,
12976 # but as the default
12977 # location of the library.
12981 case $cc_basename in
12983 # FIXME: insert proper C++ library support
12989 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998 # Commands to make compiler produce verbose output that lists
12999 # what "hidden" libraries, object files and flags are used when
13000 # linking a shared library.
13002 # There doesn't appear to be a way to prevent this compiler from
13003 # explicitly linking system object files so we need to strip them
13004 # from the output so that they don't get included in the library
13006 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'
13009 if test "$GXX" = yes; then
13010 if test $with_gnu_ld = no; then
13013 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13016 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13019 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'
13024 # FIXME: insert proper C++ library support
13031 hardcode_direct_CXX=no
13032 hardcode_shlibpath_var_CXX=no
13033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13034 export_dynamic_flag_spec_CXX='${wl}-E'
13035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13036 # Instead, shared libraries are loaded at an image base (0x10000000 by
13037 # default) and relocated if they conflict, which is a slow very memory
13038 # consuming and fragmenting process. To avoid this, we pick a random,
13039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13041 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'
13042 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'
13045 case $cc_basename in
13048 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'
13050 # Archives containing C++ object files must be created using
13051 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13052 # necessary to make sure instantiated templates are included
13054 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13057 if test "$GXX" = yes; then
13058 if test "$with_gnu_ld" = no; then
13059 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'
13061 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'
13064 link_all_deplibs_CXX=yes
13067 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13068 hardcode_libdir_separator_CXX=:
13070 linux* | k*bsd*-gnu)
13071 case $cc_basename in
13073 # Kuck and Associates, Inc. (KAI) C++ Compiler
13075 # KCC will only create a shared library if the output file
13076 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13077 # to its proper name (with version) after linking.
13078 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'
13079 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'
13080 # Commands to make compiler produce verbose output that lists
13081 # what "hidden" libraries, object files and flags are used when
13082 # linking a shared library.
13084 # There doesn't appear to be a way to prevent this compiler from
13085 # explicitly linking system object files so we need to strip them
13086 # from the output so that they don't get included in the library
13088 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'
13090 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093 # Archives containing C++ object files must be created using
13094 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13095 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13100 # version 8.0 and above of icpc choke on multiply defined symbols
13101 # if we add $predep_objects and $postdep_objects, however 7.1 and
13102 # earlier do not add the objects themselves.
13103 case `$CC -V 2>&1` in
13105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13106 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'
13108 *) # Version 8.0 or newer
13111 ia64*) tmp_idyn=' -i_dynamic';;
13113 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114 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'
13117 archive_cmds_need_lc_CXX=no
13118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13120 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13123 # Portland Group C++ compiler
13124 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13125 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'
13127 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13129 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'
13133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 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'
13136 runpath_var=LD_RUN_PATH
13137 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13138 hardcode_libdir_separator_CXX=:
13140 # Commands to make compiler produce verbose output that lists
13141 # what "hidden" libraries, object files and flags are used when
13142 # linking a shared library.
13144 # There doesn't appear to be a way to prevent this compiler from
13145 # explicitly linking system object files so we need to strip them
13146 # from the output so that they don't get included in the library
13148 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'
13151 case `$CC -V 2>&1 | sed 5q` in
13154 no_undefined_flag_CXX=' -zdefs'
13155 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13156 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'
13157 hardcode_libdir_flag_spec_CXX='-R$libdir'
13158 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'
13160 # Not sure whether something based on
13161 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13163 output_verbose_link_cmd='echo'
13165 # Archives containing C++ object files must be created using
13166 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13167 # necessary to make sure instantiated templates are included
13169 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13176 # FIXME: insert proper C++ library support
13180 # FIXME: insert proper C++ library support
13184 case $cc_basename in
13186 # FIXME: insert proper C++ library support
13190 # FIXME: insert proper C++ library support
13195 netbsd* | netbsdelf*-gnu)
13196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13197 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13199 hardcode_libdir_flag_spec_CXX='-R$libdir'
13200 hardcode_direct_CXX=yes
13201 hardcode_shlibpath_var_CXX=no
13203 # Workaround some broken pre-1.5 toolchains
13204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13207 # C++ shared libraries are fairly broken
13211 if test -f /usr/libexec/ld.so; then
13212 hardcode_direct_CXX=yes
13213 hardcode_shlibpath_var_CXX=no
13214 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13217 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13218 export_dynamic_flag_spec_CXX='${wl}-E'
13219 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13221 output_verbose_link_cmd='echo'
13227 case $cc_basename in
13229 # Kuck and Associates, Inc. (KAI) C++ Compiler
13231 # KCC will only create a shared library if the output file
13232 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13233 # to its proper name (with version) after linking.
13234 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'
13236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13237 hardcode_libdir_separator_CXX=:
13239 # Archives containing C++ object files must be created using
13240 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13241 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13245 # Rational C++ 2.4.1
13246 # FIXME: insert proper C++ library support
13250 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13251 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'
13253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13254 hardcode_libdir_separator_CXX=:
13256 # Commands to make compiler produce verbose output that lists
13257 # what "hidden" libraries, object files and flags are used when
13258 # linking a shared library.
13260 # There doesn't appear to be a way to prevent this compiler from
13261 # explicitly linking system object files so we need to strip them
13262 # from the output so that they don't get included in the library
13264 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'
13267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13268 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13269 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'
13271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13272 hardcode_libdir_separator_CXX=:
13274 # Commands to make compiler produce verbose output that lists
13275 # what "hidden" libraries, object files and flags are used when
13276 # linking a shared library.
13277 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13280 # FIXME: insert proper C++ library support
13287 case $cc_basename in
13289 # Kuck and Associates, Inc. (KAI) C++ Compiler
13291 # KCC will only create a shared library if the output file
13292 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13293 # to its proper name (with version) after linking.
13294 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'
13296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297 hardcode_libdir_separator_CXX=:
13299 # Archives containing C++ object files must be created using
13300 # the KAI C++ compiler.
13301 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13304 # Rational C++ 2.4.1
13305 # FIXME: insert proper C++ library support
13309 allow_undefined_flag_CXX=' -expect_unresolved \*'
13310 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'
13311 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13312 echo "-hidden">> $lib.exp~
13313 $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~
13316 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13317 hardcode_libdir_separator_CXX=:
13319 # Commands to make compiler produce verbose output that lists
13320 # what "hidden" libraries, object files and flags are used when
13321 # linking a shared library.
13323 # There doesn't appear to be a way to prevent this compiler from
13324 # explicitly linking system object files so we need to strip them
13325 # from the output so that they don't get included in the library
13327 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'
13330 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13331 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13332 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'
13334 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13335 hardcode_libdir_separator_CXX=:
13337 # Commands to make compiler produce verbose output that lists
13338 # what "hidden" libraries, object files and flags are used when
13339 # linking a shared library.
13340 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13343 # FIXME: insert proper C++ library support
13350 # FIXME: insert proper C++ library support
13354 case $cc_basename in
13357 # FIXME: insert proper C++ library support
13362 # FIXME: insert proper C++ library support
13366 # FIXME: insert proper C++ library support
13372 case $cc_basename in
13374 # Sun C++ 4.2, 5.x and Centerline C++
13375 archive_cmds_need_lc_CXX=yes
13376 no_undefined_flag_CXX=' -zdefs'
13377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13379 $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'
13381 hardcode_libdir_flag_spec_CXX='-R$libdir'
13382 hardcode_shlibpath_var_CXX=no
13384 solaris2.[0-5] | solaris2.[0-5].*) ;;
13386 # The compiler driver will combine and reorder linker options,
13387 # but understands `-z linker_flag'.
13388 # Supported since Solaris 2.6 (maybe 2.5.1?)
13389 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13392 link_all_deplibs_CXX=yes
13394 output_verbose_link_cmd='echo'
13396 # Archives containing C++ object files must be created using
13397 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13398 # necessary to make sure instantiated templates are included
13400 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13403 # Green Hills C++ Compiler
13404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13406 # The C++ compiler must be used to create the archive.
13407 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13410 # GNU C++ compiler with Solaris linker
13411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13412 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13413 if $CC --version | grep -v '^2\.7' > /dev/null; then
13414 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13415 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13416 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13418 # Commands to make compiler produce verbose output that lists
13419 # what "hidden" libraries, object files and flags are used when
13420 # linking a shared library.
13421 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13423 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13425 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13426 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13427 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13429 # Commands to make compiler produce verbose output that lists
13430 # what "hidden" libraries, object files and flags are used when
13431 # linking a shared library.
13432 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13435 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13437 solaris2.[0-5] | solaris2.[0-5].*) ;;
13439 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13447 no_undefined_flag_CXX='${wl}-z,text'
13448 archive_cmds_need_lc_CXX=no
13449 hardcode_shlibpath_var_CXX=no
13450 runpath_var='LD_RUN_PATH'
13452 case $cc_basename in
13454 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13458 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 sysv5* | sco3.2v5* | sco5v6*)
13464 # Note: We can NOT use -z defs as we might desire, because we do not
13465 # link with -lc, and that would cause any symbols used from libc to
13466 # always be unresolved, which means just about no library would
13467 # ever link correctly. If we're not using GNU ld we use -z text
13468 # though, which does catch some bad symbols but isn't as heavy-handed
13470 # For security reasons, it is highly recommended that you always
13471 # use absolute paths for naming shared libraries, and exclude the
13472 # DT_RUNPATH tag from executables and libraries. But doing so
13473 # requires that you compile everything twice, which is a pain.
13474 # So that behaviour is only enabled if SCOABSPATH is set to a
13475 # non-empty value in the environment. Most likely only useful for
13476 # creating official distributions of packages.
13477 # This is a hack until libtool officially supports absolute path
13478 # names for shared libraries.
13479 no_undefined_flag_CXX='${wl}-z,text'
13480 allow_undefined_flag_CXX='${wl}-z,nodefs'
13481 archive_cmds_need_lc_CXX=no
13482 hardcode_shlibpath_var_CXX=no
13483 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13484 hardcode_libdir_separator_CXX=':'
13485 link_all_deplibs_CXX=yes
13486 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13487 runpath_var='LD_RUN_PATH'
13489 case $cc_basename in
13491 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501 case $cc_basename in
13503 # NonStop-UX NCC 3.20
13504 # FIXME: insert proper C++ library support
13508 # FIXME: insert proper C++ library support
13514 # FIXME: insert proper C++ library support
13518 # FIXME: insert proper C++ library support
13522 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13523 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13524 test "$ld_shlibs_CXX" = no && can_build_shared=no
13530 cat > conftest.$ac_ext <<EOF
13534 Foo (void) { a = 0; }
13540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; then
13545 # Parse the compiler output and extract the necessary
13546 # objects, libraries and library flags.
13548 # Sentinel used to keep track of whether or not we are before
13549 # the conftest object file.
13550 pre_test_object_deps_done=no
13552 # The `*' in the case matches for architectures that use `case' in
13553 # $output_verbose_cmd can trigger glob expansion during the loop
13554 # eval without this substitution.
13555 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13557 for p in `eval $output_verbose_link_cmd`; do
13561 # Some compilers place space between "-{L,R}" and the path.
13562 # Remove the space.
13563 if test $p = "-L" \
13564 || test $p = "-R"; then
13571 if test "$pre_test_object_deps_done" = no; then
13574 # Internal compiler library paths should come after those
13575 # provided the user. The postdeps already come after the
13576 # user supplied libs so there is no need to process them.
13577 if test -z "$compiler_lib_search_path_CXX"; then
13578 compiler_lib_search_path_CXX="${prev}${p}"
13580 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13583 # The "-l" case would never come before the object being
13584 # linked, so don't bother handling this case.
13587 if test -z "$postdeps_CXX"; then
13588 postdeps_CXX="${prev}${p}"
13590 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13596 # This assumes that the test object file only shows up
13597 # once in the compiler output.
13598 if test "$p" = "conftest.$objext"; then
13599 pre_test_object_deps_done=yes
13603 if test "$pre_test_object_deps_done" = no; then
13604 if test -z "$predep_objects_CXX"; then
13605 predep_objects_CXX="$p"
13607 predep_objects_CXX="$predep_objects_CXX $p"
13610 if test -z "$postdep_objects_CXX"; then
13611 postdep_objects_CXX="$p"
13613 postdep_objects_CXX="$postdep_objects_CXX $p"
13618 *) ;; # Ignore the rest.
13626 echo "libtool.m4: error: problem compiling CXX test program"
13629 $rm -f confest.$objext
13631 # PORTME: override above test on systems where it is broken
13634 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13635 # hack all around it, let's just trust "g++" to DTRT.
13636 predep_objects_CXX=
13637 postdep_objects_CXX=
13642 case `$CC -V 2>&1 | sed 5q` in
13646 # The more standards-conforming stlport4 library is
13647 # incompatible with the Cstd library. Avoid specifying
13648 # it if it's in CXXFLAGS. Ignore libCrun as
13649 # -library=stlport4 depends on it.
13650 case " $CXX $CXXFLAGS " in
13651 *" -library=stlport4 "*)
13652 solaris_use_stlport4=yes
13655 if test "$solaris_use_stlport4" != yes; then
13656 postdeps_CXX='-library=Cstd -library=Crun'
13663 case $cc_basename in
13665 # The more standards-conforming stlport4 library is
13666 # incompatible with the Cstd library. Avoid specifying
13667 # it if it's in CXXFLAGS. Ignore libCrun as
13668 # -library=stlport4 depends on it.
13669 case " $CXX $CXXFLAGS " in
13670 *" -library=stlport4 "*)
13671 solaris_use_stlport4=yes
13675 # Adding this requires a known-good setup of shared libraries for
13676 # Sun compiler versions before 5.6, else PIC objects from an old
13677 # archive will be linked into the output, leading to subtle bugs.
13678 if test "$solaris_use_stlport4" != yes; then
13679 postdeps_CXX='-library=Cstd -library=Crun'
13687 case " $postdeps_CXX " in
13688 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13691 lt_prog_compiler_wl_CXX=
13692 lt_prog_compiler_pic_CXX=
13693 lt_prog_compiler_static_CXX=
13695 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13696 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13698 # C++ specific cases for pic, static, wl, etc.
13699 if test "$GXX" = yes; then
13700 lt_prog_compiler_wl_CXX='-Wl,'
13701 lt_prog_compiler_static_CXX='-static'
13705 # All AIX code is PIC.
13706 if test "$host_cpu" = ia64; then
13707 # AIX 5 now supports IA64 processor
13708 lt_prog_compiler_static_CXX='-Bstatic'
13712 # FIXME: we need at least 68020 code to build shared libraries, but
13713 # adding the `-m68020' flag to GCC prevents building anything better,
13715 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13718 # PIC is the default for these OSes.
13720 mingw* | cygwin* | os2* | pw32*)
13721 # This hack is so that the source file can tell whether it is being
13722 # built for inclusion in a dll (and should export symbols for example).
13723 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13724 # (--disable-auto-import) libraries
13725 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13727 darwin* | rhapsody*)
13728 # PIC is the default on this platform
13729 # Common symbols not allowed in MH_DYLIB files
13730 lt_prog_compiler_pic_CXX='-fno-common'
13733 # DJGPP does not support shared libraries at all
13734 lt_prog_compiler_pic_CXX=
13737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13738 # Instead, we relocate shared libraries at runtime.
13741 if test -d /usr/nec; then
13742 lt_prog_compiler_pic_CXX=-Kconform_pic
13746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13747 # not for PA HP-UX.
13752 lt_prog_compiler_pic_CXX='-fPIC'
13757 lt_prog_compiler_pic_CXX='-fPIC'
13763 # All AIX code is PIC.
13764 if test "$host_cpu" = ia64; then
13765 # AIX 5 now supports IA64 processor
13766 lt_prog_compiler_static_CXX='-Bstatic'
13768 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13772 case $cc_basename in
13774 # Green Hills C++ Compiler
13775 # _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"
13780 # PIC is the default on this platform
13781 # Common symbols not allowed in MH_DYLIB files
13782 case $cc_basename in
13784 lt_prog_compiler_pic_CXX='-qnocommon'
13785 lt_prog_compiler_wl_CXX='-Wl,'
13790 case $cc_basename in
13792 lt_prog_compiler_pic_CXX='-KPIC'
13795 # Green Hills C++ Compiler
13796 lt_prog_compiler_pic_CXX='-pic'
13802 freebsd* | dragonfly*)
13803 # FreeBSD uses GNU C++
13805 hpux9* | hpux10* | hpux11*)
13806 case $cc_basename in
13808 lt_prog_compiler_wl_CXX='-Wl,'
13809 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13810 if test "$host_cpu" != ia64; then
13811 lt_prog_compiler_pic_CXX='+Z'
13815 lt_prog_compiler_wl_CXX='-Wl,'
13816 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13822 lt_prog_compiler_pic_CXX='+Z'
13831 # This is c89, which is MS Visual C++ (no shared libs)
13832 # Anyone wants to do a port?
13834 irix5* | irix6* | nonstopux*)
13835 case $cc_basename in
13837 lt_prog_compiler_wl_CXX='-Wl,'
13838 lt_prog_compiler_static_CXX='-non_shared'
13839 # CC pic flag -KPIC is the default.
13845 linux* | k*bsd*-gnu)
13846 case $cc_basename in
13849 lt_prog_compiler_wl_CXX='--backend -Wl,'
13850 lt_prog_compiler_pic_CXX='-fPIC'
13854 lt_prog_compiler_wl_CXX='-Wl,'
13855 lt_prog_compiler_pic_CXX='-KPIC'
13856 lt_prog_compiler_static_CXX='-static'
13859 # Portland Group C++ compiler.
13860 lt_prog_compiler_wl_CXX='-Wl,'
13861 lt_prog_compiler_pic_CXX='-fpic'
13862 lt_prog_compiler_static_CXX='-Bstatic'
13866 # Make sure the PIC flag is empty. It appears that all Alpha
13867 # Linux and Compaq Tru64 Unix objects are PIC.
13868 lt_prog_compiler_pic_CXX=
13869 lt_prog_compiler_static_CXX='-non_shared'
13872 case `$CC -V 2>&1 | sed 5q` in
13875 lt_prog_compiler_pic_CXX='-KPIC'
13876 lt_prog_compiler_static_CXX='-Bstatic'
13877 lt_prog_compiler_wl_CXX='-Qoption ld '
13888 case $cc_basename in
13890 lt_prog_compiler_pic_CXX='-W c,exportall'
13896 netbsd* | netbsdelf*-gnu)
13898 osf3* | osf4* | osf5*)
13899 case $cc_basename in
13901 lt_prog_compiler_wl_CXX='--backend -Wl,'
13904 # Rational C++ 2.4.1
13905 lt_prog_compiler_pic_CXX='-pic'
13908 # Digital/Compaq C++
13909 lt_prog_compiler_wl_CXX='-Wl,'
13910 # Make sure the PIC flag is empty. It appears that all Alpha
13911 # Linux and Compaq Tru64 Unix objects are PIC.
13912 lt_prog_compiler_pic_CXX=
13913 lt_prog_compiler_static_CXX='-non_shared'
13922 case $cc_basename in
13924 # Sun C++ 4.2, 5.x and Centerline C++
13925 lt_prog_compiler_pic_CXX='-KPIC'
13926 lt_prog_compiler_static_CXX='-Bstatic'
13927 lt_prog_compiler_wl_CXX='-Qoption ld '
13930 # Green Hills C++ Compiler
13931 lt_prog_compiler_pic_CXX='-PIC'
13938 case $cc_basename in
13941 lt_prog_compiler_pic_CXX='-pic'
13942 lt_prog_compiler_static_CXX='-Bstatic'
13946 lt_prog_compiler_pic_CXX='-pic'
13953 case $cc_basename in
13955 # NonStop-UX NCC 3.20
13956 lt_prog_compiler_pic_CXX='-KPIC'
13962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13963 case $cc_basename in
13965 lt_prog_compiler_wl_CXX='-Wl,'
13966 lt_prog_compiler_pic_CXX='-KPIC'
13967 lt_prog_compiler_static_CXX='-Bstatic'
13974 lt_prog_compiler_can_build_shared_CXX=no
13979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13980 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13983 # Check to make sure the PIC flag actually works.
13985 if test -n "$lt_prog_compiler_pic_CXX"; then
13987 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13989 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 lt_prog_compiler_pic_works_CXX=no
13993 ac_outfile=conftest.$ac_objext
13994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13996 # Insert the option either (1) after the last *FLAGS variable, or
13997 # (2) before a word containing "conftest.", or (3) at the end.
13998 # Note that $ac_compile itself does not contain backslashes and begins
13999 # with a dollar sign (not a hyphen), so the echo should work correctly.
14000 # The option is referenced via a variable to avoid confusing sed.
14001 lt_compile=`echo "$ac_compile" | $SED \
14002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14004 -e 's:$: $lt_compiler_flag:'`
14005 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14006 (eval "$lt_compile" 2>conftest.err)
14008 cat conftest.err >&5
14009 echo "$as_me:__oline__: \$? = $ac_status" >&5
14010 if (exit $ac_status) && test -s "$ac_outfile"; then
14011 # The compiler can only warn and ignore the option if not recognized
14012 # So say no if there are warnings other than the usual output.
14013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14016 lt_prog_compiler_pic_works_CXX=yes
14022 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14023 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14025 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14026 case $lt_prog_compiler_pic_CXX in
14028 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14031 lt_prog_compiler_pic_CXX=
14032 lt_prog_compiler_can_build_shared_CXX=no
14037 # For platforms which do not support PIC, -DPIC is meaningless:
14039 lt_prog_compiler_pic_CXX=
14042 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14047 # Check to make sure the static flag actually works.
14049 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14050 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14051 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14052 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 lt_prog_compiler_static_works_CXX=no
14056 save_LDFLAGS="$LDFLAGS"
14057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14060 # The linker can only warn and ignore the option if not recognized
14061 # So say no if there are warnings
14062 if test -s conftest.err; then
14063 # Append any errors to the config.log.
14064 cat conftest.err 1>&5
14065 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14067 if diff conftest.exp conftest.er2 >/dev/null; then
14068 lt_prog_compiler_static_works_CXX=yes
14071 lt_prog_compiler_static_works_CXX=yes
14075 LDFLAGS="$save_LDFLAGS"
14078 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14079 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14081 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14084 lt_prog_compiler_static_CXX=
14088 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14089 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14090 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 lt_cv_prog_compiler_c_o_CXX=no
14094 $rm -r conftest 2>/dev/null
14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100 lt_compiler_flag="-o out/conftest2.$ac_objext"
14101 # Insert the option either (1) after the last *FLAGS variable, or
14102 # (2) before a word containing "conftest.", or (3) at the end.
14103 # Note that $ac_compile itself does not contain backslashes and begins
14104 # with a dollar sign (not a hyphen), so the echo should work correctly.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
14109 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14110 (eval "$lt_compile" 2>out/conftest.err)
14112 cat out/conftest.err >&5
14113 echo "$as_me:__oline__: \$? = $ac_status" >&5
14114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14116 # The compiler can only warn and ignore the option if not recognized
14117 # So say no if there are warnings
14118 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121 lt_cv_prog_compiler_c_o_CXX=yes
14126 # SGI C++ compiler will create directory out/ii_files/ for
14127 # template instantiation
14128 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14129 $rm out/* && rmdir out
14135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14139 hard_links="nottested"
14140 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141 # do not overwrite the value of need_locks provided by the user
14142 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14143 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148 ln conftest.a conftest.b 2>&5 || hard_links=no
14149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150 { echo "$as_me:$LINENO: result: $hard_links" >&5
14151 echo "${ECHO_T}$hard_links" >&6; }
14152 if test "$hard_links" = no; then
14153 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14161 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14164 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14167 # If we're using GNU nm, then we don't want the "-C" option.
14168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14169 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14170 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'
14172 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'
14176 export_symbols_cmds_CXX="$ltdll_cmds"
14179 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'
14181 linux* | k*bsd*-gnu)
14182 link_all_deplibs_CXX=no
14185 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14189 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14190 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14191 test "$ld_shlibs_CXX" = no && can_build_shared=no
14194 # Do we need to explicitly link libc?
14196 case "x$archive_cmds_need_lc_CXX" in
14198 # Assume -lc should be added
14199 archive_cmds_need_lc_CXX=yes
14201 if test "$enable_shared" = yes && test "$GCC" = yes; then
14202 case $archive_cmds_CXX in
14204 # FIXME: we may have to deal with multi-command sequences.
14207 # Test whether the compiler implicitly links with -lc since on some
14208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14209 # to ld, don't add -lc before -lgcc.
14210 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14211 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216 (eval $ac_compile) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } 2>conftest.err; then
14222 libobjs=conftest.$ac_objext
14224 wl=$lt_prog_compiler_wl_CXX
14225 pic_flag=$lt_prog_compiler_pic_CXX
14231 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14232 allow_undefined_flag_CXX=
14233 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14234 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }
14239 archive_cmds_need_lc_CXX=no
14241 archive_cmds_need_lc_CXX=yes
14243 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14245 cat conftest.err 1>&5
14248 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14249 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14256 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14257 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14258 library_names_spec=
14259 libname_spec='lib$name'
14263 postuninstall_cmds=
14267 shlibpath_overrides_runpath=unknown
14269 dynamic_linker="$host_os ld.so"
14270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14272 need_lib_prefix=unknown
14273 hardcode_into_libs=no
14275 # when you set need_version to no, make sure it does not cause -set_version
14276 # flags to be left without arguments
14277 need_version=unknown
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14283 shlibpath_var=LIBPATH
14285 # AIX 3 has no versioning support, so we append a major version to the name.
14286 soname_spec='${libname}${release}${shared_ext}$major'
14293 hardcode_into_libs=yes
14294 if test "$host_cpu" = ia64; then
14295 # AIX 5 supports IA64
14296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14297 shlibpath_var=LD_LIBRARY_PATH
14299 # With GCC up to 2.95.x, collect2 would create an import file
14300 # for dependence libraries. The import file would start with
14301 # the line `#! .'. This would cause the generated library to
14302 # depend on `.', always an invalid library. This was fixed in
14303 # development snapshots of GCC prior to 3.0.
14305 aix4 | aix4.[01] | aix4.[01].*)
14306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14308 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14311 can_build_shared=no
14315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14316 # soname into executable. Probably we can add versioning support to
14317 # collect2, so additional links can be useful in future.
14318 if test "$aix_use_runtimelinking" = yes; then
14319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14320 # instead of lib<name>.a to let people know that these are not
14321 # typical AIX shared libraries.
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324 # We preserve .a as extension for shared libraries through AIX4.2
14325 # and later when we are not doing run time linking.
14326 library_names_spec='${libname}${release}.a $libname.a'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14329 shlibpath_var=LIBPATH
14334 library_names_spec='$libname.ixlibrary $libname.a'
14335 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14336 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'
14340 library_names_spec='${libname}${shared_ext}'
14341 dynamic_linker="$host_os ld.so"
14342 shlibpath_var=LIBRARY_PATH
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14353 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14354 # the default ld.so.conf also contains /usr/contrib/lib and
14355 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14356 # libtool to hard-code these into programs
14359 cygwin* | mingw* | pw32*)
14360 version_type=windows
14365 case $GCC,$host_os in
14366 yes,cygwin* | yes,mingw* | yes,pw32*)
14367 library_names_spec='$libname.dll.a'
14368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14369 postinstall_cmds='base_file=`basename \${file}`~
14370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14371 dldir=$destdir/`dirname \$dlpath`~
14372 test -d \$dldir || mkdir -p \$dldir~
14373 $install_prog $dir/$dlname \$dldir/$dlname~
14374 chmod a+x \$dldir/$dlname'
14375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14376 dlpath=$dir/\$dldll~
14378 shlibpath_overrides_runpath=yes
14382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14383 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14384 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14387 # MinGW DLLs use traditional 'lib' prefix
14388 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14389 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14390 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14391 # It is most probably a Windows format PATH printed by
14392 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14393 # path with ; separators, and with drive letters. We can handle the
14394 # drive letters (cygwin fileutils understands them), so leave them,
14395 # especially as we might pass files found there to a mingw objdump,
14396 # which wouldn't understand a cygwinified path. Ahh.
14397 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14403 # pw32 DLLs use 'pw' prefix rather than 'lib'
14404 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14410 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14413 dynamic_linker='Win32 ld.exe'
14414 # FIXME: first we should search . and the directory the executable is in
14418 darwin* | rhapsody*)
14419 dynamic_linker="$host_os dyld"
14420 version_type=darwin
14423 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14424 soname_spec='${libname}${release}${major}$shared_ext'
14425 shlibpath_overrides_runpath=yes
14426 shlibpath_var=DYLD_LIBRARY_PATH
14427 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14429 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 shlibpath_var=LD_LIBRARY_PATH
14445 freebsd* | dragonfly*)
14446 # DragonFly does not have aout. When/if they implement a new
14447 # versioning mechanism, adjust this.
14448 if test -x /usr/bin/objformat; then
14449 objformat=`/usr/bin/objformat`
14452 freebsd[123]*) objformat=aout ;;
14453 *) objformat=elf ;;
14456 version_type=freebsd-$objformat
14457 case $version_type in
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14468 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=yes
14473 freebsd3.[01]* | freebsdelf3.[01]*)
14474 shlibpath_overrides_runpath=yes
14475 hardcode_into_libs=yes
14477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14479 shlibpath_overrides_runpath=no
14480 hardcode_into_libs=yes
14482 *) # from 4.6 on, and DragonFly
14483 shlibpath_overrides_runpath=yes
14484 hardcode_into_libs=yes
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14495 shlibpath_var=LD_LIBRARY_PATH
14496 hardcode_into_libs=yes
14499 hpux9* | hpux10* | hpux11*)
14500 # Give a soname corresponding to the major version so that dld.sl refuses to
14501 # link against other versions.
14508 hardcode_into_libs=yes
14509 dynamic_linker="$host_os dld.so"
14510 shlibpath_var=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 soname_spec='${libname}${release}${shared_ext}$major'
14514 if test "X$HPUX_IA64_MODE" = X32; then
14515 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14517 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14523 hardcode_into_libs=yes
14524 dynamic_linker="$host_os dld.sl"
14525 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14534 dynamic_linker="$host_os dld.sl"
14535 shlibpath_var=SHLIB_PATH
14536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14542 postinstall_cmds='chmod 555 $lib'
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=no
14554 hardcode_into_libs=yes
14557 irix5* | irix6* | nonstopux*)
14559 nonstopux*) version_type=nonstopux ;;
14561 if test "$lt_cv_prog_gnu_ld" = yes; then
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14572 irix5* | nonstopux*)
14573 libsuff= shlibsuff=
14576 case $LD in # libtool.m4 will add one of these switches to LD
14577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14578 libsuff= shlibsuff= libmagic=32-bit;;
14579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14580 libsuff=32 shlibsuff=N32 libmagic=N32;;
14581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14583 *) libsuff= shlibsuff= libmagic=never-match;;
14587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14588 shlibpath_overrides_runpath=no
14589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14591 hardcode_into_libs=yes
14594 # No shared lib support for Linux oldld, aout, or coff.
14595 linux*oldld* | linux*aout* | linux*coff*)
14599 # This must be Linux ELF.
14600 linux* | k*bsd*-gnu)
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 shlibpath_overrides_runpath=no
14609 # This implies no fast_install, which is unacceptable.
14610 # Some rework will be needed to allow for fast_install
14611 # before this can be enabled.
14612 hardcode_into_libs=yes
14614 # Append ld.so.conf contents to the search path
14615 if test -f /etc/ld.so.conf; then
14616 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' ' '`
14617 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14620 # We used to test for /lib/ld.so.1 and disable shared libraries on
14621 # powerpc, because MkLinux only supported shared libraries with the
14622 # GNU dynamic linker. Since this was broken with cross compilers,
14623 # most powerpc-linux boxes support dynamic linking these days and
14624 # people can always --disable-shared, the test was removed, and we
14625 # assume the GNU/Linux dynamic linker is in use.
14626 dynamic_linker='GNU/Linux ld.so'
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=no
14637 hardcode_into_libs=yes
14638 dynamic_linker='NetBSD ld.elf_so'
14645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14648 dynamic_linker='NetBSD (a.out) ld.so'
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 dynamic_linker='NetBSD ld.elf_so'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=yes
14656 hardcode_into_libs=yes
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14678 sys_lib_dlsearch_path_spec="/usr/lib"
14680 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14682 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14683 *) need_version=no ;;
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14690 openbsd2.[89] | openbsd2.[89].*)
14691 shlibpath_overrides_runpath=no
14694 shlibpath_overrides_runpath=yes
14698 shlibpath_overrides_runpath=yes
14703 libname_spec='$name'
14706 library_names_spec='$libname${shared_ext} $libname.a'
14707 dynamic_linker='OS/2 ld.exe'
14708 shlibpath_var=LIBPATH
14711 osf3* | osf4* | osf5*)
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14719 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=yes
14734 hardcode_into_libs=yes
14735 # ldd complains unless libraries are executable
14736 postinstall_cmds='chmod +x $lib'
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=yes
14745 if test "$with_gnu_ld" = yes; then
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 case $host_vendor in
14758 shlibpath_overrides_runpath=no
14760 export_dynamic_flag_spec='${wl}-Blargedynsym'
14761 runpath_var=LD_RUN_PATH
14769 shlibpath_overrides_runpath=no
14770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14776 if test -d /usr/nec ;then
14778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14779 soname_spec='$libname${shared_ext}.$major'
14780 shlibpath_var=LD_LIBRARY_PATH
14784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14785 version_type=freebsd-elf
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 hardcode_into_libs=yes
14792 if test "$with_gnu_ld" = yes; then
14793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14794 shlibpath_overrides_runpath=no
14796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14797 shlibpath_overrides_runpath=yes
14800 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14804 sys_lib_dlsearch_path_spec='/usr/lib'
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 shlibpath_var=LD_LIBRARY_PATH
14818 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14819 echo "${ECHO_T}$dynamic_linker" >&6; }
14820 test "$dynamic_linker" = no && can_build_shared=no
14822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14823 if test "$GCC" = yes; then
14824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14827 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14828 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14829 hardcode_action_CXX=
14830 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14831 test -n "$runpath_var_CXX" || \
14832 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14834 # We can hardcode non-existant directories.
14835 if test "$hardcode_direct_CXX" != no &&
14836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14837 # have to relink, otherwise we might link with an installed library
14838 # when we should be linking with a yet-to-be-installed one
14839 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14840 test "$hardcode_minus_L_CXX" != no; then
14841 # Linking always hardcodes the temporary library directory.
14842 hardcode_action_CXX=relink
14844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14845 hardcode_action_CXX=immediate
14848 # We cannot hardcode anything, or else we can only hardcode existing
14850 hardcode_action_CXX=unsupported
14852 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14853 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14855 if test "$hardcode_action_CXX" = relink; then
14856 # Fast installation is not supported
14857 enable_fast_install=no
14858 elif test "$shlibpath_overrides_runpath" = yes ||
14859 test "$enable_shared" = no; then
14860 # Fast installation is not necessary
14861 enable_fast_install=needless
14865 # The else clause should only fire when bootstrapping the
14866 # libtool distribution, otherwise you forgot to ship ltmain.sh
14867 # with your package, and you will get complaints that there are
14868 # no rules to generate ltmain.sh.
14869 if test -f "$ltmain"; then
14870 # See if we are running on zsh, and set the options which allow our commands through
14871 # without removal of \ escapes.
14872 if test -n "${ZSH_VERSION+set}" ; then
14873 setopt NO_GLOB_SUBST
14875 # Now quote all the things that may contain metacharacters while being
14876 # careful not to overquote the AC_SUBSTed values. We take copies of the
14877 # variables and quote the copies for generation of the libtool script.
14878 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14880 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14881 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14882 deplibs_check_method reload_flag reload_cmds need_locks \
14883 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14884 lt_cv_sys_global_symbol_to_c_name_address \
14885 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14886 old_postinstall_cmds old_postuninstall_cmds \
14890 lt_prog_compiler_wl_CXX \
14891 lt_prog_compiler_pic_CXX \
14892 lt_prog_compiler_static_CXX \
14893 lt_prog_compiler_no_builtin_flag_CXX \
14894 export_dynamic_flag_spec_CXX \
14895 thread_safe_flag_spec_CXX \
14896 whole_archive_flag_spec_CXX \
14897 enable_shared_with_static_runtimes_CXX \
14898 old_archive_cmds_CXX \
14899 old_archive_from_new_cmds_CXX \
14900 predep_objects_CXX \
14901 postdep_objects_CXX \
14904 compiler_lib_search_path_CXX \
14906 archive_expsym_cmds_CXX \
14907 postinstall_cmds_CXX \
14908 postuninstall_cmds_CXX \
14909 old_archive_from_expsyms_cmds_CXX \
14910 allow_undefined_flag_CXX \
14911 no_undefined_flag_CXX \
14912 export_symbols_cmds_CXX \
14913 hardcode_libdir_flag_spec_CXX \
14914 hardcode_libdir_flag_spec_ld_CXX \
14915 hardcode_libdir_separator_CXX \
14916 hardcode_automatic_CXX \
14918 module_expsym_cmds_CXX \
14919 lt_cv_prog_compiler_c_o_CXX \
14920 fix_srcfile_path_CXX \
14921 exclude_expsyms_CXX \
14922 include_expsyms_CXX; do
14925 old_archive_cmds_CXX | \
14926 old_archive_from_new_cmds_CXX | \
14927 archive_cmds_CXX | \
14928 archive_expsym_cmds_CXX | \
14929 module_cmds_CXX | \
14930 module_expsym_cmds_CXX | \
14931 old_archive_from_expsyms_cmds_CXX | \
14932 export_symbols_cmds_CXX | \
14933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14934 postinstall_cmds | postuninstall_cmds | \
14935 old_postinstall_cmds | old_postuninstall_cmds | \
14936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14937 # Double-quote double-evaled strings.
14938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14947 *'\$0 --fallback-echo"')
14948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14954 cat <<__EOF__ >> "$cfgfile"
14955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14959 # Shell to use when invoking shell scripts.
14962 # Whether or not to build shared libraries.
14963 build_libtool_libs=$enable_shared
14965 # Whether or not to build static libraries.
14966 build_old_libs=$enable_static
14968 # Whether or not to add -lc for building shared libraries.
14969 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14971 # Whether or not to disallow shared libs when runtime libs are static
14972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14974 # Whether or not to optimize for fast installation.
14975 fast_install=$enable_fast_install
14978 host_alias=$host_alias
14982 # The build system.
14983 build_alias=$build_alias
14987 # An echo program that does not interpret backslashes.
14992 AR_FLAGS=$lt_AR_FLAGS
14997 # LTCC compiler flags.
14998 LTCFLAGS=$lt_LTCFLAGS
15000 # A language-specific compiler.
15001 CC=$lt_compiler_CXX
15003 # Is the compiler the GNU C compiler?
15009 # The linker used to build libraries.
15012 # Whether we need hard or soft links.
15015 # A BSD-compatible nm program.
15018 # A symbol stripping program
15021 # Used to examine libraries when file_magic_cmd begins "file"
15022 MAGIC_CMD=$MAGIC_CMD
15024 # Used on cygwin: DLL creation program.
15027 # Used on cygwin: object dumper.
15030 # Used on cygwin: assembler.
15033 # The name of the directory that contains temporary libtool files.
15036 # How to create reloadable object files.
15037 reload_flag=$lt_reload_flag
15038 reload_cmds=$lt_reload_cmds
15040 # How to pass a linker flag through the compiler.
15041 wl=$lt_lt_prog_compiler_wl_CXX
15043 # Object file suffix (normally "o").
15044 objext="$ac_objext"
15046 # Old archive suffix (normally "a").
15049 # Shared library suffix (normally ".so").
15050 shrext_cmds='$shrext_cmds'
15052 # Executable file suffix (normally "").
15055 # Additional compiler flags for building library objects.
15056 pic_flag=$lt_lt_prog_compiler_pic_CXX
15059 # What is the maximum length of a command?
15060 max_cmd_len=$lt_cv_sys_max_cmd_len
15062 # Does compiler simultaneously support -c and -o options?
15063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15065 # Must we lock files when doing compilation?
15066 need_locks=$lt_need_locks
15068 # Do we need the lib prefix for modules?
15069 need_lib_prefix=$need_lib_prefix
15071 # Do we need a version for libraries?
15072 need_version=$need_version
15074 # Whether dlopen is supported.
15075 dlopen_support=$enable_dlopen
15077 # Whether dlopen of programs is supported.
15078 dlopen_self=$enable_dlopen_self
15080 # Whether dlopen of statically linked programs is supported.
15081 dlopen_self_static=$enable_dlopen_self_static
15083 # Compiler flag to prevent dynamic linking.
15084 link_static_flag=$lt_lt_prog_compiler_static_CXX
15086 # Compiler flag to turn off builtin functions.
15087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15089 # Compiler flag to allow reflexive dlopens.
15090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15092 # Compiler flag to generate shared objects directly from archives.
15093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15095 # Compiler flag to generate thread-safe objects.
15096 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15098 # Library versioning type.
15099 version_type=$version_type
15101 # Format of library name prefix.
15102 libname_spec=$lt_libname_spec
15104 # List of archive names. First name is the real one, the rest are links.
15105 # The last name is the one that the linker finds with -lNAME.
15106 library_names_spec=$lt_library_names_spec
15108 # The coded name of the library, if different from the real name.
15109 soname_spec=$lt_soname_spec
15111 # Commands used to build and install an old-style archive.
15113 old_archive_cmds=$lt_old_archive_cmds_CXX
15114 old_postinstall_cmds=$lt_old_postinstall_cmds
15115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15117 # Create an old-style archive from a shared archive.
15118 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15120 # Create a temporary old-style archive to link instead of a shared archive.
15121 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15123 # Commands used to build and install a shared archive.
15124 archive_cmds=$lt_archive_cmds_CXX
15125 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15126 postinstall_cmds=$lt_postinstall_cmds
15127 postuninstall_cmds=$lt_postuninstall_cmds
15129 # Commands used to build a loadable module (assumed same as above if empty)
15130 module_cmds=$lt_module_cmds_CXX
15131 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15133 # Commands to strip libraries.
15134 old_striplib=$lt_old_striplib
15135 striplib=$lt_striplib
15137 # Dependencies to place before the objects being linked to create a
15139 predep_objects=$lt_predep_objects_CXX
15141 # Dependencies to place after the objects being linked to create a
15143 postdep_objects=$lt_postdep_objects_CXX
15145 # Dependencies to place before the objects being linked to create a
15147 predeps=$lt_predeps_CXX
15149 # Dependencies to place after the objects being linked to create a
15151 postdeps=$lt_postdeps_CXX
15153 # The library search path used internally by the compiler when linking
15154 # a shared library.
15155 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15157 # Method to check whether dependent libraries are shared objects.
15158 deplibs_check_method=$lt_deplibs_check_method
15160 # Command to use when deplibs_check_method == file_magic.
15161 file_magic_cmd=$lt_file_magic_cmd
15163 # Flag that allows shared libraries with undefined symbols to be built.
15164 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15166 # Flag that forces no undefined symbols.
15167 no_undefined_flag=$lt_no_undefined_flag_CXX
15169 # Commands used to finish a libtool library installation in a directory.
15170 finish_cmds=$lt_finish_cmds
15172 # Same as above, but a single script fragment to be evaled but not shown.
15173 finish_eval=$lt_finish_eval
15175 # Take the output of nm and produce a listing of raw symbols and C names.
15176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15178 # Transform the output of nm in a proper C declaration
15179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15181 # Transform the output of nm in a C name address pair
15182 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15184 # This is the shared library runtime path variable.
15185 runpath_var=$runpath_var
15187 # This is the shared library path variable.
15188 shlibpath_var=$shlibpath_var
15190 # Is shlibpath searched before the hard-coded library search path?
15191 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15193 # How to hardcode a shared library path into an executable.
15194 hardcode_action=$hardcode_action_CXX
15196 # Whether we should hardcode library paths into libraries.
15197 hardcode_into_libs=$hardcode_into_libs
15199 # Flag to hardcode \$libdir into a binary during linking.
15200 # This must work even if \$libdir does not exist.
15201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15203 # If ld is used when linking, flag to hardcode \$libdir into
15204 # a binary during linking. This must work even if \$libdir does
15206 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15208 # Whether we need a single -rpath flag with a separated argument.
15209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15211 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15212 # resulting binary.
15213 hardcode_direct=$hardcode_direct_CXX
15215 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15216 # resulting binary.
15217 hardcode_minus_L=$hardcode_minus_L_CXX
15219 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15220 # the resulting binary.
15221 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15223 # Set to yes if building a shared library automatically hardcodes DIR into the library
15224 # and all subsequent libraries and executables linked against it.
15225 hardcode_automatic=$hardcode_automatic_CXX
15227 # Variables whose values should be saved in libtool wrapper scripts and
15228 # restored at relink time.
15229 variables_saved_for_relink="$variables_saved_for_relink"
15231 # Whether libtool must link a program against all its dependency libraries.
15232 link_all_deplibs=$link_all_deplibs_CXX
15234 # Compile-time system search path for libraries
15235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15237 # Run-time system search path for libraries
15238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15240 # Fix the shell variable \$srcfile for the compiler.
15241 fix_srcfile_path=$lt_fix_srcfile_path
15243 # Set to yes if exported symbols are required.
15244 always_export_symbols=$always_export_symbols_CXX
15246 # The commands to list exported symbols.
15247 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15249 # The commands to extract the exported symbol list from a shared archive.
15250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15252 # Symbols that should not be listed in the preloaded symbols.
15253 exclude_expsyms=$lt_exclude_expsyms_CXX
15255 # Symbols that must always be exported.
15256 include_expsyms=$lt_include_expsyms_CXX
15258 # ### END LIBTOOL TAG CONFIG: $tagname
15264 # If there is no Makefile yet, we rely on a make rule to execute
15265 # `config.status --recheck' to rerun these tests and create the
15266 # libtool script then.
15267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15268 if test -f "$ltmain_in"; then
15269 test -f Makefile && make "$ltmain"
15275 ac_cpp='$CPP $CPPFLAGS'
15276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15284 with_gnu_ldcxx=$with_gnu_ld
15285 with_gnu_ld=$lt_save_with_gnu_ld
15286 lt_cv_path_LDCXX=$lt_cv_path_LD
15287 lt_cv_path_LD=$lt_save_path_LD
15288 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15289 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15297 if test -n "$F77" && test "X$F77" != "Xno"; then
15300 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15301 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15305 archive_cmds_need_lc_F77=no
15306 allow_undefined_flag_F77=
15307 always_export_symbols_F77=no
15308 archive_expsym_cmds_F77=
15309 export_dynamic_flag_spec_F77=
15310 hardcode_direct_F77=no
15311 hardcode_libdir_flag_spec_F77=
15312 hardcode_libdir_flag_spec_ld_F77=
15313 hardcode_libdir_separator_F77=
15314 hardcode_minus_L_F77=no
15315 hardcode_automatic_F77=no
15317 module_expsym_cmds_F77=
15318 link_all_deplibs_F77=unknown
15319 old_archive_cmds_F77=$old_archive_cmds
15320 no_undefined_flag_F77=
15321 whole_archive_flag_spec_F77=
15322 enable_shared_with_static_runtimes_F77=no
15324 # Source file extension for f77 test sources.
15327 # Object file extension for compiled f77 test sources.
15331 # Code to be used in simple compile tests
15332 lt_simple_compile_test_code="\
15338 # Code to be used in simple link tests
15339 lt_simple_link_test_code="\
15344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15346 # If no C compiler was specified, use CC.
15349 # If no C compiler flags were specified, use CFLAGS.
15350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15352 # Allow CC to be a program name with arguments.
15356 # save warnings/boilerplate of simple test code
15357 ac_outfile=conftest.$ac_objext
15358 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15360 _lt_compiler_boilerplate=`cat conftest.err`
15363 ac_outfile=conftest.$ac_objext
15364 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15366 _lt_linker_boilerplate=`cat conftest.err`
15370 # Allow CC to be a program name with arguments.
15375 for cc_temp in $compiler""; do
15377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15386 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15387 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15388 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15389 echo "${ECHO_T}$can_build_shared" >&6; }
15391 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15392 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15393 test "$can_build_shared" = "no" && enable_shared=no
15395 # On AIX, shared libraries and static libraries use the same namespace, and
15396 # are all built from PIC.
15399 test "$enable_shared" = yes && enable_static=no
15400 if test -n "$RANLIB"; then
15401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15402 postinstall_cmds='$RANLIB $lib'
15406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15407 test "$enable_shared" = yes && enable_static=no
15411 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15412 echo "${ECHO_T}$enable_shared" >&6; }
15414 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15415 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15416 # Make sure either enable_shared or enable_static is yes.
15417 test "$enable_shared" = yes || enable_static=yes
15418 { echo "$as_me:$LINENO: result: $enable_static" >&5
15419 echo "${ECHO_T}$enable_static" >&6; }
15424 lt_prog_compiler_wl_F77=
15425 lt_prog_compiler_pic_F77=
15426 lt_prog_compiler_static_F77=
15428 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15429 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15431 if test "$GCC" = yes; then
15432 lt_prog_compiler_wl_F77='-Wl,'
15433 lt_prog_compiler_static_F77='-static'
15437 # All AIX code is PIC.
15438 if test "$host_cpu" = ia64; then
15439 # AIX 5 now supports IA64 processor
15440 lt_prog_compiler_static_F77='-Bstatic'
15445 # FIXME: we need at least 68020 code to build shared libraries, but
15446 # adding the `-m68020' flag to GCC prevents building anything better,
15448 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15451 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15452 # PIC is the default for these OSes.
15455 mingw* | cygwin* | pw32* | os2*)
15456 # This hack is so that the source file can tell whether it is being
15457 # built for inclusion in a dll (and should export symbols for example).
15458 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15459 # (--disable-auto-import) libraries
15460 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15463 darwin* | rhapsody*)
15464 # PIC is the default on this platform
15465 # Common symbols not allowed in MH_DYLIB files
15466 lt_prog_compiler_pic_F77='-fno-common'
15470 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15471 # Instead, we relocate shared libraries at runtime.
15475 # Just because we use GCC doesn't mean we suddenly get shared libraries
15476 # on systems that don't support them.
15477 lt_prog_compiler_can_build_shared_F77=no
15482 if test -d /usr/nec; then
15483 lt_prog_compiler_pic_F77=-Kconform_pic
15488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15489 # not for PA HP-UX.
15495 lt_prog_compiler_pic_F77='-fPIC'
15501 lt_prog_compiler_pic_F77='-fPIC'
15505 # PORTME Check for flag to pass linker flags through the system compiler.
15508 lt_prog_compiler_wl_F77='-Wl,'
15509 if test "$host_cpu" = ia64; then
15510 # AIX 5 now supports IA64 processor
15511 lt_prog_compiler_static_F77='-Bstatic'
15513 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15517 # PIC is the default on this platform
15518 # Common symbols not allowed in MH_DYLIB files
15519 case $cc_basename in
15521 lt_prog_compiler_pic_F77='-qnocommon'
15522 lt_prog_compiler_wl_F77='-Wl,'
15527 mingw* | cygwin* | pw32* | os2*)
15528 # This hack is so that the source file can tell whether it is being
15529 # built for inclusion in a dll (and should export symbols for example).
15530 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15533 hpux9* | hpux10* | hpux11*)
15534 lt_prog_compiler_wl_F77='-Wl,'
15535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15536 # not for PA HP-UX.
15542 lt_prog_compiler_pic_F77='+Z'
15545 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15546 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15549 irix5* | irix6* | nonstopux*)
15550 lt_prog_compiler_wl_F77='-Wl,'
15551 # PIC (with -KPIC) is the default.
15552 lt_prog_compiler_static_F77='-non_shared'
15556 lt_prog_compiler_pic_F77='-KPIC'
15557 lt_prog_compiler_static_F77='-Bstatic'
15560 linux* | k*bsd*-gnu)
15561 case $cc_basename in
15563 lt_prog_compiler_wl_F77='-Wl,'
15564 lt_prog_compiler_pic_F77='-KPIC'
15565 lt_prog_compiler_static_F77='-static'
15567 pgcc* | pgf77* | pgf90* | pgf95*)
15568 # Portland Group compilers (*not* the Pentium gcc compiler,
15569 # which looks to be a dead project)
15570 lt_prog_compiler_wl_F77='-Wl,'
15571 lt_prog_compiler_pic_F77='-fpic'
15572 lt_prog_compiler_static_F77='-Bstatic'
15575 lt_prog_compiler_wl_F77='-Wl,'
15576 # All Alpha code is PIC.
15577 lt_prog_compiler_static_F77='-non_shared'
15580 case `$CC -V 2>&1 | sed 5q` in
15583 lt_prog_compiler_pic_F77='-KPIC'
15584 lt_prog_compiler_static_F77='-Bstatic'
15585 lt_prog_compiler_wl_F77='-Wl,'
15588 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15589 lt_prog_compiler_pic_F77='-KPIC'
15590 lt_prog_compiler_static_F77='-Bstatic'
15591 lt_prog_compiler_wl_F77=''
15598 osf3* | osf4* | osf5*)
15599 lt_prog_compiler_wl_F77='-Wl,'
15600 # All OSF/1 code is PIC.
15601 lt_prog_compiler_static_F77='-non_shared'
15605 lt_prog_compiler_static_F77='-non_shared'
15609 lt_prog_compiler_pic_F77='-KPIC'
15610 lt_prog_compiler_static_F77='-Bstatic'
15611 case $cc_basename in
15612 f77* | f90* | f95*)
15613 lt_prog_compiler_wl_F77='-Qoption ld ';;
15615 lt_prog_compiler_wl_F77='-Wl,';;
15620 lt_prog_compiler_wl_F77='-Qoption ld '
15621 lt_prog_compiler_pic_F77='-PIC'
15622 lt_prog_compiler_static_F77='-Bstatic'
15625 sysv4 | sysv4.2uw2* | sysv4.3*)
15626 lt_prog_compiler_wl_F77='-Wl,'
15627 lt_prog_compiler_pic_F77='-KPIC'
15628 lt_prog_compiler_static_F77='-Bstatic'
15632 if test -d /usr/nec ;then
15633 lt_prog_compiler_pic_F77='-Kconform_pic'
15634 lt_prog_compiler_static_F77='-Bstatic'
15638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15639 lt_prog_compiler_wl_F77='-Wl,'
15640 lt_prog_compiler_pic_F77='-KPIC'
15641 lt_prog_compiler_static_F77='-Bstatic'
15645 lt_prog_compiler_wl_F77='-Wl,'
15646 lt_prog_compiler_can_build_shared_F77=no
15650 lt_prog_compiler_pic_F77='-pic'
15651 lt_prog_compiler_static_F77='-Bstatic'
15655 lt_prog_compiler_can_build_shared_F77=no
15660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15661 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15664 # Check to make sure the PIC flag actually works.
15666 if test -n "$lt_prog_compiler_pic_F77"; then
15668 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15669 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15670 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 lt_prog_compiler_pic_works_F77=no
15674 ac_outfile=conftest.$ac_objext
15675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15676 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15677 # Insert the option either (1) after the last *FLAGS variable, or
15678 # (2) before a word containing "conftest.", or (3) at the end.
15679 # Note that $ac_compile itself does not contain backslashes and begins
15680 # with a dollar sign (not a hyphen), so the echo should work correctly.
15681 # The option is referenced via a variable to avoid confusing sed.
15682 lt_compile=`echo "$ac_compile" | $SED \
15683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15685 -e 's:$: $lt_compiler_flag:'`
15686 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15687 (eval "$lt_compile" 2>conftest.err)
15689 cat conftest.err >&5
15690 echo "$as_me:__oline__: \$? = $ac_status" >&5
15691 if (exit $ac_status) && test -s "$ac_outfile"; then
15692 # The compiler can only warn and ignore the option if not recognized
15693 # So say no if there are warnings other than the usual output.
15694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15697 lt_prog_compiler_pic_works_F77=yes
15703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15704 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15706 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15707 case $lt_prog_compiler_pic_F77 in
15709 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15712 lt_prog_compiler_pic_F77=
15713 lt_prog_compiler_can_build_shared_F77=no
15718 # For platforms which do not support PIC, -DPIC is meaningless:
15720 lt_prog_compiler_pic_F77=
15723 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15728 # Check to make sure the static flag actually works.
15730 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15731 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15732 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15733 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 lt_prog_compiler_static_works_F77=no
15737 save_LDFLAGS="$LDFLAGS"
15738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15741 # The linker can only warn and ignore the option if not recognized
15742 # So say no if there are warnings
15743 if test -s conftest.err; then
15744 # Append any errors to the config.log.
15745 cat conftest.err 1>&5
15746 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15748 if diff conftest.exp conftest.er2 >/dev/null; then
15749 lt_prog_compiler_static_works_F77=yes
15752 lt_prog_compiler_static_works_F77=yes
15756 LDFLAGS="$save_LDFLAGS"
15759 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15760 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15762 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15765 lt_prog_compiler_static_F77=
15769 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15770 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15771 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 lt_cv_prog_compiler_c_o_F77=no
15775 $rm -r conftest 2>/dev/null
15779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15781 lt_compiler_flag="-o out/conftest2.$ac_objext"
15782 # Insert the option either (1) after the last *FLAGS variable, or
15783 # (2) before a word containing "conftest.", or (3) at the end.
15784 # Note that $ac_compile itself does not contain backslashes and begins
15785 # with a dollar sign (not a hyphen), so the echo should work correctly.
15786 lt_compile=`echo "$ac_compile" | $SED \
15787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789 -e 's:$: $lt_compiler_flag:'`
15790 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15791 (eval "$lt_compile" 2>out/conftest.err)
15793 cat out/conftest.err >&5
15794 echo "$as_me:__oline__: \$? = $ac_status" >&5
15795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15797 # The compiler can only warn and ignore the option if not recognized
15798 # So say no if there are warnings
15799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_c_o_F77=yes
15807 # SGI C++ compiler will create directory out/ii_files/ for
15808 # template instantiation
15809 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15810 $rm out/* && rmdir out
15816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15817 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15820 hard_links="nottested"
15821 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15822 # do not overwrite the value of need_locks provided by the user
15823 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15824 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15829 ln conftest.a conftest.b 2>&5 || hard_links=no
15830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15831 { echo "$as_me:$LINENO: result: $hard_links" >&5
15832 echo "${ECHO_T}$hard_links" >&6; }
15833 if test "$hard_links" = no; then
15834 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15835 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15842 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15843 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15846 allow_undefined_flag_F77=
15847 enable_shared_with_static_runtimes_F77=no
15849 archive_expsym_cmds_F77=
15850 old_archive_From_new_cmds_F77=
15851 old_archive_from_expsyms_cmds_F77=
15852 export_dynamic_flag_spec_F77=
15853 whole_archive_flag_spec_F77=
15854 thread_safe_flag_spec_F77=
15855 hardcode_libdir_flag_spec_F77=
15856 hardcode_libdir_flag_spec_ld_F77=
15857 hardcode_libdir_separator_F77=
15858 hardcode_direct_F77=no
15859 hardcode_minus_L_F77=no
15860 hardcode_shlibpath_var_F77=unsupported
15861 link_all_deplibs_F77=unknown
15862 hardcode_automatic_F77=no
15864 module_expsym_cmds_F77=
15865 always_export_symbols_F77=no
15866 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15867 # include_expsyms should be a list of space-separated symbols to be *always*
15868 # included in the symbol list
15869 include_expsyms_F77=
15870 # exclude_expsyms can be an extended regexp of symbols to exclude
15871 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15872 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15873 # as well as any symbol that contains `d'.
15874 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15875 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15876 # platforms (ab)use it in PIC code, but their linkers get confused if
15877 # the symbol is explicitly referenced. Since portable code cannot
15878 # rely on this symbol name, it's probably fine to never include it in
15879 # preloaded symbol tables.
15880 extract_expsyms_cmds=
15881 # Just being paranoid about ensuring that cc_basename is set.
15882 for cc_temp in $compiler""; do
15884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15893 cygwin* | mingw* | pw32*)
15894 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15895 # When not using gcc, we currently assume that we are using
15896 # Microsoft Visual C++.
15897 if test "$GCC" != yes; then
15902 # we just hope/assume this is gcc and not c89 (= MSVC++)
15911 if test "$with_gnu_ld" = yes; then
15912 # If archive_cmds runs LD, not CC, wlarc should be empty
15915 # Set some defaults for GNU ld with shared library support. These
15916 # are reset later if shared libraries are not supported. Putting them
15917 # here allows them to be overridden if necessary.
15918 runpath_var=LD_RUN_PATH
15919 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15920 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15921 # ancient GNU ld didn't support --whole-archive et. al.
15922 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15923 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15925 whole_archive_flag_spec_F77=
15927 supports_anon_versioning=no
15928 case `$LD -v 2>/dev/null` in
15929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15932 *\ 2.11.*) ;; # other 2.11 versions
15933 *) supports_anon_versioning=yes ;;
15936 # See if GNU ld supports shared libraries.
15938 aix3* | aix4* | aix5*)
15939 # On AIX/PPC, the GNU linker is very broken
15940 if test "$host_cpu" != ia64; then
15944 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15945 *** to be unable to reliably create shared libraries on AIX.
15946 *** Therefore, libtool is disabling shared libraries support. If you
15947 *** really care for shared libraries, you may want to modify your PATH
15948 *** so that a non-GNU linker is found, and then restart.
15955 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)'
15956 hardcode_libdir_flag_spec_F77='-L$libdir'
15957 hardcode_minus_L_F77=yes
15959 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15960 # that the semantics of dynamic libraries on AmigaOS, at least up
15961 # to version 4, is to share data among multiple programs linked
15962 # with the same dynamic library. Since this doesn't match the
15963 # behavior of shared libraries on other platforms, we can't use
15969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15970 allow_undefined_flag_F77=unsupported
15971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15972 # support --undefined. This deserves some investigation. FIXME
15973 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979 cygwin* | mingw* | pw32*)
15980 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15981 # as there is no search path for DLLs.
15982 hardcode_libdir_flag_spec_F77='-L$libdir'
15983 allow_undefined_flag_F77=unsupported
15984 always_export_symbols_F77=no
15985 enable_shared_with_static_runtimes_F77=yes
15986 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15988 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15989 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15990 # If the export-symbols file already is a .def file (1st line
15991 # is EXPORTS), use it as is; otherwise, prepend...
15992 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15993 cp $export_symbols $output_objdir/$soname.def;
15995 echo EXPORTS > $output_objdir/$soname.def;
15996 cat $export_symbols >> $output_objdir/$soname.def;
15998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16005 hardcode_direct_F77=no
16006 hardcode_shlibpath_var_F77=no
16007 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16008 export_dynamic_flag_spec_F77='${wl}-E'
16009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16010 # Instead, shared libraries are loaded at an image base (0x10000000 by
16011 # default) and relocated if they conflict, which is a slow very memory
16012 # consuming and fragmenting process. To avoid this, we pick a random,
16013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16014 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16015 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'
16016 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'
16019 gnu* | linux* | k*bsd*-gnu)
16020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16022 case $cc_basename,$host_cpu in
16023 pgcc*) # Portland Group C compiler
16024 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'
16025 tmp_addflag=' $pic_flag'
16027 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16028 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'
16029 tmp_addflag=' $pic_flag -Mnomain' ;;
16030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16031 tmp_addflag=' -i_dynamic' ;;
16032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16033 tmp_addflag=' -i_dynamic -nofor_main' ;;
16034 ifc* | ifort*) # Intel Fortran compiler
16035 tmp_addflag=' -nofor_main' ;;
16037 case `$CC -V 2>&1 | sed 5q` in
16038 *Sun\ C*) # Sun C 5.9
16039 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'
16040 tmp_sharedflag='-G' ;;
16041 *Sun\ F*) # Sun Fortran 8.3
16042 tmp_sharedflag='-G' ;;
16044 tmp_sharedflag='-shared' ;;
16046 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 if test $supports_anon_versioning = yes; then
16049 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16051 $echo "local: *; };" >> $output_objdir/$libname.ver~
16052 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16054 link_all_deplibs_F77=no
16060 netbsd* | netbsdelf*-gnu)
16061 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16062 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16071 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16075 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16076 *** create shared libraries on Solaris systems. Therefore, libtool
16077 *** is disabling shared libraries support. We urge you to upgrade GNU
16078 *** binutils to release 2.9.1 or newer. Another option is to modify
16079 *** your PATH or compiler configuration so that the native linker is
16080 *** used, and then restart.
16083 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16084 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16085 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16092 case `$LD -v 2>&1` in
16093 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16097 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16098 *** reliably create shared libraries on SCO systems. Therefore, libtool
16099 *** is disabling shared libraries support. We urge you to upgrade GNU
16100 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16101 *** your PATH or compiler configuration so that the native linker is
16102 *** used, and then restart.
16107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16108 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16110 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16119 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_direct_F77=yes
16122 hardcode_shlibpath_var_F77=no
16126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16127 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16128 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16135 if test "$ld_shlibs_F77" = no; then
16137 hardcode_libdir_flag_spec_F77=
16138 export_dynamic_flag_spec_F77=
16139 whole_archive_flag_spec_F77=
16142 # PORTME fill in a description of your system's linker (not GNU ld)
16145 allow_undefined_flag_F77=unsupported
16146 always_export_symbols_F77=yes
16147 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'
16148 # Note: this linker hardcodes the directories in LIBPATH if there
16149 # are no directories specified by -L.
16150 hardcode_minus_L_F77=yes
16151 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16152 # Neither direct hardcoding nor static linking is supported with a
16154 hardcode_direct_F77=unsupported
16159 if test "$host_cpu" = ia64; then
16160 # On IA64, the linker does run time linking by default, so we don't
16161 # have to do anything special.
16162 aix_use_runtimelinking=no
16163 exp_sym_flag='-Bexport'
16166 # If we're using GNU nm, then we don't want the "-C" option.
16167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16168 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16169 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'
16171 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'
16173 aix_use_runtimelinking=no
16175 # Test if we are trying to use run time linking or normal
16176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16177 # need to do runtime linking.
16178 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16179 for ld_flag in $LDFLAGS; do
16180 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16181 aix_use_runtimelinking=yes
16188 exp_sym_flag='-bexport'
16189 no_entry_flag='-bnoentry'
16192 # When large executables or shared objects are built, AIX ld can
16193 # have problems creating the table of contents. If linking a library
16194 # or program results in "error TOC overflow" add -mminimal-toc to
16195 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16196 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16198 archive_cmds_F77=''
16199 hardcode_direct_F77=yes
16200 hardcode_libdir_separator_F77=':'
16201 link_all_deplibs_F77=yes
16203 if test "$GCC" = yes; then
16204 case $host_os in aix4.[012]|aix4.[012].*)
16205 # We only want to do this on AIX 4.2 and lower, the check
16206 # below for broken collect2 doesn't work under 4.3+
16207 collect2name=`${CC} -print-prog-name=collect2`
16208 if test -f "$collect2name" && \
16209 strings "$collect2name" | grep resolve_lib_name >/dev/null
16211 # We have reworked collect2
16214 # We have old collect2
16215 hardcode_direct_F77=unsupported
16216 # It fails to find uninstalled libraries when the uninstalled
16217 # path is not listed in the libpath. Setting hardcode_minus_L
16218 # to unsupported forces relinking
16219 hardcode_minus_L_F77=yes
16220 hardcode_libdir_flag_spec_F77='-L$libdir'
16221 hardcode_libdir_separator_F77=
16225 shared_flag='-shared'
16226 if test "$aix_use_runtimelinking" = yes; then
16227 shared_flag="$shared_flag "'${wl}-G'
16231 if test "$host_cpu" = ia64; then
16232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16233 # chokes on -Wl,-G. The following line is correct:
16236 if test "$aix_use_runtimelinking" = yes; then
16237 shared_flag='${wl}-G'
16239 shared_flag='${wl}-bM:SRE'
16244 # It seems that -bexpall does not export symbols beginning with
16245 # underscore (_), so it is better to generate a list of symbols to export.
16246 always_export_symbols_F77=yes
16247 if test "$aix_use_runtimelinking" = yes; then
16248 # Warning - without using the other runtime loading flags (-brtl),
16249 # -berok will link without error, but may produce a broken library.
16250 allow_undefined_flag_F77='-berok'
16251 # Determine the default libpath from the value encoded in an empty executable.
16252 cat >conftest.$ac_ext <<_ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (ac_try="$ac_link"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_link") 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } && {
16271 test -z "$ac_f77_werror_flag" ||
16272 test ! -s conftest.err
16273 } && test -s conftest$ac_exeext &&
16274 $as_test_x conftest$ac_exeext; then
16276 lt_aix_libpath_sed='
16277 /Import File Strings/,/^$/ {
16283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16284 # Check for a 64-bit object if we didn't find anything.
16285 if test -z "$aix_libpath"; then
16286 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296 conftest$ac_exeext conftest.$ac_ext
16297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16299 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16300 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"
16302 if test "$host_cpu" = ia64; then
16303 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16304 allow_undefined_flag_F77="-z nodefs"
16305 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"
16307 # Determine the default libpath from the value encoded in an empty executable.
16308 cat >conftest.$ac_ext <<_ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_link") 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_f77_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext &&
16330 $as_test_x conftest$ac_exeext; then
16332 lt_aix_libpath_sed='
16333 /Import File Strings/,/^$/ {
16339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16340 # Check for a 64-bit object if we didn't find anything.
16341 if test -z "$aix_libpath"; then
16342 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16352 conftest$ac_exeext conftest.$ac_ext
16353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16355 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16356 # Warning - without using the other run time loading flags,
16357 # -berok will link without error, but may produce a broken library.
16358 no_undefined_flag_F77=' ${wl}-bernotok'
16359 allow_undefined_flag_F77=' ${wl}-berok'
16360 # Exported symbols can be pulled into shared objects from archives
16361 whole_archive_flag_spec_F77='$convenience'
16362 archive_cmds_need_lc_F77=yes
16363 # This is similar to how AIX traditionally builds its shared libraries.
16364 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'
16370 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)'
16371 hardcode_libdir_flag_spec_F77='-L$libdir'
16372 hardcode_minus_L_F77=yes
16373 # see comment about different semantics on the GNU ld section
16378 export_dynamic_flag_spec_F77=-rdynamic
16381 cygwin* | mingw* | pw32*)
16382 # When not using gcc, we currently assume that we are using
16383 # Microsoft Visual C++.
16384 # hardcode_libdir_flag_spec is actually meaningless, as there is
16385 # no search path for DLLs.
16386 hardcode_libdir_flag_spec_F77=' '
16387 allow_undefined_flag_F77=unsupported
16388 # Tell ltmain to make .lib files, not .a files.
16390 # Tell ltmain to make .dll files, not .so files.
16392 # FIXME: Setting linknames here is a bad hack.
16393 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16394 # The linker will automatically build a .lib file if we build a DLL.
16395 old_archive_From_new_cmds_F77='true'
16396 # FIXME: Should let the user specify the lib program.
16397 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16398 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16399 enable_shared_with_static_runtimes_F77=yes
16402 darwin* | rhapsody*)
16404 rhapsody* | darwin1.[012])
16405 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16409 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16411 case ${MACOSX_DEPLOYMENT_TARGET} in
16413 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16416 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16422 archive_cmds_need_lc_F77=no
16423 hardcode_direct_F77=no
16424 hardcode_automatic_F77=yes
16425 hardcode_shlibpath_var_F77=unsupported
16426 whole_archive_flag_spec_F77=''
16427 link_all_deplibs_F77=yes
16428 if test "$GCC" = yes ; then
16429 output_verbose_link_cmd='echo'
16430 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16431 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16433 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}'
16434 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}'
16436 case $cc_basename in
16438 output_verbose_link_cmd='echo'
16439 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16440 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16442 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}'
16443 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}'
16453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_libdir_flag_spec_F77='-L$libdir'
16455 hardcode_shlibpath_var_F77=no
16462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16463 # support. Future versions do this automatically, but an explicit c++rt0.o
16464 # does not break anything, and helps significantly (at the cost of a little
16467 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16468 hardcode_libdir_flag_spec_F77='-R$libdir'
16469 hardcode_direct_F77=yes
16470 hardcode_shlibpath_var_F77=no
16473 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16475 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct_F77=yes
16477 hardcode_minus_L_F77=yes
16478 hardcode_shlibpath_var_F77=no
16481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16482 freebsd* | dragonfly*)
16483 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16484 hardcode_libdir_flag_spec_F77='-R$libdir'
16485 hardcode_direct_F77=yes
16486 hardcode_shlibpath_var_F77=no
16490 if test "$GCC" = yes; then
16491 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'
16493 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'
16495 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16496 hardcode_libdir_separator_F77=:
16497 hardcode_direct_F77=yes
16499 # hardcode_minus_L: Not really in the search PATH,
16500 # but as the default location of the library.
16501 hardcode_minus_L_F77=yes
16502 export_dynamic_flag_spec_F77='${wl}-E'
16506 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16507 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16509 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16511 if test "$with_gnu_ld" = no; then
16512 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16513 hardcode_libdir_separator_F77=:
16515 hardcode_direct_F77=yes
16516 export_dynamic_flag_spec_F77='${wl}-E'
16518 # hardcode_minus_L: Not really in the search PATH,
16519 # but as the default location of the library.
16520 hardcode_minus_L_F77=yes
16525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16528 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16540 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16550 if test "$with_gnu_ld" = no; then
16551 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16552 hardcode_libdir_separator_F77=:
16556 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16557 hardcode_direct_F77=no
16558 hardcode_shlibpath_var_F77=no
16561 hardcode_direct_F77=yes
16562 export_dynamic_flag_spec_F77='${wl}-E'
16564 # hardcode_minus_L: Not really in the search PATH,
16565 # but as the default location of the library.
16566 hardcode_minus_L_F77=yes
16572 irix5* | irix6* | nonstopux*)
16573 if test "$GCC" = yes; then
16574 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'
16576 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'
16577 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16580 hardcode_libdir_separator_F77=:
16581 link_all_deplibs_F77=yes
16584 netbsd* | netbsdelf*-gnu)
16585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16588 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16590 hardcode_libdir_flag_spec_F77='-R$libdir'
16591 hardcode_direct_F77=yes
16592 hardcode_shlibpath_var_F77=no
16596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct_F77=yes
16598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599 hardcode_libdir_separator_F77=:
16600 hardcode_shlibpath_var_F77=no
16604 if test -f /usr/libexec/ld.so; then
16605 hardcode_direct_F77=yes
16606 hardcode_shlibpath_var_F77=no
16607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16608 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16610 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16611 export_dynamic_flag_spec_F77='${wl}-E'
16614 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16615 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16616 hardcode_libdir_flag_spec_F77='-R$libdir'
16619 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16630 hardcode_libdir_flag_spec_F77='-L$libdir'
16631 hardcode_minus_L_F77=yes
16632 allow_undefined_flag_F77=unsupported
16633 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'
16634 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16638 if test "$GCC" = yes; then
16639 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16640 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'
16642 allow_undefined_flag_F77=' -expect_unresolved \*'
16643 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'
16645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16646 hardcode_libdir_separator_F77=:
16649 osf4* | osf5*) # as osf3* with the addition of -msym flag
16650 if test "$GCC" = yes; then
16651 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16652 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'
16653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16655 allow_undefined_flag_F77=' -expect_unresolved \*'
16656 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'
16657 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~
16658 $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'
16660 # Both c and cxx compiler support -rpath directly
16661 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16663 hardcode_libdir_separator_F77=:
16667 no_undefined_flag_F77=' -z text'
16668 if test "$GCC" = yes; then
16670 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16671 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16672 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16675 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16679 hardcode_libdir_flag_spec_F77='-R$libdir'
16680 hardcode_shlibpath_var_F77=no
16682 solaris2.[0-5] | solaris2.[0-5].*) ;;
16684 # The compiler driver will combine and reorder linker options,
16685 # but understands `-z linker_flag'. GCC discards it without `$wl',
16686 # but is careful enough not to reorder.
16687 # Supported since Solaris 2.6 (maybe 2.5.1?)
16688 if test "$GCC" = yes; then
16689 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16691 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16695 link_all_deplibs_F77=yes
16699 if test "x$host_vendor" = xsequent; then
16700 # Use $CC to link under sequent, because it throws in some extra .o
16701 # files that make .init and .fini sections work.
16702 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16704 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16706 hardcode_libdir_flag_spec_F77='-L$libdir'
16707 hardcode_direct_F77=yes
16708 hardcode_minus_L_F77=yes
16709 hardcode_shlibpath_var_F77=no
16713 case $host_vendor in
16715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_direct_F77=yes # is this really true???
16719 ## LD is ld it makes a PLAMLIB
16720 ## CC just makes a GrossModule.
16721 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16722 reload_cmds_F77='$CC -r -o $output$reload_objs'
16723 hardcode_direct_F77=no
16726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16730 runpath_var='LD_RUN_PATH'
16731 hardcode_shlibpath_var_F77=no
16735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_shlibpath_var_F77=no
16737 export_dynamic_flag_spec_F77='-Bexport'
16741 if test -d /usr/nec; then
16742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743 hardcode_shlibpath_var_F77=no
16744 runpath_var=LD_RUN_PATH
16745 hardcode_runpath_var=yes
16750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16751 no_undefined_flag_F77='${wl}-z,text'
16752 archive_cmds_need_lc_F77=no
16753 hardcode_shlibpath_var_F77=no
16754 runpath_var='LD_RUN_PATH'
16756 if test "$GCC" = yes; then
16757 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16765 sysv5* | sco3.2v5* | sco5v6*)
16766 # Note: We can NOT use -z defs as we might desire, because we do not
16767 # link with -lc, and that would cause any symbols used from libc to
16768 # always be unresolved, which means just about no library would
16769 # ever link correctly. If we're not using GNU ld we use -z text
16770 # though, which does catch some bad symbols but isn't as heavy-handed
16772 no_undefined_flag_F77='${wl}-z,text'
16773 allow_undefined_flag_F77='${wl}-z,nodefs'
16774 archive_cmds_need_lc_F77=no
16775 hardcode_shlibpath_var_F77=no
16776 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16777 hardcode_libdir_separator_F77=':'
16778 link_all_deplibs_F77=yes
16779 export_dynamic_flag_spec_F77='${wl}-Bexport'
16780 runpath_var='LD_RUN_PATH'
16782 if test "$GCC" = yes; then
16783 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16792 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16793 hardcode_libdir_flag_spec_F77='-L$libdir'
16794 hardcode_shlibpath_var_F77=no
16803 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16804 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16805 test "$ld_shlibs_F77" = no && can_build_shared=no
16808 # Do we need to explicitly link libc?
16810 case "x$archive_cmds_need_lc_F77" in
16812 # Assume -lc should be added
16813 archive_cmds_need_lc_F77=yes
16815 if test "$enable_shared" = yes && test "$GCC" = yes; then
16816 case $archive_cmds_F77 in
16818 # FIXME: we may have to deal with multi-command sequences.
16821 # Test whether the compiler implicitly links with -lc since on some
16822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16823 # to ld, don't add -lc before -lgcc.
16824 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } 2>conftest.err; then
16836 libobjs=conftest.$ac_objext
16838 wl=$lt_prog_compiler_wl_F77
16839 pic_flag=$lt_prog_compiler_pic_F77
16845 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16846 allow_undefined_flag_F77=
16847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16848 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }
16853 archive_cmds_need_lc_F77=no
16855 archive_cmds_need_lc_F77=yes
16857 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16859 cat conftest.err 1>&5
16862 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16870 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16872 library_names_spec=
16873 libname_spec='lib$name'
16877 postuninstall_cmds=
16881 shlibpath_overrides_runpath=unknown
16883 dynamic_linker="$host_os ld.so"
16884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16886 need_lib_prefix=unknown
16887 hardcode_into_libs=no
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version=unknown
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16897 shlibpath_var=LIBPATH
16899 # AIX 3 has no versioning support, so we append a major version to the name.
16900 soname_spec='${libname}${release}${shared_ext}$major'
16907 hardcode_into_libs=yes
16908 if test "$host_cpu" = ia64; then
16909 # AIX 5 supports IA64
16910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911 shlibpath_var=LD_LIBRARY_PATH
16913 # With GCC up to 2.95.x, collect2 would create an import file
16914 # for dependence libraries. The import file would start with
16915 # the line `#! .'. This would cause the generated library to
16916 # depend on `.', always an invalid library. This was fixed in
16917 # development snapshots of GCC prior to 3.0.
16919 aix4 | aix4.[01] | aix4.[01].*)
16920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16925 can_build_shared=no
16929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930 # soname into executable. Probably we can add versioning support to
16931 # collect2, so additional links can be useful in future.
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934 # instead of lib<name>.a to let people know that these are not
16935 # typical AIX shared libraries.
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 # We preserve .a as extension for shared libraries through AIX4.2
16939 # and later when we are not doing run time linking.
16940 library_names_spec='${libname}${release}.a $libname.a'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16943 shlibpath_var=LIBPATH
16948 library_names_spec='$libname.ixlibrary $libname.a'
16949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16950 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'
16954 library_names_spec='${libname}${shared_ext}'
16955 dynamic_linker="$host_os ld.so"
16956 shlibpath_var=LIBRARY_PATH
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16968 # the default ld.so.conf also contains /usr/contrib/lib and
16969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16970 # libtool to hard-code these into programs
16973 cygwin* | mingw* | pw32*)
16974 version_type=windows
16979 case $GCC,$host_os in
16980 yes,cygwin* | yes,mingw* | yes,pw32*)
16981 library_names_spec='$libname.dll.a'
16982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16983 postinstall_cmds='base_file=`basename \${file}`~
16984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16985 dldir=$destdir/`dirname \$dlpath`~
16986 test -d \$dldir || mkdir -p \$dldir~
16987 $install_prog $dir/$dlname \$dldir/$dlname~
16988 chmod a+x \$dldir/$dlname'
16989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16990 dlpath=$dir/\$dldll~
16992 shlibpath_overrides_runpath=yes
16996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17001 # MinGW DLLs use traditional 'lib' prefix
17002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17005 # It is most probably a Windows format PATH printed by
17006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17007 # path with ; separators, and with drive letters. We can handle the
17008 # drive letters (cygwin fileutils understands them), so leave them,
17009 # especially as we might pass files found there to a mingw objdump,
17010 # which wouldn't understand a cygwinified path. Ahh.
17011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17017 # pw32 DLLs use 'pw' prefix rather than 'lib'
17018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027 dynamic_linker='Win32 ld.exe'
17028 # FIXME: first we should search . and the directory the executable is in
17032 darwin* | rhapsody*)
17033 dynamic_linker="$host_os dyld"
17034 version_type=darwin
17037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17038 soname_spec='${libname}${release}${major}$shared_ext'
17039 shlibpath_overrides_runpath=yes
17040 shlibpath_var=DYLD_LIBRARY_PATH
17041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17051 soname_spec='${libname}${release}${shared_ext}$major'
17052 shlibpath_var=LD_LIBRARY_PATH
17059 freebsd* | dragonfly*)
17060 # DragonFly does not have aout. When/if they implement a new
17061 # versioning mechanism, adjust this.
17062 if test -x /usr/bin/objformat; then
17063 objformat=`/usr/bin/objformat`
17066 freebsd[123]*) objformat=aout ;;
17067 *) objformat=elf ;;
17070 version_type=freebsd-$objformat
17071 case $version_type in
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17082 shlibpath_var=LD_LIBRARY_PATH
17085 shlibpath_overrides_runpath=yes
17087 freebsd3.[01]* | freebsdelf3.[01]*)
17088 shlibpath_overrides_runpath=yes
17089 hardcode_into_libs=yes
17091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17093 shlibpath_overrides_runpath=no
17094 hardcode_into_libs=yes
17096 *) # from 4.6 on, and DragonFly
17097 shlibpath_overrides_runpath=yes
17098 hardcode_into_libs=yes
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 hardcode_into_libs=yes
17113 hpux9* | hpux10* | hpux11*)
17114 # Give a soname corresponding to the major version so that dld.sl refuses to
17115 # link against other versions.
17122 hardcode_into_libs=yes
17123 dynamic_linker="$host_os dld.so"
17124 shlibpath_var=LD_LIBRARY_PATH
17125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 if test "X$HPUX_IA64_MODE" = X32; then
17129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17137 hardcode_into_libs=yes
17138 dynamic_linker="$host_os dld.sl"
17139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 soname_spec='${libname}${release}${shared_ext}$major'
17143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17148 dynamic_linker="$host_os dld.sl"
17149 shlibpath_var=SHLIB_PATH
17150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17156 postinstall_cmds='chmod 555 $lib'
17163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=no
17168 hardcode_into_libs=yes
17171 irix5* | irix6* | nonstopux*)
17173 nonstopux*) version_type=nonstopux ;;
17175 if test "$lt_cv_prog_gnu_ld" = yes; then
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17186 irix5* | nonstopux*)
17187 libsuff= shlibsuff=
17190 case $LD in # libtool.m4 will add one of these switches to LD
17191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17192 libsuff= shlibsuff= libmagic=32-bit;;
17193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17194 libsuff=32 shlibsuff=N32 libmagic=N32;;
17195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17197 *) libsuff= shlibsuff= libmagic=never-match;;
17201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17202 shlibpath_overrides_runpath=no
17203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17205 hardcode_into_libs=yes
17208 # No shared lib support for Linux oldld, aout, or coff.
17209 linux*oldld* | linux*aout* | linux*coff*)
17213 # This must be Linux ELF.
17214 linux* | k*bsd*-gnu)
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=no
17223 # This implies no fast_install, which is unacceptable.
17224 # Some rework will be needed to allow for fast_install
17225 # before this can be enabled.
17226 hardcode_into_libs=yes
17228 # Append ld.so.conf contents to the search path
17229 if test -f /etc/ld.so.conf; then
17230 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' ' '`
17231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17234 # We used to test for /lib/ld.so.1 and disable shared libraries on
17235 # powerpc, because MkLinux only supported shared libraries with the
17236 # GNU dynamic linker. Since this was broken with cross compilers,
17237 # most powerpc-linux boxes support dynamic linking these days and
17238 # people can always --disable-shared, the test was removed, and we
17239 # assume the GNU/Linux dynamic linker is in use.
17240 dynamic_linker='GNU/Linux ld.so'
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 shlibpath_overrides_runpath=no
17251 hardcode_into_libs=yes
17252 dynamic_linker='NetBSD ld.elf_so'
17259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17262 dynamic_linker='NetBSD (a.out) ld.so'
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17265 soname_spec='${libname}${release}${shared_ext}$major'
17266 dynamic_linker='NetBSD ld.elf_so'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=yes
17270 hardcode_into_libs=yes
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=yes
17292 sys_lib_dlsearch_path_spec="/usr/lib"
17294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17296 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17297 *) need_version=no ;;
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17304 openbsd2.[89] | openbsd2.[89].*)
17305 shlibpath_overrides_runpath=no
17308 shlibpath_overrides_runpath=yes
17312 shlibpath_overrides_runpath=yes
17317 libname_spec='$name'
17320 library_names_spec='$libname${shared_ext} $libname.a'
17321 dynamic_linker='OS/2 ld.exe'
17322 shlibpath_var=LIBPATH
17325 osf3* | osf4* | osf5*)
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 shlibpath_overrides_runpath=yes
17348 hardcode_into_libs=yes
17349 # ldd complains unless libraries are executable
17350 postinstall_cmds='chmod +x $lib'
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17357 shlibpath_var=LD_LIBRARY_PATH
17358 shlibpath_overrides_runpath=yes
17359 if test "$with_gnu_ld" = yes; then
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 case $host_vendor in
17372 shlibpath_overrides_runpath=no
17374 export_dynamic_flag_spec='${wl}-Blargedynsym'
17375 runpath_var=LD_RUN_PATH
17383 shlibpath_overrides_runpath=no
17384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17390 if test -d /usr/nec ;then
17392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17393 soname_spec='$libname${shared_ext}.$major'
17394 shlibpath_var=LD_LIBRARY_PATH
17398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17399 version_type=freebsd-elf
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 hardcode_into_libs=yes
17406 if test "$with_gnu_ld" = yes; then
17407 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17408 shlibpath_overrides_runpath=no
17410 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17411 shlibpath_overrides_runpath=yes
17414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17418 sys_lib_dlsearch_path_spec='/usr/lib'
17423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17424 soname_spec='${libname}${release}${shared_ext}$major'
17425 shlibpath_var=LD_LIBRARY_PATH
17432 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17433 echo "${ECHO_T}$dynamic_linker" >&6; }
17434 test "$dynamic_linker" = no && can_build_shared=no
17436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17437 if test "$GCC" = yes; then
17438 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17441 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17443 hardcode_action_F77=
17444 if test -n "$hardcode_libdir_flag_spec_F77" || \
17445 test -n "$runpath_var_F77" || \
17446 test "X$hardcode_automatic_F77" = "Xyes" ; then
17448 # We can hardcode non-existant directories.
17449 if test "$hardcode_direct_F77" != no &&
17450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17451 # have to relink, otherwise we might link with an installed library
17452 # when we should be linking with a yet-to-be-installed one
17453 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17454 test "$hardcode_minus_L_F77" != no; then
17455 # Linking always hardcodes the temporary library directory.
17456 hardcode_action_F77=relink
17458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17459 hardcode_action_F77=immediate
17462 # We cannot hardcode anything, or else we can only hardcode existing
17464 hardcode_action_F77=unsupported
17466 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17467 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17469 if test "$hardcode_action_F77" = relink; then
17470 # Fast installation is not supported
17471 enable_fast_install=no
17472 elif test "$shlibpath_overrides_runpath" = yes ||
17473 test "$enable_shared" = no; then
17474 # Fast installation is not necessary
17475 enable_fast_install=needless
17479 # The else clause should only fire when bootstrapping the
17480 # libtool distribution, otherwise you forgot to ship ltmain.sh
17481 # with your package, and you will get complaints that there are
17482 # no rules to generate ltmain.sh.
17483 if test -f "$ltmain"; then
17484 # See if we are running on zsh, and set the options which allow our commands through
17485 # without removal of \ escapes.
17486 if test -n "${ZSH_VERSION+set}" ; then
17487 setopt NO_GLOB_SUBST
17489 # Now quote all the things that may contain metacharacters while being
17490 # careful not to overquote the AC_SUBSTed values. We take copies of the
17491 # variables and quote the copies for generation of the libtool script.
17492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17496 deplibs_check_method reload_flag reload_cmds need_locks \
17497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17498 lt_cv_sys_global_symbol_to_c_name_address \
17499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17500 old_postinstall_cmds old_postuninstall_cmds \
17504 lt_prog_compiler_wl_F77 \
17505 lt_prog_compiler_pic_F77 \
17506 lt_prog_compiler_static_F77 \
17507 lt_prog_compiler_no_builtin_flag_F77 \
17508 export_dynamic_flag_spec_F77 \
17509 thread_safe_flag_spec_F77 \
17510 whole_archive_flag_spec_F77 \
17511 enable_shared_with_static_runtimes_F77 \
17512 old_archive_cmds_F77 \
17513 old_archive_from_new_cmds_F77 \
17514 predep_objects_F77 \
17515 postdep_objects_F77 \
17518 compiler_lib_search_path_F77 \
17520 archive_expsym_cmds_F77 \
17521 postinstall_cmds_F77 \
17522 postuninstall_cmds_F77 \
17523 old_archive_from_expsyms_cmds_F77 \
17524 allow_undefined_flag_F77 \
17525 no_undefined_flag_F77 \
17526 export_symbols_cmds_F77 \
17527 hardcode_libdir_flag_spec_F77 \
17528 hardcode_libdir_flag_spec_ld_F77 \
17529 hardcode_libdir_separator_F77 \
17530 hardcode_automatic_F77 \
17532 module_expsym_cmds_F77 \
17533 lt_cv_prog_compiler_c_o_F77 \
17534 fix_srcfile_path_F77 \
17535 exclude_expsyms_F77 \
17536 include_expsyms_F77; do
17539 old_archive_cmds_F77 | \
17540 old_archive_from_new_cmds_F77 | \
17541 archive_cmds_F77 | \
17542 archive_expsym_cmds_F77 | \
17543 module_cmds_F77 | \
17544 module_expsym_cmds_F77 | \
17545 old_archive_from_expsyms_cmds_F77 | \
17546 export_symbols_cmds_F77 | \
17547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17548 postinstall_cmds | postuninstall_cmds | \
17549 old_postinstall_cmds | old_postuninstall_cmds | \
17550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17551 # Double-quote double-evaled strings.
17552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17561 *'\$0 --fallback-echo"')
17562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17568 cat <<__EOF__ >> "$cfgfile"
17569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17573 # Shell to use when invoking shell scripts.
17576 # Whether or not to build shared libraries.
17577 build_libtool_libs=$enable_shared
17579 # Whether or not to build static libraries.
17580 build_old_libs=$enable_static
17582 # Whether or not to add -lc for building shared libraries.
17583 build_libtool_need_lc=$archive_cmds_need_lc_F77
17585 # Whether or not to disallow shared libs when runtime libs are static
17586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17588 # Whether or not to optimize for fast installation.
17589 fast_install=$enable_fast_install
17592 host_alias=$host_alias
17596 # The build system.
17597 build_alias=$build_alias
17601 # An echo program that does not interpret backslashes.
17606 AR_FLAGS=$lt_AR_FLAGS
17611 # LTCC compiler flags.
17612 LTCFLAGS=$lt_LTCFLAGS
17614 # A language-specific compiler.
17615 CC=$lt_compiler_F77
17617 # Is the compiler the GNU C compiler?
17623 # The linker used to build libraries.
17626 # Whether we need hard or soft links.
17629 # A BSD-compatible nm program.
17632 # A symbol stripping program
17635 # Used to examine libraries when file_magic_cmd begins "file"
17636 MAGIC_CMD=$MAGIC_CMD
17638 # Used on cygwin: DLL creation program.
17641 # Used on cygwin: object dumper.
17644 # Used on cygwin: assembler.
17647 # The name of the directory that contains temporary libtool files.
17650 # How to create reloadable object files.
17651 reload_flag=$lt_reload_flag
17652 reload_cmds=$lt_reload_cmds
17654 # How to pass a linker flag through the compiler.
17655 wl=$lt_lt_prog_compiler_wl_F77
17657 # Object file suffix (normally "o").
17658 objext="$ac_objext"
17660 # Old archive suffix (normally "a").
17663 # Shared library suffix (normally ".so").
17664 shrext_cmds='$shrext_cmds'
17666 # Executable file suffix (normally "").
17669 # Additional compiler flags for building library objects.
17670 pic_flag=$lt_lt_prog_compiler_pic_F77
17673 # What is the maximum length of a command?
17674 max_cmd_len=$lt_cv_sys_max_cmd_len
17676 # Does compiler simultaneously support -c and -o options?
17677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17679 # Must we lock files when doing compilation?
17680 need_locks=$lt_need_locks
17682 # Do we need the lib prefix for modules?
17683 need_lib_prefix=$need_lib_prefix
17685 # Do we need a version for libraries?
17686 need_version=$need_version
17688 # Whether dlopen is supported.
17689 dlopen_support=$enable_dlopen
17691 # Whether dlopen of programs is supported.
17692 dlopen_self=$enable_dlopen_self
17694 # Whether dlopen of statically linked programs is supported.
17695 dlopen_self_static=$enable_dlopen_self_static
17697 # Compiler flag to prevent dynamic linking.
17698 link_static_flag=$lt_lt_prog_compiler_static_F77
17700 # Compiler flag to turn off builtin functions.
17701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17703 # Compiler flag to allow reflexive dlopens.
17704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17706 # Compiler flag to generate shared objects directly from archives.
17707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17709 # Compiler flag to generate thread-safe objects.
17710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17712 # Library versioning type.
17713 version_type=$version_type
17715 # Format of library name prefix.
17716 libname_spec=$lt_libname_spec
17718 # List of archive names. First name is the real one, the rest are links.
17719 # The last name is the one that the linker finds with -lNAME.
17720 library_names_spec=$lt_library_names_spec
17722 # The coded name of the library, if different from the real name.
17723 soname_spec=$lt_soname_spec
17725 # Commands used to build and install an old-style archive.
17727 old_archive_cmds=$lt_old_archive_cmds_F77
17728 old_postinstall_cmds=$lt_old_postinstall_cmds
17729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17737 # Commands used to build and install a shared archive.
17738 archive_cmds=$lt_archive_cmds_F77
17739 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17740 postinstall_cmds=$lt_postinstall_cmds
17741 postuninstall_cmds=$lt_postuninstall_cmds
17743 # Commands used to build a loadable module (assumed same as above if empty)
17744 module_cmds=$lt_module_cmds_F77
17745 module_expsym_cmds=$lt_module_expsym_cmds_F77
17747 # Commands to strip libraries.
17748 old_striplib=$lt_old_striplib
17749 striplib=$lt_striplib
17751 # Dependencies to place before the objects being linked to create a
17753 predep_objects=$lt_predep_objects_F77
17755 # Dependencies to place after the objects being linked to create a
17757 postdep_objects=$lt_postdep_objects_F77
17759 # Dependencies to place before the objects being linked to create a
17761 predeps=$lt_predeps_F77
17763 # Dependencies to place after the objects being linked to create a
17765 postdeps=$lt_postdeps_F77
17767 # The library search path used internally by the compiler when linking
17768 # a shared library.
17769 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17771 # Method to check whether dependent libraries are shared objects.
17772 deplibs_check_method=$lt_deplibs_check_method
17774 # Command to use when deplibs_check_method == file_magic.
17775 file_magic_cmd=$lt_file_magic_cmd
17777 # Flag that allows shared libraries with undefined symbols to be built.
17778 allow_undefined_flag=$lt_allow_undefined_flag_F77
17780 # Flag that forces no undefined symbols.
17781 no_undefined_flag=$lt_no_undefined_flag_F77
17783 # Commands used to finish a libtool library installation in a directory.
17784 finish_cmds=$lt_finish_cmds
17786 # Same as above, but a single script fragment to be evaled but not shown.
17787 finish_eval=$lt_finish_eval
17789 # Take the output of nm and produce a listing of raw symbols and C names.
17790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17792 # Transform the output of nm in a proper C declaration
17793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17795 # Transform the output of nm in a C name address pair
17796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17798 # This is the shared library runtime path variable.
17799 runpath_var=$runpath_var
17801 # This is the shared library path variable.
17802 shlibpath_var=$shlibpath_var
17804 # Is shlibpath searched before the hard-coded library search path?
17805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17807 # How to hardcode a shared library path into an executable.
17808 hardcode_action=$hardcode_action_F77
17810 # Whether we should hardcode library paths into libraries.
17811 hardcode_into_libs=$hardcode_into_libs
17813 # Flag to hardcode \$libdir into a binary during linking.
17814 # This must work even if \$libdir does not exist.
17815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17817 # If ld is used when linking, flag to hardcode \$libdir into
17818 # a binary during linking. This must work even if \$libdir does
17820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17822 # Whether we need a single -rpath flag with a separated argument.
17823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17826 # resulting binary.
17827 hardcode_direct=$hardcode_direct_F77
17829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17830 # resulting binary.
17831 hardcode_minus_L=$hardcode_minus_L_F77
17833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17834 # the resulting binary.
17835 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17837 # Set to yes if building a shared library automatically hardcodes DIR into the library
17838 # and all subsequent libraries and executables linked against it.
17839 hardcode_automatic=$hardcode_automatic_F77
17841 # Variables whose values should be saved in libtool wrapper scripts and
17842 # restored at relink time.
17843 variables_saved_for_relink="$variables_saved_for_relink"
17845 # Whether libtool must link a program against all its dependency libraries.
17846 link_all_deplibs=$link_all_deplibs_F77
17848 # Compile-time system search path for libraries
17849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17851 # Run-time system search path for libraries
17852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17854 # Fix the shell variable \$srcfile for the compiler.
17855 fix_srcfile_path=$lt_fix_srcfile_path
17857 # Set to yes if exported symbols are required.
17858 always_export_symbols=$always_export_symbols_F77
17860 # The commands to list exported symbols.
17861 export_symbols_cmds=$lt_export_symbols_cmds_F77
17863 # The commands to extract the exported symbol list from a shared archive.
17864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17866 # Symbols that should not be listed in the preloaded symbols.
17867 exclude_expsyms=$lt_exclude_expsyms_F77
17869 # Symbols that must always be exported.
17870 include_expsyms=$lt_include_expsyms_F77
17872 # ### END LIBTOOL TAG CONFIG: $tagname
17878 # If there is no Makefile yet, we rely on a make rule to execute
17879 # `config.status --recheck' to rerun these tests and create the
17880 # libtool script then.
17881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17882 if test -f "$ltmain_in"; then
17883 test -f Makefile && make "$ltmain"
17889 ac_cpp='$CPP $CPPFLAGS'
17890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17902 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17905 # Source file extension for Java test sources.
17908 # Object file extension for compiled Java test sources.
17912 # Code to be used in simple compile tests
17913 lt_simple_compile_test_code="class foo {}"
17915 # Code to be used in simple link tests
17916 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17920 # If no C compiler was specified, use CC.
17923 # If no C compiler flags were specified, use CFLAGS.
17924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17926 # Allow CC to be a program name with arguments.
17930 # save warnings/boilerplate of simple test code
17931 ac_outfile=conftest.$ac_objext
17932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17934 _lt_compiler_boilerplate=`cat conftest.err`
17937 ac_outfile=conftest.$ac_objext
17938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17940 _lt_linker_boilerplate=`cat conftest.err`
17944 # Allow CC to be a program name with arguments.
17949 for cc_temp in $compiler""; do
17951 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17952 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17960 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17961 archive_cmds_need_lc_GCJ=no
17963 old_archive_cmds_GCJ=$old_archive_cmds
17966 lt_prog_compiler_no_builtin_flag_GCJ=
17968 if test "$GCC" = yes; then
17969 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17972 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17973 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17974 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 lt_cv_prog_compiler_rtti_exceptions=no
17978 ac_outfile=conftest.$ac_objext
17979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17980 lt_compiler_flag="-fno-rtti -fno-exceptions"
17981 # Insert the option either (1) after the last *FLAGS variable, or
17982 # (2) before a word containing "conftest.", or (3) at the end.
17983 # Note that $ac_compile itself does not contain backslashes and begins
17984 # with a dollar sign (not a hyphen), so the echo should work correctly.
17985 # The option is referenced via a variable to avoid confusing sed.
17986 lt_compile=`echo "$ac_compile" | $SED \
17987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17989 -e 's:$: $lt_compiler_flag:'`
17990 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17991 (eval "$lt_compile" 2>conftest.err)
17993 cat conftest.err >&5
17994 echo "$as_me:__oline__: \$? = $ac_status" >&5
17995 if (exit $ac_status) && test -s "$ac_outfile"; then
17996 # The compiler can only warn and ignore the option if not recognized
17997 # So say no if there are warnings other than the usual output.
17998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18001 lt_cv_prog_compiler_rtti_exceptions=yes
18007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18008 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18010 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18011 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18018 lt_prog_compiler_wl_GCJ=
18019 lt_prog_compiler_pic_GCJ=
18020 lt_prog_compiler_static_GCJ=
18022 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18023 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18025 if test "$GCC" = yes; then
18026 lt_prog_compiler_wl_GCJ='-Wl,'
18027 lt_prog_compiler_static_GCJ='-static'
18031 # All AIX code is PIC.
18032 if test "$host_cpu" = ia64; then
18033 # AIX 5 now supports IA64 processor
18034 lt_prog_compiler_static_GCJ='-Bstatic'
18039 # FIXME: we need at least 68020 code to build shared libraries, but
18040 # adding the `-m68020' flag to GCC prevents building anything better,
18042 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18046 # PIC is the default for these OSes.
18049 mingw* | cygwin* | pw32* | os2*)
18050 # This hack is so that the source file can tell whether it is being
18051 # built for inclusion in a dll (and should export symbols for example).
18052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18053 # (--disable-auto-import) libraries
18054 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18057 darwin* | rhapsody*)
18058 # PIC is the default on this platform
18059 # Common symbols not allowed in MH_DYLIB files
18060 lt_prog_compiler_pic_GCJ='-fno-common'
18064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18065 # Instead, we relocate shared libraries at runtime.
18069 # Just because we use GCC doesn't mean we suddenly get shared libraries
18070 # on systems that don't support them.
18071 lt_prog_compiler_can_build_shared_GCJ=no
18076 if test -d /usr/nec; then
18077 lt_prog_compiler_pic_GCJ=-Kconform_pic
18082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18083 # not for PA HP-UX.
18089 lt_prog_compiler_pic_GCJ='-fPIC'
18095 lt_prog_compiler_pic_GCJ='-fPIC'
18099 # PORTME Check for flag to pass linker flags through the system compiler.
18102 lt_prog_compiler_wl_GCJ='-Wl,'
18103 if test "$host_cpu" = ia64; then
18104 # AIX 5 now supports IA64 processor
18105 lt_prog_compiler_static_GCJ='-Bstatic'
18107 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18111 # PIC is the default on this platform
18112 # Common symbols not allowed in MH_DYLIB files
18113 case $cc_basename in
18115 lt_prog_compiler_pic_GCJ='-qnocommon'
18116 lt_prog_compiler_wl_GCJ='-Wl,'
18121 mingw* | cygwin* | pw32* | os2*)
18122 # This hack is so that the source file can tell whether it is being
18123 # built for inclusion in a dll (and should export symbols for example).
18124 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18127 hpux9* | hpux10* | hpux11*)
18128 lt_prog_compiler_wl_GCJ='-Wl,'
18129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18130 # not for PA HP-UX.
18136 lt_prog_compiler_pic_GCJ='+Z'
18139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18140 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18143 irix5* | irix6* | nonstopux*)
18144 lt_prog_compiler_wl_GCJ='-Wl,'
18145 # PIC (with -KPIC) is the default.
18146 lt_prog_compiler_static_GCJ='-non_shared'
18150 lt_prog_compiler_pic_GCJ='-KPIC'
18151 lt_prog_compiler_static_GCJ='-Bstatic'
18154 linux* | k*bsd*-gnu)
18155 case $cc_basename in
18157 lt_prog_compiler_wl_GCJ='-Wl,'
18158 lt_prog_compiler_pic_GCJ='-KPIC'
18159 lt_prog_compiler_static_GCJ='-static'
18161 pgcc* | pgf77* | pgf90* | pgf95*)
18162 # Portland Group compilers (*not* the Pentium gcc compiler,
18163 # which looks to be a dead project)
18164 lt_prog_compiler_wl_GCJ='-Wl,'
18165 lt_prog_compiler_pic_GCJ='-fpic'
18166 lt_prog_compiler_static_GCJ='-Bstatic'
18169 lt_prog_compiler_wl_GCJ='-Wl,'
18170 # All Alpha code is PIC.
18171 lt_prog_compiler_static_GCJ='-non_shared'
18174 case `$CC -V 2>&1 | sed 5q` in
18177 lt_prog_compiler_pic_GCJ='-KPIC'
18178 lt_prog_compiler_static_GCJ='-Bstatic'
18179 lt_prog_compiler_wl_GCJ='-Wl,'
18182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18183 lt_prog_compiler_pic_GCJ='-KPIC'
18184 lt_prog_compiler_static_GCJ='-Bstatic'
18185 lt_prog_compiler_wl_GCJ=''
18192 osf3* | osf4* | osf5*)
18193 lt_prog_compiler_wl_GCJ='-Wl,'
18194 # All OSF/1 code is PIC.
18195 lt_prog_compiler_static_GCJ='-non_shared'
18199 lt_prog_compiler_static_GCJ='-non_shared'
18203 lt_prog_compiler_pic_GCJ='-KPIC'
18204 lt_prog_compiler_static_GCJ='-Bstatic'
18205 case $cc_basename in
18206 f77* | f90* | f95*)
18207 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18209 lt_prog_compiler_wl_GCJ='-Wl,';;
18214 lt_prog_compiler_wl_GCJ='-Qoption ld '
18215 lt_prog_compiler_pic_GCJ='-PIC'
18216 lt_prog_compiler_static_GCJ='-Bstatic'
18219 sysv4 | sysv4.2uw2* | sysv4.3*)
18220 lt_prog_compiler_wl_GCJ='-Wl,'
18221 lt_prog_compiler_pic_GCJ='-KPIC'
18222 lt_prog_compiler_static_GCJ='-Bstatic'
18226 if test -d /usr/nec ;then
18227 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18228 lt_prog_compiler_static_GCJ='-Bstatic'
18232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18233 lt_prog_compiler_wl_GCJ='-Wl,'
18234 lt_prog_compiler_pic_GCJ='-KPIC'
18235 lt_prog_compiler_static_GCJ='-Bstatic'
18239 lt_prog_compiler_wl_GCJ='-Wl,'
18240 lt_prog_compiler_can_build_shared_GCJ=no
18244 lt_prog_compiler_pic_GCJ='-pic'
18245 lt_prog_compiler_static_GCJ='-Bstatic'
18249 lt_prog_compiler_can_build_shared_GCJ=no
18254 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18255 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18258 # Check to make sure the PIC flag actually works.
18260 if test -n "$lt_prog_compiler_pic_GCJ"; then
18262 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18264 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 lt_prog_compiler_pic_works_GCJ=no
18268 ac_outfile=conftest.$ac_objext
18269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18270 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18271 # Insert the option either (1) after the last *FLAGS variable, or
18272 # (2) before a word containing "conftest.", or (3) at the end.
18273 # Note that $ac_compile itself does not contain backslashes and begins
18274 # with a dollar sign (not a hyphen), so the echo should work correctly.
18275 # The option is referenced via a variable to avoid confusing sed.
18276 lt_compile=`echo "$ac_compile" | $SED \
18277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18279 -e 's:$: $lt_compiler_flag:'`
18280 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18281 (eval "$lt_compile" 2>conftest.err)
18283 cat conftest.err >&5
18284 echo "$as_me:__oline__: \$? = $ac_status" >&5
18285 if (exit $ac_status) && test -s "$ac_outfile"; then
18286 # The compiler can only warn and ignore the option if not recognized
18287 # So say no if there are warnings other than the usual output.
18288 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18291 lt_prog_compiler_pic_works_GCJ=yes
18297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18298 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18300 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18301 case $lt_prog_compiler_pic_GCJ in
18303 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18306 lt_prog_compiler_pic_GCJ=
18307 lt_prog_compiler_can_build_shared_GCJ=no
18312 # For platforms which do not support PIC, -DPIC is meaningless:
18314 lt_prog_compiler_pic_GCJ=
18317 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18322 # Check to make sure the static flag actually works.
18324 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18325 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18326 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18327 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 lt_prog_compiler_static_works_GCJ=no
18331 save_LDFLAGS="$LDFLAGS"
18332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18335 # The linker can only warn and ignore the option if not recognized
18336 # So say no if there are warnings
18337 if test -s conftest.err; then
18338 # Append any errors to the config.log.
18339 cat conftest.err 1>&5
18340 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18342 if diff conftest.exp conftest.er2 >/dev/null; then
18343 lt_prog_compiler_static_works_GCJ=yes
18346 lt_prog_compiler_static_works_GCJ=yes
18350 LDFLAGS="$save_LDFLAGS"
18353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18354 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18356 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18359 lt_prog_compiler_static_GCJ=
18363 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18364 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18365 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 lt_cv_prog_compiler_c_o_GCJ=no
18369 $rm -r conftest 2>/dev/null
18373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18375 lt_compiler_flag="-o out/conftest2.$ac_objext"
18376 # Insert the option either (1) after the last *FLAGS variable, or
18377 # (2) before a word containing "conftest.", or (3) at the end.
18378 # Note that $ac_compile itself does not contain backslashes and begins
18379 # with a dollar sign (not a hyphen), so the echo should work correctly.
18380 lt_compile=`echo "$ac_compile" | $SED \
18381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18383 -e 's:$: $lt_compiler_flag:'`
18384 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18385 (eval "$lt_compile" 2>out/conftest.err)
18387 cat out/conftest.err >&5
18388 echo "$as_me:__oline__: \$? = $ac_status" >&5
18389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18391 # The compiler can only warn and ignore the option if not recognized
18392 # So say no if there are warnings
18393 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18396 lt_cv_prog_compiler_c_o_GCJ=yes
18401 # SGI C++ compiler will create directory out/ii_files/ for
18402 # template instantiation
18403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18404 $rm out/* && rmdir out
18410 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18411 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18414 hard_links="nottested"
18415 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18416 # do not overwrite the value of need_locks provided by the user
18417 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18418 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18423 ln conftest.a conftest.b 2>&5 || hard_links=no
18424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18425 { echo "$as_me:$LINENO: result: $hard_links" >&5
18426 echo "${ECHO_T}$hard_links" >&6; }
18427 if test "$hard_links" = no; then
18428 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18429 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18436 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18440 allow_undefined_flag_GCJ=
18441 enable_shared_with_static_runtimes_GCJ=no
18443 archive_expsym_cmds_GCJ=
18444 old_archive_From_new_cmds_GCJ=
18445 old_archive_from_expsyms_cmds_GCJ=
18446 export_dynamic_flag_spec_GCJ=
18447 whole_archive_flag_spec_GCJ=
18448 thread_safe_flag_spec_GCJ=
18449 hardcode_libdir_flag_spec_GCJ=
18450 hardcode_libdir_flag_spec_ld_GCJ=
18451 hardcode_libdir_separator_GCJ=
18452 hardcode_direct_GCJ=no
18453 hardcode_minus_L_GCJ=no
18454 hardcode_shlibpath_var_GCJ=unsupported
18455 link_all_deplibs_GCJ=unknown
18456 hardcode_automatic_GCJ=no
18458 module_expsym_cmds_GCJ=
18459 always_export_symbols_GCJ=no
18460 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18461 # include_expsyms should be a list of space-separated symbols to be *always*
18462 # included in the symbol list
18463 include_expsyms_GCJ=
18464 # exclude_expsyms can be an extended regexp of symbols to exclude
18465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18467 # as well as any symbol that contains `d'.
18468 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18470 # platforms (ab)use it in PIC code, but their linkers get confused if
18471 # the symbol is explicitly referenced. Since portable code cannot
18472 # rely on this symbol name, it's probably fine to never include it in
18473 # preloaded symbol tables.
18474 extract_expsyms_cmds=
18475 # Just being paranoid about ensuring that cc_basename is set.
18476 for cc_temp in $compiler""; do
18478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18487 cygwin* | mingw* | pw32*)
18488 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18489 # When not using gcc, we currently assume that we are using
18490 # Microsoft Visual C++.
18491 if test "$GCC" != yes; then
18496 # we just hope/assume this is gcc and not c89 (= MSVC++)
18505 if test "$with_gnu_ld" = yes; then
18506 # If archive_cmds runs LD, not CC, wlarc should be empty
18509 # Set some defaults for GNU ld with shared library support. These
18510 # are reset later if shared libraries are not supported. Putting them
18511 # here allows them to be overridden if necessary.
18512 runpath_var=LD_RUN_PATH
18513 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18514 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18515 # ancient GNU ld didn't support --whole-archive et. al.
18516 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18517 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18519 whole_archive_flag_spec_GCJ=
18521 supports_anon_versioning=no
18522 case `$LD -v 2>/dev/null` in
18523 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18526 *\ 2.11.*) ;; # other 2.11 versions
18527 *) supports_anon_versioning=yes ;;
18530 # See if GNU ld supports shared libraries.
18532 aix3* | aix4* | aix5*)
18533 # On AIX/PPC, the GNU linker is very broken
18534 if test "$host_cpu" != ia64; then
18538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18539 *** to be unable to reliably create shared libraries on AIX.
18540 *** Therefore, libtool is disabling shared libraries support. If you
18541 *** really care for shared libraries, you may want to modify your PATH
18542 *** so that a non-GNU linker is found, and then restart.
18549 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)'
18550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18551 hardcode_minus_L_GCJ=yes
18553 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18554 # that the semantics of dynamic libraries on AmigaOS, at least up
18555 # to version 4, is to share data among multiple programs linked
18556 # with the same dynamic library. Since this doesn't match the
18557 # behavior of shared libraries on other platforms, we can't use
18563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18564 allow_undefined_flag_GCJ=unsupported
18565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18566 # support --undefined. This deserves some investigation. FIXME
18567 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573 cygwin* | mingw* | pw32*)
18574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18575 # as there is no search path for DLLs.
18576 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18577 allow_undefined_flag_GCJ=unsupported
18578 always_export_symbols_GCJ=no
18579 enable_shared_with_static_runtimes_GCJ=yes
18580 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18584 # If the export-symbols file already is a .def file (1st line
18585 # is EXPORTS), use it as is; otherwise, prepend...
18586 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18587 cp $export_symbols $output_objdir/$soname.def;
18589 echo EXPORTS > $output_objdir/$soname.def;
18590 cat $export_symbols >> $output_objdir/$soname.def;
18592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18599 hardcode_direct_GCJ=no
18600 hardcode_shlibpath_var_GCJ=no
18601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18602 export_dynamic_flag_spec_GCJ='${wl}-E'
18603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18604 # Instead, shared libraries are loaded at an image base (0x10000000 by
18605 # default) and relocated if they conflict, which is a slow very memory
18606 # consuming and fragmenting process. To avoid this, we pick a random,
18607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18609 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'
18610 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'
18613 gnu* | linux* | k*bsd*-gnu)
18614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18616 case $cc_basename,$host_cpu in
18617 pgcc*) # Portland Group C compiler
18618 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'
18619 tmp_addflag=' $pic_flag'
18621 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18622 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'
18623 tmp_addflag=' $pic_flag -Mnomain' ;;
18624 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18625 tmp_addflag=' -i_dynamic' ;;
18626 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18627 tmp_addflag=' -i_dynamic -nofor_main' ;;
18628 ifc* | ifort*) # Intel Fortran compiler
18629 tmp_addflag=' -nofor_main' ;;
18631 case `$CC -V 2>&1 | sed 5q` in
18632 *Sun\ C*) # Sun C 5.9
18633 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'
18634 tmp_sharedflag='-G' ;;
18635 *Sun\ F*) # Sun Fortran 8.3
18636 tmp_sharedflag='-G' ;;
18638 tmp_sharedflag='-shared' ;;
18640 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18642 if test $supports_anon_versioning = yes; then
18643 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18645 $echo "local: *; };" >> $output_objdir/$libname.ver~
18646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18648 link_all_deplibs_GCJ=no
18654 netbsd* | netbsdelf*-gnu)
18655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18656 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18659 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18665 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18670 *** create shared libraries on Solaris systems. Therefore, libtool
18671 *** is disabling shared libraries support. We urge you to upgrade GNU
18672 *** binutils to release 2.9.1 or newer. Another option is to modify
18673 *** your PATH or compiler configuration so that the native linker is
18674 *** used, and then restart.
18677 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18679 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18686 case `$LD -v 2>&1` in
18687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18692 *** reliably create shared libraries on SCO systems. Therefore, libtool
18693 *** is disabling shared libraries support. We urge you to upgrade GNU
18694 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18695 *** your PATH or compiler configuration so that the native linker is
18696 *** used, and then restart.
18701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18702 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18703 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18704 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18713 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18715 hardcode_direct_GCJ=yes
18716 hardcode_shlibpath_var_GCJ=no
18720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18721 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18729 if test "$ld_shlibs_GCJ" = no; then
18731 hardcode_libdir_flag_spec_GCJ=
18732 export_dynamic_flag_spec_GCJ=
18733 whole_archive_flag_spec_GCJ=
18736 # PORTME fill in a description of your system's linker (not GNU ld)
18739 allow_undefined_flag_GCJ=unsupported
18740 always_export_symbols_GCJ=yes
18741 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18742 # Note: this linker hardcodes the directories in LIBPATH if there
18743 # are no directories specified by -L.
18744 hardcode_minus_L_GCJ=yes
18745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18746 # Neither direct hardcoding nor static linking is supported with a
18748 hardcode_direct_GCJ=unsupported
18753 if test "$host_cpu" = ia64; then
18754 # On IA64, the linker does run time linking by default, so we don't
18755 # have to do anything special.
18756 aix_use_runtimelinking=no
18757 exp_sym_flag='-Bexport'
18760 # If we're using GNU nm, then we don't want the "-C" option.
18761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18762 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18763 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18765 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18767 aix_use_runtimelinking=no
18769 # Test if we are trying to use run time linking or normal
18770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18771 # need to do runtime linking.
18772 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18773 for ld_flag in $LDFLAGS; do
18774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18775 aix_use_runtimelinking=yes
18782 exp_sym_flag='-bexport'
18783 no_entry_flag='-bnoentry'
18786 # When large executables or shared objects are built, AIX ld can
18787 # have problems creating the table of contents. If linking a library
18788 # or program results in "error TOC overflow" add -mminimal-toc to
18789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18792 archive_cmds_GCJ=''
18793 hardcode_direct_GCJ=yes
18794 hardcode_libdir_separator_GCJ=':'
18795 link_all_deplibs_GCJ=yes
18797 if test "$GCC" = yes; then
18798 case $host_os in aix4.[012]|aix4.[012].*)
18799 # We only want to do this on AIX 4.2 and lower, the check
18800 # below for broken collect2 doesn't work under 4.3+
18801 collect2name=`${CC} -print-prog-name=collect2`
18802 if test -f "$collect2name" && \
18803 strings "$collect2name" | grep resolve_lib_name >/dev/null
18805 # We have reworked collect2
18808 # We have old collect2
18809 hardcode_direct_GCJ=unsupported
18810 # It fails to find uninstalled libraries when the uninstalled
18811 # path is not listed in the libpath. Setting hardcode_minus_L
18812 # to unsupported forces relinking
18813 hardcode_minus_L_GCJ=yes
18814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18815 hardcode_libdir_separator_GCJ=
18819 shared_flag='-shared'
18820 if test "$aix_use_runtimelinking" = yes; then
18821 shared_flag="$shared_flag "'${wl}-G'
18825 if test "$host_cpu" = ia64; then
18826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18827 # chokes on -Wl,-G. The following line is correct:
18830 if test "$aix_use_runtimelinking" = yes; then
18831 shared_flag='${wl}-G'
18833 shared_flag='${wl}-bM:SRE'
18838 # It seems that -bexpall does not export symbols beginning with
18839 # underscore (_), so it is better to generate a list of symbols to export.
18840 always_export_symbols_GCJ=yes
18841 if test "$aix_use_runtimelinking" = yes; then
18842 # Warning - without using the other runtime loading flags (-brtl),
18843 # -berok will link without error, but may produce a broken library.
18844 allow_undefined_flag_GCJ='-berok'
18845 # Determine the default libpath from the value encoded in an empty executable.
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_link") 2>conftest.er1
18870 grep -v '^ *+' conftest.er1 >conftest.err
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } && {
18875 test -z "$ac_c_werror_flag" ||
18876 test ! -s conftest.err
18877 } && test -s conftest$ac_exeext &&
18878 $as_test_x conftest$ac_exeext; then
18880 lt_aix_libpath_sed='
18881 /Import File Strings/,/^$/ {
18887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18888 # Check for a 64-bit object if we didn't find anything.
18889 if test -z "$aix_libpath"; then
18890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900 conftest$ac_exeext conftest.$ac_ext
18901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18903 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18904 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18906 if test "$host_cpu" = ia64; then
18907 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18908 allow_undefined_flag_GCJ="-z nodefs"
18909 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18911 # Determine the default libpath from the value encoded in an empty executable.
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18936 grep -v '^ *+' conftest.er1 >conftest.err
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } && {
18941 test -z "$ac_c_werror_flag" ||
18942 test ! -s conftest.err
18943 } && test -s conftest$ac_exeext &&
18944 $as_test_x conftest$ac_exeext; then
18946 lt_aix_libpath_sed='
18947 /Import File Strings/,/^$/ {
18953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18954 # Check for a 64-bit object if we didn't find anything.
18955 if test -z "$aix_libpath"; then
18956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18966 conftest$ac_exeext conftest.$ac_ext
18967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18969 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18970 # Warning - without using the other run time loading flags,
18971 # -berok will link without error, but may produce a broken library.
18972 no_undefined_flag_GCJ=' ${wl}-bernotok'
18973 allow_undefined_flag_GCJ=' ${wl}-berok'
18974 # Exported symbols can be pulled into shared objects from archives
18975 whole_archive_flag_spec_GCJ='$convenience'
18976 archive_cmds_need_lc_GCJ=yes
18977 # This is similar to how AIX traditionally builds its shared libraries.
18978 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18984 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18985 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18986 hardcode_minus_L_GCJ=yes
18987 # see comment about different semantics on the GNU ld section
18992 export_dynamic_flag_spec_GCJ=-rdynamic
18995 cygwin* | mingw* | pw32*)
18996 # When not using gcc, we currently assume that we are using
18997 # Microsoft Visual C++.
18998 # hardcode_libdir_flag_spec is actually meaningless, as there is
18999 # no search path for DLLs.
19000 hardcode_libdir_flag_spec_GCJ=' '
19001 allow_undefined_flag_GCJ=unsupported
19002 # Tell ltmain to make .lib files, not .a files.
19004 # Tell ltmain to make .dll files, not .so files.
19006 # FIXME: Setting linknames here is a bad hack.
19007 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19008 # The linker will automatically build a .lib file if we build a DLL.
19009 old_archive_From_new_cmds_GCJ='true'
19010 # FIXME: Should let the user specify the lib program.
19011 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19012 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19013 enable_shared_with_static_runtimes_GCJ=yes
19016 darwin* | rhapsody*)
19018 rhapsody* | darwin1.[012])
19019 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19022 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19023 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19025 case ${MACOSX_DEPLOYMENT_TARGET} in
19027 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19030 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19036 archive_cmds_need_lc_GCJ=no
19037 hardcode_direct_GCJ=no
19038 hardcode_automatic_GCJ=yes
19039 hardcode_shlibpath_var_GCJ=unsupported
19040 whole_archive_flag_spec_GCJ=''
19041 link_all_deplibs_GCJ=yes
19042 if test "$GCC" = yes ; then
19043 output_verbose_link_cmd='echo'
19044 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19045 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19047 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19048 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19050 case $cc_basename in
19052 output_verbose_link_cmd='echo'
19053 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19054 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19056 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19057 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19068 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19069 hardcode_shlibpath_var_GCJ=no
19076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19077 # support. Future versions do this automatically, but an explicit c++rt0.o
19078 # does not break anything, and helps significantly (at the cost of a little
19081 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19083 hardcode_direct_GCJ=yes
19084 hardcode_shlibpath_var_GCJ=no
19087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19089 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19090 hardcode_direct_GCJ=yes
19091 hardcode_minus_L_GCJ=yes
19092 hardcode_shlibpath_var_GCJ=no
19095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19096 freebsd* | dragonfly*)
19097 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19098 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19099 hardcode_direct_GCJ=yes
19100 hardcode_shlibpath_var_GCJ=no
19104 if test "$GCC" = yes; then
19105 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19107 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19109 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19110 hardcode_libdir_separator_GCJ=:
19111 hardcode_direct_GCJ=yes
19113 # hardcode_minus_L: Not really in the search PATH,
19114 # but as the default location of the library.
19115 hardcode_minus_L_GCJ=yes
19116 export_dynamic_flag_spec_GCJ='${wl}-E'
19120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19121 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19123 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19125 if test "$with_gnu_ld" = no; then
19126 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19127 hardcode_libdir_separator_GCJ=:
19129 hardcode_direct_GCJ=yes
19130 export_dynamic_flag_spec_GCJ='${wl}-E'
19132 # hardcode_minus_L: Not really in the search PATH,
19133 # but as the default location of the library.
19134 hardcode_minus_L_GCJ=yes
19139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19142 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19145 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19148 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19154 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19157 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19160 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19164 if test "$with_gnu_ld" = no; then
19165 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19166 hardcode_libdir_separator_GCJ=:
19170 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19171 hardcode_direct_GCJ=no
19172 hardcode_shlibpath_var_GCJ=no
19175 hardcode_direct_GCJ=yes
19176 export_dynamic_flag_spec_GCJ='${wl}-E'
19178 # hardcode_minus_L: Not really in the search PATH,
19179 # but as the default location of the library.
19180 hardcode_minus_L_GCJ=yes
19186 irix5* | irix6* | nonstopux*)
19187 if test "$GCC" = yes; then
19188 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19190 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19191 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19194 hardcode_libdir_separator_GCJ=:
19195 link_all_deplibs_GCJ=yes
19198 netbsd* | netbsdelf*-gnu)
19199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19202 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19205 hardcode_direct_GCJ=yes
19206 hardcode_shlibpath_var_GCJ=no
19210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19211 hardcode_direct_GCJ=yes
19212 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19213 hardcode_libdir_separator_GCJ=:
19214 hardcode_shlibpath_var_GCJ=no
19218 if test -f /usr/libexec/ld.so; then
19219 hardcode_direct_GCJ=yes
19220 hardcode_shlibpath_var_GCJ=no
19221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19222 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19223 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19224 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19225 export_dynamic_flag_spec_GCJ='${wl}-E'
19228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19229 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19230 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19233 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245 hardcode_minus_L_GCJ=yes
19246 allow_undefined_flag_GCJ=unsupported
19247 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19248 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19252 if test "$GCC" = yes; then
19253 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19254 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19256 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19257 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19260 hardcode_libdir_separator_GCJ=:
19263 osf4* | osf5*) # as osf3* with the addition of -msym flag
19264 if test "$GCC" = yes; then
19265 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19266 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19269 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19270 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19271 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19272 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19274 # Both c and cxx compiler support -rpath directly
19275 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19277 hardcode_libdir_separator_GCJ=:
19281 no_undefined_flag_GCJ=' -z text'
19282 if test "$GCC" = yes; then
19284 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19286 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19289 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294 hardcode_shlibpath_var_GCJ=no
19296 solaris2.[0-5] | solaris2.[0-5].*) ;;
19298 # The compiler driver will combine and reorder linker options,
19299 # but understands `-z linker_flag'. GCC discards it without `$wl',
19300 # but is careful enough not to reorder.
19301 # Supported since Solaris 2.6 (maybe 2.5.1?)
19302 if test "$GCC" = yes; then
19303 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19305 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19309 link_all_deplibs_GCJ=yes
19313 if test "x$host_vendor" = xsequent; then
19314 # Use $CC to link under sequent, because it throws in some extra .o
19315 # files that make .init and .fini sections work.
19316 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19321 hardcode_direct_GCJ=yes
19322 hardcode_minus_L_GCJ=yes
19323 hardcode_shlibpath_var_GCJ=no
19327 case $host_vendor in
19329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330 hardcode_direct_GCJ=yes # is this really true???
19333 ## LD is ld it makes a PLAMLIB
19334 ## CC just makes a GrossModule.
19335 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19336 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19337 hardcode_direct_GCJ=no
19340 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19341 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19344 runpath_var='LD_RUN_PATH'
19345 hardcode_shlibpath_var_GCJ=no
19349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19350 hardcode_shlibpath_var_GCJ=no
19351 export_dynamic_flag_spec_GCJ='-Bexport'
19355 if test -d /usr/nec; then
19356 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357 hardcode_shlibpath_var_GCJ=no
19358 runpath_var=LD_RUN_PATH
19359 hardcode_runpath_var=yes
19364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19365 no_undefined_flag_GCJ='${wl}-z,text'
19366 archive_cmds_need_lc_GCJ=no
19367 hardcode_shlibpath_var_GCJ=no
19368 runpath_var='LD_RUN_PATH'
19370 if test "$GCC" = yes; then
19371 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19372 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19374 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19379 sysv5* | sco3.2v5* | sco5v6*)
19380 # Note: We can NOT use -z defs as we might desire, because we do not
19381 # link with -lc, and that would cause any symbols used from libc to
19382 # always be unresolved, which means just about no library would
19383 # ever link correctly. If we're not using GNU ld we use -z text
19384 # though, which does catch some bad symbols but isn't as heavy-handed
19386 no_undefined_flag_GCJ='${wl}-z,text'
19387 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19388 archive_cmds_need_lc_GCJ=no
19389 hardcode_shlibpath_var_GCJ=no
19390 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19391 hardcode_libdir_separator_GCJ=':'
19392 link_all_deplibs_GCJ=yes
19393 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19394 runpath_var='LD_RUN_PATH'
19396 if test "$GCC" = yes; then
19397 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19398 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19400 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19401 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19406 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19408 hardcode_shlibpath_var_GCJ=no
19417 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19418 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19419 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19422 # Do we need to explicitly link libc?
19424 case "x$archive_cmds_need_lc_GCJ" in
19426 # Assume -lc should be added
19427 archive_cmds_need_lc_GCJ=yes
19429 if test "$enable_shared" = yes && test "$GCC" = yes; then
19430 case $archive_cmds_GCJ in
19432 # FIXME: we may have to deal with multi-command sequences.
19435 # Test whether the compiler implicitly links with -lc since on some
19436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19437 # to ld, don't add -lc before -lgcc.
19438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } 2>conftest.err; then
19450 libobjs=conftest.$ac_objext
19452 wl=$lt_prog_compiler_wl_GCJ
19453 pic_flag=$lt_prog_compiler_pic_GCJ
19459 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19460 allow_undefined_flag_GCJ=
19461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19462 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }
19467 archive_cmds_need_lc_GCJ=no
19469 archive_cmds_need_lc_GCJ=yes
19471 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19473 cat conftest.err 1>&5
19476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19486 library_names_spec=
19487 libname_spec='lib$name'
19491 postuninstall_cmds=
19495 shlibpath_overrides_runpath=unknown
19497 dynamic_linker="$host_os ld.so"
19498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19500 need_lib_prefix=unknown
19501 hardcode_into_libs=no
19503 # when you set need_version to no, make sure it does not cause -set_version
19504 # flags to be left without arguments
19505 need_version=unknown
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19511 shlibpath_var=LIBPATH
19513 # AIX 3 has no versioning support, so we append a major version to the name.
19514 soname_spec='${libname}${release}${shared_ext}$major'
19521 hardcode_into_libs=yes
19522 if test "$host_cpu" = ia64; then
19523 # AIX 5 supports IA64
19524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19525 shlibpath_var=LD_LIBRARY_PATH
19527 # With GCC up to 2.95.x, collect2 would create an import file
19528 # for dependence libraries. The import file would start with
19529 # the line `#! .'. This would cause the generated library to
19530 # depend on `.', always an invalid library. This was fixed in
19531 # development snapshots of GCC prior to 3.0.
19533 aix4 | aix4.[01] | aix4.[01].*)
19534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19539 can_build_shared=no
19543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19544 # soname into executable. Probably we can add versioning support to
19545 # collect2, so additional links can be useful in future.
19546 if test "$aix_use_runtimelinking" = yes; then
19547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19548 # instead of lib<name>.a to let people know that these are not
19549 # typical AIX shared libraries.
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19552 # We preserve .a as extension for shared libraries through AIX4.2
19553 # and later when we are not doing run time linking.
19554 library_names_spec='${libname}${release}.a $libname.a'
19555 soname_spec='${libname}${release}${shared_ext}$major'
19557 shlibpath_var=LIBPATH
19562 library_names_spec='$libname.ixlibrary $libname.a'
19563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19564 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19568 library_names_spec='${libname}${shared_ext}'
19569 dynamic_linker="$host_os ld.so"
19570 shlibpath_var=LIBRARY_PATH
19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19577 soname_spec='${libname}${release}${shared_ext}$major'
19578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19579 shlibpath_var=LD_LIBRARY_PATH
19580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19582 # the default ld.so.conf also contains /usr/contrib/lib and
19583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19584 # libtool to hard-code these into programs
19587 cygwin* | mingw* | pw32*)
19588 version_type=windows
19593 case $GCC,$host_os in
19594 yes,cygwin* | yes,mingw* | yes,pw32*)
19595 library_names_spec='$libname.dll.a'
19596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19597 postinstall_cmds='base_file=`basename \${file}`~
19598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19599 dldir=$destdir/`dirname \$dlpath`~
19600 test -d \$dldir || mkdir -p \$dldir~
19601 $install_prog $dir/$dlname \$dldir/$dlname~
19602 chmod a+x \$dldir/$dlname'
19603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19604 dlpath=$dir/\$dldll~
19606 shlibpath_overrides_runpath=yes
19610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19615 # MinGW DLLs use traditional 'lib' prefix
19616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19619 # It is most probably a Windows format PATH printed by
19620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19621 # path with ; separators, and with drive letters. We can handle the
19622 # drive letters (cygwin fileutils understands them), so leave them,
19623 # especially as we might pass files found there to a mingw objdump,
19624 # which wouldn't understand a cygwinified path. Ahh.
19625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19631 # pw32 DLLs use 'pw' prefix rather than 'lib'
19632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19641 dynamic_linker='Win32 ld.exe'
19642 # FIXME: first we should search . and the directory the executable is in
19646 darwin* | rhapsody*)
19647 dynamic_linker="$host_os dyld"
19648 version_type=darwin
19651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19652 soname_spec='${libname}${release}${major}$shared_ext'
19653 shlibpath_overrides_runpath=yes
19654 shlibpath_var=DYLD_LIBRARY_PATH
19655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19665 soname_spec='${libname}${release}${shared_ext}$major'
19666 shlibpath_var=LD_LIBRARY_PATH
19673 freebsd* | dragonfly*)
19674 # DragonFly does not have aout. When/if they implement a new
19675 # versioning mechanism, adjust this.
19676 if test -x /usr/bin/objformat; then
19677 objformat=`/usr/bin/objformat`
19680 freebsd[123]*) objformat=aout ;;
19681 *) objformat=elf ;;
19684 version_type=freebsd-$objformat
19685 case $version_type in
19687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19696 shlibpath_var=LD_LIBRARY_PATH
19699 shlibpath_overrides_runpath=yes
19701 freebsd3.[01]* | freebsdelf3.[01]*)
19702 shlibpath_overrides_runpath=yes
19703 hardcode_into_libs=yes
19705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19707 shlibpath_overrides_runpath=no
19708 hardcode_into_libs=yes
19710 *) # from 4.6 on, and DragonFly
19711 shlibpath_overrides_runpath=yes
19712 hardcode_into_libs=yes
19721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19722 soname_spec='${libname}${release}${shared_ext}$major'
19723 shlibpath_var=LD_LIBRARY_PATH
19724 hardcode_into_libs=yes
19727 hpux9* | hpux10* | hpux11*)
19728 # Give a soname corresponding to the major version so that dld.sl refuses to
19729 # link against other versions.
19736 hardcode_into_libs=yes
19737 dynamic_linker="$host_os dld.so"
19738 shlibpath_var=LD_LIBRARY_PATH
19739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741 soname_spec='${libname}${release}${shared_ext}$major'
19742 if test "X$HPUX_IA64_MODE" = X32; then
19743 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19751 hardcode_into_libs=yes
19752 dynamic_linker="$host_os dld.sl"
19753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756 soname_spec='${libname}${release}${shared_ext}$major'
19757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19762 dynamic_linker="$host_os dld.sl"
19763 shlibpath_var=SHLIB_PATH
19764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766 soname_spec='${libname}${release}${shared_ext}$major'
19769 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19770 postinstall_cmds='chmod 555 $lib'
19777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19778 soname_spec='${libname}${release}${shared_ext}$major'
19779 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19780 shlibpath_var=LD_LIBRARY_PATH
19781 shlibpath_overrides_runpath=no
19782 hardcode_into_libs=yes
19785 irix5* | irix6* | nonstopux*)
19787 nonstopux*) version_type=nonstopux ;;
19789 if test "$lt_cv_prog_gnu_ld" = yes; then
19797 soname_spec='${libname}${release}${shared_ext}$major'
19798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19800 irix5* | nonstopux*)
19801 libsuff= shlibsuff=
19804 case $LD in # libtool.m4 will add one of these switches to LD
19805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19806 libsuff= shlibsuff= libmagic=32-bit;;
19807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19808 libsuff=32 shlibsuff=N32 libmagic=N32;;
19809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19811 *) libsuff= shlibsuff= libmagic=never-match;;
19815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19816 shlibpath_overrides_runpath=no
19817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19819 hardcode_into_libs=yes
19822 # No shared lib support for Linux oldld, aout, or coff.
19823 linux*oldld* | linux*aout* | linux*coff*)
19827 # This must be Linux ELF.
19828 linux* | k*bsd*-gnu)
19832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19835 shlibpath_var=LD_LIBRARY_PATH
19836 shlibpath_overrides_runpath=no
19837 # This implies no fast_install, which is unacceptable.
19838 # Some rework will be needed to allow for fast_install
19839 # before this can be enabled.
19840 hardcode_into_libs=yes
19842 # Append ld.so.conf contents to the search path
19843 if test -f /etc/ld.so.conf; then
19844 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' ' '`
19845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19848 # We used to test for /lib/ld.so.1 and disable shared libraries on
19849 # powerpc, because MkLinux only supported shared libraries with the
19850 # GNU dynamic linker. Since this was broken with cross compilers,
19851 # most powerpc-linux boxes support dynamic linking these days and
19852 # people can always --disable-shared, the test was removed, and we
19853 # assume the GNU/Linux dynamic linker is in use.
19854 dynamic_linker='GNU/Linux ld.so'
19861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19862 soname_spec='${libname}${release}${shared_ext}$major'
19863 shlibpath_var=LD_LIBRARY_PATH
19864 shlibpath_overrides_runpath=no
19865 hardcode_into_libs=yes
19866 dynamic_linker='NetBSD ld.elf_so'
19873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19876 dynamic_linker='NetBSD (a.out) ld.so'
19878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19879 soname_spec='${libname}${release}${shared_ext}$major'
19880 dynamic_linker='NetBSD ld.elf_so'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 shlibpath_overrides_runpath=yes
19884 hardcode_into_libs=yes
19889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19890 shlibpath_var=LD_LIBRARY_PATH
19891 shlibpath_overrides_runpath=yes
19898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19899 soname_spec='${libname}${release}${shared_ext}$major'
19900 shlibpath_var=LD_LIBRARY_PATH
19901 shlibpath_overrides_runpath=yes
19906 sys_lib_dlsearch_path_spec="/usr/lib"
19908 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19910 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19911 *) need_version=no ;;
19913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19915 shlibpath_var=LD_LIBRARY_PATH
19916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19918 openbsd2.[89] | openbsd2.[89].*)
19919 shlibpath_overrides_runpath=no
19922 shlibpath_overrides_runpath=yes
19926 shlibpath_overrides_runpath=yes
19931 libname_spec='$name'
19934 library_names_spec='$libname${shared_ext} $libname.a'
19935 dynamic_linker='OS/2 ld.exe'
19936 shlibpath_var=LIBPATH
19939 osf3* | osf4* | osf5*)
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19945 shlibpath_var=LD_LIBRARY_PATH
19946 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19947 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19959 soname_spec='${libname}${release}${shared_ext}$major'
19960 shlibpath_var=LD_LIBRARY_PATH
19961 shlibpath_overrides_runpath=yes
19962 hardcode_into_libs=yes
19963 # ldd complains unless libraries are executable
19964 postinstall_cmds='chmod +x $lib'
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19970 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19971 shlibpath_var=LD_LIBRARY_PATH
19972 shlibpath_overrides_runpath=yes
19973 if test "$with_gnu_ld" = yes; then
19981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19983 shlibpath_var=LD_LIBRARY_PATH
19984 case $host_vendor in
19986 shlibpath_overrides_runpath=no
19988 export_dynamic_flag_spec='${wl}-Blargedynsym'
19989 runpath_var=LD_RUN_PATH
19997 shlibpath_overrides_runpath=no
19998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20004 if test -d /usr/nec ;then
20006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20007 soname_spec='$libname${shared_ext}.$major'
20008 shlibpath_var=LD_LIBRARY_PATH
20012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20013 version_type=freebsd-elf
20016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20017 soname_spec='${libname}${release}${shared_ext}$major'
20018 shlibpath_var=LD_LIBRARY_PATH
20019 hardcode_into_libs=yes
20020 if test "$with_gnu_ld" = yes; then
20021 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20022 shlibpath_overrides_runpath=no
20024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20025 shlibpath_overrides_runpath=yes
20028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20032 sys_lib_dlsearch_path_spec='/usr/lib'
20037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20038 soname_spec='${libname}${release}${shared_ext}$major'
20039 shlibpath_var=LD_LIBRARY_PATH
20046 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20047 echo "${ECHO_T}$dynamic_linker" >&6; }
20048 test "$dynamic_linker" = no && can_build_shared=no
20050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20051 if test "$GCC" = yes; then
20052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20055 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20057 hardcode_action_GCJ=
20058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20059 test -n "$runpath_var_GCJ" || \
20060 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20062 # We can hardcode non-existant directories.
20063 if test "$hardcode_direct_GCJ" != no &&
20064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20065 # have to relink, otherwise we might link with an installed library
20066 # when we should be linking with a yet-to-be-installed one
20067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20068 test "$hardcode_minus_L_GCJ" != no; then
20069 # Linking always hardcodes the temporary library directory.
20070 hardcode_action_GCJ=relink
20072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20073 hardcode_action_GCJ=immediate
20076 # We cannot hardcode anything, or else we can only hardcode existing
20078 hardcode_action_GCJ=unsupported
20080 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20081 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20083 if test "$hardcode_action_GCJ" = relink; then
20084 # Fast installation is not supported
20085 enable_fast_install=no
20086 elif test "$shlibpath_overrides_runpath" = yes ||
20087 test "$enable_shared" = no; then
20088 # Fast installation is not necessary
20089 enable_fast_install=needless
20093 # The else clause should only fire when bootstrapping the
20094 # libtool distribution, otherwise you forgot to ship ltmain.sh
20095 # with your package, and you will get complaints that there are
20096 # no rules to generate ltmain.sh.
20097 if test -f "$ltmain"; then
20098 # See if we are running on zsh, and set the options which allow our commands through
20099 # without removal of \ escapes.
20100 if test -n "${ZSH_VERSION+set}" ; then
20101 setopt NO_GLOB_SUBST
20103 # Now quote all the things that may contain metacharacters while being
20104 # careful not to overquote the AC_SUBSTed values. We take copies of the
20105 # variables and quote the copies for generation of the libtool script.
20106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20110 deplibs_check_method reload_flag reload_cmds need_locks \
20111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20112 lt_cv_sys_global_symbol_to_c_name_address \
20113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20114 old_postinstall_cmds old_postuninstall_cmds \
20118 lt_prog_compiler_wl_GCJ \
20119 lt_prog_compiler_pic_GCJ \
20120 lt_prog_compiler_static_GCJ \
20121 lt_prog_compiler_no_builtin_flag_GCJ \
20122 export_dynamic_flag_spec_GCJ \
20123 thread_safe_flag_spec_GCJ \
20124 whole_archive_flag_spec_GCJ \
20125 enable_shared_with_static_runtimes_GCJ \
20126 old_archive_cmds_GCJ \
20127 old_archive_from_new_cmds_GCJ \
20128 predep_objects_GCJ \
20129 postdep_objects_GCJ \
20132 compiler_lib_search_path_GCJ \
20134 archive_expsym_cmds_GCJ \
20135 postinstall_cmds_GCJ \
20136 postuninstall_cmds_GCJ \
20137 old_archive_from_expsyms_cmds_GCJ \
20138 allow_undefined_flag_GCJ \
20139 no_undefined_flag_GCJ \
20140 export_symbols_cmds_GCJ \
20141 hardcode_libdir_flag_spec_GCJ \
20142 hardcode_libdir_flag_spec_ld_GCJ \
20143 hardcode_libdir_separator_GCJ \
20144 hardcode_automatic_GCJ \
20146 module_expsym_cmds_GCJ \
20147 lt_cv_prog_compiler_c_o_GCJ \
20148 fix_srcfile_path_GCJ \
20149 exclude_expsyms_GCJ \
20150 include_expsyms_GCJ; do
20153 old_archive_cmds_GCJ | \
20154 old_archive_from_new_cmds_GCJ | \
20155 archive_cmds_GCJ | \
20156 archive_expsym_cmds_GCJ | \
20157 module_cmds_GCJ | \
20158 module_expsym_cmds_GCJ | \
20159 old_archive_from_expsyms_cmds_GCJ | \
20160 export_symbols_cmds_GCJ | \
20161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20162 postinstall_cmds | postuninstall_cmds | \
20163 old_postinstall_cmds | old_postuninstall_cmds | \
20164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20165 # Double-quote double-evaled strings.
20166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20175 *'\$0 --fallback-echo"')
20176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20182 cat <<__EOF__ >> "$cfgfile"
20183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20187 # Shell to use when invoking shell scripts.
20190 # Whether or not to build shared libraries.
20191 build_libtool_libs=$enable_shared
20193 # Whether or not to build static libraries.
20194 build_old_libs=$enable_static
20196 # Whether or not to add -lc for building shared libraries.
20197 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20199 # Whether or not to disallow shared libs when runtime libs are static
20200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20202 # Whether or not to optimize for fast installation.
20203 fast_install=$enable_fast_install
20206 host_alias=$host_alias
20210 # The build system.
20211 build_alias=$build_alias
20215 # An echo program that does not interpret backslashes.
20220 AR_FLAGS=$lt_AR_FLAGS
20225 # LTCC compiler flags.
20226 LTCFLAGS=$lt_LTCFLAGS
20228 # A language-specific compiler.
20229 CC=$lt_compiler_GCJ
20231 # Is the compiler the GNU C compiler?
20237 # The linker used to build libraries.
20240 # Whether we need hard or soft links.
20243 # A BSD-compatible nm program.
20246 # A symbol stripping program
20249 # Used to examine libraries when file_magic_cmd begins "file"
20250 MAGIC_CMD=$MAGIC_CMD
20252 # Used on cygwin: DLL creation program.
20255 # Used on cygwin: object dumper.
20258 # Used on cygwin: assembler.
20261 # The name of the directory that contains temporary libtool files.
20264 # How to create reloadable object files.
20265 reload_flag=$lt_reload_flag
20266 reload_cmds=$lt_reload_cmds
20268 # How to pass a linker flag through the compiler.
20269 wl=$lt_lt_prog_compiler_wl_GCJ
20271 # Object file suffix (normally "o").
20272 objext="$ac_objext"
20274 # Old archive suffix (normally "a").
20277 # Shared library suffix (normally ".so").
20278 shrext_cmds='$shrext_cmds'
20280 # Executable file suffix (normally "").
20283 # Additional compiler flags for building library objects.
20284 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20287 # What is the maximum length of a command?
20288 max_cmd_len=$lt_cv_sys_max_cmd_len
20290 # Does compiler simultaneously support -c and -o options?
20291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20293 # Must we lock files when doing compilation?
20294 need_locks=$lt_need_locks
20296 # Do we need the lib prefix for modules?
20297 need_lib_prefix=$need_lib_prefix
20299 # Do we need a version for libraries?
20300 need_version=$need_version
20302 # Whether dlopen is supported.
20303 dlopen_support=$enable_dlopen
20305 # Whether dlopen of programs is supported.
20306 dlopen_self=$enable_dlopen_self
20308 # Whether dlopen of statically linked programs is supported.
20309 dlopen_self_static=$enable_dlopen_self_static
20311 # Compiler flag to prevent dynamic linking.
20312 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20314 # Compiler flag to turn off builtin functions.
20315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20317 # Compiler flag to allow reflexive dlopens.
20318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20320 # Compiler flag to generate shared objects directly from archives.
20321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20323 # Compiler flag to generate thread-safe objects.
20324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20326 # Library versioning type.
20327 version_type=$version_type
20329 # Format of library name prefix.
20330 libname_spec=$lt_libname_spec
20332 # List of archive names. First name is the real one, the rest are links.
20333 # The last name is the one that the linker finds with -lNAME.
20334 library_names_spec=$lt_library_names_spec
20336 # The coded name of the library, if different from the real name.
20337 soname_spec=$lt_soname_spec
20339 # Commands used to build and install an old-style archive.
20341 old_archive_cmds=$lt_old_archive_cmds_GCJ
20342 old_postinstall_cmds=$lt_old_postinstall_cmds
20343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20345 # Create an old-style archive from a shared archive.
20346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20348 # Create a temporary old-style archive to link instead of a shared archive.
20349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20351 # Commands used to build and install a shared archive.
20352 archive_cmds=$lt_archive_cmds_GCJ
20353 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20354 postinstall_cmds=$lt_postinstall_cmds
20355 postuninstall_cmds=$lt_postuninstall_cmds
20357 # Commands used to build a loadable module (assumed same as above if empty)
20358 module_cmds=$lt_module_cmds_GCJ
20359 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20361 # Commands to strip libraries.
20362 old_striplib=$lt_old_striplib
20363 striplib=$lt_striplib
20365 # Dependencies to place before the objects being linked to create a
20367 predep_objects=$lt_predep_objects_GCJ
20369 # Dependencies to place after the objects being linked to create a
20371 postdep_objects=$lt_postdep_objects_GCJ
20373 # Dependencies to place before the objects being linked to create a
20375 predeps=$lt_predeps_GCJ
20377 # Dependencies to place after the objects being linked to create a
20379 postdeps=$lt_postdeps_GCJ
20381 # The library search path used internally by the compiler when linking
20382 # a shared library.
20383 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20385 # Method to check whether dependent libraries are shared objects.
20386 deplibs_check_method=$lt_deplibs_check_method
20388 # Command to use when deplibs_check_method == file_magic.
20389 file_magic_cmd=$lt_file_magic_cmd
20391 # Flag that allows shared libraries with undefined symbols to be built.
20392 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20394 # Flag that forces no undefined symbols.
20395 no_undefined_flag=$lt_no_undefined_flag_GCJ
20397 # Commands used to finish a libtool library installation in a directory.
20398 finish_cmds=$lt_finish_cmds
20400 # Same as above, but a single script fragment to be evaled but not shown.
20401 finish_eval=$lt_finish_eval
20403 # Take the output of nm and produce a listing of raw symbols and C names.
20404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20406 # Transform the output of nm in a proper C declaration
20407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20409 # Transform the output of nm in a C name address pair
20410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20412 # This is the shared library runtime path variable.
20413 runpath_var=$runpath_var
20415 # This is the shared library path variable.
20416 shlibpath_var=$shlibpath_var
20418 # Is shlibpath searched before the hard-coded library search path?
20419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20421 # How to hardcode a shared library path into an executable.
20422 hardcode_action=$hardcode_action_GCJ
20424 # Whether we should hardcode library paths into libraries.
20425 hardcode_into_libs=$hardcode_into_libs
20427 # Flag to hardcode \$libdir into a binary during linking.
20428 # This must work even if \$libdir does not exist.
20429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20431 # If ld is used when linking, flag to hardcode \$libdir into
20432 # a binary during linking. This must work even if \$libdir does
20434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20436 # Whether we need a single -rpath flag with a separated argument.
20437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20440 # resulting binary.
20441 hardcode_direct=$hardcode_direct_GCJ
20443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20444 # resulting binary.
20445 hardcode_minus_L=$hardcode_minus_L_GCJ
20447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20448 # the resulting binary.
20449 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20451 # Set to yes if building a shared library automatically hardcodes DIR into the library
20452 # and all subsequent libraries and executables linked against it.
20453 hardcode_automatic=$hardcode_automatic_GCJ
20455 # Variables whose values should be saved in libtool wrapper scripts and
20456 # restored at relink time.
20457 variables_saved_for_relink="$variables_saved_for_relink"
20459 # Whether libtool must link a program against all its dependency libraries.
20460 link_all_deplibs=$link_all_deplibs_GCJ
20462 # Compile-time system search path for libraries
20463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20465 # Run-time system search path for libraries
20466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20468 # Fix the shell variable \$srcfile for the compiler.
20469 fix_srcfile_path=$lt_fix_srcfile_path
20471 # Set to yes if exported symbols are required.
20472 always_export_symbols=$always_export_symbols_GCJ
20474 # The commands to list exported symbols.
20475 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20477 # The commands to extract the exported symbol list from a shared archive.
20478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20480 # Symbols that should not be listed in the preloaded symbols.
20481 exclude_expsyms=$lt_exclude_expsyms_GCJ
20483 # Symbols that must always be exported.
20484 include_expsyms=$lt_include_expsyms_GCJ
20486 # ### END LIBTOOL TAG CONFIG: $tagname
20492 # If there is no Makefile yet, we rely on a make rule to execute
20493 # `config.status --recheck' to rerun these tests and create the
20494 # libtool script then.
20495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20496 if test -f "$ltmain_in"; then
20497 test -f Makefile && make "$ltmain"
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20518 # Source file extension for RC test sources.
20521 # Object file extension for compiled RC test sources.
20525 # Code to be used in simple compile tests
20526 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20528 # Code to be used in simple link tests
20529 lt_simple_link_test_code="$lt_simple_compile_test_code"
20531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20533 # If no C compiler was specified, use CC.
20536 # If no C compiler flags were specified, use CFLAGS.
20537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20539 # Allow CC to be a program name with arguments.
20543 # save warnings/boilerplate of simple test code
20544 ac_outfile=conftest.$ac_objext
20545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20547 _lt_compiler_boilerplate=`cat conftest.err`
20550 ac_outfile=conftest.$ac_objext
20551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553 _lt_linker_boilerplate=`cat conftest.err`
20557 # Allow CC to be a program name with arguments.
20562 for cc_temp in $compiler""; do
20564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20572 lt_cv_prog_compiler_c_o_RC=yes
20574 # The else clause should only fire when bootstrapping the
20575 # libtool distribution, otherwise you forgot to ship ltmain.sh
20576 # with your package, and you will get complaints that there are
20577 # no rules to generate ltmain.sh.
20578 if test -f "$ltmain"; then
20579 # See if we are running on zsh, and set the options which allow our commands through
20580 # without removal of \ escapes.
20581 if test -n "${ZSH_VERSION+set}" ; then
20582 setopt NO_GLOB_SUBST
20584 # Now quote all the things that may contain metacharacters while being
20585 # careful not to overquote the AC_SUBSTed values. We take copies of the
20586 # variables and quote the copies for generation of the libtool script.
20587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20591 deplibs_check_method reload_flag reload_cmds need_locks \
20592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20593 lt_cv_sys_global_symbol_to_c_name_address \
20594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20595 old_postinstall_cmds old_postuninstall_cmds \
20599 lt_prog_compiler_wl_RC \
20600 lt_prog_compiler_pic_RC \
20601 lt_prog_compiler_static_RC \
20602 lt_prog_compiler_no_builtin_flag_RC \
20603 export_dynamic_flag_spec_RC \
20604 thread_safe_flag_spec_RC \
20605 whole_archive_flag_spec_RC \
20606 enable_shared_with_static_runtimes_RC \
20607 old_archive_cmds_RC \
20608 old_archive_from_new_cmds_RC \
20609 predep_objects_RC \
20610 postdep_objects_RC \
20613 compiler_lib_search_path_RC \
20615 archive_expsym_cmds_RC \
20616 postinstall_cmds_RC \
20617 postuninstall_cmds_RC \
20618 old_archive_from_expsyms_cmds_RC \
20619 allow_undefined_flag_RC \
20620 no_undefined_flag_RC \
20621 export_symbols_cmds_RC \
20622 hardcode_libdir_flag_spec_RC \
20623 hardcode_libdir_flag_spec_ld_RC \
20624 hardcode_libdir_separator_RC \
20625 hardcode_automatic_RC \
20627 module_expsym_cmds_RC \
20628 lt_cv_prog_compiler_c_o_RC \
20629 fix_srcfile_path_RC \
20630 exclude_expsyms_RC \
20631 include_expsyms_RC; do
20634 old_archive_cmds_RC | \
20635 old_archive_from_new_cmds_RC | \
20636 archive_cmds_RC | \
20637 archive_expsym_cmds_RC | \
20639 module_expsym_cmds_RC | \
20640 old_archive_from_expsyms_cmds_RC | \
20641 export_symbols_cmds_RC | \
20642 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20643 postinstall_cmds | postuninstall_cmds | \
20644 old_postinstall_cmds | old_postuninstall_cmds | \
20645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20646 # Double-quote double-evaled strings.
20647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20656 *'\$0 --fallback-echo"')
20657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20663 cat <<__EOF__ >> "$cfgfile"
20664 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668 # Shell to use when invoking shell scripts.
20671 # Whether or not to build shared libraries.
20672 build_libtool_libs=$enable_shared
20674 # Whether or not to build static libraries.
20675 build_old_libs=$enable_static
20677 # Whether or not to add -lc for building shared libraries.
20678 build_libtool_need_lc=$archive_cmds_need_lc_RC
20680 # Whether or not to disallow shared libs when runtime libs are static
20681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20683 # Whether or not to optimize for fast installation.
20684 fast_install=$enable_fast_install
20687 host_alias=$host_alias
20691 # The build system.
20692 build_alias=$build_alias
20696 # An echo program that does not interpret backslashes.
20701 AR_FLAGS=$lt_AR_FLAGS
20706 # LTCC compiler flags.
20707 LTCFLAGS=$lt_LTCFLAGS
20709 # A language-specific compiler.
20712 # Is the compiler the GNU C compiler?
20718 # The linker used to build libraries.
20721 # Whether we need hard or soft links.
20724 # A BSD-compatible nm program.
20727 # A symbol stripping program
20730 # Used to examine libraries when file_magic_cmd begins "file"
20731 MAGIC_CMD=$MAGIC_CMD
20733 # Used on cygwin: DLL creation program.
20736 # Used on cygwin: object dumper.
20739 # Used on cygwin: assembler.
20742 # The name of the directory that contains temporary libtool files.
20745 # How to create reloadable object files.
20746 reload_flag=$lt_reload_flag
20747 reload_cmds=$lt_reload_cmds
20749 # How to pass a linker flag through the compiler.
20750 wl=$lt_lt_prog_compiler_wl_RC
20752 # Object file suffix (normally "o").
20753 objext="$ac_objext"
20755 # Old archive suffix (normally "a").
20758 # Shared library suffix (normally ".so").
20759 shrext_cmds='$shrext_cmds'
20761 # Executable file suffix (normally "").
20764 # Additional compiler flags for building library objects.
20765 pic_flag=$lt_lt_prog_compiler_pic_RC
20768 # What is the maximum length of a command?
20769 max_cmd_len=$lt_cv_sys_max_cmd_len
20771 # Does compiler simultaneously support -c and -o options?
20772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20774 # Must we lock files when doing compilation?
20775 need_locks=$lt_need_locks
20777 # Do we need the lib prefix for modules?
20778 need_lib_prefix=$need_lib_prefix
20780 # Do we need a version for libraries?
20781 need_version=$need_version
20783 # Whether dlopen is supported.
20784 dlopen_support=$enable_dlopen
20786 # Whether dlopen of programs is supported.
20787 dlopen_self=$enable_dlopen_self
20789 # Whether dlopen of statically linked programs is supported.
20790 dlopen_self_static=$enable_dlopen_self_static
20792 # Compiler flag to prevent dynamic linking.
20793 link_static_flag=$lt_lt_prog_compiler_static_RC
20795 # Compiler flag to turn off builtin functions.
20796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20798 # Compiler flag to allow reflexive dlopens.
20799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20801 # Compiler flag to generate shared objects directly from archives.
20802 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20804 # Compiler flag to generate thread-safe objects.
20805 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20807 # Library versioning type.
20808 version_type=$version_type
20810 # Format of library name prefix.
20811 libname_spec=$lt_libname_spec
20813 # List of archive names. First name is the real one, the rest are links.
20814 # The last name is the one that the linker finds with -lNAME.
20815 library_names_spec=$lt_library_names_spec
20817 # The coded name of the library, if different from the real name.
20818 soname_spec=$lt_soname_spec
20820 # Commands used to build and install an old-style archive.
20822 old_archive_cmds=$lt_old_archive_cmds_RC
20823 old_postinstall_cmds=$lt_old_postinstall_cmds
20824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20826 # Create an old-style archive from a shared archive.
20827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20829 # Create a temporary old-style archive to link instead of a shared archive.
20830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20832 # Commands used to build and install a shared archive.
20833 archive_cmds=$lt_archive_cmds_RC
20834 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20835 postinstall_cmds=$lt_postinstall_cmds
20836 postuninstall_cmds=$lt_postuninstall_cmds
20838 # Commands used to build a loadable module (assumed same as above if empty)
20839 module_cmds=$lt_module_cmds_RC
20840 module_expsym_cmds=$lt_module_expsym_cmds_RC
20842 # Commands to strip libraries.
20843 old_striplib=$lt_old_striplib
20844 striplib=$lt_striplib
20846 # Dependencies to place before the objects being linked to create a
20848 predep_objects=$lt_predep_objects_RC
20850 # Dependencies to place after the objects being linked to create a
20852 postdep_objects=$lt_postdep_objects_RC
20854 # Dependencies to place before the objects being linked to create a
20856 predeps=$lt_predeps_RC
20858 # Dependencies to place after the objects being linked to create a
20860 postdeps=$lt_postdeps_RC
20862 # The library search path used internally by the compiler when linking
20863 # a shared library.
20864 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20866 # Method to check whether dependent libraries are shared objects.
20867 deplibs_check_method=$lt_deplibs_check_method
20869 # Command to use when deplibs_check_method == file_magic.
20870 file_magic_cmd=$lt_file_magic_cmd
20872 # Flag that allows shared libraries with undefined symbols to be built.
20873 allow_undefined_flag=$lt_allow_undefined_flag_RC
20875 # Flag that forces no undefined symbols.
20876 no_undefined_flag=$lt_no_undefined_flag_RC
20878 # Commands used to finish a libtool library installation in a directory.
20879 finish_cmds=$lt_finish_cmds
20881 # Same as above, but a single script fragment to be evaled but not shown.
20882 finish_eval=$lt_finish_eval
20884 # Take the output of nm and produce a listing of raw symbols and C names.
20885 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20887 # Transform the output of nm in a proper C declaration
20888 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20890 # Transform the output of nm in a C name address pair
20891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20893 # This is the shared library runtime path variable.
20894 runpath_var=$runpath_var
20896 # This is the shared library path variable.
20897 shlibpath_var=$shlibpath_var
20899 # Is shlibpath searched before the hard-coded library search path?
20900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20902 # How to hardcode a shared library path into an executable.
20903 hardcode_action=$hardcode_action_RC
20905 # Whether we should hardcode library paths into libraries.
20906 hardcode_into_libs=$hardcode_into_libs
20908 # Flag to hardcode \$libdir into a binary during linking.
20909 # This must work even if \$libdir does not exist.
20910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20912 # If ld is used when linking, flag to hardcode \$libdir into
20913 # a binary during linking. This must work even if \$libdir does
20915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20917 # Whether we need a single -rpath flag with a separated argument.
20918 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20920 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20921 # resulting binary.
20922 hardcode_direct=$hardcode_direct_RC
20924 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20925 # resulting binary.
20926 hardcode_minus_L=$hardcode_minus_L_RC
20928 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20929 # the resulting binary.
20930 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20932 # Set to yes if building a shared library automatically hardcodes DIR into the library
20933 # and all subsequent libraries and executables linked against it.
20934 hardcode_automatic=$hardcode_automatic_RC
20936 # Variables whose values should be saved in libtool wrapper scripts and
20937 # restored at relink time.
20938 variables_saved_for_relink="$variables_saved_for_relink"
20940 # Whether libtool must link a program against all its dependency libraries.
20941 link_all_deplibs=$link_all_deplibs_RC
20943 # Compile-time system search path for libraries
20944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20946 # Run-time system search path for libraries
20947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20949 # Fix the shell variable \$srcfile for the compiler.
20950 fix_srcfile_path=$lt_fix_srcfile_path
20952 # Set to yes if exported symbols are required.
20953 always_export_symbols=$always_export_symbols_RC
20955 # The commands to list exported symbols.
20956 export_symbols_cmds=$lt_export_symbols_cmds_RC
20958 # The commands to extract the exported symbol list from a shared archive.
20959 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20961 # Symbols that should not be listed in the preloaded symbols.
20962 exclude_expsyms=$lt_exclude_expsyms_RC
20964 # Symbols that must always be exported.
20965 include_expsyms=$lt_include_expsyms_RC
20967 # ### END LIBTOOL TAG CONFIG: $tagname
20973 # If there is no Makefile yet, we rely on a make rule to execute
20974 # `config.status --recheck' to rerun these tests and create the
20975 # libtool script then.
20976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20977 if test -f "$ltmain_in"; then
20978 test -f Makefile && make "$ltmain"
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20995 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20996 { (exit 1); exit 1; }; }
21000 # Append the new tag name to the list of available tags.
21001 if test -n "$tagname" ; then
21002 available_tags="$available_tags $tagname"
21008 # Now substitute the updated list of available tags.
21009 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21010 mv "${ofile}T" "$ofile"
21014 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21015 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21016 { (exit 1); exit 1; }; }
21022 # This can be used to rebuild libtool when needed
21023 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21025 # Always use our own libtool.
21026 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21028 # Prevent multiple expansion
21049 if test "x$CC" != xcc; then
21050 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21051 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21053 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21054 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21056 set dummy $CC; ac_cc=`echo $2 |
21057 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21058 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21076 # Make sure it works both with $CC and with simple cc.
21077 # We do the test twice because some compilers refuse to overwrite an
21078 # existing .o file with -o, though they will create one.
21079 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21081 if { (case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_try") 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_try") 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); };
21100 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21101 if test "x$CC" != xcc; then
21102 # Test first that cc exists at all.
21103 if { ac_try='cc -c conftest.$ac_ext >&5'
21104 { (case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_try") 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21115 if { (case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_try") 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } &&
21124 test -f conftest2.$ac_objext && { (case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_try") 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); };
21137 # cc exists but doesn't like -o.
21138 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21143 eval ac_cv_prog_cc_${ac_cc}_c_o=no
21145 rm -f core conftest*
21148 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21149 { echo "$as_me:$LINENO: result: yes" >&5
21150 echo "${ECHO_T}yes" >&6; }
21152 { echo "$as_me:$LINENO: result: no" >&5
21153 echo "${ECHO_T}no" >&6; }
21155 cat >>confdefs.h <<\_ACEOF
21156 @%:@define NO_MINUS_C_MINUS_O 1
21161 # FIXME: we rely on the cache variable name because
21162 # there is no other way.
21164 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21165 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21166 # Losing compiler, so override with the script.
21167 # FIXME: It is wrong to rewrite CC.
21168 # But if we don't then we get into trouble of one sort or another.
21169 # A longer-term fix would be to have automake use am__CC in this case,
21170 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21171 CC="$am_aux_dir/compile $CC"
21175 if test "x$cross_compiling" = "xno"; then
21176 CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21178 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21183 if test -n "$ac_tool_prefix"; then
21184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21185 set dummy ${ac_tool_prefix}ar; ac_word=$2
21186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21188 if test "${ac_cv_prog_AR+set}" = set; then
21189 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 if test -n "$AR"; then
21192 ac_cv_prog_AR="$AR" # Let the user override the test.
21194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21198 test -z "$as_dir" && as_dir=.
21199 for ac_exec_ext in '' $ac_executable_extensions; do
21200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21201 ac_cv_prog_AR="${ac_tool_prefix}ar"
21202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21212 if test -n "$AR"; then
21213 { echo "$as_me:$LINENO: result: $AR" >&5
21214 echo "${ECHO_T}$AR" >&6; }
21216 { echo "$as_me:$LINENO: result: no" >&5
21217 echo "${ECHO_T}no" >&6; }
21222 if test -z "$ac_cv_prog_AR"; then
21224 # Extract the first word of "ar", so it can be a program name with args.
21225 set dummy ar; ac_word=$2
21226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 if test -n "$ac_ct_AR"; then
21232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235 for as_dir in $PATH
21238 test -z "$as_dir" && as_dir=.
21239 for ac_exec_ext in '' $ac_executable_extensions; do
21240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21241 ac_cv_prog_ac_ct_AR="ar"
21242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21252 if test -n "$ac_ct_AR"; then
21253 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21254 echo "${ECHO_T}$ac_ct_AR" >&6; }
21256 { echo "$as_me:$LINENO: result: no" >&5
21257 echo "${ECHO_T}no" >&6; }
21260 if test "x$ac_ct_AR" = x; then
21263 case $cross_compiling:$ac_tool_warned in
21265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21266 whose name does not start with the host triplet. If you think this
21267 configuration is useful to you, please write to autoconf@gnu.org." >&5
21268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21269 whose name does not start with the host triplet. If you think this
21270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21271 ac_tool_warned=yes ;;
21276 AR="$ac_cv_prog_AR"
21279 if test -n "$ac_tool_prefix"; then
21280 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21281 set dummy ${ac_tool_prefix}ld; ac_word=$2
21282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21284 if test "${ac_cv_prog_LD+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21287 if test -n "$LD"; then
21288 ac_cv_prog_LD="$LD" # Let the user override the test.
21290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21291 for as_dir in $PATH
21294 test -z "$as_dir" && as_dir=.
21295 for ac_exec_ext in '' $ac_executable_extensions; do
21296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21297 ac_cv_prog_LD="${ac_tool_prefix}ld"
21298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21308 if test -n "$LD"; then
21309 { echo "$as_me:$LINENO: result: $LD" >&5
21310 echo "${ECHO_T}$LD" >&6; }
21312 { echo "$as_me:$LINENO: result: no" >&5
21313 echo "${ECHO_T}no" >&6; }
21318 if test -z "$ac_cv_prog_LD"; then
21320 # Extract the first word of "ld", so it can be a program name with args.
21321 set dummy ld; ac_word=$2
21322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21324 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 if test -n "$ac_ct_LD"; then
21328 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21331 for as_dir in $PATH
21334 test -z "$as_dir" && as_dir=.
21335 for ac_exec_ext in '' $ac_executable_extensions; do
21336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21337 ac_cv_prog_ac_ct_LD="ld"
21338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21347 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21348 if test -n "$ac_ct_LD"; then
21349 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21350 echo "${ECHO_T}$ac_ct_LD" >&6; }
21352 { echo "$as_me:$LINENO: result: no" >&5
21353 echo "${ECHO_T}no" >&6; }
21356 if test "x$ac_ct_LD" = x; then
21359 case $cross_compiling:$ac_tool_warned in
21361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21362 whose name does not start with the host triplet. If you think this
21363 configuration is useful to you, please write to autoconf@gnu.org." >&5
21364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21365 whose name does not start with the host triplet. If you think this
21366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21367 ac_tool_warned=yes ;;
21372 LD="$ac_cv_prog_LD"
21376 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21377 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21378 if test "${ac_cv_header_stdc+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <stdlib.h>
21388 #include <stdarg.h>
21389 #include <string.h>
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.$ac_objext; then
21417 ac_cv_header_stdc=yes
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_cv_header_stdc=no
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 if test $ac_cv_header_stdc = yes; then
21428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 #include <string.h>
21438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21439 $EGREP "memchr" >/dev/null 2>&1; then
21442 ac_cv_header_stdc=no
21448 if test $ac_cv_header_stdc = yes; then
21449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <stdlib.h>
21459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21460 $EGREP "free" >/dev/null 2>&1; then
21463 ac_cv_header_stdc=no
21469 if test $ac_cv_header_stdc = yes; then
21470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21471 if test "$cross_compiling" = yes; then
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21481 #include <stdlib.h>
21482 #if ((' ' & 0x0FF) == 0x020)
21483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21486 # define ISLOWER(c) \
21487 (('a' <= (c) && (c) <= 'i') \
21488 || ('j' <= (c) && (c) <= 'r') \
21489 || ('s' <= (c) && (c) <= 'z'))
21490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21498 for (i = 0; i < 256; i++)
21499 if (XOR (islower (i), ISLOWER (i))
21500 || toupper (i) != TOUPPER (i))
21505 rm -f conftest$ac_exeext
21506 if { (ac_try="$ac_link"
21507 case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_link") 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21516 { (case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_try") 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21527 echo "$as_me: program exited with status $ac_status" >&5
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ( exit $ac_status )
21532 ac_cv_header_stdc=no
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21540 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21541 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21542 if test $ac_cv_header_stdc = yes; then
21544 cat >>confdefs.h <<\_ACEOF
21545 @%:@define STDC_HEADERS 1
21551 { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21552 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21553 if test "${knfsd_cv_glibc2+set}" = set; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 cat >conftest.$ac_ext <<_ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21563 #include <features.h>
21564 #if !defined(__GLIBC__)
21569 if { (ac_try="$ac_cpp conftest.$ac_ext"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } >/dev/null && {
21582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21585 knfsd_cv_glibc2=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21593 rm -f conftest.err conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21597 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21598 if test $knfsd_cv_glibc2 = yes; then
21599 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21600 CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21604 { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21605 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21606 if test "${knfsd_cv_bsd_signals+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 if test "$cross_compiling" = yes; then
21612 *linux*) knfsd_cv_bsd_signals=no;;
21613 *bsd*) knfsd_cv_bsd_signals=yes;;
21614 *) { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21615 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21616 { (exit 1); exit 1; }; };;
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21627 #include <signal.h>
21628 #include <unistd.h>
21629 #include <sys/wait.h>
21631 static int counter = 0;
21632 static RETSIGTYPE handler(int num) { counter++; }
21637 if ((s = fork()) < 0) return 1;
21639 if (wait(&s) < 0) return 1;
21640 return WIFSIGNALED(s)? 1 : 0;
21643 signal(SIGHUP, handler);
21644 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21645 return (counter == 2)? 0 : 1;
21649 rm -f conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_link") 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21660 { (case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_try") 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 knfsd_cv_bsd_signals=yes
21671 echo "$as_me: program exited with status $ac_status" >&5
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ( exit $ac_status )
21676 knfsd_cv_bsd_signals=no
21678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21683 { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21684 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21685 test $knfsd_cv_bsd_signals = yes &&
21686 cat >>confdefs.h <<\_ACEOF
21687 @%:@define HAVE_BSD_SIGNALS 1
21692 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21693 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21694 if test "${ac_cv_func_gethostbyname+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21705 #define gethostbyname innocuous_gethostbyname
21707 /* System header to define __stub macros and hopefully few prototypes,
21708 which can conflict with char gethostbyname (); below.
21709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21710 <limits.h> exists even on freestanding compilers. */
21713 # include <limits.h>
21715 # include <assert.h>
21718 #undef gethostbyname
21720 /* Override any GCC internal prototype to avoid an error.
21721 Use char because int might match the return type of a GCC
21722 builtin and then its argument prototype would still apply. */
21726 char gethostbyname ();
21727 /* The GNU C library defines this for functions which it implements
21728 to always fail with ENOSYS. Some functions are actually named
21729 something starting with __ and the normal name is an alias. */
21730 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21737 return gethostbyname ();
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_link") 2>conftest.er1
21751 grep -v '^ *+' conftest.er1 >conftest.err
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && {
21756 test -z "$ac_c_werror_flag" ||
21757 test ! -s conftest.err
21758 } && test -s conftest$ac_exeext &&
21759 $as_test_x conftest$ac_exeext; then
21760 ac_cv_func_gethostbyname=yes
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ac_cv_func_gethostbyname=no
21768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21769 conftest$ac_exeext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21772 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21773 if test $ac_cv_func_gethostbyname = yes; then
21776 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21777 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21778 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 ac_check_lib_save_LIBS=$LIBS
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21796 char gethostbyname ();
21800 return gethostbyname ();
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_link") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext &&
21822 $as_test_x conftest$ac_exeext; then
21823 ac_cv_lib_nsl_gethostbyname=yes
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 ac_cv_lib_nsl_gethostbyname=no
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21833 LIBS=$ac_check_lib_save_LIBS
21835 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21836 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21837 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21845 { echo "$as_me:$LINENO: checking for connect" >&5
21846 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21847 if test "${ac_cv_func_connect+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 cat >conftest.$ac_ext <<_ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21858 #define connect innocuous_connect
21860 /* System header to define __stub macros and hopefully few prototypes,
21861 which can conflict with char connect (); below.
21862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21863 <limits.h> exists even on freestanding compilers. */
21866 # include <limits.h>
21868 # include <assert.h>
21873 /* Override any GCC internal prototype to avoid an error.
21874 Use char because int might match the return type of a GCC
21875 builtin and then its argument prototype would still apply. */
21880 /* The GNU C library defines this for functions which it implements
21881 to always fail with ENOSYS. Some functions are actually named
21882 something starting with __ and the normal name is an alias. */
21883 #if defined __stub_connect || defined __stub___connect
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } && {
21909 test -z "$ac_c_werror_flag" ||
21910 test ! -s conftest.err
21911 } && test -s conftest$ac_exeext &&
21912 $as_test_x conftest$ac_exeext; then
21913 ac_cv_func_connect=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_cv_func_connect=no
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21922 conftest$ac_exeext conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21925 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21926 if test $ac_cv_func_connect = yes; then
21929 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21930 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21931 if test "${ac_cv_lib_socket_connect+set}" = set; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lsocket $LIBNSL $LIBS"
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21943 /* Override any GCC internal prototype to avoid an error.
21944 Use char because int might match the return type of a GCC
21945 builtin and then its argument prototype would still apply. */
21958 rm -f conftest.$ac_objext conftest$ac_exeext
21959 if { (ac_try="$ac_link"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_link") 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest$ac_exeext &&
21975 $as_test_x conftest$ac_exeext; then
21976 ac_cv_lib_socket_connect=yes
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_cv_lib_socket_connect=no
21984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21985 conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS
21988 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21989 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21990 if test $ac_cv_lib_socket_connect = yes; then
21991 LIBSOCKET="-lsocket"
21993 { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21994 echo "$as_me: error: Function 'socket' not found." >&2;}
21995 { (exit 1); exit 1; }; }
22001 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22002 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22003 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 ac_check_lib_save_LIBS=$LIBS
22007 LIBS="-lcrypt $LIBS"
22008 cat >conftest.$ac_ext <<_ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22015 /* Override any GCC internal prototype to avoid an error.
22016 Use char because int might match the return type of a GCC
22017 builtin and then its argument prototype would still apply. */
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_link") 2>conftest.er1
22039 grep -v '^ *+' conftest.er1 >conftest.err
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && {
22044 test -z "$ac_c_werror_flag" ||
22045 test ! -s conftest.err
22046 } && test -s conftest$ac_exeext &&
22047 $as_test_x conftest$ac_exeext; then
22048 ac_cv_lib_crypt_crypt=yes
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 ac_cv_lib_crypt_crypt=no
22056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22057 conftest$ac_exeext conftest.$ac_ext
22058 LIBS=$ac_check_lib_save_LIBS
22060 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22061 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22062 if test $ac_cv_lib_crypt_crypt = yes; then
22066 if test "$enable_nfsv4" = yes; then
22067 { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22068 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22069 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22072 ac_check_lib_save_LIBS=$LIBS
22073 LIBS="-levent $LIBS"
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22081 /* Override any GCC internal prototype to avoid an error.
22082 Use char because int might match the return type of a GCC
22083 builtin and then its argument prototype would still apply. */
22087 char event_dispatch ();
22091 return event_dispatch ();
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_link") 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && {
22110 test -z "$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 } && test -s conftest$ac_exeext &&
22113 $as_test_x conftest$ac_exeext; then
22114 ac_cv_lib_event_event_dispatch=yes
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ac_cv_lib_event_event_dispatch=no
22122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22123 conftest$ac_exeext conftest.$ac_ext
22124 LIBS=$ac_check_lib_save_LIBS
22126 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22127 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22128 if test $ac_cv_lib_event_event_dispatch = yes; then
22131 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22132 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22133 { (exit 1); exit 1; }; }
22136 { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22137 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22138 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 ac_check_lib_save_LIBS=$LIBS
22142 LIBS="-lnfsidmap $LIBS"
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22150 /* Override any GCC internal prototype to avoid an error.
22151 Use char because int might match the return type of a GCC
22152 builtin and then its argument prototype would still apply. */
22156 char nfs4_init_name_mapping ();
22160 return nfs4_init_name_mapping ();
22165 rm -f conftest.$ac_objext conftest$ac_exeext
22166 if { (ac_try="$ac_link"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_link") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } && {
22179 test -z "$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22181 } && test -s conftest$ac_exeext &&
22182 $as_test_x conftest$ac_exeext; then
22183 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22185 echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22188 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192 conftest$ac_exeext conftest.$ac_ext
22193 LIBS=$ac_check_lib_save_LIBS
22195 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22196 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22197 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22200 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22201 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22202 { (exit 1); exit 1; }; }
22206 for ac_header in event.h
22208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 ac_res=`eval echo '${'$as_ac_Header'}'`
22216 { echo "$as_me:$LINENO: result: $ac_res" >&5
22217 echo "${ECHO_T}$ac_res" >&6; }
22219 # Is the header compilable?
22220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22222 cat >conftest.$ac_ext <<_ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22228 $ac_includes_default
22229 @%:@include <$ac_header>
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235 *) ac_try_echo=$ac_try;;
22237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22238 (eval "$ac_compile") 2>conftest.er1
22240 grep -v '^ *+' conftest.er1 >conftest.err
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && {
22245 test -z "$ac_c_werror_flag" ||
22246 test ! -s conftest.err
22247 } && test -s conftest.$ac_objext; then
22248 ac_header_compiler=yes
22250 echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22253 ac_header_compiler=no
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22258 echo "${ECHO_T}$ac_header_compiler" >&6; }
22260 # Is the header present?
22261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22263 cat >conftest.$ac_ext <<_ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 @%:@include <$ac_header>
22271 if { (ac_try="$ac_cpp conftest.$ac_ext"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } >/dev/null && {
22284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22287 ac_header_preproc=yes
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22292 ac_header_preproc=no
22295 rm -f conftest.err conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22297 echo "${ECHO_T}$ac_header_preproc" >&6; }
22299 # So? What about this header?
22300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22306 ac_header_preproc=yes
22309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22316 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22322 @%:@@%:@ ------------------------------- @%:@@%:@
22323 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22324 @%:@@%:@ ------------------------------- @%:@@%:@
22326 ) | sed "s/^/$as_me: WARNING: /" >&2
22329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 eval "$as_ac_Header=\$ac_header_preproc"
22336 ac_res=`eval echo '${'$as_ac_Header'}'`
22337 { echo "$as_me:$LINENO: result: $ac_res" >&5
22338 echo "${ECHO_T}$ac_res" >&6; }
22341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22342 cat >>confdefs.h <<_ACEOF
22343 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22347 { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22348 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22349 { (exit 1); exit 1; }; }
22355 for ac_header in nfsidmap.h
22357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 ac_res=`eval echo '${'$as_ac_Header'}'`
22365 { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22368 # Is the header compilable?
22369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22371 cat >conftest.$ac_ext <<_ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 $ac_includes_default
22378 @%:@include <$ac_header>
22380 rm -f conftest.$ac_objext
22381 if { (ac_try="$ac_compile"
22382 case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_compile") 2>conftest.er1
22389 grep -v '^ *+' conftest.er1 >conftest.err
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && {
22394 test -z "$ac_c_werror_flag" ||
22395 test ! -s conftest.err
22396 } && test -s conftest.$ac_objext; then
22397 ac_header_compiler=yes
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 ac_header_compiler=no
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22407 echo "${ECHO_T}$ac_header_compiler" >&6; }
22409 # Is the header present?
22410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22412 cat >conftest.$ac_ext <<_ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 @%:@include <$ac_header>
22420 if { (ac_try="$ac_cpp conftest.$ac_ext"
22421 case "(($ac_try" in
22422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423 *) ac_try_echo=$ac_try;;
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22428 grep -v '^ *+' conftest.er1 >conftest.err
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } >/dev/null && {
22433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22434 test ! -s conftest.err
22436 ac_header_preproc=yes
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22441 ac_header_preproc=no
22444 rm -f conftest.err conftest.$ac_ext
22445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22446 echo "${ECHO_T}$ac_header_preproc" >&6; }
22448 # So? What about this header?
22449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22455 ac_header_preproc=yes
22458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22471 @%:@@%:@ ------------------------------- @%:@@%:@
22472 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22473 @%:@@%:@ ------------------------------- @%:@@%:@
22475 ) | sed "s/^/$as_me: WARNING: /" >&2
22478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 eval "$as_ac_Header=\$ac_header_preproc"
22485 ac_res=`eval echo '${'$as_ac_Header'}'`
22486 { echo "$as_me:$LINENO: result: $ac_res" >&5
22487 echo "${ECHO_T}$ac_res" >&6; }
22490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22491 cat >>confdefs.h <<_ACEOF
22492 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22496 { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22497 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22498 { (exit 1); exit 1; }; }
22503 if test "$enable_gss" = yes; then
22506 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22507 if test -n "$ac_tool_prefix"; then
22508 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22509 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22512 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 case $PKG_CONFIG in
22517 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22521 for as_dir in $PATH
22524 test -z "$as_dir" && as_dir=.
22525 for ac_exec_ext in '' $ac_executable_extensions; do
22526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22527 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22539 if test -n "$PKG_CONFIG"; then
22540 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22541 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22543 { echo "$as_me:$LINENO: result: no" >&5
22544 echo "${ECHO_T}no" >&6; }
22549 if test -z "$ac_cv_path_PKG_CONFIG"; then
22550 ac_pt_PKG_CONFIG=$PKG_CONFIG
22551 # Extract the first word of "pkg-config", so it can be a program name with args.
22552 set dummy pkg-config; ac_word=$2
22553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22555 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 case $ac_pt_PKG_CONFIG in
22560 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22564 for as_dir in $PATH
22567 test -z "$as_dir" && as_dir=.
22568 for ac_exec_ext in '' $ac_executable_extensions; do
22569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22570 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22581 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22582 if test -n "$ac_pt_PKG_CONFIG"; then
22583 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22584 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22586 { echo "$as_me:$LINENO: result: no" >&5
22587 echo "${ECHO_T}no" >&6; }
22590 if test "x$ac_pt_PKG_CONFIG" = x; then
22593 case $cross_compiling:$ac_tool_warned in
22595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22596 whose name does not start with the host triplet. If you think this
22597 configuration is useful to you, please write to autoconf@gnu.org." >&5
22598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22599 whose name does not start with the host triplet. If you think this
22600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22601 ac_tool_warned=yes ;;
22603 PKG_CONFIG=$ac_pt_PKG_CONFIG
22606 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22610 if test -n "$PKG_CONFIG"; then
22611 _pkg_min_version=0.9.0
22612 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22613 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22614 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22615 { echo "$as_me:$LINENO: result: yes" >&5
22616 echo "${ECHO_T}yes" >&6; }
22618 { echo "$as_me:$LINENO: result: no" >&5
22619 echo "${ECHO_T}no" >&6; }
22626 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22627 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22629 if test -n "$PKG_CONFIG"; then
22630 if test -n "$RPCSECGSS_CFLAGS"; then
22631 pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22633 if test -n "$PKG_CONFIG" && \
22634 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22635 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; then
22639 pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22647 if test -n "$PKG_CONFIG"; then
22648 if test -n "$RPCSECGSS_LIBS"; then
22649 pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22651 if test -n "$PKG_CONFIG" && \
22652 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22653 ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); }; then
22657 pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22668 if test $pkg_failed = yes; then
22670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22671 _pkg_short_errors_supported=yes
22673 _pkg_short_errors_supported=no
22675 if test $_pkg_short_errors_supported = yes; then
22676 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22678 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22680 # Put the nasty error message in config.log where it belongs
22681 echo "$RPCSECGSS_PKG_ERRORS" >&5
22683 { echo "$as_me:$LINENO: result: no" >&5
22684 echo "${ECHO_T}no" >&6; }
22685 { { 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
22686 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;}
22687 { (exit 1); exit 1; }; }
22690 elif test $pkg_failed = untried; then
22691 { { 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
22692 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;}
22693 { (exit 1); exit 1; }; }
22697 RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22698 RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22699 { echo "$as_me:$LINENO: result: yes" >&5
22700 echo "${ECHO_T}yes" >&6; }
22705 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22706 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22708 if test -n "$PKG_CONFIG"; then
22709 if test -n "$GSSAPI_CFLAGS"; then
22710 pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22712 if test -n "$PKG_CONFIG" && \
22713 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22714 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; then
22718 pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22726 if test -n "$PKG_CONFIG"; then
22727 if test -n "$GSSAPI_LIBS"; then
22728 pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22730 if test -n "$PKG_CONFIG" && \
22731 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22732 ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; then
22736 pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22747 if test $pkg_failed = yes; then
22749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22750 _pkg_short_errors_supported=yes
22752 _pkg_short_errors_supported=no
22754 if test $_pkg_short_errors_supported = yes; then
22755 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22757 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22759 # Put the nasty error message in config.log where it belongs
22760 echo "$GSSAPI_PKG_ERRORS" >&5
22762 { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22766 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22767 installed software in a non-standard prefix.
22769 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22770 and GSSAPI_LIBS to avoid the need to call pkg-config.
22771 See the pkg-config man page for more details.
22773 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22778 installed software in a non-standard prefix.
22780 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22781 and GSSAPI_LIBS to avoid the need to call pkg-config.
22782 See the pkg-config man page for more details.
22784 { (exit 1); exit 1; }; }
22785 elif test $pkg_failed = untried; then
22786 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22787 is in your PATH or set the PKG_CONFIG environment variable to the full
22788 path to pkg-config.
22790 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22791 and GSSAPI_LIBS to avoid the need to call pkg-config.
22792 See the pkg-config man page for more details.
22794 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22795 See \`config.log' for more details." >&5
22796 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22797 is in your PATH or set the PKG_CONFIG environment variable to the full
22798 path to pkg-config.
22800 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22801 and GSSAPI_LIBS to avoid the need to call pkg-config.
22802 See the pkg-config man page for more details.
22804 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22805 See \`config.log' for more details." >&2;}
22806 { (exit 1); exit 1; }; }
22808 GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22809 GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22810 { echo "$as_me:$LINENO: result: yes" >&5
22811 echo "${ECHO_T}yes" >&6; }
22817 if test "$knfsd_cv_glibc2" = no; then
22818 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22819 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22820 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 ac_check_lib_save_LIBS=$LIBS
22825 cat >conftest.$ac_ext <<_ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22832 /* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22847 rm -f conftest.$ac_objext conftest$ac_exeext
22848 if { (ac_try="$ac_link"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_link") 2>conftest.er1
22856 grep -v '^ *+' conftest.er1 >conftest.err
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest$ac_exeext &&
22864 $as_test_x conftest$ac_exeext; then
22865 ac_cv_lib_bsd_daemon=yes
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 ac_cv_lib_bsd_daemon=no
22873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22874 conftest$ac_exeext conftest.$ac_ext
22875 LIBS=$ac_check_lib_save_LIBS
22877 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22878 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22879 if test $ac_cv_lib_bsd_daemon = yes; then
22885 if test "$choose_blkid" != no; then
22886 { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22887 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22888 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 ac_check_lib_save_LIBS=$LIBS
22892 LIBS="-lblkid $LIBS"
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22900 /* Override any GCC internal prototype to avoid an error.
22901 Use char because int might match the return type of a GCC
22902 builtin and then its argument prototype would still apply. */
22906 char blkid_get_library_version ();
22910 return blkid_get_library_version ();
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_link") 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest$ac_exeext &&
22932 $as_test_x conftest$ac_exeext; then
22933 ac_cv_lib_blkid_blkid_get_library_version=yes
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_cv_lib_blkid_blkid_get_library_version=no
22941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942 conftest$ac_exeext conftest.$ac_ext
22943 LIBS=$ac_check_lib_save_LIBS
22945 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22946 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22947 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22950 { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22951 echo "$as_me: error: libblkid needed" >&2;}
22952 { (exit 1); exit 1; }; }
22955 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22956 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22957 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22958 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22966 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 @%:@include <blkid/blkid.h>
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23007 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 @%:@include <blkid/blkid.h>
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } >/dev/null && {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23032 ac_header_preproc=yes
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_header_preproc=no
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23051 ac_header_preproc=yes
23054 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23067 @%:@@%:@ ------------------------------- @%:@@%:@
23068 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23069 @%:@@%:@ ------------------------------- @%:@@%:@
23071 ) | sed "s/^/$as_me: WARNING: /" >&2
23074 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23075 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23076 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 ac_cv_header_blkid_blkid_h=$ac_header_preproc
23081 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23082 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23085 if test $ac_cv_header_blkid_blkid_h = yes; then
23088 { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23089 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23090 { (exit 1); exit 1; }; }
23095 { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23096 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23097 if test "${libblkid_is_recent+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23103 if test "$cross_compiling" = yes; then
23104 libblkid_is_recent=unknown
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 #include <blkid/blkid.h>
23116 int vers = blkid_get_library_version(0, 0);
23117 return vers >= 140 ? 0 : 1;
23121 rm -f conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_link") 2>&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23132 { (case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_try") 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 libblkid_is_recent=yes
23143 echo "$as_me: program exited with status $ac_status" >&5
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ( exit $ac_status )
23148 libblkid_is_recent=no
23150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23157 { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23158 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23160 if test $choose_blkid = yes; then
23162 test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23163 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23165 if test $libblkid_is_recent = yes
23168 { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23169 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23173 cat >>confdefs.h <<_ACEOF
23174 @%:@define USE_BLKID $use_blkid
23183 if test "$enable_gss" = yes; then
23185 for ac_header in nfsidmap.h
23187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23194 ac_res=`eval echo '${'$as_ac_Header'}'`
23195 { echo "$as_me:$LINENO: result: $ac_res" >&5
23196 echo "${ECHO_T}$ac_res" >&6; }
23198 # Is the header compilable?
23199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 @%:@include <$ac_header>
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 ac_header_compiler=yes
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ac_header_compiler=no
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23237 echo "${ECHO_T}$ac_header_compiler" >&6; }
23239 # Is the header present?
23240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 @%:@include <$ac_header>
23250 if { (ac_try="$ac_cpp conftest.$ac_ext"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23258 grep -v '^ *+' conftest.er1 >conftest.err
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } >/dev/null && {
23263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23264 test ! -s conftest.err
23266 ac_header_preproc=yes
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23271 ac_header_preproc=no
23274 rm -f conftest.err conftest.$ac_ext
23275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23276 echo "${ECHO_T}$ac_header_preproc" >&6; }
23278 # So? What about this header?
23279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23285 ac_header_preproc=yes
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23301 @%:@@%:@ ------------------------------- @%:@@%:@
23302 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23303 @%:@@%:@ ------------------------------- @%:@@%:@
23305 ) | sed "s/^/$as_me: WARNING: /" >&2
23308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23313 eval "$as_ac_Header=\$ac_header_preproc"
23315 ac_res=`eval echo '${'$as_ac_Header'}'`
23316 { echo "$as_me:$LINENO: result: $ac_res" >&5
23317 echo "${ECHO_T}$ac_res" >&6; }
23320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23321 cat >>confdefs.h <<_ACEOF
23322 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23326 { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23327 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23328 { (exit 1); exit 1; }; }
23334 for ac_header in spkm3.h
23336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23343 ac_res=`eval echo '${'$as_ac_Header'}'`
23344 { echo "$as_me:$LINENO: result: $ac_res" >&5
23345 echo "${ECHO_T}$ac_res" >&6; }
23347 # Is the header compilable?
23348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23350 cat >conftest.$ac_ext <<_ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356 $ac_includes_default
23357 @%:@include <$ac_header>
23359 rm -f conftest.$ac_objext
23360 if { (ac_try="$ac_compile"
23361 case "(($ac_try" in
23362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363 *) ac_try_echo=$ac_try;;
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366 (eval "$ac_compile") 2>conftest.er1
23368 grep -v '^ *+' conftest.er1 >conftest.err
23370 cat conftest.err >&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && {
23373 test -z "$ac_c_werror_flag" ||
23374 test ! -s conftest.err
23375 } && test -s conftest.$ac_objext; then
23376 ac_header_compiler=yes
23378 echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23381 ac_header_compiler=no
23384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23386 echo "${ECHO_T}$ac_header_compiler" >&6; }
23388 # Is the header present?
23389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 @%:@include <$ac_header>
23399 if { (ac_try="$ac_cpp conftest.$ac_ext"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23407 grep -v '^ *+' conftest.er1 >conftest.err
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } >/dev/null && {
23412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23415 ac_header_preproc=yes
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 ac_header_preproc=no
23423 rm -f conftest.err conftest.$ac_ext
23424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23425 echo "${ECHO_T}$ac_header_preproc" >&6; }
23427 # So? What about this header?
23428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23434 ac_header_preproc=yes
23437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23450 @%:@@%:@ ------------------------------- @%:@@%:@
23451 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23452 @%:@@%:@ ------------------------------- @%:@@%:@
23454 ) | sed "s/^/$as_me: WARNING: /" >&2
23457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23462 eval "$as_ac_Header=\$ac_header_preproc"
23464 ac_res=`eval echo '${'$as_ac_Header'}'`
23465 { echo "$as_me:$LINENO: result: $ac_res" >&5
23466 echo "${ECHO_T}$ac_res" >&6; }
23469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23470 cat >>confdefs.h <<_ACEOF
23471 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23475 { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23476 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23481 { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23482 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23483 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23484 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 ac_check_lib_save_LIBS=$LIBS
23487 LIBS="-lnfsidmap $LIBS"
23488 cat >conftest.$ac_ext <<_ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23495 /* Override any GCC internal prototype to avoid an error.
23496 Use char because int might match the return type of a GCC
23497 builtin and then its argument prototype would still apply. */
23501 char nfs4_set_debug ();
23505 return nfs4_set_debug ();
23510 rm -f conftest.$ac_objext conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_link") 2>conftest.er1
23519 grep -v '^ *+' conftest.er1 >conftest.err
23521 cat conftest.err >&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && {
23524 test -z "$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 } && test -s conftest$ac_exeext &&
23527 $as_test_x conftest$ac_exeext; then
23528 ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_cv_lib_nfsidmap_nfs4_set_debug=no
23536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23537 conftest$ac_exeext conftest.$ac_ext
23538 LIBS=$ac_check_lib_save_LIBS
23540 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23541 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23542 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23544 cat >>confdefs.h <<\_ACEOF
23545 @%:@define HAVE_NFS4_SET_DEBUG 1
23552 { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23553 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23555 # Check whether --with-krb5 was given.
23556 if test "${with_krb5+set}" = set; then
23557 withval=$with_krb5; case "$withval" in
23562 krb5_with="$withval"
23569 for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23570 /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23572 if test -f $dir/bin/krb5-config; then
23573 K5CONFIG=$dir/bin/krb5-config
23574 elif test -f "/usr/kerberos/bin/krb5-config"; then
23575 K5CONFIG="/usr/kerberos/bin/krb5-config"
23576 elif test -f "/usr/lib/mit/bin/krb5-config"; then
23577 K5CONFIG="/usr/lib/mit/bin/krb5-config"
23579 if test "$K5CONFIG" != ""; then
23580 KRBCFLAGS=`$K5CONFIG --cflags`
23581 KRBLIBS=`$K5CONFIG --libs gssapi`
23582 K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23584 cat >>confdefs.h <<_ACEOF
23585 @%:@define KRB5_VERSION $K5VERS
23588 if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23589 \( -f $dir/lib/libgssapi_krb5.a -o \
23590 -f $dir/lib64/libgssapi_krb5.a -o \
23591 -f $dir/lib64/libgssapi_krb5.so -o \
23592 -f $dir/lib/libgssapi_krb5.so \) ; then
23594 cat >>confdefs.h <<\_ACEOF
23595 @%:@define HAVE_KRB5 1
23599 if test $K5VERS -le 131; then
23601 cat >>confdefs.h <<\_ACEOF
23602 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23606 gssapi_lib=gssapi_krb5
23608 elif test \( -f $dir/include/heim_err.h -o\
23609 -f $dir/include/heimdal/heim_err.h \) -a \
23610 -f $dir/lib/libroken.a; then
23612 cat >>confdefs.h <<\_ACEOF
23613 @%:@define HAVE_HEIMDAL 1
23622 if test "x$KRBDIR" = "x"; then
23623 if test "x$krb5_with" = "x"; then
23624 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23625 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23626 { (exit 1); exit 1; }; }
23628 { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23629 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23630 { (exit 1); exit 1; }; }
23633 { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23634 echo "${ECHO_T}$KRBDIR" >&6; }
23636 echo "The current KRBDIR is $KRBDIR"
23637 if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23638 -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23640 elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23643 KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23646 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23647 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23648 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23649 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 ac_check_lib_save_LIBS=$LIBS
23653 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23654 cat >conftest.$ac_ext <<_ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23661 /* Override any GCC internal prototype to avoid an error.
23662 Use char because int might match the return type of a GCC
23663 builtin and then its argument prototype would still apply. */
23667 char gss_krb5_export_lucid_sec_context ();
23671 return gss_krb5_export_lucid_sec_context ();
23676 rm -f conftest.$ac_objext conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_link") 2>conftest.er1
23685 grep -v '^ *+' conftest.er1 >conftest.err
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest$ac_exeext &&
23693 $as_test_x conftest$ac_exeext; then
23694 eval "$as_ac_Lib=yes"
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 eval "$as_ac_Lib=no"
23702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23703 conftest$ac_exeext conftest.$ac_ext
23704 LIBS=$ac_check_lib_save_LIBS
23706 ac_res=`eval echo '${'$as_ac_Lib'}'`
23707 { echo "$as_me:$LINENO: result: $ac_res" >&5
23708 echo "${ECHO_T}$ac_res" >&6; }
23709 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23711 cat >>confdefs.h <<\_ACEOF
23712 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23717 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23718 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23719 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23720 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 ac_check_lib_save_LIBS=$LIBS
23724 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23725 cat >conftest.$ac_ext <<_ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23732 /* Override any GCC internal prototype to avoid an error.
23733 Use char because int might match the return type of a GCC
23734 builtin and then its argument prototype would still apply. */
23738 char gss_krb5_set_allowable_enctypes ();
23742 return gss_krb5_set_allowable_enctypes ();
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>conftest.er1
23756 grep -v '^ *+' conftest.er1 >conftest.err
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest$ac_exeext &&
23764 $as_test_x conftest$ac_exeext; then
23765 eval "$as_ac_Lib=yes"
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 eval "$as_ac_Lib=no"
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23777 ac_res=`eval echo '${'$as_ac_Lib'}'`
23778 { echo "$as_me:$LINENO: result: $ac_res" >&5
23779 echo "${ECHO_T}$ac_res" >&6; }
23780 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23782 cat >>confdefs.h <<\_ACEOF
23783 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23788 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23789 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23790 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23791 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 ac_check_lib_save_LIBS=$LIBS
23795 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23796 cat >conftest.$ac_ext <<_ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23803 /* Override any GCC internal prototype to avoid an error.
23804 Use char because int might match the return type of a GCC
23805 builtin and then its argument prototype would still apply. */
23809 char gss_krb5_ccache_name ();
23813 return gss_krb5_ccache_name ();
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825 (eval "$ac_link") 2>conftest.er1
23827 grep -v '^ *+' conftest.er1 >conftest.err
23829 cat conftest.err >&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } && {
23832 test -z "$ac_c_werror_flag" ||
23833 test ! -s conftest.err
23834 } && test -s conftest$ac_exeext &&
23835 $as_test_x conftest$ac_exeext; then
23836 eval "$as_ac_Lib=yes"
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 eval "$as_ac_Lib=no"
23844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845 conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23848 ac_res=`eval echo '${'$as_ac_Lib'}'`
23849 { echo "$as_me:$LINENO: result: $ac_res" >&5
23850 echo "${ECHO_T}$ac_res" >&6; }
23851 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23853 cat >>confdefs.h <<\_ACEOF
23854 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23860 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23861 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23862 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23863 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23866 ac_check_lib_save_LIBS=$LIBS
23867 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23868 cat >conftest.$ac_ext <<_ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23875 /* Override any GCC internal prototype to avoid an error.
23876 Use char because int might match the return type of a GCC
23877 builtin and then its argument prototype would still apply. */
23881 char krb5_get_error_message ();
23885 return krb5_get_error_message ();
23890 rm -f conftest.$ac_objext conftest$ac_exeext
23891 if { (ac_try="$ac_link"
23892 case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897 (eval "$ac_link") 2>conftest.er1
23899 grep -v '^ *+' conftest.er1 >conftest.err
23901 cat conftest.err >&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } && {
23904 test -z "$ac_c_werror_flag" ||
23905 test ! -s conftest.err
23906 } && test -s conftest$ac_exeext &&
23907 $as_test_x conftest$ac_exeext; then
23908 eval "$as_ac_Lib=yes"
23910 echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23913 eval "$as_ac_Lib=no"
23916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23917 conftest$ac_exeext conftest.$ac_ext
23918 LIBS=$ac_check_lib_save_LIBS
23920 ac_res=`eval echo '${'$as_ac_Lib'}'`
23921 { echo "$as_me:$LINENO: result: $ac_res" >&5
23922 echo "${ECHO_T}$ac_res" >&6; }
23923 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23925 cat >>confdefs.h <<\_ACEOF
23926 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23932 as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23933 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23934 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23935 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 ac_check_lib_save_LIBS=$LIBS
23939 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23947 /* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
23953 char krb5_get_init_creds_opt_set_addressless ();
23957 return krb5_get_init_creds_opt_set_addressless ();
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_link") 2>conftest.er1
23971 grep -v '^ *+' conftest.er1 >conftest.err
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest$ac_exeext &&
23979 $as_test_x conftest$ac_exeext; then
23980 eval "$as_ac_Lib=yes"
23982 echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23985 eval "$as_ac_Lib=no"
23988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23989 conftest$ac_exeext conftest.$ac_ext
23990 LIBS=$ac_check_lib_save_LIBS
23992 ac_res=`eval echo '${'$as_ac_Lib'}'`
23993 { echo "$as_me:$LINENO: result: $ac_res" >&5
23994 echo "${ECHO_T}$ac_res" >&6; }
23995 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23997 cat >>confdefs.h <<\_ACEOF
23998 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24004 if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24005 { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24006 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24017 { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24018 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24019 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 ac_check_lib_save_LIBS=$LIBS
24023 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24031 /* Override any GCC internal prototype to avoid an error.
24032 Use char because int might match the return type of a GCC
24033 builtin and then its argument prototype would still apply. */
24037 char authgss_create_default ();
24041 return authgss_create_default ();
24046 rm -f conftest.$ac_objext conftest$ac_exeext
24047 if { (ac_try="$ac_link"
24048 case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_link") 2>conftest.er1
24055 grep -v '^ *+' conftest.er1 >conftest.err
24057 cat conftest.err >&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); } && {
24060 test -z "$ac_c_werror_flag" ||
24061 test ! -s conftest.err
24062 } && test -s conftest$ac_exeext &&
24063 $as_test_x conftest$ac_exeext; then
24064 ac_cv_lib_rpcsecgss_authgss_create_default=yes
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 ac_cv_lib_rpcsecgss_authgss_create_default=no
24072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24073 conftest$ac_exeext conftest.$ac_ext
24074 LIBS=$ac_check_lib_save_LIBS
24076 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24077 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24078 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24081 { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24082 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24083 { (exit 1); exit 1; }; }
24086 { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24087 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24088 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 ac_check_lib_save_LIBS=$LIBS
24092 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24093 cat >conftest.$ac_ext <<_ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24100 /* Override any GCC internal prototype to avoid an error.
24101 Use char because int might match the return type of a GCC
24102 builtin and then its argument prototype would still apply. */
24106 char authgss_set_debug_level ();
24110 return authgss_set_debug_level ();
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122 (eval "$ac_link") 2>conftest.er1
24124 grep -v '^ *+' conftest.er1 >conftest.err
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } && {
24129 test -z "$ac_c_werror_flag" ||
24130 test ! -s conftest.err
24131 } && test -s conftest$ac_exeext &&
24132 $as_test_x conftest$ac_exeext; then
24133 ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24135 echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24138 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24142 conftest$ac_exeext conftest.$ac_ext
24143 LIBS=$ac_check_lib_save_LIBS
24145 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24146 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24147 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24149 cat >>confdefs.h <<\_ACEOF
24150 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24181 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24182 malloc.h memory.h netdb.h netinet/in.h paths.h \
24183 stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24184 sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24185 syslog.h unistd.h com_err.h et/com_err.h \
24188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
24195 ac_res=`eval echo '${'$as_ac_Header'}'`
24196 { echo "$as_me:$LINENO: result: $ac_res" >&5
24197 echo "${ECHO_T}$ac_res" >&6; }
24199 # Is the header compilable?
24200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24202 cat >conftest.$ac_ext <<_ACEOF
24205 cat confdefs.h >>conftest.$ac_ext
24206 cat >>conftest.$ac_ext <<_ACEOF
24207 /* end confdefs.h. */
24208 $ac_includes_default
24209 @%:@include <$ac_header>
24211 rm -f conftest.$ac_objext
24212 if { (ac_try="$ac_compile"
24213 case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_compile") 2>conftest.er1
24220 grep -v '^ *+' conftest.er1 >conftest.err
24222 cat conftest.err >&5
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } && {
24225 test -z "$ac_c_werror_flag" ||
24226 test ! -s conftest.err
24227 } && test -s conftest.$ac_objext; then
24228 ac_header_compiler=yes
24230 echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_header_compiler=no
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24238 echo "${ECHO_T}$ac_header_compiler" >&6; }
24240 # Is the header present?
24241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24243 cat >conftest.$ac_ext <<_ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24249 @%:@include <$ac_header>
24251 if { (ac_try="$ac_cpp conftest.$ac_ext"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24259 grep -v '^ *+' conftest.er1 >conftest.err
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } >/dev/null && {
24264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24267 ac_header_preproc=yes
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_header_preproc=no
24275 rm -f conftest.err conftest.$ac_ext
24276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24277 echo "${ECHO_T}$ac_header_preproc" >&6; }
24279 # So? What about this header?
24280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24286 ac_header_preproc=yes
24289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24302 @%:@@%:@ ------------------------------- @%:@@%:@
24303 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24304 @%:@@%:@ ------------------------------- @%:@@%:@
24306 ) | sed "s/^/$as_me: WARNING: /" >&2
24309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24314 eval "$as_ac_Header=\$ac_header_preproc"
24316 ac_res=`eval echo '${'$as_ac_Header'}'`
24317 { echo "$as_me:$LINENO: result: $ac_res" >&5
24318 echo "${ECHO_T}$ac_res" >&6; }
24321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24322 cat >>confdefs.h <<_ACEOF
24323 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24331 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24332 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24333 if test "${ac_cv_c_const+set}" = set; then
24334 echo $ECHO_N "(cached) $ECHO_C" >&6
24336 cat >conftest.$ac_ext <<_ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24346 /* FIXME: Include the comments suggested by Paul. */
24347 #ifndef __cplusplus
24348 /* Ultrix mips cc rejects this. */
24349 typedef int charset[2];
24351 /* SunOS 4.1.1 cc rejects this. */
24352 char const *const *pcpcc;
24354 /* NEC SVR4.0.2 mips cc rejects this. */
24355 struct point {int x, y;};
24356 static struct point const zero = {0,0};
24357 /* AIX XL C 1.02.0.0 rejects this.
24358 It does not let you subtract one const X* pointer from another in
24359 an arm of an if-expression whose if-part is not a constant
24361 const char *g = "string";
24362 pcpcc = &g + (g ? g-g : 0);
24363 /* HPUX 7.0 cc rejects these. */
24365 ppc = (char**) pcpcc;
24366 pcpcc = (char const *const *) ppc;
24367 { /* SCO 3.2v4 cc rejects this. */
24369 char const *s = 0 ? (char *) 0 : (char const *) 0;
24374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24375 int x[] = {25, 17};
24376 const int *foo = &x[0];
24379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24380 typedef const int *iptr;
24384 { /* AIX XL C 1.02.0.0 rejects this saying
24385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24386 struct s { int j; const int *ap[3]; };
24387 struct s *b; b->j = 5;
24389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24390 const int foo = 10;
24391 if (!foo) return 0;
24393 return !cs[0] && !zero.x;
24400 rm -f conftest.$ac_objext
24401 if { (ac_try="$ac_compile"
24402 case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_compile") 2>conftest.er1
24409 grep -v '^ *+' conftest.er1 >conftest.err
24411 cat conftest.err >&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); } && {
24414 test -z "$ac_c_werror_flag" ||
24415 test ! -s conftest.err
24416 } && test -s conftest.$ac_objext; then
24419 echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24427 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24428 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24429 if test $ac_cv_c_const = no; then
24431 cat >>confdefs.h <<\_ACEOF
24437 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24438 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24439 if test "${ac_cv_type_uid_t+set}" = set; then
24440 echo $ECHO_N "(cached) $ECHO_C" >&6
24442 cat >conftest.$ac_ext <<_ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24448 #include <sys/types.h>
24451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24452 $EGREP "uid_t" >/dev/null 2>&1; then
24453 ac_cv_type_uid_t=yes
24455 ac_cv_type_uid_t=no
24460 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24461 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24462 if test $ac_cv_type_uid_t = no; then
24464 cat >>confdefs.h <<\_ACEOF
24465 @%:@define uid_t int
24469 cat >>confdefs.h <<\_ACEOF
24470 @%:@define gid_t int
24475 { echo "$as_me:$LINENO: checking for inline" >&5
24476 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24477 if test "${ac_cv_c_inline+set}" = set; then
24478 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 for ac_kw in inline __inline__ __inline; do
24482 cat >conftest.$ac_ext <<_ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 #ifndef __cplusplus
24490 static $ac_kw foo_t static_foo () {return 0; }
24491 $ac_kw foo_t foo () {return 0; }
24495 rm -f conftest.$ac_objext
24496 if { (ac_try="$ac_compile"
24497 case "(($ac_try" in
24498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499 *) ac_try_echo=$ac_try;;
24501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502 (eval "$ac_compile") 2>conftest.er1
24504 grep -v '^ *+' conftest.er1 >conftest.err
24506 cat conftest.err >&5
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } && {
24509 test -z "$ac_c_werror_flag" ||
24510 test ! -s conftest.err
24511 } && test -s conftest.$ac_objext; then
24512 ac_cv_c_inline=$ac_kw
24514 echo "$as_me: failed program was:" >&5
24515 sed 's/^/| /' conftest.$ac_ext >&5
24520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24521 test "$ac_cv_c_inline" != no && break
24525 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24526 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24529 case $ac_cv_c_inline in
24532 case $ac_cv_c_inline in
24534 *) ac_val=$ac_cv_c_inline;;
24536 cat >>confdefs.h <<_ACEOF
24537 #ifndef __cplusplus
24538 #define inline $ac_val
24544 { echo "$as_me:$LINENO: checking for off_t" >&5
24545 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24546 if test "${ac_cv_type_off_t+set}" = set; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 cat >conftest.$ac_ext <<_ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 $ac_includes_default
24556 typedef off_t ac__type_new_;
24560 if ((ac__type_new_ *) 0)
24562 if (sizeof (ac__type_new_))
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575 (eval "$ac_compile") 2>conftest.er1
24577 grep -v '^ *+' conftest.er1 >conftest.err
24579 cat conftest.err >&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && {
24582 test -z "$ac_c_werror_flag" ||
24583 test ! -s conftest.err
24584 } && test -s conftest.$ac_objext; then
24585 ac_cv_type_off_t=yes
24587 echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24590 ac_cv_type_off_t=no
24593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24596 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24597 if test $ac_cv_type_off_t = yes; then
24601 cat >>confdefs.h <<_ACEOF
24602 @%:@define off_t long int
24607 { echo "$as_me:$LINENO: checking for pid_t" >&5
24608 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24609 if test "${ac_cv_type_pid_t+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24612 cat >conftest.$ac_ext <<_ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h. */
24618 $ac_includes_default
24619 typedef pid_t ac__type_new_;
24623 if ((ac__type_new_ *) 0)
24625 if (sizeof (ac__type_new_))
24631 rm -f conftest.$ac_objext
24632 if { (ac_try="$ac_compile"
24633 case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638 (eval "$ac_compile") 2>conftest.er1
24640 grep -v '^ *+' conftest.er1 >conftest.err
24642 cat conftest.err >&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } && {
24645 test -z "$ac_c_werror_flag" ||
24646 test ! -s conftest.err
24647 } && test -s conftest.$ac_objext; then
24648 ac_cv_type_pid_t=yes
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ac_cv_type_pid_t=no
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24658 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24659 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24660 if test $ac_cv_type_pid_t = yes; then
24664 cat >>confdefs.h <<_ACEOF
24665 @%:@define pid_t int
24670 { echo "$as_me:$LINENO: checking for size_t" >&5
24671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24672 if test "${ac_cv_type_size_t+set}" = set; then
24673 echo $ECHO_N "(cached) $ECHO_C" >&6
24675 cat >conftest.$ac_ext <<_ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24681 $ac_includes_default
24682 typedef size_t ac__type_new_;
24686 if ((ac__type_new_ *) 0)
24688 if (sizeof (ac__type_new_))
24694 rm -f conftest.$ac_objext
24695 if { (ac_try="$ac_compile"
24696 case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_compile") 2>conftest.er1
24703 grep -v '^ *+' conftest.er1 >conftest.err
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest.$ac_objext; then
24711 ac_cv_type_size_t=yes
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24716 ac_cv_type_size_t=no
24719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24722 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24723 if test $ac_cv_type_size_t = yes; then
24727 cat >>confdefs.h <<_ACEOF
24728 @%:@define size_t unsigned int
24733 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24735 if test "${ac_cv_header_time+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <sys/types.h>
24745 #include <sys/time.h>
24751 if ((struct tm *) 0)
24757 rm -f conftest.$ac_objext
24758 if { (ac_try="$ac_compile"
24759 case "(($ac_try" in
24760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761 *) ac_try_echo=$ac_try;;
24763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24766 grep -v '^ *+' conftest.er1 >conftest.err
24768 cat conftest.err >&5
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 ac_cv_header_time=yes
24776 echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24779 ac_cv_header_time=no
24782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24785 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24786 if test $ac_cv_header_time = yes; then
24788 cat >>confdefs.h <<\_ACEOF
24789 @%:@define TIME_WITH_SYS_TIME 1
24794 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24795 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24796 if test "${ac_cv_struct_tm+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 cat >conftest.$ac_ext <<_ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24805 #include <sys/types.h>
24812 int *p = &tm.tm_sec;
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.$ac_objext; then
24835 ac_cv_struct_tm=time.h
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24840 ac_cv_struct_tm=sys/time.h
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24845 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24846 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24847 if test $ac_cv_struct_tm = sys/time.h; then
24849 cat >>confdefs.h <<\_ACEOF
24850 @%:@define TM_IN_SYS_TIME 1
24856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24857 # for constant arguments. Useless!
24858 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24859 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24860 if test "${ac_cv_working_alloca_h+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 @%:@include <alloca.h>
24873 char *p = (char *) alloca (2 * sizeof (int));
24879 rm -f conftest.$ac_objext conftest$ac_exeext
24880 if { (ac_try="$ac_link"
24881 case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_link") 2>conftest.er1
24888 grep -v '^ *+' conftest.er1 >conftest.err
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } && {
24893 test -z "$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24895 } && test -s conftest$ac_exeext &&
24896 $as_test_x conftest$ac_exeext; then
24897 ac_cv_working_alloca_h=yes
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24902 ac_cv_working_alloca_h=no
24905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24906 conftest$ac_exeext conftest.$ac_ext
24908 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24909 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24910 if test $ac_cv_working_alloca_h = yes; then
24912 cat >>confdefs.h <<\_ACEOF
24913 @%:@define HAVE_ALLOCA_H 1
24918 { echo "$as_me:$LINENO: checking for alloca" >&5
24919 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24920 if test "${ac_cv_func_alloca_works+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24923 cat >conftest.$ac_ext <<_ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24930 # define alloca __builtin_alloca
24933 # include <malloc.h>
24934 # define alloca _alloca
24936 # ifdef HAVE_ALLOCA_H
24937 # include <alloca.h>
24942 # ifndef alloca /* predefined by HP cc +Olibcalls */
24953 char *p = (char *) alloca (1);
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (ac_try="$ac_link"
24961 case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_link") 2>conftest.er1
24968 grep -v '^ *+' conftest.er1 >conftest.err
24970 cat conftest.err >&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } && {
24973 test -z "$ac_c_werror_flag" ||
24974 test ! -s conftest.err
24975 } && test -s conftest$ac_exeext &&
24976 $as_test_x conftest$ac_exeext; then
24977 ac_cv_func_alloca_works=yes
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_cv_func_alloca_works=no
24985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24986 conftest$ac_exeext conftest.$ac_ext
24988 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24989 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24991 if test $ac_cv_func_alloca_works = yes; then
24993 cat >>confdefs.h <<\_ACEOF
24994 @%:@define HAVE_ALLOCA 1
24998 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24999 # that cause trouble. Some versions do not even contain alloca or
25000 # contain a buggy version. If you still want to use their alloca,
25001 # use ar to extract alloca.o from them instead of compiling alloca.c.
25003 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25005 cat >>confdefs.h <<\_ACEOF
25006 @%:@define C_ALLOCA 1
25010 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25011 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25012 if test "${ac_cv_os_cray+set}" = set; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #if defined CRAY && ! defined CRAY2
25028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25029 $EGREP "webecray" >/dev/null 2>&1; then
25037 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25038 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25039 if test $ac_cv_os_cray = yes; then
25040 for ac_func in _getb67 GETB67 getb67; do
25041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25045 echo $ECHO_N "(cached) $ECHO_C" >&6
25047 cat >conftest.$ac_ext <<_ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h. */
25053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25055 #define $ac_func innocuous_$ac_func
25057 /* System header to define __stub macros and hopefully few prototypes,
25058 which can conflict with char $ac_func (); below.
25059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25060 <limits.h> exists even on freestanding compilers. */
25063 # include <limits.h>
25065 # include <assert.h>
25070 /* Override any GCC internal prototype to avoid an error.
25071 Use char because int might match the return type of a GCC
25072 builtin and then its argument prototype would still apply. */
25077 /* The GNU C library defines this for functions which it implements
25078 to always fail with ENOSYS. Some functions are actually named
25079 something starting with __ and the normal name is an alias. */
25080 #if defined __stub_$ac_func || defined __stub___$ac_func
25087 return $ac_func ();
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (ac_try="$ac_link"
25094 case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_link") 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } && {
25106 test -z "$ac_c_werror_flag" ||
25107 test ! -s conftest.err
25108 } && test -s conftest$ac_exeext &&
25109 $as_test_x conftest$ac_exeext; then
25110 eval "$as_ac_var=yes"
25112 echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25115 eval "$as_ac_var=no"
25118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25119 conftest$ac_exeext conftest.$ac_ext
25121 ac_res=`eval echo '${'$as_ac_var'}'`
25122 { echo "$as_me:$LINENO: result: $ac_res" >&5
25123 echo "${ECHO_T}$ac_res" >&6; }
25124 if test `eval echo '${'$as_ac_var'}'` = yes; then
25126 cat >>confdefs.h <<_ACEOF
25127 @%:@define CRAY_STACKSEG_END $ac_func
25136 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25137 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25138 if test "${ac_cv_c_stack_direction+set}" = set; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 if test "$cross_compiling" = yes; then
25142 ac_cv_c_stack_direction=0
25144 cat >conftest.$ac_ext <<_ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25150 $ac_includes_default
25152 find_stack_direction ()
25154 static char *addr = 0;
25159 return find_stack_direction ();
25162 return (&dummy > addr) ? 1 : -1;
25168 return find_stack_direction () < 0;
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_link") 2>&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25182 { (case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_try") 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_cv_c_stack_direction=1
25193 echo "$as_me: program exited with status $ac_status" >&5
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ( exit $ac_status )
25198 ac_cv_c_stack_direction=-1
25200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25205 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25206 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25208 cat >>confdefs.h <<_ACEOF
25209 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25220 ac_header_dirent=no
25221 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25222 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25223 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25224 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25226 echo $ECHO_N "(cached) $ECHO_C" >&6
25228 cat >conftest.$ac_ext <<_ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h. */
25234 #include <sys/types.h>
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253 (eval "$ac_compile") 2>conftest.er1
25255 grep -v '^ *+' conftest.er1 >conftest.err
25257 cat conftest.err >&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } && {
25260 test -z "$ac_c_werror_flag" ||
25261 test ! -s conftest.err
25262 } && test -s conftest.$ac_objext; then
25263 eval "$as_ac_Header=yes"
25265 echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 eval "$as_ac_Header=no"
25271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25273 ac_res=`eval echo '${'$as_ac_Header'}'`
25274 { echo "$as_me:$LINENO: result: $ac_res" >&5
25275 echo "${ECHO_T}$ac_res" >&6; }
25276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25277 cat >>confdefs.h <<_ACEOF
25278 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25281 ac_header_dirent=$ac_hdr; break
25285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25286 if test $ac_header_dirent = dirent.h; then
25287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25289 if test "${ac_cv_search_opendir+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25292 ac_func_search_save_LIBS=$LIBS
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25300 /* Override any GCC internal prototype to avoid an error.
25301 Use char because int might match the return type of a GCC
25302 builtin and then its argument prototype would still apply. */
25315 for ac_lib in '' dir; do
25316 if test -z "$ac_lib"; then
25317 ac_res="none required"
25320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25322 rm -f conftest.$ac_objext conftest$ac_exeext
25323 if { (ac_try="$ac_link"
25324 case "(($ac_try" in
25325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329 (eval "$ac_link") 2>conftest.er1
25331 grep -v '^ *+' conftest.er1 >conftest.err
25333 cat conftest.err >&5
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } && {
25336 test -z "$ac_c_werror_flag" ||
25337 test ! -s conftest.err
25338 } && test -s conftest$ac_exeext &&
25339 $as_test_x conftest$ac_exeext; then
25340 ac_cv_search_opendir=$ac_res
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25350 if test "${ac_cv_search_opendir+set}" = set; then
25354 if test "${ac_cv_search_opendir+set}" = set; then
25357 ac_cv_search_opendir=no
25359 rm conftest.$ac_ext
25360 LIBS=$ac_func_search_save_LIBS
25362 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25363 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25364 ac_res=$ac_cv_search_opendir
25365 if test "$ac_res" != no; then
25366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25371 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25372 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25373 if test "${ac_cv_search_opendir+set}" = set; then
25374 echo $ECHO_N "(cached) $ECHO_C" >&6
25376 ac_func_search_save_LIBS=$LIBS
25377 cat >conftest.$ac_ext <<_ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h. */
25384 /* Override any GCC internal prototype to avoid an error.
25385 Use char because int might match the return type of a GCC
25386 builtin and then its argument prototype would still apply. */
25399 for ac_lib in '' x; do
25400 if test -z "$ac_lib"; then
25401 ac_res="none required"
25404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25406 rm -f conftest.$ac_objext conftest$ac_exeext
25407 if { (ac_try="$ac_link"
25408 case "(($ac_try" in
25409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410 *) ac_try_echo=$ac_try;;
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413 (eval "$ac_link") 2>conftest.er1
25415 grep -v '^ *+' conftest.er1 >conftest.err
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } && {
25420 test -z "$ac_c_werror_flag" ||
25421 test ! -s conftest.err
25422 } && test -s conftest$ac_exeext &&
25423 $as_test_x conftest$ac_exeext; then
25424 ac_cv_search_opendir=$ac_res
25426 echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25434 if test "${ac_cv_search_opendir+set}" = set; then
25438 if test "${ac_cv_search_opendir+set}" = set; then
25441 ac_cv_search_opendir=no
25443 rm conftest.$ac_ext
25444 LIBS=$ac_func_search_save_LIBS
25446 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25447 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25448 ac_res=$ac_cv_search_opendir
25449 if test "$ac_res" != no; then
25450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25456 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25457 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25458 if test "${ac_cv_func_closedir_void+set}" = set; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25461 if test "$cross_compiling" = yes; then
25462 ac_cv_func_closedir_void=yes
25464 cat >conftest.$ac_ext <<_ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h. */
25470 $ac_includes_default
25471 #include <$ac_header_dirent>
25472 #ifndef __cplusplus
25479 return closedir (opendir (".")) != 0;
25484 rm -f conftest$ac_exeext
25485 if { (ac_try="$ac_link"
25486 case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_link") 2>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495 { (case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500 (eval "$ac_try") 2>&5
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_func_closedir_void=no
25506 echo "$as_me: program exited with status $ac_status" >&5
25507 echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ( exit $ac_status )
25511 ac_cv_func_closedir_void=yes
25513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25518 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25519 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25520 if test $ac_cv_func_closedir_void = yes; then
25522 cat >>confdefs.h <<\_ACEOF
25523 @%:@define CLOSEDIR_VOID 1
25528 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25529 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25530 if test "${ac_cv_lib_error_at_line+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25533 cat >conftest.$ac_ext <<_ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25543 error_at_line (0, 0, "", 0, "an error occurred");
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (ac_try="$ac_link"
25550 case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25555 (eval "$ac_link") 2>conftest.er1
25557 grep -v '^ *+' conftest.er1 >conftest.err
25559 cat conftest.err >&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); } && {
25562 test -z "$ac_c_werror_flag" ||
25563 test ! -s conftest.err
25564 } && test -s conftest$ac_exeext &&
25565 $as_test_x conftest$ac_exeext; then
25566 ac_cv_lib_error_at_line=yes
25568 echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25571 ac_cv_lib_error_at_line=no
25574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25575 conftest$ac_exeext conftest.$ac_ext
25577 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25578 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25579 if test $ac_cv_lib_error_at_line = no; then
25580 case " $LIB@&t@OBJS " in
25581 *" error.$ac_objext "* ) ;;
25582 *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25589 for ac_header in vfork.h
25591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 ac_res=`eval echo '${'$as_ac_Header'}'`
25599 { echo "$as_me:$LINENO: result: $ac_res" >&5
25600 echo "${ECHO_T}$ac_res" >&6; }
25602 # Is the header compilable?
25603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25605 cat >conftest.$ac_ext <<_ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h. */
25611 $ac_includes_default
25612 @%:@include <$ac_header>
25614 rm -f conftest.$ac_objext
25615 if { (ac_try="$ac_compile"
25616 case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621 (eval "$ac_compile") 2>conftest.er1
25623 grep -v '^ *+' conftest.er1 >conftest.err
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } && {
25628 test -z "$ac_c_werror_flag" ||
25629 test ! -s conftest.err
25630 } && test -s conftest.$ac_objext; then
25631 ac_header_compiler=yes
25633 echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25636 ac_header_compiler=no
25639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25641 echo "${ECHO_T}$ac_header_compiler" >&6; }
25643 # Is the header present?
25644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25646 cat >conftest.$ac_ext <<_ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h. */
25652 @%:@include <$ac_header>
25654 if { (ac_try="$ac_cpp conftest.$ac_ext"
25655 case "(($ac_try" in
25656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657 *) ac_try_echo=$ac_try;;
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25662 grep -v '^ *+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } >/dev/null && {
25667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25668 test ! -s conftest.err
25670 ac_header_preproc=yes
25672 echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25675 ac_header_preproc=no
25678 rm -f conftest.err conftest.$ac_ext
25679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25680 echo "${ECHO_T}$ac_header_preproc" >&6; }
25682 # So? What about this header?
25683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25689 ac_header_preproc=yes
25692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25705 @%:@@%:@ ------------------------------- @%:@@%:@
25706 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25707 @%:@@%:@ ------------------------------- @%:@@%:@
25709 ) | sed "s/^/$as_me: WARNING: /" >&2
25712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 eval "$as_ac_Header=\$ac_header_preproc"
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720 { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25725 cat >>confdefs.h <<_ACEOF
25726 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25735 for ac_func in fork vfork
25737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25741 echo $ECHO_N "(cached) $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h. */
25749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25751 #define $ac_func innocuous_$ac_func
25753 /* System header to define __stub macros and hopefully few prototypes,
25754 which can conflict with char $ac_func (); below.
25755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25756 <limits.h> exists even on freestanding compilers. */
25759 # include <limits.h>
25761 # include <assert.h>
25766 /* Override any GCC internal prototype to avoid an error.
25767 Use char because int might match the return type of a GCC
25768 builtin and then its argument prototype would still apply. */
25773 /* The GNU C library defines this for functions which it implements
25774 to always fail with ENOSYS. Some functions are actually named
25775 something starting with __ and the normal name is an alias. */
25776 #if defined __stub_$ac_func || defined __stub___$ac_func
25783 return $ac_func ();
25788 rm -f conftest.$ac_objext conftest$ac_exeext
25789 if { (ac_try="$ac_link"
25790 case "(($ac_try" in
25791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792 *) ac_try_echo=$ac_try;;
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795 (eval "$ac_link") 2>conftest.er1
25797 grep -v '^ *+' conftest.er1 >conftest.err
25799 cat conftest.err >&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } && {
25802 test -z "$ac_c_werror_flag" ||
25803 test ! -s conftest.err
25804 } && test -s conftest$ac_exeext &&
25805 $as_test_x conftest$ac_exeext; then
25806 eval "$as_ac_var=yes"
25808 echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25811 eval "$as_ac_var=no"
25814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25815 conftest$ac_exeext conftest.$ac_ext
25817 ac_res=`eval echo '${'$as_ac_var'}'`
25818 { echo "$as_me:$LINENO: result: $ac_res" >&5
25819 echo "${ECHO_T}$ac_res" >&6; }
25820 if test `eval echo '${'$as_ac_var'}'` = yes; then
25821 cat >>confdefs.h <<_ACEOF
25822 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25828 if test "x$ac_cv_func_fork" = xyes; then
25829 { echo "$as_me:$LINENO: checking for working fork" >&5
25830 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25831 if test "${ac_cv_func_fork_works+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 if test "$cross_compiling" = yes; then
25835 ac_cv_func_fork_works=cross
25837 cat >conftest.$ac_ext <<_ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25843 $ac_includes_default
25848 /* By Ruediger Kuhlmann. */
25849 return fork () < 0;
25855 rm -f conftest$ac_exeext
25856 if { (ac_try="$ac_link"
25857 case "(($ac_try" in
25858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859 *) ac_try_echo=$ac_try;;
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862 (eval "$ac_link") 2>&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25866 { (case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_try") 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25875 ac_cv_func_fork_works=yes
25877 echo "$as_me: program exited with status $ac_status" >&5
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ( exit $ac_status )
25882 ac_cv_func_fork_works=no
25884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25889 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25890 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25893 ac_cv_func_fork_works=$ac_cv_func_fork
25895 if test "x$ac_cv_func_fork_works" = xcross; then
25897 *-*-amigaos* | *-*-msdosdjgpp*)
25898 # Override, as these systems have only a dummy fork() stub
25899 ac_cv_func_fork_works=no
25902 ac_cv_func_fork_works=yes
25905 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25906 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25908 ac_cv_func_vfork_works=$ac_cv_func_vfork
25909 if test "x$ac_cv_func_vfork" = xyes; then
25910 { echo "$as_me:$LINENO: checking for working vfork" >&5
25911 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25912 if test "${ac_cv_func_vfork_works+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 if test "$cross_compiling" = yes; then
25916 ac_cv_func_vfork_works=cross
25918 cat >conftest.$ac_ext <<_ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h. */
25924 /* Thanks to Paul Eggert for this test. */
25925 $ac_includes_default
25926 #include <sys/wait.h>
25927 #ifdef HAVE_VFORK_H
25928 # include <vfork.h>
25930 /* On some sparc systems, changes by the child to local and incoming
25931 argument registers are propagated back to the parent. The compiler
25932 is told about this with #include <vfork.h>, but some compilers
25933 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25934 static variable whose address is put into a register that is
25935 clobbered by the vfork. */
25938 sparc_address_test (int arg)
25940 sparc_address_test (arg) int arg;
25943 static pid_t child;
25961 pid_t parent = getpid ();
25964 sparc_address_test (0);
25969 /* Here is another test for sparc vfork register problems. This
25970 test uses lots of local variables, at least as many local
25971 variables as main has allocated so far including compiler
25972 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25973 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25974 reuse the register of parent for one of the local variables,
25975 since it will think that parent can't possibly be used any more
25976 in this routine. Assigning to the local variable will thus
25977 munge parent in the parent process. */
25979 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25980 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25981 /* Convince the compiler that p..p7 are live; otherwise, it might
25982 use the same hardware register for all 8 local variables. */
25983 if (p != p1 || p != p2 || p != p3 || p != p4
25984 || p != p5 || p != p6 || p != p7)
25987 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25988 from child file descriptors. If the child closes a descriptor
25989 before it execs or exits, this munges the parent's descriptor
25990 as well. Test for this by closing stdout in the child. */
25991 _exit(close(fileno(stdout)) != 0);
25996 while (wait(&status) != child)
25999 /* Was there some problem with vforking? */
26002 /* Did the child fail? (This shouldn't happen.) */
26005 /* Did the vfork/compiler bug occur? */
26006 || parent != getpid()
26008 /* Did the file descriptor bug occur? */
26009 || fstat(fileno(stdout), &st) != 0
26014 rm -f conftest$ac_exeext
26015 if { (ac_try="$ac_link"
26016 case "(($ac_try" in
26017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018 *) ac_try_echo=$ac_try;;
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021 (eval "$ac_link") 2>&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025 { (case "(($ac_try" in
26026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26027 *) ac_try_echo=$ac_try;;
26029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26030 (eval "$ac_try") 2>&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; }; then
26034 ac_cv_func_vfork_works=yes
26036 echo "$as_me: program exited with status $ac_status" >&5
26037 echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26040 ( exit $ac_status )
26041 ac_cv_func_vfork_works=no
26043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26048 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26049 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26052 if test "x$ac_cv_func_fork_works" = xcross; then
26053 ac_cv_func_vfork_works=$ac_cv_func_vfork
26054 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26055 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26058 if test "x$ac_cv_func_vfork_works" = xyes; then
26060 cat >>confdefs.h <<\_ACEOF
26061 @%:@define HAVE_WORKING_VFORK 1
26066 cat >>confdefs.h <<\_ACEOF
26067 @%:@define vfork fork
26071 if test "x$ac_cv_func_fork_works" = xyes; then
26073 cat >>confdefs.h <<\_ACEOF
26074 @%:@define HAVE_WORKING_FORK 1
26079 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26080 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26081 if test "${ac_cv_type_getgroups+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 if test "$cross_compiling" = yes; then
26085 ac_cv_type_getgroups=cross
26087 cat >conftest.$ac_ext <<_ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h. */
26093 /* Thanks to Mike Rendell for this test. */
26094 $ac_includes_default
26097 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26102 gid_t gidset[NGID];
26104 union { gid_t gval; long int lval; } val;
26107 for (i = 0; i < NGID; i++)
26108 gidset[i] = val.gval;
26109 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26111 /* Exit non-zero if getgroups seems to require an array of ints. This
26112 happens when gid_t is short int but getgroups modifies an array
26114 return n > 0 && gidset[n] != val.gval;
26117 rm -f conftest$ac_exeext
26118 if { (ac_try="$ac_link"
26119 case "(($ac_try" in
26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121 *) ac_try_echo=$ac_try;;
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_link") 2>&5
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26128 { (case "(($ac_try" in
26129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26130 *) ac_try_echo=$ac_try;;
26132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26133 (eval "$ac_try") 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_type_getgroups=gid_t
26139 echo "$as_me: program exited with status $ac_status" >&5
26140 echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.$ac_ext >&5
26143 ( exit $ac_status )
26144 ac_cv_type_getgroups=int
26146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26150 if test $ac_cv_type_getgroups = cross; then
26151 cat >conftest.$ac_ext <<_ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h. */
26157 #include <unistd.h>
26160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26161 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26162 ac_cv_type_getgroups=gid_t
26164 ac_cv_type_getgroups=int
26170 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26171 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26173 cat >>confdefs.h <<_ACEOF
26174 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26178 { echo "$as_me:$LINENO: checking for getgroups" >&5
26179 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26180 if test "${ac_cv_func_getgroups+set}" = set; then
26181 echo $ECHO_N "(cached) $ECHO_C" >&6
26183 cat >conftest.$ac_ext <<_ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h. */
26189 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26191 #define getgroups innocuous_getgroups
26193 /* System header to define __stub macros and hopefully few prototypes,
26194 which can conflict with char getgroups (); below.
26195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26196 <limits.h> exists even on freestanding compilers. */
26199 # include <limits.h>
26201 # include <assert.h>
26206 /* Override any GCC internal prototype to avoid an error.
26207 Use char because int might match the return type of a GCC
26208 builtin and then its argument prototype would still apply. */
26213 /* The GNU C library defines this for functions which it implements
26214 to always fail with ENOSYS. Some functions are actually named
26215 something starting with __ and the normal name is an alias. */
26216 #if defined __stub_getgroups || defined __stub___getgroups
26223 return getgroups ();
26228 rm -f conftest.$ac_objext conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235 (eval "$ac_link") 2>conftest.er1
26237 grep -v '^ *+' conftest.er1 >conftest.err
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } && {
26242 test -z "$ac_c_werror_flag" ||
26243 test ! -s conftest.err
26244 } && test -s conftest$ac_exeext &&
26245 $as_test_x conftest$ac_exeext; then
26246 ac_cv_func_getgroups=yes
26248 echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26251 ac_cv_func_getgroups=no
26254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26255 conftest$ac_exeext conftest.$ac_ext
26257 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26258 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26261 # If we don't yet have getgroups, see if it's in -lbsd.
26262 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26264 if test $ac_cv_func_getgroups = no; then
26265 { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26266 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26267 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26270 ac_check_lib_save_LIBS=$LIBS
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26279 /* Override any GCC internal prototype to avoid an error.
26280 Use char because int might match the return type of a GCC
26281 builtin and then its argument prototype would still apply. */
26289 return getgroups ();
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (ac_try="$ac_link"
26296 case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_link") 2>conftest.er1
26303 grep -v '^ *+' conftest.er1 >conftest.err
26305 cat conftest.err >&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && {
26308 test -z "$ac_c_werror_flag" ||
26309 test ! -s conftest.err
26310 } && test -s conftest$ac_exeext &&
26311 $as_test_x conftest$ac_exeext; then
26312 ac_cv_lib_bsd_getgroups=yes
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ac_cv_lib_bsd_getgroups=no
26320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26321 conftest$ac_exeext conftest.$ac_ext
26322 LIBS=$ac_check_lib_save_LIBS
26324 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26325 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26326 if test $ac_cv_lib_bsd_getgroups = yes; then
26327 GETGROUPS_LIB=-lbsd
26332 # Run the program to test the functionality of the system-supplied
26333 # getgroups function only if there is such a function.
26334 if test $ac_cv_func_getgroups = yes; then
26335 { echo "$as_me:$LINENO: checking for working getgroups" >&5
26336 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26337 if test "${ac_cv_func_getgroups_works+set}" = set; then
26338 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 if test "$cross_compiling" = yes; then
26341 ac_cv_func_getgroups_works=no
26343 cat >conftest.$ac_ext <<_ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26349 $ac_includes_default
26353 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26354 return getgroups (0, 0) == -1;
26359 rm -f conftest$ac_exeext
26360 if { (ac_try="$ac_link"
26361 case "(($ac_try" in
26362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363 *) ac_try_echo=$ac_try;;
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366 (eval "$ac_link") 2>&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26370 { (case "(($ac_try" in
26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372 *) ac_try_echo=$ac_try;;
26374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26375 (eval "$ac_try") 2>&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); }; }; then
26379 ac_cv_func_getgroups_works=yes
26381 echo "$as_me: program exited with status $ac_status" >&5
26382 echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26385 ( exit $ac_status )
26386 ac_cv_func_getgroups_works=no
26388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26394 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26395 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26396 if test $ac_cv_func_getgroups_works = yes; then
26398 cat >>confdefs.h <<\_ACEOF
26399 @%:@define HAVE_GETGROUPS 1
26406 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26407 # -lseq on Dynix/PTX, -lgen on Unixware.
26408 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26409 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26410 if test "${ac_cv_search_getmntent+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26413 ac_func_search_save_LIBS=$LIBS
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26421 /* Override any GCC internal prototype to avoid an error.
26422 Use char because int might match the return type of a GCC
26423 builtin and then its argument prototype would still apply. */
26431 return getmntent ();
26436 for ac_lib in '' sun seq gen; do
26437 if test -z "$ac_lib"; then
26438 ac_res="none required"
26441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26443 rm -f conftest.$ac_objext conftest$ac_exeext
26444 if { (ac_try="$ac_link"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_link") 2>conftest.er1
26452 grep -v '^ *+' conftest.er1 >conftest.err
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } && {
26457 test -z "$ac_c_werror_flag" ||
26458 test ! -s conftest.err
26459 } && test -s conftest$ac_exeext &&
26460 $as_test_x conftest$ac_exeext; then
26461 ac_cv_search_getmntent=$ac_res
26463 echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26471 if test "${ac_cv_search_getmntent+set}" = set; then
26475 if test "${ac_cv_search_getmntent+set}" = set; then
26478 ac_cv_search_getmntent=no
26480 rm conftest.$ac_ext
26481 LIBS=$ac_func_search_save_LIBS
26483 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26484 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26485 ac_res=$ac_cv_search_getmntent
26486 if test "$ac_res" != no; then
26487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26488 ac_cv_func_getmntent=yes
26490 cat >>confdefs.h <<\_ACEOF
26491 @%:@define HAVE_GETMNTENT 1
26495 ac_cv_func_getmntent=no
26499 if test $ac_cv_c_compiler_gnu = yes; then
26500 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26501 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26502 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26503 echo $ECHO_N "(cached) $ECHO_C" >&6
26505 ac_pattern="Autoconf.*'x'"
26506 cat >conftest.$ac_ext <<_ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h. */
26515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26516 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26517 ac_cv_prog_gcc_traditional=yes
26519 ac_cv_prog_gcc_traditional=no
26524 if test $ac_cv_prog_gcc_traditional = no; then
26525 cat >conftest.$ac_ext <<_ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h. */
26531 #include <termio.h>
26534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26535 $EGREP "$ac_pattern" >/dev/null 2>&1; then
26536 ac_cv_prog_gcc_traditional=yes
26542 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26543 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26544 if test $ac_cv_prog_gcc_traditional = yes; then
26545 CC="$CC -traditional"
26549 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26550 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26551 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 rm -f conftest.sym conftest.file
26555 echo >conftest.file
26556 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26557 if test "$cross_compiling" = yes; then
26558 ac_cv_func_lstat_dereferences_slashed_symlink=no
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 $ac_includes_default
26571 /* Linux will dereference the symlink and fail.
26572 That is better in the sense that it means we will not
26573 have to compile and use the lstat wrapper. */
26574 return lstat ("conftest.sym/", &sbuf) == 0;
26579 rm -f conftest$ac_exeext
26580 if { (ac_try="$ac_link"
26581 case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_link") 2>&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26590 { (case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595 (eval "$ac_try") 2>&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); }; }; then
26599 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26601 echo "$as_me: program exited with status $ac_status" >&5
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26605 ( exit $ac_status )
26606 ac_cv_func_lstat_dereferences_slashed_symlink=no
26608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26613 # If the `ln -s' command failed, then we probably don't even
26614 # have an lstat function.
26615 ac_cv_func_lstat_dereferences_slashed_symlink=no
26617 rm -f conftest.sym conftest.file
26620 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26621 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26623 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26625 cat >>confdefs.h <<_ACEOF
26626 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26630 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26631 case " $LIB@&t@OBJS " in
26632 *" lstat.$ac_objext "* ) ;;
26633 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26639 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26640 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26641 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26642 echo $ECHO_N "(cached) $ECHO_C" >&6
26644 if test "$cross_compiling" = yes; then
26645 ac_cv_func_lstat_empty_string_bug=yes
26647 cat >conftest.$ac_ext <<_ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26653 $ac_includes_default
26658 return lstat ("", &sbuf) == 0;
26663 rm -f conftest$ac_exeext
26664 if { (ac_try="$ac_link"
26665 case "(($ac_try" in
26666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667 *) ac_try_echo=$ac_try;;
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670 (eval "$ac_link") 2>&5
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26674 { (case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_try") 2>&5
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; }; then
26683 ac_cv_func_lstat_empty_string_bug=no
26685 echo "$as_me: program exited with status $ac_status" >&5
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ( exit $ac_status )
26690 ac_cv_func_lstat_empty_string_bug=yes
26692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26697 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26698 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26699 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26700 case " $LIB@&t@OBJS " in
26701 *" lstat.$ac_objext "* ) ;;
26702 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26707 cat >>confdefs.h <<_ACEOF
26708 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26713 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26714 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26715 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26718 rm -f conftest.sym conftest.file
26719 echo >conftest.file
26720 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26721 if test "$cross_compiling" = yes; then
26722 ac_cv_func_lstat_dereferences_slashed_symlink=no
26724 cat >conftest.$ac_ext <<_ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h. */
26730 $ac_includes_default
26735 /* Linux will dereference the symlink and fail.
26736 That is better in the sense that it means we will not
26737 have to compile and use the lstat wrapper. */
26738 return lstat ("conftest.sym/", &sbuf) == 0;
26743 rm -f conftest$ac_exeext
26744 if { (ac_try="$ac_link"
26745 case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_link") 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26754 { (case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759 (eval "$ac_try") 2>&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ac_cv_func_lstat_dereferences_slashed_symlink=yes
26765 echo "$as_me: program exited with status $ac_status" >&5
26766 echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26769 ( exit $ac_status )
26770 ac_cv_func_lstat_dereferences_slashed_symlink=no
26772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26777 # If the `ln -s' command failed, then we probably don't even
26778 # have an lstat function.
26779 ac_cv_func_lstat_dereferences_slashed_symlink=no
26781 rm -f conftest.sym conftest.file
26784 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26785 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26787 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26789 cat >>confdefs.h <<_ACEOF
26790 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26794 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26795 case " $LIB@&t@OBJS " in
26796 *" lstat.$ac_objext "* ) ;;
26797 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26803 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26804 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26805 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26806 echo $ECHO_N "(cached) $ECHO_C" >&6
26808 cat >conftest.$ac_ext <<_ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 @%:@include <sys/types.h>
26818 return makedev(0, 0);
26823 rm -f conftest.$ac_objext conftest$ac_exeext
26824 if { (ac_try="$ac_link"
26825 case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_link") 2>conftest.er1
26832 grep -v '^ *+' conftest.er1 >conftest.err
26834 cat conftest.err >&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); } && {
26837 test -z "$ac_c_werror_flag" ||
26838 test ! -s conftest.err
26839 } && test -s conftest$ac_exeext &&
26840 $as_test_x conftest$ac_exeext; then
26841 ac_cv_header_sys_types_h_makedev=yes
26843 echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26846 ac_cv_header_sys_types_h_makedev=no
26849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26850 conftest$ac_exeext conftest.$ac_ext
26853 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26854 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26856 if test $ac_cv_header_sys_types_h_makedev = no; then
26857 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26858 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26859 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26860 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26863 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26864 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26866 # Is the header compilable?
26867 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26868 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26869 cat >conftest.$ac_ext <<_ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h. */
26875 $ac_includes_default
26876 @%:@include <sys/mkdev.h>
26878 rm -f conftest.$ac_objext
26879 if { (ac_try="$ac_compile"
26880 case "(($ac_try" in
26881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26882 *) ac_try_echo=$ac_try;;
26884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26885 (eval "$ac_compile") 2>conftest.er1
26887 grep -v '^ *+' conftest.er1 >conftest.err
26889 cat conftest.err >&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); } && {
26892 test -z "$ac_c_werror_flag" ||
26893 test ! -s conftest.err
26894 } && test -s conftest.$ac_objext; then
26895 ac_header_compiler=yes
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 ac_header_compiler=no
26903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26905 echo "${ECHO_T}$ac_header_compiler" >&6; }
26907 # Is the header present?
26908 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26909 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26916 @%:@include <sys/mkdev.h>
26918 if { (ac_try="$ac_cpp conftest.$ac_ext"
26919 case "(($ac_try" in
26920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921 *) ac_try_echo=$ac_try;;
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26926 grep -v '^ *+' conftest.er1 >conftest.err
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } >/dev/null && {
26931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26932 test ! -s conftest.err
26934 ac_header_preproc=yes
26936 echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26939 ac_header_preproc=no
26942 rm -f conftest.err conftest.$ac_ext
26943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26944 echo "${ECHO_T}$ac_header_preproc" >&6; }
26946 # So? What about this header?
26947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26949 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26950 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26951 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26952 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26953 ac_header_preproc=yes
26956 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26957 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26958 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
26959 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
26960 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26961 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26962 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
26963 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26965 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26967 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26969 @%:@@%:@ ------------------------------- @%:@@%:@
26970 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26971 @%:@@%:@ ------------------------------- @%:@@%:@
26973 ) | sed "s/^/$as_me: WARNING: /" >&2
26976 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26977 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26978 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26979 echo $ECHO_N "(cached) $ECHO_C" >&6
26981 ac_cv_header_sys_mkdev_h=$ac_header_preproc
26983 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26984 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26987 if test $ac_cv_header_sys_mkdev_h = yes; then
26989 cat >>confdefs.h <<\_ACEOF
26990 @%:@define MAJOR_IN_MKDEV 1
26997 if test $ac_cv_header_sys_mkdev_h = no; then
26998 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26999 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27000 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27001 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27004 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27005 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27007 # Is the header compilable?
27008 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27009 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27010 cat >conftest.$ac_ext <<_ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27016 $ac_includes_default
27017 @%:@include <sys/sysmacros.h>
27019 rm -f conftest.$ac_objext
27020 if { (ac_try="$ac_compile"
27021 case "(($ac_try" in
27022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023 *) ac_try_echo=$ac_try;;
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026 (eval "$ac_compile") 2>conftest.er1
27028 grep -v '^ *+' conftest.er1 >conftest.err
27030 cat conftest.err >&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } && {
27033 test -z "$ac_c_werror_flag" ||
27034 test ! -s conftest.err
27035 } && test -s conftest.$ac_objext; then
27036 ac_header_compiler=yes
27038 echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27041 ac_header_compiler=no
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27046 echo "${ECHO_T}$ac_header_compiler" >&6; }
27048 # Is the header present?
27049 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27050 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27051 cat >conftest.$ac_ext <<_ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h. */
27057 @%:@include <sys/sysmacros.h>
27059 if { (ac_try="$ac_cpp conftest.$ac_ext"
27060 case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27067 grep -v '^ *+' conftest.er1 >conftest.err
27069 cat conftest.err >&5
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } >/dev/null && {
27072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27073 test ! -s conftest.err
27075 ac_header_preproc=yes
27077 echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ac_header_preproc=no
27083 rm -f conftest.err conftest.$ac_ext
27084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27085 echo "${ECHO_T}$ac_header_preproc" >&6; }
27087 # So? What about this header?
27088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27090 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27091 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27092 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27093 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27094 ac_header_preproc=yes
27097 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27098 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27099 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
27100 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
27101 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27102 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27103 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
27104 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27105 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27106 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27107 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27108 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27110 @%:@@%:@ ------------------------------- @%:@@%:@
27111 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27112 @%:@@%:@ ------------------------------- @%:@@%:@
27114 ) | sed "s/^/$as_me: WARNING: /" >&2
27117 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27118 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27119 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27122 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27124 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27125 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27128 if test $ac_cv_header_sys_sysmacros_h = yes; then
27130 cat >>confdefs.h <<\_ACEOF
27131 @%:@define MAJOR_IN_SYSMACROS 1
27141 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27142 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27143 if test "${ac_cv_func_memcmp_working+set}" = set; then
27144 echo $ECHO_N "(cached) $ECHO_C" >&6
27146 if test "$cross_compiling" = yes; then
27147 ac_cv_func_memcmp_working=no
27149 cat >conftest.$ac_ext <<_ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h. */
27155 $ac_includes_default
27160 /* Some versions of memcmp are not 8-bit clean. */
27161 char c0 = '\100', c1 = '\200', c2 = '\201';
27162 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27165 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27166 or more and with at least one buffer not starting on a 4-byte boundary.
27167 William Lewis provided this test program. */
27172 for (i = 0; i < 4; i++)
27176 strcpy (a, "--------01111111");
27177 strcpy (b, "--------10000000");
27178 if (memcmp (a, b, 16) >= 0)
27188 rm -f conftest$ac_exeext
27189 if { (ac_try="$ac_link"
27190 case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_link") 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27199 { (case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_try") 2>&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; }; then
27208 ac_cv_func_memcmp_working=yes
27210 echo "$as_me: program exited with status $ac_status" >&5
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ( exit $ac_status )
27215 ac_cv_func_memcmp_working=no
27217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27222 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27223 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27224 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27225 *" memcmp.$ac_objext "* ) ;;
27226 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27234 for ac_header in sys/select.h sys/socket.h
27236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27243 ac_res=`eval echo '${'$as_ac_Header'}'`
27244 { echo "$as_me:$LINENO: result: $ac_res" >&5
27245 echo "${ECHO_T}$ac_res" >&6; }
27247 # Is the header compilable?
27248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27250 cat >conftest.$ac_ext <<_ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h. */
27256 $ac_includes_default
27257 @%:@include <$ac_header>
27259 rm -f conftest.$ac_objext
27260 if { (ac_try="$ac_compile"
27261 case "(($ac_try" in
27262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263 *) ac_try_echo=$ac_try;;
27265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27266 (eval "$ac_compile") 2>conftest.er1
27268 grep -v '^ *+' conftest.er1 >conftest.err
27270 cat conftest.err >&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } && {
27273 test -z "$ac_c_werror_flag" ||
27274 test ! -s conftest.err
27275 } && test -s conftest.$ac_objext; then
27276 ac_header_compiler=yes
27278 echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27281 ac_header_compiler=no
27284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27286 echo "${ECHO_T}$ac_header_compiler" >&6; }
27288 # Is the header present?
27289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27291 cat >conftest.$ac_ext <<_ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h. */
27297 @%:@include <$ac_header>
27299 if { (ac_try="$ac_cpp conftest.$ac_ext"
27300 case "(($ac_try" in
27301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27302 *) ac_try_echo=$ac_try;;
27304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27307 grep -v '^ *+' conftest.er1 >conftest.err
27309 cat conftest.err >&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); } >/dev/null && {
27312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27313 test ! -s conftest.err
27315 ac_header_preproc=yes
27317 echo "$as_me: failed program was:" >&5
27318 sed 's/^/| /' conftest.$ac_ext >&5
27320 ac_header_preproc=no
27323 rm -f conftest.err conftest.$ac_ext
27324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27325 echo "${ECHO_T}$ac_header_preproc" >&6; }
27327 # So? What about this header?
27328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27334 ac_header_preproc=yes
27337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27350 @%:@@%:@ ------------------------------- @%:@@%:@
27351 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27352 @%:@@%:@ ------------------------------- @%:@@%:@
27354 ) | sed "s/^/$as_me: WARNING: /" >&2
27357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27360 echo $ECHO_N "(cached) $ECHO_C" >&6
27362 eval "$as_ac_Header=\$ac_header_preproc"
27364 ac_res=`eval echo '${'$as_ac_Header'}'`
27365 { echo "$as_me:$LINENO: result: $ac_res" >&5
27366 echo "${ECHO_T}$ac_res" >&6; }
27369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27370 cat >>confdefs.h <<_ACEOF
27371 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27378 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27379 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27380 if test "${ac_cv_func_select_args+set}" = set; then
27381 echo $ECHO_N "(cached) $ECHO_C" >&6
27383 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27384 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27385 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27386 cat >conftest.$ac_ext <<_ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h. */
27392 $ac_includes_default
27393 #ifdef HAVE_SYS_SELECT_H
27394 # include <sys/select.h>
27396 #ifdef HAVE_SYS_SOCKET_H
27397 # include <sys/socket.h>
27403 extern int select ($ac_arg1,
27404 $ac_arg234, $ac_arg234, $ac_arg234,
27410 rm -f conftest.$ac_objext
27411 if { (ac_try="$ac_compile"
27412 case "(($ac_try" in
27413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414 *) ac_try_echo=$ac_try;;
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417 (eval "$ac_compile") 2>conftest.er1
27419 grep -v '^ *+' conftest.er1 >conftest.err
27421 cat conftest.err >&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } && {
27424 test -z "$ac_c_werror_flag" ||
27425 test ! -s conftest.err
27426 } && test -s conftest.$ac_objext; then
27427 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27439 # Provide a safe default value.
27440 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27443 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27444 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27445 ac_save_IFS=$IFS; IFS=','
27446 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27450 cat >>confdefs.h <<_ACEOF
27451 @%:@define SELECT_TYPE_ARG1 $1
27455 cat >>confdefs.h <<_ACEOF
27456 @%:@define SELECT_TYPE_ARG234 ($2)
27460 cat >>confdefs.h <<_ACEOF
27461 @%:@define SELECT_TYPE_ARG5 ($3)
27466 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27467 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27468 if test "${ac_cv_type_signal+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27471 cat >conftest.$ac_ext <<_ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h. */
27477 #include <sys/types.h>
27478 #include <signal.h>
27483 return *(signal (0, 0)) (0) == 1;
27488 rm -f conftest.$ac_objext
27489 if { (ac_try="$ac_compile"
27490 case "(($ac_try" in
27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492 *) ac_try_echo=$ac_try;;
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_compile") 2>conftest.er1
27497 grep -v '^ *+' conftest.er1 >conftest.err
27499 cat conftest.err >&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } && {
27502 test -z "$ac_c_werror_flag" ||
27503 test ! -s conftest.err
27504 } && test -s conftest.$ac_objext; then
27505 ac_cv_type_signal=int
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 ac_cv_type_signal=void
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27515 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27516 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27518 cat >>confdefs.h <<_ACEOF
27519 @%:@define RETSIGTYPE $ac_cv_type_signal
27523 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27524 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27525 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27526 echo $ECHO_N "(cached) $ECHO_C" >&6
27528 if test "$cross_compiling" = yes; then
27529 ac_cv_func_stat_empty_string_bug=yes
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 $ac_includes_default
27542 return stat ("", &sbuf) == 0;
27547 rm -f conftest$ac_exeext
27548 if { (ac_try="$ac_link"
27549 case "(($ac_try" in
27550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551 *) ac_try_echo=$ac_try;;
27553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554 (eval "$ac_link") 2>&5
27556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27558 { (case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_try") 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; }; then
27567 ac_cv_func_stat_empty_string_bug=no
27569 echo "$as_me: program exited with status $ac_status" >&5
27570 echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27573 ( exit $ac_status )
27574 ac_cv_func_stat_empty_string_bug=yes
27576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27581 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27582 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27583 if test $ac_cv_func_stat_empty_string_bug = yes; then
27584 case " $LIB@&t@OBJS " in
27585 *" stat.$ac_objext "* ) ;;
27586 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27591 cat >>confdefs.h <<_ACEOF
27592 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27598 for ac_func in vprintf
27600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27604 echo $ECHO_N "(cached) $ECHO_C" >&6
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27614 #define $ac_func innocuous_$ac_func
27616 /* System header to define __stub macros and hopefully few prototypes,
27617 which can conflict with char $ac_func (); below.
27618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619 <limits.h> exists even on freestanding compilers. */
27622 # include <limits.h>
27624 # include <assert.h>
27629 /* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27636 /* The GNU C library defines this for functions which it implements
27637 to always fail with ENOSYS. Some functions are actually named
27638 something starting with __ and the normal name is an alias. */
27639 #if defined __stub_$ac_func || defined __stub___$ac_func
27646 return $ac_func ();
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655 *) ac_try_echo=$ac_try;;
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658 (eval "$ac_link") 2>conftest.er1
27660 grep -v '^ *+' conftest.er1 >conftest.err
27662 cat conftest.err >&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); } && {
27665 test -z "$ac_c_werror_flag" ||
27666 test ! -s conftest.err
27667 } && test -s conftest$ac_exeext &&
27668 $as_test_x conftest$ac_exeext; then
27669 eval "$as_ac_var=yes"
27671 echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27674 eval "$as_ac_var=no"
27677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27678 conftest$ac_exeext conftest.$ac_ext
27680 ac_res=`eval echo '${'$as_ac_var'}'`
27681 { echo "$as_me:$LINENO: result: $ac_res" >&5
27682 echo "${ECHO_T}$ac_res" >&6; }
27683 if test `eval echo '${'$as_ac_var'}'` = yes; then
27684 cat >>confdefs.h <<_ACEOF
27685 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27688 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27689 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27690 if test "${ac_cv_func__doprnt+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27699 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27701 #define _doprnt innocuous__doprnt
27703 /* System header to define __stub macros and hopefully few prototypes,
27704 which can conflict with char _doprnt (); below.
27705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27706 <limits.h> exists even on freestanding compilers. */
27709 # include <limits.h>
27711 # include <assert.h>
27716 /* Override any GCC internal prototype to avoid an error.
27717 Use char because int might match the return type of a GCC
27718 builtin and then its argument prototype would still apply. */
27723 /* The GNU C library defines this for functions which it implements
27724 to always fail with ENOSYS. Some functions are actually named
27725 something starting with __ and the normal name is an alias. */
27726 #if defined __stub__doprnt || defined __stub____doprnt
27738 rm -f conftest.$ac_objext conftest$ac_exeext
27739 if { (ac_try="$ac_link"
27740 case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745 (eval "$ac_link") 2>conftest.er1
27747 grep -v '^ *+' conftest.er1 >conftest.err
27749 cat conftest.err >&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } && {
27752 test -z "$ac_c_werror_flag" ||
27753 test ! -s conftest.err
27754 } && test -s conftest$ac_exeext &&
27755 $as_test_x conftest$ac_exeext; then
27756 ac_cv_func__doprnt=yes
27758 echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27761 ac_cv_func__doprnt=no
27764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27765 conftest$ac_exeext conftest.$ac_ext
27767 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27768 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27769 if test $ac_cv_func__doprnt = yes; then
27771 cat >>confdefs.h <<\_ACEOF
27772 @%:@define HAVE_DOPRNT 1
27810 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27811 gethostbyaddr gethostbyname gethostname getmntent \
27812 gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27813 realpath rmdir select socket strcasecmp strchr strdup \
27814 strerror strrchr strtol strtoul sigprocmask
27816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27820 echo $ECHO_N "(cached) $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h. */
27828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27830 #define $ac_func innocuous_$ac_func
27832 /* System header to define __stub macros and hopefully few prototypes,
27833 which can conflict with char $ac_func (); below.
27834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27835 <limits.h> exists even on freestanding compilers. */
27838 # include <limits.h>
27840 # include <assert.h>
27845 /* Override any GCC internal prototype to avoid an error.
27846 Use char because int might match the return type of a GCC
27847 builtin and then its argument prototype would still apply. */
27852 /* The GNU C library defines this for functions which it implements
27853 to always fail with ENOSYS. Some functions are actually named
27854 something starting with __ and the normal name is an alias. */
27855 #if defined __stub_$ac_func || defined __stub___$ac_func
27862 return $ac_func ();
27867 rm -f conftest.$ac_objext conftest$ac_exeext
27868 if { (ac_try="$ac_link"
27869 case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_link") 2>conftest.er1
27876 grep -v '^ *+' conftest.er1 >conftest.err
27878 cat conftest.err >&5
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); } && {
27881 test -z "$ac_c_werror_flag" ||
27882 test ! -s conftest.err
27883 } && test -s conftest$ac_exeext &&
27884 $as_test_x conftest$ac_exeext; then
27885 eval "$as_ac_var=yes"
27887 echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27890 eval "$as_ac_var=no"
27893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27894 conftest$ac_exeext conftest.$ac_ext
27896 ac_res=`eval echo '${'$as_ac_var'}'`
27897 { echo "$as_me:$LINENO: result: $ac_res" >&5
27898 echo "${ECHO_T}$ac_res" >&6; }
27899 if test `eval echo '${'$as_ac_var'}'` = yes; then
27900 cat >>confdefs.h <<_ACEOF
27901 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27909 { echo "$as_me:$LINENO: checking for short" >&5
27910 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27911 if test "${ac_cv_type_short+set}" = set; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 cat >conftest.$ac_ext <<_ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h. */
27920 $ac_includes_default
27921 typedef short ac__type_new_;
27925 if ((ac__type_new_ *) 0)
27927 if (sizeof (ac__type_new_))
27933 rm -f conftest.$ac_objext
27934 if { (ac_try="$ac_compile"
27935 case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_compile") 2>conftest.er1
27942 grep -v '^ *+' conftest.er1 >conftest.err
27944 cat conftest.err >&5
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } && {
27947 test -z "$ac_c_werror_flag" ||
27948 test ! -s conftest.err
27949 } && test -s conftest.$ac_objext; then
27950 ac_cv_type_short=yes
27952 echo "$as_me: failed program was:" >&5
27953 sed 's/^/| /' conftest.$ac_ext >&5
27955 ac_cv_type_short=no
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27960 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27961 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27963 # The cast to long int works around a bug in the HP C Compiler
27964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27966 # This bug is HP SR number 8606223364.
27967 { echo "$as_me:$LINENO: checking size of short" >&5
27968 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27969 if test "${ac_cv_sizeof_short+set}" = set; then
27970 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 if test "$cross_compiling" = yes; then
27973 # Depending upon the size, compute the lo and hi bounds.
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 $ac_includes_default
27981 typedef short ac__type_sizeof_;
27985 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27986 test_array @<:@0@:>@ = 0
27992 rm -f conftest.$ac_objext
27993 if { (ac_try="$ac_compile"
27994 case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_compile") 2>conftest.er1
28001 grep -v '^ *+' conftest.er1 >conftest.err
28003 cat conftest.err >&5
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); } && {
28006 test -z "$ac_c_werror_flag" ||
28007 test ! -s conftest.err
28008 } && test -s conftest.$ac_objext; then
28011 cat >conftest.$ac_ext <<_ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28017 $ac_includes_default
28018 typedef short ac__type_sizeof_;
28022 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28023 test_array @<:@0@:>@ = 0
28029 rm -f conftest.$ac_objext
28030 if { (ac_try="$ac_compile"
28031 case "(($ac_try" in
28032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033 *) ac_try_echo=$ac_try;;
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036 (eval "$ac_compile") 2>conftest.er1
28038 grep -v '^ *+' conftest.er1 >conftest.err
28040 cat conftest.err >&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } && {
28043 test -z "$ac_c_werror_flag" ||
28044 test ! -s conftest.err
28045 } && test -s conftest.$ac_objext; then
28046 ac_hi=$ac_mid; break
28048 echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28051 ac_lo=`expr $ac_mid + 1`
28052 if test $ac_lo -le $ac_mid; then
28056 ac_mid=`expr 2 '*' $ac_mid + 1`
28059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28065 cat >conftest.$ac_ext <<_ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h. */
28071 $ac_includes_default
28072 typedef short ac__type_sizeof_;
28076 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28077 test_array @<:@0@:>@ = 0
28083 rm -f conftest.$ac_objext
28084 if { (ac_try="$ac_compile"
28085 case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_compile") 2>conftest.er1
28092 grep -v '^ *+' conftest.er1 >conftest.err
28094 cat conftest.err >&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); } && {
28097 test -z "$ac_c_werror_flag" ||
28098 test ! -s conftest.err
28099 } && test -s conftest.$ac_objext; then
28102 cat >conftest.$ac_ext <<_ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h. */
28108 $ac_includes_default
28109 typedef short ac__type_sizeof_;
28113 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28114 test_array @<:@0@:>@ = 0
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124 *) ac_try_echo=$ac_try;;
28126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28127 (eval "$ac_compile") 2>conftest.er1
28129 grep -v '^ *+' conftest.er1 >conftest.err
28131 cat conftest.err >&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } && {
28134 test -z "$ac_c_werror_flag" ||
28135 test ! -s conftest.err
28136 } && test -s conftest.$ac_objext; then
28137 ac_lo=$ac_mid; break
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28142 ac_hi=`expr '(' $ac_mid ')' - 1`
28143 if test $ac_mid -le $ac_hi; then
28147 ac_mid=`expr 2 '*' $ac_mid`
28150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28153 echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 # Binary search between lo and hi bounds.
28164 while test "x$ac_lo" != "x$ac_hi"; do
28165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28166 cat >conftest.$ac_ext <<_ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28172 $ac_includes_default
28173 typedef short ac__type_sizeof_;
28177 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28178 test_array @<:@0@:>@ = 0
28184 rm -f conftest.$ac_objext
28185 if { (ac_try="$ac_compile"
28186 case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_compile") 2>conftest.er1
28193 grep -v '^ *+' conftest.er1 >conftest.err
28195 cat conftest.err >&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } && {
28198 test -z "$ac_c_werror_flag" ||
28199 test ! -s conftest.err
28200 } && test -s conftest.$ac_objext; then
28203 echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28206 ac_lo=`expr '(' $ac_mid ')' + 1`
28209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28212 ?*) ac_cv_sizeof_short=$ac_lo;;
28213 '') if test "$ac_cv_type_short" = yes; then
28214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28215 See \`config.log' for more details." >&5
28216 echo "$as_me: error: cannot compute sizeof (short)
28217 See \`config.log' for more details." >&2;}
28218 { (exit 77); exit 77; }; }
28220 ac_cv_sizeof_short=0
28224 cat >conftest.$ac_ext <<_ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h. */
28230 $ac_includes_default
28231 typedef short ac__type_sizeof_;
28232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28234 @%:@include <stdio.h>
28235 @%:@include <stdlib.h>
28240 FILE *f = fopen ("conftest.val", "w");
28243 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28245 long int i = longval ();
28246 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28248 fprintf (f, "%ld\n", i);
28252 unsigned long int i = ulongval ();
28253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28255 fprintf (f, "%lu\n", i);
28257 return ferror (f) || fclose (f) != 0;
28263 rm -f conftest$ac_exeext
28264 if { (ac_try="$ac_link"
28265 case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_link") 2>&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28274 { (case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_try") 2>&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; }; then
28283 ac_cv_sizeof_short=`cat conftest.val`
28285 echo "$as_me: program exited with status $ac_status" >&5
28286 echo "$as_me: failed program was:" >&5
28287 sed 's/^/| /' conftest.$ac_ext >&5
28289 ( exit $ac_status )
28290 if test "$ac_cv_type_short" = yes; then
28291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28292 See \`config.log' for more details." >&5
28293 echo "$as_me: error: cannot compute sizeof (short)
28294 See \`config.log' for more details." >&2;}
28295 { (exit 77); exit 77; }; }
28297 ac_cv_sizeof_short=0
28300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28305 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28309 cat >>confdefs.h <<_ACEOF
28310 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28314 { echo "$as_me:$LINENO: checking for int" >&5
28315 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28316 if test "${ac_cv_type_int+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 cat >conftest.$ac_ext <<_ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28325 $ac_includes_default
28326 typedef int ac__type_new_;
28330 if ((ac__type_new_ *) 0)
28332 if (sizeof (ac__type_new_))
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 *) ac_try_echo=$ac_try;;
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345 (eval "$ac_compile") 2>conftest.er1
28347 grep -v '^ *+' conftest.er1 >conftest.err
28349 cat conftest.err >&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); } && {
28352 test -z "$ac_c_werror_flag" ||
28353 test ! -s conftest.err
28354 } && test -s conftest.$ac_objext; then
28357 echo "$as_me: failed program was:" >&5
28358 sed 's/^/| /' conftest.$ac_ext >&5
28363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28365 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28366 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28368 # The cast to long int works around a bug in the HP C Compiler
28369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28371 # This bug is HP SR number 8606223364.
28372 { echo "$as_me:$LINENO: checking size of int" >&5
28373 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28374 if test "${ac_cv_sizeof_int+set}" = set; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 if test "$cross_compiling" = yes; then
28378 # Depending upon the size, compute the lo and hi bounds.
28379 cat >conftest.$ac_ext <<_ACEOF
28382 cat confdefs.h >>conftest.$ac_ext
28383 cat >>conftest.$ac_ext <<_ACEOF
28384 /* end confdefs.h. */
28385 $ac_includes_default
28386 typedef int ac__type_sizeof_;
28390 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28391 test_array @<:@0@:>@ = 0
28397 rm -f conftest.$ac_objext
28398 if { (ac_try="$ac_compile"
28399 case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_compile") 2>conftest.er1
28406 grep -v '^ *+' conftest.er1 >conftest.err
28408 cat conftest.err >&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); } && {
28411 test -z "$ac_c_werror_flag" ||
28412 test ! -s conftest.err
28413 } && test -s conftest.$ac_objext; then
28416 cat >conftest.$ac_ext <<_ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28422 $ac_includes_default
28423 typedef int ac__type_sizeof_;
28427 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28428 test_array @<:@0@:>@ = 0
28434 rm -f conftest.$ac_objext
28435 if { (ac_try="$ac_compile"
28436 case "(($ac_try" in
28437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438 *) ac_try_echo=$ac_try;;
28440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28441 (eval "$ac_compile") 2>conftest.er1
28443 grep -v '^ *+' conftest.er1 >conftest.err
28445 cat conftest.err >&5
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } && {
28448 test -z "$ac_c_werror_flag" ||
28449 test ! -s conftest.err
28450 } && test -s conftest.$ac_objext; then
28451 ac_hi=$ac_mid; break
28453 echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28456 ac_lo=`expr $ac_mid + 1`
28457 if test $ac_lo -le $ac_mid; then
28461 ac_mid=`expr 2 '*' $ac_mid + 1`
28464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28467 echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28470 cat >conftest.$ac_ext <<_ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h. */
28476 $ac_includes_default
28477 typedef int ac__type_sizeof_;
28481 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28482 test_array @<:@0@:>@ = 0
28488 rm -f conftest.$ac_objext
28489 if { (ac_try="$ac_compile"
28490 case "(($ac_try" in
28491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492 *) ac_try_echo=$ac_try;;
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495 (eval "$ac_compile") 2>conftest.er1
28497 grep -v '^ *+' conftest.er1 >conftest.err
28499 cat conftest.err >&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } && {
28502 test -z "$ac_c_werror_flag" ||
28503 test ! -s conftest.err
28504 } && test -s conftest.$ac_objext; then
28507 cat >conftest.$ac_ext <<_ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h. */
28513 $ac_includes_default
28514 typedef int ac__type_sizeof_;
28518 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28519 test_array @<:@0@:>@ = 0
28525 rm -f conftest.$ac_objext
28526 if { (ac_try="$ac_compile"
28527 case "(($ac_try" in
28528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529 *) ac_try_echo=$ac_try;;
28531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28532 (eval "$ac_compile") 2>conftest.er1
28534 grep -v '^ *+' conftest.er1 >conftest.err
28536 cat conftest.err >&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); } && {
28539 test -z "$ac_c_werror_flag" ||
28540 test ! -s conftest.err
28541 } && test -s conftest.$ac_objext; then
28542 ac_lo=$ac_mid; break
28544 echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28547 ac_hi=`expr '(' $ac_mid ')' - 1`
28548 if test $ac_mid -le $ac_hi; then
28552 ac_mid=`expr 2 '*' $ac_mid`
28555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28558 echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 # Binary search between lo and hi bounds.
28569 while test "x$ac_lo" != "x$ac_hi"; do
28570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28571 cat >conftest.$ac_ext <<_ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h. */
28577 $ac_includes_default
28578 typedef int ac__type_sizeof_;
28582 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28583 test_array @<:@0@:>@ = 0
28589 rm -f conftest.$ac_objext
28590 if { (ac_try="$ac_compile"
28591 case "(($ac_try" in
28592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593 *) ac_try_echo=$ac_try;;
28595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596 (eval "$ac_compile") 2>conftest.er1
28598 grep -v '^ *+' conftest.er1 >conftest.err
28600 cat conftest.err >&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } && {
28603 test -z "$ac_c_werror_flag" ||
28604 test ! -s conftest.err
28605 } && test -s conftest.$ac_objext; then
28608 echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28611 ac_lo=`expr '(' $ac_mid ')' + 1`
28614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28617 ?*) ac_cv_sizeof_int=$ac_lo;;
28618 '') if test "$ac_cv_type_int" = yes; then
28619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28620 See \`config.log' for more details." >&5
28621 echo "$as_me: error: cannot compute sizeof (int)
28622 See \`config.log' for more details." >&2;}
28623 { (exit 77); exit 77; }; }
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 $ac_includes_default
28636 typedef int ac__type_sizeof_;
28637 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28638 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28639 @%:@include <stdio.h>
28640 @%:@include <stdlib.h>
28645 FILE *f = fopen ("conftest.val", "w");
28648 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28650 long int i = longval ();
28651 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28653 fprintf (f, "%ld\n", i);
28657 unsigned long int i = ulongval ();
28658 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28660 fprintf (f, "%lu\n", i);
28662 return ferror (f) || fclose (f) != 0;
28668 rm -f conftest$ac_exeext
28669 if { (ac_try="$ac_link"
28670 case "(($ac_try" in
28671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672 *) ac_try_echo=$ac_try;;
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675 (eval "$ac_link") 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28679 { (case "(($ac_try" in
28680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681 *) ac_try_echo=$ac_try;;
28683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684 (eval "$ac_try") 2>&5
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); }; }; then
28688 ac_cv_sizeof_int=`cat conftest.val`
28690 echo "$as_me: program exited with status $ac_status" >&5
28691 echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28694 ( exit $ac_status )
28695 if test "$ac_cv_type_int" = yes; then
28696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28697 See \`config.log' for more details." >&5
28698 echo "$as_me: error: cannot compute sizeof (int)
28699 See \`config.log' for more details." >&2;}
28700 { (exit 77); exit 77; }; }
28705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28709 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28710 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28714 cat >>confdefs.h <<_ACEOF
28715 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28719 { echo "$as_me:$LINENO: checking for long" >&5
28720 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28721 if test "${ac_cv_type_long+set}" = set; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28724 cat >conftest.$ac_ext <<_ACEOF
28727 cat confdefs.h >>conftest.$ac_ext
28728 cat >>conftest.$ac_ext <<_ACEOF
28729 /* end confdefs.h. */
28730 $ac_includes_default
28731 typedef long ac__type_new_;
28735 if ((ac__type_new_ *) 0)
28737 if (sizeof (ac__type_new_))
28743 rm -f conftest.$ac_objext
28744 if { (ac_try="$ac_compile"
28745 case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_compile") 2>conftest.er1
28752 grep -v '^ *+' conftest.er1 >conftest.err
28754 cat conftest.err >&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); } && {
28757 test -z "$ac_c_werror_flag" ||
28758 test ! -s conftest.err
28759 } && test -s conftest.$ac_objext; then
28760 ac_cv_type_long=yes
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28770 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28771 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28773 # The cast to long int works around a bug in the HP C Compiler
28774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28776 # This bug is HP SR number 8606223364.
28777 { echo "$as_me:$LINENO: checking size of long" >&5
28778 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28779 if test "${ac_cv_sizeof_long+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 if test "$cross_compiling" = yes; then
28783 # Depending upon the size, compute the lo and hi bounds.
28784 cat >conftest.$ac_ext <<_ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h. */
28790 $ac_includes_default
28791 typedef long ac__type_sizeof_;
28795 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28796 test_array @<:@0@:>@ = 0
28802 rm -f conftest.$ac_objext
28803 if { (ac_try="$ac_compile"
28804 case "(($ac_try" in
28805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28806 *) ac_try_echo=$ac_try;;
28808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28809 (eval "$ac_compile") 2>conftest.er1
28811 grep -v '^ *+' conftest.er1 >conftest.err
28813 cat conftest.err >&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } && {
28816 test -z "$ac_c_werror_flag" ||
28817 test ! -s conftest.err
28818 } && test -s conftest.$ac_objext; then
28821 cat >conftest.$ac_ext <<_ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h. */
28827 $ac_includes_default
28828 typedef long ac__type_sizeof_;
28832 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28833 test_array @<:@0@:>@ = 0
28839 rm -f conftest.$ac_objext
28840 if { (ac_try="$ac_compile"
28841 case "(($ac_try" in
28842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28843 *) ac_try_echo=$ac_try;;
28845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28846 (eval "$ac_compile") 2>conftest.er1
28848 grep -v '^ *+' conftest.er1 >conftest.err
28850 cat conftest.err >&5
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); } && {
28853 test -z "$ac_c_werror_flag" ||
28854 test ! -s conftest.err
28855 } && test -s conftest.$ac_objext; then
28856 ac_hi=$ac_mid; break
28858 echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28861 ac_lo=`expr $ac_mid + 1`
28862 if test $ac_lo -le $ac_mid; then
28866 ac_mid=`expr 2 '*' $ac_mid + 1`
28869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 cat >conftest.$ac_ext <<_ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h. */
28881 $ac_includes_default
28882 typedef long ac__type_sizeof_;
28886 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28887 test_array @<:@0@:>@ = 0
28893 rm -f conftest.$ac_objext
28894 if { (ac_try="$ac_compile"
28895 case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_compile") 2>conftest.er1
28902 grep -v '^ *+' conftest.er1 >conftest.err
28904 cat conftest.err >&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } && {
28907 test -z "$ac_c_werror_flag" ||
28908 test ! -s conftest.err
28909 } && test -s conftest.$ac_objext; then
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28918 $ac_includes_default
28919 typedef long ac__type_sizeof_;
28923 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28924 test_array @<:@0@:>@ = 0
28930 rm -f conftest.$ac_objext
28931 if { (ac_try="$ac_compile"
28932 case "(($ac_try" in
28933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934 *) ac_try_echo=$ac_try;;
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937 (eval "$ac_compile") 2>conftest.er1
28939 grep -v '^ *+' conftest.er1 >conftest.err
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } && {
28944 test -z "$ac_c_werror_flag" ||
28945 test ! -s conftest.err
28946 } && test -s conftest.$ac_objext; then
28947 ac_lo=$ac_mid; break
28949 echo "$as_me: failed program was:" >&5
28950 sed 's/^/| /' conftest.$ac_ext >&5
28952 ac_hi=`expr '(' $ac_mid ')' - 1`
28953 if test $ac_mid -le $ac_hi; then
28957 ac_mid=`expr 2 '*' $ac_mid`
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 # Binary search between lo and hi bounds.
28974 while test "x$ac_lo" != "x$ac_hi"; do
28975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28976 cat >conftest.$ac_ext <<_ACEOF
28979 cat confdefs.h >>conftest.$ac_ext
28980 cat >>conftest.$ac_ext <<_ACEOF
28981 /* end confdefs.h. */
28982 $ac_includes_default
28983 typedef long ac__type_sizeof_;
28987 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28988 test_array @<:@0@:>@ = 0
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_compile") 2>conftest.er1
29003 grep -v '^ *+' conftest.er1 >conftest.err
29005 cat conftest.err >&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } && {
29008 test -z "$ac_c_werror_flag" ||
29009 test ! -s conftest.err
29010 } && test -s conftest.$ac_objext; then
29013 echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29016 ac_lo=`expr '(' $ac_mid ')' + 1`
29019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29022 ?*) ac_cv_sizeof_long=$ac_lo;;
29023 '') if test "$ac_cv_type_long" = yes; then
29024 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29025 See \`config.log' for more details." >&5
29026 echo "$as_me: error: cannot compute sizeof (long)
29027 See \`config.log' for more details." >&2;}
29028 { (exit 77); exit 77; }; }
29030 ac_cv_sizeof_long=0
29034 cat >conftest.$ac_ext <<_ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h. */
29040 $ac_includes_default
29041 typedef long ac__type_sizeof_;
29042 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29043 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29044 @%:@include <stdio.h>
29045 @%:@include <stdlib.h>
29050 FILE *f = fopen ("conftest.val", "w");
29053 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29055 long int i = longval ();
29056 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29058 fprintf (f, "%ld\n", i);
29062 unsigned long int i = ulongval ();
29063 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29065 fprintf (f, "%lu\n", i);
29067 return ferror (f) || fclose (f) != 0;
29073 rm -f conftest$ac_exeext
29074 if { (ac_try="$ac_link"
29075 case "(($ac_try" in
29076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077 *) ac_try_echo=$ac_try;;
29079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29080 (eval "$ac_link") 2>&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29084 { (case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089 (eval "$ac_try") 2>&5
29091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092 (exit $ac_status); }; }; then
29093 ac_cv_sizeof_long=`cat conftest.val`
29095 echo "$as_me: program exited with status $ac_status" >&5
29096 echo "$as_me: failed program was:" >&5
29097 sed 's/^/| /' conftest.$ac_ext >&5
29099 ( exit $ac_status )
29100 if test "$ac_cv_type_long" = yes; then
29101 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29102 See \`config.log' for more details." >&5
29103 echo "$as_me: error: cannot compute sizeof (long)
29104 See \`config.log' for more details." >&2;}
29105 { (exit 77); exit 77; }; }
29107 ac_cv_sizeof_long=0
29110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29114 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29115 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29119 cat >>confdefs.h <<_ACEOF
29120 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29124 { echo "$as_me:$LINENO: checking for size_t" >&5
29125 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29126 if test "${ac_cv_type_size_t+set}" = set; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6
29129 cat >conftest.$ac_ext <<_ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29135 $ac_includes_default
29136 typedef size_t ac__type_new_;
29140 if ((ac__type_new_ *) 0)
29142 if (sizeof (ac__type_new_))
29148 rm -f conftest.$ac_objext
29149 if { (ac_try="$ac_compile"
29150 case "(($ac_try" in
29151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152 *) ac_try_echo=$ac_try;;
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155 (eval "$ac_compile") 2>conftest.er1
29157 grep -v '^ *+' conftest.er1 >conftest.err
29159 cat conftest.err >&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); } && {
29162 test -z "$ac_c_werror_flag" ||
29163 test ! -s conftest.err
29164 } && test -s conftest.$ac_objext; then
29165 ac_cv_type_size_t=yes
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ac_cv_type_size_t=no
29173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29175 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29176 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29178 # The cast to long int works around a bug in the HP C Compiler
29179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29181 # This bug is HP SR number 8606223364.
29182 { echo "$as_me:$LINENO: checking size of size_t" >&5
29183 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29184 if test "${ac_cv_sizeof_size_t+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29187 if test "$cross_compiling" = yes; then
29188 # Depending upon the size, compute the lo and hi bounds.
29189 cat >conftest.$ac_ext <<_ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h. */
29195 $ac_includes_default
29196 typedef size_t ac__type_sizeof_;
29200 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29201 test_array @<:@0@:>@ = 0
29207 rm -f conftest.$ac_objext
29208 if { (ac_try="$ac_compile"
29209 case "(($ac_try" in
29210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211 *) ac_try_echo=$ac_try;;
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214 (eval "$ac_compile") 2>conftest.er1
29216 grep -v '^ *+' conftest.er1 >conftest.err
29218 cat conftest.err >&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); } && {
29221 test -z "$ac_c_werror_flag" ||
29222 test ! -s conftest.err
29223 } && test -s conftest.$ac_objext; then
29226 cat >conftest.$ac_ext <<_ACEOF
29229 cat confdefs.h >>conftest.$ac_ext
29230 cat >>conftest.$ac_ext <<_ACEOF
29231 /* end confdefs.h. */
29232 $ac_includes_default
29233 typedef size_t ac__type_sizeof_;
29237 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29238 test_array @<:@0@:>@ = 0
29244 rm -f conftest.$ac_objext
29245 if { (ac_try="$ac_compile"
29246 case "(($ac_try" in
29247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29248 *) ac_try_echo=$ac_try;;
29250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29251 (eval "$ac_compile") 2>conftest.er1
29253 grep -v '^ *+' conftest.er1 >conftest.err
29255 cat conftest.err >&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); } && {
29258 test -z "$ac_c_werror_flag" ||
29259 test ! -s conftest.err
29260 } && test -s conftest.$ac_objext; then
29261 ac_hi=$ac_mid; break
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29266 ac_lo=`expr $ac_mid + 1`
29267 if test $ac_lo -le $ac_mid; then
29271 ac_mid=`expr 2 '*' $ac_mid + 1`
29274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 cat >conftest.$ac_ext <<_ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h. */
29286 $ac_includes_default
29287 typedef size_t ac__type_sizeof_;
29291 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29292 test_array @<:@0@:>@ = 0
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_compile") 2>conftest.er1
29307 grep -v '^ *+' conftest.er1 >conftest.err
29309 cat conftest.err >&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); } && {
29312 test -z "$ac_c_werror_flag" ||
29313 test ! -s conftest.err
29314 } && test -s conftest.$ac_objext; then
29317 cat >conftest.$ac_ext <<_ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h. */
29323 $ac_includes_default
29324 typedef size_t ac__type_sizeof_;
29328 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29329 test_array @<:@0@:>@ = 0
29335 rm -f conftest.$ac_objext
29336 if { (ac_try="$ac_compile"
29337 case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_compile") 2>conftest.er1
29344 grep -v '^ *+' conftest.er1 >conftest.err
29346 cat conftest.err >&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } && {
29349 test -z "$ac_c_werror_flag" ||
29350 test ! -s conftest.err
29351 } && test -s conftest.$ac_objext; then
29352 ac_lo=$ac_mid; break
29354 echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29357 ac_hi=`expr '(' $ac_mid ')' - 1`
29358 if test $ac_mid -le $ac_hi; then
29362 ac_mid=`expr 2 '*' $ac_mid`
29365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29368 echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 # Binary search between lo and hi bounds.
29379 while test "x$ac_lo" != "x$ac_hi"; do
29380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29381 cat >conftest.$ac_ext <<_ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387 $ac_includes_default
29388 typedef size_t ac__type_sizeof_;
29392 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29393 test_array @<:@0@:>@ = 0
29399 rm -f conftest.$ac_objext
29400 if { (ac_try="$ac_compile"
29401 case "(($ac_try" in
29402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403 *) ac_try_echo=$ac_try;;
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406 (eval "$ac_compile") 2>conftest.er1
29408 grep -v '^ *+' conftest.er1 >conftest.err
29410 cat conftest.err >&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } && {
29413 test -z "$ac_c_werror_flag" ||
29414 test ! -s conftest.err
29415 } && test -s conftest.$ac_objext; then
29418 echo "$as_me: failed program was:" >&5
29419 sed 's/^/| /' conftest.$ac_ext >&5
29421 ac_lo=`expr '(' $ac_mid ')' + 1`
29424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29427 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29428 '') if test "$ac_cv_type_size_t" = yes; then
29429 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29430 See \`config.log' for more details." >&5
29431 echo "$as_me: error: cannot compute sizeof (size_t)
29432 See \`config.log' for more details." >&2;}
29433 { (exit 77); exit 77; }; }
29435 ac_cv_sizeof_size_t=0
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29445 $ac_includes_default
29446 typedef size_t ac__type_sizeof_;
29447 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29448 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29449 @%:@include <stdio.h>
29450 @%:@include <stdlib.h>
29455 FILE *f = fopen ("conftest.val", "w");
29458 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29460 long int i = longval ();
29461 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29463 fprintf (f, "%ld\n", i);
29467 unsigned long int i = ulongval ();
29468 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29470 fprintf (f, "%lu\n", i);
29472 return ferror (f) || fclose (f) != 0;
29478 rm -f conftest$ac_exeext
29479 if { (ac_try="$ac_link"
29480 case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_link") 2>&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29489 { (case "(($ac_try" in
29490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29491 *) ac_try_echo=$ac_try;;
29493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29494 (eval "$ac_try") 2>&5
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; }; then
29498 ac_cv_sizeof_size_t=`cat conftest.val`
29500 echo "$as_me: program exited with status $ac_status" >&5
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29504 ( exit $ac_status )
29505 if test "$ac_cv_type_size_t" = yes; then
29506 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29507 See \`config.log' for more details." >&5
29508 echo "$as_me: error: cannot compute sizeof (size_t)
29509 See \`config.log' for more details." >&2;}
29510 { (exit 77); exit 77; }; }
29512 ac_cv_sizeof_size_t=0
29515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29519 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29520 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29524 cat >>confdefs.h <<_ACEOF
29525 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29529 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29530 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29531 if test "${ac_cv_type_socklen_t+set}" = set; then
29532 echo $ECHO_N "(cached) $ECHO_C" >&6
29534 cat >conftest.$ac_ext <<_ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h. */
29540 $ac_includes_default
29541 typedef socklen_t ac__type_new_;
29545 if ((ac__type_new_ *) 0)
29547 if (sizeof (ac__type_new_))
29553 rm -f conftest.$ac_objext
29554 if { (ac_try="$ac_compile"
29555 case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_compile") 2>conftest.er1
29562 grep -v '^ *+' conftest.er1 >conftest.err
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } && {
29567 test -z "$ac_c_werror_flag" ||
29568 test ! -s conftest.err
29569 } && test -s conftest.$ac_objext; then
29570 ac_cv_type_socklen_t=yes
29572 echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29575 ac_cv_type_socklen_t=no
29578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29580 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29581 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29583 # The cast to long int works around a bug in the HP C Compiler
29584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29586 # This bug is HP SR number 8606223364.
29587 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29588 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29589 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29592 if test "$cross_compiling" = yes; then
29593 # Depending upon the size, compute the lo and hi bounds.
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29600 $ac_includes_default
29601 typedef socklen_t ac__type_sizeof_;
29605 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29606 test_array @<:@0@:>@ = 0
29612 rm -f conftest.$ac_objext
29613 if { (ac_try="$ac_compile"
29614 case "(($ac_try" in
29615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616 *) ac_try_echo=$ac_try;;
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619 (eval "$ac_compile") 2>conftest.er1
29621 grep -v '^ *+' conftest.er1 >conftest.err
29623 cat conftest.err >&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); } && {
29626 test -z "$ac_c_werror_flag" ||
29627 test ! -s conftest.err
29628 } && test -s conftest.$ac_objext; then
29631 cat >conftest.$ac_ext <<_ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h. */
29637 $ac_includes_default
29638 typedef socklen_t ac__type_sizeof_;
29642 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29643 test_array @<:@0@:>@ = 0
29649 rm -f conftest.$ac_objext
29650 if { (ac_try="$ac_compile"
29651 case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656 (eval "$ac_compile") 2>conftest.er1
29658 grep -v '^ *+' conftest.er1 >conftest.err
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } && {
29663 test -z "$ac_c_werror_flag" ||
29664 test ! -s conftest.err
29665 } && test -s conftest.$ac_objext; then
29666 ac_hi=$ac_mid; break
29668 echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29671 ac_lo=`expr $ac_mid + 1`
29672 if test $ac_lo -le $ac_mid; then
29676 ac_mid=`expr 2 '*' $ac_mid + 1`
29679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 cat >conftest.$ac_ext <<_ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 $ac_includes_default
29692 typedef socklen_t ac__type_sizeof_;
29696 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29697 test_array @<:@0@:>@ = 0
29703 rm -f conftest.$ac_objext
29704 if { (ac_try="$ac_compile"
29705 case "(($ac_try" in
29706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710 (eval "$ac_compile") 2>conftest.er1
29712 grep -v '^ *+' conftest.er1 >conftest.err
29714 cat conftest.err >&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } && {
29717 test -z "$ac_c_werror_flag" ||
29718 test ! -s conftest.err
29719 } && test -s conftest.$ac_objext; then
29722 cat >conftest.$ac_ext <<_ACEOF
29725 cat confdefs.h >>conftest.$ac_ext
29726 cat >>conftest.$ac_ext <<_ACEOF
29727 /* end confdefs.h. */
29728 $ac_includes_default
29729 typedef socklen_t ac__type_sizeof_;
29733 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29734 test_array @<:@0@:>@ = 0
29740 rm -f conftest.$ac_objext
29741 if { (ac_try="$ac_compile"
29742 case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_compile") 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } && {
29754 test -z "$ac_c_werror_flag" ||
29755 test ! -s conftest.err
29756 } && test -s conftest.$ac_objext; then
29757 ac_lo=$ac_mid; break
29759 echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29762 ac_hi=`expr '(' $ac_mid ')' - 1`
29763 if test $ac_mid -le $ac_hi; then
29767 ac_mid=`expr 2 '*' $ac_mid`
29770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29773 echo "$as_me: failed program was:" >&5
29774 sed 's/^/| /' conftest.$ac_ext >&5
29779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783 # Binary search between lo and hi bounds.
29784 while test "x$ac_lo" != "x$ac_hi"; do
29785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29786 cat >conftest.$ac_ext <<_ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h. */
29792 $ac_includes_default
29793 typedef socklen_t ac__type_sizeof_;
29797 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29798 test_array @<:@0@:>@ = 0
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_compile") 2>conftest.er1
29813 grep -v '^ *+' conftest.er1 >conftest.err
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && {
29818 test -z "$ac_c_werror_flag" ||
29819 test ! -s conftest.err
29820 } && test -s conftest.$ac_objext; then
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ac_lo=`expr '(' $ac_mid ')' + 1`
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29832 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29833 '') if test "$ac_cv_type_socklen_t" = yes; then
29834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29835 See \`config.log' for more details." >&5
29836 echo "$as_me: error: cannot compute sizeof (socklen_t)
29837 See \`config.log' for more details." >&2;}
29838 { (exit 77); exit 77; }; }
29840 ac_cv_sizeof_socklen_t=0
29844 cat >conftest.$ac_ext <<_ACEOF
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h. */
29850 $ac_includes_default
29851 typedef socklen_t ac__type_sizeof_;
29852 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29853 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29854 @%:@include <stdio.h>
29855 @%:@include <stdlib.h>
29860 FILE *f = fopen ("conftest.val", "w");
29863 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29865 long int i = longval ();
29866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29868 fprintf (f, "%ld\n", i);
29872 unsigned long int i = ulongval ();
29873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
29875 fprintf (f, "%lu\n", i);
29877 return ferror (f) || fclose (f) != 0;
29883 rm -f conftest$ac_exeext
29884 if { (ac_try="$ac_link"
29885 case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890 (eval "$ac_link") 2>&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29894 { (case "(($ac_try" in
29895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29896 *) ac_try_echo=$ac_try;;
29898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29899 (eval "$ac_try") 2>&5
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; }; then
29903 ac_cv_sizeof_socklen_t=`cat conftest.val`
29905 echo "$as_me: program exited with status $ac_status" >&5
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29909 ( exit $ac_status )
29910 if test "$ac_cv_type_socklen_t" = yes; then
29911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29912 See \`config.log' for more details." >&5
29913 echo "$as_me: error: cannot compute sizeof (socklen_t)
29914 See \`config.log' for more details." >&2;}
29915 { (exit 77); exit 77; }; }
29917 ac_cv_sizeof_socklen_t=0
29920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29924 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29925 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29929 cat >>confdefs.h <<_ACEOF
29930 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29937 cat >>confdefs.h <<_ACEOF
29938 @%:@define NFS_STATEDIR "$statedir"
29942 if test "x$cross_compiling" = "xno"; then
29943 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29944 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29945 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29946 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29948 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29949 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29950 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29951 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29969 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29971 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29973 AM_CFLAGS="$my_am_cflags"
29976 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29977 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29980 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"
29982 cat >confcache <<\_ACEOF
29983 # This file is a shell script that caches the results of configure
29984 # tests run on this system so they can be shared between configure
29985 # scripts and configure runs, see configure's option --config-cache.
29986 # It is not useful on other systems. If it contains results you don't
29987 # want to keep, you may remove or edit it.
29989 # config.status only pays attention to the cache file if you give it
29990 # the --recheck option to rerun configure.
29992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29994 # following values.
29998 # The following way of writing the cache mishandles newlines in values,
29999 # but we know of no workaround that is simple, portable, and efficient.
30000 # So, we kill variables containing newlines.
30001 # Ultrix sh set writes to stderr and can't be redirected directly,
30002 # and sets the high bit in the cache file unless we assign to the vars.
30004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30005 eval ac_val=\$$ac_var
30009 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30010 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30013 _ | IFS | as_nl) ;; #(
30014 *) $as_unset $ac_var ;;
30020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30021 *${as_nl}ac_space=\ *)
30022 # `set' does not quote correctly, so add quotes (double-quote
30023 # substitution turns \\\\ into \\, and sed turns \\ into \).
30026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30029 # `set' quotes correctly as required by POSIX, so do not add quotes.
30030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30044 if test -w "$cache_file"; then
30045 test "x$cache_file" != "x/dev/null" &&
30046 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30047 echo "$as_me: updating cache $cache_file" >&6;}
30048 cat confcache >$cache_file
30050 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30051 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30057 # Let make expand exec_prefix.
30058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30060 DEFS=-DHAVE_CONFIG_H
30064 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30065 # 1. Remove the extension, and $U if already installed.
30066 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30067 ac_i=`echo "$ac_i" | sed "$ac_script"`
30068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30069 # will be set to the directory where LIBOBJS objects are built.
30070 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30071 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30073 LIB@&t@OBJS=$ac_libobjs
30075 LTLIBOBJS=$ac_ltlibobjs
30078 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30079 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30080 Usually this means the macro was only invoked conditionally." >&5
30081 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30082 Usually this means the macro was only invoked conditionally." >&2;}
30083 { (exit 1); exit 1; }; }
30085 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30086 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30087 Usually this means the macro was only invoked conditionally." >&5
30088 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30089 Usually this means the macro was only invoked conditionally." >&2;}
30090 { (exit 1); exit 1; }; }
30092 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30093 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&5
30095 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30096 Usually this means the macro was only invoked conditionally." >&2;}
30097 { (exit 1); exit 1; }; }
30099 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30100 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&5
30102 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30103 Usually this means the macro was only invoked conditionally." >&2;}
30104 { (exit 1); exit 1; }; }
30106 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30107 { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&5
30109 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30110 Usually this means the macro was only invoked conditionally." >&2;}
30111 { (exit 1); exit 1; }; }
30113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30114 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&5
30116 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30117 Usually this means the macro was only invoked conditionally." >&2;}
30118 { (exit 1); exit 1; }; }
30120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30121 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&5
30123 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30124 Usually this means the macro was only invoked conditionally." >&2;}
30125 { (exit 1); exit 1; }; }
30127 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&5
30130 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30131 Usually this means the macro was only invoked conditionally." >&2;}
30132 { (exit 1); exit 1; }; }
30134 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30135 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&5
30137 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30138 Usually this means the macro was only invoked conditionally." >&2;}
30139 { (exit 1); exit 1; }; }
30142 : ${CONFIG_STATUS=./config.status}
30143 ac_clean_files_save=$ac_clean_files
30144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30147 cat >$CONFIG_STATUS <<_ACEOF
30149 # Generated by $as_me.
30150 # Run this file to recreate the current configuration.
30151 # Compiler output produced by configure, useful for debugging
30152 # configure, is in config.log if it exists.
30155 ac_cs_recheck=false
30157 SHELL=\${CONFIG_SHELL-$SHELL}
30160 cat >>$CONFIG_STATUS <<\_ACEOF
30161 ## --------------------- ##
30162 ## M4sh Initialization. ##
30163 ## --------------------- ##
30165 # Be more Bourne compatible
30166 DUALCASE=1; export DUALCASE # for MKS sh
30167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30170 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30171 # is contrary to our usage. Disable this feature.
30172 alias -g '${1+"$@"}'='"$@"'
30173 setopt NO_GLOB_SUBST
30175 case `(set -o) 2>/dev/null` in
30176 *posix*) set -o posix ;;
30185 # Avoid depending upon Character Ranges.
30186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30189 as_cr_digits='0123456789'
30190 as_cr_alnum=$as_cr_Letters$as_cr_digits
30192 # The user is always right.
30193 if test "${PATH_SEPARATOR+set}" != set; then
30194 echo "#! /bin/sh" >conf$$.sh
30195 echo "exit 0" >>conf$$.sh
30197 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30205 # Support unset when possible.
30206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30214 # We need space, tab and new line, in precisely that order. Quoting is
30215 # there to prevent editors from complaining about space-tab.
30216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30217 # splitting by setting IFS to empty value.)
30222 # Find who we are. Look in the path if we contain no directory separator.
30224 *[\\/]* ) as_myself=$0 ;;
30225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30226 for as_dir in $PATH
30229 test -z "$as_dir" && as_dir=.
30230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30236 # We did not find ourselves, most probably we were run as `sh COMMAND'
30237 # in which case we are not to be found in the path.
30238 if test "x$as_myself" = x; then
30241 if test ! -f "$as_myself"; then
30242 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30243 { (exit 1); exit 1; }
30246 # Work around bugs in pre-3.0 UWIN ksh.
30247 for as_var in ENV MAIL MAILPATH
30248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30258 LC_TELEPHONE LC_TIME
30260 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30261 eval $as_var=C; export $as_var
30263 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30267 # Required to use basename.
30268 if expr a : '\(a\)' >/dev/null 2>&1 &&
30269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30276 as_basename=basename
30282 # Name of the executable.
30283 as_me=`$as_basename -- "$0" ||
30284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30285 X"$0" : 'X\(//\)$' \| \
30286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30288 sed '/^.*\/\([^/][^/]*\)\/*$/{
30307 as_lineno_1=$LINENO
30308 as_lineno_2=$LINENO
30309 test "x$as_lineno_1" != "x$as_lineno_2" &&
30310 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30313 # uniformly replaced by the line number. The first 'sed' inserts a
30314 # line-number line after each line using $LINENO; the second 'sed'
30315 # does the real work. The second script uses 'N' to pair each
30316 # line-number line with the line containing $LINENO, and appends
30317 # trailing '-' during substitution so that $LINENO is not a special
30318 # case at line end.
30319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30320 # scripts with optimization help from Paolo Bonzini. Blame Lee
30321 # E. McMahon (1931-1989) for sed's syntax. :-)
30333 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30336 ' >$as_me.lineno &&
30337 chmod +x "$as_me.lineno" ||
30338 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30339 { (exit 1); exit 1; }; }
30341 # Don't try to exec as it changes $[0], causing all sort of problems
30342 # (the dirname of $[0] is not the place where we might find the
30343 # original and so on. Autoconf is especially sensitive to this).
30344 . "./$as_me.lineno"
30345 # Exit status is that of the last command.
30350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30356 ECHO_C= ECHO_N= ECHO_T=
30357 case `echo -n x` in
30359 case `echo 'x\c'` in
30360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30367 if expr a : '\(a\)' >/dev/null 2>&1 &&
30368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30374 rm -f conf$$ conf$$.exe conf$$.file
30375 if test -d conf$$.dir; then
30376 rm -f conf$$.dir/conf$$.file
30382 if ln -s conf$$.file conf$$ 2>/dev/null; then
30384 # ... but there are two gotchas:
30385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30387 # In both cases, we have to default to `cp -p'.
30388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30390 elif ln conf$$.file conf$$ 2>/dev/null; then
30395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30396 rmdir conf$$.dir 2>/dev/null
30398 if mkdir -p . 2>/dev/null; then
30401 test -d ./-p && rmdir ./-p
30405 if test -x / >/dev/null 2>&1; then
30406 as_test_x='test -x'
30408 if ls -dL / >/dev/null 2>&1; then
30415 if test -d "$1"; then
30421 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30422 ???[sx]*):;;*)false;;esac;fi
30426 as_executable_p=$as_test_x
30428 # Sed expression to map a string onto a valid CPP name.
30429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30431 # Sed expression to map a string onto a valid variable name.
30432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30437 # Save the log message, to keep $[0] and so on meaningful, and to
30438 # report actual input values of CONFIG_FILES etc. instead of their
30439 # values after options handling.
30441 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30442 generated by GNU Autoconf 2.61. Invocation command line was
30444 CONFIG_FILES = $CONFIG_FILES
30445 CONFIG_HEADERS = $CONFIG_HEADERS
30446 CONFIG_LINKS = $CONFIG_LINKS
30447 CONFIG_COMMANDS = $CONFIG_COMMANDS
30450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30455 cat >>$CONFIG_STATUS <<_ACEOF
30456 # Files that config.status was made for.
30457 config_files="$ac_config_files"
30458 config_headers="$ac_config_headers"
30459 config_commands="$ac_config_commands"
30463 cat >>$CONFIG_STATUS <<\_ACEOF
30465 \`$as_me' instantiates files from templates according to the
30466 current configuration.
30468 Usage: $0 [OPTIONS] [FILE]...
30470 -h, --help print this help, then exit
30471 -V, --version print version number and configuration settings, then exit
30472 -q, --quiet do not print progress messages
30473 -d, --debug don't remove temporary files
30474 --recheck update $as_me by reconfiguring in the same conditions
30475 --file=FILE[:TEMPLATE]
30476 instantiate the configuration file FILE
30477 --header=FILE[:TEMPLATE]
30478 instantiate the configuration header FILE
30480 Configuration files:
30483 Configuration headers:
30486 Configuration commands:
30489 Report bugs to <bug-autoconf@gnu.org>."
30492 cat >>$CONFIG_STATUS <<_ACEOF
30494 linux nfs-utils config.status 1.1.0
30495 configured by $0, generated by GNU Autoconf 2.61,
30496 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30498 Copyright (C) 2006 Free Software Foundation, Inc.
30499 This config.status script is free software; the Free Software Foundation
30500 gives unlimited permission to copy, distribute and modify it."
30507 cat >>$CONFIG_STATUS <<\_ACEOF
30508 # If no file are specified by the user, then we need to provide default
30509 # value. By we need to know if files were specified by the user.
30515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30527 # Handling of the options.
30528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30531 echo "$ac_cs_version"; exit ;;
30532 --debug | --debu | --deb | --de | --d | -d )
30534 --file | --fil | --fi | --f )
30536 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30537 ac_need_defaults=false;;
30538 --header | --heade | --head | --hea )
30540 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30541 ac_need_defaults=false;;
30543 # Conflict between --help and --header
30544 { echo "$as_me: error: ambiguous option: $1
30545 Try \`$0 --help' for more information." >&2
30546 { (exit 1); exit 1; }; };;
30547 --help | --hel | -h )
30548 echo "$ac_cs_usage"; exit ;;
30549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30553 # This is an error.
30554 -*) { echo "$as_me: error: unrecognized option: $1
30555 Try \`$0 --help' for more information." >&2
30556 { (exit 1); exit 1; }; } ;;
30558 *) ac_config_targets="$ac_config_targets $1"
30559 ac_need_defaults=false ;;
30565 ac_configure_extra_args=
30567 if $ac_cs_silent; then
30569 ac_configure_extra_args="$ac_configure_extra_args --silent"
30573 cat >>$CONFIG_STATUS <<_ACEOF
30574 if \$ac_cs_recheck; then
30575 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30576 CONFIG_SHELL=$SHELL
30577 export CONFIG_SHELL
30578 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30582 cat >>$CONFIG_STATUS <<\_ACEOF
30586 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30587 @%:@@%:@ Running $as_me. @%:@@%:@
30593 cat >>$CONFIG_STATUS <<_ACEOF
30597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30601 cat >>$CONFIG_STATUS <<\_ACEOF
30603 # Handling of arguments.
30604 for ac_config_target in $ac_config_targets
30606 case $ac_config_target in
30607 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30608 "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30610 "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30611 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30612 "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30613 "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30614 "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30615 "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30616 "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30617 "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30618 "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30619 "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30620 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30621 "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30622 "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30623 "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30624 "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30625 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30626 "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30627 "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30628 "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30629 "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30630 "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30631 "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30632 "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30633 "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30634 "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30638 { (exit 1); exit 1; }; };;
30643 # If the user did not use the arguments to specify the items to instantiate,
30644 # then the envvar interface is used. Set only those that are not.
30645 # We use the long form for the default assignment because of an extremely
30646 # bizarre bug on SunOS 4.1.3.
30647 if $ac_need_defaults; then
30648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30650 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30653 # Have a temporary directory for convenience. Make it in the build tree
30654 # simply because there is no reason against having it here, and in addition,
30655 # creating and moving files from /tmp can sometimes cause problems.
30656 # Hook for its removal unless debugging.
30657 # Note that there is a small window in which the directory will not be cleaned:
30658 # after its creation but before its name has been assigned to `$tmp'.
30662 trap 'exit_status=$?
30663 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30665 trap '{ (exit 1); exit 1; }' 1 2 13 15
30667 # Create a (secure) tmp directory for tmp files.
30670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30671 test -n "$tmp" && test -d "$tmp"
30674 tmp=./conf$$-$RANDOM
30675 (umask 077 && mkdir "$tmp")
30678 echo "$me: cannot create a temporary directory in ." >&2
30679 { (exit 1); exit 1; }
30683 # Set up the sed scripts for CONFIG_FILES section.
30686 # No need to generate the scripts if there are no CONFIG_FILES.
30687 # This happens for instance when ./config.status config.h
30688 if test -n "$CONFIG_FILES"; then
30695 for ac_last_try in false false false false false :; do
30696 cat >conf$$subs.sed <<_ACEOF
30697 SHELL!$SHELL$ac_delim
30698 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30699 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30700 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30701 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30702 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30703 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30704 exec_prefix!$exec_prefix$ac_delim
30705 prefix!$prefix$ac_delim
30706 program_transform_name!$program_transform_name$ac_delim
30707 bindir!$bindir$ac_delim
30708 sbindir!$sbindir$ac_delim
30709 libexecdir!$libexecdir$ac_delim
30710 datarootdir!$datarootdir$ac_delim
30711 datadir!$datadir$ac_delim
30712 sysconfdir!$sysconfdir$ac_delim
30713 sharedstatedir!$sharedstatedir$ac_delim
30714 localstatedir!$localstatedir$ac_delim
30715 includedir!$includedir$ac_delim
30716 oldincludedir!$oldincludedir$ac_delim
30717 docdir!$docdir$ac_delim
30718 infodir!$infodir$ac_delim
30719 htmldir!$htmldir$ac_delim
30720 dvidir!$dvidir$ac_delim
30721 pdfdir!$pdfdir$ac_delim
30722 psdir!$psdir$ac_delim
30723 libdir!$libdir$ac_delim
30724 localedir!$localedir$ac_delim
30725 mandir!$mandir$ac_delim
30726 DEFS!$DEFS$ac_delim
30727 ECHO_C!$ECHO_C$ac_delim
30728 ECHO_N!$ECHO_N$ac_delim
30729 ECHO_T!$ECHO_T$ac_delim
30730 LIBS!$LIBS$ac_delim
30731 build_alias!$build_alias$ac_delim
30732 host_alias!$host_alias$ac_delim
30733 target_alias!$target_alias$ac_delim
30734 build!$build$ac_delim
30735 build_cpu!$build_cpu$ac_delim
30736 build_vendor!$build_vendor$ac_delim
30737 build_os!$build_os$ac_delim
30738 host!$host$ac_delim
30739 host_cpu!$host_cpu$ac_delim
30740 host_vendor!$host_vendor$ac_delim
30741 host_os!$host_os$ac_delim
30742 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30743 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30744 INSTALL_DATA!$INSTALL_DATA$ac_delim
30745 CYGPATH_W!$CYGPATH_W$ac_delim
30746 PACKAGE!$PACKAGE$ac_delim
30747 VERSION!$VERSION$ac_delim
30748 ACLOCAL!$ACLOCAL$ac_delim
30749 AUTOCONF!$AUTOCONF$ac_delim
30750 AUTOMAKE!$AUTOMAKE$ac_delim
30751 AUTOHEADER!$AUTOHEADER$ac_delim
30752 MAKEINFO!$MAKEINFO$ac_delim
30753 install_sh!$install_sh$ac_delim
30754 STRIP!$STRIP$ac_delim
30755 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30756 mkdir_p!$mkdir_p$ac_delim
30758 SET_MAKE!$SET_MAKE$ac_delim
30759 am__leading_dot!$am__leading_dot$ac_delim
30760 AMTAR!$AMTAR$ac_delim
30761 am__tar!$am__tar$ac_delim
30762 am__untar!$am__untar$ac_delim
30763 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30764 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30765 MAINT!$MAINT$ac_delim
30766 RELEASE!$RELEASE$ac_delim
30767 statedir!$statedir$ac_delim
30768 statduser!$statduser$ac_delim
30769 startstatd!$startstatd$ac_delim
30770 enable_nfsv3!$enable_nfsv3$ac_delim
30771 IDMAPD!$IDMAPD$ac_delim
30772 enable_nfsv4!$enable_nfsv4$ac_delim
30773 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30774 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30775 GSSD!$GSSD$ac_delim
30776 SVCGSSD!$SVCGSSD$ac_delim
30777 enable_gss!$enable_gss$ac_delim
30778 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30779 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30780 kprefix!$kprefix$ac_delim
30781 secure_statd!$secure_statd$ac_delim
30782 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30783 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30784 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30785 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30786 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30788 CFLAGS!$CFLAGS$ac_delim
30789 LDFLAGS!$LDFLAGS$ac_delim
30790 CPPFLAGS!$CPPFLAGS$ac_delim
30791 ac_ct_CC!$ac_ct_CC$ac_delim
30792 EXEEXT!$EXEEXT$ac_delim
30793 OBJEXT!$OBJEXT$ac_delim
30796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30798 elif $ac_last_try; then
30799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30801 { (exit 1); exit 1; }; }
30803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30808 if test -n "$ac_eof"; then
30809 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30810 ac_eof=`expr $ac_eof + 1`
30813 cat >>$CONFIG_STATUS <<_ACEOF
30814 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30819 s/^/s,@/; s/!/@,|#_!!_#|/
30822 s/'"$ac_delim"'$/,g/; t
30824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30825 ' >>$CONFIG_STATUS <conf$$subs.sed
30826 rm -f conf$$subs.sed
30827 cat >>$CONFIG_STATUS <<_ACEOF
30833 for ac_last_try in false false false false false :; do
30834 cat >conf$$subs.sed <<_ACEOF
30835 DEPDIR!$DEPDIR$ac_delim
30836 am__include!$am__include$ac_delim
30837 am__quote!$am__quote$ac_delim
30838 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30839 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30840 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30841 CCDEPMODE!$CCDEPMODE$ac_delim
30842 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30843 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30844 LIBWRAP!$LIBWRAP$ac_delim
30845 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30846 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30848 CXXFLAGS!$CXXFLAGS$ac_delim
30849 ac_ct_CXX!$ac_ct_CXX$ac_delim
30850 CXXDEPMODE!$CXXDEPMODE$ac_delim
30851 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30852 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30854 LN_S!$LN_S$ac_delim
30856 GREP!$GREP$ac_delim
30857 EGREP!$EGREP$ac_delim
30858 ECHO!$ECHO$ac_delim
30860 RANLIB!$RANLIB$ac_delim
30861 CXXCPP!$CXXCPP$ac_delim
30863 FFLAGS!$FFLAGS$ac_delim
30864 ac_ct_F77!$ac_ct_F77$ac_delim
30865 LIBTOOL!$LIBTOOL$ac_delim
30866 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30868 LIBNSL!$LIBNSL$ac_delim
30869 PKG_CONFIG!$PKG_CONFIG$ac_delim
30870 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30871 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30872 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30873 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30874 LIBSOCKET!$LIBSOCKET$ac_delim
30875 LIBCRYPT!$LIBCRYPT$ac_delim
30876 LIBBSD!$LIBBSD$ac_delim
30877 LIBBLKID!$LIBBLKID$ac_delim
30878 KRBDIR!$KRBDIR$ac_delim
30879 KRBLIBS!$KRBLIBS$ac_delim
30880 KRBCFLAGS!$KRBCFLAGS$ac_delim
30881 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30882 K5VERS!$K5VERS$ac_delim
30883 ALLOCA!$ALLOCA$ac_delim
30884 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30885 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30886 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30887 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30888 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30889 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30890 AM_CFLAGS!$AM_CFLAGS$ac_delim
30891 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30892 LTLIBOBJS!$LTLIBOBJS$ac_delim
30895 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30897 elif $ac_last_try; then
30898 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30899 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30900 { (exit 1); exit 1; }; }
30902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30906 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30907 if test -n "$ac_eof"; then
30908 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30909 ac_eof=`expr $ac_eof + 1`
30912 cat >>$CONFIG_STATUS <<_ACEOF
30913 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30917 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30918 s/^/s,@/; s/!/@,|#_!!_#|/
30921 s/'"$ac_delim"'$/,g/; t
30923 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30924 ' >>$CONFIG_STATUS <conf$$subs.sed
30925 rm -f conf$$subs.sed
30926 cat >>$CONFIG_STATUS <<_ACEOF
30933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30935 # trailing colons and then remove the whole line if VPATH becomes empty
30936 # (actually we leave an empty line to preserve line numbers).
30937 if test "x$srcdir" = x.; then
30938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30939 s/:*\$(srcdir):*/:/
30940 s/:*\${srcdir}:*/:/
30942 s/^\([^=]*=[ ]*\):*/\1/
30948 cat >>$CONFIG_STATUS <<\_ACEOF
30949 fi # test -n "$CONFIG_FILES"
30952 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30955 :[FHLC]) ac_mode=$ac_tag; continue;;
30957 case $ac_mode$ac_tag in
30959 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30960 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30961 { (exit 1); exit 1; }; };;
30962 :[FH]-) ac_tag=-:-;;
30963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30980 -) ac_f="$tmp/stdin";;
30981 *) # Look for the file first in the build tree, then in the source tree
30982 # (if the path is not absolute). The absolute path cannot be DOS-style,
30983 # because $ac_f cannot contain `:'.
30987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30989 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30990 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30991 { (exit 1); exit 1; }; };;
30993 ac_file_inputs="$ac_file_inputs $ac_f"
30996 # Let's still pretend it is `configure' which instantiates (i.e., don't
30997 # use $as_me), people would be surprised to read:
30998 # /* config.h. Generated by config.status. */
30999 configure_input="Generated from "`IFS=:
31000 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31001 if test x"$ac_file" != x-; then
31002 configure_input="$ac_file. $configure_input"
31003 { echo "$as_me:$LINENO: creating $ac_file" >&5
31004 echo "$as_me: creating $ac_file" >&6;}
31008 *:-:* | *:-) cat >"$tmp/stdin";;
31013 ac_dir=`$as_dirname -- "$ac_file" ||
31014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31015 X"$ac_file" : 'X\(//\)[^/]' \| \
31016 X"$ac_file" : 'X\(//\)$' \| \
31017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31023 /^X\(\/\/\)[^/].*/{
31038 -*) as_dir=./$as_dir;;
31040 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31044 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31045 *) as_qdir=$as_dir;;
31047 as_dirs="'$as_qdir' $as_dirs"
31048 as_dir=`$as_dirname -- "$as_dir" ||
31049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31050 X"$as_dir" : 'X\(//\)[^/]' \| \
31051 X"$as_dir" : 'X\(//\)$' \| \
31052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31058 /^X\(\/\/\)[^/].*/{
31071 test -d "$as_dir" && break
31073 test -z "$as_dirs" || eval "mkdir $as_dirs"
31074 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31076 { (exit 1); exit 1; }; }; }
31080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31083 # A ".." for each directory in $ac_dir_suffix.
31084 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31085 case $ac_top_builddir_sub in
31086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31090 ac_abs_top_builddir=$ac_pwd
31091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31092 # for backward compatibility:
31093 ac_top_builddir=$ac_top_build_prefix
31096 .) # We are building in place.
31098 ac_top_srcdir=$ac_top_builddir_sub
31099 ac_abs_top_srcdir=$ac_pwd ;;
31100 [\\/]* | ?:[\\/]* ) # Absolute name.
31101 ac_srcdir=$srcdir$ac_dir_suffix;
31102 ac_top_srcdir=$srcdir
31103 ac_abs_top_srcdir=$srcdir ;;
31104 *) # Relative name.
31105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31106 ac_top_srcdir=$ac_top_build_prefix$srcdir
31107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31124 cat >>$CONFIG_STATUS <<\_ACEOF
31125 # If the template does not know about datarootdir, expand it.
31126 # FIXME: This hack should be removed a few years after 2.60.
31127 ac_datarootdir_hack=; ac_datarootdir_seen=
31129 case `sed -n '/datarootdir/ {
31138 ' $ac_file_inputs` in
31139 *datarootdir*) ac_datarootdir_seen=yes;;
31140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31141 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31142 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31144 cat >>$CONFIG_STATUS <<_ACEOF
31145 ac_datarootdir_hack='
31146 s&@datadir@&$datadir&g
31147 s&@docdir@&$docdir&g
31148 s&@infodir@&$infodir&g
31149 s&@localedir@&$localedir&g
31150 s&@mandir@&$mandir&g
31151 s&\\\${datarootdir}&$datarootdir&g' ;;
31155 # Neutralize VPATH when `$srcdir' = `.'.
31156 # Shell code in configure.ac might set extrasub.
31157 # FIXME: do we really want to maintain this feature?
31158 cat >>$CONFIG_STATUS <<_ACEOF
31162 cat >>$CONFIG_STATUS <<\_ACEOF
31164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31165 s&@configure_input@&$configure_input&;t t
31166 s&@top_builddir@&$ac_top_builddir_sub&;t t
31167 s&@srcdir@&$ac_srcdir&;t t
31168 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31169 s&@top_srcdir@&$ac_top_srcdir&;t t
31170 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31171 s&@builddir@&$ac_builddir&;t t
31172 s&@abs_builddir@&$ac_abs_builddir&;t t
31173 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31174 s&@INSTALL@&$ac_INSTALL&;t t
31175 $ac_datarootdir_hack
31176 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31179 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31181 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31182 which seems to be undefined. Please make sure it is defined." >&5
31183 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31184 which seems to be undefined. Please make sure it is defined." >&2;}
31188 -) cat "$tmp/out"; rm -f "$tmp/out";;
31189 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31198 # Transform confdefs.h into a sed script `conftest.defines', that
31199 # substitutes the proper values into config.h.in to produce config.h.
31200 rm -f conftest.defines conftest.tail
31201 # First, append a space to every undef/define line, to ease matching.
31202 echo 's/$/ /' >conftest.defines
31203 # Then, protect against being on the right side of a sed subst, or in
31204 # an unquoted here document, in config.status. If some macros were
31205 # called several times there might be several #defines for the same
31206 # symbol, which is useless. But do not sort them, since the last
31207 # AC_DEFINE must be honored.
31208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31209 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31210 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31211 # PARAMS is the parameter list in the macro definition--in most cases, it's
31212 # just an empty string.
31213 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31214 ac_dB='\\)[ (].*,\\1define\\2'
31222 s/^[ ]*#[ ]*define[ ][ ]*//
31227 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31228 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31229 ' >>conftest.defines
31231 # Remove the space that was appended to ease matching.
31232 # Then replace #undef with comments. This is necessary, for
31233 # example, in the case of _POSIX_SOURCE, which is predefined and required
31234 # on some systems where configure will not decide to define it.
31235 # (The regexp can be short, since the line contains either #define or #undef.)
31237 s,^[ #]*u.*,/* & */,' >>conftest.defines
31239 # Break up conftest.defines:
31240 ac_max_sed_lines=50
31242 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31243 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31244 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31246 ac_in='$ac_file_inputs'
31247 ac_out='"$tmp/out1"'
31248 ac_nxt='"$tmp/out2"'
31252 # Write a here document:
31253 cat >>$CONFIG_STATUS <<_ACEOF
31254 # First, check the format of the line:
31255 cat >"\$tmp/defines.sed" <<\\CEOF
31256 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31257 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31261 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31263 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31264 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31265 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31266 grep . conftest.tail >/dev/null || break
31267 rm -f conftest.defines
31268 mv conftest.tail conftest.defines
31270 rm -f conftest.defines conftest.tail
31272 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31273 cat >>$CONFIG_STATUS <<\_ACEOF
31274 if test x"$ac_file" != x-; then
31275 echo "/* $configure_input */" >"$tmp/config.h"
31276 cat "$ac_result" >>"$tmp/config.h"
31277 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31278 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31279 echo "$as_me: $ac_file is unchanged" >&6;}
31282 mv "$tmp/config.h" $ac_file
31285 echo "/* $configure_input */"
31289 # Compute $ac_file's index in $config_headers.
31291 for _am_header in $config_headers :; do
31292 case $_am_header in
31293 $ac_file | $ac_file:* )
31296 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31299 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31300 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31301 X$ac_file : 'X\(//\)[^/]' \| \
31302 X$ac_file : 'X\(//\)$' \| \
31303 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31309 /^X\(\/\/\)[^/].*/{
31321 s/.*/./; q'`/stamp-h$_am_stamp_count
31324 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31325 echo "$as_me: executing $ac_file commands" >&6;}
31330 case $ac_file$ac_mode in
31331 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31332 # Strip MF so we end up with the name of the file.
31333 mf=`echo "$mf" | sed -e 's/:.*$//'`
31334 # Check whether this is an Automake generated Makefile or not.
31335 # We used to match only the files named `Makefile.in', but
31336 # some people rename them; so instead we look at the file content.
31337 # Grep'ing the first line is not enough: some people post-process
31338 # each Makefile.in and add a new line on top of each file to say so.
31339 # So let's grep whole file.
31340 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31341 dirpart=`$as_dirname -- "$mf" ||
31342 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31343 X"$mf" : 'X\(//\)[^/]' \| \
31344 X"$mf" : 'X\(//\)$' \| \
31345 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31351 /^X\(\/\/\)[^/].*/{
31367 # Extract the definition of DEPDIR, am__include, and am__quote
31368 # from the Makefile without running `make'.
31369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31370 test -z "$DEPDIR" && continue
31371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31372 test -z "am__include" && continue
31373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31374 # When using ansi2knr, U may be empty or an underscore; expand it
31375 U=`sed -n 's/^U = //p' < "$mf"`
31376 # Find all dependency output files, they are included files with
31377 # $(DEPDIR) in their names. We invoke sed twice because it is the
31378 # simplest approach to changing $(DEPDIR) to its actual value in the
31380 for file in `sed -n "
31381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31383 # Make sure the directory exists.
31384 test -f "$dirpart/$file" && continue
31385 fdir=`$as_dirname -- "$file" ||
31386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387 X"$file" : 'X\(//\)[^/]' \| \
31388 X"$file" : 'X\(//\)$' \| \
31389 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31395 /^X\(\/\/\)[^/].*/{
31408 { as_dir=$dirpart/$fdir
31410 -*) as_dir=./$as_dir;;
31412 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31416 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31417 *) as_qdir=$as_dir;;
31419 as_dirs="'$as_qdir' $as_dirs"
31420 as_dir=`$as_dirname -- "$as_dir" ||
31421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31422 X"$as_dir" : 'X\(//\)[^/]' \| \
31423 X"$as_dir" : 'X\(//\)$' \| \
31424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31430 /^X\(\/\/\)[^/].*/{
31443 test -d "$as_dir" && break
31445 test -z "$as_dirs" || eval "mkdir $as_dirs"
31446 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31447 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31448 { (exit 1); exit 1; }; }; }
31449 # echo "creating $dirpart/$file"
31450 echo '# dummy' > "$dirpart/$file"
31459 { (exit 0); exit 0; }
31461 chmod +x $CONFIG_STATUS
31462 ac_clean_files=$ac_clean_files_save
31465 # configure is writing to config.log, and then calls config.status.
31466 # config.status does its own redirection, appending to config.log.
31467 # Unfortunately, on DOS this fails, as config.log is still kept open
31468 # by configure, so config.status won't be able to write to it; its
31469 # output is simply discarded. So we exec the FD to /dev/null,
31470 # effectively closing config.log, so it can be properly (re)opened and
31471 # appended to by config.status. When coming back to configure, we
31472 # need to make the FD available again.
31473 if test "$no_create" != yes; then
31475 ac_config_status_args=
31476 test "$silent" = yes &&
31477 ac_config_status_args="$ac_config_status_args --quiet"
31479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31482 # would make configure fail if this is the last instruction.
31483 $ac_cs_success || { (exit 1); exit 1; }